/* Custom Properties Baseadas no Design de Referência */
:root {
    --col-olive: #555b27;         /* Verde-oliva escuro */
    --col-sand: #e5dfd3;          /* Bege claro/Areia */
    --col-mustard: #ceaf33;       /* Amarelo-mostarda */
    --col-mustard-hover: #b59b2b; /* Amarelo-mostarda mais escuro para hover */
    --col-dark: #1f1b13;          /* Tom de texto ultra escuro/terroso */
    --col-terracotta: #d1563f;    /* Cor de acento (Laranja/terra) */
    --col-hero-text: #f4ecce;     /* Creme fúngico claro (altamente visível) */

    --font-serif: 'Playfair Display', serif;
    --font-mono: 'Space Mono', monospace;
    --font-hero: 'IM Fell English', serif;

    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
}

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--col-dark);
    color: var(--col-sand);
    font-family: var(--font-mono);
    line-height: 1.5;
    position: relative;
    overflow-x: hidden;
    /* Smooth scroll se a página crescer */
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

/* Efeito Analógico: Granulação (Film Grain) */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.25;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

/* Headings base */
h1, h2, h3 {
    font-family: var(--font-serif);
    font-weight: 700;
}

/* 1. Hero Section */
.section-hero {
    height: 100vh;
    min-height: 600px;
    background-color: var(--col-dark);
    background-image: url('hero-bg.jpg');
    background-size: cover;
    background-position: center 80%; /* Foco melhor na parte de baixo da montanha e nas texturas */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 2rem;
    text-align: center;
}

/* Sombra gradiente interna para facilitar leitura do subtítulo */
.section-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.6) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Alinhado ao topo */
    height: 100%;
    width: 100%;
    padding-top: 4vh;
}

.hero-title {
    font-family: var(--font-hero);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(4rem, 20vw, 12rem); /* Escala drasticamente */
    color: var(--col-hero-text);
    line-height: 0.85;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    text-shadow: 2px 4px 10px rgba(0,0,0,0.6), 0 0 40px rgba(244,236,206, 0.2);
}

.hero-icon {
    color: var(--col-hero-text);
    margin: auto 0; /* Empurra para o centro e equilibra o topo e o rodapé */
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.8));
}

.hero-logo {
    width: clamp(120px, 24vw, 180px);
    height: auto;
    object-fit: contain;
    /* Ajusta a claridade e o contraste para encaixar perfeitamente com a cor do texto do Hero, caso necessite */
    /* filter: brightness(1.1) drop-shadow(0 4px 6px rgba(0,0,0,0.8)); */
}

.hero-subtitle {
    color: var(--col-hero-text);
    font-family: var(--font-hero);
    font-size: clamp(1rem, 4.5vw, 1.5rem);
    font-weight: 400;
    font-style: italic;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 2vh; /* Aproximado para dar espaço pra seta */
    text-shadow: 1px 2px 4px rgba(0,0,0,0.6);
    line-height: 1.4;
}

.scroll-indicator {
    color: var(--col-hero-text);
    margin-bottom: 4vh;
    opacity: 0.85;
    animation: floatDown 2.5s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.8));
}

@keyframes floatDown {
    0%, 100% { transform: translateY(0); opacity: 0.5; }
    50% { transform: translateY(12px); opacity: 1; }
}

/* 2. Intro Section */
.section-intro {
    background-color: var(--col-olive);
    padding: var(--spacing-lg) 5%;
}

.intro-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column; /* Mobile first stack */
    gap: var(--spacing-lg);
}

.intro-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.intro-title {
    color: var(--col-mustard);
    font-size: clamp(2.5rem, 8vw, 4rem);
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.01em;
}

.intro-p {
    color: var(--col-sand);
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    line-height: 1.8;
    margin-bottom: var(--spacing-lg);
    max-width: 500px;
    opacity: 0.9;
}

.cta-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centraliza o texto secundário embaixo do botão */
    gap: 1rem;
}

