/* ==========================================================================
   Stan Pody Ministries — site.css

   Design direction: "A Dark Room, Warm Light"
   The room stays dark — that's true to how Stan is actually lit on stage —
   but the light is warm gold throughout, not electric blue. The stage wall
   behind him is real, but it's pushed back into the shadows as a faint
   backdrop tint; it never competes with the warm key light for attention.

   Signature element: .hero__glow — a soft warm halo behind the hero name,
   breathing gently, then recurring as the hairline rule between sections.
   ========================================================================== */

/* --- Tokens --------------------------------------------------------------- */

:root {
  --night:     #15110C;  /* the room — warm near-black, not blue-black */
  --deep:      #1D1712;  /* alternating panel */
  --panel:     #251D15;  /* raised surface */
  --wall:      #33404F;  /* the stage wall — pushed back to a faint backdrop tint */
  --wall-deep: #1E2732;
  --glow:      #C9932F;  /* warm amber glow — was the cyan wall-edge, now gold */
  --warm:      #E8A64A;  /* key light on him — the accent */
  --warm-lift: #F6C57E;
  --ivory:     #F5F0E6;  /* warmed ivory */
  --dim:       #B3A28C;  /* secondary text — warm taupe, not cool blue-grey */
  --dimmer:    #7A6C58;

  --rule:      rgba(201, 147, 47, .18);  /* warm gold hairline */
  --rule-warm: rgba(232, 166, 74, .34);

  --display: "Archivo", system-ui, -apple-system, sans-serif;
  --serif:   "Newsreader", Georgia, "Times New Roman", serif;
  --util:    "Archivo", system-ui, -apple-system, sans-serif;

  --page:   1180px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --sect:   clamp(4.5rem, 9vw, 8rem);
  --ease:   cubic-bezier(.2, .7, .3, 1);
}

/* --- Reset ---------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--night);
  color: var(--ivory);
  font-family: var(--serif);
  font-size: clamp(1.0625rem, 1vw, 1.15rem);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; display: block; }
a { color: var(--glow); text-underline-offset: 3px; }
a:hover { color: var(--warm-lift); }

:focus-visible { outline: 2px solid var(--warm); outline-offset: 3px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--warm); color: var(--night);
  padding: .75rem 1.25rem;
  font-family: var(--util); font-weight: 700;
}
.skip:focus { left: 1rem; top: 1rem; }

/* --- Layout --------------------------------------------------------------- */

.wrap {
  width: 100%; max-width: var(--page);
  margin-inline: auto; padding-inline: var(--gutter);
}

.band { padding-block: var(--sect); position: relative; }
.band--deep  { background: var(--deep); }
.band--night { background: var(--night); }

/* the light-wall rule between sections */
.band--ruled::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg,
    transparent, var(--glow) 22%, var(--warm-lift) 50%, var(--glow) 78%, transparent);
  opacity: .5;
}

.cols {
  display: grid; gap: clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}
.cols--sidebar { grid-template-columns: 1.15fr .85fr; align-items: center; }
.cols--flip    { grid-template-columns: .85fr 1.15fr; align-items: center; }
@media (max-width: 54rem) {
  .cols--sidebar, .cols--flip { grid-template-columns: 1fr; }
  .cols--flip > :first-child { order: 2; }
}

/* --- Type ----------------------------------------------------------------- */

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 125%;
  text-transform: uppercase;
  line-height: .98;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.6rem, 7.5vw, 5.5rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3.1rem); }
h3 {
  font-size: 1.1rem; font-stretch: 110%; letter-spacing: .02em;
  line-height: 1.25; margin-bottom: .6em;
}

p { margin: 0 0 1.15em; max-width: 66ch; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--util);
  font-size: .72rem; font-weight: 600;
  letter-spacing: .24em; text-transform: uppercase;
  color: var(--warm);
  margin: 0 0 1.1rem;
}

.lede {
  font-size: clamp(1.2rem, 1.7vw, 1.45rem);
  line-height: 1.55;
  color: var(--ivory);
  max-width: 38ch;
}

.muted { color: var(--dim); }

/* scripture / pull quote */
.verse {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  font-style: italic;
  line-height: 1.45;
  color: var(--ivory);
  border-left: 2px solid var(--warm);
  padding-left: clamp(1rem, 2.5vw, 2rem);
  margin: 0;
  max-width: 32ch;
}
.verse cite {
  display: block;
  margin-top: 1rem;
  font-family: var(--util); font-style: normal;
  font-size: .74rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--warm);
}

