/* ==========================================================================
   The Apostolic Church International, USA - DFW Shekinah Assembly
   "Shekinah Light" design system

   Brand colours are sampled straight from the church logo:
     #ED1C24 apostolic red   #253983 apostolic navy
   The red only clears WCAG AA at large sizes (4.38:1), so anything that
   carries small text uses --red-ink (#D91520, 5.15:1) instead.
   ========================================================================== */

/* --- tokens ------------------------------------------------------------- */
:root {
  --red:        #ED1C24;   /* logo + large display only */
  --red-ink:    #D91520;   /* text, buttons - AA safe   */
  --red-deep:   #B01018;
  --navy:       #253983;
  --navy-deep:  #1A2A63;
  --navy-dark:  #131E48;

  --ink:        #1C2340;
  --muted:      #5A6178;
  --ground:     #FDFBF7;   /* warm ivory */
  --surface:    #FFFFFF;
  --surface-2:  #F4F1EA;
  --line:       #E4DFD4;
  --line-soft:  #EFEBE2;

  --gold:       #C9A227;   /* picked out of the balloons in the photos */

  --shadow-sm:  0 1px 2px rgba(28,35,64,.06), 0 2px 8px rgba(28,35,64,.04);
  --shadow-md:  0 4px 12px rgba(28,35,64,.07), 0 12px 32px rgba(28,35,64,.06);
  --shadow-lg:  0 12px 28px rgba(28,35,64,.10), 0 32px 64px rgba(28,35,64,.09);

  --display: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1180px;
  --wrap-narrow: 760px;
  --radius: 4px;
  --radius-lg: 10px;

  --ease: cubic-bezier(.22,.61,.36,1);
  --dur: .45s;
}

/* --- reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, picture, video, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--red-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red-deep); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.12; letter-spacing: -.015em; margin: 0 0 .5em; color: var(--navy-deep); font-variation-settings: "SOFT" 0, "WONK" 0; }
p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0 0 1.15em; padding-left: 1.25em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 3rem 0; }

:focus-visible {
  outline: 3px solid var(--red-ink);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--navy); color: #fff; }

/* --- skip link ---------------------------------------------------------- */
.skip {
  position: absolute; left: 50%; top: 0; transform: translate(-50%,-140%);
  z-index: 999; background: var(--navy); color: #fff;
  padding: .8rem 1.4rem; border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 600; font-size: .9rem; text-decoration: none;
  transition: transform .2s var(--ease);
}
.skip:focus { transform: translate(-50%,0); color: #fff; }

/* --- layout ------------------------------------------------------------- */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.5rem, var(--wrap-narrow)); margin-inline: auto; }
.section { padding: clamp(3.5rem, 8vw, 7rem) 0; }
.section-tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }

/* --- type --------------------------------------------------------------- */
.h-display { font-size: clamp(2.5rem, 6.4vw, 4.75rem); line-height: 1.04; letter-spacing: -.028em; }
.h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
.h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
.h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.6; color: var(--muted); }
.small { font-size: .875rem; }
.muted { color: var(--muted); }
.center { text-align: center; }
.measure { max-width: 62ch; }
.measure-tight { max-width: 52ch; }

