/* ==========================================================================
   FONTES LOCAIS — Montserrat para títulos/destaques, Inter para textos
   ========================================================================== */
@font-face {
    font-family: 'Montserrat';
    src: url('fonts/Montserrat-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Montserrat';
    src: url('fonts/Montserrat-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Montserrat';
    src: url('fonts/Montserrat-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('fonts/Inter-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('fonts/Inter-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('fonts/Inter-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ==========================================================================
   VARIÁVEIS & RESET
   ========================================================================== */
:root {
    --edera-green: #104020;
    --deep-forest: #071C0F;
    --off-white: #F4F1E8;
    --white: #FFFFFF;
    --forest-mist: #DCE7DE;

    --font-head: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--deep-forest);
    color: var(--white);
}

body {
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

/* REMOÇÃO TOTAL DE FUNDO PRETO DAS LOGOS */
.blend-logo {
    filter: url(#remove-black);
    display: block;
}

.blend-logo-green {
    filter: url(#turn-green);
    display: block;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   TIPOGRAFIA & CONTRASTE
   ========================================================================== */
h1, h2, h3, .quote-text {
    font-family: var(--font-head);
    font-weight: normal;
    line-height: 1.25;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    margin-bottom: 1.5rem;
}

p {
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.text-light {
    color: var(--white) !important;
}

.tag {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 16px;
}

/* Tags de Seções Claras */
.tag-light-bg {
    background-color: rgba(16, 64, 32, 0.12);
    color: var(--edera-green);
}

/* Tags de Seções Escuras */
.tag-dark-bg {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--white);
}

/* ==========================================================================
   BOTÕES
   ========================================================================== */
button, .btn-contextual {
    font-family: var(--font-body);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--edera-green);
    color: var(--white);
    padding: 16px 28px;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
}

.btn-primary:hover {
    background-color: #17542c;
    transform: translateY(-2px);
}

.btn-contextual {
    background-color: var(--edera-green);
    color: var(--white);
    padding: 14px 20px;
    font-size: 0.85rem;
    margin-top: auto;
    width: 100%;
}

.btn-contextual:hover {
    background-color: var(--deep-forest);
}

.btn-contextual.outline {
    background-color: transparent;
    border: 1px solid var(--white);
    color: var(--white);
    width: auto;
}

.w-full { width: 100%; }

/* ==========================================================================
   01. LOADING INICIAL (MÁSCARA INTERNA DA LOGO)
   ========================================================================== */
.loading-screen {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100vh;
    background-color: var(--deep-forest);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-logo-box {
    position: relative;
    width: 220px;
    max-width: 75vw;
}

.logo-bg {
    width: 100%;
}

.logo-fill-clip {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    clip-path: inset(100% 0 0 0);
}

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0; width: 100%;
    z-index: 1000;
    padding: 16px 0;
    transition: background-color 0.4s ease, padding 0.4s ease;
}

.navbar.scrolled {
    background-color: rgba(7, 28, 15, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.nav-logo img { height: 28px; }

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

.nav-links a {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--white);
}

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

.menu-mobile-btn {
    background: transparent;
    color: var(--white);
    display: none;
    padding: 8px;
    border: none;
}

.mobile-only-btn { display: none; }

@media (max-width: 1023px) {
    .menu-mobile-btn { display: block; }
    .desktop-only-btn { display: none; }
    .mobile-only-btn { display: inline-flex; margin-top: 20px; }

    .nav-links {
        position: fixed;
        top: 0; right: -100%;
        width: 80%; max-width: 320px;
        height: 100vh;
        background-color: var(--deep-forest);
        flex-direction: column;
        justify-content: center;
        padding: 40px;
        gap: 24px;
        transition: right 0.4s cubic-bezier(0.25, 1, 0.5, 1);
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }

    .nav-links.active { right: 0; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    background-color: var(--deep-forest);
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
}

.hero-img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(7,28,15,0.2) 0%, rgba(7,28,15,0.85) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 850px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title, .hero-cta-btn {
    opacity: 0;
    transform: translateY(20px);
}

.hero-title {
    font-size: clamp(2.2rem, 5.5vw, 4.8rem);
    margin-bottom: 28px;
    color: var(--white);
}

/* ==========================================================================
   ESSÊNCIA (Seção Clara)
   ========================================================================== */
.essencia {
    background-color: var(--off-white);
    color: var(--deep-forest);
    padding: 100px 0;
    position: relative;
    z-index: 3;
}

.essencia-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

.essencia-img {
    width: 100%; height: 450px;
    object-fit: cover;
    border-radius: 4px;
}

@media (min-width: 768px) {
    .essencia-grid {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }
}

/* ==========================================================================
   TURMAS & EVENTOS (Seções Escuras)
   ========================================================================== */
.turmas, .eventos {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.turmas { background-color: var(--deep-forest); }
.eventos { background-color: var(--edera-green); }

.turmas-bg-logo {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.04;
    pointer-events: none;
    width: 140vw;
}

.section-title { margin-bottom: 40px; }

/* Alterado para permitir que o GSAP controle o scroll em todas as telas */
.turmas-wrapper, .eventos-wrapper {
    width: 100%;
    overflow: hidden;
    padding-bottom: 20px;
}

.turmas-track, .eventos-track {
    display: flex;
    gap: 24px;
    padding: 0 24px;
    width: max-content;
}

.card {
    background-color: var(--off-white);
    color: var(--deep-forest);
    display: flex;
    flex-direction: column;
    width: 300px;
    border-radius: 6px;
    overflow: hidden;
    scroll-snap-align: center;
}

.card img, .card-placeholder {
    width: 100%; height: 260px;
    object-fit: cover;
}

.img-top { object-position: top center; }
.img-baby { object-position: center; } /* Foco centralizado para evitar corte na turma baby */
.img-teens { object-position: center 20%; }
.img-mista { object-position: center 60%; }

.card-placeholder {
    background-color: var(--forest-mist);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-head);
    color: var(--edera-green);
    font-size: 1.8rem;
    opacity: 0.6;
}

.card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-content h3 {
    font-size: 1.6rem;
    margin-bottom: 6px;
    color: var(--deep-forest);
}

.card-meta {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--edera-green);
    margin-bottom: 12px;
    display: block;
}

.event-card { width: 320px; }

.card-img-wrap { position: relative; }

.proof-badge {
    position: absolute;
    bottom: 12px; left: 12px;
    background-color: var(--white);
    color: var(--deep-forest);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
}

.highlight-quote {
    font-family: var(--font-head);
    font-size: 1rem;
    color: var(--edera-green);
    margin: 12px 0 20px;
}

@media (min-width: 1024px) {
    .card { width: 380px; }
    .event-card { width: 450px; }
}

/* ==========================================================================
   LUCAS FIALHO (Seção Clara)
   ========================================================================== */
.lucas {
    background-color: var(--off-white);
    color: var(--deep-forest);
    padding: 100px 0;
}

.lucas-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

.lucas-img {
    width: 100%;
    max-width: 360px;
    border-radius: 6px;
    margin: 0 auto;
}

.quote-mark {
    font-family: var(--font-head);
    font-size: 6rem;
    color: var(--forest-mist);
    line-height: 0.4;
    margin-bottom: 10px;
}

.quote-text {
    font-size: clamp(1.3rem, 2.8vw, 2.2rem);
    margin-bottom: 24px;
    color: var(--deep-forest);
}

.lucas-info strong {
    display: block;
    font-size: 1.1rem;
    color: var(--deep-forest);
}

.lucas-info span {
    font-size: 0.85rem;
    color: var(--edera-green);
}

@media (min-width: 768px) {
    .lucas-grid {
        grid-template-columns: 360px 1fr;
        gap: 60px;
    }
}

/* ==========================================================================
   LOCALIZAÇÃO / NOSSO CT (Seção Escura)
   ========================================================================== */
.localizacao {
    background-color: var(--deep-forest);
    padding: 120px 0;
}

.center-text {
    text-align: center;
    max-width: 750px;
    margin: 0 auto;
}

.address-text {
    font-style: normal;
    line-height: 1.8;
    margin-bottom: 28px;
    color: var(--off-white);
}

/* ==========================================================================
   FOOTER (Seção Clara)
   ========================================================================== */
.footer {
    background-color: var(--off-white);
    color: var(--deep-forest);
    padding: 80px 0 30px;
    text-align: center;
}

.footer h2 { color: var(--deep-forest); }

.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid var(--forest-mist);
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    font-size: 0.85rem;
}

/* Estilização dos Links de Contato no Footer */
.footer-bottom a {
    color: var(--deep-forest);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-bottom a:hover {
    opacity: 0.7;
}

/* ==========================================================================
   MODAL
   ========================================================================== */
.modal {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0.96);
    background-color: var(--off-white);
    color: var(--deep-forest);
    padding: 32px;
    border: none;
    border-radius: 8px;
    width: 90%; max-width: 480px;
    opacity: 0; visibility: hidden;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 2000;
}

.modal.active {
    opacity: 1; visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.modal::backdrop {
    background: rgba(7, 28, 15, 0.85);
}

.close-modal {
    position: absolute;
    top: 16px; right: 16px;
    background: none; border: none;
    font-size: 1.8rem;
    color: var(--deep-forest);
    cursor: pointer;
}

.modal-title {
    font-size: 1.8rem;
    margin-bottom: 6px;
    color: var(--deep-forest);
}

.modal-subtitle {
    font-size: 0.85rem;
    margin-bottom: 24px;
    color: var(--deep-forest);
}

.form-group {
    margin-bottom: 16px;
    text-align: left;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.75rem;
    margin-bottom: 6px;
    color: var(--deep-forest);
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: var(--font-body);
}