@charset "utf-8";
/* ==========================================================================
   St. Mark International Academy — site stylesheet
   Palette sampled directly from the school crest (see README).
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  color-scheme: light; /* This is a mockup of a public school website: it commits to one look. */

  /* Crest palette */
  --maroon-900: #4e0a0a;
  --maroon-800: #5f0d0d;
  --maroon-700: #7a0f0f;
  --maroon-500: #a32222;
  --green-800:  #005010;
  --green-600:  #17692b;
  --gold-500:   #f88830;
  --gold-400:   #ffa83c;
  --gold-300:   #ffd9a8;
  --gold-100:   #fff1de;
  --cream-50:   #fbf7f1;
  --cream-100:  #f4ede3;
  --ink-900:    #241816;
  --ink-700:    #3e2e2b;
  --ink-600:    #5b4b48;

  /* Semantic — light */
  --bg:          #ffffff;
  --bg-alt:      var(--cream-50);
  --surface:     #ffffff;
  --surface-alt: var(--cream-100);
  --text:        var(--ink-900);
  --text-muted:  var(--ink-600);
  --border:      #e7ddd0;
  --brand:       var(--maroon-700);
  --brand-deep:  var(--maroon-900);
  --brand-hover: var(--maroon-500);
  --brand-text:  var(--maroon-700);
  --on-brand:    #ffffff;
  --on-brand-dim:#f0d9d4;
  --accent:      var(--gold-500);
  --accent-soft: var(--gold-300);
  --accent-wash: var(--gold-100);
  --on-accent:   var(--ink-900);
  --leaf:        var(--green-800);
  --leaf-wash:   #eaf3ea;
  --focus-ring:  var(--maroon-700);
  --focus-halo:  var(--gold-300);

  /* Type */
  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body: "Libre Franklin", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;

  /* Space */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px;
  --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;

  /* Shape */
  --r-sm: 6px; --r-md: 12px; --r-lg: 20px; --r-xl: 28px; --r-pill: 999px;
  --wrap: 1140px;
  --shadow-sm: 0 1px 2px rgba(74,10,10,.06), 0 2px 8px rgba(74,10,10,.05);
  --shadow-md: 0 1px 2px rgba(74,10,10,.06), 0 10px 28px rgba(74,10,10,.09);
  --shadow-lg: 0 2px 4px rgba(74,10,10,.07), 0 24px 56px rgba(74,10,10,.16);

  /* Decorative crest watermark (inlined by build/inline.py for the artifact) */
  --crest-watermark: url("../img/crest-512.png");
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 var(--s4);
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.65rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.1vw, 1.45rem); }
h4 { font-size: 1.05rem; }
p  { margin: 0 0 var(--s4); text-wrap: pretty; }
ul, ol { margin: 0 0 var(--s4); padding-left: 1.2em; }
li { margin-bottom: var(--s2); }
a { color: var(--brand-text); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-hover); }
strong { font-weight: 650; }
hr { border: 0; border-top: 1px solid var(--border); margin: var(--s7) 0; }

:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: var(--r-sm);
  box-shadow: 0 0 0 6px var(--focus-halo);
}
.on-dark :where(a, button, input, textarea, select, summary):focus-visible {
  outline-color: var(--gold-300);
  box-shadow: 0 0 0 6px rgba(255,217,168,.28);
}

.skip-link {
  position: absolute; left: var(--s4); top: -100px; z-index: 200;
  background: var(--gold-500); color: var(--ink-900);
  padding: var(--s3) var(--s5); border-radius: var(--r-pill);
  font-weight: 650; text-decoration: none; transition: top .15s ease;
}
.skip-link:focus { top: var(--s4); color: var(--ink-900); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(20px, 5vw, 32px); }
.wrap--narrow { max-width: 780px; }
.wrap--mid { max-width: 960px; }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }
.section--cream { background: var(--bg-alt); }
.section--brand { background: var(--brand-deep); color: var(--on-brand); }
.section--brand h2, .section--brand h3 { color: var(--on-brand); }
.section--brand p { color: var(--on-brand-dim); }

