/* RESET E CONFIGURAÇÕES GLOBAIS */
:root {
    --primary-green: #2ECC71;      /* Verde principal, vibrante */
    --medium-green: #27AE60;       /* Verde médio para hovers e detalhes */
    --dark-green: #1E8449;         /* Verde escuro para contraste */
    --deep-green: #145A32;         /* Verde profundo para fundos escuros */
    --text-on-dark: #E8F8F5;       /* Texto claro, um verde muito suave */
    --text-on-light: #0E4B28;      /* Texto escuro, um verde quase preto */
    --light-bg: #F4FCF8;           /* Fundo principal, quase branco com um toque de verde */
    --medium-bg: #E8F8F5;          /* Fundo de seções, um verde menta claro */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-on-light);
    line-height: 1.6;
    background-color: var(--light-bg);
}

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

/* CABEÇALHO E NAVEGAÇÃO */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    padding: 20px 0;
    transition: background-color 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}

.main-header.scrolled {
    background: rgba(244, 252, 248, 0.9); /* Cor de --light-bg com transparência */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(14, 75, 40, 0.08);
    padding: 10px 0;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: var(--primary-green);
    text-decoration: none;
}

.main-nav a {
    margin: 0 15px;
    text-decoration: none;
    color: var(--text-on-light);
    font-weight: 600;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-green);
    transition: width 0.3s;
}

.main-nav a:hover::after {
    width: 100%;
}

.btn-cta {
    background: var(--primary-green);
    color: #fff; /* Branco puro para máximo contraste no botão principal */
    padding: 10px 25px;
    border-radius: 50px; /* Botão em formato de pílula */
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-cta:hover {
    background: var(--medium-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(30, 132, 73, 0.3);
}

.mobile-menu-icon {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-on-light);
    cursor: pointer;
}

.mobile-menu-icon i {
    transition: transform 0.3s ease;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 68px; /* Altura do header */
    left: 0;
    width: 100%;
    background: var(--light-bg);
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(14, 75, 40, 0.1);
    z-index: 999;
}
.mobile-menu.active {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.mobile-menu a {
    text-decoration: none;
    color: var(--text-on-light);
    font-weight: 600;
    font-size: 18px;
}
.btn-cta-mobile {
    background: var(--primary-green);
    color: #fff;
    padding: 12px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 10px;
}

/* SEÇÃO HERO */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-on-dark);
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%; /* Taller to allow for parallax movement without showing gaps */
    z-index: -1;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    z-index: 1;
}

.hero-content h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5rem;
    text-shadow: 0 3px 10px rgba(0,0,0,0.3);
    margin-bottom: 1rem;
}

.hero-content h3 {
    font-size: 1.5rem;
    font-weight: 400;
    max-width: 800px;
    margin: 0 auto 2rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.btn-primary {
    background: var(--text-on-dark);
    color: var(--deep-green);
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s;
    border: 2px solid var(--text-on-dark);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.btn-primary:hover {
    background: transparent;
    color: var(--text-on-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

/* SEÇÕES DE CONTEÚDO */
.content-section {
    padding: 80px 0;
}

.bg-light {
    background: var(--medium-bg); /* Usando o tom de verde menta */
}

.text-center {
    text-align: center;
    margin-bottom: 40px;
}

h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.section-layout {
    display: flex;
    align-items: center;
    gap: 50px;
}

.section-image img {
    width: 100%;
    max-width: 450px;
    height: auto; 
    border-radius: 15px; /* Bordas mais suaves */
    box-shadow: 0 10px 20px rgba(14, 75, 40, 0.1);
}

.section-text p {
    font-size: 1.1rem;
    max-width: 500px;
}

/* GALERIA */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(14, 75, 40, 0.1);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}
.gallery-item:hover img {
    transform: scale(1.1);
}
.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(14, 75, 40, 0.8), transparent);
    color: white;
    padding: 40px 20px 20px;
}
.gallery-caption h3 {
    font-family: 'Montserrat', sans-serif;
}

/* CONTATO */
.contact-info {
    display: flex;
    justify-content: space-around;
    gap: 30px;
    margin-top: 40px;
}
.contact-info a.contact-item {
    text-decoration: none;
    color: var(--text-on-light);
}
.contact-item {
    max-width: 300px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 20px;
    border-radius: 15px;
}
.contact-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(14, 75, 40, 0.1);
}
.contact-item i {
    font-size: 48px;
    color: var(--primary-green);
    margin-bottom: 15px;
}
.contact-item h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-on-light);
}
.contact-item p {
    font-size: 1rem;
}

