/* ==========================================================================
   Christ Restoration Ministries International — Design System
   PRD §59-68  |  Powerful · Minimal · Welcoming · Energetic
   Colour hierarchy: Deep Blue (primary) → Gold (accent) → Purple (secondary)
                     Warm White (canvas) → Orange/Red (rare highlight)
   NOTE: HEX values below are derived from the supplied logo variants and are
   PROVISIONAL (PRD §61). Re-sample from the production-quality logo before
   launch and update only this block.
   ========================================================================== */

:root {
  /* --- Brand ------------------------------------------------------------ */
  --blue-900: #061834;
  --blue-800: #0a2450;
  --blue-700: #0b2a5b;   /* primary institutional */
  --blue-600: #143a76;
  --blue-500: #1e4e96;
  --blue-100: #dde6f4;
  --blue-050: #eef3fa;

  --gold-700: #9a7a15;
  --gold-600: #b8901c;
  --gold-500: #c9a227;   /* primary accent */
  --gold-400: #e3b23c;
  --gold-100: #f7ecc9;

  --purple-700: #4a2170;
  --purple-600: #5b2a86;  /* secondary */
  --purple-100: #ece2f6;

  --flame-600: #c74a1d;
  --flame-500: #e05a2b;   /* rare energetic highlight */

  /* --- Neutrals --------------------------------------------------------- */
  --white: #ffffff;
  --canvas: #fbf9f5;      /* warm white — main canvas */
  --canvas-alt: #f4f1ea;
  --ink-900: #14181f;
  --ink-700: #333b47;
  --ink-600: #4b5563;
  --ink-500: #66707e;
  --line: #e4e0d7;
  --line-strong: #cfc9bb;

  /* --- Semantic --------------------------------------------------------- */
  --ok-600: #1c7a4f;
  --ok-050: #e7f5ee;
  --warn-600: #a9631a;
  --warn-050: #fdf1e0;
  --err-600: #b3261e;
  --err-050: #fdecea;

  /* --- Typography (§64) -------------------------------------------------- */
  --font-display: "Sora", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
                  Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  --font-read: Georgia, "Iowan Old Style", "Times New Roman", serif;

  /* Fluid type scale — mobile-first (§67) */
  --t-xs: 0.78rem;
  --t-sm: 0.875rem;
  --t-base: 1rem;
  --t-md: clamp(1.05rem, 0.98rem + 0.35vw, 1.2rem);
  --t-lg: clamp(1.25rem, 1.1rem + 0.7vw, 1.55rem);
  --t-xl: clamp(1.5rem, 1.25rem + 1.2vw, 2.1rem);
  --t-2xl: clamp(1.9rem, 1.5rem + 2vw, 2.9rem);
  --t-3xl: clamp(2.3rem, 1.6rem + 3.2vw, 4rem);

  /* --- Space / shape ----------------------------------------------------- */
  --sp-1: 0.25rem;  --sp-2: 0.5rem;   --sp-3: 0.75rem;  --sp-4: 1rem;
  --sp-5: 1.5rem;   --sp-6: 2rem;     --sp-7: 3rem;     --sp-8: 4rem;
  --sp-9: 6rem;
  --r-sm: 6px; --r-md: 10px; --r-lg: 16px; --r-xl: 24px; --r-full: 999px;
  --shadow-1: 0 1px 2px rgba(6,24,52,.06), 0 2px 8px rgba(6,24,52,.05);
  --shadow-2: 0 4px 12px rgba(6,24,52,.08), 0 12px 32px rgba(6,24,52,.08);
  --shadow-3: 0 12px 40px rgba(6,24,52,.16);
  --wrap: 1180px;
  --wrap-narrow: 760px;
  --header-h: 68px;
}

/* ==========================================================================
   Reset / base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
}
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink-700);
  font-family: var(--font-body);
  font-size: var(--t-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--blue-800);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 var(--sp-4);
  font-weight: 700;
  text-wrap: balance;
}
h1 { font-size: var(--t-3xl); }
h2 { font-size: var(--t-2xl); }
h3 { font-size: var(--t-xl); }
h4 { font-size: var(--t-lg); }
p { margin: 0 0 var(--sp-4); }
p:last-child { margin-bottom: 0; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-600); text-underline-offset: 3px; }
a:hover { color: var(--blue-500); }
ul, ol { margin: 0 0 var(--sp-4); padding-left: 1.25rem; }
li { margin-bottom: var(--sp-2); }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--sp-6) 0; }
small { font-size: var(--t-sm); }

/* The hidden attribute must beat any display rule below (form alerts, panels) */
[hidden] { display: none !important; }

