/* ============================================================
   RCTC — The Redeemed Christian Theological College
   Design system: deep wine + antique gold, modern heritage.
   Fonts: Fraunces (display) + Inter (text) — loaded per page.
   ============================================================ */

:root {
  --wine-950: #14153a;
  --wine-900: #1b1c4d;
  --wine-800: #232460;
  --wine: #3d3f94;
  --wine-600: #5254ab;
  --wine-100: #e9eaf7;

  --gold: #d4a657;
  --gold-strong: #b98a35;
  --gold-soft: #e9cf9a;

  --cream: #f3f4fb;
  --paper: #fdfdfe;
  --ink: #191a26;
  --ink-soft: #555869;
  --line: rgba(25, 26, 38, 0.1);

  --font-display: "Fraunces", Georgia, serif;
  --font-text: "Inter", -apple-system, "Segoe UI", sans-serif;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow-card: 0 24px 48px -28px rgba(20, 21, 58, 0.35);
  --shadow-header: 0 10px 30px -18px rgba(20, 21, 58, 0.35);

  --space-section: clamp(4.5rem, 9vw, 7.5rem);
  --container: 74rem;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.6em;
  color: var(--wine-900);
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 5.6vw, 4.4rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--wine); text-decoration-color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--wine-600); }

::selection { background: var(--gold-soft); color: var(--wine-950); }

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

.container {
  width: min(var(--container), 100% - 3rem);
  margin-inline: auto;
}

.lede {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  color: var(--ink-soft);
  max-width: 46rem;
}