/* DEPOIMENTOS */
.testimonial-carousel {
    position: relative;
    margin-top: 40px;
}

.testimonial-carousel-viewport {
    overflow: hidden;
    width: 100%;
}

.testimonial-track {
    display: flex;
    gap: 30px;
    transition: transform 0.5s ease-in-out;
}

.testimonial-card {
    position: relative;
    background: var(--light-bg); /* Fundo do card */
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(14, 75, 40, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 0 0 100%; /* Cada card ocupa 100% do viewport em telas pequenas */
    max-width: 100%;
}

.testimonial-card::before {
    content: '\201C'; /* Aspa dupla esquerda */
    position: absolute;
    top: 10px;
    left: 20px;
    font-family: 'Times New Roman', serif;
    font-size: 10rem;
    color: var(--medium-bg);
    line-height: 1;
    z-index: 0;
    opacity: 0.8;
}

.testimonial-avatar, .testimonial-text, .testimonial-author {
    position: relative;
    z-index: 1;
}

@media (min-width: 769px) {
    .testimonial-card {
        flex-basis: calc(50% - 15px); /* 2 cards por vez, considerando o gap */
        max-width: calc(50% - 15px);
    }
}

@media (min-width: 992px) {
    .testimonial-card {
        flex-basis: calc(33.333% - 20px); /* 3 cards por vez */
        max-width: calc(33.333% - 20px);
    }
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(14, 75, 40, 0.12);
}

.testimonial-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid var(--primary-green); /* Borda verde no avatar */
    box-shadow: 0 0 0 5px rgba(46, 204, 113, 0.2); /* Anel suave ao redor */
}

.testimonial-text, blockquote {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 15px;
    color: var(--text-on-light);
    margin-block-start: 0;
    margin-block-end: 0;
}

.testimonial-author, cite {
    font-weight: 600;
    color: var(--primary-green);
    font-size: 1rem;
    font-style: normal;
}

.carousel-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.carousel-button {
    background: var(--medium-bg);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    color: var(--text-on-light);
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-button:hover:not(:disabled) {
    background: var(--primary-green);
    color: #fff;
}

.carousel-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* CTA FINAL */
.final-cta {
    background: linear-gradient(45deg, var(--deep-green), var(--dark-green));
    color: var(--text-on-dark);
    padding: 80px 0;
}
.final-cta h2 {
    font-size: 2.8rem;
}
.final-cta h3 {
    font-weight: 400;
    margin-bottom: 30px;
}
.btn-large {
    font-size: 1.2rem;
    padding: 18px 40px;
}

/* RODAPÉ */
.main-footer {
    background: var(--text-on-light);
    color: var(--medium-bg);
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
}

/* ANIMAÇÕES DE SCROLL */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}
/* Atraso para efeito escalonado */
.gallery-item:nth-child(2), .contact-item:nth-child(2) { transition-delay: 0.2s; }
.gallery-item:nth-child(3), .contact-item:nth-child(3) { transition-delay: 0.4s; }


/* RESPONSIVIDADE */
@media (max-width: 768px) {
    .main-nav, .btn-cta {
        display: none;
    }
    .mobile-menu-icon {
        display: block;
    }
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .hero-content h3 { font-size: 1.2rem; }

    .section-layout {
        flex-direction: column;
    }
    .section-text {
        text-align: center;
    }

    .contact-info {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    .contact-item {
        width: 100%;
        max-width: 350px;
    }
}

/* Layout sobreposto para a seção "Quem Somos" em telas maiores */
@media (min-width: 769px) {
    #quem-somos .section-layout {
        align-items: flex-start;
    }
    #quem-somos .section-text {
        background: rgba(244, 252, 248, 0.95); /* Cor de --light-bg com mais opacidade */
        backdrop-filter: blur(5px);
        padding: 40px;
        border-radius: 15px;
        box-shadow: 0 15px 30px rgba(14, 75, 40, 0.12);
        width: 50%;
        margin-left: -100px; /* Puxa o texto para sobrepor a imagem */
    }
}