/* =========================================================
   진수학 학원 — style.css
   Navy + Gold · modern, simple, sophisticated
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --navy-900: #0E1B33;
  --navy-800: #13233F;
  --navy-700: #1E335A;
  --navy-600: #2A4470;

  --gold-500: #D9A93A;
  --gold-400: #EAC56A;
  --gold-600: #B88A2C;
  --gold-soft: #F8EDD0;
  --gold-text: #9F7B22;   /* gold word on light bg */
  --gold-bright: #F0CE73; /* gold word on dark bg */

  --paper: #FBFAF7;
  --mist: #F2F1EB;
  --ink: #1A1D24;
  --ink-soft: #525863;
  --line: #E7E3DA;
  --white: #ffffff;

  --shadow-sm: 0 1px 2px rgba(16,27,51,.05), 0 4px 14px -10px rgba(16,27,51,.18);
  --shadow-md: 0 12px 34px -16px rgba(16,27,51,.26);
  --shadow-lg: 0 30px 70px -28px rgba(16,27,51,.40);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-pill: 999px;

  --header-h: 74px;
  --section-y: clamp(64px, 9vw, 116px);
  --container: 1140px;

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont,
               'Apple SD Gothic Neo', 'Segoe UI', Roboto, 'Malgun Gothic', sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 16.5px;
  line-height: 1.65;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; }
h1, h2, h3 { line-height: 1.22; letter-spacing: -0.025em; }
section[id] { scroll-margin-top: calc(var(--header-h) + 14px); }
:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 3px; border-radius: 4px; }

/* ---------- Layout helpers ---------- */
.container { width: min(var(--container), 100% - 44px); margin-inline: auto; }
.section { padding: var(--section-y) 0; }
.section--mist { background: var(--mist); }

.section__head { max-width: 660px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.section__title { font-size: clamp(1.72rem, 3.6vw, 2.6rem); font-weight: 800; color: var(--navy-900); }
.section__lead { margin-top: 16px; color: var(--ink-soft); font-size: clamp(1rem, 1.5vw, 1.12rem); }
.section__note { margin-top: 28px; text-align: center; color: var(--ink-soft); font-size: .95rem; }

.eyebrow {
  display: inline-block; margin-bottom: 14px;
  font-size: .8rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-text);
}
.eyebrow--light { color: var(--gold-bright); }

.text-gold { color: var(--gold-text); }
.muted { color: var(--ink-soft); font-weight: 400; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 26px; border-radius: var(--r-pill);
  font-weight: 700; font-size: 1rem; letter-spacing: -0.01em;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
  white-space: nowrap;
}
.btn .ico { width: 18px; height: 18px; fill: currentColor; }
.btn--sm { padding: 10px 18px; font-size: .92rem; }
.btn--lg { padding: 17px 34px; font-size: 1.08rem; }

.btn--gold { background: var(--gold-500); color: var(--navy-900); box-shadow: 0 10px 26px -12px rgba(201,162,75,.85); }
.btn--gold:hover { background: var(--gold-400); transform: translateY(-2px); box-shadow: 0 16px 34px -14px rgba(201,162,75,.95); }

.btn--navy { background: var(--navy-900); color: #fff; }
.btn--navy:hover { background: var(--navy-700); transform: translateY(-2px); }

.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.42); }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); transform: translateY(-2px); }

.btn--ghost-dark { color: var(--navy-900); border-color: rgba(14,27,51,.28); }
.btn--ghost-dark:hover { border-color: var(--navy-900); background: rgba(14,27,51,.05); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; height: var(--header-h); z-index: 100;
  display: flex; align-items: center;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), height .35s var(--ease);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: min(var(--container), 100% - 44px); margin-inline: auto; }

.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand__mark {
  width: 38px; height: 38px; border-radius: 10px; flex: none;
  display: grid; place-items: center;
  background: var(--gold-500); color: var(--navy-900);
  font-weight: 800; font-size: 1.18rem;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}