/* Inline icons: always sized, never able to blow out a layout */
.icon { width: 1.15em; height: 1.15em; flex: none; display: inline-block; vertical-align: -0.18em; }
.card__meta { align-items: center; }
.card__meta .icon { color: var(--gold-600); }

/* Accessibility (§71) */
:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}
.skip-link {
  position: absolute; left: var(--sp-4); top: -100px; z-index: 200;
  background: var(--blue-700); color: #fff; padding: var(--sp-3) var(--sp-4);
  border-radius: 0 0 var(--r-md) var(--r-md); font-weight: 600; text-decoration: none;
  transition: top .15s ease;
}
.skip-link:focus { top: 0; color: #fff; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ==========================================================================
   Layout primitives
   ========================================================================== */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--sp-5); }
.wrap-narrow { max-width: var(--wrap-narrow); }
.section { padding-block: var(--sp-7); }
@media (min-width: 768px) { .section { padding-block: var(--sp-8); } }
.section--tight { padding-block: var(--sp-6); }
.section--canvas-alt { background: var(--canvas-alt); }
.section--white { background: var(--white); }
.section--blue { background: var(--blue-800); color: #dfe7f3; }
.section--blue h2, .section--blue h3, .section--blue h4 { color: #fff; }

.grid { display: grid; gap: var(--sp-5); }
@media (min-width: 640px)  { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px)  { .grid-3 { grid-template-columns: repeat(3, 1fr); }
                             .grid-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 640px) and (max-width: 899px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
.stack > * + * { margin-top: var(--sp-4); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }

.section-head { max-width: 62ch; margin-bottom: var(--sp-6); }
.section-head p { color: var(--ink-600); font-size: var(--t-md); margin-bottom: 0; }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-700);
  margin-bottom: var(--sp-3);
}
.section--blue .eyebrow { color: var(--gold-400); }

.lede { font-size: var(--t-md); color: var(--ink-600); }
.prose { font-family: var(--font-read); font-size: var(--t-md); line-height: 1.8; color: var(--ink-700); }
.prose h2, .prose h3 { font-family: var(--font-display); margin-top: var(--sp-6); }

.scripture {
  border-left: 4px solid var(--gold-500);
  padding: var(--sp-2) 0 var(--sp-2) var(--sp-4);
  font-family: var(--font-read);
  font-style: italic;
  color: var(--ink-600);
  margin: var(--sp-5) 0;
}
.scripture cite {
  display: block; margin-top: var(--sp-2); font-style: normal; font-weight: 600;
  font-family: var(--font-display); font-size: var(--t-sm);
  letter-spacing: .04em; text-transform: uppercase; color: var(--gold-700);
}

/* ==========================================================================
   Buttons (§68 — 44px min tap targets, no hover-only actions §67)
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: 48px; padding: var(--sp-3) var(--sp-5);
  font-family: var(--font-display); font-size: var(--t-base); font-weight: 600;
  border-radius: var(--r-full); border: 2px solid transparent;
  text-decoration: none; cursor: pointer; text-align: center;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue-700); color: #fff; }
.btn-primary:hover { background: var(--blue-600); color: #fff; }
.btn-gold { background: var(--gold-500); color: var(--blue-900); }
.btn-gold:hover { background: var(--gold-400); color: var(--blue-900); }
.btn-outline { border-color: var(--blue-700); color: var(--blue-700); background: transparent; }
.btn-outline:hover { background: var(--blue-700); color: #fff; }
.btn-ghost-light { border-color: rgba(255,255,255,.55); color: #fff; background: transparent; }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-sm { min-height: 40px; padding: var(--sp-2) var(--sp-4); font-size: var(--t-sm); }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }

.link-arrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-family: var(--font-display); font-weight: 600; text-decoration: none;
  color: var(--blue-600); min-height: 44px;
}
.link-arrow::after { content: "→"; transition: transform .18s ease; }
.link-arrow:hover::after { transform: translateX(3px); }
.section--blue .link-arrow { color: var(--gold-400); }

/* ==========================================================================
   Header / navigation (§12.1)
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251,249,245,.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-4); min-height: var(--header-h);
}
.brand {
  display: inline-flex; align-items: center; gap: var(--sp-3);
  text-decoration: none; min-width: 0;
}
.brand__mark {
  width: 40px; height: 40px; flex: none;
  border-radius: 50%;              /* clips the blank corners of the seal's canvas */
  object-fit: cover;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand__name {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(0.82rem, 3.1vw, 1.05rem);
  color: var(--blue-800); letter-spacing: -0.01em;
}
.brand__tag {
  font-size: clamp(0.58rem, 2vw, 0.66rem); letter-spacing: .12em;
  text-transform: uppercase; color: var(--gold-700); font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
@media (min-width: 480px) { .brand__mark { width: 44px; height: 44px; } }
/* Very narrow phones: the emblem plus the name carries the identity on its own */
@media (max-width: 359px) { .brand__tag { display: none; } }

.nav-toggle {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  min-height: 44px; min-width: 44px; padding: var(--sp-2) var(--sp-3);
  background: transparent; border: 1px solid var(--line-strong);
  border-radius: var(--r-md); color: var(--blue-800);
  font-family: var(--font-display); font-weight: 600; font-size: var(--t-sm); cursor: pointer;
}
.nav-toggle__bars {
  display: block; width: 18px; height: 2px; flex: none;
  background: currentColor; position: relative;
}
.nav-toggle__bars::before, .nav-toggle__bars::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor;
}
.nav-toggle__bars::before { top: -6px; } .nav-toggle__bars::after { top: 6px; }

.site-nav { display: none; }
.site-nav__list { display: flex; list-style: none; margin: 0; padding: 0; gap: var(--sp-1); align-items: center; }
.site-nav__list li { margin: 0; }
.site-nav__link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--sp-3);
  font-family: var(--font-display); font-weight: 600; font-size: 0.92rem;
  color: var(--ink-700); text-decoration: none; border-radius: var(--r-md);
}
.site-nav__link:hover { color: var(--blue-700); background: var(--blue-050); }
.site-nav__link[aria-current="page"] { color: var(--blue-700); box-shadow: inset 0 -3px 0 var(--gold-500); border-radius: 0; }

