/* God's Tabernacle Church - gtcchurch.org
 *
 * One stylesheet for the whole site. Hand-written; replaces the Salient theme,
 * WPBakery and the plugin CSS the WordPress site loaded (about 50 files).
 * Brand carried over from the WordPress child theme: crimson #C30631 and
 * #DC143C, charcoal #2C2D2E, grey bands, Clash Display / Dancing Script /
 * Montserrat.
 */

@font-face {
  font-family: "Clash Display";
  src: url("/assets/fonts/ClashDisplay-Medium.woff2") format("woff2"),
       url("/assets/fonts/ClashDisplay-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --crimson: #c30631;
  --crimson-bright: #dc143c;
  --ink: #2c2d2e;
  --ink-soft: #55575a;
  --stone: #e3e3e3;
  --stone-deep: #cfcfcf;
  --paper: #ffffff;
  --night: #1f1f20;

  --display: "Clash Display", "Montserrat", system-ui, sans-serif;
  --script: "Dancing Script", "Brush Script MT", cursive;
  --body: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius: 14px;
  --band: clamp(3.5rem, 8vw, 6.5rem);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

img, video { max-width: 100%; height: auto; display: block; }

a { color: var(--crimson); text-underline-offset: 0.18em; }
a:hover { color: var(--crimson-bright); }

:focus-visible { outline: 3px solid var(--crimson-bright); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
  color: var(--ink);
}
h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(2rem, 4.6vw, 3.25rem); }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); }
h4 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--paper); padding: 0.6rem 1rem; border-radius: 8px;
}
.skip:focus { top: 1rem; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.narrow { max-width: 46rem; }
.band { padding-block: var(--band); }
.band--stone { background: var(--stone); }
.band--tight { padding-block: calc(var(--band) * 0.6); }

.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 44rem; }
.muted { color: var(--ink-soft); }
.center { text-align: center; }
.stack > * + * { margin-top: 1rem; }

/* ---- Buttons ---------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font: 500 1.05rem/1 var(--display);
  padding: 0.95rem 1.5rem;
  border-radius: 4px;
  border: 2px solid var(--crimson);
  background: var(--crimson);
  color: var(--paper);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn:hover { background: var(--crimson-bright); border-color: var(--crimson-bright); color: var(--paper); }
.btn--ghost { background: transparent; color: var(--crimson); }
.btn--ghost:hover { background: var(--crimson); color: var(--paper); }
.btn--light { background: var(--paper); border-color: var(--paper); color: var(--crimson); }
.btn--light:hover { background: var(--stone); border-color: var(--stone); color: var(--crimson); }
.btn--small { font-size: 0.95rem; padding: 0.6rem 1rem; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

.section-head {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between;
  gap: 1rem 2rem; margin-bottom: 2.5rem;
}
.section-head h2 { margin: 0; }
.section-head p { margin: 0.4rem 0 0; color: var(--ink-soft); }

/* ---- Header ----------------------------------------------------------- */

.site-header {
  position: absolute; inset: 0 0 auto 0; z-index: 20;
  padding-top: env(safe-area-inset-top, 0px);
  color: var(--paper);
}
.site-header__inner {
  width: min(100% - 2 * var(--gutter), 84rem);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  padding-block: 1.1rem;
}
/* The seal keeps its round shape: the global img max-width let the middle
 * column squeeze it narrower than tall when the nav was crowded. */
.site-header .logo { display: block; flex: none; }
.site-header .logo img {
  width: 92px; height: 92px; max-width: none; object-fit: contain;
  filter: drop-shadow(0 4px 14px rgba(0,0,0,.35));
}
.nav { display: flex; gap: 0.25rem 1rem; flex-wrap: nowrap; align-items: center; white-space: nowrap; }
.nav--left { justify-content: flex-end; }
.nav--right { justify-content: flex-start; }
.nav a {
  position: relative;
  color: var(--paper);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  text-shadow: 0 2px 6px rgba(0,0,0,.55);
  padding-block: 0.3rem;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--crimson-bright); transition: width 0.2s;
}
.nav a:hover::after, .nav a[aria-current="page"]::after { width: 100%; }
.nav .btn { text-shadow: none; padding: 0.6rem 1rem; font-size: 0.95rem; }
.nav .btn::after { display: none; }

