/* =========================================================
   Winners Chapel Tacoma — Design System
   Brand: Black / White / Red (Winners Chapel International)
   Editorial, reverent, typographically led.
   ========================================================= */

:root {
  /* Brand palette */
  --ink:        #111214;   /* near-black */
  --ink-soft:   #2a2d33;   /* softened body ink */
  --paper:      #ffffff;   /* pure white */
  --paper-2:    #f7f6f4;   /* soft paper */
  --paper-3:    #efedea;   /* warm light grey */
  --red:        #c8102e;   /* Winners red */
  --red-deep:   #9c0c23;   /* pressed / hover */
  --line:       rgba(17,18,20,0.12);
  --line-strong:rgba(17,18,20,0.22);
  --muted:      #5c6068;

  /* Typography */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Rhythm */
  --wrap: 1200px;
  --wrap-narrow: 820px;
  --gutter: clamp(20px, 5vw, 64px);
  --section-y: clamp(64px, 9vw, 140px);

  --radius: 2px;
  --shadow: 0 24px 60px -30px rgba(17,18,20,0.45);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink-soft);
  background: var(--paper);
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); color: var(--ink); font-weight: 500; line-height: 1.05; }
p { margin: 0 0 1.2em; }
ul { margin: 0; padding: 0; }

/* ---------- Type scale ---------- */
.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 6rem);
  letter-spacing: -0.02em;
  line-height: 0.98;
}
.h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); letter-spacing: -0.015em; }
.h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.65; color: var(--ink-soft); }

/* Eyebrow / section marker — replaces generic icons */
.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--red);
  display: inline-block;
}

.index-num {
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--red);
  letter-spacing: 0.05em;
}