@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .site-nav { display: block; }
  .site-header__inner { gap: var(--sp-5); }
}

/* Mobile drawer */
.mobile-nav {
  position: fixed; inset: 0; z-index: 150; display: none;
  background: rgba(6,24,52,.5);
}
.mobile-nav[data-open="true"] { display: block; }
.mobile-nav__panel {
  position: absolute; right: 0; top: 0; bottom: 0; width: min(340px, 88vw);
  background: var(--canvas); box-shadow: var(--shadow-3);
  padding: var(--sp-4) var(--sp-5) var(--sp-7);
  overflow-y: auto; display: flex; flex-direction: column;
}
.mobile-nav__head { display: flex; justify-content: flex-end; margin-bottom: var(--sp-4); }
.mobile-nav__close {
  min-height: 44px; min-width: 44px; border: 1px solid var(--line-strong);
  background: transparent; border-radius: var(--r-md); font-size: 1.25rem;
  color: var(--blue-800); cursor: pointer; line-height: 1;
}
.mobile-nav__list { list-style: none; margin: 0 0 var(--sp-5); padding: 0; }
.mobile-nav__list li { margin: 0; border-bottom: 1px solid var(--line); }
.mobile-nav__list a {
  display: block; padding: var(--sp-4) 0; font-family: var(--font-display);
  font-weight: 600; font-size: var(--t-md); color: var(--blue-800); text-decoration: none;
}
.mobile-nav__list a[aria-current="page"] { color: var(--gold-700); }

/* ==========================================================================
   Hero (§13)
   ========================================================================== */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 520px at 78% -10%, rgba(91,42,134,.55) 0%, transparent 62%),
    radial-gradient(900px 480px at 8% 108%, rgba(201,162,39,.28) 0%, transparent 58%),
    linear-gradient(165deg, var(--blue-800) 0%, var(--blue-900) 100%);
  color: #e7edf7;
  padding-block: var(--sp-8) var(--sp-8);
}
.hero__grid { display: grid; gap: var(--sp-6); align-items: center; }
@media (min-width: 980px) { .hero__grid { grid-template-columns: 1.15fr .85fr; gap: var(--sp-7); } }
.hero h1 { color: #fff; font-size: var(--t-3xl); margin-bottom: var(--sp-4); }
.hero h1 em { font-style: normal; color: var(--gold-400); }
.hero__lede { font-size: var(--t-md); color: #c9d5e8; max-width: 52ch; margin-bottom: var(--sp-6); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.hero__scripture {
  margin-top: var(--sp-6); padding-top: var(--sp-5); border-top: 1px solid rgba(255,255,255,.18);
  font-family: var(--font-read); font-style: italic; color: #b9c7dd; max-width: 52ch;
}
.hero__scripture cite { display: block; margin-top: var(--sp-2); font-style: normal;
  font-family: var(--font-display); font-size: var(--t-xs); letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold-400); font-weight: 700; }