.menu-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(0,0,0,.35); color: var(--paper);
  border: 1px solid rgba(255,255,255,.5); border-radius: 999px;
  padding: 0.5rem 0.95rem; font: 500 0.95rem var(--body); cursor: pointer;
}
.menu-btn svg { width: 18px; height: 18px; }

/* Off-canvas menu: the full page list, as the WordPress slide-out had. */
.drawer {
  position: fixed; inset: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr min(26rem, 100%);
  visibility: hidden;
}
.drawer[data-open] { visibility: visible; }
.drawer__scrim { background: rgba(0,0,0,.5); opacity: 0; transition: opacity 0.2s; border: 0; }
.drawer[data-open] .drawer__scrim { opacity: 1; }
.drawer__panel {
  background: var(--night); color: var(--paper);
  padding: calc(1.5rem + env(safe-area-inset-top, 0px)) 2rem calc(2rem + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  transform: translateX(100%); transition: transform 0.25s ease;
}
.drawer[data-open] .drawer__panel { transform: none; }
@media (prefers-reduced-motion: reduce) { .drawer__panel, .drawer__scrim { transition: none; } }
.drawer__close {
  background: none; border: 1px solid rgba(255,255,255,.4); color: var(--paper);
  border-radius: 999px; padding: 0.45rem 0.9rem; font: 500 0.9rem var(--body); cursor: pointer;
  float: right;
}
.drawer nav { clear: both; padding-top: 1.5rem; }
.drawer ul { list-style: none; margin: 0; padding: 0; }
.drawer li + li { border-top: 1px solid rgba(255,255,255,.1); }
.drawer a {
  display: block; padding: 0.7rem 0; color: var(--paper); text-decoration: none;
  font: 500 1.2rem var(--display);
}
.drawer a:hover, .drawer a[aria-current="page"] { color: #ff6b84; }
.drawer .group { margin: 1.4rem 0 0.2rem; color: rgba(255,255,255,.55); font-size: 0.85rem; }

/* Laptop widths: the full nav plus the seal is about 1280px wide, so tighten
 * it rather than let it run off the screen. */
@media (min-width: 1151px) and (max-width: 1400px) {
  .site-header__inner { gap: 0.9rem; }
  .nav { column-gap: 0.7rem; }
  .nav a { font-size: 0.86rem; }
  .nav .btn { font-size: 0.86rem; padding: 0.55rem 0.8rem; }
  .sub-toggle { width: 18px; }
  .menu-btn { padding: 0.45rem 0.8rem; font-size: 0.86rem; }
  .site-header .logo img { width: 80px; height: 80px; }
}

@media (max-width: 1150px) {
  .site-header__inner { grid-template-columns: auto 1fr; }
  .site-header .logo { order: -1; }
  .site-header .logo img { width: 72px; height: 72px; }
  .nav--left { display: none; }
  .nav--right { justify-content: flex-end; }
  .nav--right > a:not(.btn) { display: none; }
}
@media (max-width: 420px) {
  .nav--right .btn { display: none; }
}

/* ---- Hero: the rotating church seal ------------------------------------ */

.hero {
  position: relative; isolation: isolate;
  min-height: clamp(26rem, 62vh, 40rem);
  display: grid; place-items: center;
  color: var(--paper); text-align: center;
  background: var(--night) url("/assets/img/seal-still.jpg") center / cover no-repeat;
  overflow: hidden;
}
.hero--home { min-height: max(34rem, 100svh); }
.hero video {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(20,20,22,.55) 0%, rgba(20,20,22,.25) 45%, rgba(20,20,22,.6) 100%);
}
.hero__content { padding: 9rem var(--gutter) 5rem; max-width: 56rem; }
.hero__welcome { font: 600 clamp(2rem, 5vw, 3rem)/1 var(--script); margin: 0 0 0.25rem; }
.hero h1 { color: var(--paper); margin-bottom: 0.4em; text-shadow: 0 3px 18px rgba(0,0,0,.45); }
.hero__title {
  font: 700 clamp(3rem, 9vw, 5.5rem)/1.05 var(--script);
  letter-spacing: 0; margin: 0;
}
.hero__tagline { font-size: clamp(1rem, 2vw, 1.25rem); margin: 0; text-shadow: 0 2px 8px rgba(0,0,0,.5); }

.hero__social {
  position: absolute; left: var(--gutter); bottom: 1.5rem;
  display: flex; gap: 0.6rem;
}
.hero__social a, .socials a {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border-radius: 50%; border: 1px solid rgba(255,255,255,.65); color: var(--paper);
}
.hero__social a:hover { background: var(--crimson); border-color: var(--crimson); }
.hero__social svg, .socials svg { width: 18px; height: 18px; fill: currentColor; }

.sound {
  position: absolute; right: var(--gutter); bottom: 1.5rem;
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(0,0,0,.45); color: var(--paper);
  border: 1px solid rgba(255,255,255,.65); border-radius: 999px;
  padding: 0.55rem 1rem; font: 500 0.95rem var(--body); cursor: pointer;
}
.sound:hover { background: var(--crimson); border-color: var(--crimson); }
.sound svg { width: 18px; height: 18px; fill: currentColor; }
.sound .when-on { display: none; }
.sound[aria-pressed="true"] .when-on { display: inline; }
.sound[aria-pressed="true"] .when-off { display: none; }

/* ---- Media + text splits ---------------------------------------------- */

.split {
  display: grid; gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1.15fr 1fr; align-items: center;
}
.split--flip > :first-child { order: 2; }
.split img { border-radius: var(--radius); width: 100%; object-fit: cover; }
@media (max-width: 820px) {
  .split, .split--flip { grid-template-columns: 1fr; }
  .split--flip > :first-child { order: 0; }
}

.watch { background: var(--crimson); color: var(--paper); }
.watch h2 { color: var(--paper); }
.watch .split img { border-radius: var(--radius); box-shadow: 0 20px 40px rgba(0,0,0,.25); }

.verse-ref { font: 500 1.35rem var(--display); margin: 1.2rem 0 1.6rem; }

/* ---- Collections ------------------------------------------------------ */

.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }

