/* ==========================================================================
   First Light Academy — Design System & Homepage (v2, minimal)
   Navy #08244D · Gold #D9A441 · Lora (headings) · Poppins (body)
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --navy: #08244D;
  --navy-90: #0D2C5A;
  --gold: #D9A441;
  --gold-dark: #B9872A;
  --white: #FFFFFF;
  --cream: #FBF5E6;
  --gray-bg: #F2F4F8;
  --text: #1A1A2E;
  --muted: #5C6370;
  --line: rgba(8, 36, 77, 0.12);
  --line-light: rgba(255, 255, 255, 0.14);

  --font-head: "Lora", Georgia, "Times New Roman", serif;
  --font-body: "Poppins", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --shadow: 0 12px 32px rgba(8, 36, 77, 0.08);
  --r-img: 16px 120px 16px 120px;   /* signature curved image frame */
  --r-card: 12px;
  --r-btn: 8px;

  --container: 1160px;
  --gutter: 24px;
  --section-y: 96px;
  --header-h: 84px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.75;
  color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { margin: 0; color: var(--navy); font-family: var(--font-head); }
h1 { font-size: clamp(32px, 4.2vw, 42px); font-weight: 700; line-height: 1.25; }
h2 { font-size: clamp(24px, 2.6vw, 28px); font-weight: 700; line-height: 1.35; }
h1, h2 { text-wrap: balance; }
h3 { font-size: clamp(18px, 1.6vw, 20px); font-weight: 600; line-height: 1.4; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; }
.bg-cream { background: var(--cream); }
.bg-navy { background: var(--navy); color: rgba(255, 255, 255, 0.85); }
.bg-navy h2 { color: var(--white); }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 999; background: var(--navy); color: #fff; padding: 8px 16px; border-radius: var(--r-btn); }
.skip-link:focus { left: 16px; }

/* Label (stand-in for Poppins Condensed) */
.label { display: block; font-family: var(--font-body); line-height: 1.6; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 14px; }
.bg-navy .label { color: var(--gold); }

/* Signature gold accent line */
.accent { display: block; width: 56px; height: 3px; background: var(--gold); border-radius: 2px; margin: 20px 0 28px; }
.center { text-align: center; }
.center .accent { margin-left: auto; margin-right: auto; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 15px; font-weight: 500; line-height: 1.2; padding: 15px 28px;
  border-radius: var(--r-btn); border: 1.5px solid transparent; white-space: nowrap;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-90); border-color: var(--gold); }
.btn-outline { border-color: var(--line); color: var(--navy); }
.btn-outline:hover { border-color: var(--gold); }
.btn-sm { padding: 11px 20px; font-size: 14px; }

.link {
  display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; color: var(--navy);
  padding-bottom: 4px; border-bottom: 1.5px solid var(--gold); transition: gap .25s var(--ease);
}
.link:hover { gap: 14px; }
.link svg { width: 16px; height: 16px; }

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--white); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 20px rgba(8, 36, 77, 0.05); }
.nav { display: flex; align-items: center; gap: 32px; height: var(--header-h); }
.nav-logo img { height: 52px; width: auto; }
.nav-menu { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-link {
  position: relative; display: inline-flex; align-items: center; gap: 4px; padding: 8px 12px;
  font-size: 14px; font-weight: 400; color: var(--text); background: none; border: 0; transition: color .2s;
}
.nav-link::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--navy); }
.nav-link:hover::after, .nav-link[aria-current="page"]::after, .nav-link.is-active::after { transform: scaleX(1); }
.nav-link.is-active { color: var(--navy); }
.chev { width: 14px; height: 14px; transition: transform .25s; }

.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 12px); left: 50%; min-width: 300px; padding: 8px;
  background: var(--white); border-radius: var(--r-card); box-shadow: var(--shadow); border: 1px solid var(--line);
  opacity: 0; visibility: hidden; transform: translate(-50%, 6px); transition: opacity .2s, transform .2s, visibility .2s;
}
.dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.has-dropdown.is-open .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.has-dropdown.is-open .chev { transform: rotate(180deg); }
@media (hover: hover) {
  .has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
  .has-dropdown:hover .chev { transform: rotate(180deg); }
}
.dropdown a { display: flex; justify-content: space-between; gap: 16px; padding: 9px 12px; border-radius: 8px; font-size: 14px; color: var(--text); }
.dropdown a span { color: var(--muted); font-size: 12px; white-space: nowrap; }
.dropdown a:hover { background: var(--cream); color: var(--navy); }
.dropdown .dropdown-all { border-bottom: 1px solid var(--line); border-radius: 8px 8px 0 0; margin-bottom: 4px; padding-bottom: 12px; }
.dropdown .dropdown-all b { font-weight: 500; color: var(--navy); }

