/* ============================================================
   Grace Christian Academy — Website Draft
   Shared stylesheet
   Brand: Navy & Gold · Montserrat · "Known. Loved. Challenged."
   ============================================================ */

:root {
  /* Core palette */
  --navy:        #0e2748;   /* primary navy */
  --navy-deep:   #081a32;   /* darker navy for depth */
  --navy-700:    #16395f;
  --gold:        #c8a13a;   /* primary gold */
  --gold-bright: #e3c264;   /* highlight gold */
  --gold-soft:   #f3e9cf;   /* pale gold wash */
  --cream:       #faf7f0;   /* warm off-white background */
  --ink:         #1d2733;   /* body text */
  --muted:       #5c6675;   /* secondary text */
  --line:        #e4e0d6;   /* hairlines */
  --white:       #ffffff;

  --maxw: 1180px;
  --radius: 14px;
  --shadow: 0 18px 40px rgba(14, 39, 72, 0.12);
  --shadow-sm: 0 6px 18px rgba(14, 39, 72, 0.08);
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--gold); }

h1,h2,h3,h4 { font-family: 'Montserrat', sans-serif; color: var(--navy); line-height: 1.15; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -.5px; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); letter-spacing: -.3px; }
h3 { font-size: 1.2rem; }
p { color: var(--ink); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 86px 0; }
.section--tight { padding: 56px 0; }
.center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Eyebrow label */
.eyebrow {
  display: inline-block;
  font-size: .8rem; font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 14px;
}
.eyebrow--light { color: var(--gold-bright); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: inherit; font-weight: 700; font-size: .95rem;
  letter-spacing: .3px; padding: 14px 28px; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: var(--gold); color: var(--navy-deep); box-shadow: 0 10px 24px rgba(200,161,58,.35); }
.btn--gold:hover { background: var(--gold-bright); color: var(--navy-deep); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-700); color: #fff; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn--ghost:hover { background: #fff; color: var(--navy); border-color:#fff; }
.btn--ghost-navy { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--ghost-navy:hover { background: var(--navy); color:#fff; }

/* ============================================================
   TOP BAR + NAV
   ============================================================ */
.topbar {
  background: var(--navy-deep); color: rgba(255,255,255,.75);
  font-size: .82rem; letter-spacing: .3px;
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 42px; flex-wrap: wrap; }
.topbar a { color: rgba(255,255,255,.78); }
.topbar a:hover { color: var(--gold-bright); }
.topbar__contact { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar__social { display: flex; gap: 16px; }

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: flex-end; gap: 28px; min-height: 78px; }
.nav__inner .brand { margin-right: auto; }   /* logo left; links + button grouped right */
.brand { display: flex; align-items: center; gap: 14px; }
.brand__mark {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(150deg, var(--navy), var(--navy-700));
  color: var(--gold-bright);
  display: grid; place-items: center;
  font-weight: 800; font-size: 1.25rem; letter-spacing: 1px;
  border: 2px solid var(--gold);
  flex-shrink: 0;
}
.brand__logo { height: 50px; width: auto; display: block; flex-shrink: 0; }
.brand__logo--footer { height: 56px; }
.brand__text strong { display: block; color: var(--navy); font-size: 1.05rem; line-height: 1.1; }
.brand__text span { font-size: .72rem; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); font-weight: 700; }

.nav__links { display: flex; align-items: center; gap: 26px; list-style: none; }
.nav__links a { font-weight: 600; font-size: .95rem; color: var(--navy); position: relative; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--gold); transition: width .25s var(--ease);
}
.nav__links a:hover::after, .nav__links a.is-active::after { width: 100%; }
.nav__cta { display: flex; align-items: center; gap: 12px; }

.nav__toggle { display: inline-flex; flex-direction: column; justify-content: center; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 26px; height: 3px; background: var(--navy); border-radius: 3px; margin: 3px 0; transition: .3s; }