/* A weekly service: photo, day, name, times. */
.service {
  display: grid; grid-template-columns: 9.5rem 1fr; gap: 1.5rem; align-items: center;
  background: #efefef; border-radius: var(--radius); padding: 0.75rem;
}
.service img { width: 100%; aspect-ratio: 8 / 7; object-fit: cover; border-radius: 6px; }
.service__day { margin: 0; color: var(--ink-soft); }
.service h3 { font-size: 1.35rem; margin: 0.2rem 0 0.5rem; }
.service p { margin: 0; }
@media (max-width: 460px) { .service { grid-template-columns: 1fr; } .service img { aspect-ratio: 16 / 9; } }

.ministry-tiles { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.ministry-tiles a {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.3rem 1.4rem; border-radius: var(--radius);
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3);
  color: var(--paper); text-decoration: none; font: 500 1.25rem var(--display);
}
.ministry-tiles a:hover { background: var(--crimson); border-color: var(--crimson); }
.ministry-tiles svg { width: 22px; height: 22px; flex: none; stroke: currentColor; }

.ministries-band {
  color: var(--paper);
  background: #6f6f70 url("/assets/img/texture-grey.jpg") center / cover;
}
.ministries-band h2, .ministries-band a:not(.btn) { color: var(--paper); }

/* Ministry index: alternating photo + name rows. */
.ministry-list { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.ministry {
  display: grid; grid-template-rows: auto 1fr; border-radius: var(--radius); overflow: hidden;
  background: var(--paper); border: 1px solid var(--stone-deep); text-decoration: none; color: var(--ink);
}
.ministry img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ministry div { padding: 1.2rem 1.4rem 1.4rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.ministry h3 { margin: 0; }
.ministry span { color: var(--crimson); font-weight: 600; white-space: nowrap; }
.ministry:hover { border-color: var(--crimson); color: var(--ink); }

/* Events on a photographic band. */
.events-band { background: var(--night) url("/assets/img/road.jpg") center / cover; color: var(--paper); }
/* As on the WordPress site, the road stays put and the page scrolls over it.
 * Touch browsers ignore "fixed" (iOS) or repaint it badly, so there site.js
 * moves the background instead (see "Parallax backgrounds"). */
@media (hover: hover) and (pointer: fine) {
  .events-band { background-attachment: fixed; }
}
.events-band h2 { color: var(--paper); }
.event {
  display: grid; grid-template-columns: 12rem 1fr auto; gap: 1.5rem; align-items: center;
  padding: 1.25rem; border-radius: var(--radius);
  background: rgba(255,255,255,.88); color: var(--ink);
}
.event + .event { margin-top: 1rem; }
.event img { border-radius: 8px; width: 100%; aspect-ratio: 5 / 3; object-fit: cover; }
.event h3 { margin: 0.25rem 0 0.75rem; font-size: 1.35rem; }
.event__when { display: flex; align-items: center; gap: 0.45rem; margin: 0; color: var(--ink-soft); }
.event__when svg { width: 18px; height: 18px; }
.event__zoom { margin: 0; font-size: 0.95rem; color: var(--ink-soft); }
.event__zoom strong { color: var(--ink); font-weight: 600; }
@media (max-width: 820px) { .event { grid-template-columns: 1fr; } .event img { max-width: 18rem; } }

.posts { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.post-card {
  display: grid; grid-template-rows: auto 1fr; border-radius: var(--radius); overflow: hidden;
  background: var(--paper); box-shadow: 0 10px 30px rgba(44,45,46,.12);
  text-decoration: none; color: var(--ink);
}
.post-card img { width: 100%; aspect-ratio: 440 / 230; object-fit: cover; }
.post-card div { padding: 1.4rem; display: flex; flex-direction: column; }
.post-card h3 { margin-bottom: 0.6rem; }
.post-card p { color: var(--ink-soft); font-size: 0.98rem; }
.post-card footer { margin-top: auto; padding-top: 0.5rem; font-size: 0.92rem; }
.post-card:hover { color: var(--ink); box-shadow: 0 14px 34px rgba(195,6,49,.18); }

.products { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.product {
  border: 1px solid var(--stone-deep); border-radius: var(--radius); padding: 1.25rem;
  background: #f4f4f4; display: flex; flex-direction: column; gap: 0.75rem;
}
.product img { background: var(--paper); border-radius: 10px; width: 100%; aspect-ratio: 1; object-fit: contain; padding: 1rem; }
.product h3 { margin: 0.25rem 0 0; }
.product p { margin: 0; }
.product .btn { margin-top: auto; align-self: flex-start; }

/* ---- Scripture and giving --------------------------------------------- */

blockquote { margin: 0; }
.scripture { font-size: 1.15rem; font-style: italic; }
.scripture cite { display: block; font: normal 500 1.15rem var(--display); margin-top: 0.5rem; color: var(--crimson); }

/* As on the WordPress site: grey texture, the white open hand holding a red
 * heart straight on the band (no plate behind it), red Donate button. */
.giving {
  background: #6f6f70 url("/assets/img/texture-grey.jpg") center / cover;
  color: var(--paper); text-align: center;
}
.giving .wrap { max-width: 56rem; }
.giving img { margin: 0 auto 1.75rem; width: 104px; height: 94px; }
.giving blockquote p { font: 500 clamp(1.2rem, 2.3vw, 1.6rem)/1.35 var(--body); margin: 0; }
.giving cite { display: block; font: normal 600 1.1rem var(--body); margin: 1rem 0 1.75rem; }

.ways { display: grid; gap: 2rem 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); text-align: center; }
.ways h3 { margin-bottom: 0.4rem; }
.ways p { margin: 0.2rem 0; }
.ways img { margin: 0.75rem auto 0; }
.way-icon { width: 56px; height: 56px; margin: 0 auto 0.75rem; color: var(--ink); }

/* ---- Long-form pages -------------------------------------------------- */

.prose { max-width: 46rem; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.6em; }
.prose img { border-radius: var(--radius); margin: 2rem 0; }
.prose ul { padding-left: 1.2rem; }
.prose li + li { margin-top: 0.35rem; }
.post-meta { color: var(--ink-soft); margin-bottom: 2rem; }

.leader { display: grid; grid-template-columns: 16rem 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.leader + .leader { margin-top: var(--band); }
.leader img { border-radius: var(--radius); width: 100%; position: sticky; top: 2rem; }
@media (max-width: 760px) { .leader { grid-template-columns: 1fr; } .leader img { position: static; max-width: 18rem; } }

.dept { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.dept img { border-radius: var(--radius); width: 100%; aspect-ratio: 1; object-fit: cover; }
.dept blockquote + blockquote { margin-top: 1.75rem; }
@media (max-width: 760px) { .dept { grid-template-columns: 1fr; } }

.contact-lines { list-style: none; padding: 0; margin: 0 0 2rem; }
.contact-lines li { margin-bottom: 1rem; }
.contact-lines strong { display: block; font: 500 1.15rem var(--display); }

.notice {
  border-left: 4px solid var(--crimson); background: #f7f7f7;
  padding: 1rem 1.25rem; border-radius: 0 8px 8px 0; margin: 1.5rem 0;
}

/* ---- Forms ------------------------------------------------------------ */

.form { display: grid; gap: 1rem; }
.form .row { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.field { display: grid; gap: 0.35rem; }
.field > span, fieldset > legend { font-weight: 600; font-size: 0.95rem; }
.field .req { color: var(--crimson); }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"],
input[type="number"], select, textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: 0.75rem 0.9rem; border: 1px solid #b9b9b9; border-radius: 6px; background: var(--paper);
}
textarea { min-height: 8rem; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--crimson-bright); outline-offset: 1px; border-color: transparent; }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 0.35rem; }
.choices { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; }
.choices label { display: inline-flex; gap: 0.4rem; align-items: center; font-weight: 400; }
.choices input { accent-color: var(--crimson); width: 1.05rem; height: 1.05rem; }
.form-section { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--stone-deep); }
.form-section > h3 { margin-bottom: 1.25rem; }
.form-card { background: var(--paper); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); box-shadow: 0 10px 30px rgba(44,45,46,.1); }
.band--stone .form-card { box-shadow: none; }

.sig { display: grid; gap: 0.35rem; }
.sig canvas {
  width: 100%; height: 150px; touch-action: none;
  border: 1px dashed #9a9a9a; border-radius: 6px; background: #fcfcfc; cursor: crosshair;
}
.sig .sig__bar { display: flex; justify-content: space-between; align-items: center; font-size: 0.9rem; color: var(--ink-soft); }
.sig button { background: none; border: 0; color: var(--crimson); font: 600 0.9rem var(--body); cursor: pointer; padding: 0.2rem; }

.form-status { margin: 0; font-weight: 600; }
.form-status[data-kind="ok"] { color: #1d6b3a; }
.form-status[data-kind="error"] { color: var(--crimson); }
altcha-widget { --altcha-max-width: 100%; }

/* ---- Footer ----------------------------------------------------------- */

.site-footer { background: var(--paper); border-top: 1px solid var(--stone); padding: 4rem 0 calc(2rem + env(safe-area-inset-bottom, 0px)); }
.site-footer .seal { margin: 0 auto 2.5rem; width: 120px; }
.footer-cols { display: grid; gap: 2.5rem; grid-template-columns: 1.3fr 1fr 1fr; }
.footer-cols h2 { font-size: 1.4rem; margin-bottom: 1rem; }
.footer-cols ul { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 1.5rem; }
.footer-cols li { margin-bottom: 0.45rem; break-inside: avoid; }
.footer-cols a { color: var(--ink); text-decoration: none; }
.footer-cols a:hover { color: var(--crimson); }
.socials { display: flex; gap: 0.6rem; margin-top: 1rem; }
.socials a { border-color: var(--stone-deep); color: var(--ink); }
.socials a:hover { background: var(--crimson); border-color: var(--crimson); color: var(--paper); }
.footer-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem;
  border-top: 1px solid var(--stone-deep); margin-top: 3rem; padding-top: 1.5rem; font-size: 0.92rem; color: var(--ink-soft);
}
.footer-base img { width: min(100%, 553px); }
@media (max-width: 860px) { .footer-cols { grid-template-columns: 1fr; } }

/* ---- Video page ------------------------------------------------------- */

.embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.embed iframe, .embed video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---- Dropdown navigation and cart -------------------------------------- */

.nav-item { position: relative; display: inline-flex; align-items: center; gap: 0.1rem; }
.sub-toggle {
  display: inline-grid; place-items: center; width: 22px; height: 22px; padding: 0;
  background: none; border: 0; color: inherit; cursor: pointer;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.5));
}
.sub-toggle svg { width: 16px; height: 16px; transition: transform 0.15s; }
.nav-item[data-open] .sub-toggle svg { transform: rotate(180deg); }
.subnav {
  display: none; position: absolute; top: 100%; left: -0.75rem; z-index: 30;
  min-width: 14rem; list-style: none; margin: 0.5rem 0 0; padding: 0.5rem 0;
  background: var(--paper); border-radius: 10px; box-shadow: 0 16px 40px rgba(0,0,0,.25);
}
/* A bridge over the gap, so moving the mouse down to the menu does not close it. */
.subnav::before { content: ""; position: absolute; top: -0.6rem; left: 0; right: 0; height: 0.6rem; }
.nav--right .subnav { left: auto; right: -0.75rem; }
.nav-item:hover .subnav, .nav-item:focus-within .subnav, .nav-item[data-open] .subnav { display: block; }
.nav .subnav a {
  display: block; padding: 0.55rem 1.1rem; color: var(--ink); text-shadow: none; font-weight: 500;
}
.nav .subnav a::after { display: none; }
.nav .subnav a:hover, .nav .subnav a[aria-current="page"] { background: var(--stone); color: var(--crimson); }