/* ---------- Layout ---------- */
.wrap { width: min(100% - (var(--gutter) * 2), var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - (var(--gutter) * 2), var(--wrap-narrow)); margin-inline: auto; }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(48px, 6vw, 90px); }
.bg-ink { background: var(--ink); color: #d9dbe0; }
.bg-ink h1, .bg-ink h2, .bg-ink h3, .bg-ink h4 { color: #fff; }
.bg-paper2 { background: var(--paper-2); }
.bg-paper3 { background: var(--paper-3); }

.grid { display: grid; gap: clamp(24px, 4vw, 56px); }
@media (min-width: 860px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-2-wide { grid-template-columns: 1.1fr 0.9fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .align-center { align-items: center; }
  .align-start { align-items: start; }
  /* Short intro column that stays pinned near the top beside a tall column,
     so it never floats in empty space in an unbalanced row. */
  .col-sticky { position: sticky; top: 110px; align-self: start; }
}

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--red);
  --fg: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 1.05em 1.8em;
  border: 1px solid var(--bg);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn:hover { background: var(--red-deep); border-color: var(--red-deep); transform: translateY(-1px); }
.btn--ghost {
  --bg: transparent; --fg: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover { --bg: var(--ink); --fg: #fff; border-color: var(--ink); }
.btn--light {
  --bg: transparent; --fg: #fff;
  border-color: rgba(255,255,255,0.4);
}
.btn--light:hover { --bg: #fff; --fg: var(--ink); border-color: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2rem; }

.textlink {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--sans); font-weight: 600; font-size: 0.85rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink);
  border-bottom: 2px solid var(--red); padding-bottom: 3px;
  transition: color .2s ease, gap .2s ease;
}
.textlink:hover { color: var(--red); gap: 0.85em; }

/* =========================================================
   Header / Nav
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,0.9);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding-block: 16px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand__mark {
  width: 42px; height: 42px; flex: none;
  background: var(--ink); color: #fff;
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 1.3rem; font-weight: 600;
  border-radius: var(--radius);
  position: relative;
}
.brand__mark::after {
  content: ""; position: absolute; inset: 0;
  border: 2px solid var(--red); border-radius: var(--radius);
  transform: translate(4px, 4px); z-index: -1;
}
.brand__logo { width: 48px; height: 48px; object-fit: contain; flex: none; display: block; }
.brand__name { font-family: var(--serif); font-size: 1.15rem; color: var(--ink); line-height: 1.05; }
.brand__sub { display:block; font-family: var(--sans); font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 30px; }
/* The WordPress menu renders as a <ul>; make it a horizontal, bullet-free row. */
.nav ul,
.nav .nav-menu,
.nav #primary-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav li { margin: 0; padding: 0; }
.nav li::marker { content: ""; }
.nav a {
  font-family: var(--sans); font-size: 0.92rem; font-weight: 500;
  color: var(--ink); position: relative; padding: 4px 0; display: inline-block;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--red); transition: width .25s ease;
}
.nav a:hover::after, .nav .current-menu-item > a::after { width: 100%; }

/* Compact solid CTA that fits neatly in the header row. */
.nav .nav-cta,
a.nav-cta {
  margin-left: 6px;
  padding: 12px 22px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  white-space: nowrap;
  color: #fff;
}
.nav .nav-cta,
.nav .nav-cta:hover,
a.nav-cta,
a.nav-cta:hover { color: #fff; }
.nav-cta::after { display: none; } /* no underline animation on the button */

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 26px; height: 2px; background: var(--ink); position: relative; transition: .25s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -8px; } .nav-toggle span::after { top: 8px; }

@media (max-width: 940px) {
  /* On mobile, drop the header's backdrop-filter: a filtered ancestor
     becomes the containing block for the fixed nav panel and prevents its
     background from painting, making the menu look transparent. */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #ffffff; }
  .nav-toggle { display: block; position: relative; z-index: 82; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(84vw, 360px);
    /* Solid, fully opaque panel. Explicit hex (not a CSS var or rgba) so it
       always paints, even though the sticky header uses a backdrop-filter. */
    background-color: #ffffff;
    background-image: none;
    flex-direction: column; align-items: flex-start;
    padding: 100px 32px 40px; gap: 22px; transform: translateX(100%);
    transition: transform .3s ease; box-shadow: -20px 0 60px -20px rgba(17,18,20,0.5);
    z-index: 80;
    height: 100vh; height: 100dvh; overflow-y: auto;
  }
  .nav ul,
  .nav .nav-menu,
  .nav #primary-menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    width: 100%;
  }
  body.nav-open .nav { transform: translateX(0); }
  body.nav-open { overflow: hidden; }
  .nav a { font-size: 1.15rem; }
}

/* =========================================================
   Hero
   ========================================================= */
.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.42; }
.hero__media::after {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background:
    linear-gradient(180deg, rgba(17,18,20,0.55) 0%, rgba(17,18,20,0.35) 40%, rgba(17,18,20,0.88) 100%),
    linear-gradient(90deg, rgba(17,18,20,0.55) 0%, rgba(17,18,20,0.15) 55%, rgba(17,18,20,0) 100%);
}

/* Hero slideshow: 3 slides crossfade with a slow, continuous Ken Burns zoom.
   The zoom duration matches the slide interval so the motion completes exactly
   as the crossfade happens — no mid-animation reset or "jump". */
