/* ============================================================
   Bharat Children's Academy & Jr. College
   Design system — ported from the BCA Design System project.
   Palette from the golden-jubilee crest. Warm neutrals only.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Mulish:ital,wght@0,300..900;1,400..700&display=swap');

/* ---------- Tokens: colour ---------- */
:root {
  --bca-crimson-900: #6E0F13;
  --bca-crimson-800: #8A161B;
  --bca-crimson-700: #A81C22;
  --bca-crimson-600: #C22A30;
  --bca-crimson-100: #F7E3E3;
  --bca-crimson-050: #FBF1F1;

  --bca-gold-700: #B9820A;
  --bca-gold-600: #D9A017;
  --bca-gold-500: #F2B705;
  --bca-gold-200: #F8E4A6;
  --bca-gold-100: #FCF3D4;

  --bca-green-800: #1F5C2A;
  --bca-green-700: #2E7D32;
  --bca-green-500: #46A24B;
  --bca-green-100: #E1F1E2;

  --bca-navy-900: #10182E;
  --bca-navy-700: #23315B;
  --bca-navy-500: #3A4C82;
  --bca-navy-100: #E6E9F2;

  --house-red: #D22F2F;
  --house-yellow: #F4C430;
  --house-green: #2F9E44;

  --ink-900: #1A1714;
  --ink-800: #3A342E;
  --ink-600: #6A625A;
  --ink-400: #9A928A;
  --line-300: #E4DED5;
  --line-200: #EFEAE1;
  --paper-100: #FAF7F1;
  --paper-050: #FFFDF9;
  --white: #FFFFFF;

  --color-primary: var(--bca-crimson-700);
  --color-primary-hover: var(--bca-crimson-800);
  --color-primary-active: var(--bca-crimson-900);
  --color-accent: var(--bca-gold-500);
  --color-accent-ink: var(--bca-gold-700);
  --color-secondary: var(--bca-navy-700);

  --text-strong: var(--ink-900);
  --text-body: var(--ink-800);
  --text-muted: var(--ink-600);
  --text-on-primary: #FFF4EF;
  --text-on-accent: var(--bca-crimson-900);
  --text-link: var(--bca-crimson-700);
  --text-link-hover: var(--bca-crimson-900);

  --surface-page: var(--paper-100);
  --surface-card: var(--paper-050);
  --surface-raised: var(--white);
  --surface-inverse: var(--bca-navy-900);
  --surface-tint-crimson: var(--bca-crimson-050);
  --surface-tint-gold: var(--bca-gold-100);
  --surface-tint-green: var(--bca-green-100);

  --border-subtle: var(--line-300);
  --focus-ring: var(--bca-gold-500);

  /* ---------- Tokens: type ---------- */
  --font-display: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
  --font-text: 'Mulish', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --fs-display: 3.5rem;
  --fs-h1: 2.5rem;
  --fs-h2: 1.875rem;
  --fs-h3: 1.375rem;
  --fs-h4: 1.125rem;
  --fs-lead: 1.25rem;
  --fs-body: 1rem;
  --fs-sm: 0.875rem;
  --fs-xs: 0.75rem;

  --tracking-eyebrow: 0.18em;

  /* ---------- Tokens: space & radius ---------- */
  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-5: 20px; --space-6: 24px; --space-8: 32px; --space-10: 40px;
  --space-12: 48px; --space-16: 64px; --space-20: 80px; --space-24: 96px;

  --radius-xs: 3px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  --container-max: 1200px;
  --container-narrow: 760px;
  --gutter: 24px;
  --section-y: 96px;

  /* ---------- Tokens: elevation & motion ---------- */
  --shadow-xs: 0 1px 2px rgba(58, 52, 46, 0.06);
  --shadow-sm: 0 2px 6px rgba(58, 52, 46, 0.08);
  --shadow-md: 0 6px 18px rgba(58, 52, 46, 0.10);
  --shadow-lg: 0 16px 40px rgba(58, 52, 46, 0.14);
  --shadow-brand: 0 10px 28px rgba(110, 15, 19, 0.20);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 140ms;
  --dur-base: 220ms;
  --dur-slow: 380ms;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-text);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text-body);
  background: var(--surface-page);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--text-link); text-decoration: none; }
a:hover { color: var(--text-link-hover); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; color: var(--text-strong); line-height: 1.2; }
:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--space-8); }
.wrap-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 var(--space-8); }
.section { padding: 84px 0; }
.section-sm { padding: 56px 0; }
.grid { display: grid; gap: var(--space-6); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.dots {
  position: absolute; inset: 0; opacity: 0.06; pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, currentColor 1px, transparent 0);
  background-size: 22px 22px;
}

