/* --- GERAL & VARIÁVEIS --- */
:root {
    --primary-color: #B0A59B;
    --primary-dark: #8A7F76;
    --secondary-color: #F5F3F1;
    --accent-color: #C4B8AD;
    --text-color: #333333;
    --text-light: #666;
    --white: #FFFFFF;
    --gradient: linear-gradient(135deg, #B0A59B 0%, #C4B8AD 100%);
    --shadow: 0 8px 24px rgba(138, 127, 118, 0.1);
    --shadow-hover: 0 12px 32px rgba(138, 127, 118, 0.15);
    --border-radius: 12px;
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}
body.lightbox-open {
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 6rem 0;
}

/* --- ELEMENTOS GLOBAIS (BOTÕES, ETC) --- */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-dark);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
    box-shadow: var(--shadow);
    z-index: 10;
    display: grid;
    place-items: center;
}

.carousel-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: translateY(-50%) scale(0.9);
}

.carousel-btn:hover:not(:disabled) { 
    background: var(--primary-color); 
    transform: translateY(-50%) scale(1.1); 
}


/* --- HEADER --- */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    background-color: transparent;
    padding: 1.5rem 0;
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
}

.header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    transition: var(--transition);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.header.scrolled .nav-link { color: var(--text-color); }
.header:not(.scrolled) .nav-link { color: var(--white); text-shadow: 0 1px 3px rgba(0,0,0,0.2); }

/* --- HERO SECTION --- */
.hero {
    min-height: 100vh;
    background: var(--gradient);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 100px 0;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content { color: var(--white); }
.hero-title { font-size: 3.8rem; font-weight: 700; margin-bottom: 1rem; line-height: 1.2; }
.hero-subtitle { font-size: 1.5rem; margin-bottom: 1rem; opacity: 0.9; }
.hero-description { font-size: 1.1rem; margin-bottom: 2.5rem; opacity: 0.8; }
.hero-image img {
    width: 100%;
    max-width: 420px;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

/* --- BOTÃO CTA --- */
.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--white);
    color: var(--primary-dark);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    background-color: var(--secondary-color);
}

/* --- CABEÇALHO DE SEÇÃO --- */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}
.section-header h2 {
    font-size: 2.8rem;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}
.section-line {
    width: 80px;
    height: 4px;
    background: var(--gradient);
    margin: 0 auto 1rem;
    border-radius: 2px;
}
.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* --- SEÇÃO CASOS --- */
.casos { 
    background: var(--secondary-color); 
}
.casos-container {
    position: relative;
    padding: 0 40px;
}
.casos-carousel-wrapper { 
    overflow: hidden; 
    width: 100%;
}
.casos-grid {
    display: flex;
    gap: 2rem;
    transition: transform 0.5s ease-in-out;
}
.caso-card {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: block; 
    cursor: pointer;
    flex: 0 0 calc((100% / 3) - (4rem / 3));
}
.caso-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-hover); }
.caso-img { width: 100%; height: 350px; object-fit: cover; display: block; }
.caso-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: var(--white);
    padding: 1.5rem;
    font-weight: 500;
}
.casos-container .casos-prev { left: 0; }
.casos-container .casos-next { right: 0; }


/* --- SEÇÃO SOBRE --- */
.sobre-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
}
.sobre-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}
.sobre-text p { margin-bottom: 1.5rem; color: var(--text-light); }
.sobre-text strong { color: var(--primary-dark); font-weight: 600; }
.missao {
    background: var(--secondary-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
    font-style: italic;
}
.sobre-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}
.stat-card {
    background: var(--white);
    padding: 1.5rem;
    text-align: center;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.stat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.stat-number { font-size: 2.5rem; font-weight: 700; color: var(--primary-color); }
.stat-label { color: var(--text-light); font-weight: 500; font-size: 0.9rem; }

/* --- SEÇÃO SERVIÇOS --- */
.servicos { background: var(--secondary-color); }
.processo-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}
.step-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}
.step-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-hover); }
.step-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}
.step-card h3 { color: var(--primary-dark); margin-bottom: 1rem; }
.step-card p { color: var(--text-light); font-size: 0.95rem; }
.cta-center { text-align: center; margin-top: 3rem; }
.cta-center .cta-button { background: var(--primary-dark); color: var(--white); }

/* --- SEÇÃO PARCERIA --- */
.parceria-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.parceria-image img { width: 100%; border-radius: var(--border-radius); box-shadow: var(--shadow); }
.parceria-text p { font-size: 1.1rem; color: var(--text-light); }
.parceria-text strong { color: var(--primary-dark); }

/* --- SEÇÃO DEPOIMENTOS --- */
.depoimentos { 
    background-color: var(--secondary-color); 
    padding-top: 3rem;
}

.depoimentos-container {
    position: relative;
    padding: 0 40px;
}

.depoimentos-carousel-wrapper { 
    position: relative; 
    width: 100%;
    margin: auto;
    overflow: hidden;
}

.depoimentos-carousel { 
    display: flex; 
    gap: 20px;
    transition: transform 0.5s ease-in-out;
}

.depoimento-card {
    flex: 0 0 calc((100% / 3) - (40px / 3));
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 0.5rem;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
}

.depoimento-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.depoimento-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius);
    border: none;
    object-fit: cover;
}

.depoimentos-container .carousel-btn.prev { 
    left: 0; 
}
.depoimentos-container .carousel-btn.next { 
    right: 0; 
}