.hero__slideshow { overflow: hidden; }
.hero__slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 2s ease-in-out;
  will-change: opacity, transform;
}
.hero__slide.is-active {
  opacity: 0.5;
  /* Zoom runs for the full time the slide is on screen (7s) and holds. */
  animation: hero-kenburns 7s linear forwards;
}
@keyframes hero-kenburns {
  from { transform: scale(1.06); }
  to   { transform: scale(1.14); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__slide { transition: opacity .5s ease; }
  .hero__slide.is-active { animation: none; transform: scale(1.06); }
}
.hero__inner { position: relative; z-index: 3; padding-block: clamp(90px, 16vw, 190px); }
.hero .eyebrow { color: #fff; }
.hero .eyebrow::before { background: var(--red); }
.hero__title { color: #fff; margin: 22px 0 0; max-width: 16ch; }
.hero__title em { font-style: italic; color: #fff; }
.hero__lead { max-width: 52ch; color: rgba(255,255,255,0.86); margin-top: 26px; font-size: clamp(1.05rem,1.6vw,1.28rem); }

/* Service ribbon under hero */
.ribbon { border-top: 1px solid rgba(255,255,255,0.16); margin-top: clamp(40px,6vw,70px); }
.ribbon__grid { display: grid; gap: 0; }
@media (min-width: 760px) { .ribbon__grid { grid-template-columns: repeat(3, 1fr); } }
.ribbon__item { padding: 26px 0; border-bottom: 1px solid rgba(255,255,255,0.12); }
@media (min-width: 760px) {
  .ribbon__item { padding: 30px 34px; border-bottom: 0; border-left: 1px solid rgba(255,255,255,0.14); }
  .ribbon__item:first-child { padding-left: 0; border-left: 0; }
}
.ribbon__k { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--red); font-weight: 600; }
.ribbon__v { font-family: var(--serif); font-size: 1.4rem; color: #fff; margin-top: 6px; }
.ribbon__link { color: #fff; border-bottom: 1px solid rgba(255,255,255,0.35); transition: border-color .2s ease, color .2s ease; }
.ribbon__link:hover { color: #fff; border-bottom-color: var(--red); }

/* =========================================================
   Marquee (scrolling words — brand rhythm, no icons)
   Two identical groups sit side by side; the track scrolls exactly one
   group width (-50%) and loops seamlessly.
   ========================================================= */
.marquee { background: var(--red); color: #fff; overflow: hidden; padding: 18px 0; }
.marquee__track {
  display: flex;
  width: max-content;
  white-space: nowrap;
  animation: marquee-slide 55s linear infinite;
}
.marquee__group {
  display: flex;
  align-items: center;
  flex: none;
}
.marquee__group span {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-style: italic;
  display: inline-flex;
  align-items: center;
}
/* Logo separator after every word (white silhouette of the church logo). */
.marquee__group span::after {
  content: "";
  display: inline-block;
  width: 22px;
  height: 22px;
  margin: 0 30px;
  background-image: url(../images/logo-white.png);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.9;
  transform: translateY(-1px);
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee-slide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =========================================================
   Generic section header
   ========================================================= */
.section-head { max-width: 60ch; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head .h2 { margin-top: 16px; }
.section-head p { margin-top: 18px; color: var(--muted); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

/* =========================================================
   Welcome (editorial split)
   ========================================================= */
.welcome__img { position: relative; }
.welcome__img img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius); }
.welcome__img::before {
  content: ""; position: absolute; left: -18px; top: -18px; width: 120px; height: 120px;
  border: 2px solid var(--red); border-radius: var(--radius); z-index: 0;
}
.welcome__badge {
  position: absolute; right: -14px; bottom: -14px; background: var(--ink); color: #fff;
  padding: 18px 22px; border-radius: var(--radius); max-width: 220px;
}
.welcome__badge b { font-family: var(--serif); display: block; font-size: 1.6rem; }
.welcome__badge span { font-size: 0.8rem; color: rgba(255,255,255,0.75); letter-spacing: 0.04em; }

/* =========================================================
   Cards (ministries / services) — numbered editorial, not icon grid
   ========================================================= */
.cards { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 780px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } .cards--2 { grid-template-columns: 1fr 1fr; } }
.card {
  background: var(--paper); padding: clamp(28px, 3.4vw, 44px);
  display: flex; flex-direction: column; gap: 14px; transition: background .25s ease;
}
.card:hover { background: var(--paper-2); }
.card__num { font-family: var(--serif); font-size: 1rem; color: var(--red); }
.card__title { font-family: var(--serif); font-size: 1.45rem; color: var(--ink); }
.card__body { color: var(--muted); font-size: 1rem; margin: 0; }
.card .textlink { margin-top: auto; align-self: flex-start; }

/* Photo card variant */
.pcard { background: var(--paper); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.pcard__img { aspect-ratio: 3/2; object-fit: cover; width: 100%; }
.pcard__body { padding: 26px clamp(22px,2.6vw,32px) 30px; }
.pcard__body h3 { font-size: 1.35rem; margin-bottom: 10px; }
.pcard__body p { color: var(--muted); font-size: 0.98rem; }

/* Ministry grid — even, responsive cards with a labelled image + clear title. */
.ministry-grid {
  display: grid;
  gap: clamp(20px, 2.4vw, 30px);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .ministry-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .ministry-grid { grid-template-columns: repeat(3, 1fr); } }

.mcard {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.mcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.mcard__media { position: relative; overflow: hidden; }
.mcard__img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .5s ease; }
.mcard:hover .mcard__img { transform: scale(1.05); }
.mcard__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(17,18,20,0) 45%, rgba(17,18,20,0.35) 100%);
}
.mcard__label {
  position: absolute; left: 16px; top: 16px; z-index: 2;
  background: var(--red); color: #fff;
  font-family: var(--sans); font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 7px 12px; border-radius: var(--radius);
}
.mcard__body { padding: 24px clamp(22px,2.4vw,28px) 30px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.mcard__title { font-family: var(--serif); font-size: 1.5rem; color: var(--ink); line-height: 1.1; }
.mcard__body p { color: var(--muted); font-size: 0.98rem; margin: 0; }

/* =========================================================
   Service list (times)
   ========================================================= */
.services-list { border-top: 1px solid var(--line); }
.service-row {
  display: grid; gap: 6px 40px; padding: 22px 0; border-bottom: 1px solid var(--line);
  align-items: baseline;
}
@media (min-width: 760px) { .service-row { grid-template-columns: 0.6fr 1.4fr 1fr; } }
.service-row__day { font-family: var(--serif); font-size: 1.5rem; color: var(--ink); }
.service-row__name { color: var(--ink-soft); }
.service-row__name b { color: var(--ink); }
.service-row__wsf { color: inherit; border-bottom: 1px solid var(--red); transition: color .2s ease; }
.service-row__wsf:hover { color: var(--red); }
.service-row__time { font-weight: 600; color: var(--red); letter-spacing: 0.02em; }

/* =========================================================
   Pillars (12 pillars) — numbered list, restrained
   ========================================================= */
.pillars { display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
@media (min-width: 700px) { .pillars { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar { background: var(--paper); padding: 26px clamp(20px,2.4vw,30px); display: flex; gap: 16px; align-items: baseline; }
.pillar__n { font-family: var(--serif); font-size: 1.15rem; color: var(--red); min-width: 1.6em; }
.pillar__t { color: var(--ink); font-weight: 500; }

/* =========================================================
   Verse / scripture band
   ========================================================= */
.verse { text-align: center; }
.verse blockquote {
  margin: 0 auto; max-width: 22ch;
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.9rem, 4.4vw, 3.2rem); line-height: 1.15; color: #fff;
}
.verse cite { display: block; margin-top: 28px; font-style: normal; font-family: var(--sans);
  font-size: 0.85rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--red); }

/* =========================================================
   Split CTA (plan your visit / giving)
   ========================================================= */
.splitcta { display: grid; }
@media (min-width: 900px) { .splitcta { grid-template-columns: 1fr 1fr; } }
.splitcta__media { min-height: 360px; position: relative; background: var(--ink); }
.splitcta__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.splitcta__body { padding: clamp(40px,6vw,90px) var(--gutter); }

/* =========================================================
   Page hero (interior pages)
   ========================================================= */
.pagehero { background: var(--ink); color: #fff; padding-block: clamp(80px,12vw,150px); position: relative; overflow: hidden; }
.pagehero::before {
  content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px;
  border: 2px solid rgba(200,16,46,0.5); border-radius: var(--radius); transform: rotate(12deg);
  z-index: 2;
}
.pagehero .wrap { position: relative; z-index: 3; }
.pagehero .eyebrow { color: #fff; }
.pagehero__title { color: #fff; margin-top: 18px; }
.pagehero__lead { color: rgba(255,255,255,0.82); max-width: 56ch; margin-top: 20px; }

/* Interior hero with a background photo + dark overlay for legible text. */
.pagehero--photo .pagehero__bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  transform: scale(1.05);
  animation: pagehero-drift 14s ease-out forwards;
}
.pagehero--photo::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(17,18,20,0.55) 0%, rgba(17,18,20,0.5) 45%, rgba(17,18,20,0.82) 100%),
    linear-gradient(90deg, rgba(17,18,20,0.7) 0%, rgba(17,18,20,0.2) 60%, rgba(17,18,20,0.05) 100%);
}
@keyframes pagehero-drift {
  from { transform: scale(1.1); }
  to   { transform: scale(1.0); }
}
@media (prefers-reduced-motion: reduce) {
  .pagehero--photo .pagehero__bg { animation: none; transform: none; }
}
.breadcrumb { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.6); }
.breadcrumb a:hover { color: #fff; }

/* Prose blocks for interior content */
.prose { max-width: 68ch; }
.prose p { font-size: 1.12rem; color: var(--ink-soft); }
.prose h2 { font-size: clamp(1.6rem,3vw,2.3rem); margin: 1.6em 0 0.5em; }
.prose h3 { font-size: 1.3rem; margin: 1.4em 0 0.4em; }

/* =========================================================
   Contact
   ========================================================= */
.info-list { list-style: none; }
.info-list li { padding: 22px 0; border-bottom: 1px solid var(--line); }
.info-list .k { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--red); font-weight: 600; }
.info-list .v { font-family: var(--serif); font-size: 1.3rem; color: var(--ink); margin-top: 6px; }
.info-list .v a:hover { color: var(--red); }

.form-field { margin-bottom: 20px; }
.form-field label { display: block; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.form-field input, .form-field textarea {
  width: 100%; padding: 14px 16px; border: 1px solid var(--line-strong); background: var(--paper);
  font-family: var(--sans); font-size: 1rem; border-radius: var(--radius); color: var(--ink);
}
.form-field input:focus, .form-field textarea:focus { outline: 2px solid var(--red); border-color: var(--red); }
.map-embed { width: 100%; aspect-ratio: 16/10; border: 0; border-radius: var(--radius); filter: grayscale(1) contrast(1.05); }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--ink); color: #b9bcc4; padding-top: clamp(48px,5vw,68px); font-size: 0.9rem; line-height: 1.55; }
.footer-grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 600px)  { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1.3fr 1.3fr; gap: clamp(28px, 3.5vw, 48px); } }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; display: grid; gap: 10px; font-size: 0.9rem; }
.footer-links b { color: #e7e9ee; font-weight: 600; font-size: 0.9rem; }
.footer-brand .brand__name { color: #fff; font-family: var(--serif); font-size: 1.15rem; }
.footer-brand p { max-width: 34ch; margin-top: 12px; color: #9497a0; font-size: 0.9rem; }
.footer-socials { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.footer-bottom { margin-top: clamp(32px,4vw,48px); border-top: 1px solid rgba(255,255,255,0.12); padding: 20px 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.8rem; color: #8a8d96; }
.footer-social { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; }
.footer-social svg { flex: none; width: 16px; height: 16px; transition: color .2s ease; }
.footer-social:hover { color: #fff; }
.footer-credit { color: #70737b; font-size: 0.76rem; }

/* =========================================================
   WSF Centres finder + list
   ========================================================= */
.wsf-finder { display: grid; gap: clamp(24px, 4vw, 48px); align-items: center; }
@media (min-width: 880px) { .wsf-finder { grid-template-columns: 1fr 1fr; } }
.wsf-finder__form { display: grid; gap: 14px; }
.wsf-finder__inputwrap { position: relative; }
.wsf-finder__form input[type="text"] {
  width: 100%; padding: 16px 18px; border: 1px solid var(--line-strong);
  background: var(--paper); font-family: var(--sans); font-size: 1rem;
  border-radius: var(--radius); color: var(--ink);
}
.wsf-finder__form input[type="text"]:focus { outline: 2px solid var(--red); border-color: var(--red); }
.wsf-finder__btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* Status message with contextual colors */
.wsf-finder__status { margin: 4px 0 0; min-height: 1.4em; font-size: 0.92rem; font-weight: 500; color: var(--muted); }
.wsf-finder__status.is-ok { color: #1a7a4a; }
.wsf-finder__status.is-warn { color: var(--red); }
.wsf-finder__status.is-loading { color: var(--muted); }
.wsf-finder__status.is-loading::after { content: "…"; }

/* Address autocomplete dropdown */
.wsf-suggest {
  list-style: none; margin: 6px 0 0; padding: 6px;
  position: absolute; left: 0; right: 0; top: 100%; z-index: 30;
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--radius);
  box-shadow: var(--shadow); max-height: 320px; overflow-y: auto;
}
.wsf-suggest[hidden] { display: none; }
.wsf-suggest__item {
  padding: 11px 14px; font-size: 0.92rem; color: var(--ink-soft);
  cursor: pointer; border-radius: var(--radius); line-height: 1.4;
}
.wsf-suggest__item:hover, .wsf-suggest__item.is-active { background: var(--paper-3); color: var(--ink); }

.wsf-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 640px)  { .wsf-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .wsf-list { grid-template-columns: repeat(2, 1fr); } }

.wsf-card {
  background: var(--paper); padding: clamp(24px, 2.8vw, 36px);
  display: flex; flex-direction: column; gap: 10px;
  transition: background .25s ease, box-shadow .25s ease;
  position: relative;
}
.wsf-card:hover { background: var(--paper-2); }
.wsf-card[hidden] { display: none; }
.wsf-card__head { display: flex; align-items: center; justify-content: space-between; }
.wsf-card__index { font-family: var(--serif); font-size: 1rem; color: var(--red); }
.wsf-card__dist { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.wsf-card__name { font-family: var(--serif); font-size: 1.5rem; color: var(--ink); line-height: 1.1; }
.wsf-card__addr { color: var(--ink-soft); margin: 0; font-size: 1rem; }
.wsf-card__note { color: var(--muted); margin: 0; font-size: 0.92rem; }
.wsf-card__link { margin-top: 8px; align-self: flex-start; }

/* Highlight the nearest match */
.wsf-card.is-nearest { background: var(--ink); }
.wsf-card.is-nearest .wsf-card__name,
.wsf-card.is-nearest .wsf-card__addr { color: #fff; }
.wsf-card.is-nearest .wsf-card__note { color: rgba(255,255,255,0.75); }
.wsf-card.is-nearest .wsf-card__index,
.wsf-card.is-nearest .wsf-card__dist { color: var(--red); }
.wsf-card.is-nearest::before {
  content: "Nearest to you"; position: absolute; top: 0; right: 0;
  background: var(--red); color: #fff; font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; padding: 6px 12px;
}
.wsf-card.is-nearest .textlink { color: #fff; }
.wsf-card.is-nearest .textlink:hover { color: var(--red); }

.wsf-empty { margin-top: 20px; color: var(--muted); }
.footer-credit a { color: #8a8d96; border-bottom: 1px solid transparent; transition: color .2s ease, border-color .2s ease; }
.footer-credit a:hover { color: #fff; border-bottom-color: rgba(255,255,255,0.4); }

/* =========================================================
   Utilities & reveal animation
   ========================================================= */
.mt-0 { margin-top: 0; }
/* Reveal is a progressive enhancement: hidden state applies only when JS marks
   the document ready, so content is always visible if JS is unavailable. */
.js-reveal .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js-reveal .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee__track { animation: none; }
  html { scroll-behavior: auto; }
}

/* Placeholder image styling (until real photos arrive) */
.ph {
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.03) 0 12px, transparent 12px 24px),
    linear-gradient(135deg, #1a1c20, #26292f);
  color: rgba(255,255,255,0.5);
  display: grid; place-items: center; text-align: center;
  font-family: var(--sans); font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase;
  border-radius: var(--radius);
}
/* When a placeholder fills an absolutely-positioned media box (hero, split CTA) */
.hero__media .ph,
.splitcta__media .ph {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  aspect-ratio: auto !important;
  border-radius: 0;
}
.ph--light {
  background:
    repeating-linear-gradient(45deg, rgba(17,18,20,0.03) 0 12px, transparent 12px 24px),
    linear-gradient(135deg, #ecebe8, #dedcd7);
  color: rgba(17,18,20,0.4);
}
