/* ============================================================
   BRALIM — Design System
   Deep Green + Gold · Poppins (headings) / Inter (body)
   ============================================================ */

:root {
  /* Brand */
  --green-950: #062319;
  --green-900: #0A3D2C;
  --green-800: #0E4A36;
  --green-700: #145240;
  --green-600: #1B6B4F;
  --green-500: #2E8B67;
  --green-100: #E7F1EC;
  --green-050: #F3F8F5;

  --gold-600: #B78A1E;
  --gold-500: #C9A227;
  --gold-400: #D9B84A;
  --gold-200: #F0DCA0;

  --cream: #FBF8F1;
  --sand: #F5EFE2;
  --ink: #17211C;
  --body: #3C4a43;
  --muted: #6B7A72;
  --line: #E4E9E5;
  --white: #ffffff;

  --shadow-sm: 0 1px 2px rgba(6,35,25,.06), 0 2px 8px rgba(6,35,25,.06);
  --shadow-md: 0 10px 30px rgba(6,35,25,.10);
  --shadow-lg: 0 24px 60px rgba(6,35,25,.16);

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 26px;

  --container: 1160px;
  --font-head: 'Poppins', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--body);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--green-600); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--gold-600); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; font-weight: 700; }
ul { list-style: none; padding: 0; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }
.sr-only, .skip-link {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: fixed; top: 12px; left: 12px; width: auto; height: auto; z-index: 999;
  background: var(--green-900); color: #fff; padding: 10px 16px; border-radius: 8px; clip: auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-head); font-weight: 600; font-size: .98rem;
  padding: 13px 26px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .18s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
  white-space: nowrap; line-height: 1;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold-500); color: var(--green-950); box-shadow: 0 8px 20px rgba(201,162,39,.28); }
