/* ==========================================================================
   Global Youth Parliament — Botswana
   Fonts: Lato (body/UI) + Libre Baskerville (serif titles)
   Accent: Sky Blue #0081cd  ·  Authority: Indigo #1a237e
   ========================================================================== */

/* ---- Design tokens ------------------------------------------------------- */
:root {
  /* Brand */
  --primary: #0081cd;
  --primary-deep: #006699;
  --on-primary: #ffffff;
  --indigo: #1a237e;

  /* Botswana subtle cues */
  --bw-black: #1f1f1f;
  --bw-blue: #0081cd;   /* flag light-blue reads as our Sky Blue — on-brand */

  /* Text */
  --ink: #222222;
  --ink-body: #333333;
  --ink-muted: #898989;
  --ink-subtle: #999999;

  /* Surfaces */
  --canvas: #ffffff;
  --surface-1: #f7f7f7;
  --surface-2: #eeeeee;
  --surface-3: #f0f5df;
  --sky-soft: #bce4f7;
  --hairline: #dddddd;
  --hairline-soft: #eeeeee;

  /* Inverse (footer) */
  --inverse-canvas: #1f1f1f;
  --inverse-surface-1: #2a2a2a;
  --inverse-ink: #ffffff;
  --inverse-ink-muted: #aaaaaa;

  /* Accents */
  --accent-pink: #d61562;

  /* Radius */
  --r-sm: 5px;
  --r-md: 9px;
  --r-lg: 15px;
  --r-pill-sm: 20px;
  --r-pill: 30px;
  --r-circle: 50%;

  /* Spacing */
  --s-xxs: 4px;
  --s-xs: 8px;
  --s-sm: 12px;
  --s-md: 16px;
  --s-lg: 24px;
  --s-xl: 32px;
  --s-xxl: 48px;
  --s-section: 80px;

  /* Type */
  --font-body: "Lato", Helvetica, Arial, sans-serif;
  --font-serif: "Libre Baskerville", Georgia, serif;

  --maxw: 1200px;
}

