/* ==========================================================================
   Brightwood Public School
   Concept: a well-kept school notebook. Ruled rows, plain type with strong
   size contrast, one loud colour (marigold) on a paper-white page.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Palette */
  --paper:      #FFFDF7;   /* page */
  --ink:        #1D2B24;   /* text, rules */
  --ink-2:      #44534B;   /* secondary text */
  --muted:      #6A766F;   /* captions, meta */
  --rule:       #D5DCD5;   /* hairlines */
  --green:      #1F5A3E;   /* brand, links */
  --green-deep: #133B28;   /* footer, hover */
  --marigold:   #FFB81C;   /* the one loud colour: CTAs, accents */
  --vermilion:  #E8462B;   /* errors, focus */
  --mint:       #E7F3EC;   /* alternate section wash */

  /* Type */
  --font-display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Scale (base 17px, ~1.25 ratio) */
  --fs-body: 1.0625rem;
  --fs-lede: clamp(1.1rem, 1.5vw, 1.25rem);
  --fs-h3: clamp(1.45rem, 2.2vw, 1.85rem);

  /* Space and shape */
  --wrap: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 4px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 76px;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--green-deep); }
p { margin: 0 0 1em; max-width: 64ch; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font: inherit; }

:focus-visible { outline: 3px solid var(--vermilion); outline-offset: 3px; border-radius: 2px; }

.container { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--ink); color: var(--paper); padding: .6rem 1rem; }
.skip-link:focus { top: 1rem; }
.ico { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; flex: none; }

/* Display type treatment: condensed width axis for headings */
.display-lg {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 88%;
  font-size: clamp(2.3rem, 4.6vw, 4rem);
  line-height: 1.02;
  letter-spacing: -.025em;
  max-width: 20ch;
}
.lede { font-size: var(--fs-lede); color: var(--ink-2); line-height: 1.55; max-width: 56ch; }

/* ---------- 3. Buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem; letter-spacing: .005em;
  padding: .95rem 1.4rem; border: 2px solid transparent; border-radius: var(--radius);
  text-decoration: none; cursor: pointer; line-height: 1.1;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 1.1rem 1.7rem; font-size: 1.06rem; }
.btn-sm { padding: .8rem 1.1rem; font-size: .95rem; }
.btn-block { width: 100%; }
.btn-solid { background: var(--marigold); color: var(--ink); }
.btn-solid:hover { background: #FFC93D; color: var(--ink); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }

.link-cta {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  color: var(--green-deep); text-decoration: underline; text-decoration-color: var(--marigold);
  text-decoration-thickness: 3px; text-underline-offset: .32em;
}
.link-cta:hover { color: var(--green); }
.inline-link { color: var(--green); font-weight: 700; }

/* ---------- 4. Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: var(--paper); border-bottom: 1px solid var(--rule);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }

.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--marigold); box-shadow: inset 0 0 0 3px var(--green); }
.brand-name { font-family: var(--font-display); font-weight: 800; font-stretch: 90%; font-size: 1.3rem; line-height: .95; letter-spacing: -.01em; display: flex; flex-direction: column; }
.brand-name small { font-family: var(--font-body); font-weight: 400; font-stretch: 100%; font-size: .78rem; letter-spacing: .01em; color: var(--muted); margin-top: .25rem; }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav-links { display: flex; gap: 1.5rem; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-weight: 700; font-size: .98rem; padding: .4rem 0; border-bottom: 2px solid transparent; }
.nav-links a:hover, .nav-links a[aria-current="true"] { color: var(--ink); border-bottom-color: var(--marigold); }
.nav-cta { padding: .7rem 1.1rem; }

.nav-toggle { display: none; width: 46px; height: 46px; background: transparent; border: 2px solid var(--ink); border-radius: var(--radius); cursor: pointer; align-items: center; justify-content: center; }
.bars { position: relative; width: 20px; height: 14px; display: block; }
.bars i { position: absolute; left: 0; right: 0; height: 2px; background: var(--ink); transition: transform .3s var(--ease), opacity .2s; }
.bars i:nth-child(1) { top: 0; }
.bars i:nth-child(2) { top: 6px; }
.bars i:nth-child(3) { top: 12px; }
.nav-toggle[aria-expanded="true"] .bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 5. Hero: a headline with a photo beside it ---------- */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(4rem, 8vw, 6rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }

.hero-meta { font-weight: 700; color: var(--green); font-size: 1rem; margin-bottom: 1.4rem; }
.hero h1 {
  font-weight: 800; font-stretch: 84%; font-size: clamp(3rem, 6.4vw, 6.1rem);
  line-height: .95; letter-spacing: -.032em; max-width: 14ch; margin-bottom: 1.6rem;
}
.hero-lead { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.55; color: var(--ink-2); max-width: 36ch; margin-bottom: 2.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }

.hero-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); max-width: 40rem; }
.hero-facts div { padding: 1rem 1rem 0 0; }
.hero-facts dt { font-size: .9rem; color: var(--muted); }
.hero-facts dd { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; font-stretch: 90%; color: var(--ink); margin-top: .15rem; }

.hero-photo { position: relative; margin: 0; padding: 0 0 0 0; }
.hero-frame { position: absolute; inset: 1.4rem -1.4rem -1.4rem 1.4rem; background: var(--marigold); z-index: 0; }
.hero-photo img {
  position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 62% 50%;
}
.sticker {
  position: absolute; z-index: 2; left: -2rem; bottom: 2.5rem;
  width: clamp(8.5rem, 11vw, 10.5rem); aspect-ratio: 1; border-radius: 50%;
  background: var(--ink); color: var(--paper);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 1rem; line-height: 1.1; box-shadow: 0 0 0 6px var(--paper);
}
.sticker span { font-size: .92rem; font-weight: 600; }
.sticker strong { font-family: var(--font-display); font-size: clamp(1.5rem, 2.2vw, 1.9rem); font-weight: 800; font-stretch: 85%; letter-spacing: -.02em; color: var(--marigold); }

/* One orchestrated load sequence (the only scripted motion on the page) */
.load { animation: rise .9s var(--ease) both; animation-delay: calc(var(--d, 0) * 110ms + 80ms); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- 6. Quick links: ruled row, not cards ---------- */
.quick { border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule); margin-top: clamp(4rem, 8vw, 6rem); }
.quick-list { display: grid; grid-template-columns: repeat(4, 1fr); }
.quick-list li + li { border-left: 1px solid var(--rule); }
.quick-list a {
  display: flex; flex-direction: column; gap: .2rem; padding: 1.4rem 1.5rem; text-decoration: none; color: var(--ink);
  transition: background-color .2s;
}
.quick-list a:hover { background: var(--mint); color: var(--ink); }
.quick-list strong { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; font-stretch: 90%; }
.quick-list span { color: var(--muted); font-size: .95rem; }

