/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #fbfaf3;
    --white: #ffffff;
    --emerald-50: #ecfdf5;
    --emerald-100: #d1fae5;
    --emerald-200: #a7f3d0;
    --emerald-700: #047857;
    --emerald-800: #065f46;
    --emerald-900: #064e3b;
    --emerald-950: #022c22;
    --stone-100: #f5f5f4;
    --stone-300: #d6d3d1;
    --stone-600: #57534e;
    --stone-700: #44403c;
    --stone-900: #1c1917;
    --stone-950: #0c0a09;
    --amber-50: #fffbeb;
    --amber-200: #fde68a;
    --radius: 2rem;
    --radius-sm: 1.7rem;
    --radius-xs: 1rem;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.04);
    --shadow-md: 0 8px 30px rgba(0,0,0,.07);
    --shadow-lg: 0 20px 50px rgba(0,0,0,.10);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: all .25s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--stone-900);
    background: var(--bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { font: inherit; cursor: pointer; border: none; background: none; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 768px) { .container { padding: 0 2rem; } }

/* ===== NAV ===== */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(251,250,243,.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,.4);
}

.nav-inner {
    max-width: 1280px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    padding: .75rem 1rem;
}
@media (min-width: 768px) { .nav-inner { padding: .75rem 2rem; } }

.nav-brand {
    display: flex; align-items: center; gap: .75rem;
}

.nav-icon {
    display: grid; place-items: center;
    width: 2.75rem; height: 2.75rem;
    border-radius: var(--radius-xs);
    background: var(--emerald-700);
    color: white;
    font-size: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.nav-brand-text { text-align: left; line-height: 1.15; }
.nav-brand-text strong { display: block; font-size: .875rem; font-weight: 700; }
.nav-brand-text small { display: block; font-size: .75rem; color: var(--stone-600); }

.nav-links { display: none; gap: 1.5rem; }
@media (min-width: 1024px) { .nav-links { display: flex; } }

.nav-links button {
    font-size: .875rem; font-weight: 500; color: var(--stone-700);
    transition: var(--transition);
}
.nav-links button:hover { color: var(--emerald-700); }

.nav-actions { display: flex; align-items: center; gap: .5rem; }

.btn-lang {
    padding: .5rem 1rem;
    border-radius: 9999px;
    border: 1px solid var(--emerald-200);
    background: var(--white);
    font-size: .875rem; font-weight: 600;
    color: var(--emerald-800);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.btn-lang:hover { background: var(--emerald-50); }

.btn-mobile {
    display: flex; padding: .5rem; font-size: 1.25rem;
}
@media (min-width: 1024px) { .btn-mobile { display: none; } }

.mobile-menu {
    display: none;
    flex-direction: column;
    border-top: 1px solid var(--emerald-100);
    background: var(--white);
    padding: 1rem;
}
.mobile-menu.open { display: flex; }
@media (min-width: 1024px) { .mobile-menu { display: none !important; } }

.mobile-menu button {
    width: 100%; text-align: left;
    padding: .75rem 1rem;
    border-radius: var(--radius-xs);
    font-weight: 500;
    transition: var(--transition);
}
.mobile-menu button:hover { background: var(--emerald-50); }

/* ===== BUTTONS ===== */
.btn-primary, a.btn-primary {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 1rem 1.75rem;
    border-radius: 9999px;
    background: var(--emerald-700);
    color: white;
    font-weight: 700; font-size: .95rem;
    box-shadow: 0 4px 14px rgba(4,120,87,.15);
    transition: var(--transition);
}
.btn-primary:hover, a.btn-primary:hover {
    background: var(--emerald-800);
    transform: translateY(-1px);
}

.btn-secondary, a.btn-secondary {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 1rem 1.75rem;
    border-radius: 9999px;
    border: 1px solid var(--emerald-200);
    background: var(--white);
    color: var(--emerald-800);
    font-weight: 700; font-size: .95rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.btn-secondary:hover, a.btn-secondary:hover {
    background: var(--emerald-50);
    transform: translateY(-1px);
}

/* ===== HERO ===== */
.hero-section { padding-top: 6rem; }

.hero-grid {
    display: grid; gap: 2.5rem;
    padding: 2.5rem 0;
}
@media (min-width: 1024px) {
    .hero-grid { grid-template-columns: 1.05fr .95fr; padding: 5rem 0 2.5rem; }
}

.hero-text { display: flex; flex-direction: column; justify-content: center; }

.badge {
    display: inline-flex; align-items: center; gap: .5rem; width: fit-content;
    padding: .5rem 1rem;
    border-radius: 9999px;
    background: var(--emerald-100);
    font-size: .875rem; font-weight: 600;
    color: var(--emerald-800);
    margin-bottom: 1.25rem;
}

.hero-text h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
    letter-spacing: -.025em;
    line-height: 1.05;
    color: var(--stone-950);
}

.hero-desc {
    margin-top: 1.5rem;
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
    line-height: 1.7;
    color: var(--stone-700);
    max-width: 640px;
}

.hero-buttons {
    display: flex; flex-wrap: wrap; gap: .75rem;
    margin-top: 2rem;
}

.hero-info-cards {
    display: grid; gap: .75rem; margin-top: 2.25rem;
}
@media (min-width: 640px) { .hero-info-cards { grid-template-columns: 1fr 1fr; } }

.info-card {
    display: flex; align-items: center; gap: .75rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-xs);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    font-size: .875rem; color: var(--stone-700);
}

/* Hero gallery */
.hero-gallery {
    display: grid; gap: 1rem;
    min-height: 520px;
}

.hero-img-large, .hero-img-small {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: linear-gradient(135deg, var(--emerald-100), #ecfccb, #fef9c3);
    box-shadow: var(--shadow-sm);
}

.hero-img-large { height: clamp(220px, 30vw, 288px); }
.hero-img-large::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.15), transparent);
}