.brand__text { font-weight: 800; font-size: 1.28rem; letter-spacing: -0.03em; color: #fff; transition: color .35s var(--ease); line-height: 1; }
.brand__text small { font-weight: 600; font-size: .72rem; letter-spacing: .04em; margin-left: 5px; opacity: .82; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  padding: 9px 15px; border-radius: var(--r-pill);
  font-weight: 600; font-size: .98rem; color: rgba(255,255,255,.86);
  transition: color .2s, background .2s;
}
.nav a:hover { color: #fff; background: rgba(255,255,255,.10); }

.header__cta { display: flex; align-items: center; gap: 16px; }
.phone-link { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: #fff; font-size: .98rem; transition: color .35s var(--ease); }
.phone-link .ico { width: 16px; height: 16px; fill: var(--gold-bright); }

.hamburger { display: none; flex-direction: column; gap: 5px; width: 42px; height: 42px; align-items: center; justify-content: center; background: transparent; border: none; }
.hamburger span { width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s var(--ease), opacity .25s, background .35s; }

/* scrolled state */
.site-header.is-scrolled { height: 64px; background: rgba(251,250,247,.9); backdrop-filter: saturate(180%) blur(12px); box-shadow: 0 1px 0 var(--line), 0 10px 30px -24px rgba(16,27,51,.6); }
.site-header.is-scrolled .brand__text { color: var(--navy-900); }
.site-header.is-scrolled .nav a { color: var(--ink-soft); }
.site-header.is-scrolled .nav a:hover { color: var(--navy-900); background: rgba(14,27,51,.06); }
.site-header.is-scrolled .phone-link { color: var(--navy-900); }
.site-header.is-scrolled .hamburger span { background: var(--navy-900); }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--navy-900); }
.hero__bg { position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(820px 520px at 82% -8%, rgba(217,169,58,.30), transparent 60%),
    radial-gradient(720px 560px at -5% 105%, rgba(52,86,146,.6), transparent 60%),
    linear-gradient(155deg, #14253F 0%, #1E3C66 55%, #11223E 100%);
}
.hero__bg::after { content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 30px 30px; mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); opacity: .5;
}
.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(32px, 5vw, 70px);
  padding-top: calc(var(--header-h) + clamp(40px, 7vw, 80px));
  padding-bottom: clamp(56px, 8vw, 96px);
  min-height: 100svh;
}
.hero__copy { max-width: 600px; }
.hero__title { font-size: clamp(2.2rem, 5.6vw, 4rem); font-weight: 800; letter-spacing: -0.035em; }
.hero__sub { margin-top: 22px; font-size: clamp(1.02rem, 1.7vw, 1.18rem); line-height: 1.72; color: rgba(255,255,255,.82); }
.hero__sub b { color: #fff; font-weight: 700; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 34px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.14); }
.hero__trust li { display: inline-flex; align-items: center; gap: 9px; font-size: .96rem; color: rgba(255,255,255,.82); font-weight: 500; }
.hero__trust .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-400); flex: none; }
.hero .text-gold { color: var(--gold-bright); }

.hero__media { position: relative; justify-self: center; width: 100%; max-width: 430px; }
.hero__frame { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.14); }
.hero__frame::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(240,206,115,.4); border-radius: inherit; pointer-events: none; }
.hero__frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.hero__chip {
  position: absolute; left: -14px; bottom: -18px;
  background: #fff; color: var(--navy-900); border-radius: var(--r-md);
  padding: 14px 20px; box-shadow: var(--shadow-md); border: 1px solid var(--line);
  display: grid; gap: 2px;
}
.hero__chip strong { font-size: 1.18rem; font-weight: 800; color: var(--gold-text); }
.hero__chip span { font-size: .86rem; color: var(--ink-soft); font-weight: 600; }

