/* Bensal Pre & Primary School — main stylesheet */

:root {
  --brand: #7b1e34;      /* burgundy, matched to the school sweaters */
  --brand-dark: #561424;
  --brand-soft: #f6e8ec;
  --gold: #e0a526;
  --gold-soft: #fbf1d9;
  --cream: #faf7f0;
  --white: #ffffff;
  --ink: #221c1d;
  --muted: #625a5b;
  --line: #e3ddd0;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(60, 10, 18, .06), 0 8px 24px rgba(60, 10, 18, .07);
  --max: 1160px;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--brand); }
a:hover { color: var(--brand-dark); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--brand-dark);
  line-height: 1.2;
  margin: 0 0 .5em;
  font-weight: 600;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--gold); color: var(--ink); padding: 8px 14px; z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--brand-dark);
  color: #f0d6da;
  font-size: .88rem;
}
.topbar .container {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; padding-top: 7px; padding-bottom: 7px;
}
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; color: #fff; }
.topbar-items { display: flex; gap: 22px; flex-wrap: wrap; }
@media (max-width: 1000px) { .topbar .hide-md { display: none; } }

/* ---------- Header / nav ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 76px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--brand-dark);
}
.brand img { width: 58px; height: 58px; border-radius: 50%; }
.brand-name {
  font-family: var(--serif); font-weight: 700; font-size: 1.22rem; line-height: 1.1;
}
.brand-sub {
  display: block; font-family: var(--sans); font-weight: 600;
  font-size: .72rem; letter-spacing: .09em; text-transform: uppercase; color: var(--muted);
  margin-top: 3px;
}

.main-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: 4px;
}
.main-nav a {
  display: block; padding: 8px 11px; border-radius: 6px;
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: .96rem;
}
.main-nav a:hover { background: var(--brand-soft); color: var(--brand-dark); }
.main-nav a[aria-current="page"] { color: var(--brand); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
.main-nav .btn { margin-left: 8px; }
.main-nav a.btn:hover { background: var(--brand-dark); color: #fff; }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line); border-radius: 8px;
  padding: 9px 11px; cursor: pointer; color: var(--brand-dark);
  font: 600 .95rem var(--sans);
  align-items: center; gap: 8px;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px;
  position: relative; content: "";
}
.nav-toggle-bars::before { position: absolute; top: -6px; }
.nav-toggle-bars::after { position: absolute; top: 6px; }

@media (max-width: 480px) {
  .site-header .container { min-height: 66px; gap: 10px; }
  .brand { gap: 9px; }
  .brand img { width: 46px; height: 46px; }
  .brand-name { font-size: 1.04rem; white-space: nowrap; }
  .brand-sub { font-size: .6rem; letter-spacing: .07em; }
  .nav-toggle { padding: 10px; min-width: 46px; min-height: 46px; justify-content: center; align-items: center; }
  .nav-toggle-text { display: none; }
}

@media (max-width: 1040px) {
  .nav-toggle { display: inline-flex; align-items: center; min-height: 44px; }
  .main-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--white); border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(0,0,0,.08);
    display: none;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: 10px 20px 20px; gap: 2px; }
  .main-nav a { padding: 12px 10px; font-size: 1.02rem; }
  .main-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--gold); background: var(--brand-soft); }
  .main-nav .btn { margin: 10px 0 0; text-align: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--brand); color: #fff !important;
  padding: 12px 22px; border-radius: 8px;
  font-weight: 700; text-decoration: none; font-size: 1rem;
  border: 2px solid var(--brand);
  transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--ink) !important; }
.btn-gold:hover { background: #c98f17; border-color: #c98f17; }
.btn-outline { background: transparent; color: var(--brand) !important; }
.btn-outline:hover { background: var(--brand); color: #fff !important; }
.btn-light { background: transparent; border-color: rgba(255,255,255,.6); }
.btn-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-sm { padding: 8px 16px; font-size: .93rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-tight { padding: 56px 0; }
.section-white { background: var(--white); }
.section-brand { background: var(--brand); color: #f5e4e6; }
.section-brand h2, .section-brand h3 { color: #fff; }

.eyebrow {
  display: inline-block;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 12px;
}
.section-brand .eyebrow { color: var(--gold); }

.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section-brand .section-head p { color: #ecc9ce; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

.lead { font-size: 1.15rem; color: var(--muted); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; gap: 32px; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
}

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card .tag {
  display: inline-block; background: var(--gold-soft); color: #7a5608;
  font-size: .8rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; margin-bottom: 14px;
}
.card-link { font-weight: 700; text-decoration: none; }
.card-link:hover { text-decoration: underline; }

/* ---------- Photos (placeholder until real images are added) ---------- */
.photo {
  margin: 0;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background-color: #f0e2e6;
  background-image:
    repeating-linear-gradient(135deg, rgba(123,30,52,.06) 0 12px, transparent 12px 24px);
  aspect-ratio: 4 / 3;
}
.photo.tall { aspect-ratio: 4 / 5; }
.photo.wide { aspect-ratio: 16 / 9; }
.photo.portrait { aspect-ratio: 3 / 4; max-width: 440px; width: 100%; margin: 0 auto; }
.photo.portrait img { object-position: center 20%; }
/* Full photo at its own shape, never cropped (used for wide group photos) */
.photo.full { aspect-ratio: auto; background: none; }
.photo.full img { height: auto; display: block; }
.photo.full figcaption { position: static; background: none; color: var(--muted); padding: 10px 2px 0; }