.hero__emblem { display: none; }
@media (min-width: 980px) {
  .hero__emblem {
    display: block; justify-self: center; width: min(360px, 100%);
  }
  .hero__emblem img {
    width: 100%; height: auto; border-radius: 50%;
    box-shadow: 0 18px 60px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.14);
  }
}

/* Page hero for interior pages */
.page-hero {
  background: linear-gradient(160deg, var(--blue-800) 0%, var(--blue-900) 100%);
  color: #dde6f4; padding-block: var(--sp-7);
}
.page-hero h1 { color: #fff; margin-bottom: var(--sp-3); }
.page-hero p { color: #b9c7dd; font-size: var(--t-md); max-width: 62ch; margin-bottom: 0; }
.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: var(--sp-2);
  padding: 0; margin: 0 0 var(--sp-4); font-size: var(--t-sm); }
.breadcrumb li { margin: 0; color: #92a5c2; }
.breadcrumb li + li::before { content: "/"; margin-right: var(--sp-2); color: #5c718f; }
.breadcrumb a { color: #b9c7dd; text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }

/* ==========================================================================
   Cards
   ========================================================================== */
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-1);
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.card:hover { box-shadow: var(--shadow-2); border-color: var(--line-strong); }
.card__media { position: relative; aspect-ratio: 16 / 10; background: var(--blue-050); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-3); flex: 1; }
.card__title { font-family: var(--font-display); font-size: var(--t-lg); color: var(--blue-800); margin: 0; }
.card__title a { color: inherit; text-decoration: none; }
.card__title a:hover { color: var(--blue-600); }
.card__meta { font-size: var(--t-sm); color: var(--ink-500); display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); align-items: center; }
.card__meta > span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.card__text { color: var(--ink-600); margin: 0; flex: 1; }
.card__foot { margin-top: auto; padding-top: var(--sp-2); }

.tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px;
  border-radius: var(--r-full); font-size: var(--t-xs); font-weight: 700;
  font-family: var(--font-display); letter-spacing: .04em; text-transform: uppercase;
}
.tag-gold { background: var(--gold-100); color: var(--gold-700); }
.tag-blue { background: var(--blue-100); color: var(--blue-700); }
.tag-purple { background: var(--purple-100); color: var(--purple-700); }
.tag-ok { background: var(--ok-050); color: var(--ok-600); }
.tag-warn { background: var(--warn-050); color: var(--warn-600); }
.tag-err { background: var(--err-050); color: var(--err-600); }

/* Date chip on event cards */
.date-chip {
  position: absolute; left: var(--sp-3); top: var(--sp-3); z-index: 2;
  background: var(--white); border-radius: var(--r-md); box-shadow: var(--shadow-2);
  padding: 6px 10px; text-align: center; min-width: 56px; font-family: var(--font-display);
}
.date-chip__d { display: block; font-size: 1.35rem; font-weight: 700; color: var(--blue-800); line-height: 1; }
.date-chip__m { display: block; font-size: .68rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--gold-700); margin-top: 2px; }

/* Placeholder artwork while photography is pending (§65) */
.ph {
  width: 100%; height: 100%; display: grid; place-items: center;
  background:
    linear-gradient(135deg, rgba(11,42,91,.06) 0%, rgba(91,42,134,.08) 50%, rgba(201,162,39,.10) 100%),
    var(--blue-050);
  color: var(--blue-500);
}
.ph svg { width: 46px; height: 46px; opacity: .5; }
.ph__label {
  position: absolute; bottom: var(--sp-2); right: var(--sp-2);
  font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-500); background: rgba(255,255,255,.8);
  padding: 2px 6px; border-radius: var(--r-sm);
}

/* ==========================================================================
   Mission pillars (§15) / feature tiles
   ========================================================================== */
.pillar {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--sp-5); position: relative; overflow: hidden;
}
.pillar::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 4px;
  background: linear-gradient(180deg, var(--gold-500), var(--purple-600));
}
.pillar__n {
  font-family: var(--font-display); font-size: var(--t-xs); font-weight: 700;
  letter-spacing: .18em; color: var(--gold-700); text-transform: uppercase;
}
.pillar h3 { font-size: var(--t-lg); margin: var(--sp-2) 0 var(--sp-3); }
.pillar p { color: var(--ink-600); margin: 0; }