/* ---------- Cards (강점) ---------- */
.grid { display: grid; gap: clamp(18px, 2.4vw, 26px); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(26px, 3vw, 36px); box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: #ded7c6; }
.card__icon { width: 58px; height: 58px; border-radius: 15px; background: var(--gold-soft); display: grid; place-items: center; margin-bottom: 22px; }
.card__icon svg { width: 28px; height: 28px; fill: none; stroke: var(--gold-600); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card__title { font-size: 1.26rem; font-weight: 800; color: var(--navy-900); margin-bottom: 12px; }
.card__text { color: var(--ink-soft); font-size: 1rem; line-height: 1.72; }
.card__text b { color: var(--navy-700); font-weight: 700; }

/* ---------- Teacher ---------- */
.teacher { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(28px, 4vw, 56px); align-items: stretch; }
.teacher__panel {
  position: relative; border-radius: var(--r-lg); padding: clamp(36px, 4vw, 52px) 32px;
  background: linear-gradient(160deg, #1E3A63, #14253F); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  overflow: hidden; box-shadow: var(--shadow-md);
}
.teacher__panel::before { content: ""; position: absolute; inset: 0; background: radial-gradient(420px 300px at 50% -10%, rgba(217,169,58,.3), transparent 60%); }
.teacher__monogram {
  position: relative; width: 104px; height: 104px; border-radius: 26px; display: grid; place-items: center;
  background: rgba(217,169,58,.16); border: 1.5px solid rgba(217,169,58,.55);
  color: var(--gold-bright); font-size: 3rem; font-weight: 800; margin-bottom: 22px;
}
.teacher__name { position: relative; font-size: 1.7rem; font-weight: 800; }
.teacher__role { position: relative; margin-top: 4px; color: rgba(255,255,255,.7); font-weight: 500; }

.teacher__body { display: flex; flex-direction: column; justify-content: center; }
.teacher__body .section__title { text-align: left; }
.teacher__quote {
  margin: 22px 0 26px; padding: 20px 24px; border-left: 3px solid var(--gold-500);
  background: rgba(201,162,75,.08); border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: clamp(1.05rem, 1.8vw, 1.24rem); font-weight: 600; color: var(--navy-900); line-height: 1.6;
}
.checklist { display: grid; gap: 13px; margin-bottom: 30px; }
.checklist li { position: relative; padding-left: 34px; font-size: 1.04rem; color: var(--ink); font-weight: 500; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--gold-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A9842B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l4 4 10-10'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.teacher__body .btn { align-self: flex-start; }

/* ---------- Program ---------- */
.program {
  position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(24px, 2.6vw, 32px); box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.program::before { content: ""; position: absolute; left: 0; top: 0; height: 100%; width: 4px; background: linear-gradient(var(--gold-400), var(--gold-600)); transform: scaleY(0); transform-origin: top; transition: transform .35s var(--ease); }
.program:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: #ded7c6; }
.program:hover::before { transform: scaleY(1); }
.program__tag { display: inline-block; padding: 5px 12px; border-radius: var(--r-pill); background: var(--navy-900); color: var(--gold-bright); font-size: .78rem; font-weight: 700; letter-spacing: .02em; margin-bottom: 16px; }
.program__title { font-size: 1.2rem; font-weight: 800; color: var(--navy-900); margin-bottom: 10px; }
.program__text { color: var(--ink-soft); font-size: .98rem; line-height: 1.68; }

/* ---------- Space / Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.4vw, 18px); }
.gallery__item { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.gallery__item img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; cursor: zoom-in; transition: transform .6s var(--ease); }
.gallery__item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(14,27,51,.5)); opacity: 0; transition: opacity .4s var(--ease); pointer-events: none; }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item:hover::after { opacity: 1; }
.gallery__item figcaption {
  position: absolute; left: 14px; bottom: 13px; z-index: 2;
  background: rgba(14,27,51,.78); color: #fff; backdrop-filter: blur(4px);
  padding: 7px 14px; border-radius: var(--r-pill); font-size: .88rem; font-weight: 600;
}

/* ---------- Stats ---------- */
.stats { background: linear-gradient(180deg, #FBF4E1, #F6EAC9); color: var(--navy-900); padding: clamp(48px, 6vw, 78px) 0; border-top: 1px solid #EEE0BC; border-bottom: 1px solid #EEE0BC; }
.stats__inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat { position: relative; display: grid; gap: 8px; }
.stat + .stat::before { content: ""; position: absolute; left: -15px; top: 50%; transform: translateY(-50%); height: 46px; width: 1px; background: rgba(14,27,51,.16); }
.stat__num { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; color: var(--navy-900); letter-spacing: -0.02em; }
.stat__label { font-size: .96rem; color: #6E6450; font-weight: 600; }

/* ---------- Location ---------- */
.location { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(28px, 4vw, 52px); align-items: start; }
.info-list { display: grid; gap: 22px; }
.info-list li { display: flex; gap: 16px; align-items: flex-start; }
.info-list__ico { width: 46px; height: 46px; border-radius: 13px; background: var(--gold-soft); display: grid; place-items: center; flex: none; }
.info-list__ico svg { width: 22px; height: 22px; fill: none; stroke: var(--gold-600); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.info-list strong { display: block; font-size: .86rem; letter-spacing: .04em; color: var(--ink-soft); text-transform: uppercase; margin-bottom: 3px; font-weight: 700; }
.info-list p { font-size: 1.08rem; color: var(--navy-900); font-weight: 600; line-height: 1.5; }
.info-list a { border-bottom: 1px solid var(--gold-500); }
.location__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.location__map { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--line); }
.mapcard { position: relative; height: 100%; min-height: 360px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 44px 28px; text-align: center; overflow: hidden; background: radial-gradient(130% 120% at 50% -10%, #fcfbf8, #e9ece8); }
.mapcard__grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(14,27,51,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(14,27,51,.06) 1px, transparent 1px); background-size: 40px 40px; -webkit-mask-image: radial-gradient(circle at 50% 44%, #000 28%, transparent 76%); mask-image: radial-gradient(circle at 50% 44%, #000 28%, transparent 76%); }
.mapcard__grid::before { content: ""; position: absolute; left: -10%; right: -10%; top: 52%; height: 12px; background: rgba(201,162,75,.22); transform: rotate(-7deg); }
.mapcard__grid::after { content: ""; position: absolute; top: -10%; bottom: -10%; left: 38%; width: 9px; background: rgba(14,27,51,.06); transform: rotate(7deg); }
.mapcard__pin { position: relative; width: 58px; height: 58px; display: grid; place-items: center; }
.mapcard__pin svg { width: 48px; height: 48px; fill: var(--gold-500); filter: drop-shadow(0 9px 10px rgba(176,138,53,.4)); }
.mapcard__pin::after { content: ""; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 22px; height: 7px; border-radius: 50%; background: rgba(14,27,51,.2); }
.mapcard__label { position: relative; }
.mapcard__label strong { display: block; font-size: 1.16rem; font-weight: 800; color: var(--navy-900); }
.mapcard__label span { font-size: .96rem; color: var(--ink-soft); }
.mapcard__actions { position: relative; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* ---------- Final CTA band ---------- */
.cta-band { position: relative; color: var(--navy-900); overflow: hidden; padding: clamp(56px, 8vw, 104px) 0;
  background: linear-gradient(135deg, #F4D888 0%, #E7B948 52%, #DCA831 100%); }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(760px 440px at 50% -28%, rgba(255,255,255,.42), transparent 62%); }
.cta-band__inner { position: relative; text-align: center; display: grid; justify-items: center; gap: 14px; }
.cta-band__title { font-size: clamp(1.7rem, 4vw, 2.7rem); font-weight: 800; }
.cta-band .text-gold { color: var(--navy-900); background: linear-gradient(transparent 62%, rgba(255,255,255,.6) 62%); padding: 0 2px; }
.cta-band__sub { color: rgba(14,27,51,.74); font-size: 1.06rem; margin-bottom: 12px; }

/* ---------- Footer ---------- */
.footer { background: #0A1426; color: rgba(255,255,255,.72); }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1.6fr auto; gap: 34px; align-items: start; padding: clamp(44px, 5vw, 64px) 0 36px; }
.footer__brand { display: flex; align-items: center; gap: 13px; }
.footer__name { color: #fff; font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; }
.footer__tag { font-size: .9rem; color: rgba(255,255,255,.55); }
.footer__meta { font-size: .98rem; line-height: 1.8; }
.footer__meta a { color: #fff; border-bottom: 1px solid rgba(255,255,255,.3); }
.footer__nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer__nav a { font-size: .96rem; color: rgba(255,255,255,.72); transition: color .2s; }
.footer__nav a:hover { color: var(--gold-bright); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.10); padding: 20px 0; }
.footer__bottom p { font-size: .86rem; color: rgba(255,255,255,.45); }

/* ---------- Floating call (mobile) ---------- */
.fab-call { position: fixed; right: 18px; bottom: 18px; width: 58px; height: 58px; border-radius: 50%; background: var(--gold-500); color: var(--navy-900); display: none; align-items: center; justify-content: center; z-index: 95; box-shadow: 0 12px 30px -8px rgba(201,162,75,.8); animation: fab-pulse 2.4s infinite; }
.fab-call svg { width: 25px; height: 25px; fill: currentColor; }
@keyframes fab-pulse { 0%,100% { box-shadow: 0 12px 30px -8px rgba(201,162,75,.8), 0 0 0 0 rgba(201,162,75,.45); } 50% { box-shadow: 0 12px 30px -8px rgba(201,162,75,.8), 0 0 0 12px rgba(201,162,75,0); } }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 5vw; background: rgba(8,14,28,.92); opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.55); }
.lightbox__close { position: absolute; top: 16px; right: 24px; width: 46px; height: 46px; font-size: 34px; line-height: 1; color: #fff; background: rgba(255,255,255,.1); border: none; border-radius: 50%; transition: background .2s; }
.lightbox__close:hover { background: rgba(255,255,255,.22); }

/* ---------- Reveal animation ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: .1s; }
[data-reveal-delay="2"] { transition-delay: .2s; }
[data-reveal-delay="3"] { transition-delay: .3s; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy-900); padding: 10px 22px 26px; box-shadow: 0 20px 40px -20px rgba(0,0,0,.6);
    transform: translateY(-14px); opacity: 0; visibility: hidden; transition: transform .3s var(--ease), opacity .3s var(--ease), visibility .3s;
  }
  .nav a { color: #fff; padding: 15px 6px; border-bottom: 1px solid rgba(255,255,255,.10); border-radius: 0; font-size: 1.05rem; }
  .nav a:hover { background: transparent; }
  body.menu-open .nav { transform: none; opacity: 1; visibility: visible; }
  /* keep nav panel dark even when header is solid */
  .site-header.is-scrolled .nav a { color: #fff; }

  .header__cta { display: none; }
  .hamburger { display: flex; }
  body.menu-open .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.menu-open .hamburger span:nth-child(2) { opacity: 0; }
  body.menu-open .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  /* hamburger always light because nav panel is dark; ensure visible on solid header before open */

  .hero__inner { grid-template-columns: 1fr; gap: 40px; min-height: auto; text-align: center; }
  .hero__copy { max-width: 620px; margin: 0 auto; }
  .hero__actions, .hero__trust { justify-content: center; }
  .hero__trust { border-top: none; padding-top: 0; }
  .hero__media { margin-top: 6px; max-width: 400px; }

  .teacher { grid-template-columns: 1fr; }
  .teacher__body .section__title { text-align: center; }
  .teacher__body { text-align: center; align-items: center; }
  .checklist { text-align: left; max-width: 380px; margin-inline: auto; margin-bottom: 28px; }
  .teacher__quote { text-align: left; }
  .teacher__body .btn { align-self: center; }

  .location { grid-template-columns: 1fr; }
  .mapcard { min-height: 300px; }

  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .stats__inner { grid-template-columns: repeat(2, 1fr); gap: 40px 22px; }
  .stat:nth-child(3)::before { display: none; }

  .fab-call { display: flex; }
}

@media (max-width: 760px) {
  .footer__inner { grid-template-columns: 1fr; gap: 26px; }
}

@media (max-width: 640px) {
  .grid--3 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .container { width: min(var(--container), 100% - 32px); }
  .grid--4 { grid-template-columns: 1fr; }
  .stats__inner { grid-template-columns: 1fr; gap: 26px; }
  .stat + .stat::before { display: none; }
  .hero__chip { left: 0; }
  .location__actions .btn { flex: 1 1 100%; }
  .hero__actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .fab-call { animation: none; }
  .space-feature:hover img, .space-tile:hover img { transform: none; }
}