.hero-img-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}

.hero-img-small { height: 224px; }

.hero-img-large img, .hero-img-small img {
    width: 100%; height: 100%; object-fit: cover;
}

.img-placeholder {
    display: none;
    position: absolute; inset: 0;
    place-items: center; text-align: center;
    padding: 2rem;
    font-size: .875rem; font-weight: 500; color: var(--emerald-900);
}
.img-fallback img { display: none; }
.img-fallback .img-placeholder { display: grid; }

/* Stats bar */
.stats-bar {
    display: grid; gap: 1rem;
    border-radius: var(--radius);
    background: var(--emerald-900);
    padding: 1.25rem;
    margin-top: 1rem;
    color: white;
    box-shadow: 0 20px 50px rgba(6,78,59,.15);
}
@media (min-width: 768px) {
    .stats-bar { grid-template-columns: repeat(3, 1fr); padding: 2rem; }
}

.stat-item {
    padding: 1.5rem;
    border-radius: 1.5rem;
    background: rgba(255,255,255,.1);
    backdrop-filter: blur(8px);
}

.stat-number {
    font-size: 2.5rem; font-weight: 900; line-height: 1;
}

.stat-label {
    margin-top: .5rem;
    font-size: .875rem; color: var(--emerald-100);
}

/* ===== SECTIONS ===== */
.section { padding: 5rem 0; }
.section-white { background: var(--white); }
.section-dark { background: var(--emerald-950); color: white; }

.section-eyebrow {
    font-size: .8rem; font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .22em;
    color: var(--emerald-700);
    margin-bottom: .75rem;
}
.section-eyebrow.center { text-align: center; }
.section-eyebrow.light { color: var(--emerald-200); }

.section-title {
    font-size: clamp(1.875rem, 4vw, 3rem);
    font-weight: 900;
    letter-spacing: -.025em;
    text-align: center;
    color: var(--stone-950);
}
.section-title.light { color: white; }

.section-subtitle {
    max-width: 700px; margin: 1rem auto 0;
    text-align: center;
    font-size: 1.05rem; line-height: 1.7;
    color: var(--stone-700);
}
.section-subtitle.light { color: var(--emerald-100); }

/* ===== ABOUT ===== */
.about-grid {
    display: grid; gap: 2.5rem; align-items: center;
}
@media (min-width: 1024px) { .about-grid { grid-template-columns: 1fr 1fr; } }

.about-image {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    height: 420px;
    background: linear-gradient(135deg, var(--emerald-100), #ecfccb, #fef9c3);
    box-shadow: var(--shadow-sm);
}
.about-image img { width: 100%; height: 100%; object-fit: cover; }

.about-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900; letter-spacing: -.025em;
    line-height: 1.1;
}

.about-text {
    margin-top: 1.25rem;
    font-size: 1.1rem; line-height: 1.7;
    color: var(--stone-700);
}

.history-card {
    margin-top: 1.5rem;
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--amber-200);
    background: var(--amber-50);
}

.history-card h3 {
    display: flex; align-items: center; gap: .5rem;
    font-size: 1.25rem; font-weight: 700;
}

.history-card p {
    margin-top: .75rem;
    line-height: 1.7;
    color: var(--stone-700);
}