/* ---------- Eyebrow / Section heading ---------- */
.eyebrow {
  font-size: var(--fs-xs); font-weight: 800; text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow); color: var(--color-primary);
}
.eyebrow--gold { color: var(--bca-gold-500); }
.section-heading { max-width: 680px; }
.section-heading.center { max-width: 720px; margin: 0 auto; text-align: center; }
.section-heading h2 {
  font-size: var(--fs-h2); margin-top: var(--space-3); letter-spacing: -0.01em;
}
.section-heading .rule {
  width: 56px; height: 3px; background: var(--bca-gold-500);
  border-radius: 2px; margin-top: var(--space-4);
}
.section-heading.center .rule { margin-left: auto; margin-right: auto; }
.section-heading p {
  margin-top: var(--space-4); font-size: 1.05rem; color: var(--text-muted); line-height: 1.65;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font-family: var(--font-text); font-weight: 700; font-size: var(--fs-sm);
  padding: 11px 20px; border-radius: var(--radius-sm); border: 1px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: filter var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              background var(--dur-fast) var(--ease-out);
}
.btn:hover { filter: brightness(0.93); }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn--primary { background: var(--color-primary); color: var(--text-on-primary); box-shadow: var(--shadow-brand); }
.btn--primary:hover { color: var(--text-on-primary); }
.btn--gold { background: var(--bca-gold-500); color: var(--text-on-accent); box-shadow: 0 10px 28px rgba(242, 183, 5, 0.28); }
.btn--gold:hover { color: var(--text-on-accent); }
.btn--outline { background: transparent; border-color: var(--line-300); color: var(--text-strong); }
.btn--outline:hover { background: var(--surface-tint-crimson); filter: none; color: var(--text-strong); }
.btn--ghost { background: transparent; color: var(--color-primary); }
.btn--ghost:hover { background: var(--surface-tint-crimson); filter: none; }
.btn--on-dark { color: #FBF6EE; border-color: rgba(251, 246, 238, 0.55); }
.btn--on-dark:hover { background: rgba(251, 246, 238, 0.12); color: #FBF6EE; }
.btn--sm { padding: 8px 15px; font-size: 0.8125rem; }
.btn--lg { padding: 14px 26px; font-size: var(--fs-body); }
.btn--block { width: 100%; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--fs-xs); font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.1em; padding: 6px 13px; border-radius: var(--radius-pill);
}
.badge--gold { background: var(--bca-gold-500); color: var(--bca-crimson-900); }
.badge--crimson { background: var(--surface-tint-crimson); color: var(--color-primary); }
.badge--green { background: var(--surface-tint-green); color: var(--bca-green-800); }
.badge--navy { background: var(--bca-navy-100); color: var(--bca-navy-700); }

.house-badge {
  display: flex; align-items: center; gap: var(--space-3);
  padding: 12px 18px; border-radius: var(--radius-md);
  background: var(--surface-card); border: 1px solid var(--line-200);
  font-weight: 800; color: var(--text-strong);
}
.house-badge .dot { width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0; }
.house-badge--red .dot { background: var(--house-red); }
.house-badge--yellow .dot { background: var(--house-yellow); }
.house-badge--green .dot { background: var(--house-green); }

/* ---------- Cards ---------- */
.card {
  background: var(--surface-card); border: 1px solid var(--line-200);
  border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
  padding: var(--space-8); position: relative; overflow: hidden;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.card--accent::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--bca-gold-500);
}
.card--interactive:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card h3 { font-size: var(--fs-h3); margin: var(--space-4) 0 var(--space-2); }
.card p { color: var(--text-muted); font-size: 0.9375rem; }

.icon-tile {
  width: 52px; height: 52px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  background: var(--surface-tint-crimson); color: var(--color-primary);
}
.icon-tile--green { background: var(--surface-tint-green); color: var(--bca-green-700); }
.icon-tile--gold { background: var(--surface-tint-gold); color: var(--bca-gold-700); }

/* ---------- Stat card ---------- */
.stat-card { text-align: center; padding: var(--space-4) var(--space-2); }
.stat-card .value {
  font-family: var(--font-display); font-weight: 700; font-size: 2.25rem;
  color: var(--color-primary); line-height: 1.1;
}
.stat-card--green .value { color: var(--bca-green-700); }
.stat-card--gold .value  { color: var(--bca-gold-700); }
.stat-card--navy .value  { color: var(--bca-navy-700); }
.stat-card .label {
  font-size: var(--fs-xs); font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--text-muted); margin-top: 6px;
}