.grid { display: grid; gap: var(--s5); }
@media (min-width: 640px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .grid--2 { gap: var(--s6); }
}
@media (min-width: 640px) and (max-width: 899px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }

.stack > * + * { margin-top: var(--s4); }
.center { text-align: center; }
.center .lede, .center > p { margin-inline: auto; }

/* --------------------------------------------------------------------------
   4. Text helpers
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s2);
  font-family: var(--font-body); font-size: .78rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--leaf); margin: 0 0 var(--s3);
}
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: var(--accent); }
.on-dark .eyebrow, .section--brand .eyebrow { color: var(--gold-300); }
.lede { font-size: clamp(1.05rem, 1.7vw, 1.22rem); color: var(--text-muted); max-width: 62ch; }
.section--brand .lede { color: var(--on-brand-dim); }
.muted { color: var(--text-muted); }
.small { font-size: .9rem; }

/* Unverified placeholder copy — see README content policy */
.tbc {
  border-bottom: 2px dotted var(--gold-500);
  background: var(--accent-wash);
  padding: 0 3px; border-radius: 3px;
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 48px; padding: var(--s3) var(--s6);
  border: 2px solid transparent; border-radius: var(--r-pill);
  font-family: var(--font-body); font-size: 1rem; font-weight: 650;
  text-decoration: none; cursor: pointer; text-align: center;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--gold-500); color: var(--on-accent); }
.btn--primary:hover { background: var(--gold-400); color: var(--on-accent); }
.btn--brand { background: var(--brand); color: #fff; }
.btn--brand:hover { background: var(--brand-hover); color: #fff; }
.btn--outline { border-color: var(--brand); color: var(--brand-text); background: transparent; }
.btn--outline:hover { background: var(--brand); color: #fff; }
.btn--ghost-light { border-color: rgba(255,255,255,.5); color: #fff; background: transparent; }
.btn--ghost-light:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s3); }
.center .btn-row { justify-content: center; }

/* --------------------------------------------------------------------------
   6. Header + navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--maroon-700);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.09), var(--shadow-sm);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
  min-height: 74px;
}
.brand { display: flex; align-items: center; gap: var(--s3); text-decoration: none; color: #fff; padding-block: var(--s2); }
.brand img { width: 46px; height: 46px; flex: none; }
.brand__name { font-family: var(--font-display); font-size: 1.02rem; font-weight: 700; line-height: 1.15; letter-spacing: .005em; }
.brand__tag { font-size: .72rem; color: var(--on-brand-dim); letter-spacing: .04em; line-height: 1.3; }
@media (max-width: 420px) { .brand__tag { display: none; } }

.nav { display: none; }
.nav__list { display: flex; align-items: center; gap: var(--s1); list-style: none; margin: 0; padding: 0; }
.nav__list li { margin: 0; }
.nav__link {
  display: block; padding: 10px 13px; border-radius: var(--r-pill);
  color: #fff; text-decoration: none; font-size: .93rem; font-weight: 550;
  transition: background-color .15s ease;
}
.nav__link:hover { background: rgba(255,255,255,.14); color: #fff; }
.nav__link[aria-current="page"] { background: rgba(0,0,0,.24); color: #fff; box-shadow: inset 0 -2px 0 var(--gold-500); }
.header-cta { display: none; }
@media (min-width: 1060px) {
  .nav { display: block; }
  .header-cta { display: inline-flex; min-height: 44px; padding-inline: var(--s5); font-size: .95rem; }
}

.nav-toggle {
  display: inline-flex; align-items: center; gap: var(--s2);
  min-height: 46px; padding: 0 var(--s4);
  background: rgba(255,255,255,.12); color: #fff;
  border: 1px solid rgba(255,255,255,.3); border-radius: var(--r-pill);
  font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer;
}
.nav-toggle:hover { background: rgba(255,255,255,.2); }
@media (min-width: 1060px) { .nav-toggle { display: none; } }
.nav-toggle__bars { position: relative; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.nav-toggle__bars::before, .nav-toggle__bars::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform .2s ease, top .2s ease;
}
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after  { top: 0; transform: rotate(-45deg); }

.drawer {
  position: fixed; inset: 0; z-index: 150;
  background: var(--maroon-900);
  display: flex; flex-direction: column;
  padding: var(--s4) 0 var(--s7);
  overflow-y: auto;
  visibility: hidden; opacity: 0;
  /* visibility flips instantly on open (so the drawer can take focus) and only
     after the fade on close */
  transition: opacity .2s ease, visibility 0s linear .2s;
}
.drawer[data-open="true"] { visibility: visible; opacity: 1; transition: opacity .2s ease, visibility 0s linear 0s; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); }
.drawer__close {
  min-height: 46px; padding: 0 var(--s4);
  background: rgba(255,255,255,.12); color: #fff;
  border: 1px solid rgba(255,255,255,.3); border-radius: var(--r-pill);
  font: inherit; font-weight: 600; cursor: pointer;
}
.drawer__list { list-style: none; margin: var(--s6) 0 0; padding: 0; }
.drawer__list li { margin: 0; border-top: 1px solid rgba(255,255,255,.14); }
.drawer__list li:last-child { border-bottom: 1px solid rgba(255,255,255,.14); }
.drawer__link {
  display: block; padding: var(--s4) var(--s1);
  color: #fff; text-decoration: none;
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 600;
}
.drawer__link[aria-current="page"] { color: var(--gold-300); }
.drawer .btn { margin-top: var(--s6); width: 100%; }
body[data-scroll-locked="true"] { overflow: hidden; }

