/* ==========================================================================
   Mutunga Mutua — site styles
   Palette drawn from the "Teaching with a Twist" cover: deep plum + signal red
   ========================================================================== */

:root {
  --ink: #17121f;
  --ink-2: #241b30;
  --plum: #3b1d5a;
  --plum-2: #5a2d86;
  --red: #d32a35;
  --red-dark: #a91f29;
  --cream: #f6f1ea;
  --paper: #fffdf9;
  --line: #e4dcd1;
  --text: #2a2430;
  --muted: #6c6474;
  --on-dark: #f4eef8;
  --on-dark-muted: #c6b9d3;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1180px;
  --radius: 6px;
  --header-h: 72px;
  --shadow: 0 18px 40px -24px rgba(23, 18, 31, .45);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--plum-2); text-underline-offset: .2em; }
a:hover { color: var(--red); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; color: var(--ink); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.75rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
p { margin: 0 0 1.1em; }
ul { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2.5rem, 780px); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--red); color: #fff; padding: .6rem 1rem; z-index: 200; }
.skip-link:focus { left: 1rem; top: 1rem; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
}
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .9rem 1.6rem;
  font: 600 .82rem/1 var(--font-body);
  letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--red);
  background: var(--red); color: #fff;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn--light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.link-arrow { font-weight: 600; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--red); }
.link-arrow::after { content: " →"; }