.nav-actions { display: flex; align-items: center; gap: 16px; }
.lang-toggle { display: inline-flex; font-size: 12px; font-weight: 600; letter-spacing: .08em; }
.lang-toggle button { border: 0; background: none; padding: 6px 6px; color: var(--muted); border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.lang-toggle button + button { margin-left: 4px; }
.lang-toggle button[aria-pressed="true"] { color: var(--navy); border-bottom-color: var(--gold); }
.lang-toggle button:hover { color: var(--navy); }

.nav-burger { display: none; width: 44px; height: 44px; border: 0; background: none; align-items: center; justify-content: center; }
.nav-burger span, .nav-burger span::before, .nav-burger span::after { display: block; width: 22px; height: 2px; background: var(--navy); position: relative; transition: transform .3s var(--ease), background .2s; }
.nav-burger span::before, .nav-burger span::after { content: ""; position: absolute; left: 0; }
.nav-burger span::before { top: -7px; }
.nav-burger span::after { top: 7px; }
.nav-open .nav-burger span { background: transparent; }
.nav-open .nav-burger span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-burger span::after { transform: translateY(-7px) rotate(-45deg); }
.nav-mobile-cta { display: none; }

@media (max-width: 1140px) {
  .nav-burger { display: inline-flex; }
  .nav-actions { gap: 8px; }
  .nav-actions { margin-left: auto; }
  .nav-menu {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 40px;
    background: var(--white); overflow-y: auto; border-top: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .25s, transform .25s, visibility .25s;
  }
  .nav-open .nav-menu { opacity: 1; visibility: visible; transform: none; }
  .nav-menu > li { border-bottom: 1px solid var(--line); }
  .nav-link { width: 100%; justify-content: space-between; font-size: 16px; padding: 16px 0; }
  .nav-link::after { display: none; }
  .dropdown { position: static; display: none; min-width: 0; padding: 0 0 12px; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { transform: none; }
  .has-dropdown.is-open .dropdown { display: block; transform: none; }
  .dropdown a { padding: 10px 8px; }
  .nav-menu .nav-mobile-cta { display: block; border: 0; padding-top: 28px; }
  .nav-mobile-cta .btn { width: 100%; }
  body.nav-open { overflow: hidden; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { padding: 72px 0 0; }
.hero-copy { max-width: 760px; margin: 0 auto; text-align: center; }
.hero-copy .accent { margin-left: auto; margin-right: auto; }
.hero-sub { font-size: 17px; color: var(--muted); }
.hero-ctas { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-image { margin-top: 64px; border-radius: var(--r-img); overflow: hidden; aspect-ratio: 3 / 1; background: var(--cream); }
.hero-image img { width: 100%; height: 100%; object-fit: cover; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; padding: 56px 0 var(--section-y); }
.stat { border-top: 1px solid var(--line); padding-top: 24px; position: relative; }
.stat::before { content: ""; position: absolute; top: -2px; left: 0; width: 40px; height: 3px; background: var(--gold); }
.stat-num { display: block; font-family: var(--font-head); font-size: 40px; font-weight: 700; line-height: 1.1; color: var(--navy); margin-bottom: 10px; }
.stat p { font-size: 15px; color: var(--muted); line-height: 1.6; max-width: 320px; }
.stat-num--text { font-size: 26px; line-height: 1.25; min-height: 44px; display: flex; align-items: flex-end; text-wrap: balance; }

/* ==========================================================================
   INTRO
   ========================================================================== */
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 88px; align-items: center; }
.intro-image { border-radius: var(--r-img); overflow: hidden; aspect-ratio: 4 / 3.4; box-shadow: var(--shadow); }
.intro-image img { width: 100%; height: 100%; object-fit: cover; }
.intro-text { font-family: var(--font-head); font-size: clamp(19px, 1.8vw, 22px); line-height: 1.65; color: var(--navy); margin-bottom: 36px; }

/* ==========================================================================
   PATHWAYS
   ========================================================================== */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 16px; }
.section-head .accent { margin-bottom: 0; }
.path-list { border-top: 1px solid var(--line); margin-top: 40px; }
.path-row {
  display: grid; grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1.25fr) 32px; gap: 32px; align-items: center;
  padding: 32px 16px; border-bottom: 1px solid var(--line); transition: background .3s var(--ease);
}
.path-row:hover { background: var(--cream); }
.path-num { font-family: var(--font-head); font-size: 28px; font-weight: 600; color: var(--gold); line-height: 1; }
.path-age { display: block; margin-top: 6px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.path-desc { font-size: 15px; color: var(--muted); line-height: 1.7; }
.path-arrow { width: 22px; height: 22px; color: var(--navy); transition: transform .3s var(--ease), color .3s; }
.path-row:hover .path-arrow { transform: translateX(6px); color: var(--gold-dark); }

/* ==========================================================================
   WHY CHOOSE
   ========================================================================== */
.why-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 88px; align-items: center; }
.why-list li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line-light); }
.why-list li:first-child { border-top: 1px solid var(--line-light); }
.why-list .n { font-family: var(--font-head); font-size: 18px; color: var(--gold); line-height: 1.6; }
.why-list p { font-size: 16px; color: rgba(255, 255, 255, 0.9); }
.why-image { border-radius: 120px 16px 120px 16px; overflow: hidden; aspect-ratio: 4 / 5; }
.why-image img { width: 100%; height: 100%; object-fit: cover; object-position: 35% 50%; }