/* ---------- Media / photo frame ---------- */
.media {
  border-radius: var(--radius-lg); overflow: hidden; position: relative;
  background: linear-gradient(135deg, #8A161B 0%, #6E0F13 100%);
}
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--crimson { background: linear-gradient(135deg, #8A161B 0%, #6E0F13 100%); }
.media--gold    { background: linear-gradient(135deg, #D9A017 0%, #B9820A 100%); }
.media--green   { background: linear-gradient(135deg, #2E7D32 0%, #1F5C2A 100%); }
.media--navy    { background: linear-gradient(135deg, #23315B 0%, #10182E 100%); }
.media--paper   { background: linear-gradient(135deg, #F1E7D3 0%, #E7D9BE 100%); }
.media-ph {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--space-3); height: 100%; color: rgba(255, 255, 255, 0.9);
  font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em;
}
.media--paper .media-ph { color: var(--ink-800); }

/* ---------- Utility bar ---------- */
.utility {
  background: var(--bca-navy-900); color: rgba(255, 255, 255, 0.82); font-size: 12.5px;
}
.utility .wrap {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 7px; padding-bottom: 7px; gap: var(--space-4);
}
.utility-group { display: flex; gap: var(--space-5); align-items: center; flex-wrap: wrap; }
.utility-item { display: flex; align-items: center; gap: 6px; color: inherit; }
.utility-item:hover { color: var(--bca-gold-500); }
.utility-portal { color: var(--bca-gold-500); font-weight: 700; }
.utility-portal:hover { color: var(--bca-gold-200); }

/* Action pills in the utility bar (borrowed from the reference site) */
.util-pills { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.util-pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 800; letter-spacing: 0.02em;
  padding: 5px 12px; border-radius: var(--radius-pill);
  color: #fff; white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease-out), filter var(--dur-fast) var(--ease-out);
}
.util-pill:hover { transform: translateY(-1px); filter: brightness(1.08); color: #fff; }
.util-pill--gold  { background: var(--bca-gold-500); color: var(--bca-crimson-900); }
.util-pill--gold:hover { color: var(--bca-crimson-900); }
.util-pill--green { background: var(--bca-green-700); }
.util-pill--crimson { background: var(--bca-crimson-700); }
.util-pill--navy  { background: var(--bca-navy-500); }
.util-pill--ghost {
  background: transparent; border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.7);
}
.util-pill--ghost:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }

/* ---------- Notices panel + news split ---------- */
.notice-news {
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: var(--space-8); align-items: start;
}
.notice-panel {
  background: var(--surface-card); border: 1px solid var(--line-200);
  border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); padding: 0;
}
.notice-panel-head {
  display: flex; align-items: center; gap: var(--space-2);
  background: var(--color-primary); color: var(--text-on-primary);
  padding: 14px var(--space-5); font-family: var(--font-display);
  font-weight: 700; font-size: 1.0625rem;
}
.notice-list { max-height: 360px; overflow-y: auto; }
.notice-row {
  display: flex; gap: var(--space-4); align-items: baseline;
  padding: 14px var(--space-5); color: var(--text-body);
  border-bottom: 1px solid var(--line-200);
  transition: background var(--dur-fast) var(--ease-out);
}
.notice-row:last-child { border-bottom: none; }
.notice-row:hover { background: var(--surface-tint-crimson); color: var(--text-body); }
.notice-row .n-date {
  min-width: 92px; flex-shrink: 0; font-size: var(--fs-xs); font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-primary);
}
.notice-row .n-title { font-size: 14.5px; font-weight: 600; line-height: 1.5; }
.notice-row .n-new {
  display: inline-block; margin-left: 6px; font-size: 9.5px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.08em; padding: 2px 6px;
  border-radius: var(--radius-xs); background: var(--bca-gold-500); color: var(--bca-crimson-900);
  vertical-align: middle;
}
.notice-panel-foot {
  padding: 12px var(--space-5); border-top: 1px solid var(--line-200);
  background: var(--surface-raised);
}

/* News card, horizontal variant */
.news-row {
  display: flex; gap: var(--space-4); align-items: flex-start;
  padding: var(--space-5); background: var(--surface-card);
  border: 1px solid var(--line-200); border-radius: var(--radius-md);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.news-row:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.news-row .thumb {
  width: 96px; height: 96px; flex-shrink: 0; border-radius: var(--radius-sm);
  overflow: hidden; background: linear-gradient(135deg, #8A161B, #6E0F13);
}
.news-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-row h3 { font-size: 1.0625rem; margin: 6px 0 4px; }
.news-row h3 a { color: var(--text-strong); }
.news-row h3 a:hover { color: var(--color-primary); }
.news-row p { font-size: 14px; color: var(--text-muted); line-height: 1.55; }

/* ---------- Header / nav ---------- */
.site-header { position: sticky; top: 0; z-index: 50; }
.nav-bar {
  background: rgba(255, 253, 249, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-300);
}
.nav-bar .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: var(--space-3); padding-bottom: var(--space-3); gap: var(--space-4);
}
.crest { display: flex; align-items: center; gap: var(--space-3); }
.crest img { height: 54px; width: auto; }
.crest-name {
  font-family: var(--font-display); font-weight: 700; font-size: 17px;
  color: var(--text-strong); line-height: 1.1;
}
.crest-tag {
  font-size: 9.5px; letter-spacing: var(--tracking-eyebrow); text-transform: uppercase;
  font-weight: 700; color: var(--color-primary); margin-top: 3px;
}
.crest--light .crest-name { color: #FBF6EE; }
.crest--light .crest-tag { color: var(--bca-gold-500); }

/* The nav keeps its natural width and the crest gives way instead, so a long
   label like "Infra & Facilities" never breaks onto a second line. */
.nav { display: flex; align-items: center; gap: 2px; flex: 0 0 auto; flex-wrap: nowrap; }
.nav-item { position: relative; flex: 0 0 auto; }

/* Name above tagline, each on one line. Left inline they sit side by side and
   the crest grows wide enough to push the nav off the page. */
.crest { flex: 0 0 auto; }
.crest-name, .crest-tag { display: block; white-space: nowrap; }

/* The header carries more across than a text column, so it gets a wider
   container than the 1200px used by the page body. */
.utility .wrap, .nav-bar .wrap { max-width: 1400px; }

.nav-link {
  display: flex; align-items: center; gap: 4px; white-space: nowrap;
  font-weight: 700; font-size: 14px; color: var(--text-body);
  padding: 10px 9px; border-radius: var(--radius-sm);
  background: none; border: none; cursor: pointer; position: relative;
  transition: color var(--dur-fast) var(--ease-out);
}
.nav-link:hover { color: var(--color-primary); }
.nav-item.active > .nav-link { color: var(--color-primary); }
.nav-item.active > .nav-link::after {
  content: ''; position: absolute; left: 9px; right: 9px; bottom: 2px;
  height: 2.5px; background: var(--bca-gold-500); border-radius: 2px;
}
.nav-link .chev { transition: transform var(--dur-fast) var(--ease-out); }
.nav-item:hover .chev { transform: rotate(180deg); }

/* dropdown */
.dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 240px;
  background: var(--surface-raised); border: 1px solid var(--line-200);
  border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  padding: var(--space-2); z-index: 60;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out),
              visibility var(--dur-base);
}
.dropdown::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--bca-gold-500); border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.nav-item:hover .dropdown, .nav-item:focus-within .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown a {
  display: block; padding: 10px 14px; border-radius: var(--radius-sm);
  font-size: 14.5px; font-weight: 600; color: var(--text-body);
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.dropdown a:hover { background: var(--surface-tint-crimson); color: var(--color-primary); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line-300);
  border-radius: var(--radius-sm); padding: 8px; cursor: pointer; color: var(--text-strong);
}

/* ---------- Notice ticker ---------- */
.ticker {
  background: var(--surface-tint-gold); border-bottom: 1px solid var(--line-300);
  overflow: hidden;
}
.ticker .wrap { display: flex; align-items: center; gap: var(--space-4); padding-top: 10px; padding-bottom: 10px; }
.ticker-label {
  display: flex; align-items: center; gap: 6px; flex-shrink: 0;
  background: var(--color-primary); color: var(--text-on-primary);
  font-size: var(--fs-xs); font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.1em; padding: 5px 12px; border-radius: var(--radius-pill);
}
.ticker-viewport { overflow: hidden; flex: 1; }
.ticker-track {
  display: flex; gap: var(--space-10); white-space: nowrap; width: max-content;
  animation: ticker-scroll 40s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track a { font-size: 14px; font-weight: 600; color: var(--text-body); }
.ticker-track a:hover { color: var(--color-primary); }
.ticker-track .sep { color: var(--bca-gold-600); }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .ticker-viewport { overflow-x: auto; }
}

/* ---------- Hero slider ---------- */
.hero {
  position: relative; overflow: hidden; color: #FBF6EE;
  background: linear-gradient(160deg, #6E0F13 0%, #8A161B 60%, #A81C22 100%);
}
.hero-slides { position: relative; }
.hero-slide { display: none; }
.hero-slide.is-active { display: block; animation: fade-in var(--dur-slow) var(--ease-out); }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.hero-inner {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: var(--space-12);
  align-items: center; padding: 72px var(--space-8) 80px;
  max-width: var(--container-max); margin: 0 auto; position: relative; z-index: 1;
}
.hero h1 {
  font-family: var(--font-display); font-weight: 700; font-size: 54px;
  line-height: 1.08; letter-spacing: -0.01em; margin-top: 18px; color: #FBF6EE;
}
.hero p {
  font-size: 19px; line-height: 1.6; color: rgba(251, 246, 238, 0.86);
  max-width: 480px; margin-top: var(--space-5);
}
.hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-figure { position: relative; }
.hero-figure .media { height: 340px; }
.hero-plaque {
  position: absolute; bottom: -22px; left: -22px;
  background: var(--surface-raised); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); padding: 16px 20px;
  display: flex; align-items: center; gap: 14px;
}
.hero-plaque img { height: 48px; }
.hero-plaque .big {
  font-family: var(--font-display); font-weight: 700; font-size: 22px;
  color: var(--color-primary); line-height: 1;
}
.hero-plaque .small {
  font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase;
  font-weight: 700; color: var(--text-muted); margin-top: 3px;
}
.hero-dots {
  display: flex; gap: 8px; justify-content: center;
  padding-bottom: var(--space-6); position: relative; z-index: 1;
}
.hero-dot {
  width: 9px; height: 9px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(251, 246, 238, 0.35); padding: 0;
  transition: background var(--dur-base) var(--ease-out), width var(--dur-base) var(--ease-out);
}
.hero-dot.is-active { background: var(--bca-gold-500); width: 26px; border-radius: var(--radius-pill); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: var(--surface-tint-crimson);
  border-bottom: 1px solid var(--line-300);
  padding: 56px 0;
}
.page-hero h1 { font-size: 46px; margin-top: 14px; letter-spacing: -0.01em; }
.page-hero p {
  font-size: 19px; line-height: 1.6; color: var(--text-muted);
  max-width: 640px; margin-top: 14px;
}
.page-hero--green { background: var(--surface-tint-green); }
.page-hero--gold  { background: var(--surface-tint-gold); }
.page-hero--navy {
  background: linear-gradient(160deg, #23315B, #10182E);
  color: #EEF1F8; border-bottom: none;
}
.page-hero--navy h1 { color: #EEF1F8; }
.page-hero--navy p { color: rgba(238, 241, 248, 0.78); }
.breadcrumb {
  font-size: var(--fs-sm); color: var(--text-muted); margin-bottom: var(--space-4);
}
.breadcrumb a { color: var(--text-muted); font-weight: 600; }
.breadcrumb a:hover { color: var(--color-primary); }
.page-hero--navy .breadcrumb, .page-hero--navy .breadcrumb a { color: rgba(238, 241, 248, 0.6); }

/* ---------- Quick links strip ---------- */
.quicklinks { background: var(--surface-raised); border-bottom: 1px solid var(--line-300); }
.quicklinks .wrap {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  padding-left: 0; padding-right: 0;
}
.quicklink {
  display: flex; align-items: center; gap: var(--space-4);
  padding: var(--space-6) var(--space-6); color: var(--text-body);
  border-right: 1px solid var(--line-200);
  transition: background var(--dur-base) var(--ease-out);
}
.quicklink:last-child { border-right: none; }
.quicklink:hover { background: var(--surface-tint-crimson); color: var(--text-body); }
.quicklink .ql-title { font-weight: 800; font-size: 15px; color: var(--text-strong); }
.quicklink .ql-sub { font-size: 13px; color: var(--text-muted); }

/* ---------- Stats band ---------- */
.stats-band { background: var(--surface-raised); border-bottom: 1px solid var(--line-300); }
.stats-band .wrap {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6);
  padding-top: var(--space-10); padding-bottom: var(--space-10);
}

/* ---------- Facility row ---------- */
.facility {
  display: flex; align-items: center; gap: var(--space-4);
  padding: var(--space-5) 22px; background: var(--surface-card);
  border: 1px solid var(--line-200); border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs); font-weight: 700; color: var(--text-strong);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.facility:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); color: var(--text-strong); }
.facility .icon-tile { width: 46px; height: 46px; border-radius: 10px; }

/* ---------- News / event cards ---------- */
.post-card {
  background: var(--surface-card); border: 1px solid var(--line-200);
  border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.post-card .thumb { height: 190px; }
.post-card .body { padding: var(--space-6); display: flex; flex-direction: column; flex: 1; }
.post-card h3 { font-size: 1.1875rem; margin: var(--space-3) 0 var(--space-2); }
.post-card h3 a { color: var(--text-strong); }
.post-card h3 a:hover { color: var(--color-primary); }
.post-card p { font-size: 0.9375rem; color: var(--text-muted); flex: 1; }
.post-meta {
  display: flex; align-items: center; gap: 6px;
  font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-muted);
}
.post-card .more {
  margin-top: var(--space-4); font-weight: 800; font-size: var(--fs-sm);
  color: var(--color-primary); display: inline-flex; align-items: center; gap: 6px;
}

/* date chip on event cards */
.date-chip {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 62px; height: 62px; flex-shrink: 0; border-radius: var(--radius-md);
  background: var(--color-primary); color: var(--text-on-primary);
}
.date-chip .d { font-family: var(--font-display); font-weight: 700; font-size: 22px; line-height: 1; }
.date-chip .m {
  font-size: 10px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.1em; margin-top: 3px;
}
.event-row {
  display: flex; gap: var(--space-4); align-items: flex-start;
  padding: var(--space-5); background: var(--surface-card);
  border: 1px solid var(--line-200); border-radius: var(--radius-md);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.event-row:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.event-row h4 { font-size: 1.0625rem; }
.event-row .where {
  font-size: var(--fs-sm); color: var(--text-muted);
  display: flex; align-items: center; gap: 5px; margin-top: 4px;
}

/* ---------- Faculty ---------- */
.faculty-card { text-align: center; }
.faculty-card .portrait {
  height: 240px; border-radius: var(--radius-md); overflow: hidden;
  background: linear-gradient(135deg, #23315B 0%, #10182E 100%);
  display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.6);
}
.faculty-card .portrait img { width: 100%; height: 100%; object-fit: cover; }
.faculty-card h3 { font-size: 1.125rem; margin: var(--space-4) 0 2px; }
.faculty-card .role {
  font-size: var(--fs-xs); font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--color-primary);
}
.faculty-card .qual { font-size: var(--fs-sm); color: var(--text-muted); margin-top: 4px; }

/* ---------- Principal's message ---------- */
.message-block {
  display: grid; grid-template-columns: 0.8fr 1.2fr; gap: var(--space-12); align-items: center;
}
.message-quote {
  font-family: var(--font-display); font-size: 1.375rem; line-height: 1.6;
  color: var(--text-body); font-style: italic; position: relative; padding-left: var(--space-6);
  border-left: 3px solid var(--bca-gold-500);
}
.message-author { margin-top: var(--space-6); }
.message-author .n { font-weight: 800; font-size: 1.0625rem; color: var(--text-strong); }
.message-author .r {
  font-size: var(--fs-xs); font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--color-primary); margin-top: 3px;
}

/* ---------- Houses ---------- */
.houses { background: var(--surface-tint-gold); }
.houses .wrap {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center;
  padding-top: 72px; padding-bottom: 72px;
}
.house-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.house-photos .media { height: 220px; }
.house-photos .media:nth-child(2) { margin-top: 28px; }

/* ---------- Motto panel ---------- */
.motto {
  background: linear-gradient(160deg, #6E0F13, #8A161B); color: #FBF6EE;
  border-radius: var(--radius-lg); padding: var(--space-10);
  display: flex; flex-direction: column; justify-content: center;
}
.motto .latin {
  font-family: var(--font-display); font-weight: 700; font-style: italic;
  font-size: 40px; margin: var(--space-3) 0 6px; color: #FBF6EE;
}
.motto .gloss { font-size: 17px; color: rgba(251, 246, 238, 0.82); }

/* ---------- Timeline ---------- */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
.timeline-item { position: relative; padding-top: 26px; }
.timeline-item .bar {
  position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--line-300);
}
.timeline-item .bar::before {
  content: ''; position: absolute; left: 0; top: -5px;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--color-primary); border: 3px solid var(--surface-raised);
}
.timeline-item.is-last .bar::before { background: var(--bca-gold-600); }
.timeline-item .year {
  font-family: var(--font-display); font-weight: 700; font-size: 30px; color: var(--color-primary);
}
.timeline-item.is-last .year { color: var(--bca-gold-700); }
.timeline-item p { font-size: 14.5px; line-height: 1.55; color: var(--text-muted); margin-top: var(--space-2); }

/* ---------- Accordion ---------- */
.accordion { border: 1px solid var(--line-200); border-radius: var(--radius-md); overflow: hidden; background: var(--surface-card); }
.acc-item + .acc-item { border-top: 1px solid var(--line-200); }
.acc-head {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-4); padding: 18px var(--space-6); background: none; border: none;
  cursor: pointer; text-align: left; font-family: var(--font-display);
  font-weight: 700; font-size: 1.0625rem; color: var(--text-strong);
  border-left: 3px solid transparent;
  transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.acc-head:hover { background: var(--surface-tint-crimson); }
.acc-item.is-open .acc-head { border-left-color: var(--color-primary); color: var(--color-primary); }
.acc-head .chev { transition: transform var(--dur-base) var(--ease-out); flex-shrink: 0; }
.acc-item.is-open .acc-head .chev { transform: rotate(180deg); }
.acc-panel { display: none; padding: 0 var(--space-6) var(--space-6); }
.acc-item.is-open .acc-panel { display: block; }

/* ---------- Tables ---------- */
.subject-table { width: 100%; border-collapse: collapse; }
.subject-table th {
  text-align: left; padding: 10px 14px; font-size: var(--fs-xs);
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted);
  border-bottom: 2px solid var(--line-300);
}
.subject-table td { padding: 11px 14px; font-size: 14.5px; color: var(--text-body); line-height: 1.5; vertical-align: top; }
.subject-table tbody tr:nth-child(even) { background: var(--surface-tint-crimson); }
.subject-table td:first-child { font-weight: 800; color: var(--color-primary); white-space: nowrap; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: var(--fs-sm); font-weight: 700; color: var(--text-strong); }
.field label .req { color: var(--color-primary); }
.field input, .field select, .field textarea {
  padding: 11px 14px; border: 1px solid var(--line-300); border-radius: var(--radius-sm);
  background: var(--surface-raised); font-size: 15px; color: var(--text-strong);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
  width: 100%;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-400); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--bca-gold-500);
  box-shadow: 0 0 0 3px rgba(242, 183, 5, 0.35);
}
.field textarea { resize: vertical; min-height: 110px; }
.field .err { font-size: var(--fs-xs); color: var(--bca-crimson-700); font-weight: 700; }
.field input.has-err, .field textarea.has-err, .field select.has-err { border-color: var(--bca-crimson-600); }

