/* ---------------------------------------------------------------
   TOKENS
   Ivory / near-black / deep forest green / muted gold
   Cormorant Garamond (display) + Montserrat (text)
------------------------------------------------------------------ */
:root {
    --ivory: #F4F1E9;
    --ivory-dim: #ECE7DA;
    --ink: #14150F;
    --forest: #10261B;
    --forest-deep: #0B1B13;
    --gold: #A9812F;
    --gold-soft: #C9A85F;
    --line: rgba(20, 21, 15, 0.12);
    --line-on-dark: rgba(244, 241, 233, 0.16);

    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-text: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;

    --container: 1180px;
    --gap: clamp(1.25rem, 3vw, 2.5rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--ivory);
    color: var(--ink);
    font-family: var(--font-text);
    font-weight: 400;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gap);
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.15;
    margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.75rem, 7vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }

p { margin: 0 0 1em; max-width: 62ch; }

.kicker {
    font-family: var(--font-text);
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    color: var(--gold);
    margin-bottom: 0.9em;
    font-weight: 600;
}

.lead {
    font-size: 1.1rem;
    color: rgba(20, 21, 15, 0.75);
}

section { padding: clamp(3.5rem, 8vw, 7rem) 0; }

.section-alt {
    background: var(--forest);
    color: var(--ivory);
}
.section-alt .kicker { color: var(--gold-soft); }
.section-alt p { color: rgba(244, 241, 233, 0.8); }

/* ---------------------------------------------------------------
   HEADER / NAV
------------------------------------------------------------------ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(244, 241, 233, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}

.nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

.brand {
    font-family: var(--font-display);
    font-size: 1.5rem;
    letter-spacing: 0.02em;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
}

.nav-links a {
    padding-bottom: 4px;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, opacity 0.2s ease;
}
.nav-links a:hover { border-color: var(--gold); }

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.lang-switch {
    display: flex;
    gap: 0.5rem;
    font-size: 0.78rem;
}
.lang-switch a {
    padding: 2px 6px;
    color: rgba(20,21,15,0.55);
}
.lang-switch a.active {
    color: var(--ink);
    border-bottom: 1px solid var(--gold);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
}

@media (max-width: 860px) {
    .nav-links { display: none; }
    .nav-toggle { display: block; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 76px;
        left: 0;
        right: 0;
        background: var(--ivory);
        padding: 1.5rem var(--gap) 2rem;
        border-bottom: 1px solid var(--line);
        gap: 1.1rem;
    }
}

/* ---------------------------------------------------------------
   HERO
------------------------------------------------------------------ */
.hero {
    position: relative;
    min-height: 86vh;
    display: flex;
    align-items: flex-end;
    color: var(--ivory);
    padding-bottom: clamp(2.5rem, 6vw, 5rem);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 30%;
    opacity: 0;
    animation: heroFade 14s infinite;
    z-index: 0;
}
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11,27,19,0.45), rgba(11,27,19,0.82));
}
.hero-bg-1 { background-image: url('/assets/images/hero/hero-brasil.jpg'); animation-delay: 0s; }
.hero-bg-2 { background-image: url('/assets/images/hero/hero-holanda.jpg'); animation-delay: 7s; }

@keyframes heroFade {
    0%   { opacity: 0; }
    4%   { opacity: 1; }
    46%  { opacity: 1; }
    50%  { opacity: 0; }
    100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-bg { animation: none; opacity: 0; }
    .hero-bg-1 { opacity: 1; }
}

.hero-inner { position: relative; z-index: 1; max-width: 780px; }

.hero .kicker { color: var(--gold-soft); }

.hero-subtitle {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(1.2rem, 2.2vw, 1.6rem);
    color: rgba(244,241,233,0.9);
    margin-bottom: 1.5rem;
}

.button-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }

.btn {
    display: inline-block;
    padding: 0.85rem 1.9rem;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    border: 1px solid currentColor;
    transition: background 0.2s ease, color 0.2s ease;
}

.btn-primary {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--forest-deep);
}
.btn-primary:hover { background: var(--gold-soft); }