/* ---------- Eyebrow label ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-strong);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: var(--gold);
}
.band-wine .eyebrow { color: var(--gold-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  font-family: var(--font-text);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.btn svg { width: 1rem; height: 1rem; transition: transform 0.25s ease; }
.btn:hover svg { transform: translateX(3px); }

.btn-gold {
  background: var(--gold);
  color: var(--wine-950);
}
.btn-gold:hover {
  background: var(--gold-soft);
  color: var(--wine-950);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -14px rgba(212, 166, 87, 0.7);
}

.btn-wine {
  background: var(--wine);
  color: var(--cream);
}
.btn-wine:hover {
  background: var(--wine-600);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -14px rgba(61, 63, 148, 0.6);
}

.btn-ghost {
  background: transparent;
  color: var(--wine-900);
  border-color: rgba(25, 26, 38, 0.25);
}
.btn-ghost:hover { border-color: var(--wine); transform: translateY(-2px); }

.btn-ghost-light {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(4px);
}
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.18); color: #fff; transform: translateY(-2px); }

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--wine-950);
  color: rgba(243, 244, 251, 0.85);
  font-size: 0.82rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-block: 0.45rem;
}
.topbar a { color: rgba(243, 244, 251, 0.85); text-decoration: none; }
.topbar a:hover { color: var(--gold-soft); }
.topbar-contacts { display: flex; gap: 1.4rem; align-items: center; }
.topbar-contacts svg { width: 0.85rem; height: 0.85rem; vertical-align: -1px; margin-right: 0.35rem; }
.topbar-links { display: flex; gap: 1.2rem; }
.topbar-links a { color: var(--gold-soft); font-weight: 600; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(253, 253, 254, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.site-header.is-scrolled {
  box-shadow: var(--shadow-header);
  border-bottom-color: var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.9rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}
.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #fff;
  object-fit: contain;
  padding: 3px;
  box-shadow: 0 0 0 1px rgba(20, 21, 58, 0.12);
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--wine-900);
  line-height: 1.22;
}
.brand-name small {
  display: block;
  font-family: inherit;
  font-weight: inherit;
  font-size: inherit;
  letter-spacing: 0;
  text-transform: none;
  color: inherit;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 1.7rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding-block: 0.4rem;
  position: relative;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a[aria-current="page"] { color: var(--wine); font-weight: 600; }

.header-cta { white-space: nowrap; }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
  cursor: pointer;
  color: var(--wine-900);
}
.menu-toggle svg { width: 1.3rem; height: 1.3rem; display: block; }

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .header-cta { display: none; }
  .site-nav {
    position: fixed;
    inset: 0;
    top: 0;
    background: var(--wine-950);
    display: grid;
    place-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 70;
  }
  .site-nav.open { opacity: 1; pointer-events: auto; }
  .site-nav ul { flex-direction: column; gap: 1.4rem; text-align: center; }
  .site-nav a { color: var(--cream); font-size: 1.35rem; font-family: var(--font-display); }
  .site-nav a[aria-current="page"] { color: var(--gold-soft); }
  .nav-close {
    position: absolute;
    top: 1.2rem;
    right: 1.4rem;
    background: none;
    border: none;
    color: var(--cream);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
  }
}
@media (min-width: 901px) { .nav-close { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(88vh, 54rem);
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero-slides { position: absolute; inset: 0; z-index: -2; }
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.4s ease, transform 7s ease;
}
.hero-slide.active { opacity: 1; transform: scale(1); }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(198deg, rgba(20, 21, 58, 0.18) 0%, rgba(20, 21, 58, 0.55) 55%, rgba(20, 21, 58, 0.88) 100%);
}
.hero-content {
  padding-block: clamp(5rem, 12vh, 8rem) clamp(3.5rem, 8vh, 6rem);
  max-width: 46rem;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 1.3rem;
}
.hero-kicker::before { content: ""; width: 2.2rem; height: 1px; background: var(--gold); }
.hero h1 { color: #fff; margin-bottom: 0.5em; }
.hero h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--gold-soft);
}
.hero-sub {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: rgba(243, 244, 251, 0.88);
  max-width: 38rem;
  margin-bottom: 2rem;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.hero-dots {
  position: absolute;
  right: clamp(1.5rem, 4vw, 3.5rem);
  bottom: clamp(2rem, 6vh, 3.5rem);
  display: flex;
  gap: 0.55rem;
  z-index: 2;
}
.hero-dots button {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, transform 0.3s ease;
}
.hero-dots button.active { background: var(--gold); border-color: var(--gold); transform: scale(1.25); }

/* Small page hero (inner pages) */
.page-hero {
  position: relative;
  min-height: 22rem;
  display: flex;
  align-items: flex-end;
  color: #fff;
  background-size: cover;
  background-position: center;
  isolation: isolate;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(200deg, rgba(20, 21, 58, 0.3), rgba(20, 21, 58, 0.85));
}
.page-hero .hero-content { padding-block: 7rem 3rem; }
.page-hero h1 { color: #fff; font-size: clamp(2.3rem, 4.4vw, 3.6rem); }
.page-hero .hero-sub { margin-bottom: 0; }

/* ---------- Sections / bands ---------- */
.section { padding-block: var(--space-section); }
.band-cream { background: var(--cream); }
.band-paper { background: var(--paper); }
.band-wine {
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgba(212, 166, 87, 0.14), transparent 60%),
    var(--wine-900);
  color: rgba(243, 244, 251, 0.92);
}
.band-wine h2, .band-wine h3 { color: var(--cream); }
.band-wine .lede { color: rgba(243, 244, 251, 0.75); }

.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .lede { margin-inline: auto; }

.head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.head-row .section-head { margin-bottom: 0; }

/* ---------- Card grids ---------- */
.grid { display: grid; gap: 1.6rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); }
.card-media { aspect-ratio: 3 / 2; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.card:hover .card-media img { transform: scale(1.05); }
.card-body { padding: 1.5rem 1.6rem 1.7rem; flex: 1; display: flex; flex-direction: column; gap: 0.3rem; }
.card-body p { color: var(--ink-soft); font-size: 0.97rem; }
.card-tag {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-strong);
  background: rgba(212, 166, 87, 0.14);
  border-radius: 999px;
  padding: 0.28rem 0.75rem;
  margin-bottom: 0.7rem;
}
.card-link {
  margin-top: auto;
  padding-top: 0.9rem;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  color: var(--wine);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.card-link svg { width: 0.9rem; height: 0.9rem; transition: transform 0.25s ease; }
.card:hover .card-link svg { transform: translateX(4px); }

/* Icon tiles (quick links) */
.tile {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.5rem;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.tile:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); border-color: rgba(212, 166, 87, 0.5); color: var(--ink); }
.tile-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--wine-100);
  color: var(--wine);
  display: grid;
  place-items: center;
  transition: background 0.3s ease, color 0.3s ease;
}
.tile:hover .tile-icon { background: var(--wine); color: var(--gold-soft); }
.tile-icon svg { width: 1.5rem; height: 1.5rem; }
.tile h3 { margin: 0; font-size: 1.12rem; }
.tile p { color: var(--ink-soft); font-size: 0.92rem; margin: 0; }