/* ---------- Home slideshow (auto-advances, see main.js) ---------- */
.slideshow {
  position: relative; overflow: hidden;
  border-radius: var(--radius); background: #2a1415;
  aspect-ratio: 4 / 3;
}
.slide {
  position: absolute; inset: 0; margin: 0;
  opacity: 0; transition: opacity 1.1s ease;
}
.slide.is-active { opacity: 1; z-index: 1; }
/* The whole photo is always shown (nobody gets cut off at the edges).
   Any leftover space is filled with a blurred copy of the same photo. */
.slide::before {
  content: ""; position: absolute; inset: -30px;
  background: var(--bg) center / cover no-repeat;
  filter: blur(22px) brightness(.75);
  transform: scale(1.08); transition: transform 6s ease-out;
}
.slide.is-active::before { transform: scale(1); }
.slide img { position: relative; width: 100%; height: 100%; object-fit: contain; }
.slide figcaption {
  position: absolute; top: 16px; left: 16px;
  background: rgba(0,0,0,.5); color: #fff; font-size: .85rem; font-weight: 600;
  padding: 5px 12px; border-radius: 99px;
}
.slide-dots {
  position: absolute; right: 8px; bottom: 6px; z-index: 2;
  display: flex; gap: 0;
}
/* The button is a comfortable finger-sized target; the dot inside stays small */
.slide-dots button {
  width: 24px; height: 28px; padding: 0; cursor: pointer;
  border: 0; background: none; display: grid; place-items: center;
}
.slide-dots button::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%;
  border: 2px solid #fff; box-sizing: border-box; box-shadow: 0 0 3px rgba(0,0,0,.35);
}
.slide-dots button[aria-current="true"]::before { background: #fff; }

/* ---------- Videos (portrait phone clips) ---------- */
.video-frame { margin: 0 auto; max-width: 340px; width: 100%; }
.video-frame video {
  display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover;
  border-radius: var(--radius); background: #000;
}
.video-frame figcaption { margin-top: 10px; font-size: .9rem; color: var(--muted); text-align: center; }
.photo img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }
.photo::after {
  content: attr(data-label);
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font-size: .85rem; font-weight: 600; color: var(--brand);
  background: rgba(255,255,255,.75); padding: 6px 12px; border-radius: 99px;
  white-space: nowrap;
}
.photo figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 24px 16px 12px; font-size: .9rem; color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,.55));
}