/* ==========================================================================
   CTA
   ========================================================================== */
.cta { max-width: 680px; margin: 0 auto; }
.cta p { color: var(--muted); margin-bottom: 36px; }

/* ==========================================================================
   SUBPAGES — shared
   ========================================================================== */
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 13px; color: var(--muted); margin-bottom: 24px; }
.crumbs a:hover { color: var(--navy); }
.crumbs [aria-current] { color: var(--navy); }

.page-hero { padding: 0; overflow: hidden; }
.page-hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 56px; align-items: end; min-height: 520px; }
.page-hero-copy { align-self: center; padding: 88px 0; }
.page-hero-copy h1 { max-width: 620px; }
.page-hero-copy .accent { margin-bottom: 0; }
.page-hero-figure { position: relative; display: flex; justify-content: center; align-self: end; padding-top: 48px; }
.page-hero-panel { position: absolute; left: 6%; right: 6%; bottom: 0; height: 72%; background: var(--white); border-radius: 16px 160px 0 0; }
.page-hero-figure img { position: relative; width: 100%; max-width: 380px; height: auto; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 88px; align-items: center; }
.split--reverse .split-image { order: 2; }
.split-image { border-radius: var(--r-img); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow); }
.split-image--alt { border-radius: 120px 16px 120px 16px; }
.split-image img { width: 100%; height: 100%; object-fit: cover; }
.lead-serif { font-family: var(--font-head); font-size: clamp(19px, 1.8vw, 22px); line-height: 1.6; color: var(--navy); margin-bottom: 20px; }
.body-muted { color: var(--muted); }

.value-list { border-top: 1px solid var(--line); margin-top: 40px; }
.value-row { display: grid; grid-template-columns: 72px minmax(0, 0.9fr) minmax(0, 1.35fr); gap: 32px; align-items: baseline; padding: 32px 16px; border-bottom: 1px solid var(--line); }

/* ==========================================================================
   PROGRAMMES
   ========================================================================== */
/* Image card: designed graphics shown whole (never cropped) on white */
.card-img { display: block; background: var(--white); border-radius: var(--r-img); overflow: hidden; aspect-ratio: 16 / 10; box-shadow: var(--shadow); border: 1px solid var(--line); }
.card-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .6s var(--ease); }
a.card-img:hover img { transform: scale(1.02); }
.split--reverse .card-img { border-radius: 120px 16px 120px 16px; }