.alert {
  padding: 14px 18px; border-radius: var(--radius-sm); font-size: var(--fs-sm);
  font-weight: 600; display: flex; align-items: center; gap: var(--space-3);
}
.alert--ok   { background: var(--surface-tint-green); color: var(--bca-green-800); }
.alert--err  { background: var(--surface-tint-crimson); color: var(--bca-crimson-800); }
.alert--info { background: var(--surface-tint-gold); color: var(--bca-gold-700); }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.gallery-tile {
  position: relative; border-radius: var(--radius-md); overflow: hidden;
  height: 230px; box-shadow: var(--shadow-sm); cursor: pointer;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.gallery-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.gallery-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.gallery-tile:hover img { transform: scale(1.05); }
.gallery-tile .cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: var(--space-5) var(--space-4) var(--space-3);
  background: linear-gradient(transparent, rgba(16, 24, 46, 0.85));
  color: #fff; font-weight: 700; font-size: var(--fs-sm);
}
.gallery-tile .count { font-size: var(--fs-xs); opacity: 0.75; font-weight: 600; }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center;
  background: rgba(16, 24, 46, 0.94); padding: var(--space-8);
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: var(--radius-md); }
.lightbox-close {
  position: absolute; top: 24px; right: 28px; background: none; border: none;
  color: #fff; cursor: pointer; padding: 8px;
}
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.12); border: none; color: #fff;
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.22); }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