.cart-link {
  position: relative; display: inline-grid; place-items: center; flex: none;
  width: 40px; height: 40px; border-radius: 50%; background: var(--crimson); color: var(--paper);
}
.cart-link:hover { background: var(--crimson-bright); color: var(--paper); }
.cart-link::after { display: none; }
.cart-link svg { width: 20px; height: 20px; }
.cart-count {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 10px; background: var(--paper); color: var(--crimson);
  font: 700 0.75rem/20px var(--body); text-align: center; text-shadow: none;
}

@media (max-width: 1150px) {
  .nav--right .nav-item { display: none; }
}

.ministry-tiles small { display: block; font: 500 0.85rem/1.3 var(--body); opacity: 0.85; margin-top: 0.15rem; }
.dept__name { font: 600 clamp(1.4rem, 3vw, 1.9rem)/1.2 var(--script); color: var(--crimson); margin: -0.4rem 0 1.25rem; }

/* ---- Live content (assets/js/content.js) -------------------------------- */

.muted-light { color: rgba(255,255,255,.85); }

.cal-item {
  display: grid; grid-template-columns: 4.5rem 1fr; gap: 1.25rem; align-items: start;
  padding: 1rem 1.25rem; border-radius: var(--radius); background: rgba(255,255,255,.92); color: var(--ink);
}
.cal-item + .cal-item { margin-top: 1rem; }
.cal-item__date {
  display: grid; place-items: center; padding: 0.5rem 0; border-radius: 10px;
  background: var(--crimson); color: var(--paper); line-height: 1.1;
}
.cal-item__day { font: 500 2rem/1 var(--display); }
.cal-item__month { font-size: 0.85rem; font-weight: 600; }
.cal-item h3 { margin: 0 0 0.35rem; font-size: 1.25rem; }
.cal-item p { margin: 0.15rem 0 0; }
.cal-item__when { color: var(--ink-soft); }