/* --------------------------------------------------------------------------
   7. Hero (home)
   -------------------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 90% at 12% 0%, #93191a 0%, rgba(147,25,26,0) 60%),
    linear-gradient(160deg, var(--maroon-800) 0%, var(--maroon-900) 62%, #3a0707 100%);
  color: #fff;
  padding-block: clamp(48px, 8vw, 96px);
}
.hero::after {
  content: ""; position: absolute; right: -14%; top: -22%;
  width: min(680px, 78vw); aspect-ratio: 1; pointer-events: none;
  background: var(--crest-watermark, none) center/contain no-repeat;
  opacity: .06;
}
.hero__inner { position: relative; z-index: 1; display: grid; gap: clamp(32px, 5vw, 56px); align-items: center; }
@media (min-width: 900px) { .hero__inner { grid-template-columns: 1.08fr .92fr; } }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 5.6vw, 3.7rem); margin-bottom: var(--s5); }
.hero h1 .accent { color: var(--gold-300); display: block; }
.hero__lede { color: var(--on-brand-dim); font-size: clamp(1.05rem, 1.9vw, 1.25rem); max-width: 48ch; }
.hero__meta { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); margin-top: var(--s6); font-size: .92rem; color: var(--on-brand-dim); }
.hero__meta span { display: inline-flex; align-items: center; gap: var(--s2); }
.hero__meta span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-500); flex: none; }
.hero__figure { position: relative; }
.hero__figure img {
  width: 100%; border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg); border: 5px solid rgba(255,255,255,.9);
  aspect-ratio: 3 / 4; object-fit: cover;
}
@media (max-width: 899px) { .hero__figure img { aspect-ratio: 4 / 3; } }
.hero__badge {
  position: absolute; left: -12px; bottom: -18px;
  background: var(--gold-500); color: var(--ink-900);
  border-radius: var(--r-lg); padding: var(--s3) var(--s5);
  box-shadow: var(--shadow-md); font-weight: 700; line-height: 1.2;
}
.hero__badge b { display: block; font-family: var(--font-display); font-size: 1.5rem; }
.hero__badge span { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }

/* Page hero (interior pages) */
.page-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(150deg, var(--maroon-800) 0%, var(--maroon-900) 100%);
  color: #fff; padding-block: clamp(44px, 6.5vw, 84px);
}
.page-hero::after {
  content: ""; position: absolute; right: -8%; top: 50%; transform: translateY(-50%);
  width: min(400px, 55vw); aspect-ratio: 1; pointer-events: none;
  background: var(--crest-watermark, none) center/contain no-repeat; opacity: .07;
}
.page-hero__inner { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; margin-bottom: var(--s4); }
.page-hero .lede { color: var(--on-brand-dim); }
.breadcrumb { font-size: .85rem; color: var(--on-brand-dim); margin-bottom: var(--s4); }
.breadcrumb a { color: var(--gold-300); text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }

/* --------------------------------------------------------------------------
   8. Cards, facts, features
   -------------------------------------------------------------------------- */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: var(--s6);
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card > :last-child { margin-bottom: 0; }
.card--link:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.card__icon {
  width: 52px; height: 52px; flex: none; margin-bottom: var(--s4);
  display: grid; place-items: center;
  background: var(--accent-wash); color: var(--brand-text);
  border-radius: var(--r-md); font-size: 1.5rem;
}
.card h3 { margin-bottom: var(--s3); color: var(--brand-text); }
.card__meta { margin-top: auto; padding-top: var(--s4); font-size: .85rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--leaf); }

.facts { display: grid; gap: var(--s5); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.fact { text-align: center; padding: var(--s5) var(--s3); }
.fact b { display: block; font-family: var(--font-display); font-size: clamp(1.9rem, 4vw, 2.7rem); line-height: 1; color: var(--brand-text); }
.fact span { display: block; margin-top: var(--s2); font-size: .84rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; }
.section--brand .fact b { color: var(--gold-300); }
.section--brand .fact span { color: var(--on-brand-dim); }

.media-row { display: grid; gap: clamp(28px, 5vw, 56px); align-items: center; }
@media (min-width: 900px) {
  .media-row { grid-template-columns: 1fr 1fr; }
  .media-row--flip .media-row__media { order: 2; }
}
.media-row__media img { width: 100%; border-radius: var(--r-xl); box-shadow: var(--shadow-md); }
.media-row__body > :last-child { margin-bottom: 0; }

/* Photo placeholder — for shots the school still needs to supply */
.photo-slot {
  display: grid; place-content: center; gap: var(--s2); text-align: center;
  aspect-ratio: 4 / 3; padding: var(--s5);
  background:
    repeating-linear-gradient(135deg, var(--surface-alt) 0 12px, transparent 12px 24px),
    var(--bg-alt);
  border: 2px dashed var(--border); border-radius: var(--r-lg); color: var(--text-muted);
}
.photo-slot b { font-family: var(--font-display); font-size: 1rem; color: var(--brand-text); }
.photo-slot span { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }

/* --------------------------------------------------------------------------
   9. Lists: steps, checklist, announcements, FAQ
   -------------------------------------------------------------------------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s5); counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li {
  counter-increment: step; margin: 0; position: relative;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: var(--s7) var(--s5) var(--s5); box-shadow: var(--shadow-sm);
}
.steps li::before {
  content: counter(step); position: absolute; top: calc(-1 * var(--s5)); left: var(--s5);
  width: 52px; height: 52px; display: grid; place-items: center;
  background: var(--brand); color: #fff; border: 4px solid var(--bg-alt); border-radius: 50%;
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 700;
}
.steps h3 { font-size: 1.12rem; margin-bottom: var(--s2); }
.steps p { margin: 0; font-size: .95rem; color: var(--text-muted); }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); }
@media (min-width: 640px) { .checklist { grid-template-columns: repeat(2, 1fr); } }
.checklist li {
  margin: 0; display: flex; gap: var(--s3); align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: var(--s4);
}
.checklist li::before {
  content: "✓"; flex: none; width: 26px; height: 26px; display: grid; place-items: center;
  background: var(--leaf-wash); color: var(--leaf); border-radius: 50%; font-weight: 700; font-size: .85rem;
}

.news-list {
  list-style: none; margin: 0; padding: 0 0 0 34px;
  display: grid; gap: var(--s4); position: relative;
}
.news-list::before {
  content: ""; position: absolute; left: 11px; top: 30px; bottom: 30px; width: 2px;
  background: linear-gradient(var(--gold-400), var(--gold-300) 40%, var(--border));
}
.news-item {
  margin: 0; display: grid; gap: var(--s4); align-items: start; position: relative;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: var(--s5);
}
.news-item::before {
  content: ""; position: absolute; left: -29px; top: 28px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--gold-500); box-shadow: 0 0 0 4px var(--bg);
}
.section--cream .news-item::before { box-shadow: 0 0 0 4px var(--bg-alt); }
@media (min-width: 700px) { .news-item { grid-template-columns: 150px 1fr; } }
.news-item time {
  font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--leaf);
}
.news-item h3 { font-size: 1.15rem; margin-bottom: var(--s2); }
.news-item p { margin: 0; color: var(--text-muted); font-size: .96rem; }

.faq { display: grid; gap: var(--s3); }
.faq details {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--s4) var(--s5);
}
.faq summary {
  cursor: pointer; font-family: var(--font-display); font-size: 1.08rem; font-weight: 600;
  color: var(--brand-text); list-style: none; display: flex; justify-content: space-between; gap: var(--s4);
  min-height: 32px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--accent); line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details[open] summary { margin-bottom: var(--s3); }
.faq p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   10. Gallery
   -------------------------------------------------------------------------- */
.gallery { display: grid; gap: var(--s4); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery figure { margin: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--surface-alt); box-shadow: var(--shadow-sm); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery figcaption { padding: var(--s3) var(--s4); font-size: .87rem; color: var(--text-muted); }
.gallery .photo-slot { border-radius: 0; border: 0; }

/* --------------------------------------------------------------------------
   11. Forms
   -------------------------------------------------------------------------- */
.form { display: grid; gap: var(--s4); }
@media (min-width: 640px) { .form__row { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s4); } }
.field { display: grid; gap: var(--s2); }
.field label { font-size: .9rem; font-weight: 650; color: var(--text); }
.field .hint { font-size: .82rem; color: var(--text-muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 13px var(--s4); min-height: 48px; width: 100%;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--brand); }
.form__note {
  background: var(--accent-wash); border: 1px solid var(--accent-soft);
  border-radius: var(--r-md); padding: var(--s4); font-size: .9rem; color: var(--text);
}
.form__note b { color: var(--brand-text); }

/* --------------------------------------------------------------------------
   12. CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  background: linear-gradient(140deg, var(--maroon-700) 0%, var(--maroon-900) 100%);
  color: #fff; border-radius: var(--r-xl); padding: clamp(32px, 5vw, 60px);
  display: grid; gap: var(--s5); align-items: center; box-shadow: var(--shadow-md);
}
@media (min-width: 900px) { .cta-band { grid-template-columns: 1.4fr 1fr; } }
.cta-band h2 { color: #fff; margin-bottom: var(--s3); }
.cta-band p { color: var(--on-brand-dim); margin: 0; }
.cta-band .btn-row { justify-content: flex-start; }
@media (min-width: 900px) { .cta-band .btn-row { justify-content: flex-end; } }

/* --------------------------------------------------------------------------
   13. Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--maroon-900); color: var(--on-brand-dim); padding-block: clamp(48px, 7vw, 76px) var(--s6); }
.site-footer__grid { display: grid; gap: var(--s6); }
@media (min-width: 700px) { .site-footer__grid { grid-template-columns: 1.5fr 1fr 1fr; } }
@media (min-width: 1000px) { .site-footer__grid { grid-template-columns: 1.7fr 1fr 1fr 1.2fr; } }
.site-footer h4 {
  color: #fff; font-family: var(--font-body); font-size: .82rem; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase; margin-bottom: var(--s4);
}
.site-footer a { color: var(--on-brand-dim); text-decoration: none; }
.site-footer a:hover { color: var(--gold-300); text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: var(--s3); font-size: .94rem; }
.footer-brand { display: flex; gap: var(--s4); align-items: flex-start; }
.footer-brand img { width: 62px; height: 62px; flex: none; }
.footer-brand p { font-size: .94rem; margin: var(--s2) 0 0; }
.footer-brand .name { color: #fff; font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; line-height: 1.2; }
.site-footer__bottom {
  margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid rgba(255,255,255,.16);
  display: flex; flex-wrap: wrap; gap: var(--s3) var(--s5); justify-content: space-between;
  font-size: .85rem;
}

/* --------------------------------------------------------------------------
   14. Motion
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .btn:hover, .card--link:hover { transform: none; }
}

/* --------------------------------------------------------------------------
   15. Print
   -------------------------------------------------------------------------- */
@media print {
  .site-header, .drawer, .nav-toggle, .skip-link, .cta-band .btn-row { display: none !important; }
  body { font-size: 11pt; }
  .section { padding-block: 18pt; }
}

/* --------------------------------------------------------------------------
   16. Adjustments
   -------------------------------------------------------------------------- */
.site-header .wrap { max-width: 1280px; }
.nav__link { white-space: nowrap; padding: 10px 11px; font-size: .9rem; }
.header-cta { white-space: nowrap; }
@media (min-width: 1120px) {
  .nav { display: block; }
  .header-cta { display: inline-flex; min-height: 44px; padding-inline: var(--s5); font-size: .93rem; }
  .nav-toggle { display: none; }
}
@media (max-width: 1119px) {
  .nav { display: none; }
  .header-cta { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* Eyebrows sit on maroon in the heroes */
.hero .eyebrow, .page-hero .eyebrow, .cta-band .eyebrow { color: var(--gold-300); }

/* Placeholder markers need a different treatment on dark and on gold */
.on-dark .tbc, .hero .tbc, .page-hero .tbc, .cta-band .tbc, .section--brand .tbc {
  background: rgba(255,255,255,.16);
  border-bottom-color: var(--gold-300);
  color: inherit;
}
.btn .tbc { background: transparent; border-bottom: 2px dotted currentColor; }
.fact b.tbc { display: block; background: transparent; border-bottom: 3px dotted var(--gold-500); padding: 0; border-radius: 0; }

code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: .88em;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 1px 5px;
  overflow-wrap: anywhere;
}
.on-dark code, .page-hero code { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.22); }
.brand__name, .brand__tag { display: block; }
.brand > span { display: block; min-width: 0; }

/* Hero photograph is near-square after cropping */
.hero__figure img { aspect-ratio: 1 / 1; object-position: 50% 45%; }
@media (max-width: 899px) { .hero__figure img { aspect-ratio: 5 / 4; } }

/* SVG sprite icons inherit the card icon colour */
.card__icon svg { width: 26px; height: 26px; display: block; }

/* Compact brand lockup on small screens so the header stays one bar tall */
@media (max-width: 760px) {
  .brand img { width: 40px; height: 40px; }
  .brand__name { font-size: .88rem; }
  .brand__tag { display: none; }
  .site-header__inner { min-height: 64px; }
}
@media (max-width: 400px) {
  .brand__name { font-size: .8rem; }
  .nav-toggle span:not(.nav-toggle__bars) { display: none; }
  .nav-toggle { padding-inline: var(--s3); }
}

/* Anchor targets must clear the sticky header */
[id] { scroll-margin-top: 96px; }