.verse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.75rem 2.5rem;
  margin-top: 2.5rem;
}
.verse-grid .verse { font-size: clamp(1.05rem, 1.4vw, 1.2rem); max-width: none; }

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

.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--util);
  font-size: .78rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none;
  padding: .95rem 1.6rem;
  border: 1.5px solid var(--warm);
  background: var(--warm); color: var(--night);
  cursor: pointer;
  transition: background .22s var(--ease), color .22s var(--ease),
              transform .22s var(--ease), box-shadow .22s var(--ease);
}
.btn:hover {
  background: var(--warm-lift); color: var(--night);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -12px rgba(232, 166, 74, .7);
}

.btn--ghost {
  background: transparent; color: var(--glow); border-color: var(--rule);
}
.btn--ghost:hover {
  background: transparent; color: var(--night);
  background: var(--glow); border-color: var(--glow);
  box-shadow: 0 10px 30px -12px rgba(201, 147, 47, .55);
}

.actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }

/* --- Masthead ------------------------------------------------------------- */

.masthead {
  position: sticky; top: 0; z-index: 100;
  background: rgba(21, 17, 12, .88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}
.masthead__inner {
  max-width: var(--page); margin-inline: auto;
  padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 4.25rem;
}

.wordmark { text-decoration: none; display: block; line-height: 1; }
.wordmark__name {
  display: block;
  font-family: var(--display); font-weight: 800; font-stretch: 118%;
  font-size: 1rem; letter-spacing: .04em; text-transform: uppercase;
  color: var(--ivory);
}
.wordmark__sub {
  display: block; margin-top: .28rem;
  font-family: var(--util); font-size: .58rem; font-weight: 600;
  letter-spacing: .34em; text-transform: uppercase;
  color: var(--warm);
}

.nav { display: flex; align-items: center; gap: .2rem; }
.nav a {
  position: relative;
  font-family: var(--util);
  font-size: .74rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--dim); text-decoration: none;
  padding: .7rem .9rem;
  transition: color .2s var(--ease);
}
.nav a::after {
  content: ""; position: absolute;
  left: .9rem; right: .9rem; bottom: .35rem; height: 1.5px;
  background: var(--glow);
  box-shadow: 0 0 8px var(--glow);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav a:hover { color: var(--ivory); }
.nav a:hover::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--ivory); }

.nav .nav__give {
  margin-left: .6rem;
  background: var(--warm); color: var(--night);
  border-radius: 0;
  font-weight: 700;
  padding: .7rem 1.2rem;
}
.nav .nav__give::after { display: none; }
.nav .nav__give:hover { background: var(--warm-lift); color: var(--night); }

.navToggle {
  display: none;
  background: none; border: 1px solid var(--rule); color: var(--ivory);
  font-family: var(--util); font-size: .68rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  padding: .6rem .9rem; cursor: pointer;
}

@media (max-width: 54rem) {
  .navToggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--night);
    border-bottom: 1px solid var(--rule);
    padding: .5rem var(--gutter) 1.5rem;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .9rem 0; font-size: .85rem; }
  .nav a::after { left: 0; right: 0; bottom: .5rem; }
  .nav .nav__give { margin: 1rem 0 0; justify-content: center; text-align: center; }
}

/* --- Hero ----------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--night);
  min-height: min(88vh, 46rem);
  display: flex; align-items: flex-end;
}

.hero__video {
  position: absolute; inset: 0; z-index: -3;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .55;
}

/* the light wall — the signature */
.hero__glow {
  position: absolute; z-index: -2;
  inset: -20% -10% auto -10%;
  height: 90%;
  --glow-wall: .44;
  --glow-edge: .26;
  background:
    radial-gradient(58% 70% at 50% 42%, rgba(201, 147, 47, var(--glow-wall)), transparent 72%),
    radial-gradient(34% 44% at 52% 38%, rgba(246, 197, 126, var(--glow-edge)), transparent 76%);
  filter: blur(6px);
  animation: breathe 9s ease-in-out infinite;
  pointer-events: none;
}
@keyframes breathe {
  0%, 100% { opacity: .72; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.05); }
}