/* ---------- Stats band ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
@media (max-width: 900px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
}
.stat-label {
  margin-top: 0.7rem;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(243, 244, 251, 0.72);
}

/* ---------- Split (image + text) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.split-media { position: relative; }
.split-media img {
  border-radius: var(--radius);
  width: 100%;
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  box-shadow: var(--shadow-card);
}
.split-media::before {
  content: "";
  position: absolute;
  inset: 1.4rem -1.4rem -1.4rem 1.4rem;
  border: 1.5px solid var(--gold);
  border-radius: var(--radius);
  z-index: -1;
  opacity: 0.6;
}
.split-media.frame-left::before { inset: 1.4rem 1.4rem -1.4rem -1.4rem; }
.checklist { list-style: none; padding: 0; margin: 1.4rem 0 2rem; display: grid; gap: 0.85rem; }
.checklist li { display: flex; gap: 0.8rem; align-items: flex-start; color: var(--ink-soft); }
.checklist svg { width: 1.25rem; height: 1.25rem; color: var(--gold-strong); flex-shrink: 0; margin-top: 0.2rem; }
.checklist strong { color: var(--ink); }

/* ---------- Quote / verse ---------- */
.verse {
  text-align: center;
  max-width: 52rem;
  margin-inline: auto;
}
.verse blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.4;
  color: var(--wine-900);
  margin: 0 0 1.2rem;
}
.band-wine .verse blockquote { color: var(--cream); }
.verse cite {
  font-family: var(--font-text);
  font-style: normal;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-strong);
}

/* ---------- Events ---------- */
.event-row {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
}
.event-row:first-child { border-top: 1px solid var(--line); }
.event-date {
  flex-shrink: 0;
  width: 4.6rem;
  text-align: center;
  background: var(--wine);
  color: var(--cream);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.4rem;
}
.event-date .d { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; line-height: 1; display: block; }
.event-date .m { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-soft); }
.event-info h3 { margin-bottom: 0.2rem; font-size: 1.15rem; }
.event-info p { color: var(--ink-soft); font-size: 0.93rem; margin: 0; }
.event-meta { display: flex; gap: 1.2rem; font-size: 0.85rem; color: var(--ink-soft); margin-top: 0.3rem; flex-wrap: wrap; }
.event-meta span { display: inline-flex; align-items: center; gap: 0.35rem; }
.event-meta svg { width: 0.85rem; height: 0.85rem; color: var(--gold-strong); }