/* Overview hero */
.page-hero-simple { padding: 72px 0 80px; }
.page-hero-simple--compact { padding-bottom: 56px; }
.page-hero-simple--compact .accent { margin-bottom: 0; }
.page-hero-sub { font-size: 17px; color: var(--muted); }
.jump-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
.jump-list a {
  display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 20px 18px; background: var(--white);
  border-radius: var(--r-card); border-top: 3px solid transparent; box-shadow: 0 4px 14px rgba(8, 36, 77, 0.05);
  font-family: var(--font-head); font-weight: 600; font-size: 16px; line-height: 1.35; color: var(--navy);
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.jump-list a:hover { border-top-color: var(--gold); transform: translateY(-2px); }
.jump-age { margin-top: auto; padding-top: 6px; font-family: var(--font-body); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.prog-tab-num { font-family: var(--font-head); font-size: 14px; font-weight: 600; color: var(--gold-dark); }

/* Overview rows */
.prog-row { scroll-margin-top: var(--header-h); }
.prog-row h2 { scroll-margin-top: calc(var(--header-h) + 40px); }
.prog-num { display: block; font-family: var(--font-head); font-size: 28px; font-weight: 600; color: var(--gold); line-height: 1; margin-bottom: 14px; }
.prog-age { margin: 12px 0 0; }
.prog-row .accent { margin: 18px 0 22px; }
.prog-short { margin-bottom: 28px; max-width: 480px; }

/* Programme tabs (sub-navigation on programme pages) */
.prog-tabs { background: var(--white); border-bottom: 1px solid var(--line); }
.prog-tabs ul { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; }
.prog-tabs ul::-webkit-scrollbar { display: none; }
.prog-tabs a { display: flex; align-items: baseline; gap: 8px; height: 100%; padding: 18px 0 16px; font-size: 13px; line-height: 1.45; color: var(--muted); border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.prog-tabs a:hover { color: var(--navy); }
.prog-tabs a[aria-current="page"] { color: var(--navy); font-weight: 500; border-bottom-color: var(--gold); }

/* Programme hero */
.prog-hero { padding: 72px 0 88px; }
.prog-hero .split { align-items: center; }
.prog-hero h1 { font-size: clamp(30px, 3.6vw, 40px); }
.prog-hero .label { margin-bottom: 12px; }
.prog-intro { color: var(--text); margin-bottom: 32px; max-width: 560px; }
.card-img--hero { border-radius: 16px 120px 16px 120px; }

/* Highlights */
.hl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 72px; }
.hl { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding: 30px 0; border-top: 1px solid var(--line); }
.hl[hidden] { display: none; }
.hl-num { font-family: var(--font-head); font-size: 18px; font-weight: 600; color: var(--gold); line-height: 1.5; }
.hl h3 { font-size: 18px; margin-bottom: 8px; }
.hl p { font-size: 15px; color: var(--muted); line-height: 1.7; }

/* Previous / next programme */
.pager-wrap { border-top: 1px solid var(--line); }
.pager { display: flex; justify-content: space-between; gap: 24px; padding-top: 32px; padding-bottom: 32px; }
.pager a { display: flex; align-items: center; gap: 16px; max-width: 46%; color: var(--navy); }
.pager a > span { display: flex; flex-direction: column; gap: 2px; }
.pager-next { text-align: right; margin-left: auto; }
.pager-next > span { align-items: flex-end; }
.pager svg { width: 22px; height: 22px; flex: none; transition: transform .25s var(--ease); }
.pager-prev:hover svg { transform: translateX(-4px); }
.pager-next:hover svg { transform: translateX(4px); }
.pager-age { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pager-title { font-family: var(--font-head); font-size: 17px; font-weight: 600; line-height: 1.35; }

/* ==========================================================================
   OUR TEACHERS
   ========================================================================== */
.team-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 44px; }
.team-strip a { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.team-thumb { display: block; width: 100%; aspect-ratio: 1; overflow: hidden; border-radius: 16px 64px 16px 64px; background: var(--white); box-shadow: 0 4px 14px rgba(8, 36, 77, 0.06); }
.team-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.team-strip a:hover img { transform: scale(1.04); }
.team-name { font-family: var(--font-head); font-size: 17px; font-weight: 600; color: var(--navy); line-height: 1.3; padding-bottom: 4px; border-bottom: 1.5px solid transparent; transition: border-color .25s; }
.team-strip a:hover .team-name { border-bottom-color: var(--gold); }

.teacher { scroll-margin-top: var(--header-h); }
.teacher-grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
.teacher-grid.split--reverse { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
.teacher-photo { width: 100%; max-width: 220px; justify-self: center; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 12px 64px 12px 64px; background: var(--white); box-shadow: var(--shadow); }
.split--reverse .teacher-photo { order: 2; border-radius: 64px 12px 64px 12px; }
.teacher-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.teacher h2 { font-size: clamp(26px, 2.8vw, 32px); }
.teacher .accent { margin: 18px 0 24px; }
.teacher-bio { font-size: 16px; line-height: 1.85; color: var(--text); max-width: 540px; }
.cta-section--plain { border-top: 1px solid var(--line); }

/* ==========================================================================
   SUMMER CAMP
   ========================================================================== */
.camp-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.h1-kicker { display: block; font-family: var(--font-body); font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 14px; line-height: 1.5; }
.camp-hero h1 { font-size: clamp(30px, 3.6vw, 42px); max-width: 600px; }
.camp-tags { display: flex; flex-direction: column; gap: 10px; margin: 0 0 36px; font-size: 16px; font-weight: 500; color: var(--navy); }
.camp-tags li { display: flex; align-items: center; }
.camp-tags li::before { content: ""; flex: none; width: 6px; height: 6px; margin-right: 14px; background: var(--gold); border-radius: 2px; transform: rotate(45deg); }
.camp-hero-photo { width: 100%; max-width: 560px; justify-self: end; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 16px 120px 16px 120px; box-shadow: var(--shadow); }
.camp-hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.camp-text { font-size: 17px; line-height: 1.85; color: var(--text); max-width: 560px; }
.camp-text + .btn { margin-top: 32px; }
.camp-portrait { aspect-ratio: 4 / 5; width: 100%; max-width: 420px; justify-self: end; }

/* ==========================================================================
   NEWS
   ========================================================================== */
.news-section { padding-top: 64px; }
.news-feed { max-width: 920px; border-top: 1px solid var(--line); }
.news-item { display: grid; grid-template-columns: 84px 120px minmax(0, 1fr); gap: 32px; align-items: start; padding: 40px 0; border-bottom: 1px solid var(--line); scroll-margin-top: var(--header-h); }
.news-date { display: flex; flex-direction: column; align-items: flex-start; padding-top: 2px; }
.news-day { font-family: var(--font-head); font-size: 40px; font-weight: 600; line-height: 1; color: var(--navy); }
.news-my { margin-top: 8px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-dark); white-space: nowrap; }
.news-thumb { display: block; width: 120px; height: 120px; padding: 0; border: 0; border-radius: 12px 36px 12px 36px; overflow: hidden; background: var(--cream); box-shadow: var(--shadow); cursor: zoom-in; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.news-thumb:hover img { transform: scale(1.06); }
.news-date-full { display: none; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 8px; }
.news-body h2 { font-size: clamp(18px, 1.8vw, 21px); line-height: 1.4; margin-bottom: 14px; }
.news-body p { color: var(--text); line-height: 1.8; }
.news-body p + p { margin-top: 12px; }

/* Lightbox for news images */
.lightbox { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); margin: 0; padding: 0; border: 0; background: transparent; width: min(92vw, 820px, 82vh); max-width: none; max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(8, 36, 77, 0.82); }
.lightbox img { display: block; width: 100%; height: auto; max-height: 88vh; object-fit: contain; border-radius: 12px; }
.lightbox-close { position: absolute; top: -52px; right: 0; width: 44px; height: 44px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, 0.14); color: #fff; display: grid; place-items: center; }
.lightbox-close:hover { background: var(--gold); color: var(--navy); }
.lightbox-close svg { width: 20px; height: 20px; }

/* ==========================================================================
   REGISTRATION FORM (dialog)
   ========================================================================== */
.reg-dialog { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); margin: 0; z-index: 210; border: 0; padding: 0; width: min(500px, calc(100% - 24px)); max-height: calc(100% - 24px); overflow-y: auto; border-radius: 16px 64px 16px 16px; box-shadow: 0 24px 56px rgba(8, 36, 77, 0.2); color: var(--text); }
.reg-dialog::backdrop { background: rgba(8, 36, 77, 0.55); }
.reg-inner { position: relative; padding: 44px 36px 36px; border-top: 3px solid var(--gold); }
.reg-inner h2 { font-size: 24px; padding-right: 32px; }
.reg-inner .accent { margin: 16px 0 14px; }
.reg-inner .label { margin-bottom: 10px; }
.reg-sub { color: var(--muted); font-size: 14px; margin-bottom: 4px; }
#regForm { position: relative; margin-top: 20px; display: grid; grid-template-columns: 1fr 120px; gap: 16px 16px; }
.field { display: flex; flex-direction: column; gap: 6px; grid-column: 1 / -1; }
.field:first-child { grid-column: 1; }
.field--age { grid-column: 2; }
.field label { font-size: 14px; font-weight: 500; color: var(--navy); }
.field label i { font-style: normal; color: var(--gold-dark); }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--text); background: var(--white);
  border: 1px solid rgba(8, 36, 77, 0.2); border-radius: 8px; padding: 12px 14px; min-height: 48px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 88px; line-height: 1.6; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(217, 164, 65, 0.25); }