/* ---------- Header / navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  /* No backdrop-filter here: it would trap the fixed mobile menu inside the header */
  background: var(--ink);
  color: #fff;
  transition: box-shadow .2s;
}
.site-header.is-scrolled { box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { color: #fff; text-decoration: none; font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.brand span { color: var(--red); }
.brand:hover { color: #fff; }

.nav-toggle {
  display: none;
  background: none; border: 0; color: #fff; padding: .5rem; cursor: pointer;
  width: 44px; height: 44px; position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  position: absolute; left: 10px; right: 10px; height: 2px; background: currentColor; content: ""; transition: transform .25s, opacity .2s;
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { left: 0; right: 0; top: -7px; }
.nav-toggle span::after { left: 0; right: 0; top: 7px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav > ul { display: flex; align-items: center; gap: .25rem; }
.main-nav a, .submenu-toggle {
  display: block; color: #fff; text-decoration: none;
  font: 600 .78rem/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase;
  padding: .8rem .9rem;
  background: none; border: 0; cursor: pointer;
}
.main-nav a:hover, .main-nav a[aria-current="page"], .submenu-toggle:hover { color: #ff8b92; }
.main-nav .nav-cta { background: var(--red); border-radius: 999px; padding: .75rem 1.2rem; margin-left: .5rem; }
.main-nav .nav-cta:hover, .main-nav .nav-cta[aria-current="page"] { background: var(--red-dark); color: #fff; }
.has-sub { position: relative; display: flex; align-items: center; }
.has-sub > a { padding-right: .2rem; }
.submenu-toggle { padding-left: .2rem; padding-right: .6rem; }
.submenu-toggle svg { width: 10px; height: 10px; transition: transform .2s; }
.submenu {
  position: absolute; top: 100%; left: 0; min-width: 260px;
  background: var(--ink-2); border-top: 3px solid var(--red);
  padding: .5rem 0; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s, visibility .2s;
}
.submenu a { padding: .85rem 1.2rem; letter-spacing: .1em; }
.has-sub:hover .submenu, .has-sub:focus-within .submenu, .has-sub.is-open .submenu { opacity: 1; visibility: visible; transform: none; }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 0;
    background: var(--ink);
    overflow-y: auto;
    padding: 1rem 1.25rem 3rem;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
  }
  .nav-open .main-nav { opacity: 1; transform: none; visibility: visible; }
  .nav-open { overflow: hidden; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav > ul > li { border-bottom: 1px solid rgba(255,255,255,.08); }
  .main-nav a, .submenu-toggle { font-size: .95rem; padding: 1.15rem .25rem; }
  .has-sub { flex-wrap: wrap; }
  .has-sub > a { flex: 1; }
  .submenu-toggle { padding: 1.15rem .75rem; }
  .submenu {
    position: static; flex-basis: 100%; min-width: 0; box-shadow: none; border: 0;
    background: transparent; padding: 0 0 .6rem 1rem;
    opacity: 1; visibility: visible; transform: none; display: none;
  }
  .has-sub:hover .submenu, .has-sub:focus-within .submenu { display: none; }
  .has-sub.is-open .submenu { display: block; }
  .has-sub.is-open .submenu-toggle svg { transform: rotate(180deg); }
  .submenu a { font-size: .85rem; padding: .8rem .25rem; color: var(--on-dark-muted); }
  .main-nav .nav-cta { margin: 1.5rem 0 0; text-align: center; padding: 1.1rem; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section--cream { background: var(--cream); }
.section--dark { background: var(--ink); color: var(--on-dark); }
.section--plum { background: linear-gradient(135deg, var(--plum) 0%, var(--ink) 100%); color: var(--on-dark); }
.section--dark h2, .section--dark h3, .section--plum h2, .section--plum h3 { color: #fff; }
.section--dark .lede, .section--plum .lede { color: var(--on-dark-muted); }
.section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split--wide-text { grid-template-columns: 5fr 7fr; }
@media (max-width: 860px) { .split, .split--wide-text { grid-template-columns: 1fr; } }

/* ---------- Home hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(ellipse at 75% 40%, #2c1844 0%, #000 70%);
  color: #fff;
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; align-items: end; gap: 2rem; min-height: min(86vh, 760px); }
.hero__text { padding: clamp(3rem, 8vw, 6rem) 0; align-self: center; position: relative; z-index: 2; }
.hero h1 { color: #fff; font-size: clamp(3rem, 8vw, 6.25rem); line-height: .98; text-transform: uppercase; letter-spacing: .01em; margin-bottom: 1.5rem; }
.hero h1 em { font-style: italic; text-transform: none; color: #ff6b74; font-weight: 400; display: block; font-size: .5em; letter-spacing: 0; margin-top: .4rem; }
.hero__roles { list-style: none; padding: 0; margin: 0 0 1.5rem; display: flex; flex-wrap: wrap; gap: .4rem .9rem; font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--on-dark-muted); }
.hero__roles li + li::before { content: "•"; color: var(--red); margin-right: .9rem; }
.hero__lede { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: #ddd2e6; max-width: 34em; }
.hero__img { align-self: end; position: relative; }
.hero__img img { width: 100%; max-width: 560px; margin-left: auto; mask-image: linear-gradient(to bottom, #000 80%, transparent 100%); -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent 100%); }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; min-height: 0; gap: 0; }
  .hero__text { padding: 3rem 0 1rem; text-align: center; }
  .hero__roles { justify-content: center; }
  .hero__lede { margin-inline: auto; }
  .hero .btn-row { justify-content: center; }
  .hero__img img { max-width: 380px; margin-inline: auto; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; color: #fff;
  background: var(--ink);
  padding: clamp(4rem, 10vw, 7rem) 0 clamp(3rem, 7vw, 5rem);
  overflow: hidden;
}
.page-hero::before { content: ""; position: absolute; inset: 0; background: var(--hero-img) center/cover no-repeat; opacity: .32; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23,18,31,.35) 0%, rgba(23,18,31,.92) 100%); }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; text-transform: uppercase; letter-spacing: .02em; }
.page-hero p { color: #ddd2e6; max-width: 40em; font-size: clamp(1.05rem, 1.5vw, 1.25rem); }
.page-hero .eyebrow { color: #ff7d85; }

/* ---------- Book feature ---------- */
.book-feature { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.book-feature__cover img { width: min(100%, 420px); margin-inline: auto; filter: drop-shadow(0 30px 40px rgba(23,18,31,.35)); transform: rotate(-3deg); }
.book-feature h2 em { font-style: italic; color: var(--plum-2); }
.price-card { display: flex; flex-wrap: wrap; gap: 1rem 2rem; padding: 1.25rem 1.5rem; border-left: 4px solid var(--red); background: #fff; box-shadow: var(--shadow); margin-top: 1.5rem; }
.price-card div { min-width: 120px; }
.price-card dt { font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.price-card dd { margin: 0; font-family: var(--font-display); font-size: 1.35rem; color: var(--ink); }
@media (max-width: 860px) { .book-feature { grid-template-columns: 1fr; text-align: center; } .price-card { text-align: left; } .book-feature .btn-row { justify-content: center; } }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__img { aspect-ratio: 4 / 3; overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card__img img { transform: scale(1.04); }
.card__body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card__body p { color: var(--muted); font-size: 1rem; }
.card__body .link-arrow { margin-top: auto; }
.card__meta { font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--red); margin-bottom: .5rem; }

/* Roles grid on home */
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.1); }
.role-tile { background: var(--ink); padding: 2rem 1.75rem; text-decoration: none; color: var(--on-dark); transition: background .25s; display: block; }
.role-tile:hover { background: var(--plum); color: #fff; }
.role-tile__num { font-family: var(--font-display); font-size: 2.4rem; color: var(--red); line-height: 1; display: block; margin-bottom: 1rem; }
.role-tile h3 { color: #fff; font-size: 1.3rem; margin-bottom: .4rem; }
.role-tile p { color: var(--on-dark-muted); font-size: .95rem; margin: 0; }
@media (max-width: 860px) { .roles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .roles { grid-template-columns: 1fr; } }

/* Institutions list */
.institutions { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.5rem; list-style: none; padding: 0; margin: 0; }
.institutions li { padding: 1.5rem; border-top: 3px solid var(--plum-2); background: #fff; }
.institutions h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.institutions p { margin: 0; color: var(--muted); font-size: .97rem; }

/* ---------- About: roles ---------- */
.role { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding: clamp(3rem, 7vw, 5rem) 0; border-top: 1px solid var(--line); }
.role:first-child { border-top: 0; padding-top: 0; }
.role:nth-child(even) .role__media { order: 2; }
.role__num { font-family: var(--font-display); font-size: 1rem; font-weight: 600; color: var(--red); letter-spacing: .12em; display: block; margin-bottom: .6rem; }
.role h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.role ul { margin: 0 0 1em; }
.role li { margin-bottom: .4em; }
.role__media { display: grid; gap: .75rem; grid-template-columns: 1fr 1fr; }
.role__media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.role__media--single { grid-template-columns: 1fr; }
.role__media--three { grid-template-columns: repeat(3, 1fr); align-items: start; }
.role__media--three img { height: auto; }
.role__media .tall { grid-row: span 2; }
@media (max-width: 860px) {
  .role { grid-template-columns: 1fr; }
  .role:nth-child(even) .role__media { order: 0; }
}

/* Lists */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem 2rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.checklist li { position: relative; padding-left: 1.8rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .55em; width: .8rem; height: .8rem; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(211,42,53,.15); }
.section--dark .checklist li, .section--plum .checklist li { color: var(--on-dark); }

.pullquote { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.35; font-style: italic; color: #fff; margin: 0; }
.pullquote cite { display: block; margin-top: 1.25rem; font: 600 .78rem/1 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: #ff7d85; font-style: normal; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: .75rem; }
.gallery figure { margin: 0; overflow: hidden; border-radius: var(--radius); position: relative; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery .tall { grid-row: span 2; }
.gallery .wide { grid-column: span 2; }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.5rem .9rem .7rem; font-size: .82rem; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.7)); }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; } }
@media (max-width: 480px) { .gallery { grid-auto-rows: 150px; gap: .5rem; } }

/* ---------- Program pages ---------- */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 2rem 0; }
.facts div { background: #fff; padding: 1.25rem 1.4rem; }
.facts dt { font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: .3rem; }
.facts dd { margin: 0; font-family: var(--font-display); font-size: 1.3rem; color: var(--ink); line-height: 1.3; }
.themes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.theme { background: #fff; padding: 1.75rem; border-radius: var(--radius); border: 1px solid var(--line); }
.theme h3 { font-size: 1.2rem; }
.theme ul { margin: 0; padding-left: 1.1em; color: var(--muted); font-size: .98rem; }
.theme li { margin-bottom: .35em; }
.theme__num { display: inline-grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--plum); color: #fff; font-weight: 600; font-size: .9rem; margin-bottom: 1rem; }
.sticky-media { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.sticky-media img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* Testimonials (per-program) */
.testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 380px)); justify-content: center; align-items: start; gap: 1.5rem; }
.testimonial { margin: 0; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); padding: 2rem; border-radius: var(--radius); }
.testimonial blockquote { margin: 0 0 1.25rem; font-family: var(--font-display); font-size: 1.15rem; line-height: 1.5; color: #fff; }
.testimonial { display: flex; flex-direction: column; }
.testimonial blockquote { flex: 1; }
.testimonial figcaption { font-size: .85rem; color: var(--on-dark-muted); }
.testimonial figcaption strong { display: block; color: #fff; letter-spacing: .06em; }
.testimonial figcaption span { display: block; }
.testimonial__by { display: flex; align-items: center; gap: .9rem; }
.testimonial__avatar { flex: none; width: 52px; height: 52px; border-radius: 50%; overflow: hidden; border: 2px solid rgba(255,255,255,.3); }
.testimonial__avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonial--shot { padding: 1.25rem; gap: 1rem; }
.testimonial__shot { display: block; border-radius: var(--radius); overflow: hidden; background: #fff; }
.testimonial__shot img { width: 100%; max-height: 520px; object-fit: contain; object-position: top; }
.stars { font-size: 1.15rem; letter-spacing: .12em; color: rgba(255,255,255,.25); margin-bottom: 1rem; line-height: 1; }
.stars .on { color: #ffc94d; }
.review-link { display: inline-block; margin-top: .35rem; color: #ff9aa1; font-weight: 600; font-size: .8rem; letter-spacing: .04em; }
.review-link:hover { color: #fff; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--red); color: #fff; padding: clamp(3rem, 7vw, 5rem) 0; }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.cta-band h2 { color: #fff; margin: 0; font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
.cta-band p { margin: .5rem 0 0; color: #ffe1e3; }
.cta-band .btn { background: #fff; color: var(--red); border-color: #fff; }
.cta-band .btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 0 0 2rem; }
.contact-list li { padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.contact-list span { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.contact-list a { font-family: var(--font-display); font-size: 1.25rem; color: var(--ink); text-decoration: none; word-break: break-word; }
.contact-list a:hover { color: var(--red); }
.form { background: #fff; padding: clamp(1.5rem, 4vw, 2.75rem); border-radius: var(--radius); box-shadow: var(--shadow); border-top: 4px solid var(--red); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .4rem; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  padding: .85rem 1rem; border: 1px solid #cfc6d8; border-radius: var(--radius); background: var(--paper);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--plum-2); box-shadow: 0 0 0 3px rgba(90,45,134,.18); }
.form-note { font-size: .88rem; color: var(--muted); margin: 1rem 0 0; }
.form-status { margin: 0 0 1.5rem; padding: 1rem 1.2rem; border-radius: var(--radius); font-size: .97rem; border-left: 4px solid; }
.form-status ul { margin: .4rem 0 0; padding-left: 1.2em; }
.form-status--ok { background: #eef7ee; color: #1f4d25; border-color: #2f8a3a; }
.form-status--error { background: #fdeeee; color: #7a1d23; border-color: var(--red); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Social ---------- */
.social { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; margin: 0; }
.social a {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid currentColor; color: inherit; text-decoration: none; transition: background .2s, color .2s, border-color .2s;
}
.social a:hover { background: var(--red); border-color: var(--red); color: #fff; }
.social svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- Footer ---------- */
.site-footer { background: #0f0b15; color: var(--on-dark-muted); padding: 4.5rem 0 2rem; font-size: .97rem; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: #ff8b92; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.footer-grid h4 { color: #fff; font-family: var(--font-body); font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 1.2rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .55rem; }
.footer-brand { font-family: var(--font-display); color: #fff; font-size: 1.5rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .8rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 3.5rem; padding-top: 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .85rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.rounded { border-radius: var(--radius); }
.shadow { box-shadow: var(--shadow); }
.prose h2 { margin-top: 2.5rem; }
.prose h3 { margin-top: 2rem; }

/* Reveal on scroll (progressive enhancement) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .01ms !important; }
}

/* Admin preview of a hidden program */
.preview-bar { background: #fff4d6; color: #5c4400; text-align: center; padding: .7rem 1rem; font-size: .92rem; border-bottom: 1px solid #f0d58a; }
.preview-bar a { color: #5c4400; font-weight: 600; }

/* ---------- Events & media ---------- */
.card--link { position: relative; }
.card--link h3 a { color: inherit; text-decoration: none; }
.card--link h3 a::after { content: ""; position: absolute; inset: 0; }   /* whole card is clickable */
.card--link h3 a:focus-visible { outline: none; }
.card--link:focus-within { outline: 3px solid var(--red); outline-offset: 3px; }
.media-intro { max-width: 720px; margin: 0 auto 2.5rem; }
.filter-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-bottom: 2.5rem; }
.filter-chips a { padding: .5rem 1.1rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); font-size: .9rem; font-weight: 500; background: #fff; }
.filter-chips a:hover { border-color: var(--red); color: var(--red); }
.filter-chips a[aria-current="page"] { background: var(--red); border-color: var(--red); color: #fff; }
.media-post__back { margin-bottom: 1.5rem; font-size: .92rem; }
.media-post__back a { color: var(--muted); text-decoration: none; }
.media-post__back a:hover { color: var(--red); }
.media-post .btn-row { margin-top: 2rem; }
.video-embed { position: relative; aspect-ratio: 16 / 9; margin-top: 2rem; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: var(--shadow); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.section--tight { padding-top: 0; }