/* ==========================================================================
   Service times (§17) & location (§18)
   ========================================================================== */
/* Weekly services -----------------------------------------------------------
   Day, service name and time line up ACROSS the cards, not merely within each
   one. The row heights must therefore be owned by the .services grid and shared
   downwards: each card is a `subgrid` spanning those rows, and each service
   item is a nested subgrid spanning its name/time pair. Sunday carries two
   services, so five shared rows are reserved.

   This applies from 1024px, where all four cards sit on a single row and
   cross-card alignment is what the eye actually reads. Below that the cards
   stack or pair, and reserving two lines for the name keeps them tidy.
   -------------------------------------------------------------------------- */
.services { display: grid; gap: var(--sp-4); }
@media (min-width: 640px)  { .services { grid-template-columns: repeat(2, 1fr); } }

.service {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--r-lg); padding: var(--sp-5);
}
.service__day {
  font-family: var(--font-display); font-size: var(--t-xs); font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--gold-400);
  margin: 0 0 var(--sp-3);
}
.service__item + .service__item {
  margin-top: var(--sp-4); padding-top: var(--sp-4);
  border-top: 1px solid rgba(255,255,255,.12);
}
.service__name {
  font-family: var(--font-display); font-weight: 600; color: #fff;
  display: block; line-height: 1.35; margin-bottom: var(--sp-1);
}
.service__time {
  display: block;
  font-family: var(--font-display); font-weight: 700; color: var(--gold-400);
  white-space: nowrap;                                  /* a time never wraps */
  font-size: clamp(1.05rem, 0.8rem + 0.95vw, 1.35rem);
  font-variant-numeric: tabular-nums;
}

/* Two columns: reserve two lines for the name so each pair lines up. */
@media (min-width: 640px) and (max-width: 1023px) {
  .service__name { min-height: 2.7em; }
}

@media (min-width: 1024px) {
  .services {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(5, auto);   /* day · name · time · name · time */
    row-gap: 0;
  }
  .service { grid-row: span 5; display: grid; grid-template-rows: subgrid; }
  .service__day { grid-row: 1; }
  .service__item { grid-row: span 2; display: grid; grid-template-rows: subgrid; }
  .service__name { align-self: start; margin-bottom: 0; }
  .service__time { align-self: start; padding-top: var(--sp-1); }

  /* No subgrid (older Safari/Firefox): fall back to reserving two lines. */
  @supports not (grid-template-rows: subgrid) {
    .services { grid-template-rows: none; row-gap: var(--sp-4); }
    .service { grid-row: auto; display: block; }
    .service__item { grid-row: auto; display: block; }
    .service__name { min-height: 2.7em; margin-bottom: var(--sp-1); }
  }
}

.service--light { background: var(--white); border-color: var(--line); }
.service--light .service__day { color: var(--gold-700); }
.service--light .service__name { color: var(--blue-800); }
.service--light .service__time { color: var(--blue-700); }
.service--light .service__item + .service__item { border-top-color: var(--line); }

.location-card {
  display: grid; gap: var(--sp-5); background: var(--white);
  border: 1px solid var(--line); border-radius: var(--r-xl); padding: var(--sp-5);
  box-shadow: var(--shadow-1);
}
@media (min-width: 900px) { .location-card { grid-template-columns: 1fr 1fr; align-items: center; padding: var(--sp-6); } }
.map-frame {
  aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line); background: var(--blue-050);
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ==========================================================================
   Beliefs accordion (§30)
   ========================================================================== */
.belief {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
}
.belief + .belief { margin-top: var(--sp-3); }
.belief > summary {
  list-style: none; cursor: pointer; padding: var(--sp-4) var(--sp-5);
  display: flex; align-items: flex-start; gap: var(--sp-4); min-height: 56px;
}
.belief > summary::-webkit-details-marker { display: none; }
.belief > summary:hover { background: var(--blue-050); }
.belief__n {
  font-family: var(--font-display); font-weight: 700; font-size: var(--t-sm);
  color: var(--gold-700); flex: none; width: 2ch; padding-top: 3px;
}
.belief__head { flex: 1; }
.belief__title { font-family: var(--font-display); font-weight: 700; font-size: var(--t-md); color: var(--blue-800); display: block; }
.belief__summary { font-size: var(--t-sm); color: var(--ink-600); margin-top: 4px; display: block; }
.belief__chev { flex: none; color: var(--blue-500); transition: transform .18s ease; padding-top: 4px; }
.belief[open] .belief__chev { transform: rotate(180deg); }
.belief__body { padding: 0 var(--sp-5) var(--sp-5); }
.belief__body .prose { font-size: var(--t-base); }
.belief__refs {
  margin-top: var(--sp-3); display: flex; flex-wrap: wrap; gap: var(--sp-2);
  padding-top: var(--sp-3); border-top: 1px dashed var(--line);
}
.belief__ref {
  font-family: var(--font-display); font-size: var(--t-xs); font-weight: 600;
  background: var(--gold-100); color: var(--gold-700); padding: 3px 9px; border-radius: var(--r-full);
}