/* ---------- CTA banner ---------- */
.cta-banner {
  position: relative;
  isolation: isolate;
  text-align: center;
  color: #fff;
  padding-block: clamp(5rem, 10vw, 8rem);
  background-size: cover;
  background-position: center;
}
.cta-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(rgba(20, 21, 58, 0.82), rgba(20, 21, 58, 0.82));
}
.cta-banner h2 { color: #fff; max-width: 40rem; margin-inline: auto; }
.cta-banner .lede { color: rgba(243, 244, 251, 0.85); margin: 0 auto 2.2rem; }

/* ---------- Tabs ---------- */
.tabs-nav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.2rem;
}
.tabs-nav button {
  font-family: var(--font-text);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.25s ease;
}
.tabs-nav button:hover { border-color: var(--gold); color: var(--wine); }
.tabs-nav button.active { background: var(--wine); border-color: var(--wine); color: var(--cream); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeUp 0.45s ease; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* Programme rows */
.prog {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem 2rem;
  align-items: center;
  padding: 1.5rem 1.7rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.prog:hover { transform: translateX(4px); box-shadow: var(--shadow-card); }
.prog h3 { margin-bottom: 0.25rem; font-size: 1.2rem; }
.prog p { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }
.prog-meta { display: flex; gap: 0.6rem; flex-wrap: wrap; justify-content: flex-end; }
.pill {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.32rem 0.85rem;
  border-radius: 999px;
  background: var(--wine-100);
  color: var(--wine);
  white-space: nowrap;
}
.pill.gold { background: rgba(212, 166, 87, 0.16); color: var(--gold-strong); }
@media (max-width: 700px) {
  .prog { grid-template-columns: 1fr; }
  .prog-meta { justify-content: flex-start; }
}

/* ---------- Accordion ---------- */
.accordion { border-top: 1px solid var(--line); }
.accordion-item { border-bottom: 1px solid var(--line); }
.accordion-item button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  background: none;
  border: none;
  text-align: left;
  padding: 1.35rem 0.2rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--wine-900);
  cursor: pointer;
}
.accordion-item button .acc-icon {
  flex-shrink: 0;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  transition: transform 0.3s ease, background 0.3s ease;
}
.accordion-item button .acc-icon svg { width: 0.85rem; height: 0.85rem; }
.accordion-item.open button .acc-icon { transform: rotate(45deg); background: var(--gold-soft); border-color: var(--gold); }
.accordion-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease;
}
.accordion-body p { color: var(--ink-soft); padding: 0 0.2rem 1.4rem; max-width: 46rem; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
  color: var(--wine-900);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-text);
  font-size: 0.97rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.field textarea { resize: vertical; min-height: 8rem; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold-strong);
  box-shadow: 0 0 0 3px rgba(212, 166, 87, 0.22);
}

/* ---------- Contact info cards ---------- */
.info-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.6rem;
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
}
.info-card .tile-icon { flex-shrink: 0; }
.info-card h3 { font-size: 1.05rem; margin-bottom: 0.25rem; }
.info-card p, .info-card a { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }

/* ---------- News list page ---------- */
.feature-card { grid-column: span 2; }
.feature-card .card-media { aspect-ratio: 21 / 9; }
@media (max-width: 640px) { .feature-card { grid-column: span 1; } }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.gallery figure { margin: 0; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery figure:hover img { transform: scale(1.07); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--wine-950);
  color: rgba(243, 244, 251, 0.78);
  padding-top: clamp(3.5rem, 7vw, 5.5rem);
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 {
  color: var(--gold-soft);
  font-family: var(--font-text);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.site-footer a { color: rgba(243, 244, 251, 0.78); text-decoration: none; }
.site-footer a:hover { color: var(--gold-soft); }
.footer-brand .brand-name { color: var(--cream); }
.footer-brand .brand-name small { color: inherit; }
.footer-brand p { margin-top: 1.1rem; max-width: 24rem; font-size: 0.92rem; color: rgba(243, 244, 251, 0.6); }
.footer-social { display: flex; gap: 0.7rem; margin-top: 1.3rem; }
.footer-social a {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  border: 1px solid rgba(243, 244, 251, 0.25);
  display: grid;
  place-items: center;
  transition: all 0.25s ease;
}
.footer-social a:hover { background: var(--gold); border-color: var(--gold); color: var(--wine-950); transform: translateY(-2px); }
.footer-social svg { width: 1rem; height: 1rem; }
.footer-contact li { display: flex; gap: 0.7rem; align-items: flex-start; }
.footer-contact svg { width: 1rem; height: 1rem; color: var(--gold); flex-shrink: 0; margin-top: 0.3rem; }
.footer-bottom {
  border-top: 1px solid rgba(243, 244, 251, 0.14);
  padding-block: 1.4rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: rgba(243, 244, 251, 0.5);
}

/* ---------- Curriculum page ---------- */
.hide { display: none !important; }
.g-hide { display: none !important; }
.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;
}
a.prog { text-decoration: none; }

.curr-toolbar {
  position: sticky;
  top: 76px;
  z-index: 50;
  background: rgba(253, 253, 254, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding-block: 0.8rem;
}
.curr-toolbar .container { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; }
.curr-search {
  flex: 1 1 17rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 1.15rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.curr-search:focus-within { border-color: var(--gold-strong); box-shadow: 0 0 0 3px rgba(212, 166, 87, 0.22); }
.curr-search svg { width: 1.05rem; height: 1.05rem; color: var(--gold-strong); flex-shrink: 0; }
.curr-search input { border: 0; outline: 0; background: none; width: 100%; font: inherit; font-size: 0.95rem; color: var(--ink); }
.curr-search input::placeholder { color: var(--ink-soft); opacity: 0.75; }
.curr-jumps { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.curr-jumps a,
.curr-toggle-all {
  font-family: var(--font-text);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--paper);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.38rem 0.9rem;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.25s ease;
}
.curr-jumps a:hover,
.curr-toggle-all:hover { border-color: var(--gold); color: var(--wine); }
.curr-toggle-all { background: var(--wine); border-color: var(--wine); color: var(--cream); }
.curr-toggle-all:hover { background: var(--wine-600); color: #fff; }
.curr-count { margin: 0.55rem 0 0; font-size: 0.86rem; color: var(--ink-soft); }
.curr-count strong { color: var(--wine); }

.curr-group { padding-block: clamp(2.8rem, 6vw, 4.5rem); scroll-margin-top: 150px; }
.curr-group .section-head { margin-bottom: clamp(1.8rem, 4vw, 2.6rem); }
.curr-group .section-head .lede { font-size: 1.02rem; max-width: 52rem; }
.curr-legend { font-size: 0.85rem; color: var(--ink-soft); margin-top: 1.1rem; }

/* Programme card */
.cp {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  scroll-margin-top: 150px;
  overflow: hidden;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.cp:hover { box-shadow: var(--shadow-card); }
.cp.open { border-color: rgba(212, 166, 87, 0.55); }
.cp-h { margin: 0; }
.cp-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.25rem 1.5rem;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}
.cp-title-wrap { flex: 1; min-width: 0; }
.cp-name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--wine-900);
  line-height: 1.25;
}
.cp-sub { display: block; font-size: 0.9rem; color: var(--ink-soft); margin-top: 0.25rem; }
.cp-meta { display: flex; gap: 0.45rem; flex-wrap: wrap; justify-content: flex-end; max-width: 38%; }
.cp-chev {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--wine-900);
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
.cp-chev svg { width: 1rem; height: 1rem; }
.cp.open .cp-chev { transform: rotate(180deg); background: var(--gold-soft); border-color: var(--gold); }
.cp-body { display: none; padding: 0.3rem 1.5rem 1.9rem; border-top: 1px solid var(--line); }
.cp.open .cp-body { display: block; animation: fadeUp 0.4s ease; }
.cp-desc { color: var(--ink-soft); font-size: 0.96rem; max-width: 52rem; margin: 1.2rem 0 0; }
.cp-note { font-size: 0.88rem; color: var(--ink-soft); font-style: italic; max-width: 52rem; margin: 0.9rem 0 0; }

.cp-details { margin-top: 1.1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--cream); }
.cp-details + .cp-details { margin-top: 0.6rem; }
.cp-details summary {
  cursor: pointer;
  padding: 0.8rem 1.15rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--wine-900);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.cp-details summary::-webkit-details-marker { display: none; }
.cp-details summary::after { content: "+"; font-weight: 700; color: var(--gold-strong); font-size: 1.15rem; line-height: 1; }
.cp-details[open] summary::after { content: "\2013"; }
.cp-details-body { padding: 0 1.15rem 1.05rem; font-size: 0.92rem; color: var(--ink-soft); }
.cp-details-body ul { margin: 0.4rem 0 0; padding-left: 1.2rem; display: grid; gap: 0.45rem; }
.cp-details-body .cp-note { margin-top: 0.8rem; }

.sem-h {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-text);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wine);
  margin: 1.8rem 0 0.8rem;
}
.sem-h::before { content: ""; width: 1.4rem; height: 2px; background: var(--gold); border-radius: 2px; flex-shrink: 0; }
.sem-note { font-size: 0.88rem; color: var(--ink-soft); margin: -0.35rem 0 0.8rem; }
.sem-foot { font-size: 0.84rem; color: var(--ink-soft); margin: 0.55rem 0 0; }

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
}
.course-table { width: 100%; border-collapse: collapse; font-size: 0.93rem; min-width: 33rem; }
.course-table thead th {
  background: var(--wine-100);
  color: var(--wine-900);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: left;
  padding: 0.62rem 0.95rem;
}
.course-table td { padding: 0.58rem 0.95rem; border-top: 1px solid var(--line); vertical-align: top; }
.course-table tbody tr:nth-child(even):not(.group-row):not(.note-row) { background: rgba(233, 234, 247, 0.32); }
.ct-code { white-space: nowrap; font-weight: 600; color: var(--wine); width: 7rem; }
.ct-units { text-align: right; width: 4.8rem; font-variant-numeric: tabular-nums; }
th.ct-units { text-align: right; }
.ct-status { width: 4.8rem; text-align: center; }
th.ct-status { text-align: center; }
.st {
  display: inline-grid;
  place-items: center;
  min-width: 1.65rem;
  height: 1.65rem;
  padding: 0 0.42rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}