/* eyebrow: small caps label with the red tick that echoes the logo */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--sans); font-size: .75rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--red-ink); margin: 0 0 1rem;
}
.eyebrow::before {
  content: ""; width: 1.6rem; height: 2px; background: var(--red);
  display: block; flex: none;
}
.eyebrow.on-dark { color: #F2B8BB; }
.eyebrow.on-dark::before { background: var(--red); }
.center .eyebrow { justify-content: center; }

/* --- buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.6rem; border-radius: var(--radius);
  font-family: var(--sans); font-size: .95rem; font-weight: 600;
  letter-spacing: .01em; text-decoration: none; border: 2px solid transparent;
  cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--red-ink); color: #fff; border-color: var(--red-ink); }
.btn-primary:hover { background: var(--red-deep); border-color: var(--red-deep); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-deep); border-color: var(--navy-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); background: var(--surface); }
.btn-on-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-on-dark:hover { background: #fff; color: var(--navy-deep); border-color: #fff; }
.btn-lg { padding: 1.05rem 2rem; font-size: 1rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; }
.center .btn-row { justify-content: center; }

/* --- header ------------------------------------------------------------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(253,251,247,.92);
  -webkit-backdrop-filter: saturate(1.6) blur(12px);
  backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow .3s var(--ease), background .3s var(--ease);
}
.header.is-stuck { box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 76px; }

.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; flex: none; }
.brand img { width: 42px; height: 44px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-family: var(--display); font-weight: 700; font-size: 1.02rem;
  color: var(--navy-deep); letter-spacing: -.01em;
}
.brand-sub {
  font-size: .66rem; font-weight: 600; letter-spacing: .13em;
  text-transform: uppercase; color: var(--muted);
}

.nav { margin-left: auto; display: flex; align-items: center; gap: .35rem; }
.nav a:not(.btn) {
  padding: .55rem .8rem; border-radius: var(--radius);
  font-size: .92rem; font-weight: 500; color: var(--ink); text-decoration: none;
  transition: color .18s var(--ease), background .18s var(--ease);
}
.nav a:hover:not(.btn) { color: var(--navy); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--navy); font-weight: 600; }
.nav-cta { display: flex; align-items: center; gap: .6rem; margin-left: .85rem; }
.nav-cta .btn { padding: .6rem 1.15rem; font-size: .875rem; }

.nav-toggle {
  display: none; margin-left: auto; width: 46px; height: 46px;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line);
  border-radius: var(--radius); cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 20px; height: 2px;
  background: var(--navy-deep); border-radius: 2px;
  transition: transform .28s var(--ease), opacity .18s var(--ease);
}
.nav-toggle span::before { transform: translateY(-6px); }
.nav-toggle span::after  { transform: translateY(4px); }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: rotate(-45deg) translateY(0); }

/* --- picture wrappers ----------------------------------------------------
   <picture> is the img's real parent, so `height:100%` on the img resolves
   against IT, not the media box. Without this the image falls back to its
   intrinsic height and spills out of every full-bleed hero. */
.hero-media picture,
.page-hero-media picture,
.band-photo-media picture,
.card-media picture,
.yt-facade picture {
  display: block;
  width: 100%;
  height: 100%;
}

/* --- hero --------------------------------------------------------------- */
.hero { position: relative; isolation: isolate; background: var(--navy-dark); }
.hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 32%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(105deg, rgba(19,30,72,.93) 0%, rgba(19,30,72,.80) 42%, rgba(19,30,72,.42) 72%, rgba(19,30,72,.30) 100%),
    linear-gradient(to top, rgba(19,30,72,.65), transparent 55%);
}
.hero-inner { padding: clamp(4.5rem, 12vw, 9rem) 0 clamp(3.5rem, 8vw, 6.5rem); position: relative; }
.hero-copy { max-width: 40rem; color: #fff; }
.hero-copy h1 { color: #fff; text-wrap: balance; }
.hero-copy .lede { color: rgba(255,255,255,.86); margin-top: 1.25rem; }
.hero-copy .btn-row { margin-top: 2rem; }

/* the service chip that sits above the headline */
.hero-chip {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .45rem .95rem .45rem .6rem; border-radius: 100px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.24);
  color: #fff; font-size: .82rem; font-weight: 600; letter-spacing: .02em;
  margin-bottom: 1.5rem; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.hero-chip .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--red);
  box-shadow: 0 0 0 4px rgba(237,28,36,.28);
}