/* ---------- Downloads ---------- */
.download-row {
  display: flex; align-items: center; gap: var(--space-4);
  padding: var(--space-5); background: var(--surface-card);
  border: 1px solid var(--line-200); border-radius: var(--radius-md);
  transition: box-shadow var(--dur-base) var(--ease-out);
}
.download-row:hover { box-shadow: var(--shadow-md); }
.download-row .t { font-weight: 700; color: var(--text-strong); }
.download-row .s { font-size: var(--fs-xs); color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--bca-navy-900); color: #EEF1F8; }
.cta-band .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-10); padding-top: var(--space-16); padding-bottom: var(--space-16);
}
.cta-band h2 { font-size: 34px; color: #EEF1F8; }
.cta-band p { font-size: 17px; color: rgba(238, 241, 248, 0.75); margin-top: 10px; }

/* Rounded crimson CTA box (reference-site idiom), sits on the cream page */
.cta-box {
  background: linear-gradient(160deg, #8A161B 0%, #6E0F13 100%);
  color: #FBF6EE; border-radius: var(--radius-xl);
  box-shadow: var(--shadow-brand); position: relative; overflow: hidden;
  padding: 56px var(--space-12);
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-10);
}
.cta-box h2 { font-size: 32px; color: #FBF6EE; position: relative; }
.cta-box p { font-size: 17px; color: rgba(251, 246, 238, 0.8); margin-top: 10px; position: relative; }
.cta-box .cta-actions { display: flex; gap: var(--space-3); flex-shrink: 0; position: relative; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bca-navy-900); color: rgba(255, 255, 255, 0.72); }
.footer-main {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--space-10);
  padding-top: 56px; padding-bottom: 28px;
}
.footer-main p { font-size: 14px; line-height: 1.65; max-width: 300px; margin-top: var(--space-4); }
.footer-social { display: flex; gap: 10px; margin-top: var(--space-4); }
.footer-social a {
  width: 36px; height: 36px; border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255, 255, 255, 0.8);
  transition: background var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.footer-social a:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--bca-gold-500); color: var(--bca-gold-500); }