.calendar { background: var(--paper); color: var(--ink); border-radius: var(--radius); padding: clamp(1rem, 3vw, 1.75rem); }
.cal-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.cal-head h3 { margin: 0; }
.cal-nav {
  background: var(--stone); border: 0; border-radius: 999px; padding: 0.5rem 1rem;
  font: 600 0.9rem var(--body); color: var(--ink); cursor: pointer;
}
.cal-nav:hover { background: var(--crimson); color: var(--paper); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; background: var(--stone-deep); border: 1px solid var(--stone-deep); }
.cal-wd { background: var(--stone); text-align: center; font-weight: 600; font-size: 0.85rem; padding: 0.4rem; }
.cal-day { background: var(--paper); min-height: 6.5rem; padding: 0.35rem; display: flex; flex-direction: column; gap: 0.2rem; }
.cal-day.is-other { background: #f5f5f5; }
.cal-day__n { font-size: 0.85rem; color: var(--ink-soft); }
.cal-day.is-today .cal-day__n { color: var(--crimson); font-weight: 700; }
.cal-day button {
  background: none; border: 0; padding: 0.1rem 0; text-align: left; cursor: pointer;
  color: var(--crimson); font: 600 0.78rem/1.25 var(--body);
}
.cal-day button:hover { text-decoration: underline; }
.cal-list { margin-top: 2rem; }
.calendar .cal-item { background: #f7f7f7; }
@media (max-width: 700px) { .cal-grid { display: none; } .cal-list { margin-top: 0.5rem; } }

.comments { margin-top: 3rem; border-top: 1px solid var(--stone-deep); padding-top: 2rem; }
.comment { border-top: 1px solid var(--stone-deep); padding: 1rem 0; }
.comment p { margin: 0 0 0.35rem; }
.comment__body { white-space: pre-line; }
.comment-form { margin-top: 2rem; }

.video-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.video-filters button {
  border: 1px solid var(--stone-deep); background: var(--paper); border-radius: 999px;
  padding: 0.45rem 1rem; font: 600 0.9rem var(--body); cursor: pointer; color: var(--ink);
}
.video-filters button[aria-pressed="true"] { background: var(--crimson); border-color: var(--crimson); color: var(--paper); }
.video-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.video-card { margin: 0; }
.video-card video { width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 10px; }
.video-card figcaption h3 { margin: 0.75rem 0 0.25rem; font-size: 1.2rem; }

.episode-feature, .episode { display: grid; grid-template-columns: 12rem 1fr; gap: 1.5rem; align-items: start; }
.episode-feature { background: var(--paper); border-radius: var(--radius); padding: 1.25rem; }
.episode-feature img, .episode img { width: 100%; border-radius: 10px; aspect-ratio: 1; object-fit: cover; }
.episode { border-top: 1px solid var(--stone-deep); padding: 1.25rem 0; }
.episode h3, .episode-feature h3 { margin: 0 0 0.35rem; }
@media (max-width: 640px) { .episode-feature, .episode { grid-template-columns: 1fr; } .episode-feature img, .episode img { max-width: 12rem; } }
audio { width: 100%; margin-top: 0.75rem; }
.podcast-links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }

.cart-line {
  display: grid; grid-template-columns: 1fr 5rem 6rem auto; gap: 1rem; align-items: center;
  padding: 1rem 0; border-bottom: 1px solid var(--stone-deep);
}
.cart-line input { padding: 0.5rem; }
@media (max-width: 560px) { .cart-line { grid-template-columns: 1fr 4.5rem; } }
.cart-total { text-align: right; font: 500 1.4rem var(--display); margin-top: 1.25rem; }
.product__added { font-size: 0.9rem; color: #1d6b3a; margin: 0; }

.affirm { padding: 1.25rem 0; border-bottom: 1px solid var(--stone-deep); }
.affirm h3 { font-size: 1.25rem; margin-bottom: 0.35rem; }
.affirm p { margin: 0; }
.affirm__who { font-style: italic; color: var(--crimson); }
.post-body img { border-radius: var(--radius); }

/* A lone "coming soon" note spans the product grid instead of sitting in its first column. */
.products > p:only-child { grid-column: 1 / -1; }
.products--center > p:only-child { text-align: center; }

/* ---- Motion and hover (assets/js/site.js adds the classes) --------------- */
/*
 * The WordPress home page animated its photos on hover: one zoomed in, one
 * shrank, one rotated. These carry the same idea across the site, with a
 * different movement per kind of card so it does not all feel the same.
 * Everything here is skipped for people who ask for reduced motion.
 */

@media (prefers-reduced-motion: no-preference) {
  /* Scroll reveal: only hidden once site.js has marked the page, so the
   * content is never invisible without JavaScript. */
  .js-motion [data-reveal] {
    opacity: 0; transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.7,.2,1);
    transition-delay: var(--reveal-delay, 0s);
  }
  .js-motion [data-reveal="left"] { transform: translateX(-36px); }
  .js-motion [data-reveal="right"] { transform: translateX(36px); }
  .js-motion [data-reveal="zoom"] { transform: scale(0.94); }
  .js-motion [data-reveal].is-in { opacity: 1; transform: none; }
  /* Content waiting to slide in from the side must not widen the page. */
  .js-motion main { overflow-x: clip; }

  /* Cards that clip their photo: the photo zooms, the card lifts. */
  .post-card, .ministry, .product, .service, .cal-item, .event {
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.2s;
  }
  .post-card img, .ministry img { transition: transform 0.9s cubic-bezier(.2,.7,.2,1); }
  .post-card:hover, .ministry:hover { transform: translateY(-6px); }
  .post-card:hover img, .ministry:hover img { transform: scale(1.08); }
  .ministry:hover { box-shadow: 0 16px 34px rgba(44,45,46,.16); }

  /* Products: the item rises off its white plate. */
  .product img { transition: transform 0.5s cubic-bezier(.2,.7,.2,1); }
  .product:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(44,45,46,.14); }
  .product:hover img { transform: scale(1.06) translateY(-4px); }

  /* Weekly services: the photo turns a little, as the old site's did. */
  .service img { transition: transform 0.6s cubic-bezier(.2,.7,.2,1), box-shadow 0.6s; }
  .service:hover { box-shadow: 0 12px 28px rgba(44,45,46,.14); }
  .service:hover img { transform: rotate(-4deg) scale(1.04); box-shadow: 0 10px 20px rgba(0,0,0,.2); }

  /* Events and department photos. */
  .cal-item:hover, .event:hover { transform: translateX(6px); }
  .dept img, .leader img, .episode-feature img, .episode img, .prose img, .post-body img {
    transition: transform 0.9s cubic-bezier(.2,.7,.2,1), box-shadow 0.9s;
  }
  .dept img:hover, .episode-feature img:hover, .episode img:hover, .prose img:hover, .post-body img:hover {
    transform: scale(1.03); box-shadow: 0 18px 36px rgba(0,0,0,.18);
  }

  /* Big feature photos (Watch Online, The Kingdom, Our Ministries) follow
   * the pointer in 3D; site.js sets --tilt-x / --tilt-y. */
  .split > img {
    transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) scale(var(--tilt-s, 1));
    transition: transform 0.6s cubic-bezier(.2,.7,.2,1), box-shadow 0.6s;
    will-change: transform;
  }
  .split > img.is-tilting { transition: transform 0.12s linear, box-shadow 0.6s; box-shadow: 0 26px 50px rgba(0,0,0,.28); }

  /* Buttons and links. */
  .btn { transition: background-color 0.15s, border-color 0.15s, color 0.15s, transform 0.2s, box-shadow 0.2s; }
  .btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,.18); }
  .btn:active { transform: translateY(0); box-shadow: none; }
  .ministry-tiles a { transition: background-color 0.2s, border-color 0.2s, transform 0.25s; }
  .ministry-tiles a:hover { transform: translateY(-3px); }
  .ministry-tiles svg { transition: transform 0.25s; }
  .ministry-tiles a:hover svg { transform: translateX(5px); }
  .hero__social a, .socials a, .cart-link { transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.25s; }
  .hero__social a:hover, .socials a:hover, .cart-link:hover { transform: translateY(-3px) rotate(-8deg); }
  .giving img { transition: transform 0.6s cubic-bezier(.2,.7,.2,1); }
  .giving:hover img { transform: scale(1.1) rotate(-6deg); }
  .site-footer .seal { transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
  .site-footer .seal:hover { transform: rotate(360deg); }
}

/* Back to top: appears once the visitor is a screen or two down. */
.to-top {
  position: fixed; right: var(--gutter); bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px)); z-index: 40;
  display: grid; place-items: center; width: 46px; height: 46px; padding: 0;
  border: 0; border-radius: 50%; background: var(--crimson); color: var(--paper); cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity 0.25s, transform 0.25s, background-color 0.15s;
}
.to-top.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--crimson-bright); }
.to-top svg { width: 22px; height: 22px; }