.field input[aria-invalid="true"] { border-color: #B3261E; }
.field-err { min-height: 0; font-size: 13px; color: #B3261E; }
.field-err:empty { display: none; }
.hp { position: absolute; left: 0; top: 0; width: 1px; height: 1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); opacity: 0; }
.reg-submit { grid-column: 1 / -1; width: 100%; margin-top: 6px; }
.reg-submit:disabled { opacity: .7; cursor: progress; }
.reg-error { grid-column: 1 / -1; font-size: 14px; color: var(--text); background: var(--cream); border-left: 3px solid var(--gold); padding: 12px 14px; border-radius: 0 8px 8px 0; }
.reg-error-actions { display: flex; gap: 8px; margin-top: 10px; }
.reg-done { text-align: center; padding: 16px 0 4px; }
.reg-tick { width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 14px; background: var(--navy); color: var(--gold); display: grid; place-items: center; }
.reg-tick svg { width: 28px; height: 28px; }
.reg-done p { font-family: var(--font-head); font-size: 19px; line-height: 1.55; color: var(--navy); margin-bottom: 24px; }
@media (max-width: 600px) {
  .reg-inner { padding: 40px 20px 24px; }
  .reg-dialog { border-radius: 14px 40px 14px 14px; }
  #regForm { grid-template-columns: 1fr 96px; gap: 14px 12px; }
}

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact-sub { max-width: 640px; margin-top: 22px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 72px; align-items: start; }
.ci-list { display: grid; gap: 26px; margin-bottom: 40px; }
.ci-list li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; align-items: start; }
.ci-ico { width: 48px; height: 48px; border-radius: 12px 12px 12px 4px; background: var(--navy); color: var(--gold); display: grid; place-items: center; }
.ci-ico svg { width: 22px; height: 22px; }
.ci-label { display: block; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.ci-value { font-size: 16px; font-weight: 500; color: var(--navy); line-height: 1.6; }
.ci-value a:hover { color: var(--gold-dark); }
.quick-label { margin-bottom: 14px; padding-top: 28px; border-top: 1px solid var(--line); }
.quick-connect { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.quick-connect a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 92px; padding: 14px 8px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--white); text-align: center;
  font-size: 13px; font-weight: 500; line-height: 1.3; color: var(--navy); transition: border-color .2s, background .2s, transform .2s;
}
.quick-connect a svg { width: 26px; height: 26px; color: var(--navy); }
.quick-connect a:hover { border-color: var(--gold); background: var(--cream); transform: translateY(-2px); }
.quick-connect a.qc-primary { background: var(--navy); border-color: var(--navy); color: var(--white); }
.quick-connect a.qc-primary svg { color: var(--gold); }
.quick-connect a.qc-primary:hover { background: var(--navy-90); }
.contact-card { background: var(--cream); border-radius: 16px 64px 16px 16px; padding: 44px 40px 40px; border-top: 3px solid var(--gold); }
.contact-card h2 { font-size: clamp(22px, 2.2vw, 26px); }
.contact-card .accent { margin: 16px 0 24px; }
.contact-form { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.contact-form .field { grid-column: 1 / -1; }
.contact-form .field.cf-half { grid-column: auto; }
.contact-form .reg-submit { grid-column: 1 / -1; }
.field select {
  width: 100%; font: inherit; font-size: 16px; color: var(--text); background: var(--white); min-height: 48px;
  border: 1px solid rgba(8, 36, 77, 0.2); border-radius: 8px; padding: 12px 40px 12px 14px; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2308244D' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px;
}
.field select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(217, 164, 65, 0.25); }
.field input[aria-invalid="true"] + .field-err, .field-err { grid-column: auto; }
.contact-done { padding: 24px 0 8px; }
.map-sub { color: var(--muted); max-width: 640px; margin: 0 auto 40px; }
.map-frame { border-radius: var(--r-img); overflow: hidden; aspect-ratio: 16 / 7; box-shadow: var(--shadow); background: var(--gray-bg); border: 1px solid var(--line); }
.map-frame iframe { display: block; width: 100%; height: 100%; border: 0; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, 0.7); font-size: 14px; border-top: 3px solid var(--gold); }
.footer-main { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 56px; padding: 72px 0 56px; }
.footer-brand img { height: 56px; width: auto; margin-bottom: 20px; }
.footer-brand p { max-width: 300px; line-height: 1.7; }
.footer-col h3 { font-family: var(--font-body); font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--white); margin-bottom: 20px; }
.footer-col li { margin-bottom: 10px; }
.footer-col a:hover { color: var(--gold); }
.footer-contact li { display: flex; gap: 12px; line-height: 1.6; }
.footer-contact svg { width: 18px; height: 18px; color: var(--gold); flex: none; margin-top: 2px; }
.footer-bottom { border-top: 1px solid var(--line-light); padding: 24px 0; font-size: 13px; color: rgba(255, 255, 255, 0.5); }