/* ---------- 7. Sections ---------- */
.section { padding: clamp(5rem, 10vw, 9rem) 0; }
.section-mint { background: var(--mint); }
.section-green { background: var(--green); color: var(--paper); }
.section-green .display-lg { color: var(--paper); }
.section-green .lede { color: #CFE3D7; }
.section-admissions { background: var(--marigold); }
.section-intro { display: grid; gap: 1.2rem; margin-bottom: clamp(3rem, 6vw, 4.5rem); }

/* About */
.about { display: grid; gap: 2rem; }
.about .display-lg { max-width: 22ch; }
.about-body { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; margin-top: clamp(3rem, 6vw, 4.5rem); }
.about-photo { margin: 0; }
.about-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.facts { display: grid; gap: 0; }
.facts div { padding: 1.1rem 0; border-top: 1px solid var(--rule); }
.facts div:last-child { border-bottom: 1px solid var(--rule); }
.facts dt { color: var(--muted); font-size: .95rem; }
.facts dd { font-family: var(--font-display); font-size: clamp(1.4rem, 2.2vw, 1.8rem); font-weight: 700; font-stretch: 90%; letter-spacing: -.01em; margin-top: .15rem; }

/* Leadership: three profile cards in one row */
.profiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 2.4vw, 2rem); align-items: stretch; }
.profile {
  display: flex; flex-direction: column; background: var(--paper);
  border: 1.5px solid var(--ink); border-radius: 10px; overflow: hidden;
  box-shadow: 8px 8px 0 var(--marigold);
}
.profile-photo { margin: 0; position: relative; background: var(--mint); }
.profile-photo img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; object-position: 50% 18%; display: block; }
.profile-body { padding: clamp(1.25rem, 2vw, 1.75rem); display: flex; flex-direction: column; flex: 1; }
.role { display: inline-block; align-self: flex-start; font-weight: 700; font-size: .85rem; color: var(--green-deep); background: var(--marigold); border-radius: 999px; padding: .3rem .75rem; margin: 0 0 .9rem; }
.profile h3 { font-size: clamp(1.45rem, 2.2vw, 1.85rem); font-weight: 700; font-stretch: 88%; letter-spacing: -.02em; line-height: 1.08; margin-bottom: .7rem; }
/* Programmes: tabs */
.tablist { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 2px solid var(--ink); }
.tab {
  background: transparent; border: 0; text-align: left; padding: 1.1rem 1.2rem 1rem 0; cursor: pointer; color: var(--muted);
  display: flex; flex-direction: column; gap: .15rem; position: relative;
}
.tab { font-family: var(--font-display); font-size: clamp(1.25rem, 2.2vw, 1.7rem); font-weight: 700; font-stretch: 88%; letter-spacing: -.01em; }
.tab span { font-family: var(--font-body); font-size: .95rem; font-weight: 400; font-stretch: 100%; letter-spacing: 0; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); }
.tab[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 6px; background: var(--marigold); }
.tab-panel { padding-top: clamp(2.5rem, 5vw, 4rem); }
.tab-panel[hidden] { display: none; }
.panel-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.panel-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.panel-grid h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 700; font-stretch: 88%; letter-spacing: -.02em; line-height: 1.1; margin-bottom: 1rem; max-width: 22ch; }
.ticks { margin: 1.5rem 0 2rem; display: grid; gap: .6rem; }
.ticks li { position: relative; padding-left: 1.6rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .55em; width: .7rem; height: .7rem; background: var(--marigold); border-radius: 1px; }

/* Campus gallery */
.gallery {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(12rem, 22vw, 17rem); gap: 1.25rem;
}
.g-item {
  position: relative; margin: 0; padding: 0; border: 0; background: transparent; cursor: zoom-in; text-align: left;
  display: flex; flex-direction: column; color: var(--paper);
}
.g-item img { width: 100%; height: 100%; object-fit: cover; flex: 1; min-height: 0; transition: opacity .3s; }
.g-item:hover img { opacity: .88; }
.g-item span { display: block; padding-top: .6rem; font-size: .95rem; color: #CFE3D7; }
.g-tall { grid-row: span 2; }
.g-wide { grid-column: span 2; }
.g-item:focus-visible { outline-color: var(--marigold); }
.activities { display: flex; flex-wrap: wrap; gap: .8rem 0; margin-top: clamp(3rem, 6vw, 4.5rem); border-top: 1px solid rgba(255,253,247,.3); padding-top: 1.5rem; }
.activities li { padding: .1rem 1.2rem; border-left: 1px solid rgba(255,253,247,.3); font-weight: 700; font-size: 1.02rem; }
.activities li:first-child { padding-left: 0; border-left: 0; }

/* Admissions (marigold band) */
.admissions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 5.5rem); align-items: start; }
.admissions .display-lg { max-width: 16ch; }
.admissions .lede { color: var(--ink); }
.steps { margin: 2.5rem 0; counter-reset: step; border-top: 2px solid var(--ink); }
.steps li { display: grid; grid-template-columns: 3rem 1fr; gap: .3rem 1rem; padding: 1.2rem 0; border-bottom: 1px solid rgba(29,43,36,.25); counter-increment: step; }
.steps li::before { content: counter(step); grid-row: span 2; font-family: var(--font-display); font-weight: 800; font-size: 2rem; line-height: 1; font-stretch: 85%; }
.steps strong { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; }
.steps span { color: var(--ink-2); }
.dates div { display: flex; justify-content: space-between; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid rgba(29,43,36,.25); }
.dates dt { font-weight: 700; }
.dates dd { text-align: right; }