/* compact hero for interior pages */
.page-hero { position: relative; isolation: isolate; background: var(--navy-dark); }
.page-hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(19,30,72,.94), rgba(19,30,72,.72));
}
.page-hero-inner { padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 4.5rem); color: #fff; }
.page-hero-inner h1 { color: #fff; max-width: 22ch; text-wrap: balance; }
.page-hero-inner .lede { color: rgba(255,255,255,.84); max-width: 54ch; }

.crumbs { font-size: .82rem; color: rgba(255,255,255,.62); margin-bottom: 1rem; }
.crumbs a { color: rgba(255,255,255,.82); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs span { margin: 0 .45rem; }

/* --- service times ------------------------------------------------------ */
.times { margin-top: -3.5rem; position: relative; z-index: 5; }
.times-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.time-card { background: var(--surface); padding: 2rem 1.75rem; }
.times-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1040px) { .times-grid-4 { grid-template-columns: repeat(2, 1fr); } }

.time-card .k {
  font-size: .72rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
  color: var(--red-ink); margin-bottom: .6rem;
}
.time-card .t { font-family: var(--display); font-size: 1.5rem; font-weight: 600; color: var(--navy-deep); line-height: 1.15; margin-bottom: .3rem; }
.time-card .d { font-size: .92rem; color: var(--muted); margin: 0; }
.time-card .meta { margin-top: .75rem; font-size: .85rem; }

/* --- generic cards ------------------------------------------------------ */
.grid { display: grid; gap: 1.75rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line); }
.card-media { position: relative; overflow: hidden; aspect-ratio: 4/3; background: var(--surface-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card-media img { transform: scale(1.045); }
.card-body { padding: 1.6rem 1.5rem 1.75rem; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { margin-bottom: .5rem; }
.card-body p { font-size: .96rem; color: var(--muted); }
.card-link {
  margin-top: auto; padding-top: 1rem; font-weight: 600; font-size: .92rem;
  color: var(--red-ink); text-decoration: none;
  display: inline-flex; align-items: center; gap: .4rem;
}
.card-link:hover { gap: .65rem; }
.card-link svg { transition: transform .2s var(--ease); }
.card-link:hover svg { transform: translateX(3px); }

/* motto line used across the ministry cards */
.motto {
  font-family: var(--display); font-style: italic; font-size: 1rem;
  color: var(--navy); margin: 0 0 .9rem;
  padding-left: .85rem; border-left: 3px solid var(--red);
}

/* --- split feature ------------------------------------------------------ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); width: 100%; }
.split.reverse .split-media { order: 2; }

/* framed photo with the red offset rule */
.framed { position: relative; }
.framed::before {
  content: ""; position: absolute; inset: auto auto -14px -14px;
  width: 58%; height: 58%; border-left: 3px solid var(--red);
  border-bottom: 3px solid var(--red); border-radius: 0 0 0 var(--radius-lg);
  z-index: -1;
}

/* --- dark band ---------------------------------------------------------- */
.band { background: var(--navy-deep); color: rgba(255,255,255,.86); position: relative; isolation: isolate; }
.band h2, .band h3 { color: #fff; }
.band .lede { color: rgba(255,255,255,.82); }
.band-photo { position: relative; isolation: isolate; background: var(--navy-dark); color: #fff; }
.band-photo-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.band-photo-media img { width: 100%; height: 100%; object-fit: cover; }
.band-photo::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(19,30,72,.96), rgba(19,30,72,.90));
}
.band-photo h2 { color: #fff; }
/* body copy over photography needs more than 82% white to stay readable */
.band-photo .lede { color: rgba(255,255,255,.92); }
.band-photo p { color: rgba(255,255,255,.90); }

/* --- pull quote --------------------------------------------------------- */
.quote { position: relative; padding-left: 2.5rem; }
.quote::before {
  content: "\201C"; position: absolute; left: 0; top: -.35em;
  font-family: var(--display); font-size: 4.5rem; line-height: 1;
  color: var(--red); opacity: .55;
}
.quote p {
  font-family: var(--display); font-size: clamp(1.35rem, 2.6vw, 1.95rem);
  line-height: 1.42; color: var(--navy-deep); font-weight: 500;
}
.band .quote p, .band-photo .quote p { color: #fff; }
.quote cite {
  display: block; margin-top: 1.1rem; font-style: normal; font-family: var(--sans);
  font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}
.band .quote cite, .band-photo .quote cite { color: rgba(255,255,255,.68); }

/* --- tenets (numbered editorial list) ----------------------------------- */
.tenets { list-style: none; padding: 0; margin: 0; counter-reset: tenet;
  columns: 2; column-gap: 3.5rem; }
.tenets li {
  counter-increment: tenet; break-inside: avoid; position: relative;
  padding: 0 0 1.5rem 3.4rem; margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--line-soft);
}
.tenets li::before {
  content: counter(tenet, decimal-leading-zero);
  position: absolute; left: 0; top: -.15rem;
  font-family: var(--display); font-size: 1.5rem; font-weight: 700;
  color: var(--red); opacity: .42;
}

/* --- timeline (About page heritage) ------------------------------------- */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 3.55rem; top: .6rem; bottom: .6rem;
  width: 2px; background: linear-gradient(var(--line), var(--red) 22%, var(--red) 78%, var(--line));
  opacity: .55;
}
.timeline li {
  position: relative; display: grid; grid-template-columns: 4.6rem 1fr;
  gap: 1.4rem; padding-bottom: 2.1rem;
}
.timeline li:last-child { padding-bottom: 0; }
.timeline .yr {
  font-family: var(--display); font-weight: 700; font-size: 1.02rem;
  color: var(--navy-deep); padding-top: .1rem; text-align: right;
  position: relative; z-index: 1;
}
.timeline li::before {
  content: ""; position: absolute; left: 3.15rem; top: .55rem;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--red); border: 2px solid var(--ground); z-index: 2;
}
.timeline h3 { font-size: 1.1rem; margin-bottom: .25rem; }
.timeline p { font-size: .95rem; color: var(--muted); margin: 0; }

@media (max-width: 620px) {
  .timeline::before { left: .32rem; }
  .timeline li { grid-template-columns: 1fr; gap: .2rem; padding-left: 1.7rem; }
  .timeline .yr { text-align: left; }
  .timeline li::before { left: 0; top: .6rem; }
}

/* --- leadership --------------------------------------------------------- */
.leader-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.leader {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg); padding: 1.5rem;
  border-top: 3px solid var(--navy);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.leader:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.leader .n { font-family: var(--display); font-size: 1.14rem; font-weight: 600; color: var(--navy-deep); margin-bottom: .25rem; line-height: 1.25; }
.leader .r { font-size: .88rem; color: var(--muted); margin: 0; }
.leader.is-pastor { border-top-color: var(--red); }

/* --- steps / numbered blocks -------------------------------------------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: auto 1fr; gap: 1.15rem; align-items: start; }
.steps li::before {
  content: counter(step); display: grid; place-items: center;
  width: 2.35rem; height: 2.35rem; border-radius: 50%; flex: none;
  background: var(--navy); color: #fff;
  font-family: var(--sans); font-size: .92rem; font-weight: 700;
}
.steps h3 { font-size: 1.12rem; margin-bottom: .3rem; }
.steps p { font-size: .96rem; color: var(--muted); margin: 0; }

/* --- FAQ / details ------------------------------------------------------ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.35rem 2.5rem 1.35rem 0;
  font-family: var(--display); font-size: 1.1rem; font-weight: 600;
  color: var(--navy-deep); position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: .35rem; top: 50%;
  width: 11px; height: 11px; margin-top: -7px;
  border-right: 2px solid var(--red-ink); border-bottom: 2px solid var(--red-ink);
  transform: rotate(45deg); transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -3px; }
.faq .faq-body { padding: 0 0 1.5rem; color: var(--muted); max-width: 66ch; }

/* --- info rows (address, contact) --------------------------------------- */
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.4rem; }
.info-list li { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; }
.info-ico {
  width: 2.4rem; height: 2.4rem; border-radius: 50%; flex: none;
  display: grid; place-items: center; background: var(--surface-2); color: var(--navy);
}
.band .info-ico, .band-photo .info-ico { background: rgba(255,255,255,.12); color: #fff; }
.info-list .k { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .15rem; }
.band .info-list .k, .band-photo .info-list .k { color: rgba(255,255,255,.6); }
.info-list .v { font-weight: 500; }
.info-list a { color: inherit; }

/* --- map ---------------------------------------------------------------- */
.map-frame {
  border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); background: var(--surface-2); line-height: 0;
}
.map-frame iframe { width: 100%; height: 420px; border: 0; display: block; }

/* --- video -------------------------------------------------------------- */
.video-frame {
  position: relative; aspect-ratio: 16/9; border-radius: var(--radius-lg);
  overflow: hidden; background: var(--navy-dark); box-shadow: var(--shadow-lg);
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* click-to-load YouTube facade - keeps the page fast and cookie-free */
.yt-facade { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: none; display: block; }
.yt-facade img { width: 100%; height: 100%; object-fit: cover; }
.yt-facade::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(19,30,72,.55), rgba(19,30,72,.12));
  transition: background .3s var(--ease);
}
.yt-facade:hover::after { background: linear-gradient(to top, rgba(19,30,72,.42), rgba(19,30,72,.06)); }
.yt-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 78px; height: 78px; border-radius: 50%; z-index: 2;
  background: var(--red-ink); display: grid; place-items: center;
  box-shadow: 0 8px 30px rgba(0,0,0,.35);
  transition: transform .28s var(--ease), background .28s var(--ease);
}
.yt-facade:hover .yt-play { transform: translate(-50%,-50%) scale(1.09); background: var(--red); }
.yt-play svg { margin-left: 4px; }