.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg,
    rgba(21, 17, 12, .58) 0%,
    rgba(21, 17, 12, .30) 42%,
    rgba(21, 17, 12, .88) 82%,
    var(--night) 100%);
}

.hero__inner { padding-block: clamp(6rem, 14vw, 10rem) clamp(3rem, 6vw, 4.5rem); }

/* interior page headers — same light wall, less of it */
.hero--page { min-height: min(48vh, 26rem); }
.hero--page h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); }
.hero--page .hero__inner {
  padding-block: clamp(4.5rem, 9vw, 7rem) clamp(2.5rem, 4vw, 3.5rem);
}
.hero--page .hero__glow {
  inset: -30% -10% auto -10%; height: 110%;
  --glow-wall: .70; --glow-edge: .44;
}

.hero h1 { margin-bottom: 1.25rem; }
.hero h1 .is-warm { color: var(--warm); }

/* the three-fold gift line */
.gift {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: .55rem 1rem;
  margin: 0 0 1.6rem;
  padding: 0; list-style: none;
}
.gift li {
  font-family: var(--util);
  font-size: .76rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--ivory);
}
.gift li + li::before {
  content: "";
  display: inline-block;
  width: 5px; height: 5px;
  margin-right: 1rem;
  background: var(--warm);
  transform: translateY(-3px) rotate(45deg);
}

/* --- The board (next meeting + itinerary) --------------------------------- */

.board {
  border: 1px solid var(--rule);
  background: linear-gradient(180deg, rgba(37, 29, 21, .9), rgba(29, 23, 18, .9));
  backdrop-filter: blur(6px);
}
.board__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: .9rem 1.25rem;
  border-bottom: 1px solid var(--rule);
  font-family: var(--util);
  font-size: .66rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--warm);
}
.board__list { list-style: none; margin: 0; padding: 0; }
.board__foot {
  padding: .9rem 1.25rem;
  border-top: 1px solid var(--rule);
  font-family: var(--util); font-size: .72rem;
  letter-spacing: .12em; text-transform: uppercase;
}
.board__foot a { text-decoration: none; }

.stop {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid rgba(201, 147, 47, .12);
}
.stop:last-child { border-bottom: 0; }

.stop__when {
  font-family: var(--util);
  text-align: center;
  border-right: 1px solid var(--rule);
  padding-right: 1rem;
}
.stop__mon {
  display: block;
  font-size: .64rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--warm);
}
.stop__day {
  display: block;
  font-family: var(--display); font-weight: 800; font-stretch: 112%;
  font-size: 1.5rem; line-height: 1.1;
  color: var(--ivory);
}
.stop__yr {
  display: block;
  font-size: .58rem; letter-spacing: .14em;
  color: var(--dimmer);
}

.stop__what { min-width: 0; }
.stop__title {
  font-family: var(--util);
  font-size: .98rem; font-weight: 700;
  letter-spacing: .01em;
  margin: 0 0 .2rem; color: var(--ivory);
}
.stop__where,
.stop__times {
  font-family: var(--util);
  font-size: .8rem; font-weight: 400;
  margin: 0; color: var(--dim);
}
.stop__times { color: var(--dimmer); margin-top: .15rem; }
.stop__note {
  font-family: var(--util); font-size: .78rem;
  color: var(--glow); margin: .35rem 0 0;
}

.stop--past { opacity: .5; }

/* --- Ambient background video --------------------------------------------
   A section with a muted looping clip playing behind the text, instead of
   a boxed player someone has to click. Same gating as the hero (site.js):
   desktop + full motion + non-metered only, poster frame everywhere else.
   ========================================================================== */

.ambient {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--night);
  min-height: min(62vh, 30rem);
  display: flex;
  align-items: center;
}
.ambient__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .38;
}
.ambient::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(21, 17, 12, .72) 0%,
    rgba(21, 17, 12, .40) 45%,
    rgba(21, 17, 12, .82) 100%);
}
.ambient__inner { position: relative; z-index: 1; padding-block: clamp(3rem, 7vw, 5rem); }

/* --- Gallery ---------------------------------------------------------------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 14px;
  margin-top: 2.5rem;
}
.gallery .shot { aspect-ratio: 4 / 5; }
.gallery .shot:nth-child(3n+2) { aspect-ratio: 3 / 4; }

/* --- Cards ---------------------------------------------------------------- */