/* ==========================================================================
   Leaders (§31)
   ========================================================================== */
.leader { text-align: center; }
.leader__photo {
  width: 100%; aspect-ratio: 1; border-radius: var(--r-lg); overflow: hidden;
  background: var(--blue-050); position: relative; margin-bottom: var(--sp-4);
  border: 1px solid var(--line);
}
.leader__photo img { width: 100%; height: 100%; object-fit: cover; }
.leader__name { font-family: var(--font-display); font-weight: 700; font-size: var(--t-lg); color: var(--blue-800); margin: 0; }
.leader__role {
  font-family: var(--font-display); font-size: var(--t-xs); font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--gold-700); margin: var(--sp-2) 0 var(--sp-3);
}
.leader__bio { color: var(--ink-600); font-size: var(--t-sm); margin: 0; }

/* ==========================================================================
   Forms (§42-51, §71 accessible errors)
   ========================================================================== */
.form-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-xl); padding: var(--sp-5); box-shadow: var(--shadow-1);
}
@media (min-width: 768px) { .form-card { padding: var(--sp-6); } }
.field { margin-bottom: var(--sp-5); }
.field > label, .fieldset__legend {
  display: block; font-family: var(--font-display); font-weight: 600;
  font-size: var(--t-sm); color: var(--blue-800); margin-bottom: var(--sp-2);
}
.field__hint { display: block; font-size: var(--t-sm); color: var(--ink-500); font-weight: 400; margin-top: 2px; }
.req { color: var(--err-600); }
.opt { color: var(--ink-500); font-weight: 400; }
input[type="text"], input[type="email"], input[type="tel"], input[type="url"],
input[type="password"], input[type="date"], input[type="time"], input[type="number"],
input[type="search"], select, textarea {
  width: 100%; min-height: 48px; padding: var(--sp-3);
  font-family: inherit; font-size: 16px; /* prevents iOS zoom */
  color: var(--ink-900); background: var(--white);
  border: 1px solid var(--line-strong); border-radius: var(--r-md);
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234b5563' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
input:focus, select:focus, textarea:focus {
  border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(30,78,150,.15); outline: none;
}
input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] {
  border-color: var(--err-600); box-shadow: 0 0 0 3px rgba(179,38,30,.12);
}
.field__error { display: none; color: var(--err-600); font-size: var(--t-sm); margin-top: var(--sp-2); font-weight: 600; }
.field__error[data-show="true"] { display: block; }

