@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500&display=swap');

/* ============================================================
   Pearl Quest Nursery & Primary School
   Design tokens
   ============================================================ */
:root {
  --navy: #071d3b;
  --navy2: #0b284d;
  --navy3: #04152d;
  --olive: #68752c;
  --olive2: #7a8935;
  --gold: #d29b24;
  --gold-l: #e6bd62;
  --cream: #f6f0e5;
  --paper: #fbfaf6;
  --ink: #10233a;
  --muted: #637081;
  --line: #e2ded4;
  --line-d: #ffffff2e;
  --shell: 1360px;
  --pad: clamp(20px, 6vw, 96px);
  --r: 2px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: "Playfair Display", Georgia, serif; font-weight: 500; letter-spacing: -.03em; }
p { margin: 0 0 1em; }

.shell { width: min(100% - (var(--pad) * 2), var(--shell)); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--gold); color: #fff; padding: 12px 18px;
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase; transition: top .2s;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ============================================================
   Utility bar
   ============================================================ */
.topline {
  background: var(--olive);
  color: #fff;
  font-size: 11.5px;
  letter-spacing: .04em;
}
.topline .shell {
  min-height: 38px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.topline-social { display: flex; align-items: center; gap: 14px; }
.topline-social a { display: grid; place-items: center; opacity: .85; transition: opacity .2s; }
.topline-social a:hover { opacity: 1; }
.topline-social svg { width: 15px; height: 15px; fill: currentColor; }
.topline-contact { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.topline-contact a:hover { color: var(--gold-l); }
.topline-contact .sep { opacity: .5; }
.topline-note { text-transform: uppercase; font-weight: 500; }

/* ============================================================
   Header + navigation
   ============================================================ */
.site-header {
  background: #fff;
  position: sticky; top: 0; z-index: 90;
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s;
}
.site-header.is-stuck { box-shadow: 0 6px 26px #0b284d1a; }
.site-header .shell {
  min-height: 88px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 13px; flex-shrink: 0; }
.brand img { height: 64px; width: 58px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; }
.brand-text b {
  font: 600 23px/1 "Playfair Display", serif;
  text-transform: uppercase; letter-spacing: .02em;
}
.brand-text small {
  font-size: 8.5px; letter-spacing: .17em; text-transform: uppercase;
  color: var(--olive); margin-top: 7px; font-weight: 500;
}

.main-nav { display: flex; align-items: center; gap: 4px; flex-wrap: nowrap; }
.nav-item { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 13px; font-size: 13px; font-weight: 500;
  background: none; border: 0; cursor: pointer; white-space: nowrap;
}
.nav-link .caret { width: 8px; height: 8px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .25s; }
.nav-item.open > .nav-link .caret { transform: rotate(180deg); }
.nav-link::after {
  content: ""; position: absolute; left: 13px; right: calc(100% - 13px);
  bottom: 4px; height: 1px; background: var(--gold); transition: right .25s;
}
.nav-link:hover::after, .nav-item.open > .nav-link::after { right: 13px; }
.nav-link[aria-current="page"] { color: var(--olive); }
.nav-link[aria-current="page"]::after { right: 13px; background: var(--olive); }

.submenu {
  position: absolute; top: 100%; left: 0; min-width: 262px;
  background: #fff; border: 1px solid var(--line);
  box-shadow: 0 20px 46px #0b284d1f;
  padding: 10px 0; display: none; z-index: 95;
}
.nav-item.open > .submenu { display: block; }
.submenu a {
  display: block; padding: 11px 22px; font-size: 13px; color: var(--muted);
  border-left: 2px solid transparent; transition: .18s;
}
.submenu a:hover { background: var(--cream); color: var(--ink); border-left-color: var(--gold); }

.nav-cta {
  background: var(--navy); color: #fff;
  padding: 15px 22px; font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em;
  display: inline-flex; align-items: center; gap: 14px;
  margin-left: 10px; transition: .2s; white-space: nowrap; flex-shrink: 0;
}
.nav-cta:hover { background: var(--gold); transform: translateY(-2px); }

.menu-button {
  display: none; background: none; border: 0; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 8px;
}
.menu-button span { display: block; width: 26px; height: 2px; background: var(--navy); transition: .3s; }
.menu-button[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-button[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-button[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   Buttons + links
   ============================================================ */
.button {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 30px;
  padding: 17px 22px; min-width: 214px;
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em;
  border: 0; cursor: pointer; transition: .2s;
}
.button:hover { transform: translateY(-2px); filter: brightness(1.08); }
.button.gold { background: var(--gold); color: #fff; }
.button.cream { background: var(--cream); color: var(--navy); }
.button.navy { background: var(--navy); color: #fff; }
.button.ghost { background: none; border: 1px solid currentColor; }

.text-link {
  display: inline-flex; align-items: center; gap: 20px;
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em;
  border-bottom: 1px solid currentColor; padding-bottom: 7px;
  transition: gap .2s;
}
.text-link:hover { gap: 30px; }
.ink-link { color: var(--ink); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 11px; text-transform: uppercase; letter-spacing: .18em; font-weight: 600;
}
.eyebrow::before { content: ""; height: 1px; width: 40px; background: var(--gold); }
.eyebrow.light { color: var(--gold-l); }

/* ============================================================
   Hero (home) — slider
   ============================================================ */
.hero {
  position: relative; min-height: min(88vh, 780px);
  display: flex; align-items: center; overflow: hidden; color: #fff;
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity 1.1s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(4,18,39,.96) 0%, rgba(4,18,39,.84) 34%, rgba(4,18,39,.28) 72%, rgba(4,18,39,.1) 100%);
}
.hero-copy {
  position: relative; z-index: 2;
  width: min(690px, 100%); padding: 84px 0 128px;
}
.hero h1 {
  font-size: clamp(46px, 6.4vw, 92px); line-height: .99;
  letter-spacing: -.04em; margin: 26px 0;
}
.hero-copy > p { font-size: 17px; line-height: 1.75; max-width: 530px; color: #dfe3e8; }
.hero-actions { display: flex; gap: 30px; align-items: center; flex-wrap: wrap; margin-top: 36px; }

.hero-dots {
  position: absolute; bottom: 34px; left: 0; z-index: 3;
  display: flex; gap: 10px;
}
.hero-dots button {
  width: 34px; height: 3px; border: 0; padding: 0; cursor: pointer;
  background: #ffffff4d; transition: background .25s;
}
.hero-dots button[aria-selected="true"] { background: var(--gold); }
.hero-note {
  position: absolute; bottom: 32px; right: var(--pad); z-index: 3;
  display: flex; align-items: flex-start; gap: 18px; width: 320px;
  border-top: 1px solid #ffffff77; padding-top: 15px;
}
.hero-note span { color: var(--gold); font-size: 11px; }
.hero-note p { margin: 0; font: 500 18px/1.35 "Playfair Display", serif; }

/* ============================================================
   Quick actions strip
   ============================================================ */
.quickbar { background: var(--navy2); color: #fff; }
.quickbar .shell {
  display: grid; grid-template-columns: repeat(3, 1fr);
}
.quickbar a {
  display: flex; align-items: center; gap: 18px;
  padding: 26px 24px 26px 0; border-right: 1px solid var(--line-d);
  transition: background .2s;
}
.quickbar a:first-child { padding-left: 0; }
.quickbar a:not(:first-child) { padding-left: 24px; }
.quickbar a:last-child { border-right: 0; }
.quickbar a:hover { background: #ffffff0d; }
.quickbar .qb-num { color: var(--gold); font: 500 15px "Playfair Display", serif; }
.quickbar b { display: block; font: 500 20px "Playfair Display", serif; }
.quickbar small { font-size: 12px; color: #a9b4c2; }
.quickbar .qb-arrow { margin-left: auto; color: var(--gold); }

/* ============================================================
   Page banner (inner pages)
   ============================================================ */
.page-banner {
  position: relative; color: #fff; overflow: hidden;
  display: flex; align-items: flex-end; min-height: 380px;
}
.page-banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-banner::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(4,18,39,.55) 0%, rgba(4,18,39,.86) 100%);
}
.page-banner .shell { position: relative; z-index: 2; padding: 70px 0 52px; }
.page-banner h1 { font-size: clamp(40px, 5.4vw, 74px); margin: 20px 0 14px; line-height: 1.02; }
.breadcrumbs { font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase; color: #b9c3d0; }
.breadcrumbs a:hover { color: var(--gold-l); }
.breadcrumbs span { opacity: .5; margin: 0 8px; }

/* ============================================================
   Sections
   ============================================================ */
.section { padding: clamp(64px, 8vw, 108px) 0; }
.section.tight { padding: clamp(48px, 5vw, 70px) 0; }
.section.dark { background: var(--navy); color: #fff; }
.section.soft { background: var(--cream); }
.section.white { background: #fff; }

.section-label {
  display: flex; justify-content: space-between;
  border-top: 1px solid #cfd2d3; padding-top: 13px;
  font-size: 10px; letter-spacing: .17em; text-transform: uppercase; color: var(--muted);
}
.section-label em { font-style: normal; color: var(--gold); }
.section-label.inverse { border-color: var(--line-d); color: #a7b0bd; }

.section h2 { font-size: clamp(36px, 5vw, 68px); margin: 0; line-height: 1.03; }
.section h2 i { font-style: italic; font-weight: 400; color: var(--olive); }
.section.dark h2 i, .life h2 i { color: var(--gold-l); }
.lead { font: 500 clamp(19px, 2vw, 25px)/1.45 "Playfair Display", serif; }
.prose p { font-size: 14.5px; line-height: 1.85; color: var(--muted); }
.section.dark .prose p { color: #b4bdc8; }

/* Two-column intro */
.split {
  display: grid; grid-template-columns: 1.1fr .9fr;
  gap: clamp(36px, 8vw, 110px); margin: 48px 0;
  align-items: start;
}
.split.even { grid-template-columns: 1fr 1fr; }
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }

/* Photo collage */
.photo-pair {
  display: grid; grid-template-columns: 1.1fr .55fr 1.15fr;
  gap: 22px; align-items: end;
}
.photo-pair > div { position: relative; overflow: hidden; }
.photo-pair img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.photo-pair > div:hover img { transform: scale(1.04); }
.photo-pair > div > span {
  position: absolute; bottom: 16px; left: 18px; background: #fff; color: var(--ink);
  padding: 9px 12px; font-size: 10px; text-transform: uppercase; letter-spacing: .08em;
}
.photo-tall { height: 430px; }
.photo-wide { height: 300px; }
.quote-card {
  height: 300px; background: var(--gold); color: #fff; padding: 28px;
  display: flex; flex-direction: column; justify-content: center;
}
.quote-card b { font: 80px/.4 "Playfair Display", serif; opacity: .5; }
.quote-card p { font: 500 21px/1.4 "Playfair Display", serif; margin: 14px 0; }
.quote-card span { font-size: 9px; letter-spacing: .14em; }

/* ============================================================
   Stats
   ============================================================ */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-d);
}
.stats div { padding: 40px 26px 40px 0; border-right: 1px solid var(--line-d); }
.stats div:not(:first-child) { padding-left: 26px; }
.stats div:last-child { border-right: 0; }
.stats b { display: block; font: 500 clamp(40px, 4.6vw, 62px)/1 "Playfair Display", serif; color: var(--gold-l); }
.stats span { display: block; margin-top: 12px; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: #aeb7c2; }

/* ============================================================
   Programme cards
   ============================================================ */
.programs { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-d); }
.programs article { padding: 36px 30px 26px 0; border-right: 1px solid var(--line-d); position: relative; }
.programs article:not(:first-child) { padding-left: 30px; }
.programs article:last-child { border-right: 0; }
.programs .number { position: absolute; right: 18px; top: 20px; color: #ffffff40; font: 54px "Playfair Display", serif; }
.programs .age { color: var(--gold-l); text-transform: uppercase; letter-spacing: .12em; font-size: 9.5px; font-weight: 600; margin: 0; }
.programs h3 { font-size: 31px; margin: 20px 0 14px; }
.programs .desc { color: #aeb7c2; font-size: 13.5px; line-height: 1.7; min-height: 92px; }
.programs a {
  font-size: 10px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600;
  display: flex; justify-content: space-between;
  border-top: 1px solid #ffffff28; padding-top: 15px; margin-top: 22px;
}
.programs a:hover { color: var(--gold-l); }

/* ============================================================
   Pillars
   ============================================================ */
.pillars article {
  display: grid; grid-template-columns: 68px 1fr;
  border-top: 1px solid #d7d8d4; padding: 24px 0;
}
.pillars article > span { color: var(--gold); font-size: 11px; font-weight: 600; }
.pillars h3 { font-size: 27px; margin: 0 0 6px; }
.pillars p { color: var(--muted); font-size: 13.5px; margin: 0; }
.sticky-copy { position: sticky; top: 130px; align-self: start; }

/* ============================================================
   Feature cards grid
   ============================================================ */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.cards.four { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; transition: .3s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 44px #0b284d17; }
.card-media { height: 210px; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.card:hover .card-media img { transform: scale(1.05); }
.card-body { padding: 26px 24px 28px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { font-size: 23px; margin: 0 0 10px; }
.card-body p { font-size: 13.5px; color: var(--muted); line-height: 1.75; }
.card-tag {
  font-size: 9.5px; text-transform: uppercase; letter-spacing: .12em;
  color: var(--olive); font-weight: 600; margin-bottom: 12px;
}
.card-body .text-link { margin-top: auto; align-self: flex-start; font-size: 11px; }

/* ============================================================
   Life band
   ============================================================ */
.life { background: var(--olive); color: #fff; display: grid; grid-template-columns: 1.15fr .85fr; }
.life-image { min-height: 560px; }
.life-image img { width: 100%; height: 100%; object-fit: cover; }
.life-copy { padding: clamp(48px, 7vw, 96px) clamp(28px, 6vw, 80px); align-self: center; }
.life-copy h2 { font-size: clamp(38px, 5vw, 72px); margin: 22px 0; line-height: 1.03; }
.life-copy p { font-size: 14.5px; line-height: 1.85; color: #eef0e6; }

/* ============================================================
   Gallery
   ============================================================ */
.gallery-filters { display: flex; gap: 10px; flex-wrap: wrap; margin: 34px 0 28px; }
.gallery-filters button {
  background: none; border: 1px solid var(--line); padding: 10px 20px; cursor: pointer;
  font-size: 11px; text-transform: uppercase; letter-spacing: .09em; font-weight: 600; transition: .2s;
}
.gallery-filters button:hover { border-color: var(--gold); }
.gallery-filters button[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-grid figure { margin: 0; position: relative; overflow: hidden; cursor: zoom-in; }
.gallery-grid img { width: 100%; height: 300px; object-fit: cover; transition: transform .6s; }
.gallery-grid figure:hover img { transform: scale(1.05); }
.gallery-grid figcaption {
  position: absolute; bottom: 0; left: 0; background: #fff; color: var(--ink);
  padding: 12px 16px; font-size: 10px; text-transform: uppercase; letter-spacing: .07em;
}
.gallery-grid figure.tall img { height: 420px; }
.gallery-grid figure[hidden] { display: none; }

.lightbox {
  position: fixed; inset: 0; z-index: 200; background: #04152dee;
  display: none; align-items: center; justify-content: center; padding: 5vw;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 82vh; object-fit: contain; }
.lightbox-cap { color: #fff; text-align: center; margin-top: 16px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.lightbox button {
  position: absolute; background: none; border: 0; color: #fff; cursor: pointer;
  font-size: 34px; line-height: 1; padding: 12px;
}
.lb-close { top: 18px; right: 24px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }

/* ============================================================
   FAQ accordion
   ============================================================ */
.faqs article { border-top: 1px solid #bfc1b7; }
.faqs article:last-child { border-bottom: 1px solid #bfc1b7; }
.faqs button {
  border: 0; background: none; width: 100%; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  text-align: left; padding: 22px 0; color: var(--ink);
}
.faqs button span { font: 500 18px/1.4 "Playfair Display", serif; }
.faqs button b { font-weight: 300; font-size: 26px; color: var(--gold); flex-shrink: 0; }
.faqs .panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.faqs .panel > div { overflow: hidden; }
.faqs article.active .panel { grid-template-rows: 1fr; }
.faqs .panel p { color: var(--muted); font-size: 13.5px; line-height: 1.8; margin: 0; padding: 0 40px 24px 0; }

/* ============================================================
   Tables (fees, calendar)
   ============================================================ */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); background: #fff; }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
thead th {
  background: var(--navy); color: #fff; text-align: left;
  padding: 16px 20px; font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; font-weight: 600;
}
tbody td { padding: 16px 20px; border-bottom: 1px solid var(--line); font-size: 14px; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) { background: #fcfbf8; }
tbody td:first-child { font-weight: 500; color: var(--ink); }
.table-note { font-size: 12px; color: var(--muted); margin-top: 14px; }

/* ============================================================
   News
   ============================================================ */
.news-date {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .11em;
  color: var(--gold); font-weight: 600;
}
.news-featured { display: grid; grid-template-columns: 1.15fr .85fr; gap: 0; background: #fff; border: 1px solid var(--line); }
.news-featured img { width: 100%; height: 100%; min-height: 340px; object-fit: cover; }
.news-featured-body { padding: clamp(30px, 4vw, 56px); align-self: center; }
.news-featured-body h3 { font-size: clamp(26px, 3vw, 40px); margin: 14px 0 16px; line-height: 1.15; }
.news-featured-body p { color: var(--muted); font-size: 14.5px; line-height: 1.8; }

/* ============================================================
   Contact
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 6vw, 76px); }
.contact-block { border-top: 1px solid var(--line); padding: 22px 0; }
.contact-block h3 { font-size: 19px; margin: 0 0 6px; }
.contact-block p, .contact-block a { font-size: 14px; color: var(--muted); margin: 0; }
.contact-block a:hover { color: var(--gold); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 14px; padding: 14px 16px;
  border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 0;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--gold); }
.form-note { font-size: 12px; color: var(--muted); margin-top: 6px; }
.form-status {
  grid-column: 1 / -1; padding: 14px 18px; font-size: 13px;
  background: var(--cream); border-left: 3px solid var(--gold); display: none;
}
.form-status.show { display: block; }
.form-status.is-error { border-left-color: #b4402f; background: #fbeeeb; }

.map-embed { border: 1px solid var(--line); line-height: 0; }
.map-embed iframe { width: 100%; height: 400px; border: 0; }

/* ============================================================
   Admissions card
   ============================================================ */
.admission-card {
  background: var(--navy2); color: #fff; padding: clamp(38px, 5vw, 72px);
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; position: relative; overflow: hidden;
}
.admission-card::after {
  content: "PQ"; position: absolute; right: 24px; bottom: -34px;
  font: 160px "Playfair Display", serif; color: #ffffff0a;
}
.admission-card h2 { font-size: clamp(34px, 4.4vw, 62px); margin: 22px 0; }
.admission-card > div > p { color: #bbc5d0; line-height: 1.75; font-size: 14.5px; }
.steps { display: grid; grid-template-columns: 34px 1fr; gap: 18px; align-content: center; }
.steps > span {
  width: 30px; height: 30px; border: 1px solid var(--gold); border-radius: 50%;
  display: grid; place-items: center; color: var(--gold); font-size: 11px;
}
.steps p { margin: 0 0 18px; color: #bbc5d0; font-size: 13.5px; }
.steps b { display: block; color: #fff; font: 500 18px "Playfair Display", serif; margin-bottom: 4px; }
.admission-actions {
  grid-column: 1 / -1; border-top: 1px solid #ffffff36; padding-top: 26px;
  display: flex; align-items: center; gap: 30px; flex-wrap: wrap;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--navy3); color: #bbc4cf; padding: clamp(52px, 6vw, 80px) 0 26px; }
.footer-main { display: grid; grid-template-columns: 1.5fr .8fr 1fr 1fr; gap: clamp(28px, 5vw, 70px); }
.footer-brand img { width: 118px; height: 128px; object-fit: contain; background: #fff; padding: 8px; }
.footer-brand p { color: var(--gold); font: italic 16px "Playfair Display", serif; margin-top: 16px; }
.footer-col { display: flex; flex-direction: column; gap: 11px; font-size: 12.5px; }
.footer-col b { color: #fff; text-transform: uppercase; letter-spacing: .13em; font-size: 10px; margin-bottom: 8px; }
.footer-col a:hover { color: var(--gold); }
.footer-col p { line-height: 1.75; margin: 0; }
.footer-social { display: flex; gap: 12px; margin-top: 6px; }
.footer-social a {
  width: 34px; height: 34px; border: 1px solid #ffffff2e;
  display: grid; place-items: center; transition: .2s;
}
.footer-social a:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.footer-social svg { width: 15px; height: 15px; fill: currentColor; }
.footer-apply {
  margin-top: 12px; border-top: 1px solid #ffffff33; padding-top: 14px;
  display: flex; justify-content: space-between; color: #fff;
  text-transform: uppercase; letter-spacing: .08em; font-size: 11px; font-weight: 600;
}
.footer-apply:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid #ffffff22; margin-top: 52px; padding-top: 22px;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: 9.5px; text-transform: uppercase; letter-spacing: .08em;
}

/* Back to top */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 80;
  width: 46px; height: 46px; background: var(--navy); color: #fff;
  border: 0; cursor: pointer; display: grid; place-items: center;
  opacity: 0; pointer-events: none; transition: .3s; transform: translateY(10px);
}
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { background: var(--gold); }

/* ============================================================
   Scroll reveal
   ============================================================ */
/* Only hide for reveal when JS is running, so content is never lost without it. */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1180px) {
  .nav-link { padding: 12px 9px; font-size: 12.5px; }
  .brand img { height: 56px; width: 50px; }
  .brand-text b { font-size: 20px; }
}

@media (max-width: 1000px) {
  .topline-note { display: none; }
  .site-header .shell { min-height: 74px; }
  .menu-button { display: flex; }

  .main-nav {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(400px, 88vw);
    background: #fff; flex-direction: column; align-items: stretch; gap: 0;
    padding: 92px 30px 40px; overflow-y: auto; z-index: 100;
    transform: translateX(102%); transition: transform .35s ease;
    box-shadow: -18px 0 44px #0b284d24;
  }
  .main-nav.open { transform: none; }
  .nav-item { border-bottom: 1px solid var(--line); }
  .nav-link { width: 100%; justify-content: space-between; padding: 18px 2px; font-size: 15px; }
  .nav-link::after { display: none; }
  .submenu {
    position: static; display: block; border: 0; box-shadow: none; padding: 0;
    min-width: 0; max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav-item.open > .submenu { max-height: 520px; padding-bottom: 10px; }
  .submenu a { padding: 10px 0 10px 16px; border-left: 1px solid var(--line); }
  .submenu a:hover { background: none; }
  .nav-cta { margin: 22px 0 0; justify-content: center; }
  .nav-backdrop {
    position: fixed; inset: 0; background: #04152d80; z-index: 99;
    opacity: 0; pointer-events: none; transition: opacity .3s;
  }
  .nav-backdrop.show { opacity: 1; pointer-events: auto; }

  .hero { min-height: 660px; }
  .hero-slide img { object-position: 62% center; }
  .hero-shade { background: linear-gradient(90deg, rgba(4,18,39,.95), rgba(4,18,39,.5)); }
  .hero-copy { padding: 72px 0 150px; }
  .hero-note { display: none; }

  .quickbar .shell { grid-template-columns: 1fr; }
  .quickbar a { border-right: 0; border-bottom: 1px solid var(--line-d); padding: 22px 0 !important; }
  .quickbar a:last-child { border-bottom: 0; }

  .split, .split.even, .contact-grid, .news-featured { grid-template-columns: 1fr; gap: 34px; }
  .news-featured img { min-height: 260px; }
  .sticky-copy { position: static; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats div:nth-child(2n) { border-right: 0; }
  .stats div:nth-child(-n+2) { border-bottom: 1px solid var(--line-d); }
  .programs { grid-template-columns: 1fr; }
  .programs article, .programs article:not(:first-child) {
    padding: 30px 0; border-right: 0; border-bottom: 1px solid var(--line-d);
  }
  .cards, .cards.four { grid-template-columns: repeat(2, 1fr); }
  .photo-pair { grid-template-columns: 1fr 1fr; }
  .photo-tall { grid-row: span 2; height: 100%; min-height: 420px; }
  .quote-card, .photo-wide { height: 210px; }
  .life { grid-template-columns: 1fr; }
  .life-image { min-height: 420px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid figure.tall img { height: 300px; }
  .admission-card { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .page-banner { min-height: 300px; }
}

@media (max-width: 640px) {
  .topline .shell { justify-content: center; padding-block: 8px; }
  .topline-contact { display: none; }
  .hero h1 { font-size: 42px; }
  .hero-copy > p { font-size: 15px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .button { width: 100%; }
  .photo-pair { display: block; }
  .photo-pair > div { height: 260px; margin-bottom: 12px; }
  .photo-tall { min-height: 0; }
  .quote-card { height: auto; }
  .cards, .cards.two, .cards.four, .gallery-grid, .form-grid { grid-template-columns: 1fr; }
  .gallery-grid img, .gallery-grid figure.tall img { height: 260px; }
  .stats { grid-template-columns: 1fr; }
  .stats div { border-right: 0; border-bottom: 1px solid var(--line-d); padding: 26px 0 !important; }
  .stats div:last-child { border-bottom: 0; }
  .footer-main { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .admission-actions { flex-direction: column; align-items: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .topline, .site-header, .site-footer, .to-top, .hero-dots { display: none; }
  body { background: #fff; }
}