@media (max-width: 760px) {
  .nav__links { display: none; }          /* burger handles nav on small screens */
  .nav__cta .btn { padding: 11px 16px; font-size: .82rem; }
}
@media (max-width: 420px) {
  .nav__cta .btn { display: none; }       /* Request More Info lives in the drawer footer here */
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: linear-gradient(150deg, var(--navy-deep) 0%, var(--navy) 55%, var(--navy-700) 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 80% 15%, rgba(200,161,58,.22), transparent 45%),
    radial-gradient(circle at 12% 85%, rgba(200,161,58,.12), transparent 40%);
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding: 96px 0 104px; }
.hero h1 { color: #fff; }
.hero h1 .accent { color: var(--gold-bright); }
.hero p { color: rgba(255,255,255,.85); font-size: 1.18rem; margin: 22px 0 32px; max-width: 52ch; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__since {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .8rem; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--gold-bright); font-weight: 700; margin-bottom: 18px;
}
.hero__since::before { content: ""; width: 34px; height: 2px; background: var(--gold); }

/* ---------- Full-width VIDEO hero ---------- */
.sr-only {
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}
.hero-video {
  position: relative; width: 100%;
  height: min(88vh, 780px); min-height: 480px;
  overflow: hidden; background: var(--navy-deep);
}
.hero-video__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-video__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(8,26,50,.92) 0%, rgba(8,26,50,.10) 42%, rgba(8,26,50,.30) 100%),
    radial-gradient(circle at 78% 20%, rgba(200,161,58,.10), transparent 50%);
}
.hero-video__overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; }
.hero-video__overlay .wrap { width: 100%; padding-bottom: 52px; }
.hero-video__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--gold-bright); font-weight: 700; font-size: .8rem;
  letter-spacing: 2.5px; text-transform: uppercase; margin-bottom: 18px;
}
.hero-video__eyebrow::before { content:""; width: 34px; height: 2px; background: var(--gold); }
.hero-video__tagline { color:#fff; font-size: clamp(1.1rem, 2.2vw, 1.5rem); font-weight: 600; max-width: 30ch; margin-bottom: 22px; }
.hero-video__tagline .accent { color: var(--gold-bright); }
.hero-video__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-video__sound {
  position: absolute; top: 18px; right: 22px; z-index: 3;
  width: 42px; height: 42px; border-radius: 50%; cursor: pointer;
  background: rgba(8,26,50,.45); border: 1px solid rgba(255,255,255,.4);
  color:#fff; display: grid; place-items: center; font-size: .95rem;
  backdrop-filter: blur(4px); transition: background .2s var(--ease);
}
.hero-video__sound:hover { background: var(--gold); color: var(--navy-deep); border-color: var(--gold); }
@media (max-width: 640px) {
  .hero-video { height: 72vh; min-height: 440px; }
  .hero-video__overlay .wrap { padding-bottom: 36px; }
}

/* Hero visual placeholder */
.hero__visual {
  position: relative; aspect-ratio: 4/3.4; border-radius: 18px;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.04) 0 14px, transparent 14px 28px),
    linear-gradient(160deg, rgba(255,255,255,.16), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.22);
  display: grid; place-items: center; text-align: center; color: rgba(255,255,255,.7);
}
.hero__visual .ph-icon { font-size: 2.4rem; margin-bottom: 8px; }
.hero__visual small { display:block; letter-spacing:1.5px; text-transform:uppercase; font-size:.72rem; }

/* Stats strip */
.stats { background: var(--navy-deep); color: #fff; }
.stats__grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; padding: 36px 0; text-align: center; }
.stats__num { font-size: 2.3rem; font-weight: 800; color: var(--gold-bright); line-height: 1; }
.stats__label { font-size: .82rem; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,.7); margin-top: 8px; }

/* ============================================================
   IMAGE PLACEHOLDERS
   ============================================================ */