/* --- forms -------------------------------------------------------------- */
.field { margin-bottom: 1.25rem; }
.field label { display: block; font-size: .84rem; font-weight: 600; letter-spacing: .04em; color: var(--navy-deep); margin-bottom: .4rem; }
.field .req { color: var(--red-ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem .95rem; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  font-size: 1rem; transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(37,57,131,.14);
}
.field textarea { min-height: 150px; resize: vertical; }
.field-hint { font-size: .84rem; color: var(--muted); margin-top: .4rem; }
.form-note { font-size: .86rem; color: var(--muted); }

/* --- callout ------------------------------------------------------------ */
.callout {
  background: var(--surface); border: 1px solid var(--line);
  border-left: 4px solid var(--red); border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
}
.callout h3 { font-size: 1.08rem; margin-bottom: .4rem; }
.callout p { font-size: .96rem; color: var(--muted); }
.band .callout, .band-photo .callout {
  background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.16);
  border-left-color: var(--red); color: rgba(255,255,255,.86);
}
.band .callout p,
.band-photo .callout p { color: rgba(255,255,255,.88); }
.band .callout h3,
.band-photo .callout h3 { color: #fff; }

/* a deliberately obvious placeholder the church still has to fill in */
.todo {
  display: inline-block; padding: .12rem .5rem; border-radius: 3px;
  background: #FFF3CD; border: 1px dashed #B8860B; color: #6B4E00;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .8rem; font-weight: 600; letter-spacing: .01em;
}

/* --- zoom block --------------------------------------------------------- */
.zoom-box {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.75rem; box-shadow: var(--shadow-sm);
}
.zoom-creds { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; margin: 1.25rem 0; }
.zoom-creds div { background: var(--surface-2); border-radius: var(--radius); padding: .85rem 1rem; }
.zoom-creds .k { font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .2rem; }
.zoom-creds .v { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 1.05rem; font-weight: 600; color: var(--navy-deep); }

/* --- footer ------------------------------------------------------------- */
.footer { background: var(--navy-dark); color: rgba(255,255,255,.72); padding: clamp(3rem,6vw,4.5rem) 0 0; }
.footer a { color: rgba(255,255,255,.72); text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 2.5rem; }
.footer h4 {
  color: #fff; font-family: var(--sans); font-size: .74rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1.1rem;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; font-size: .94rem; }
.footer-brand { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.1rem; }
.footer-brand .plate {
  width: 54px; height: 54px; border-radius: 50%; background: #fff;
  display: grid; place-items: center; flex: none;
}
.footer-brand .plate img { width: 34px; height: 36px; object-fit: contain; }
.footer-brand .t { font-family: var(--display); color: #fff; font-weight: 600; font-size: 1.05rem; line-height: 1.25; }
.footer-about { font-size: .94rem; max-width: 34ch; }
.socials { display: flex; gap: .6rem; margin-top: 1.25rem; }
.socials a {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.08); color: #fff;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.socials a:hover { background: var(--red-ink); transform: translateY(-2px); }
.footer-bottom {
  margin-top: 3rem; padding: 1.5rem 0; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-size: .84rem; color: rgba(255,255,255,.5);
}
.footer-bottom p { margin: 0; }

/* --- giving methods ------------------------------------------------------ */
.give-card {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-top: 3px solid var(--red); border-radius: var(--radius-lg);
  padding: 1.75rem 1.6rem;
}
.give-k {
  font-size: .72rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
  color: var(--red-ink); margin: 0 0 .6rem;
}
.give-v { margin: 0 0 .75rem; }
.give-v-text {
  font-family: var(--display); font-size: 1.35rem; font-weight: 600;
  color: var(--navy-deep); line-height: 1.25;
}
.give-copy {
  display: inline-flex; align-items: center; gap: .6rem; cursor: pointer;
  padding: .5rem .85rem; border-radius: var(--radius);
  background: var(--surface-2); border: 1px solid var(--line); color: var(--navy-deep);
  font-family: var(--display); font-size: 1.3rem; font-weight: 700; line-height: 1.2;
  max-width: 100%; word-break: break-word; text-align: left;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.give-copy svg { flex: none; color: var(--muted); }
.give-copy:hover { border-color: var(--navy); background: var(--surface); }
.give-copy:hover svg { color: var(--navy); }
.give-copy.is-done { border-color: #1B7F4B; color: #1B7F4B; }
.give-copy.is-done svg { color: #1B7F4B; }
.give-d { font-size: .93rem; color: var(--muted); margin: 0; }

.give-card-qr { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: start; }
.give-qr {
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  text-decoration: none; flex: none; padding: .7rem; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line);
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.give-qr:hover { border-color: var(--navy); transform: translateY(-2px); }
.give-qr img { width: 130px; height: 130px; display: block; }
.give-qr span {
  font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
}
.give-qr:hover span { color: var(--navy); }

@media (max-width: 760px) {
  .give-card-qr { grid-template-columns: 1fr; justify-items: start; }
}

@media (max-width: 620px) {
  .give-copy { font-size: 1.1rem; width: 100%; justify-content: space-between; }
}

/* --- photo gallery -------------------------------------------------------
   CSS columns rather than a row grid: the photos are a mix of 3:2 and 2:3, and
   a masonry column flow keeps every frame uncropped at its natural shape. */
.gal-grid { columns: 3; column-gap: 1.1rem; }
.gal-item {
  display: block; width: 100%; padding: 0; margin: 0 0 1.1rem; border: 0;
  position: relative; overflow: hidden; cursor: zoom-in;
  break-inside: avoid; border-radius: var(--radius-lg);
  background: var(--surface-2); line-height: 0;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.gal-item img { width: 100%; height: auto; display: block; transition: transform .55s var(--ease); }
.gal-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.gal-item:hover img { transform: scale(1.04); }
.gal-item:focus-visible { outline: 3px solid var(--red-ink); outline-offset: 3px; }

.gal-cap {
  position: absolute; inset: auto 0 0 0; padding: 2.75rem .9rem .8rem;
  background: linear-gradient(to top, rgba(19,30,72,.88), rgba(19,30,72,0));
  color: #fff; font-size: .85rem; line-height: 1.4; text-align: left;
  font-family: var(--sans); opacity: 0; transform: translateY(6px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.gal-item:hover .gal-cap, .gal-item:focus-visible .gal-cap { opacity: 1; transform: none; }

/* --- lightbox --- */
body.lb-open { overflow: hidden; }
.lb {
  position: fixed; inset: 0; z-index: 300;
  /* solid, not translucent: the sticky header showing through a 96%
     backdrop reads as a glitch rather than as depth */
  background: #0B122C;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  gap: .5rem; padding: 4.5rem 1rem 1.5rem;
}
.lb[hidden] { display: none; }
.lb-bar {
  position: absolute; top: 0; left: 0; right: 0; height: 4rem;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.25rem; color: rgba(255,255,255,.85);
}
.lb-count { margin: 0; font-size: .84rem; font-weight: 600; letter-spacing: .08em; }
.lb-btn {
  width: 46px; height: 46px; border-radius: 50%; flex: none; cursor: pointer;
  display: grid; place-items: center; color: #fff;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.lb-btn:hover { background: rgba(255,255,255,.26); transform: scale(1.06); }
.lb-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.lb-nav { z-index: 2; }

.lb-fig { margin: 0; min-width: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1rem; height: 100%; }
.lb-img {
  max-width: 100%;
  max-height: calc(100vh - 11rem);
  max-height: calc(100dvh - 11rem);
  width: auto; height: auto; object-fit: contain;
  border-radius: 6px; box-shadow: 0 24px 60px rgba(0,0,0,.5);
  animation: lbIn .32s var(--ease);
}
.lb.no-anim .lb-img { animation: none; }
.lb-img.is-loading { opacity: .35; }
@keyframes lbIn { from { opacity: 0; transform: scale(.985) } to { opacity: 1; transform: none } }
.lb-cap {
  color: rgba(255,255,255,.9); font-size: .95rem; text-align: center;
  max-width: 60ch; margin: 0;
}

@media (max-width: 900px) {
  .gal-grid { columns: 2; }
}
@media (max-width: 620px) {
  .gal-grid { columns: 1; column-gap: 0; }
  .gal-cap { opacity: 1; transform: none; }
  .lb { grid-template-columns: 1fr; padding: 4rem .75rem 5.5rem; }
  .lb-nav { position: absolute; bottom: 1rem; }
  .lb-prev { left: 25%; }
  .lb-next { right: 25%; }
  .lb-img { max-height: calc(100vh - 13rem); max-height: calc(100dvh - 13rem); }
}

@media (prefers-reduced-motion: reduce) {
  .gal-item:hover { transform: none; }
  .gal-item:hover img { transform: none; }
  .lb-btn:hover { transform: none; }
}

/* --- announcements board -------------------------------------------------
   Driven by assets/data/announcements.json. Past programmes are filtered out
   both at build time and in the browser, so this can never show a stale date. */
.am-grid { display: grid; gap: 1rem; }
.am-card {
  display: grid; grid-template-columns: 88px 1fr; gap: 1.4rem;
  background: var(--surface); border: 1px solid var(--line-soft);
  border-left: 3px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.5rem 1.6rem;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.am-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-left-color: var(--navy); }
.am-card.is-featured { border-left-color: var(--red); }

.am-date {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  padding-top: .15rem; border-right: 1px solid var(--line-soft);
  text-align: center; line-height: 1;
}
.am-d { font-family: var(--display); font-size: 2.4rem; font-weight: 700; color: var(--navy-deep); letter-spacing: -.02em; }
.am-m { font-size: .7rem; font-weight: 700; letter-spacing: .16em; color: var(--red-ink); margin-top: .3rem; }
.am-thru { font-size: .66rem; color: var(--muted); margin-top: .45rem; letter-spacing: .04em; }
.am-card.is-featured .am-d { color: var(--red-deep); }

.am-body { min-width: 0; }
.am-tag {
  font-size: .68rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
  color: var(--red-ink); margin: 0 0 .35rem;
}
.am-title { font-size: 1.3rem; margin: 0 0 .3rem; }
.am-when { font-size: .88rem; font-weight: 600; color: var(--navy); margin: 0 0 .4rem; }
.am-meta { margin: 0 0 .6rem; font-size: .88rem; color: var(--muted); }
.am-meta-i + .am-meta-i::before { content: "·"; margin: 0 .5rem; color: var(--line); }
.am-blurb { font-size: .95rem; color: var(--muted); margin: 0; }
.am-link {
  display: inline-flex; align-items: center; gap: .4rem; margin-top: .9rem;
  font-size: .9rem; font-weight: 600; color: var(--red-ink); text-decoration: none;
  padding-block: .2rem;
}
.am-link:hover { gap: .6rem; }

.am-empty {
  background: var(--surface); border: 1px dashed var(--line);
  border-radius: var(--radius-lg); padding: 2.5rem 2rem; text-align: center;
}
.am-empty-t { font-family: var(--display); font-size: 1.25rem; font-weight: 600; color: var(--navy-deep); margin-bottom: .5rem; }
.am-empty p { color: var(--muted); max-width: 46ch; margin-inline: auto; }
.am-empty .btn { margin-top: 1.25rem; }

/* on the dark bands */
.band .am-card, .band-photo .am-card {
  background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.15);
  border-left-color: rgba(255,255,255,.3);
}
.band .am-card.is-featured, .band-photo .am-card.is-featured { border-left-color: var(--red); }
.band .am-d, .band-photo .am-d, .band .am-title, .band-photo .am-title { color: #fff; }
.band .am-when, .band-photo .am-when { color: rgba(255,255,255,.92); }
.band .am-meta, .band-photo .am-meta,
.band .am-blurb, .band-photo .am-blurb { color: rgba(255,255,255,.82); }
.band .am-date, .band-photo .am-date { border-right-color: rgba(255,255,255,.18); }
.band .am-tag, .band-photo .am-tag { color: #F2B8BB; }
.band .am-link, .band-photo .am-link { color: #fff; }

/* screen-reader-only helper used by the date labels */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

@media (max-width: 620px) {
  .am-card { grid-template-columns: 62px 1fr; gap: 1rem; padding: 1.25rem 1.15rem; }
  .am-d { font-size: 1.8rem; }
  .am-title { font-size: 1.15rem; }
}

@media (prefers-reduced-motion: reduce) {
  .am-card:hover { transform: none; }
}

/* Phone and email links are tapped, not clicked, wherever they appear -
   including mid-sentence. Give them a real target regardless of context. */
a[href^="tel:"],
a[href^="mailto:"] {
  display: inline-block;
  padding-block: .25rem;
}

/* --- mobile tap targets --------------------------------------------------
   The phone number and address in the info list are the two things people
   actually tap on a phone, and breadcrumbs sit right under the thumb. Give
   them real height rather than relying on WCAG's inline-link exception. */
.info-list a,
.crumbs a {
  display: inline-block;
  padding-block: .3rem;
}
.info-list .v a { padding-block: .35rem; }

/* --- tap targets ---------------------------------------------------------
   WCAG 2.2 SC 2.5.8 asks for 24x24 CSS px. Standalone links in the footer
   and in the service cards were rendering at 16-19px, so they get vertical
   padding rather than a larger font. */
.time-card .meta a,
.footer ul a {
  display: inline-block;
  padding-block: .32rem;
}
.footer ul { gap: .28rem; }
.card-link { padding-block: .2rem; }

/* --- motion ------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal-d1.is-in { transition-delay: .08s; }
.reveal-d2.is-in { transition-delay: .16s; }
.reveal-d3.is-in { transition-delay: .24s; }

/* --- responsive --------------------------------------------------------- */
@media (max-width: 1040px) {
  .nav a { padding: .5rem .6rem; font-size: .88rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem 2rem; }
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: 76px 0 auto; margin: 0;
    flex-direction: column; align-items: stretch; gap: .15rem;
    background: var(--ground); border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem 1.75rem;
    max-height: calc(100vh - 76px);   /* fallback: iOS Safari < 15.4 */
    max-height: calc(100dvh - 76px);
    overflow-y: auto; box-shadow: var(--shadow-lg);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: transform .28s var(--ease), opacity .22s var(--ease), visibility .28s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a:not(.btn) { padding: .85rem .6rem; font-size: 1.02rem; border-bottom: 1px solid var(--line-soft); }
  .nav-cta { margin: 1rem 0 0; flex-direction: column; align-items: stretch; }
  .nav-cta .btn { padding: .85rem 1.15rem; font-size: .95rem; }

  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .leader-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 2.25rem; }
  .split.reverse .split-media { order: 0; }
  .times { margin-top: -2rem; }
  .times-grid { grid-template-columns: 1fr; }
  .times-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .tenets { columns: 1; }
  .map-frame iframe { height: 340px; }
}

@media (max-width: 620px) {
  body { font-size: 1rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .times-grid-4 { grid-template-columns: 1fr; }
  .leader-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.25rem; }
  .zoom-creds { grid-template-columns: 1fr; }
  .brand-sub { display: none; }
  .hero-media img { object-position: center 28%; }
  .quote { padding-left: 1.75rem; }
  .quote::before { font-size: 3.2rem; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; }
  .nav-cta .btn { width: 100%; }
}

/* --- accessibility preferences ------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .btn:hover, .card:hover, .leader:hover, .socials a:hover { transform: none; }
}

@media (prefers-contrast: more) {
  :root { --muted: #414863; --line: #C9C2B4; }
}

/* --- print -------------------------------------------------------------- */
@media print {
  .header, .footer, .nav, .btn, .yt-facade, .map-frame { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .hero::after, .page-hero::after { display: none; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}