.st-c { background: rgba(212, 166, 87, 0.22); color: var(--gold-strong); }
.st-r { background: var(--wine-100); color: var(--wine); }
.st-e { background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-soft); }
.st-o { background: var(--cream); color: var(--ink-soft); font-size: 0.68rem; padding: 0 0.5rem; }
.group-row td {
  background: rgba(212, 166, 87, 0.14);
  color: var(--wine-900);
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.note-row td { font-size: 0.82rem; color: var(--ink-soft); font-style: italic; background: var(--cream); }

.cp-apply {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}
.cp-apply .btn { padding: 0.7rem 1.4rem; font-size: 0.9rem; }
.search-mode .cp-apply { border-top: 0; padding-top: 0; }
.cp-totals { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.4rem; }
.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.2rem; }
.chip {
  font-size: 0.85rem;
  font-weight: 500;
  background: var(--cream);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
}
.panel-cap { display: none; }
.cp-tabs .tabs-nav { margin: 0 0 1.1rem; }
.cp-tabs .tabs-nav button { font-size: 0.85rem; padding: 0.5rem 1.1rem; }

/* Search mode */
.search-mode .cp:not(.hide) .cp-body { display: block; }
.search-mode .cp-desc,
.search-mode .cp-note,
.search-mode .cp-details,
.search-mode .cp-totals,
.search-mode .sem-note,
.search-mode .sem-foot,
.search-mode .group-row,
.search-mode .note-row,
.search-mode .cp-tabs .tabs-nav { display: none; }
.search-mode .tab-panel { display: block; }
.search-mode .panel-cap {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-strong);
  margin: 1.6rem 0 0.7rem;
}
.search-mode .panel-cap::before { content: ""; width: 1.4rem; height: 2px; background: var(--gold); border-radius: 2px; }

@media (max-width: 760px) {
  .cp-meta { display: none; }
  .cp-head { padding: 1.05rem 1.15rem; gap: 0.9rem; }
  .cp-body { padding: 0.2rem 1.15rem 1.5rem; }
  .curr-group { scroll-margin-top: 130px; }
  .cp { scroll-margin-top: 130px; }
}

@media print {
  .curr-toolbar, .cta-banner, .site-header, .topbar { display: none !important; }
  .cp-body { display: block !important; }
  .table-scroll { border: 0; }
}

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-slide { transition: opacity 0.5s ease; transform: none; }
  * { animation-duration: 0.01ms !important; }
}