.footer-col h4 {
  font-family: var(--font-text); font-size: var(--fs-xs); letter-spacing: 0.16em;
  text-transform: uppercase; font-weight: 800; color: var(--bca-gold-500); margin-bottom: 14px;
}
.footer-col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: rgba(255, 255, 255, 0.72); }
.footer-col a:hover { color: var(--bca-gold-500); }
.footer-contact li { display: flex; gap: 10px; font-size: 14px; align-items: flex-start; }
.footer-bar { border-top: 1px solid rgba(255, 255, 255, 0.12); }
.footer-bar .wrap {
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-4);
  padding-top: 18px; padding-bottom: 18px;
  font-size: 12.5px; color: rgba(255, 255, 255, 0.5);
}
.footer-bar .motto-mark { font-style: italic; font-family: var(--font-display); }

/* ---------- Prose (CMS content) ---------- */
.prose { max-width: 820px; color: var(--text-body); font-size: 1.0625rem; line-height: 1.75; }
.prose > * + * { margin-top: var(--space-5); }
.prose h2 { font-size: var(--fs-h2); margin-top: var(--space-10); }
.prose h3 { font-size: var(--fs-h3); margin-top: var(--space-8); }
.prose ul, .prose ol { padding-left: var(--space-6); }
.prose li + li { margin-top: var(--space-2); }
.prose img { border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.prose blockquote {
  border-left: 3px solid var(--bca-gold-500); padding-left: var(--space-6);
  font-family: var(--font-display); font-style: italic; color: var(--text-muted);
}
.prose table { width: 100%; border-collapse: collapse; }
.prose th, .prose td { padding: 11px 14px; border: 1px solid var(--line-300); text-align: left; }
.prose th { background: var(--surface-tint-crimson); color: var(--color-primary); font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: 0.08em; }

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: var(--space-2); justify-content: center; margin-top: var(--space-12); }
.pagination a, .pagination span {
  min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); border: 1px solid var(--line-300);
  font-weight: 700; font-size: var(--fs-sm); color: var(--text-body); padding: 0 12px;
}
.pagination a:hover { background: var(--surface-tint-crimson); color: var(--color-primary); }
.pagination .is-current { background: var(--color-primary); border-color: var(--color-primary); color: var(--text-on-primary); }

