/* ===== GLOBAL & RESET ===== */
html {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

*, *:before, *:after {
    box-sizing: inherit;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Mulish', sans-serif;
    background-color: #ECE9E0;
    color: #0e0e0e;
    overflow-x: hidden;
}

/* ===== HEADER/NAVBAR ===== */
header {
    background: #ECE9E0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.5s ease;
    box-shadow: #c7c0aa 0 0 25px;
} 

/* Efeito ao rolar a página */
header.scrolled {
    background: rgb(255, 255, 255);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 10px 5%;
}

/* Logo */
.logo img {
    width: 350px;
    transition: all 0.5s ease;
}

header.scrolled .logo img {
    width: 250px;
}

/* Menu Desktop */
nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

nav ul li a {
    color: #0e0e0e;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    letter-spacing: 1px;
    transition: color 0.3s;
    text-decoration: none;
}

header.scrolled nav ul li a {
    color: #333;
}

nav ul li a:hover {
    color: #d56a40;
}

/* Menu Mobile */
.menu-mobile {
    display: none;
    cursor: pointer;
    color: #0e0e0e;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.menu-mobile.active {
    transform: rotate(90deg);
}

header.scrolled .menu-mobile {
    color: #333;
}

/* ===== RESPONSIVO - NAVBAR ===== */
@media (max-width: 768px) {
    /* Ajuste do logo */
    .logo img {
        width: 250px;
    }

    header.scrolled .logo img {
        width: 200px;
    }

    /* Esconde o menu desktop */
    nav ul {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: #ECE9E0;
        flex-direction: column;
        padding: 20px 0;
        text-align: center;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }

    nav ul.show {
        display: flex;
    }

    nav ul li {
        margin: 15px 0;
    }

    /* Mostra o ícone do menu mobile */
    .menu-mobile {
        display: block;
    }

    /* Bloqueia scroll quando menu está aberto */
    body.menu-open {
        overflow: hidden;
        position: fixed;
    }
}

/* ===== MAIN CONTENT ===== */
.project-page {
    padding-top: 100px;
    background: #ECE9E0;
    box-shadow: #c7c0aa 4px 4px 25px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Cabeçalho do Projeto */
.project-header {
    text-align: center;
    padding: 60px 0 40px;
    background: #ECE9E0;
    box-shadow: #c7c0aa 4px 4px 25px;
}

.project-header h1 {
    font-size: 3rem;
    color: #d56a40;
    margin-bottom: 10px;
    font-family: 'Poppins', sans-serif;
}

.project-header .subtitle {
    font-size: 1.2rem;
    color: #666;
    font-style: italic;
}

/* Carrossel */
.project-gallery {
    margin: 40px 0;
}

.carrossel {
    position: relative;
    max-width: 100%;
    overflow: hidden;
    height: 70vh;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carrossel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 10;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carrossel-btn.prev {
    left: 20px;
}

.carrossel-btn.next {
    right: 20px;
}

/* Ficha Técnica */
.project-specs {
    padding: 50px 0;
    background: #ECE9E0;
    box-shadow: #c7c0aa 0 0 25px;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.spec-item h3 {
    font-size: 1rem;
    color: #8f8273;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.spec-item p {
    font-size: 1.1rem;
    color: #333;
    font-weight: 500;
}

/* Descrição */
.project-description {
    padding: 60px 0;
    line-height: 1.8;
}

.project-description h2 {
    font-size: 2.5rem;
    color: #d56a40;
    margin-bottom: 30px;
    text-align: center;
}

.project-description p {
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-size: 23px;
}

/* Galeria Adicional */
.project-more {
    padding: 40px 0 60px;
    background: #ECE9E0;
    box-shadow: #c7c0aa 4px 4px 25px;
}

.project-more h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #d56a40;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.image-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 5px;
    transition: transform 0.3s;
}

.image-grid img:hover {
    transform: scale(1.02);
}

/* Navegação */
.project-navigation {
    padding: 40px 0;
    border-top: 1px solid #eee;
}

.project-navigation .container {
    display: flex;
    justify-content: space-between;
}

.nav-btn {
    padding: 12px 25px;
    background: #d56a40;
    color: white;
    border-radius: 5px;
    transition: all 0.3s;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
}

.nav-btn:hover {
    background: #b55935;
}

/* ===== FOOTER ===== */
.footer {
    background: #ECE9E0;
    padding: 60px 0 20px;
    font-family: 'Mulish', sans-serif;
    box-shadow: 0 0 25px #ccc7c7;
}

.footer-container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    text-align: center;
}

.footer-logo img {
    width: 300px;
    max-width: 100%;
    height: auto;
}

.footer-info-wrapper {
    width: 100%;
}

.footer-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.footer-col h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #d56a40;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

.footer-col p {
    line-height: 1.8;
    color: #d56a40;
    font-size: 1rem;
    text-align: center;
    margin: 0;
    max-width: 500px;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.footer-social a {
    color: #d56a40;
    font-size: 1.5rem;
    transition: all 0.3s;
}

.footer-social a:hover {
    transform: translateY(-3px);
    opacity: 0.8;
}

.footer-copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(213, 106, 64, 0.2);
    font-size: 0.9rem;
    color: #d56a40;
}

/* ===== RESPONSIVO GERAL ===== */
@media (max-width: 768px) {
    /* Header */
    .logo img {
        width: 200px;
    }

    header.scrolled .logo img {
        width: 180px;
    }

    /* Project Header */
    .project-header h1 {
        font-size: 2.2rem;
    }
    
    /* Carrossel */
    .carrossel {
        height: 50vh;
    }
    
    /* Ficha Técnica */
    .specs-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    /* Navegação entre projetos */
    .project-navigation .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-btn {
        text-align: center;
        width: 100%;
    }

    /* Descrição */
    .project-description p {
        font-size: 1.1rem;
        padding: 0 15px;
    }

    /* Footer */
    .footer-logo img {
        width: 250px;
    }

    .footer-col p {
        font-size: 0.9rem;
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    /* Ajustes para telas muito pequenas */
    .specs-grid {
        grid-template-columns: 1fr;
    }

    .carrossel {
        height: 40vh;
    }

    .carrossel-btn {
        width: 30px;
        height: 30px;
        font-size: 1rem;
        padding: 8px;
    }

    .project-header h1 {
        font-size: 1.8rem;
    }
}