.ph {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background:
    repeating-linear-gradient(45deg, rgba(14,39,72,.05) 0 16px, transparent 16px 32px),
    linear-gradient(160deg, var(--gold-soft), #e9eef4);
  border: 1px dashed rgba(14,39,72,.25);
  display: grid; place-items: center; text-align: center; color: var(--navy);
  min-height: 240px;
}
.ph small { display: block; letter-spacing: 1.5px; text-transform: uppercase; font-size: .72rem; color: var(--muted); margin-top: 6px; }
.ph .ph-icon { font-size: 2rem; opacity: .8; }
.ph--tall { min-height: 420px; }

/* Real <img> media (placeholder photos) */
.media-img {
  display: block; width: 100%; height: 100%; min-height: 420px;
  object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.pcard__img { display: block; width: 100%; height: 200px; object-fit: cover; }

/* ============================================================
   GENERIC LAYOUT HELPERS
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split--reverse .split__media { order: 2; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; }

.card {
  background: #fff; border-radius: var(--radius); padding: 30px;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card__icon {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: var(--gold-soft); color: var(--navy); font-size: 1.4rem; margin-bottom: 16px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .96rem; }

/* Program card with photo top */
.pcard { background:#fff; border-radius: var(--radius); overflow:hidden; border:1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.pcard:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.pcard .ph { border-radius: 0; border: 0; border-bottom: 1px dashed rgba(14,39,72,.2); min-height: 190px; }
.pcard__body { padding: 26px; }
.pcard__tag { font-size: .72rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.pcard__body h3 { margin: 6px 0 10px; }
.pcard__body p { color: var(--muted); font-size: .95rem; }

/* ============================================================
   VALUES BAND
   ============================================================ */
.values { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.values::before { content:""; position:absolute; inset:0; background: radial-gradient(circle at 50% 0%, rgba(200,161,58,.16), transparent 55%); }
.values .wrap { position: relative; }
.values h2 { color: #fff; }
.values__motto { font-size: clamp(1.8rem,4vw,3rem); font-weight:800; letter-spacing:-.5px; }
.values__motto .dot { color: var(--gold-bright); }
.values__grid { display:grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 46px; }
.value {
  border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius);
  padding: 28px; background: rgba(255,255,255,.04);
}
.value h3 { color: var(--gold-bright); font-size: 1.05rem; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 8px; }
.value p { color: rgba(255,255,255,.8); font-size: .95rem; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.quote { background:#fff; border-radius: var(--radius); padding: 34px; border:1px solid var(--line); box-shadow: var(--shadow-sm); }
.quote__mark { font-family: Georgia, serif; font-size: 3rem; color: var(--gold); line-height: .6; }
.quote p { font-size: 1.05rem; color: var(--ink); margin: 10px 0 18px; }
.quote__who { display:flex; align-items:center; gap: 14px; }
.quote__avatar { width: 46px; height:46px; border-radius:50%; background: var(--gold-soft); display:grid; place-items:center; color:var(--navy); font-weight:800; }
.quote__who strong { display:block; color: var(--navy); }
.quote__who span { font-size:.85rem; color: var(--muted); }

/* ============================================================
   CTA BANNER (Request More Info)
   ============================================================ */
.cta {
  background: linear-gradient(120deg, var(--gold) 0%, var(--gold-bright) 100%);
  color: var(--navy-deep); border-radius: 22px; padding: 56px;
  display: grid; grid-template-columns: 1.3fr .7fr; gap: 30px; align-items: center;
}
.cta h2 { color: var(--navy-deep); }
.cta p { color: rgba(8,26,50,.8); margin-top: 8px; }
.cta__actions { display:flex; justify-content:flex-end; }
@media (max-width: 820px){ .cta { grid-template-columns: 1fr; padding: 38px 28px; } .cta__actions{ justify-content:flex-start; } }

/* ============================================================
   PAGE HEADER (inner pages)
   ============================================================ */
.pagehead { background: linear-gradient(150deg, var(--navy-deep), var(--navy)); color:#fff; position:relative; overflow:hidden; }
.pagehead::before { content:""; position:absolute; inset:0; background: radial-gradient(circle at 85% 20%, rgba(200,161,58,.2), transparent 50%); }
.pagehead .wrap { position: relative; padding: 72px 24px 78px; }
.pagehead h1 { color:#fff; }
.pagehead p { color: rgba(255,255,255,.82); max-width: 60ch; margin-top: 12px; font-size: 1.1rem; }
.crumbs { font-size:.82rem; letter-spacing:1px; text-transform:uppercase; color: var(--gold-bright); margin-bottom: 14px; }
.crumbs a { color: var(--gold-bright); }

/* ============================================================
   FORM
   ============================================================ */
.formcard { background:#fff; border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); border:1px solid var(--line); }
.formcard h3 { margin-bottom: 6px; }
.field { margin-bottom: 16px; }
.field label { display:block; font-size:.85rem; font-weight:600; color: var(--navy); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width:100%; padding: 12px 14px; border:1px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: .95rem; color: var(--ink); background: var(--cream);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.field--row { display:grid; grid-template-columns:1fr 1fr; gap: 14px; }

/* ============================================================
   FAQ / ACCORDION
   ============================================================ */
.faq { border-top:1px solid var(--line); }
.faq details { border-bottom:1px solid var(--line); }
.faq summary { cursor:pointer; padding: 20px 0; font-weight:600; color: var(--navy); list-style:none; display:flex; justify-content:space-between; gap:16px; }
.faq summary::-webkit-details-marker { display:none; }
.faq summary::after { content:"+"; color: var(--gold); font-size:1.4rem; line-height:1; }
.faq details[open] summary::after { content:"–"; }
.faq p { padding: 0 0 20px; color: var(--muted); }

/* ============================================================
   TIMELINE (admissions steps / history)
   ============================================================ */
.steps { counter-reset: step; display:grid; gap: 18px; }
.step { display:grid; grid-template-columns: 56px 1fr; gap: 18px; align-items:start; background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow-sm); }
.step__num { counter-increment: step; width:46px; height:46px; border-radius:50%; background: var(--navy); color: var(--gold-bright); font-weight:800; display:grid; place-items:center; }
.step__num::before { content: counter(step); }
.step h3 { margin-bottom: 4px; }
.step p { color: var(--muted); font-size:.95rem; }

/* ---------- Resource list ---------- */
.reslist { display:grid; gap: 14px; }
.resitem { display:flex; align-items:center; gap:16px; background:#fff; border:1px solid var(--line); border-radius:12px; padding:18px 22px; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease); }
.resitem:hover { transform: translateX(4px); }
.resitem .ico { width:44px;height:44px;border-radius:10px;background:var(--gold-soft);display:grid;place-items:center;color:var(--navy);font-size:1.2rem;flex-shrink:0; }
.resitem strong { color: var(--navy); display:block; }
.resitem span { font-size:.88rem; color: var(--muted); }
.resitem .chev { margin-left:auto; color: var(--gold); font-weight:800; }

/* embed placeholder */
.embed { background:#fff; border:1px dashed rgba(14,39,72,.3); border-radius: var(--radius); min-height: 320px; display:grid; place-items:center; text-align:center; color: var(--muted); }

/* pill tabs */
.pills { display:flex; flex-wrap:wrap; gap:10px; justify-content:center; margin-top: 18px; }
.pill { padding:9px 18px; border-radius:999px; background:#fff; border:1px solid var(--line); font-weight:600; font-size:.88rem; color: var(--navy); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--navy-deep); color: rgba(255,255,255,.72); padding: 64px 0 28px; }
.footer__grid { display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.footer h4 { color:#fff; font-size:.85rem; letter-spacing:1.5px; text-transform:uppercase; margin-bottom:16px; }
.footer a { color: rgba(255,255,255,.72); display:block; padding: 4px 0; font-size:.92rem; }
.footer a:hover { color: var(--gold-bright); }
.footer__brand .brand__text strong { color:#fff; }
.footer__brand p { color: rgba(255,255,255,.6); font-size:.9rem; margin-top:14px; max-width: 32ch; }
.footer__social { display:flex; gap:12px; margin-top:18px; }
.footer__social a { width:38px;height:38px;border-radius:50%;border:1px solid rgba(255,255,255,.25); display:grid; place-items:center; font-size:.8rem; }
.footer__social a:hover { background: var(--gold); color: var(--navy-deep); border-color: var(--gold); }
.footer__bottom { border-top:1px solid rgba(255,255,255,.12); margin-top:46px; padding-top:22px; display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; font-size:.82rem; color: rgba(255,255,255,.5); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; gap: 36px; padding: 64px 0 72px; }
  .hero__visual { aspect-ratio: 16/10; }
  .split, .grid-3, .grid-4, .values__grid, .stats__grid, .footer__grid { grid-template-columns: 1fr; }
  .grid-4, .stats__grid { grid-template-columns: 1fr 1fr; }
  .split--reverse .split__media { order: 0; }
  .section { padding: 60px 0; }
}
@media (max-width: 560px) {
  .grid-2, .field--row, .stats__grid, .grid-4 { grid-template-columns: 1fr; }
  .topbar__contact { gap: 12px; }
  .cta { padding: 30px 22px; }
}

/* Subtle reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }


/* ---------- Scroll-aware nav (navy at top, white on scroll) ---------- */
.nav { transition: background .3s ease, border-color .3s ease, box-shadow .3s ease; }
.brand__logo--white { display: none; }
.nav--top { background: transparent; border-bottom-color: transparent; backdrop-filter: none; box-shadow: none; }
.nav--top .brand__logo--blue { display: none; }
.nav--top .brand__logo--white { display: block; }
.nav--top .nav__toggle span { background: #fff; }
@media (min-width: 981px) {
  .nav--top .nav__links a { color: #fff; }
  .nav--top .nav__links a:hover,
  .nav--top .nav__links a.is-active { color: var(--gold-bright); }
}


/* ---------- Offsets for fixed overlay nav ---------- */
.pagehead .wrap { padding-top: 132px; }   /* fixed-nav offsets */
.hero { padding-top: 96px; }              /* portal/login hero clears nav */
.hero-video__sound { top: 92px; }         /* pause control sits below nav */


/* ---------- Homepage heritage strip ---------- */
.mstone { text-align: center; padding: 24px 16px; background: #fff; border-radius: 12px; border-top: 3px solid var(--gold); box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.mstone:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.mstone__year { display: block; font-size: 1.9rem; font-weight: 800; color: var(--navy); letter-spacing: -.5px; line-height: 1; }
.mstone__label { display: block; font-size: .9rem; color: var(--muted); margin-top: 8px; line-height: 1.45; }


/* ============================================================
   MEGA MENU DRAWER  (burger, top-right)
   ============================================================ */
[id] { scroll-margin-top: 100px; }          /* clear the fixed nav on anchor jumps */
body.menu-open { overflow: hidden; }

.mega { position: fixed; inset: 0; z-index: 100; visibility: hidden; }
.mega.open { visibility: visible; }
.mega__backdrop {
  position: absolute; inset: 0;
  background: rgba(8,26,50,.55);
  opacity: 0; transition: opacity .3s var(--ease);
}
.mega.open .mega__backdrop { opacity: 1; }

.mega__panel {
  position: absolute; top: 0; right: 0; height: 100%;
  width: min(460px, 100%);
  background: var(--cream);
  box-shadow: -24px 0 70px rgba(8,26,50,.28);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .38s var(--ease);
  overflow-y: auto;
}
.mega.open .mega__panel { transform: none; }

.mega__head {
  position: sticky; top: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 30px; background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.mega__logo { height: 42px; }
.mega__close {
  background: none; border: 0; cursor: pointer;
  font-size: 2.1rem; line-height: 1; color: var(--navy);
  padding: 2px 8px; transition: color .2s var(--ease);
}
.mega__close:hover { color: var(--gold); }

.mega__nav { padding: 8px 30px; }
.mega__col { padding: 18px 0; border-bottom: 1px solid var(--line); }
.mega__col:last-child { border-bottom: 0; }
.mega__group {
  display: block; font-family: 'Montserrat', sans-serif;
  font-weight: 800; font-size: 1.02rem; letter-spacing: .6px;
  text-transform: uppercase; color: var(--navy); margin-bottom: 8px;
}
a.mega__group { position: relative; }
a.mega__group:hover { color: var(--gold); }
.mega__col ul { list-style: none; display: flex; flex-direction: column; }
.mega__col ul a {
  display: block; padding: 7px 0; font-weight: 600;
  font-size: .95rem; color: var(--muted);
}
.mega__col ul a:hover { color: var(--gold); }

.mega__foot {
  margin-top: auto; padding: 22px 30px 30px;
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 14px;
}
.mega__foot .btn { width: 100%; text-align: center; }
.mega__contact { display: flex; flex-direction: column; gap: 4px; font-size: .9rem; }
.mega__contact a { color: var(--navy); font-weight: 600; }
.mega__contact a:hover { color: var(--gold); }

/* Wider screens: show the menu groups in two columns for a fuller feel */
@media (min-width: 560px) {
  .mega__panel { width: min(560px, 100%); }
  .mega__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
  .mega__col:nth-last-child(2) { border-bottom: 0; }
}