.card {
  border: 1px solid var(--rule);
  background: var(--panel);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.card:hover { border-color: var(--rule-warm); transform: translateY(-3px); }

.card__media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--night); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }

.card__body { padding: 1.5rem 1.4rem 1.6rem; flex: 1; }
.card__kicker {
  font-family: var(--util);
  font-size: .62rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--warm);
  margin: 0 0 .7rem;
}
.card p { font-size: .95rem; color: var(--dim); }
.card h3 { color: var(--ivory); }

/* --- Figures -------------------------------------------------------------- */

.shot {
  position: relative; margin: 0;
  border: 1px solid var(--rule);
  background: var(--night);
  overflow: hidden;
}
.shot img,
.shot video { width: 100%; height: 100%; object-fit: cover; }
.shot--tall { aspect-ratio: 4 / 5; }
.shot--wide { aspect-ratio: 16 / 9; }

.shot figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2.5rem 1.1rem .9rem;
  background: linear-gradient(180deg, transparent, rgba(21, 17, 12, .92));
  font-family: var(--util);
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--dim);
}

.frame-video {
  position: relative; aspect-ratio: 16 / 9;
  border: 1px solid var(--rule); background: var(--night);
  overflow: hidden;
}
.frame-video iframe,
.frame-video video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; border: 0;
  object-fit: cover;
}

/* --- Giving --------------------------------------------------------------- */

.give {
  display: flex; flex-direction: column;
  border: 1px solid var(--rule);
  background: var(--panel);
  padding: 1.9rem 1.6rem;
}
.give__label {
  font-family: var(--util);
  font-size: .62rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--warm); margin: 0 0 .8rem;
}
.give__handle {
  font-family: var(--display); font-weight: 800; font-stretch: 110%;
  font-size: 1.35rem; text-transform: none;
  color: var(--ivory); margin: 0 0 .7rem;
  word-break: break-word;
}
.give p { font-size: .92rem; color: var(--dim); }
.give .btn { margin-top: auto; align-self: flex-start; }

.addr {
  font-family: var(--util); font-style: normal;
  font-size: 1rem; line-height: 1.75;
  color: var(--ivory);
  border-left: 2px solid var(--warm);
  padding-left: 1.1rem;
}

/* --- Form ----------------------------------------------------------------- */

.form { display: grid; gap: 1.2rem; max-width: 38rem; }
.field { display: grid; gap: .45rem; }
.field label {
  font-family: var(--util);
  font-size: .66rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--warm);
}
.field input,
.field select,
.field textarea {
  font-family: var(--serif); font-size: 1rem;
  color: var(--ivory);
  background: rgba(21, 17, 12, .6);
  border: 1px solid var(--rule);
  padding: .85rem 1rem; width: 100%;
  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(--glow);
  box-shadow: 0 0 0 3px rgba(201, 147, 47, .16);
}
.field textarea { min-height: 10rem; resize: vertical; }
.field select option { color: #000; }

.hp { position: absolute; left: -9999px; opacity: 0; }

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

.footer {
  background: var(--night);
  border-top: 1px solid var(--rule);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  color: var(--dim);
}
.footer__grid {
  display: grid; gap: 2rem;
  grid-template-columns: 1.5fr 1fr 1fr;
  padding-bottom: 2.5rem;
}
@media (max-width: 48rem) { .footer__grid { grid-template-columns: 1fr; } }

.footer h4 {
  font-family: var(--util);
  font-size: .64rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--warm); margin: 0 0 1rem;
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: .6rem; font-family: var(--util); font-size: .88rem; }
.footer li a { color: var(--dim); text-decoration: none; }
.footer li a:hover { color: var(--warm-lift); }
.footer p { font-size: .92rem; }

.footer__base {
  border-top: 1px solid var(--rule);
  padding-top: 1.5rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem;
  font-family: var(--util); font-size: .72rem;
  color: var(--dimmer);
}

/* --- Reveal --------------------------------------------------------------- */

.reveal {
  opacity: 0; transform: translateY(1rem);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

/* --- Reduced motion ------------------------------------------------------- */

@media (max-width: 48rem) {
  .hero { min-height: min(76vh, 38rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero__glow { animation: none; opacity: .85; }
  .hero__video { display: none; }
}