/* ===== RULES ===== */
.rules-grid {
    display: grid; gap: 1rem; margin-top: 3rem;
}
@media (min-width: 768px) { .rules-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .rules-grid { grid-template-columns: repeat(3, 1fr); } }

.rule-card {
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--stone-100);
    background: var(--bg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.rule-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.rule-icon {
    display: grid; place-items: center;
    width: 2.75rem; height: 2.75rem;
    border-radius: var(--radius-xs);
    background: var(--emerald-100);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.rule-card h3 {
    font-size: 1.1rem; font-weight: 700;
}

.rule-card p {
    margin-top: .5rem;
    font-size: .875rem; line-height: 1.6;
    color: var(--stone-700);
}

/* ===== COMMITTEES ===== */
.committees-grid {
    display: grid; gap: 1rem; margin-top: 3rem;
}
@media (min-width: 640px) { .committees-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .committees-grid { grid-template-columns: repeat(4, 1fr); } }

.committee-card {
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--stone-100);
    transition: var(--transition);
}
.committee-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.committee-icon {
    display: grid; place-items: center;
    width: 3.5rem; height: 3.5rem;
    border-radius: var(--radius-xs);
    background: var(--emerald-700);
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    transition: transform .25s ease;
}
.committee-card:hover .committee-icon { transform: scale(1.05); }

.committee-card h3 {
    font-size: 1.1rem; font-weight: 700;
}

.committee-card p {
    margin-top: .5rem;
    font-size: .875rem; line-height: 1.6;
    color: var(--stone-600);
}

/* ===== VIDEOS ===== */
.videos-grid {
    display: grid; gap: 1.25rem; margin-top: 3rem;
}
@media (min-width: 768px) { .videos-grid { grid-template-columns: repeat(3, 1fr); } }

.video-card {
    display: flex; flex-direction: column;
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,.1);
    backdrop-filter: blur(8px);
    transition: var(--transition);
    color: white;
}
.video-card:hover { background: rgba(255,255,255,.15); }

.video-play { font-size: 2.5rem; color: var(--emerald-200); }
.video-card h3 { margin-top: 1.25rem; font-size: 1.25rem; font-weight: 700; }
.video-card p { margin-top: .5rem; font-size: .875rem; color: var(--emerald-100); }
.video-link {
    margin-top: 1.25rem;
    font-size: .875rem; font-weight: 700;
    color: var(--emerald-200);
}

/* ===== MAP ===== */
.map-link { display: block; margin-top: 2rem; }

.map-card {
    display: flex; align-items: center; gap: 1.5rem;
    padding: 2rem;
    border-radius: var(--radius);
    background: var(--bg);
    border: 2px solid var(--emerald-100);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.map-card:hover {
    border-color: var(--emerald-200);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.map-pin {
    display: grid; place-items: center;
    width: 4rem; height: 4rem;
    border-radius: 1.5rem;
    background: var(--emerald-100);
    font-size: 1.75rem;
    flex-shrink: 0;
}

.map-info h3 {
    font-size: 1.25rem; font-weight: 700;
}
.map-info p {
    margin-top: .25rem;
    color: var(--stone-700); font-size: .95rem;
}
.map-cta {
    display: inline-block; margin-top: .75rem;
    font-size: .9rem; font-weight: 700;
    color: var(--emerald-700);
}

/* ===== CONTACT ===== */
.contact-card {
    max-width: 720px; margin: 0 auto;
    text-align: center;
    padding: 2rem;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-lg);
}
@media (min-width: 768px) { .contact-card { padding: 3rem; } }

.contact-icon {
    display: grid; place-items: center;
    width: 4rem; height: 4rem;
    border-radius: 1.5rem;
    background: var(--emerald-100);
    font-size: 1.75rem;
    margin: 0 auto 1.5rem;
}

.contact-card h2 {
    font-size: 2.5rem; font-weight: 900;
    letter-spacing: -.025em;
}

.contact-card > p {
    max-width: 540px; margin: 1rem auto 0;
    font-size: 1.1rem; line-height: 1.7;
    color: var(--stone-700);
}

.contact-buttons {
    display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem;
    margin-top: 2rem;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--stone-950);
    padding: 2rem 1rem;
    text-align: center;
    font-size: .875rem;
    color: var(--stone-300);
}

/* ===== ANIMATIONS ===== */
.reveal-up {
    opacity: 0; transform: translateY(24px);
    transition: opacity .7s ease, transform .7s ease;
}
.reveal-up.visible {
    opacity: 1; transform: translateY(0);
}