.btn-gold:hover { background: var(--gold-400); color: var(--green-950); }
.btn-green { background: var(--green-700); color: #fff; }
.btn-green:hover { background: var(--green-600); color: #fff; }
.btn-outline { background: transparent; border-color: var(--green-700); color: var(--green-800); }
.btn-outline:hover { background: var(--green-700); color: #fff; }
.btn-light { background: #fff; color: var(--green-900); }
.btn-light:hover { background: var(--gold-200); color: var(--green-950); }
.btn-ghost { background: transparent; color: var(--body); border-color: var(--line); }
.btn-ghost:hover { background: var(--green-050); color: var(--green-800); }
.btn-lg { padding: 16px 34px; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { border-radius: 10px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 1.35rem; color: var(--green-900); letter-spacing: .5px; }
.brand-tag { font-size: .68rem; color: var(--muted); letter-spacing: .3px; }

.main-nav .nav-list { display: flex; align-items: center; gap: 4px; }
.nav-list a {
  display: inline-block; padding: 9px 14px; border-radius: 999px;
  color: var(--green-900); font-weight: 500; font-size: .95rem;
}
.nav-list a:hover { background: var(--green-050); color: var(--green-800); }
.nav-list a.is-active { color: var(--green-800); background: var(--green-100); }
.nav-list a.nav-cta {
  background: var(--gold-500); color: var(--green-950); font-weight: 600; padding: 10px 20px;
  box-shadow: 0 6px 16px rgba(201,162,39,.28);
}
.nav-list a.nav-cta:hover { background: var(--gold-400); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 2.5px; background: var(--green-900); border-radius: 2px; transition: .25s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-nav { border-top: 1px solid var(--line); background: #fff; }
.mobile-nav .nav-list { flex-direction: column; padding: 12px 22px 20px; gap: 2px; }
.mobile-nav .nav-list a { display: block; padding: 12px 14px; border-radius: 12px; }
.mobile-nav .nav-list a.nav-cta { text-align: center; margin-top: 8px; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-sm { padding: 56px 0; }
.section--tint { background: var(--green-050); }
.section--cream { background: var(--cream); }
.section--dark { background: linear-gradient(160deg, var(--green-900), var(--green-950)); color: #dfeee8; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: .78rem; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--gold-600);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--gold-500); border-radius: 2px; }
.section--dark .eyebrow { color: var(--gold-400); }

.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.3vw, 2.5rem); }
h3 { font-size: 1.28rem; }
.lead { font-size: 1.14rem; color: var(--muted); }
.section--dark .lead { color: #bcd5cb; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #eaf4ef; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(1000px 500px at 80% -10%, rgba(201,162,39,.22), transparent 60%),
    linear-gradient(155deg, var(--green-900) 0%, var(--green-950) 55%, #041b13 100%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 22px 22px; opacity: .5;
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; padding: 96px 0 92px; }
.hero h1 { color: #fff; }
.hero h1 .hl { color: var(--gold-400); }
.hero p.hero-text { color: #cfe4da; font-size: 1.18rem; margin-top: 18px; max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-stats { display: flex; gap: 26px; margin-top: 40px; flex-wrap: wrap; }
.hero-stat .n { font-family: var(--font-head); font-weight: 700; font-size: 1.7rem; color: var(--gold-400); }
.hero-stat .l { font-size: .85rem; color: #a9c6ba; }

.hero-visual { position: relative; }
.hero-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-lg); padding: 14px; box-shadow: var(--shadow-lg); backdrop-filter: blur(4px);
}
.hero-photo { aspect-ratio: 4/3; border-radius: 18px; }
.hero-badge {
  position: absolute; bottom: -18px; left: -18px; background: #fff; color: var(--green-900);
  border-radius: 16px; padding: 14px 18px; box-shadow: var(--shadow-md); display: flex; gap: 12px; align-items: center;
}
.hero-badge .emoji { font-size: 1.6rem; }
.hero-badge b { font-family: var(--font-head); display: block; font-size: 1.05rem; }
.hero-badge span { font-size: .8rem; color: var(--muted); }

/* Image placeholders */
.ph {
  position: relative; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--green-600), var(--green-800));
  color: rgba(255,255,255,.85); border-radius: 14px; overflow: hidden; text-align: center;
  font-family: var(--font-head); font-weight: 600; letter-spacing: .3px;
}
.ph::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120px 120px at 30% 20%, rgba(255,255,255,.16), transparent 60%);
}
.ph .ph-label { position: relative; z-index: 1; font-size: .82rem; padding: 8px 12px; opacity: .92; }
.ph--gold { background: linear-gradient(135deg, var(--gold-400), var(--gold-600)); color: #3a2c05; }
.ph--sand { background: linear-gradient(135deg, var(--sand), #e7dcc4); color: var(--green-800); }
.ph--4x3 { aspect-ratio: 4/3; }
.ph--1x1 { aspect-ratio: 1/1; }
.ph--16x9 { aspect-ratio: 16/9; }
.ph--3x4 { aspect-ratio: 3/4; }

/* ---------- Grid helpers ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }

/* ---------- Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm); transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
  height: 100%;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--green-100); }
.card .card-icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: var(--green-100); color: var(--green-700); font-size: 1.5rem; margin-bottom: 18px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .98rem; }
.card .card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 600; font-family: var(--font-head); font-size: .92rem; }
.card .card-link::after { content: "→"; transition: transform .2s var(--ease); }
.card:hover .card-link::after { transform: translateX(4px); }

.program-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.program-card .ph { border-radius: 0; }
.program-card .pc-body { padding: 26px; display: flex; flex-direction: column; flex: 1; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; padding: 26px 16px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.section--dark .stat { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); }
.stat .num { font-family: var(--font-head); font-weight: 800; font-size: 2.6rem; color: var(--green-700); line-height: 1; }
.section--dark .stat .num { color: var(--gold-400); }
.stat .lbl { margin-top: 8px; color: var(--muted); font-weight: 500; }
.section--dark .stat .lbl { color: #bcd5cb; }

/* ---------- Values ---------- */
.value { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.value .v-ico { flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--gold-200); color: var(--gold-600); display: grid; place-items: center; font-size: 1.3rem; }
.value h3 { font-size: 1.08rem; }
.value p { font-size: .93rem; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 56px; background: linear-gradient(150deg, var(--green-800), var(--green-950)); color: #eaf4ef; }
.cta-band::before { content:""; position:absolute; right:-60px; top:-60px; width:260px; height:260px; border-radius:50%; background: radial-gradient(circle, rgba(201,162,39,.35), transparent 65%); }
.cta-band h2 { color: #fff; position: relative; }
.cta-band p { color: #c9ddd3; max-width: 620px; position: relative; }
.cta-band .hero-cta { margin-top: 26px; position: relative; }

/* ---------- Forms ---------- */
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-sm); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .9rem; color: var(--ink); font-family: var(--font-head); }
.field label .req { color: #c0392b; }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 1rem; padding: 13px 15px; border: 1.5px solid var(--line);
  border-radius: 12px; background: var(--green-050); color: var(--ink); transition: border-color .2s, background .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--green-500); background: #fff; box-shadow: 0 0 0 4px rgba(46,139,103,.12);
}
.field textarea { resize: vertical; min-height: 130px; }
.check { flex-direction: row; align-items: flex-start; gap: 12px; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--green-600); }
.check label { font-family: var(--font-body); font-weight: 400; font-size: .95rem; color: var(--body); }
.form-note { font-size: .9rem; margin-top: 4px; min-height: 1.2em; }
.form-note.ok { color: var(--green-600); font-weight: 600; }
.form-note.err { color: #c0392b; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--green-050); cursor: pointer; font-size: .9rem; }
.chip input { width: 16px; height: 16px; accent-color: var(--green-600); }
.chip:has(input:checked) { border-color: var(--green-500); background: var(--green-100); color: var(--green-800); font-weight: 600; }

.newsletter { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter input { flex: 1; min-width: 0; padding: 12px 14px; border-radius: 10px; border: 1.5px solid rgba(255,255,255,.16); background: rgba(255,255,255,.08); color: #fff; }
.newsletter input::placeholder { color: rgba(255,255,255,.6); }
.newsletter .form-note { flex-basis: 100%; }

/* ---------- Breadcrumb / page hero ---------- */
.page-hero { position: relative; color: #eaf4ef; overflow: hidden; padding: 66px 0 58px; }
.page-hero .hero-bg { z-index: 0; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; max-width: 760px; }
.page-hero p { color: #cfe4da; max-width: 640px; margin-top: 14px; font-size: 1.12rem; }
.breadcrumb { display: flex; gap: 8px; font-size: .85rem; color: #a9c6ba; margin-bottom: 16px; flex-wrap: wrap; }
.breadcrumb a { color: var(--gold-400); }

/* ---------- Prose ---------- */
.prose h2 { margin: 34px 0 12px; }
.prose h3 { margin: 26px 0 8px; }
.prose p { margin-bottom: 16px; }
.prose ul.bullets { margin: 0 0 18px; display: grid; gap: 10px; }
.prose ul.bullets li { position: relative; padding-left: 30px; color: var(--body); }
.prose ul.bullets li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; background: var(--green-100); color: var(--green-700); border-radius: 6px; display: grid; place-items: center; font-size: .7rem; font-weight: 700; }

/* ---------- List / news / events ---------- */
.post-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.post-card .ph { border-radius: 0; }
.post-card .pc-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--green-700); background: var(--green-100); padding: 5px 11px; border-radius: 999px; }
.meta { font-size: .82rem; color: var(--muted); margin-top: 10px; }

.event-row { display: grid; grid-template-columns: 92px 1fr auto; gap: 22px; align-items: center; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: box-shadow .2s, transform .2s; }
.event-row:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.event-date { text-align: center; background: var(--green-900); color: #fff; border-radius: 14px; padding: 12px 8px; font-family: var(--font-head); }
.event-date .d { font-size: 1.7rem; font-weight: 700; line-height: 1; color: var(--gold-400); }
.event-date .m { font-size: .78rem; text-transform: uppercase; letter-spacing: 1px; }
.event-info h3 { font-size: 1.15rem; }
.event-info .where { font-size: .9rem; color: var(--muted); margin-top: 4px; }

/* ---------- Accordion (program pages / FAQ) ---------- */
details.acc { border: 1px solid var(--line); border-radius: 14px; padding: 4px 20px; background: #fff; margin-bottom: 12px; }
details.acc summary { cursor: pointer; font-family: var(--font-head); font-weight: 600; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; color: var(--ink); }
details.acc summary::-webkit-details-marker { display: none; }
details.acc summary::after { content: "+"; font-size: 1.4rem; color: var(--green-600); }
details.acc[open] summary::after { content: "–"; }
details.acc .acc-body { padding: 0 0 18px; color: var(--muted); }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery .ph { border-radius: 12px; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 18px; right: 18px; bottom: 18px; z-index: 200; max-width: 720px; margin-inline: auto;
  background: var(--green-950); color: #dfeee8; border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px; padding: 18px 22px; box-shadow: var(--shadow-lg);
  display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.cookie-banner p { font-size: .9rem; margin: 0; }
.cookie-banner a { color: var(--gold-400); }
.cookie-actions { display: flex; gap: 10px; }
.cookie-actions .btn { padding: 10px 18px; }
.cookie-actions .btn-ghost { color: #cfe4da; border-color: rgba(255,255,255,.2); }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-950); color: #c2d6cc; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.1fr 1.4fr; gap: 34px; padding: 66px 22px 42px; }
.footer-brand p { font-size: .92rem; margin-top: 14px; max-width: 300px; }
.brand--footer .brand-name { color: #fff; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a, .footer-contact { color: #a9c6ba; font-size: .92rem; }
.footer-col a:hover { color: var(--gold-400); }
.footer-contact li { margin-bottom: 8px; }
.social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.social-link { font-size: .8rem; padding: 7px 12px; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; color: #cfe4da; }
.social-link:hover { background: rgba(255,255,255,.08); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; flex-wrap: wrap; }
.footer-bottom p { font-size: .85rem; color: #8faea1; }
.legal-links { display: flex; gap: 18px; flex-wrap: wrap; }
.legal-links a { font-size: .85rem; color: #a9c6ba; }

/* ---------- Reveal animation ---------- */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; padding: 66px 0; }
  .hero-visual { max-width: 480px; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .mobile-nav[hidden] { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 60px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .event-row { grid-template-columns: 72px 1fr; }
  .event-row .btn { grid-column: 1 / -1; }
  .cta-band { padding: 36px 26px; }
  .footer-bottom-inner { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