/* --- SEÇÃO CONTATO --- */
.contato-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.info-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}
.info-card i {
    font-size: 1.5rem;
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    display: grid;
    place-items: center;
}
.info-card h4 { color: var(--primary-dark); }
.info-card p { color: var(--text-light); line-height: 1.4; font-size: 0.95rem;}
.contato-mapa {
    height: 450px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.contato-mapa iframe { width: 100%; height: 100%; border: 0; }

/* --- FOOTER --- */
.footer {
    background: var(--text-color);
    color: var(--white);
    padding-top: 4rem;
}
.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}
.footer-logo { height: 40px; margin-bottom: 1rem; }
.footer-about p { color: #ccc; font-size: 0.9rem; }
.footer-links h4, .footer-social h4 { font-size: 1.2rem; margin-bottom: 1rem; color: var(--accent-color); }
.footer-links ul { list-style: none; }
.footer-links ul li a {
    text-decoration: none;
    color: #ccc;
    transition: var(--transition);
    display: block;
    margin-bottom: 0.5rem;
}
.footer-links ul li a:hover { color: var(--white); padding-left: 5px; }
.social-icons { display: flex; gap: 1rem; }
.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    display: grid;
    place-items: center;
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
}
.social-link:hover { background: var(--primary-color); transform: translateY(-3px); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    padding: 1.5rem 0;
    font-size: 0.9rem;
    color: #ccc;
}

/* --- ELEMENTOS FLUTUANTES --- */
.scroll-top-btn, .whatsapp-float {
    position: fixed;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--primary-dark);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 999;
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-hover);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
}
.scroll-top-btn { bottom: 80px; }
.whatsapp-float { bottom: 20px; background: #25D366; opacity: 1; visibility: visible; }
.scroll-top-btn.visible { opacity: 1; visibility: visible; }
.scroll-top-btn:hover, .whatsapp-float:hover { transform: scale(1.1); }
.mobile-menu-icon { display: none; }


/* --- ANIMAÇÕES DE SCROLL --- */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
[data-animate].visible {
    opacity: 1;
    transform: translateY(0);
}
.processo-steps .step-card, .casos-grid .caso-card {
    transition-delay: calc(0.1s * var(--i));
}

/* --- ESTILOS DO LIGHTBOX --- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}
.lightbox.active {
    display: block;
}
.lightbox-content {
    margin: auto;
    display: block;
    width: auto;
    max-width: 90%;
    height: auto;
    max-height: 85vh;
    animation: zoomIn 0.4s;
}
@keyframes zoomIn {
    from {transform: scale(0.9);}
    to {transform: scale(1);}
}
.lightbox-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}
.lightbox-close:hover {
    color: #bbb;
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 992px) {
    .hero-container, .parceria-container, .contato-container, .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .sobre-content {
        grid-template-columns: 1fr 2fr;
        gap: 2rem;
        align-items: flex-start;
    }
    .hero-image { order: -1; margin-bottom: 2rem; }
    .parceria-image { order: -1; margin-bottom: 2rem; }
    .section-header h2 { font-size: 2.4rem; }
    .hero-title { font-size: 3rem; }
    .contato-info, .parceria-text { .section-header { text-align: center; } .section-line { margin: 1rem auto; }}

    /* Carrossel de Casos (Tablet) */
    .caso-card {
        flex: 0 0 calc((100% / 2) - 1rem);
    }
    /* Carrossel de Depoimentos (Tablet) */
    .depoimento-card {
        flex: 0 0 calc((100% / 2) - 10px);
    }
}

@media (max-width: 768px) {
    /* --- MENU MOBILE --- */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        width: 100%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: var(--transition);
    }
    .nav-menu.active { left: 0; }
    .nav-link { color: var(--text-color) !important; font-size: 1.5rem; }
    .mobile-menu-icon { display: block; z-index: 1001; cursor: pointer;}
    .mobile-menu-icon span {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px;
        background-color: var(--text-color);
        transition: var(--transition);
    }
    .header:not(.scrolled) .mobile-menu-icon span { background-color: var(--white); }
    .mobile-menu-icon.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .mobile-menu-icon.active span:nth-child(2) { opacity: 0; }
    .mobile-menu-icon.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    .mobile-menu-icon.active span { background-color: var(--text-color) !important; }

    /* --- CARROSSEL DE CASOS (MOBILE) --- */
    .casos-container { padding: 0; }
    .casos-carousel-wrapper { overflow-x: scroll; scroll-snap-type: x mandatory; scrollbar-width: none; -ms-overflow-style: none; }
    .casos-carousel-wrapper::-webkit-scrollbar { display: none; }
    .casos-grid { transition: none; }
    .caso-card {
        flex: 0 0 85%;
        scroll-snap-align: start;
    }
    .casos-container .casos-prev { left: 5px; }
    .casos-container .casos-next { right: 5px; }

    /* --- SOBRE (MOBILE) --- */
    .sobre-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        align-items: center;
    }
    .sobre-image { margin-bottom: 1.5rem; }
    .sobre-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* --- DEPOIMENTOS (MOBILE) --- */
    .depoimentos-container { padding: 0; }
    .depoimentos-carousel-wrapper { overflow-x: scroll; scroll-snap-type: x mandatory; scrollbar-width: none; -ms-overflow-style: none; }
    .depoimentos-carousel-wrapper::-webkit-scrollbar { display: none; }
    .depoimentos-carousel { transition: none; }
    .depoimento-card {
        flex: 0 0 85%;
        scroll-snap-align: start;
    }
    .depoimentos-container .carousel-btn.prev { left: 5px; }
    .depoimentos-container .carousel-btn.next { right: 5px; }
}