/* ---- Reset --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 20px;
  line-height: 1.8;
  color: var(--ink-body);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-deep); text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 var(--s-md); color: var(--ink); font-weight: 700; line-height: 1.2; }
p { margin: 0 0 var(--s-md); }

/* ---- Layout helpers ------------------------------------------------------ */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--s-lg); }
.section { padding: var(--s-section) 0; }
.section--alt { background: var(--surface-1); }
.section__head { max-width: 720px; margin: 0 auto var(--s-xl); text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 700; line-height: 1.3;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--primary); margin-bottom: var(--s-sm);
}
.section__head h2 { font-size: 40px; line-height: 1.25; }
.lead { font-size: 20px; font-weight: 400; line-height: 1.6; color: var(--ink-body); }
.grid { display: grid; gap: var(--s-lg); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 15px; font-weight: 600; letter-spacing: .3px; line-height: 1.3;
  padding: 12px 28px; border-radius: var(--r-sm);
  border: 2px solid transparent; cursor: pointer; transition: all .18s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.btn--primary:hover { background: var(--primary-deep); border-color: var(--primary-deep); color: #fff; }
.btn--pill { border-radius: var(--r-pill); padding: 12px 32px; }
.btn--outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn--outline:hover { background: var(--primary); color: #fff; }
.btn--indigo { background: var(--indigo); color: #fff; border-color: var(--indigo); }
.btn--indigo:hover { background: #0e1650; border-color: #0e1650; color: #fff; }
.btn--light { background: #fff; color: var(--primary); border-color: #fff; }
.btn--light:hover { background: var(--surface-1); color: var(--primary-deep); }

/* ---- Top nav ------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--canvas); border-bottom: 1px solid var(--hairline);
  height: 72px;
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav__brand { display: flex; align-items: center; flex: none; }
.nav__brand:hover { text-decoration: none; }
.nav__logo { height: 52px; width: auto; max-width: none; display: block; }
.nav__links { display: flex; align-items: center; gap: var(--s-lg); list-style: none; margin: 0; padding: 0; }
.nav__links a { font-size: 15px; font-weight: 600; color: var(--ink); }
.nav__links a:hover { color: var(--primary); text-decoration: none; }
.nav__cta { display: flex; align-items: center; gap: var(--s-sm); }
.nav__cta-mobile { display: none; } /* only shown inside the mobile dropdown */
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 10px; margin: 0; line-height: 0; }
.nav__toggle span { display: block; width: 26px; height: 3px; border-radius: 2px; background: var(--ink); margin: 5px 0; }

/* ---- Hero ---------------------------------------------------------------- */
.hero { background: var(--surface-1); overflow: hidden; }
.hero__inner {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--s-xxl);
  align-items: stretch; padding-top: 0; padding-bottom: 0;
}
.hero__body { align-self: center; padding: var(--s-section) 0; }
.hero__eyebrow { color: var(--primary); }
.hero h1 { font-size: 56px; line-height: 1.1; color: var(--ink); margin-bottom: var(--s-md); }
.hero h1 .accent { color: var(--primary); }
.hero__sub { font-size: 20px; font-weight: 300; line-height: 1.7; color: var(--ink-body); margin-bottom: var(--s-lg); max-width: 34ch; }
.hero__actions { display: flex; gap: var(--s-md); flex-wrap: wrap; }
.hero__art { position: relative; }

/* Hero photo — transparent cut-out anchored to the bottom, fills column height */
.hero__art { display: flex; align-items: flex-end; justify-content: center; }
.hero__photo {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 100%;
}
.hero__photo img {
  width: 100%;
  max-width: 560px;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Photo placeholder */
.ph {
  position: relative; width: 100%; background: var(--sky-soft);
  border: 1px dashed #7fbfe0; border-radius: var(--r-lg);
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: var(--primary-deep); overflow: hidden;
}
.ph::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(0,129,205,.10), rgba(26,35,126,.06));
}
.ph__label {
  position: relative; z-index: 1; font-size: 14px; font-weight: 600;
  padding: var(--s-md); line-height: 1.4;
}
.ph__label svg { display: block; margin: 0 auto var(--s-xs); opacity: .8; }
.ph--hero { aspect-ratio: 4/3; }
.ph--wide { aspect-ratio: 16/9; }
.ph--square { aspect-ratio: 1/1; }

/* ---- Stat row ------------------------------------------------------------ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-lg); text-align: center; }
.stat__num { font-family: var(--font-body); font-size: 44px; font-weight: 700; color: var(--primary); line-height: 1.1; }
.stat__label { font-size: 15px; font-weight: 400; color: var(--ink-muted); }

/* ---- Cards --------------------------------------------------------------- */
.card {
  background: var(--canvas); border: 1px solid var(--hairline);
  border-radius: var(--r-lg); padding: var(--s-xl);
  transition: box-shadow .18s ease, transform .18s ease;
}
.card:hover { box-shadow: 0 12px 30px rgba(0,0,0,.08); transform: translateY(-3px); }
.card h3 { font-size: 20px; font-weight: 600; margin-bottom: var(--s-xs); }
.card p { font-size: 16px; font-weight: 300; line-height: 1.7; margin: 0; }
.card--accent { background: var(--sky-soft); border-color: transparent; }

.icon-badge {
  width: 64px; height: 64px; border-radius: var(--r-circle);
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--s-md);
}
.icon-badge--indigo { background: var(--indigo); }

/* ---- Feature (FEERS) split ----------------------------------------------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-xxl); align-items: center; }
.feers-photo { display: block; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--hairline); padding: var(--s-lg); transition: box-shadow .18s ease, transform .18s ease; }
.feers-photo:hover { box-shadow: 0 14px 34px rgba(0,0,0,.10); transform: translateY(-3px); }
.feers-photo img { width: 100%; height: auto; display: block; border-radius: var(--r-md); }
.feature__body h2 { font-size: 36px; line-height: 1.2; }
.pill {
  display: inline-block; background: var(--surface-3); color: var(--ink-body);
  font-size: 13px; font-weight: 600; padding: 6px 16px; border-radius: var(--r-pill);
  margin-bottom: var(--s-md);
}

/* ---- Membership table ---------------------------------------------------- */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--hairline); border-radius: var(--r-lg); overflow: hidden; }
table.tbl th, table.tbl td { text-align: left; padding: var(--s-md) var(--s-lg); font-size: 16px; }
table.tbl thead th { background: var(--indigo); color: #fff; font-weight: 600; }
table.tbl tbody tr { border-top: 1px solid var(--hairline); }
table.tbl tbody tr:nth-child(even) { background: var(--surface-1); }
table.tbl .fee { font-weight: 700; color: var(--primary); white-space: nowrap; }

/* ---- Photo gallery ------------------------------------------------------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-md); }
.gallery__item { display: block; overflow: hidden; border-radius: var(--r-lg); aspect-ratio: 4/3; background: var(--surface-2); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.gallery__item:hover img { transform: scale(1.06); }

/* ---- Full-width project banner ------------------------------------------- */
.banner { position: relative; width: 100%; overflow: hidden; background: var(--bw-black); }
.banner__img { width: 100%; height: 480px; object-fit: cover; object-position: center 30%; display: block; }
.banner__overlay {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end;
  background: linear-gradient(90deg, rgba(15,20,35,.82) 0%, rgba(15,20,35,.45) 45%, rgba(15,20,35,.05) 75%);
  padding-bottom: var(--s-xxl);
}
.banner__overlay .container { max-width: var(--maxw); }
.banner__eyebrow { color: #7fd0f4; }
.banner__overlay h2 { color: #fff; font-size: 40px; line-height: 1.15; margin-bottom: var(--s-sm); max-width: 16ch; }
.banner__overlay p { color: rgba(255,255,255,.92); font-weight: 300; font-size: 19px; line-height: 1.6; max-width: 46ch; margin: 0; }

/* ---- CTA banner ---------------------------------------------------------- */
.cta {
  background: var(--primary); color: #fff; text-align: center;
  padding: var(--s-xxl) var(--s-lg);
}
.cta h2 { color: #fff; font-size: 36px; line-height: 1.2; }
.cta p { color: rgba(255,255,255,.9); font-weight: 300; max-width: 620px; margin: 0 auto var(--s-lg); }
.cta .btn--light { margin: 0 var(--s-xs); }

/* ---- Footer -------------------------------------------------------------- */
.footer { background: var(--inverse-canvas); color: var(--inverse-ink-muted); padding: 64px 0 32px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: var(--s-xl); }
.footer h4 { color: #fff; font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; margin-bottom: var(--s-md); }
.footer a { color: var(--inverse-ink-muted); font-size: 15px; }
.footer a:hover { color: #fff; text-decoration: none; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: var(--s-xs); font-size: 15px; line-height: 1.7; }
.footer__brand p { font-size: 15px; font-weight: 300; line-height: 1.7; }
.footer__social { display: flex; gap: var(--s-sm); margin-top: var(--s-md); }
.footer__social a { width: 38px; height: 38px; border-radius: var(--r-circle); background: var(--inverse-surface-1); display: flex; align-items: center; justify-content: center; color: #fff; }
.footer__social a:hover { background: var(--primary); }
.footer__bottom { border-top: 1px solid var(--inverse-surface-1); margin-top: var(--s-xl); padding-top: var(--s-lg); display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s-sm); font-size: 13px; color: var(--ink-muted); }
/* subtle Botswana cue: flag-inspired thin bar */
.footer__flag { height: 6px; display: flex; }
.footer__flag i { flex: 1; }
.footer__flag i:nth-child(1){ background: var(--bw-blue);} .footer__flag i:nth-child(2){ background:#fff;} .footer__flag i:nth-child(3){ background: var(--bw-black);} .footer__flag i:nth-child(4){ background:#fff;} .footer__flag i:nth-child(5){ background: var(--bw-blue);}

/* ---- Responsive ---------------------------------------------------------- */
@media (max-width: 992px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  body { font-size: 18px; }
  .section { padding: 56px 0; }
  /* hide the desktop links + the top-bar Contact button; show hamburger */
  .nav__links { display: none; }
  .nav__cta .btn { display: none; }
  .nav__toggle { display: block; }
  /* dropdown menu */
  .nav__links.open {
    display: flex; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; background: #fff;
    border-bottom: 1px solid var(--hairline); box-shadow: 0 12px 24px rgba(0,0,0,.08);
    padding: var(--s-xs) var(--s-lg) var(--s-lg);
  }
  .nav__links.open li { padding: 0; border-bottom: 1px solid var(--hairline-soft); text-align: left; width: 100%; }
  .nav__links.open .nav__cta-mobile { display: block; }
  .nav__links.open li a { display: block; padding: var(--s-md) 0; font-size: 16px; }
  /* Contact Us shown as a full-width button at the bottom of the menu */
  .nav__links.open .nav__cta-mobile { border-bottom: 0; padding-top: var(--s-md); }
  .nav__links.open .nav__cta-mobile a { display: block; text-align: center; background: var(--primary); color: #fff; border-radius: var(--r-sm); padding: 12px 0; font-weight: 600; }
  .nav__logo { height: 40px; }
  .hero__inner, .feature { grid-template-columns: 1fr; gap: var(--s-lg); }
  .hero__body { padding: var(--s-xl) 0 var(--s-md); align-self: start; }
  .hero h1 { font-size: 38px; }
  .section__head h2 { font-size: 30px; }
  .banner__img { height: 380px; }
  .banner__overlay { background: linear-gradient(0deg, rgba(15,20,35,.85) 0%, rgba(15,20,35,.35) 55%, rgba(15,20,35,.15) 100%); }
  .banner__overlay h2 { font-size: 28px; }
  .banner__overlay p { font-size: 16px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: var(--s-lg); }
}
@media (max-width: 560px) {
  .grid--3, .grid--4, .grid--2 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; text-align: center; }
  /* CTA buttons: stack cleanly instead of overlapping */
  .cta .btn { display: block; width: 100%; max-width: 300px; margin: 0 auto var(--s-sm); }
  .cta .btn:last-child { margin-bottom: 0; }
}
