/* =========================================================
   New Royal Academy — site styles
   Brand colours are taken from the school logo.
   ========================================================= */
:root {
  --navy: #1a2a6c;
  --navy-deep: #0e1846;
  --navy-soft: #e9ecf8;
  --sky: #1ea4dc;
  --sky-soft: #e4f4fb;
  --gold: #f5bf1d;
  --gold-soft: #fff6d9;
  --orange: #ee7319;
  --orange-dark: #d2600b;
  --ink: #161c33;
  --body: #3e4562;
  --muted: #6b7290;
  --line: #e4e6ef;
  --bg: #ffffff;
  --cream: #faf7f0;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(14, 24, 70, .06), 0 8px 24px rgba(14, 24, 70, .08);
  --shadow-lg: 0 24px 60px rgba(14, 24, 70, .18);
  --wrap: 1180px;
  --head: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
[id] { scroll-margin-top: 96px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
h1, h2, h3, h4 { font-family: var(--head); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.25rem; font-family: var(--sans); font-weight: 700; letter-spacing: 0; }
p { margin: 0 0 1em; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.4em; border-radius: 999px; border: 2px solid transparent;
  font: 700 .98rem/1.1 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 2px;
}
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 6px 18px rgba(238, 115, 25, .35); }
.btn-primary:hover { background: var(--orange-dark); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-ghost-light { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); }
.btn-sm { padding: .6em 1.05em; font-size: .9rem; }
.btn-block { width: 100%; }

/* ---------- Top strip ---------- */
.topbar { background: var(--navy-deep); color: #cdd3ee; font-size: .85rem; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: var(--gold); }
.topbar .links { display: flex; gap: 22px; }
.topbar .announce { display: inline-flex; align-items: center; gap: 8px; }
.topbar .announce strong { color: var(--gold); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(245,191,29,.7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(245,191,29,0); } 100% { box-shadow: 0 0 0 0 rgba(245,191,29,0); } }

/* ---------- Header / nav ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(160%) blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 18px; min-height: 78px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand img { width: 56px; height: auto; }
.brand-name { white-space: nowrap; font-family: var(--head); font-weight: 700; font-size: 1.28rem; color: var(--navy); line-height: 1.05; display: block; }
.brand-tag { white-space: nowrap; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); font-weight: 700; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; padding: .55em .7em; border-radius: 8px; white-space: nowrap; }
.nav a:hover { background: var(--navy-soft); color: var(--navy); }
.nav a[aria-current="page"] { color: var(--navy); background: var(--navy-soft); }
.header-cta { display: flex; gap: 10px; align-items: center; }
.menu-btn { display: none; background: none; border: 0; padding: 8px; color: var(--navy); cursor: pointer; }
.menu-btn .icon { width: 28px; height: 28px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; color: #fff; background: var(--navy); overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: url("../assets/img/campus-md.webp") center 40%/cover no-repeat; opacity: .22; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, var(--navy-deep) 15%, rgba(26,42,108,.75) 60%, rgba(30,164,220,.35)); }
.page-hero .wrap { position: relative; z-index: 1; padding-top: 72px; padding-bottom: 72px; }
.page-hero h1 { color: #fff; max-width: 760px; }
.page-hero p { max-width: 640px; font-size: 1.12rem; color: #dfe4fb; margin: 0; }
.crumbs { font-size: .85rem; color: #aab3e0; margin-bottom: 14px; }
.crumbs a { color: #fff; text-decoration: none; }

/* ---------- Home hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--navy-deep); }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,24,70,.96) 0%, rgba(14,24,70,.93) 50%, rgba(14,24,70,.72) 63%, rgba(14,24,70,.2) 84%, rgba(14,24,70,.05) 100%); }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 360px; gap: 64px; align-items: center; padding-top: 96px; padding-bottom: 120px; }
.hero h1 { color: #fff; font-size: clamp(2.8rem, 6.4vw, 5rem); margin-bottom: .3em; }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero .lead { font-size: 1.2rem; color: #e1e6fb; max-width: 460px; }
.form-compact { padding: 26px 24px; }
.form-compact .sub { margin-bottom: 14px; }
.form-compact .field { margin-bottom: 12px; }
.form-compact button { margin-top: 6px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: .45em .95em; border-radius: 999px; background: rgba(245,191,29,.16); border: 1px solid rgba(245,191,29,.55); color: var(--gold); font-weight: 700; font-size: .85rem; letter-spacing: .02em; margin-bottom: 20px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 26px 0 0; padding: 0; list-style: none; font-size: .95rem; color: #d6dcf6; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points .icon { color: var(--gold); width: 18px; height: 18px; }

/* ---------- Enquiry form card ---------- */
.form-card { background: #fff; color: var(--body); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 28px; position: relative; }
.form-card::before { content: ""; position: absolute; left: 24px; right: 24px; top: 0; height: 5px; border-radius: 0 0 6px 6px; background: linear-gradient(90deg, var(--orange), var(--gold), var(--sky)); }
.form-card h2, .form-card h3 { font-family: var(--head); font-size: 1.55rem; margin-bottom: 4px; }
.form-card .sub { color: var(--muted); font-size: .92rem; margin-bottom: 18px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 700; font-size: .85rem; color: var(--ink); margin-bottom: 6px; }
.field label .opt { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: 500 1rem var(--sans); color: var(--ink);
  padding: .78em .9em; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fbfbfe;
  transition: border-color .15s, background .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--sky); background: #fff; outline: none; box-shadow: 0 0 0 4px rgba(30,164,220,.15); }
.field textarea { min-height: 92px; resize: vertical; }
.field .err { display: none; color: #c0262d; font-size: .8rem; margin-top: 4px; }
.field.invalid input, .field.invalid select { border-color: #c0262d; }
.field.invalid .err { display: block; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; margin: 4px 0 16px; color: var(--body); }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--orange); }
.form-note { font-size: .78rem; color: var(--muted); margin: 12px 0 0; text-align: center; }
.hp { position: absolute; left: -5000px; }
.form-success { display: none; text-align: center; padding: 18px 4px; }
.form-success .tick { width: 64px; height: 64px; border-radius: 50%; background: #e3f6ea; color: #1d8a4a; display: grid; place-items: center; margin: 0 auto 14px; }
.form-success .tick .icon { width: 32px; height: 32px; }
.form-card.done form { display: none; }
.form-card.done .form-success { display: block; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.bg-cream { background: var(--cream); }
.bg-navy { background: var(--navy); color: #d8ddf5; }
.bg-navy h2, .bg-navy h3 { color: #fff; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .8rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--orange); margin-bottom: 12px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.bg-navy .eyebrow { color: var(--gold); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow::after { content: ""; width: 28px; height: 2px; background: currentColor; }
.section-head p { font-size: 1.08rem; color: var(--muted); }
.bg-navy .section-head p { color: #b9c1e8; }

/* ---------- Trust strip ---------- */
.trust { position: relative; z-index: 2; margin-top: -44px; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.trust-item { display: flex; gap: 14px; align-items: center; padding: 22px 24px; border-right: 1px solid var(--line); }
.trust-item:last-child { border-right: 0; }
.trust-item .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.trust-item .ic .icon { width: 24px; height: 24px; }
.trust-item strong { display: block; color: var(--ink); font-size: 1.02rem; line-height: 1.25; }
.trust-item span { font-size: .85rem; color: var(--muted); }
.tone-navy { background: var(--navy-soft); color: var(--navy); }
.tone-sky { background: var(--sky-soft); color: #127fae; }
.tone-gold { background: var(--gold-soft); color: #a77a00; }
.tone-orange { background: #fdeee2; color: var(--orange-dark); }
.tone-green { background: #e3f6ea; color: #1d8a4a; }
.tone-red { background: #fde8e8; color: #c0262d; }

/* ---------- Split (image + text) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.media-frame { position: relative; }
.media-frame img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.media-frame::before { content: ""; position: absolute; inset: 24px -18px -18px 24px; border-radius: var(--radius); background: repeating-linear-gradient(45deg, var(--gold) 0 2px, transparent 2px 12px); opacity: .35; z-index: -1; }
.media-chip { position: absolute; left: -18px; bottom: 28px; background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 14px 18px; display: flex; gap: 12px; align-items: center; }
.media-chip img { width: 48px; aspect-ratio: auto; box-shadow: none; border-radius: 0; }
.media-chip strong { display: block; color: var(--navy); font-family: var(--head); font-size: 1.1rem; line-height: 1.1; }
.media-chip span { font-size: .8rem; color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 20px 0 28px; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks .icon { color: #fff; background: var(--sky); border-radius: 50%; padding: 4px; width: 24px; height: 24px; margin-top: 2px; stroke-width: 3; }

/* ---------- Cards / features ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card .ic { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 18px; }
.card .ic .icon { width: 26px; height: 26px; }
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; color: var(--muted); font-size: .97rem; }
.bg-navy .card { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.1); }
.bg-navy .card p { color: #b9c1e8; }

/* Classes / programmes */
.prog { border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.prog-top { padding: 26px 28px; color: #fff; position: relative; }
.prog-top .tag { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; opacity: .85; }
.prog-top h3 { color: #fff; font-family: var(--head); font-size: 1.6rem; margin: 6px 0 0; font-weight: 600; }
.prog-1 .prog-top { background: linear-gradient(135deg, var(--orange), #f6a03a); }
.prog-2 .prog-top { background: linear-gradient(135deg, var(--sky), #4fc0ec); }
.prog-3 .prog-top { background: linear-gradient(135deg, var(--navy), #3b4fa8); }
.prog-body { padding: 24px 28px 28px; flex: 1; display: flex; flex-direction: column; }
.prog-body ul { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; font-size: .96rem; }
.prog-body li { display: flex; gap: 10px; }
.prog-body li .icon { color: var(--orange); width: 18px; height: 18px; margin-top: 4px; }
.prog-body .more { margin-top: auto; font-weight: 700; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }

/* ---------- Quote / principal ---------- */
.quote-card { background: #fff; border-radius: 24px; box-shadow: var(--shadow-lg); padding: 56px; position: relative; display: grid; grid-template-columns: 180px 1fr; gap: 44px; align-items: center; }
.quote-card .mark { position: absolute; top: -28px; left: 48px; width: 64px; height: 64px; border-radius: 18px; background: var(--orange); color: #fff; font: 700 3.4rem/1 var(--head); display: grid; place-items: center; padding-top: 18px; }
.quote-card blockquote { margin: 0; font-family: var(--head); font-size: clamp(1.2rem, 2.2vw, 1.5rem); line-height: 1.5; color: var(--ink); font-weight: 400; }
.quote-card cite { display: block; margin-top: 18px; font-style: normal; font-weight: 700; color: var(--navy); }
.quote-card cite span { display: block; font-weight: 500; color: var(--muted); font-size: .9rem; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; position: relative; }
.step { position: relative; padding: 28px 24px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.step .num { width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: #fff; font: 700 1.15rem var(--head); display: grid; place-items: center; margin-bottom: 16px; box-shadow: 0 0 0 6px var(--navy-soft); }
.step h3 { font-size: 1.08rem; }
.step p { font-size: .94rem; color: var(--muted); margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: 28px; padding: 56px; background: linear-gradient(120deg, var(--navy-deep), var(--navy) 55%, #2a4bb0); color: #fff; display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center; }
.cta-band::before { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; border: 40px solid rgba(245,191,29,.18); }
.cta-band::after { content: ""; position: absolute; right: 140px; bottom: -120px; width: 220px; height: 220px; border-radius: 50%; background: rgba(30,164,220,.25); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { color: #cfd6f5; margin: 0; font-size: 1.08rem; }
.cta-band .actions { display: flex; flex-direction: column; gap: 12px; }
.seats { display: inline-flex; align-items: center; gap: 8px; background: var(--gold); color: var(--navy-deep); font-weight: 800; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; padding: .45em .9em; border-radius: 999px; margin-bottom: 16px; }

/* ---------- Fee portal panel ---------- */
.portal { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 32px; }
.portal .ic { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; }
.portal .ic .icon { width: 30px; height: 30px; }
.portal h3 { margin-bottom: 4px; font-size: 1.2rem; }
.portal p { margin: 0; color: var(--muted); font-size: .96rem; }

/* ---------- Houses & clubs ---------- */
.houses { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.house { border-radius: var(--radius); padding: 28px 22px; color: #fff; text-align: center; position: relative; overflow: hidden; }
.house::after { content: ""; position: absolute; right: -30px; bottom: -30px; width: 110px; height: 110px; border-radius: 50%; background: rgba(255,255,255,.14); }
.house .icon { width: 34px; height: 34px; margin: 0 auto 10px; }
.house strong { display: block; font-family: var(--head); font-size: 1.35rem; font-weight: 600; }
.house span { font-size: .85rem; opacity: .9; }
.house-red { background: linear-gradient(140deg, #d8343a, #ef5b4f); }
.house-blue { background: linear-gradient(140deg, #1b4fb8, #2f86e0); }
.house-green { background: linear-gradient(140deg, #1d8a4a, #36b36a); }
.house-yellow { background: linear-gradient(140deg, #e3a30c, #f5c52b); color: #3d2d00; }

/* ---------- Timings table ---------- */
.timing { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.timing caption { text-align: left; font-family: var(--head); font-size: 1.3rem; color: var(--ink); padding-bottom: 12px; font-weight: 600; }
.timing th, .timing td { padding: 14px 20px; text-align: left; border-bottom: 1px solid var(--line); font-size: .97rem; }
.timing thead th { background: var(--navy); color: #fff; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.timing tr:last-child td { border-bottom: 0; }
.timing td:last-child { font-weight: 700; color: var(--navy); white-space: nowrap; }

/* ---------- Info list (contact) ---------- */
.info-list { display: grid; gap: 16px; }
.info { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.info .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.info .ic .icon { width: 22px; height: 22px; }
.info strong { display: block; color: var(--ink); }
.info a { text-decoration: none; font-weight: 600; }
.info p { margin: 0; }
.map { border: 0; width: 100%; height: 100%; min-height: 380px; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- MVV ---------- */
.mvv { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.mvv .card { text-align: left; }
.mvv .label { font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); }
.mvv h3 { font-family: var(--head); font-weight: 500; font-size: 1.25rem; margin-top: 6px; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow); border-color: transparent; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 700; color: var(--ink); display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--orange); transition: transform .2s; }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq details p { padding-bottom: 20px; margin: 0; color: var(--muted); }

/* ---------- Eligibility ---------- */
.age-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.age { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 24px; text-align: center; }
.age .cls { font-weight: 800; color: var(--navy); font-size: 1.05rem; }
.age .yrs { font-family: var(--head); font-size: 2.6rem; color: var(--orange); line-height: 1.1; margin: 6px 0 2px; font-weight: 600; }
.age small { color: var(--muted); }

.notice { display: flex; gap: 14px; padding: 18px 22px; background: var(--gold-soft); border: 1px solid #f3dd94; border-radius: 14px; color: #5d4700; }
.notice .icon { color: #a77a00; margin-top: 3px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #aeb6de; font-size: .95rem; padding: 72px 0 0; }
.site-footer a { color: #dfe3f7; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.foot-brand img { width: 84px; margin-bottom: 14px; }
.foot-brand p { max-width: 320px; }
.site-footer h4 { font-family: var(--sans); color: #fff; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-contact li { display: flex; gap: 10px; }
.foot-contact .icon { color: var(--gold); margin-top: 3px; width: 18px; height: 18px; }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); }
.social a:hover { background: var(--gold); color: var(--navy-deep); }
.foot-bottom { margin-top: 56px; border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: #8790bd; }

/* ---------- Mobile action bar ---------- */
.mobile-bar { display: none; }

/* ---------- Reveal animation ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .pulse { animation: none; }
  .btn, .card { transition: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1160px) {
  .nav, .header-cta .btn-outline { display: none; }
  .menu-btn { display: inline-flex; }
  .nav.open { display: flex; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: #fff; padding: 12px 20px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.open a { padding: .85em 1em; font-size: 1.02rem; }
  .nav .nav-extra { display: block; }
  .grid-4, .mvv { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
.nav .nav-extra { display: none; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 72px; gap: 36px; }
  .hero::after { background: linear-gradient(180deg, rgba(14,24,70,.88), rgba(14,24,70,.94)); }
  .split, .split.reverse { grid-template-columns: 1fr; gap: 44px; }
  .split.reverse > :first-child { order: 0; }
  .split.form-first > :last-child { order: -1; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .quote-card { grid-template-columns: 1fr; padding: 48px 28px 36px; gap: 24px; }
  .quote-card .logo-col img { width: 110px; }
  .cta-band { grid-template-columns: 1fr; padding: 40px 28px; }
  .cta-band .actions { flex-direction: row; flex-wrap: wrap; }
  .portal { grid-template-columns: auto 1fr; }
  .portal .btn { grid-column: 1 / -1; }
  .houses, .age-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 72px 0; }
}

@media (max-width: 640px) {
  body { font-size: 16px; padding-bottom: 64px; }
  .wrap { padding: 0 16px; }
  .topbar .links .hide-sm, .topbar .announce .hide-sm { display: none; }
  .topbar .wrap { justify-content: center; }
  .topbar .links { display: none; }
  .site-header .wrap { min-height: 68px; gap: 12px; }
  .brand img { width: 46px; }
  .brand-name { font-size: 1.08rem; }
  .brand-tag { font-size: .62rem; }
  .header-cta .btn-primary { display: none; }
  .grid-2, .grid-3, .grid-4, .mvv, .steps { grid-template-columns: 1fr; }
  .row-2 { grid-template-columns: 1fr; gap: 0; }
  .form-card { padding: 24px 18px; }
  .trust { margin-top: -32px; }
  .trust-item { padding: 16px; flex-direction: column; align-items: flex-start; gap: 10px; }
  .media-chip { left: 12px; bottom: 12px; }
  .media-frame::before { inset: 16px -8px -10px 16px; }
  .foot-grid { grid-template-columns: 1fr; gap: 32px; }
  .section { padding: 60px 0; }
  .section-head { margin-bottom: 32px; }
  .timing th, .timing td { padding: 12px 14px; }
  .cta-band .actions .btn { width: 100%; }
  .mobile-bar { display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(14,24,70,.08); }
  .mobile-bar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 4px 10px; font-size: .74rem; font-weight: 700; text-decoration: none; color: var(--navy); }
  .mobile-bar a .icon { width: 20px; height: 20px; }
  .mobile-bar a.primary { background: var(--orange); color: #fff; }
}