/* ==========================================================================
   FLOATING CONTACT
   ========================================================================== */
.float-contact { position: fixed; right: 20px; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 90; display: flex; flex-direction: column; gap: 8px; }
.float-btn {
  position: relative; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--navy); color: var(--white); box-shadow: 0 8px 20px rgba(8, 36, 77, 0.18); transition: background .25s, color .25s;
}
.float-btn svg { width: 22px; height: 22px; }
.float-btn:hover { background: var(--gold); color: var(--navy); }
.float-btn--phone { background: var(--gold); color: var(--navy); }
.float-btn--phone:hover { background: var(--navy); color: var(--white); }
.float-btn .tip {
  position: absolute; right: calc(100% + 10px); top: 50%; transform: translateY(-50%); opacity: 0; pointer-events: none;
  background: var(--navy); color: var(--white); font-size: 13px; padding: 6px 12px; border-radius: 6px; white-space: nowrap; transition: opacity .2s;
}
.float-btn:hover .tip, .float-btn:focus-visible .tip { opacity: 1; }

/* ==========================================================================
   COMING SOON DIALOG
   ========================================================================== */
.soon-dialog { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); margin: 0; z-index: 200; border: 0; padding: 0; border-radius: var(--r-card); width: min(440px, calc(100% - 32px)); box-shadow: 0 24px 56px rgba(8, 36, 77, 0.18); }
.soon-dialog::backdrop { background: rgba(8, 36, 77, 0.5); }
.soon-inner { padding: 44px 36px 36px; border-top: 3px solid var(--gold); position: relative; text-align: center; }
.soon-inner h2 { font-size: 24px; }
.soon-inner p { color: var(--muted); font-size: 15px; }
.soon-close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border: 0; border-radius: 8px; background: none; color: var(--muted); display: grid; place-items: center; }
.soon-close:hover { background: var(--gray-bg); color: var(--navy); }
.soon-close svg { width: 18px; height: 18px; }