.form { background: var(--paper); padding: clamp(1.8rem, 3.5vw, 2.8rem); border-top: 6px solid var(--ink); }
.form h3 { font-size: clamp(1.6rem, 2.4vw, 2rem); font-weight: 700; font-stretch: 88%; letter-spacing: -.02em; }
.form-note { color: var(--muted); font-size: .95rem; margin: .3rem 0 1.6rem; }
.field { display: flex; flex-direction: column; margin-bottom: 1.2rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.field label { font-weight: 700; font-size: .98rem; margin-bottom: .4rem; }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
  border: 1.5px solid var(--ink); border-radius: var(--radius); padding: .8rem .9rem; width: 100%;
}
.field input::placeholder, .field textarea::placeholder { color: #8A948E; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--marigold); outline-offset: 1px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' fill='none' stroke='%231D2B24' stroke-width='2'%3E%3Cpath d='M1 1.5l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; padding-right: 2.5rem; }
.field textarea { resize: vertical; min-height: 6rem; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--vermilion); background: #FFF4F1; }
.error { color: #B3301A; font-size: .9rem; font-weight: 700; margin: .4rem 0 0; min-height: 0; }
.error:empty { display: none; }
.form-status { margin: 1rem 0 0; font-weight: 700; min-height: 1.4em; }
.form-status.is-success { color: var(--green); }
.form-status.is-error { color: #B3301A; }
.spinner { display: none; width: 18px; height: 18px; border: 2.5px solid rgba(29,43,36,.25); border-top-color: var(--ink); border-radius: 50%; animation: spin .8s linear infinite; }
.btn.is-loading .spinner { display: inline-block; }
.btn.is-loading { pointer-events: none; opacity: .85; }
@keyframes spin { to { transform: rotate(360deg); } }

/* News: editorial list */
.news-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.news-list { border-top: 2px solid var(--ink); }
.news-list li { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 1.5rem; padding: 1.8rem 0; border-bottom: 1px solid var(--rule); }
.news-list time { font-weight: 700; color: var(--muted); padding-top: .3rem; }
.news-list h3 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); font-weight: 700; font-stretch: 88%; letter-spacing: -.015em; line-height: 1.15; margin-bottom: .5rem; max-width: 30ch; }
.news-list p { color: var(--ink-2); margin: 0; }

/* Stories: one quote at a time */
.stories { max-width: 56rem; }
.story-track { display: grid; }
.story { grid-area: 1 / 1; margin: 0; opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility .5s; }
.story.is-active { opacity: 1; visibility: visible; }
.story blockquote { margin: 0 0 1.8rem; font-family: var(--font-display); font-weight: 600; font-stretch: 90%; font-size: clamp(1.7rem, 3.4vw, 2.7rem); line-height: 1.2; letter-spacing: -.015em; color: var(--ink); max-width: 28ch; }
.story figcaption strong { display: block; font-family: var(--font-display); font-size: 1.15rem; }
.story figcaption span { color: var(--ink-2); }
.story-nav { display: flex; align-items: center; gap: 1.2rem; margin-top: 2.5rem; }
.round-btn { width: 48px; height: 48px; border-radius: var(--radius); border: 2px solid var(--ink); background: transparent; color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: background-color .2s, color .2s; }
.round-btn:hover { background: var(--ink); color: var(--paper); }
.dots { display: flex; gap: .5rem; }
.dot { width: 34px; height: 4px; border: 0; padding: 0; background: #B7C6BC; cursor: pointer; }
.dot[aria-current="true"] { background: var(--green); }

/* FAQ */
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.faq-head { position: sticky; top: calc(var(--header-h) + 2rem); display: grid; gap: 1rem; }
.accordion { border-top: 2px solid var(--ink); }
details { border-bottom: 1px solid var(--rule); }
summary {
  list-style: none; cursor: pointer; padding: 1.35rem 2.5rem 1.35rem 0; position: relative;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.1rem, 1.8vw, 1.35rem); font-stretch: 92%; line-height: 1.3;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: .2rem; top: 50%; transform: translateY(-50%); font-size: 1.8rem; font-weight: 400; line-height: 1; transition: transform .25s var(--ease); }
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
summary:hover { color: var(--green); }
details p { padding: 0 2.5rem 1.6rem 0; color: var(--ink-2); }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.contact .lede { margin-top: 1.2rem; }
.contact-list { border-top: 2px solid var(--ink); margin-bottom: 2rem; }
.contact-list div { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--rule); }
.contact-list dt { color: var(--muted); font-weight: 700; }
.contact-list dd { font-size: 1.08rem; }
.contact-list a { font-weight: 700; word-break: break-word; }
.contact > .btn { justify-self: start; }