.choice {
  display: flex; align-items: flex-start; gap: var(--sp-3);
  padding: var(--sp-3); border: 1px solid var(--line-strong);
  border-radius: var(--r-md); cursor: pointer; min-height: 48px; background: var(--white);
}
.choice + .choice { margin-top: var(--sp-2); }
.choice:hover { border-color: var(--blue-500); background: var(--blue-050); }
.choice input { margin: 3px 0 0; width: 20px; height: 20px; flex: none; accent-color: var(--blue-700); }
.choice__label { font-size: var(--t-sm); color: var(--ink-700); }
.choice__label b { display: block; font-family: var(--font-display); color: var(--blue-800); font-size: var(--t-base); }
.choice input:checked ~ .choice__label b { color: var(--blue-700); }
.choice-row { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.choice-row .choice { flex: 1 1 140px; margin-top: 0; }
fieldset { border: 0; padding: 0; margin: 0 0 var(--sp-5); }

.hp-field { position: absolute !important; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }

.alert {
  border-radius: var(--r-md); padding: var(--sp-4); margin-bottom: var(--sp-5);
  border: 1px solid; display: flex; gap: var(--sp-3); align-items: flex-start; font-size: var(--t-sm);
}
.alert h3 { font-size: var(--t-base); margin: 0 0 var(--sp-1); }
.alert p { margin: 0; }
.alert-ok { background: var(--ok-050); border-color: rgba(28,122,79,.3); color: #10603c; }
.alert-ok h3 { color: #10603c; }
.alert-err { background: var(--err-050); border-color: rgba(179,38,30,.3); color: #8c1d18; }
.alert-err h3 { color: #8c1d18; }
.alert-info { background: var(--blue-050); border-color: var(--blue-100); color: var(--blue-700); }
.alert-info h3 { color: var(--blue-700); }
.alert-warn { background: var(--warn-050); border-color: rgba(169,99,26,.3); color: #7c4a12; }
.alert-warn h3 { color: #7c4a12; }
.alert svg { flex: none; width: 20px; height: 20px; margin-top: 2px; }

.privacy-note {
  background: var(--canvas-alt); border-radius: var(--r-md);
  padding: var(--sp-4); font-size: var(--t-sm); color: var(--ink-600); margin-top: var(--sp-5);
}

/* ==========================================================================
   Footer (§23)
   ========================================================================== */
.site-footer { background: var(--blue-900); color: #9fb2ce; padding-block: var(--sp-7) var(--sp-5); }
.site-footer h4 {
  color: #fff; font-size: var(--t-xs); letter-spacing: .16em;
  text-transform: uppercase; margin-bottom: var(--sp-4); font-weight: 700;
}
.footer-grid { display: grid; gap: var(--sp-6); }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.1fr; } }
.site-footer a { color: #c3d1e6; text-decoration: none; }
.site-footer a:hover { color: var(--gold-400); text-decoration: underline; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: var(--sp-2); }
.footer-links a { display: inline-block; padding: 4px 0; min-height: 32px; }
.footer-brand__motto { color: var(--gold-400); font-family: var(--font-display); font-weight: 600; margin: var(--sp-4) 0 var(--sp-3); }
.footer-brand .brand__name { color: #fff; }
.footer-brand .brand__tag { color: var(--gold-400); }
.social-row { display: flex; gap: var(--sp-3); margin-top: var(--sp-4); }
.social-row a {
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.2); border-radius: var(--r-full); color: #c3d1e6;
}
.social-row a:hover { background: rgba(255,255,255,.1); color: #fff; }
/* The brand's own colour on hover — confirms you are about to leave for that
   platform, without shouting three logos at full saturation in the footer. */
.social-row a[data-platform="facebook"]:hover { background: #1877f2; border-color: #1877f2; }
.social-row a[data-platform="youtube"]:hover  { background: #ff0000; border-color: #ff0000; }
.social-row a[data-platform="whatsapp"]:hover { background: #25d366; border-color: #25d366; }
.social-row a[data-platform="instagram"]:hover { background: #c13584; border-color: #c13584; }
.social-row svg { width: 20px; height: 20px; }
.footer-bottom {
  margin-top: var(--sp-6); padding-top: var(--sp-5); border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-5);
  justify-content: space-between; font-size: var(--t-sm); color: #7d92b3;
}

/* ==========================================================================
   Utility / states
   ========================================================================== */
.empty-state {
  text-align: center; padding: var(--sp-7) var(--sp-5);
  border: 1px dashed var(--line-strong); border-radius: var(--r-lg);
  background: var(--white); color: var(--ink-600);
}
.empty-state h3 { font-size: var(--t-lg); }
.empty-state svg { width: 40px; height: 40px; color: var(--blue-500); opacity: .5; margin: 0 auto var(--sp-4); }

.skeleton {
  background: linear-gradient(90deg, var(--canvas-alt) 25%, #ece8df 37%, var(--canvas-alt) 63%);
  background-size: 400% 100%; animation: shimmer 1.3s ease infinite; border-radius: var(--r-md);
}
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.skeleton-card { height: 320px; }

.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-4 { margin-top: var(--sp-4); } .mt-5 { margin-top: var(--sp-5); }
.mt-6 { margin-top: var(--sp-6); } .mb-0 { margin-bottom: 0; } .mb-5 { margin-bottom: var(--sp-5); }
.center-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-6); }

.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: var(--sp-3); align-items: flex-start; margin-bottom: var(--sp-4); }
.contact-list svg { width: 20px; height: 20px; flex: none; color: var(--gold-500); margin-top: 3px; }
.contact-list a { text-decoration: none; }

/* --------------------------------------------------------------------------
   WhatsApp-first phone numbers (§104). Both public numbers are WhatsApp
   contacts, so the number opens a chat and a plain "Call" sits beside it.
   -------------------------------------------------------------------------- */
.phone-row {
  display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-2) var(--sp-3);
  margin-bottom: var(--sp-2);
}
.phone-row:last-child { margin-bottom: 0; }
.wa-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  padding: 4px 12px 4px 8px; border-radius: var(--r-full);
  background: rgba(37,211,102,.1); border: 1px solid rgba(37,211,102,.35);
  color: #0d7a3d; font-weight: 600; text-decoration: none; font-size: .95rem;
}
.wa-link:hover { background: rgba(37,211,102,.18); color: #0a5c2e; }
.wa-link .wa-icon { color: #25d366; }
.call-link {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; min-width: 48px; padding: 0 var(--sp-2);
  font-size: var(--t-sm); font-weight: 600; color: var(--blue-600); text-decoration: underline;
}

/* On dark surfaces (footer, mobile drawer sits on light canvas) */
.site-footer .wa-link {
  background: rgba(37,211,102,.14); border-color: rgba(37,211,102,.4); color: #7ee2a8;
}
.site-footer .wa-link:hover { background: rgba(37,211,102,.24); color: #b6f2ce; }
.site-footer .call-link { color: #c3d1e6; }
.footer-phones { margin: var(--sp-4) 0; }
.drawer-phones__label {
  font-family: var(--font-display); font-size: var(--t-xs); font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--gold-700);
  margin-bottom: var(--sp-3);
}

.map-note {
  font-size: var(--t-sm); color: var(--ink-600); margin-top: var(--sp-3);
  display: flex; align-items: flex-start; gap: var(--sp-2);
}
.map-note .icon { color: var(--gold-600); margin-top: 3px; }

.share-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }
.share-btn {
  display: inline-flex; align-items: center; gap: var(--sp-2); min-height: 44px;
  padding: var(--sp-2) var(--sp-4); border-radius: var(--r-full);
  border: 1px solid var(--line-strong); background: var(--white);
  color: var(--ink-700); font-family: var(--font-display); font-weight: 600;
  font-size: var(--t-sm); cursor: pointer; text-decoration: none;
}
.share-btn:hover { border-color: var(--blue-500); color: var(--blue-700); }
.share-btn svg { width: 18px; height: 18px; }

.detail-list { display: grid; gap: var(--sp-4); }
@media (min-width: 560px) { .detail-list { grid-template-columns: repeat(2, 1fr); } }
.detail-item { border-left: 3px solid var(--gold-500); padding-left: var(--sp-4); }
.detail-item dt {
  font-family: var(--font-display); font-size: var(--t-xs); font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--gold-700); margin-bottom: 4px;
}
.detail-item dd { margin: 0; color: var(--ink-700); font-weight: 500; }

.month-group { margin-bottom: var(--sp-7); }
.month-group__head {
  display: flex; align-items: baseline; gap: var(--sp-4);
  border-bottom: 2px solid var(--gold-500); padding-bottom: var(--sp-3); margin-bottom: var(--sp-5);
}
.month-group__head h3 { margin: 0; font-size: var(--t-xl); }
.month-group__count { font-size: var(--t-sm); color: var(--ink-500); }

.tabs { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin-bottom: var(--sp-6);
  border-bottom: 1px solid var(--line); padding-bottom: var(--sp-3); }
.tab {
  min-height: 44px; padding: var(--sp-2) var(--sp-4); border-radius: var(--r-full);
  border: 1px solid var(--line-strong); background: var(--white); cursor: pointer;
  font-family: var(--font-display); font-weight: 600; font-size: var(--t-sm); color: var(--ink-600);
}
.tab[aria-selected="true"] { background: var(--blue-700); border-color: var(--blue-700); color: #fff; }

@media print {
  .site-header, .site-footer, .hero__actions, .nav-toggle, .mobile-nav { display: none !important; }
  body { background: #fff; }
}

/* --------------------------------------------------------------------------
   Homepage founder card — one photograph of the founding couple together
   -------------------------------------------------------------------------- */
.founder-card {
  display: grid; gap: 0; max-width: 820px; margin-inline: auto;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-1);
}
@media (min-width: 720px) { .founder-card { grid-template-columns: 1fr 1fr; } }
.founder-card__photo { position: relative; aspect-ratio: 4 / 3; background: var(--blue-050); }
@media (min-width: 720px) { .founder-card__photo { aspect-ratio: auto; min-height: 320px; } }
.founder-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.founder-card__body {
  padding: var(--sp-6); display: flex; flex-direction: column;
  justify-content: center; gap: var(--sp-2);
}
.founder-card__names {
  font-family: var(--font-display); font-size: var(--t-lg);
  color: var(--blue-800); margin: 0; line-height: 1.25;
}