/* ---------- Home hero ---------- */
.hero { background: var(--white); padding: 64px 0 72px; border-bottom: 1px solid var(--line); }
.hero .grid-2 { grid-template-columns: 1.05fr .95fr; }
.hero p.lead { max-width: 540px; margin-bottom: 28px; }
.hero-note { margin-top: 22px; font-size: .95rem; color: var(--muted); }
.hero-note strong { color: var(--ink); }
.hero-media { position: relative; }
/* Sits under the slideshow, never on top of a photo */
.hero-badge {
  display: flex; align-items: center; gap: 14px; margin-top: 14px;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 14px 20px; border-left: 4px solid var(--gold);
}
.hero-badge .big { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; color: var(--brand-dark); line-height: 1.1; }
.hero-badge .big { flex: none; }
.hero-badge span { display: block; font-size: .9rem; color: var(--muted); }
@media (max-width: 900px) {
  .hero .grid-2 { grid-template-columns: 1fr; }
}

/* ---------- Stat strip ---------- */
.stats { background: var(--brand); color: #fff; }
.stats .grid-4 { gap: 0; }
.stat { padding: 34px 24px; border-right: 1px solid rgba(255,255,255,.14); }
.stat:last-child { border-right: 0; }
.stat .num { font-family: var(--serif); font-size: 2.3rem; font-weight: 700; line-height: 1; color: #fff; }
.stat .num small { font-size: 1.1rem; font-weight: 600; }
.stat .label { margin-top: 10px; color: #f0cfd4; font-size: .98rem; line-height: 1.4; }
@media (max-width: 900px) {
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.14); }
}
@media (max-width: 520px) {
  .stat { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.14); padding: 24px 4px; }
  .stat:last-child { border-bottom: 0; }
}

/* ---------- Stage cards ---------- */
.stage { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.stage .photo { border-radius: 0; aspect-ratio: 16 / 10; }
.stage-body { padding: 24px 26px 28px; flex: 1; display: flex; flex-direction: column; }
.stage-body p { color: var(--muted); }
.stage-age { font-weight: 700; color: var(--gold); color: #a87708; font-size: .9rem; margin-bottom: 6px; }
.stage-body .card-link { margin-top: auto; }

/* ---------- Feature list ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 40px; }
.feature h3 { font-size: 1.12rem; margin-bottom: .35em; display: flex; align-items: center; gap: 10px; }
.feature h3::before {
  content: ""; width: 10px; height: 10px; border-radius: 2px; background: var(--gold); flex: none;
  transform: rotate(45deg);
}
.feature p { color: var(--muted); margin: 0; }
.section-brand .feature p { color: #ecc9ce; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

/* ---------- Results ---------- */
.result-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.result-card .year { font-family: var(--serif); font-size: 1.05rem; color: var(--muted); }
.result-card .headline { font-family: var(--serif); font-size: 1.7rem; font-weight: 700; color: var(--brand-dark); margin: 4px 0 18px; line-height: 1.2; }
.result-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; text-align: center; }
.result-row div { background: var(--cream); border-radius: 8px; padding: 12px 6px; }
.result-row b { display: block; font-family: var(--serif); font-size: 1.6rem; color: var(--brand-dark); line-height: 1.1; }
.result-row span { font-size: .82rem; color: var(--muted); }
.result-card .foot { margin-top: 16px; font-size: .92rem; color: var(--muted); margin-bottom: 0; }

/* Bar chart */
.chart {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 28px 20px;
  display: flex; flex-direction: column;
}
.chart h3 { margin-bottom: 4px; }
.chart .sub { color: var(--muted); font-size: .95rem; margin-bottom: 22px; }
.bars {
  display: flex; align-items: stretch; gap: 14px;
  flex: 1; min-height: 240px; padding-top: 28px;
  border-bottom: 2px solid var(--line);
  position: relative;
}
.bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; }
.bar-fill {
  width: 100%; max-width: 70px; background: var(--brand); border-radius: 6px 6px 0 0;
  height: 0; transition: height 1s cubic-bezier(.2,.7,.2,1);
  position: relative;
}
.bar.best .bar-fill { background: var(--gold); }
.bar-val {
  position: absolute; top: -24px; left: 50%; transform: translateX(-50%);
  font-size: .82rem; font-weight: 700; color: var(--ink); white-space: nowrap;
  opacity: 0; transition: opacity .4s .6s;
}
.chart.in .bar-val { opacity: 1; }
.bar-labels { display: flex; gap: 14px; margin-top: 8px; }
.bar-labels span { flex: 1; text-align: center; font-size: .9rem; font-weight: 600; color: var(--muted); }