.btn-outline { color: var(--ivory); }
.btn-outline:hover { background: rgba(244,241,233,0.1); }

/* ---------------------------------------------------------------
   GRID / CARDS
------------------------------------------------------------------ */
.grid {
    display: grid;
    gap: var(--gap);
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 860px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.stat-block { text-align: left; border-top: 1px solid var(--line-on-dark); padding-top: 1rem; }
.section-alt .stat-block { border-top: 1px solid var(--line-on-dark); }
.stat-number {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.6rem);
    color: var(--gold-soft);
    line-height: 1;
}
.stat-label { font-size: 0.8rem; letter-spacing: 0.05em; opacity: 0.8; margin-top: 0.4rem; }

/* Timeline */
.timeline { border-left: 1px solid var(--line); margin-top: 2rem; }
.timeline-item { position: relative; padding: 0 0 2.2rem 2rem; }
.timeline-item::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 4px;
    width: 9px;
    height: 9px;
    background: var(--gold);
    border-radius: 50%;
}
.timeline-year { font-family: var(--font-display); font-size: 1.3rem; color: var(--gold); }

/* Partnership cards */
.partner-card {
    border: 1px solid var(--line);
    padding: 1.8rem;
    background: #fff;
}
.partner-card h3 { margin-bottom: 0.4rem; }

/* Sponsor logo tiles */
.sponsor-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.sponsor-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 148px;
    height: 100px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 0.9rem;
    transition: border-color 0.2s ease, transform 0.2s ease;
}
.sponsor-tile:hover { border-color: var(--gold); transform: translateY(-2px); }
.sponsor-tile img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(15%);
}

/* ---------------------------------------------------------------
   GALLERY
------------------------------------------------------------------ */
.gallery-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 2rem 0 2.5rem;
}
.gallery-tab {
    padding: 0.5rem 1.1rem;
    border: 1px solid var(--line);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
}
.gallery-tab.active,
.gallery-tab:hover {
    background: var(--forest);
    color: var(--ivory);
    border-color: var(--forest);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 0.75rem;
}
.gallery-item {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--ivory-dim);
    cursor: pointer;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.04); }

.gallery-empty {
    padding: 3rem 0;
    color: rgba(20,21,15,0.55);
    font-style: italic;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(11, 27, 19, 0.94);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox img {
    max-width: 90vw;
    max-height: 86vh;
    object-fit: contain;
}
.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.8rem;
    color: var(--ivory);
    font-size: 1.8rem;
    background: none;
    border: none;
    cursor: pointer;
}
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--ivory);
    font-size: 2.2rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
}
.lightbox-prev { left: 0.5rem; }
.lightbox-next { right: 0.5rem; }

/* ---------------------------------------------------------------
   FORMS
------------------------------------------------------------------ */
.form-field { margin-bottom: 1.2rem; }
.form-field label {
    display: block;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    margin-bottom: 0.4rem;
    color: rgba(20,21,15,0.7);
}
.form-field input,
.form-field textarea {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--line);
    background: #fff;
    font-family: var(--font-text);
    font-size: 0.95rem;
}
.form-field textarea { min-height: 140px; resize: vertical; }

.alert {
    padding: 0.9rem 1.1rem;
    border: 1px solid var(--line);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}
.alert-success { border-color: var(--forest); background: #EFF3EF; }
.alert-error { border-color: #8a2b2b; background: #F7EDED; }

/* ---------------------------------------------------------------
   FOOTER
------------------------------------------------------------------ */
.site-footer {
    background: var(--ink);
    color: rgba(244,241,233,0.7);
    padding: 3rem 0 2rem;
    font-size: 0.85rem;
}
.site-footer a:hover { color: var(--gold-soft); }
.footer-row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
    border-bottom: 1px solid rgba(244,241,233,0.12);
    padding-bottom: 2rem;
    margin-bottom: 1.5rem;
}
.footer-brand { font-family: var(--font-display); font-size: 1.4rem; color: var(--ivory); }

/* Utility */
.mt-lg { margin-top: 3rem; }
.text-center { text-align: center; }
.small { font-size: 0.8rem; }