/* ---------- Floating actions ---------- */
.fab-stack {
  position: fixed; right: 20px; bottom: 20px; z-index: 80;
  display: flex; flex-direction: column; gap: 10px;
}
.fab {
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; box-shadow: var(--shadow-md); border: none; cursor: pointer;
  transition: transform var(--dur-base) var(--ease-out);
}
.fab:hover { transform: translateY(-3px); color: #fff; }
.fab--call { background: var(--bca-green-700); }
.fab--top  { background: var(--bca-navy-700); opacity: 0; visibility: hidden; }
.fab--top.is-visible { opacity: 1; visibility: visible; }
.fab--top .ico { transform: rotate(180deg); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Helpers ---------- */
.text-center { text-align: center; }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-10 { margin-top: var(--space-10); }
.mt-12 { margin-top: var(--space-12); }
.muted { color: var(--text-muted); }
.lead { font-size: var(--fs-lead); line-height: 1.65; color: var(--text-muted); }
.empty-state {
  text-align: center; padding: var(--space-16) var(--space-8);
  color: var(--text-muted); background: var(--surface-card);
  border: 1px dashed var(--line-300); border-radius: var(--radius-md);
}
.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: -9999px; top: 0; z-index: 100;
  background: var(--color-primary); color: #fff; padding: 12px 20px; font-weight: 700;
}
.skip-link:focus { left: 12px; top: 12px; color: #fff; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: var(--space-10); padding: 56px var(--space-6) 64px; }
  .hero h1 { font-size: 42px; }
  .hero-figure { display: none; }
  .grid-4, .stats-band .wrap { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .quicklinks .wrap { grid-template-columns: repeat(2, 1fr); }
  .quicklink { border-bottom: 1px solid var(--line-200); }
  .houses .wrap, .message-block, .notice-news { grid-template-columns: 1fr; gap: var(--space-10); }
  .timeline { grid-template-columns: repeat(2, 1fr); gap: var(--space-8); }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .cta-box { flex-direction: column; align-items: flex-start; padding: var(--space-10); }
}

/* Between the mobile breakpoint and a roomy desktop the nav is still one row,
   so tighten it and drop the crest tagline rather than let it wrap or overflow. */
@media (min-width: 1025px) and (max-width: 1339px) {
  .nav { gap: 0; }
  .nav-link { font-size: 13px; padding: 9px 6px; }
  .nav-item.active > .nav-link::after { left: 6px; right: 6px; }
  .nav .btn { font-size: 13px; padding: 8px 11px; }
  .crest img { height: 46px; }
  .crest-name { font-size: 15px; }
  .crest-tag { display: none; }
}

/* Mobile nav. Below this width the crest and a single row of links can no
   longer share the bar, so the links collapse into the toggle. */
@media (max-width: 1024px) {
  .nav-toggle { display: flex; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface-raised); border-bottom: 1px solid var(--line-300);
    box-shadow: var(--shadow-lg); padding: var(--space-3);
    max-height: calc(100vh - 120px); overflow-y: auto;
  }
  .nav.is-open { display: flex; }
  .nav-bar { position: relative; }
  .nav-link {
    width: 100%; justify-content: space-between;
    padding: 13px var(--space-4); font-size: 15px; white-space: normal;
  }
  .nav-item.active > .nav-link::after { display: none; }
  .nav-item.active > .nav-link { background: var(--surface-tint-crimson); border-radius: var(--radius-sm); }
  .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; border-left: 2px solid var(--line-300);
    border-radius: 0; margin: 0 0 var(--space-2) var(--space-4);
    padding: 0; display: none; min-width: 0;
  }
  .dropdown::before { display: none; }
  .nav-item.is-expanded .dropdown { display: block; }
  .nav-item:hover .dropdown { opacity: 1; visibility: visible; }
  .nav .btn { margin-top: var(--space-2); }
}