/* ---------- 8. Footer ---------- */
.footer { background: var(--green-deep); color: #CFE3D7; padding: clamp(4rem, 8vw, 6rem) 0 0; }
.footer a { color: var(--paper); text-decoration: none; }
.footer a:hover { color: var(--marigold); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer-name { font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; font-stretch: 85%; color: var(--paper); margin: 0 0 .3rem; letter-spacing: -.01em; }
.footer-tag { margin-bottom: 1.8rem; }
.footer h4 { font-family: var(--font-body); font-size: .95rem; color: var(--paper); margin-bottom: 1rem; }
.footer ul { display: grid; gap: .6rem; }
.newsletter label { display: block; font-weight: 700; color: var(--paper); margin-bottom: .6rem; }
.nl-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.nl-row input { flex: 1 1 200px; font: inherit; padding: .75rem .9rem; border-radius: var(--radius); border: 1.5px solid #5C7A69; background: transparent; color: var(--paper); min-width: 0; }
.nl-row input::placeholder { color: #9DB5A7; }
.nl-row input:focus { outline: 3px solid var(--marigold); outline-offset: 1px; }
.nl-status { min-height: 1.4em; margin-top: .5rem; font-weight: 700; color: var(--marigold); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding: 1.5rem 0 2rem; border-top: 1px solid #2D5443; font-size: .95rem; }
.footer-bottom p { margin: 0; max-width: none; }

/* ---------- 9. Lightbox (native dialog) ---------- */
.lightbox { border: 0; padding: 0; width: min(1100px, 100vw - 2rem); max-height: calc(100vh - 2rem); background: transparent; color: var(--paper); overflow: visible; }
.lightbox::backdrop { background: rgba(13, 30, 22, .9); }
.lightbox figure { margin: 0; }
.lightbox img { width: 100%; max-height: calc(100vh - 6rem); object-fit: contain; background: #0b1f16; }
.lightbox figcaption { padding: .8rem 0 0; color: #CFE3D7; }
.lb-btn { position: absolute; width: 52px; height: 52px; border: 2px solid var(--paper); background: var(--ink); color: var(--paper); display: grid; place-items: center; cursor: pointer; border-radius: var(--radius); }
.lb-btn:hover { background: var(--marigold); color: var(--ink); border-color: var(--marigold); }
.lb-close { top: -68px; right: 0; }
.lb-prev { top: 50%; left: -68px; transform: translateY(-50%); }
.lb-next { top: 50%; right: -68px; transform: translateY(-50%); }
.lb-btn svg { width: 22px; height: 22px; }
.lightbox .lb-btn:focus-visible { outline-color: var(--marigold); }

/* ---------- 10. Responsive ---------- */
@media (max-width: 1100px) {
  .nav-links { gap: 1rem; }
  .nav { gap: 1.2rem; }
  .nav-links a { font-size: .92rem; }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 1.2rem;
    background: var(--paper); padding: 1.5rem var(--gutter) 2rem; border-bottom: 1px solid var(--rule);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: transform .3s var(--ease), opacity .2s, visibility .2s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav-links { flex-direction: column; gap: 0; }
  .nav-links a { display: block; padding: .9rem 0; font-size: 1.1rem; border-bottom: 1px solid var(--rule); }
  .nav-links a:hover, .nav-links a[aria-current="true"] { border-bottom-color: var(--rule); color: var(--green); }
  .nav-cta { width: 100%; }

  /* Tablet hero: one column that uses the full width, photo below the copy */
  .hero { padding: 2.5rem 0 3.5rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 2.75rem; }
  .hero-text { max-width: 44rem; }
  .hero h1 { font-size: clamp(3rem, 9.5vw, 4.9rem); max-width: 14ch; }
  .hero-lead { max-width: 42ch; }
  .hero-facts { max-width: none; }
  .hero-photo { width: 100%; max-width: none; order: -1; margin: 0 0 2.6rem; }
  .hero-photo img { aspect-ratio: 16 / 10; object-position: 60% 50%; }
  .hero-frame { inset: 1rem -.9rem -.9rem 1rem; }
  .sticker { left: auto; right: 1.25rem; bottom: -1.4rem; width: 9.5rem; }
  .quick-list { grid-template-columns: 1fr 1fr; }
  .quick-list li:nth-child(3) { border-left: 0; }
  .quick-list li:nth-child(n+3) { border-top: 1px solid var(--rule); }

  .about-body, .panel-grid, .admissions, .faq, .contact { grid-template-columns: 1fr; }
  .faq-head { position: static; }
  .profiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .profile-photo img { aspect-ratio: 4 / 3.6; }
  .profile h3 { font-size: 1.3rem; }
    .gallery { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .news-list li { grid-template-columns: 1fr; gap: .4rem; }
}

@media (max-width: 720px) {
  .profiles { grid-template-columns: 1fr; max-width: 30rem; margin-inline: auto; }
}

@media (max-width: 640px) {
  .tablist { grid-template-columns: 1fr; border-bottom: 0; }
  .tab { border-bottom: 1px solid var(--rule); padding-right: 0; }
  .tab[aria-selected="true"]::after { bottom: -1px; }
  .tab[aria-selected="true"] { border-bottom-color: var(--ink); }
  .hero-facts { grid-template-columns: 1fr; }
  .hero-facts div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--rule); }
  .hero-facts dd { margin: 0; font-size: 1.1rem; }
  .hero-actions .btn { width: 100%; }
  .hero-photo { margin-bottom: 2.1rem; }
  .hero-photo img { aspect-ratio: 4 / 3.3; }
  .hero { padding-top: 1.25rem; }
  .hero-meta { margin-bottom: .9rem; }
  .hero h1 { font-size: clamp(2.6rem, 11.5vw, 3.1rem); }
  .hero-frame { inset: .8rem -.6rem -.6rem .8rem; }
  .sticker { width: 7rem; right: .75rem; bottom: -1.1rem; }
  .sticker span { font-size: .8rem; }
  .sticker strong { font-size: 1.2rem; }
  .field-row { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .g-item img { aspect-ratio: 4 / 3; flex: none; height: auto; }
  .g-tall, .g-wide { grid-row: auto; grid-column: auto; }
  .quick-list { grid-template-columns: 1fr; }
  .quick-list li + li { border-left: 0; border-top: 1px solid var(--rule); }
  .quick-list li:nth-child(3) { border-left: 0; }
  .activities li { padding: .1rem .7rem; }
  .activities li:first-child { padding-left: 0; }
  .contact-list div { grid-template-columns: 1fr; gap: .2rem; }
  .dates div { flex-direction: column; gap: 0; }
  .dates dd { text-align: left; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .form { padding: 1.5rem; }
  .lb-prev, .lb-next { top: auto; bottom: -62px; transform: none; }
  .lb-prev { left: 0; } .lb-next { right: 0; left: auto; }
  .lb-close { top: -62px; }
  .lightbox { margin-bottom: 4rem; }
}

/* ---------- 11. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .load { animation: none; }
}