/* Stacked grade bars */
.stack-list { display: grid; gap: 12px; }
.stack-item { display: grid; grid-template-columns: 52px 1fr 70px; align-items: center; gap: 12px; font-size: .92rem; }
.stack-item .yr { font-weight: 700; }
.stack-item .n { color: var(--muted); text-align: right; }
.stack { display: flex; height: 26px; border-radius: 5px; overflow: hidden; background: var(--cream); }
.stack span {
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: .78rem; font-weight: 700; width: 0;
  transition: width 1s cubic-bezier(.2,.7,.2,1);
  white-space: nowrap; overflow: hidden;
}
.stack .a { background: var(--brand); }
.stack .b { background: #c56b78; }
.stack .c { background: var(--gold); color: var(--ink); }
.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: .88rem; color: var(--muted); margin-top: 16px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
table { width: 100%; border-collapse: collapse; font-size: .96rem; }
th, td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); }
th { background: var(--brand-soft); color: var(--brand-dark); font-weight: 700; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.grade {
  display: inline-block; min-width: 26px; text-align: center;
  padding: 1px 8px; border-radius: 4px; font-weight: 700; font-size: .85rem;
  background: var(--brand-soft); color: var(--brand-dark);
}
.grade.b { background: #fbf0f1; color: #8a3a46; }
.table-note { font-size: .9rem; color: var(--muted); margin-top: 12px; }

/* ---------- Inner page hero ---------- */
.page-hero {
  background: var(--brand);
  background-image: radial-gradient(circle at 85% 20%, rgba(255,255,255,.08), transparent 45%);
  color: #f5e1e4; padding: 64px 0 60px;
}
.page-hero h1 { color: #fff; margin-bottom: .3em; }
.page-hero p { max-width: 640px; font-size: 1.12rem; margin: 0; color: #f0cfd4; }
.crumbs { font-size: .88rem; margin-bottom: 14px; color: #e2b1b9; }
.crumbs a { color: #fff; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ---------- Prose ---------- */
.prose { max-width: 720px; }
.prose p { font-size: 1.06rem; }
.prose h2 { margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }

.facts { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); overflow: hidden; }
.facts dl { margin: 0; }
.facts div { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 14px 22px; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { font-weight: 700; color: var(--brand-dark); }
.facts dd { margin: 0; color: var(--ink); }
@media (max-width: 560px) { .facts div { grid-template-columns: 1fr; gap: 2px; } }

/* "Ben" + "Sal" name story on the About page */


/* ---------- Enrolment dates (Admissions) ---------- */
.enrol-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  background: var(--brand); color: #fff; border-radius: var(--radius);
  padding: 26px 30px; margin-bottom: 48px; border-left: 6px solid var(--gold);
}
.enrol-banner .eyebrow { color: #f6d9a0; }
.enrol-banner h2 { color: #fff; margin: 4px 0 6px; }
.enrol-banner p { margin: 0; color: rgba(255,255,255,.9); }
.enrol-banner .btn { background: #fff; border-color: #fff; color: var(--brand) !important; }
.enrol-banner .btn:hover { background: var(--gold); border-color: var(--gold); color: var(--ink) !important; }

/* ---------- Mission, vision, values (About) ---------- */
.mvv { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mvv-values { grid-column: 1 / -1; }
.mvv-card h3 { margin-top: 14px; }
.mvv-card p:last-of-type { margin-bottom: 0; }
.mvv-icon {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--brand); color: #fff;
}
.mvv-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.mvv-icon svg .fill { fill: currentColor; }
.value-chips { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.value-chips li {
  background: var(--brand-soft); color: var(--brand-dark); font-weight: 700; font-size: .92rem;
  padding: 7px 14px; border-radius: 99px; border: 1px solid #e9cdd5;
}
.grid-cards { align-items: stretch; gap: 24px; }
@media (max-width: 760px) { .mvv { grid-template-columns: 1fr; gap: 16px; } }

.name-story {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 18px 22px; margin: 8px 0 28px;
}
.name-part {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 30px; text-align: center; min-width: 210px;
}
.name-part .big { display: block; font-family: var(--serif); font-size: 2.3rem; line-height: 1.1; color: #9a8f90; }
.name-part .big b { color: var(--brand); font-weight: 700; }
.name-part small { display: block; margin-top: 8px; font-size: .9rem; color: var(--muted); }
.name-part.result { background: var(--brand); border-color: var(--brand); }
.name-part.result .big, .name-part.result .big b { color: #fff; }
.name-part.result .big b + b { color: var(--gold); }
.name-part.result small { color: #f0cfd4; }
.name-op { font-family: var(--serif); font-size: 2.2rem; color: var(--gold); font-weight: 700; }
@media (max-width: 760px) {
  .name-story { flex-direction: column; }
  .name-part { width: 100%; max-width: 320px; }
  .name-op { line-height: 1; }
}

.logo-display { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.logo-display img { width: 100%; max-width: 300px; height: auto; margin: 0 auto; }
@media (max-width: 560px) { .logo-display { padding: 18px; } .logo-display img { max-width: 180px; } }

.quote {
  border-left: 4px solid var(--gold); padding: 6px 0 6px 22px; margin: 28px 0;
  font-family: var(--serif); font-size: 1.25rem; color: var(--brand-dark); font-style: italic;
}

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 18px; list-style: none; padding: 0; margin: 0; }
.steps li {
  counter-increment: step; position: relative;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px 22px 80px;
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 22px; top: 20px;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--brand); color: #fff; font-family: var(--serif); font-weight: 700; font-size: 1.15rem;
  display: flex; align-items: center; justify-content: center;
}
.steps h3 { font-size: 1.12rem; margin-bottom: .25em; }
.steps p { margin: 0; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; }
.faq summary {
  cursor: pointer; padding: 18px 54px 18px 22px; font-weight: 700; color: var(--brand-dark);
  list-style: none; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; color: var(--brand);
}
.faq details[open] summary::after { content: "\2013"; }
.faq details p { padding: 0 22px 18px; margin: 0; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-card { display: flex; flex-direction: column; gap: 4px; }
.contact-card .role { font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #a87708; }
.contact-card .name { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; color: var(--brand-dark); }
.contact-card .phone { font-size: 1.15rem; font-weight: 700; text-decoration: none; margin-top: 6px; overflow-wrap: anywhere; }
.grid-4 .contact-card .phone { font-size: 1.02rem; }
.grid-4 .contact-card { padding: 24px; }
.contact-card .btn { margin-top: 14px; align-self: flex-start; }

.map { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--brand-soft); }
.map iframe { width: 100%; height: 420px; border: 0; display: block; }

.hours { list-style: none; padding: 0; margin: 0; }
.hours li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.hours li:last-child { border-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--gold-soft); border-top: 1px solid #f0e0b5; border-bottom: 1px solid #f0e0b5; }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; padding-top: 48px; padding-bottom: 48px; }
.cta-band h2 { margin-bottom: .2em; }
.cta-band p { margin: 0; color: var(--muted); }

/* ---------- News ---------- */
.news-item { border-top: 3px solid var(--brand); }
.news-item .date { font-size: .85rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.news-item h3 { margin-top: 8px; font-size: 1.15rem; }
.news-item p { color: var(--muted); }

/* ---------- Gallery ---------- */
/* Photos keep their own shape (tall or wide), so nothing is cropped */
.gallery { columns: 3 240px; column-gap: 14px; }
.gallery .photo { aspect-ratio: auto; margin: 0 0 14px; break-inside: avoid; background: none; }
.gallery .photo img { height: auto; display: block; }
.gallery .photo.span-all { column-span: all; }
@media (max-width: 560px) { .gallery { columns: 2; column-gap: 10px; } .gallery .photo { margin-bottom: 10px; } }

/* ---------- Organisation chart (About page) ---------- */
.org { --org-line: #c9a9ab; text-align: center; }
.org-box {
  display: inline-block; background: var(--white); border: 1px solid var(--line);
  border-radius: 10px; padding: 12px 18px; min-width: 210px; max-width: 100%;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.org-box .title { display: block; font-size: .78rem; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .05em; }
.org-box .who { display: block; font-family: "Lora", Georgia, serif; font-weight: 600; font-size: 1.05rem; margin-top: 2px; }
.org-box.top { background: var(--brand); border-color: var(--brand); color: #fff; }
.org-box.top .title { color: #f6d9a0; }
.org-box.role { padding: 9px 16px; min-width: 0; }
.org-box.role .title { color: var(--ink); text-transform: none; letter-spacing: 0; font-size: .95rem; font-weight: 600; }
.org-line { width: 2px; height: 22px; background: var(--org-line); margin: 0 auto; }
.org-depts { --gap: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); position: relative; padding-top: 22px; }
.org-depts::before { /* the bar joining the three departments, from the middle of the first to the middle of the last */
  content: ""; position: absolute; top: 0;
  left: calc((100% - 2 * var(--gap)) / 6); right: calc((100% - 2 * var(--gap)) / 6);
  height: 2px; background: var(--org-line);
}
.org-dept { position: relative; display: flex; flex-direction: column; align-items: center; }
.org-dept::before { content: ""; position: absolute; top: -22px; left: 50%; width: 2px; height: 22px; background: var(--org-line); }
.org-dept .org-box { width: 100%; }
.org-dept .org-box.role { width: auto; }
.org-masters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.org-dept-name { font-size: .8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
/* Phones and tablets: the same tree as on a laptop, just more compact */
@media (max-width: 860px) {
  .org-depts { --gap: 8px; }
  .org-box { min-width: 0; padding: 8px 6px; border-radius: 8px; }
  .org-box .title { font-size: .62rem; letter-spacing: .02em; }
  .org-box .who { font-size: .82rem; line-height: 1.25; }
  .org > .org-box { min-width: 200px; padding: 10px 16px; }
  .org > .org-box .title { font-size: .7rem; }
  .org > .org-box .who { font-size: .95rem; }
  .org-box.role { padding: 7px 6px; }
  .org-box.role .title { font-size: .76rem; line-height: 1.2; }
  .org-dept .org-box.role { width: 100%; }
  .org-dept-name { font-size: .62rem; letter-spacing: .04em; margin-bottom: 6px; }
  .org-masters { flex-direction: column; gap: 6px; width: 100%; }
  .org-line { height: 16px; }
}

/* ---------- Notice box ---------- */
.note {
  background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--brand);
  border-radius: 8px; padding: 16px 20px; font-size: .96rem; color: var(--muted);
}
.note strong { color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-dark); color: #e0b9bf; font-size: .95rem; }
.site-footer .container { padding-top: 60px; padding-bottom: 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #f5e4e6; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand img { width: 64px; height: 64px; border-radius: 50%; }
.footer-motto { font-family: var(--serif); font-style: italic; color: #fff; }
.footer-brand span { font-family: var(--serif); font-size: 1.2rem; font-weight: 700; color: #fff; line-height: 1.15; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 44px; padding-top: 20px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .86rem; color: #c99099;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .topbar .hide-sm { display: none; }
}

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 24px; }
.mt-3 { margin-top: 40px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .slide, .slide::before { transition: none; transform: none; }
  .bar-fill, .stack span { transition: none; }
}