/* ---------- Touch devices: comfortable tap targets ---------- */
@media (pointer: coarse) {
  .lang-toggle button { min-width: 40px; min-height: 44px; padding: 6px 8px; }
  .footer-col li { margin-bottom: 2px; }
  .footer-col a { display: inline-block; padding: 7px 0; }
  .footer-contact li { align-items: center; }
  .crumbs a { padding: 10px 0; display: inline-block; }
  .ci-value a { display: inline-block; padding: 9px 0; margin: -9px 0; }
  .link { padding-top: 10px; }
  .nav-burger { width: 48px; height: 48px; }
}

/* ---------- Older browser fallbacks (e.g. iOS 15) ---------- */
@supports not (overflow: clip) {
  html { overflow-x: visible; }
  body { overflow-x: hidden; }
}

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 960px) {
  :root { --section-y: 72px; --header-h: 72px; }
  .nav-logo img { height: 44px; }
  .hero { padding-top: 48px; }
  .hero-image { margin-top: 48px; aspect-ratio: 4 / 3; border-radius: 12px 72px 12px 72px; }
  .stats { gap: 24px; padding-top: 48px; }
  .stat-num { font-size: 34px; }
  .stat-num, .stat-num--text { min-height: 58px; display: flex; align-items: flex-end; }
  .stat-num--text { font-size: 22px; }
  .intro-grid, .why-grid { grid-template-columns: 1fr; gap: 48px; }
  .intro-image { border-radius: 12px 72px 12px 72px; }
  .why-image { aspect-ratio: 4 / 3; border-radius: 72px 12px 72px 12px; order: -1; }
  .page-hero-grid { grid-template-columns: 1fr; gap: 0; min-height: 0; }
  .page-hero-copy { padding: 56px 0 8px; }
  .page-hero-figure { padding-top: 24px; }
  .page-hero-figure img { max-width: 300px; }
  .page-hero-panel { left: 50%; right: auto; width: min(300px, 84%); transform: translateX(-50%); border-radius: 12px 100px 0 0; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .jump-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .map-frame { aspect-ratio: 4 / 3; border-radius: 12px 72px 12px 72px; }
  .camp-hero-grid { grid-template-columns: 1fr; }
  .camp-hero-photo { justify-self: start; max-width: 100%; border-radius: 12px 72px 12px 72px; }
  .camp-portrait { justify-self: start; max-width: 420px; }
  .teacher-grid, .teacher-grid.split--reverse { grid-template-columns: 1fr; gap: 32px; }
  .teacher-photo, .split--reverse .teacher-photo { max-width: 200px; justify-self: start; border-radius: 12px 56px 12px 56px; }
  .split--reverse .teacher-photo { order: 0; }
  .prog-tabs ul { display: flex; gap: 28px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
  .prog-tabs li { scroll-snap-align: start; }
  .prog-tabs a { white-space: nowrap; font-size: 14px; }
  .prog-tabs { -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
  .jump-list li:last-child { grid-column: 1 / -1; }
  .prog-hero { padding: 48px 0 64px; }
  .card-img, .split--reverse .card-img, .card-img--hero { border-radius: 12px 72px 12px 72px; }
  .hl-grid { grid-template-columns: 1fr; }
  .page-hero-simple { padding: 48px 0 56px; }
  .split--reverse .split-image { order: 0; }
  .split-image { border-radius: 12px 72px 12px 72px; }
  .split-image--alt { border-radius: 72px 12px 72px 12px; }
  .value-row { grid-template-columns: 48px minmax(0, 1fr); gap: 8px 20px; padding: 28px 0; }
  .value-row .path-desc { grid-column: 2; }
  .path-row { grid-template-columns: 48px minmax(0, 1fr) 24px; gap: 8px 20px; padding: 28px 0; align-items: start; }
  .path-row:hover { background: none; }
  .path-desc { grid-column: 2; }
  .path-arrow { grid-column: 3; grid-row: 1; margin-top: 4px; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  :root { --gutter: 20px; --section-y: 64px; }
  .nav-actions .btn { display: none; }
  .stats { grid-template-columns: 1fr; gap: 28px; }
  .stat-num, .stat-num--text { min-height: 0; }
  .jump-list { grid-template-columns: 1fr; gap: 10px; }
  .contact-form { grid-template-columns: 1fr; }
  .contact-card { padding: 36px 20px 24px; border-radius: 14px 40px 14px 14px; }
  .map-frame { aspect-ratio: 1; }
  .news-item { grid-template-columns: 88px minmax(0, 1fr); gap: 16px 18px; padding: 32px 0; }
  .news-date { display: none; }
  .news-thumb { width: 88px; height: 88px; border-radius: 10px 28px 10px 28px; }
  .news-date-full { display: block; }
  .news-body { grid-column: 1 / -1; }
  .camp-text { font-size: 16px; }
  .camp-hero-photo { max-width: 100%; }
  .camp-text + .btn, .camp-hero .btn { width: 100%; }
  .team-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; margin-top: 32px; }
  .team-name { font-size: 15px; }
  .teacher-photo, .split--reverse .teacher-photo { max-width: 180px; }
  .jump-list a { flex-direction: row; align-items: baseline; flex-wrap: wrap; column-gap: 10px; padding: 16px; }
  .jump-age { margin: 0 0 0 auto; padding: 0; }
  .prog-tabs ul { gap: 24px; }
  .pager { flex-direction: column; }
  .pager a { max-width: 100%; }
  .prog-hero .btn { width: 100%; }
  body { font-size: 15px; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .path-num { font-size: 22px; }
  .footer-main { grid-template-columns: 1fr; gap: 36px; padding: 56px 0 40px; }
  .float-contact { right: 12px; bottom: 16px; }
  .float-btn { width: 44px; height: 44px; }
}