@media (max-width: 860px) {
  :root { --section-y: 64px; }
  .wrap, .wrap-narrow { padding: 0 var(--space-5); }
  .section { padding: 56px 0; }

  .utility .wrap { flex-direction: column; align-items: center; gap: 8px; font-size: 12px; }
  .utility-group, .util-pills { gap: var(--space-3); justify-content: center; }
  .utility-meta { display: none; }
  .cta-box { padding: var(--space-8) var(--space-6); border-radius: var(--radius-lg); }
  .cta-box h2 { font-size: 26px; }
  .cta-box .cta-actions { width: 100%; flex-direction: column; }
  .cta-box .cta-actions .btn { width: 100%; }
  .news-row { flex-direction: column; }
  .news-row .thumb { width: 100%; height: 160px; }

  .section-heading h2, .page-hero h1 { font-size: 30px; }
  .hero h1 { font-size: 34px; }
  .hero p { font-size: 17px; }
  .grid-2, .grid-3, .grid-4, .gallery-grid,
  .stats-band .wrap, .quicklinks .wrap, .timeline { grid-template-columns: 1fr; }
  .house-photos { grid-template-columns: repeat(3, 1fr); }
  .house-photos .media { height: 140px; }
  .house-photos .media:nth-child(2) { margin-top: 0; }
  .cta-band .wrap { flex-direction: column; align-items: flex-start; text-align: left; }
  .cta-band h2 { font-size: 28px; }
  .footer-main { grid-template-columns: 1fr; gap: var(--space-8); }
  .footer-bar .wrap { flex-direction: column; align-items: flex-start; gap: 8px; }
  .motto .latin { font-size: 32px; }
  .hero-plaque { position: static; margin-top: var(--space-4); }
}