.btn-primary {
    display: inline-block;
    background-color: var(--col-mustard);
    color: var(--col-dark);
    font-family: var(--font-mono);
    text-decoration: none;
    font-weight: 700;
    padding: 1.25rem 2rem;
    border-radius: 8px;
    width: 100%; /* Largura total no mobile base */
    text-align: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-primary:hover {
    background-color: var(--col-mustard-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.sub-cta-text {
    color: var(--col-mustard);
    font-size: 0.8rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.85;
    user-select: none; /* Impede que seja selecionável como se fosse botão */
}

.location-text {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--col-hero-text); /* Cor creme elegante */
    background-color: rgba(20, 25, 20, 0.6); /* Verde escuro encorpado/translúcido */
    border: 1px solid rgba(206, 172, 92, 0.3); /* Borda mostarda bem fina */
    padding: 6px 14px;
    border-radius: 4px; /* Borda levemente arredondada como um selo químico antigo */
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 0.8rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    display: inline-flex;
    align-items: center;
    backdrop-filter: blur(4px);
}

.location-pin {
    color: var(--col-mustard);
    margin-right: 6px;
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

.intro-image-wrapper {
    flex: 1;
    position: relative;
    border-radius: 20px;
    margin-bottom: 20px; 
}

.img-zoom-container {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    /* Força o contorno redondo em browsers como Safari que ignoram overflow */
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    mask-image: radial-gradient(white, black);
}

.intro-img {
    width: 100%;
    height: 100%; 
    display: block;
    object-fit: cover;
    object-position: center center;
    /* Zoom substancial focado para aproximar mais as crianças do cogumelo gigante */
    transform: scale(1.5); 
    transform-origin: center 55%; 
    transition: transform 0.5s ease;
}

/* Selo Circular (Badge) */
.badge {
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 120px;
    height: 120px;
    background-color: var(--col-sand);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(-10deg);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.badge-text {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    animation: rotateText 18s linear infinite;
}

.badge-text text {
    font-family: var(--font-mono);
    font-size: 13.5px;
    font-weight: 700;
    fill: var(--col-olive);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.badge-inner-text {
    color: var(--col-terracotta);
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.1rem;
    text-align: center;
    line-height: 1;
    font-style: italic;
    z-index: 2;
    transform: translateY(2px);
}

/* 3. Pillars Section */
.section-pillars {
    background-color: var(--col-sand);
    padding: var(--spacing-xl) 5%;
    color: var(--col-dark);
}

.pillars-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column; /* Stacked em mobile */
    gap: var(--spacing-lg);
}

.pillar {
    flex: 1;
}

.pillar-title {
    font-size: 2rem;
    color: var(--col-olive);
    margin-bottom: var(--spacing-md);
    border-bottom: 2px solid rgba(85, 91, 39, 0.15); /* Separador suave */
    padding-bottom: 0.75rem;
}

.pillar-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--col-dark);
    opacity: 0.85;
}

/* 4. Footer Banner (Marquee) */
.section-banner {
    background-color: var(--col-mustard);
    padding: 1.5rem 0;
    overflow: hidden;
    position: relative;
    display: flex;
    width: 100%;
    border-bottom: 20px solid var(--col-mustard); /* Para dar uma base sólida pro layout */
}

.marquee-track {
    display: flex;
    white-space: nowrap;
    animation: scroll-marquee 25s linear infinite;
    will-change: transform; /* Otimização de performance */
}

.marquee-content {
    display: flex;
    align-items: center;
    color: var(--col-olive);
    font-family: var(--font-serif);
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-right: 2rem;
}

.marquee-icon {
    font-family: system-ui, -apple-system, sans-serif; /* Fallback universal pra esse char */
    margin: 0 2vw;
    font-size: 0.8em;
    display: inline-block;
}

/* Animações Keyframes */
@keyframes rotateText {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes scroll-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Media Queries (Desktop) / Breakpoints maiores */
@media (min-width: 768px) {
    .cta-group {
        width: auto;
        /* Mantém o texto do whatsapp centralizado em relação à largura que o botão assume */
    }

    .btn-primary { 
        width: auto; 
    }
    
    .section-intro {
        padding: var(--spacing-xl) 5%;
    }
    
    .intro-container {
        flex-direction: row;
        align-items: center; /* Alinha o texto e a foto no centro verticalmente */
        gap: var(--spacing-xl);
    }
    
    .intro-text, .intro-image-wrapper {
        flex: 1; /* Distribui o espaço meio a meio */
    }

    .intro-img {
        aspect-ratio: 4/5; /* Deixa a imagem mais vertical no desktop */
    }

    .badge {
        bottom: -20px;
        right: -20px;
        width: 150px;
        height: 150px;
    }
    
    .badge-text text {
        font-size: 15px;
    }
    
    .badge-inner-text {
        font-size: 1.35rem;
    }

    .pillars-container {
        flex-direction: row; /* Coloca os pilares lado a lado */
        gap: 3rem;
    }
    
    .pillar {
        padding-right: 1rem;
    }
}
