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

:root {
    --color-primary: #799380;       /* Verde Salva */
    --color-primary-dark: #637b69;  /* Verde Salva Escuro (hover) */
    --color-bg: #FCFDFC;            /* Fundo Quase Brabco */
    --color-text-dark: #2E3D34;     /* Texto muito escuro, mas não preto */
    --color-text-light: #5A6A60;    /* Texto parágrafos */
    --color-white: #FFFFFF;
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 9999px;
    
    --shadow-soft: 0 10px 40px rgba(46, 61, 52, 0.05);
    
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Nunito', sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text-dark);
    line-height: 1.8;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text-dark);
}

p {
    color: var(--color-text-light);
    font-size: 1.125rem;
    font-weight: 400;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0 8px 24px rgba(121, 147, 128, 0.25);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(121, 147, 128, 0.35);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.125rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 16px 0;
    background: rgba(252, 253, 252, 0.9);
    backdrop-filter: blur(12px);
    transition: all var(--transition-fast);
}

.header.scrolled {
    padding: 12px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--color-primary);
}

.logo .icon-leaf {
    color: var(--color-primary);
}

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav a:not(.btn) {
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-text-dark);
    transition: color var(--transition-fast);
}

.nav a:not(.btn):hover {
    color: var(--color-primary);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-top: 80px;
    background-image: url('../images/hero_banner.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.background-overlay {
    position: absolute;
    inset: 0;
    /* Degradê Verde Salva Claro (estilo orgânico) - Movido para a esquerda para a foto destacar mais */
    background: linear-gradient(90deg, rgba(230,238,232,0.98) 0%, rgba(230,238,232,0.85) 35%, rgba(230,238,232,0) 60%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0; /* Align left with container */
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 24px;
    color: var(--color-text-dark);
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 40px;
}

.hero-inner {
    position: relative;
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
}

.hero-inner .background-overlay {
    /* Overlay sólido translúcido para garantir que o texto central fique 100% legível por cima da foto */
    background: rgba(230, 238, 232, 0.85);
}

.hero-inner .hero-content {
    max-width: 800px;
    margin: 0 auto;
}

/* Sections */
.section {
    padding: 120px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 64px auto;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.card {
    background: var(--color-white);
    padding: 48px 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: transform var(--transition-fast);
}

.card:hover {
    transform: translateY(-8px);
}

.card-icon {
    width: 64px;
    height: 64px;
    background: rgba(121, 147, 128, 0.1);
    color: var(--color-primary);
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px auto;
}

.card-icon svg {
    width: 32px;
    height: 32px;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.card p {
    font-size: 1rem;
}

.card-link {
    display: inline-block;
    margin-top: 16px;
    font-weight: 700;
    color: var(--color-primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: transform var(--transition-fast);
}

.card:hover .card-link {
    transform: translateX(4px);
}

/* Environment Section */
.environment-section {
    background-color: var(--color-white);
}

.container-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

/* Video Carousel */
.video-carousel-wrapper {
    position: relative;
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    aspect-ratio: 4/5;
    background: #000;
}

.video-track {
    display: flex;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
}

.video-track::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.carousel-video {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    scroll-snap-align: start;
}

/* Dots */
.carousel-dots {
    position: absolute;
    bottom: 24px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.2);
}

/* Carousel Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.7)!important;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: background 0.3s, transform 0.2s;
    color: var(--color-text-dark);
}

.carousel-btn:hover {
    background: rgba(255,255,255,1)!important;
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn svg {
    width: 20px;
    height: 20px;
}

.prev-btn { left: 16px; }
.next-btn { right: 16px; }

/* Gallery */
.gallery {
    padding-top: 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.gallery-img {
    border-radius: var(--radius-md);
    aspect-ratio: 1/1;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-img:hover {
    transform: scale(1.03);
}

/* Testimonials */
.testimonials {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
    margin-top: 48px;
    margin-bottom: 24px;
}

.testimonial-card {
    background-color: var(--color-white);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    max-width: 400px;
    text-align: left;
    position: relative;
    border-top: 4px solid var(--color-primary);
}

.testimonial-card p {
    font-size: 1.05rem;
    font-style: italic;
    color: var(--color-text-dark);
    margin-bottom: 16px;
    line-height: 1.6;
}

.testimonial-author {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--color-primary);
}

.quote-icon {
    width: 32px;
    height: 32px;
    color: var(--color-primary);
    opacity: 0.4;
    margin-bottom: 16px;
}

/* Action Section */
.action-section {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.action-section .section-title,
.action-section .section-subtitle,
.action-section .small-text {
    color: var(--color-white);
}

.action-section .section-subtitle {
    opacity: 0.9;
}

.action-section .btn-primary {
    background-color: var(--color-white);
    color: var(--color-primary);
    margin-bottom: 24px;
}

.action-section .btn-primary:hover {
    background-color: #f0f4f1;
}

/* Footer */
.footer {
    background-color: #2E3D34;
    color: var(--color-white);
    padding: 64px 0;
}

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

.footer-brand .logo {
    color: var(--color-white);
    margin-bottom: 8px;
}

.footer-brand .icon-leaf {
    color: var(--color-primary);
}

.footer-brand p {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

.footer-links p {
    color: rgba(255,255,255,0.8);
    text-align: right;
    margin: 4px 0;
}

.footer-whatsapp {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 8px;
    transition: opacity 0.3s;
}

.footer-whatsapp:hover {
    opacity: 1;
}

.footer-whatsapp svg {
    width: 18px;
    height: 18px;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 64px;
    height: 64px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--transition-smooth), transform var(--transition-smooth);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-up {
    animation: slideUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsividade */
@media (max-width: 900px) {
    .container-split {
        grid-template-columns: 1fr;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 600px) {
    .header-container {
        flex-direction: column;
        gap: 16px;
    }
    .nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }
    .nav a {
        font-size: 0.9rem;
    }
    .nav .btn-outline {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    .hero {
        background-position: right center; 
    }
    .background-overlay {
        background: linear-gradient(90deg, rgba(230,238,232,0.95) 20%, rgba(230,238,232,0.7) 60%, rgba(230,238,232,0.1) 100%);
    }
    .hero-content {
        padding-top: 10px;
        text-align: left;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
    .hero-inner h1 {
        font-size: 1.8rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .section-subtitle {
        font-size: 1.1rem;
        margin-bottom: 40px;
    }
    .section {
        padding: 60px 0;
    }
    
    /* Mini Cards Lado a Lado */
    .cards-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    .card {
        padding: 16px 8px;
        border-radius: var(--radius-md);
    }
    .card-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 12px;
    }
    .card-icon svg {
        width: 20px;
        height: 20px;
    }
    .card h3 {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    .card p {
        font-size: 0.75rem;
        display: none; /* Opcional: Ocultar o texto para economizar espaço, mantendo só o título e ícone */
    }
    .card-link {
        font-size: 0.7rem;
        margin-top: 8px;
    }

    /* Mini Cards de Depoimento */
    .testimonials {
        flex-wrap: nowrap;
        gap: 8px;
    }
    .testimonial-card {
        padding: 16px 8px;
        flex: 1 1 50%;
        max-width: none;
    }
    .testimonial-card p {
        font-size: 0.75rem;
        margin-bottom: 8px;
        line-height: 1.4;
    }
    .testimonial-author {
        font-size: 0.7rem;
    }
    .quote-icon {
        width: 20px;
        height: 20px;
        margin-bottom: 8px;
    }

    .footer .container {
        flex-direction: column;
        gap: 32px;
        text-align: center;
    }
    .footer-links p, .footer-whatsapp {
        text-align: center;
        justify-content: center;
    }
}
