/* ============================================================
   GOLDENLAND FUNDAMENTAL BAPTIST CHURCH — 40TH ANNIVERSARY
   Design tokens drawn from the church seal (1986) and the
   40th anniversary emblem: deep green, antique gold, parchment
   cream, laurel + open book + flame motifs.
   ============================================================ */

:root{
  /* --- Color: named from the seal & anniversary emblem --- */
  --green-deep:   #0F3D2E;   /* seal ring background */
  --green:        #14532D;   /* primary brand green */
  --green-soft:   #1E6B45;   /* lighter green for hovers */
  --gold:         #C6A24D;   /* seal lettering gold */
  --gold-bright:  #E7C873;   /* flame highlight gold */
  --gold-line:    #C9A227;   /* hairline / rule gold */
  --cream:        #FAF3E4;   /* parchment page background */
  --cream-2:      #F1E6CC;   /* card / panel background */
  --paper:        #FFFDF8;   /* open-book page white */
  --ink:          #241C12;   /* body text, warm near-black */
  --ink-soft:     #4A4133;   /* secondary text */
  --danger:       #8C2F2F;
  --danger-bg:    #F6E4E1;
  --ok:           #1E6B45;
  --ok-bg:        #E4F0E8;

  /* --- Type --- */
  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* --- Scale (Elements of Typographic Style-ish ratio ~1.25) --- */
  --step--1: 0.8rem;
  --step-0:  1rem;
  --step-1:  1.25rem;
  --step-2:  1.563rem;
  --step-3:  1.953rem;
  --step-4:  2.441rem;
  --step-5:  3.052rem;
  --step-6:  3.815rem;

  --radius-sm: 4px;
  --radius-md: 8px;
  --container: 1120px;
  --container-narrow: 760px;

  --shadow-card: 0 1px 2px rgba(36,28,18,0.06), 0 8px 24px rgba(36,28,18,0.07);
  --shadow-lift: 0 20px 40px rgba(15,61,46,0.16), 0 4px 12px rgba(15,61,46,0.08);
  --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------------- Reset ---------------- */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; scroll-padding-top: 76px; }
body{
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; }
button{ font-family: inherit; }
h1,h2,h3,h4{ font-family: var(--font-display); margin: 0 0 0.5em; color: var(--green-deep); font-weight: 600; }
p{ margin: 0 0 1em; }
ul{ margin:0; padding:0; list-style:none; }

/* Visible keyboard focus everywhere */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible{
  outline: 3px solid var(--gold-line);
  outline-offset: 2px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   PREMIUM MOTION SYSTEM — shared reveal/hover/interaction layer,
   applied automatically sitewide by assets/js/motion.js (see that
   file for exactly which existing classes it targets). Everything
   here is caught by the prefers-reduced-motion override above too.
   ============================================================ */

/* Reveal-on-scroll: motion.js adds .reveal-init then .in-view once
   an element scrolls into view. Elements never inspected by motion.js
   simply never get .reveal-init, so they render normally by default —
   this is purely additive, nothing depends on it to be visible. */
.reveal-init{
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease-premium), transform .8s var(--ease-premium);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal-init.in-view{ opacity: 1; transform: translateY(0); }

/* Text reveal: major headings get their words wrapped and staggered in. */
.text-reveal-word{
  display: inline-block;
  opacity: 0;
  transform: translateY(0.5em);
  transition: opacity .6s var(--ease-premium), transform .6s var(--ease-premium);
  transition-delay: var(--reveal-delay, 0s);
}
.text-reveal-word.in-view{ opacity: 1; transform: translateY(0); }

/* Image reveal: soft scale + fade — a touch slower for a premium feel. */
.img-reveal-init{
  opacity: 0; transform: scale(1.05);
  transition: opacity 1s var(--ease-premium), transform 1s var(--ease-premium);
  transition-delay: var(--reveal-delay, 0s);
}
.img-reveal-init.in-view{ opacity: 1; transform: scale(1); }

/* Card tilt: motion.js sets --tiltx/--tilty via pointermove on
   fine-pointer devices; this just needs the property to exist. */
.tilt-card{
  transform: perspective(900px) rotateX(var(--tilty, 0deg)) rotateY(var(--tiltx, 0deg));
}
.tilt-card.tilt-live{ transition: none; }
.tilt-card:not(.tilt-live){ transition: transform .5s var(--ease-premium), box-shadow .4s var(--ease-premium); }

/* Scroll progress bar (created by motion.js) */
#scrollProgress{
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--gold-line), var(--gold-bright));
  z-index: 300; pointer-events: none;
}

/* Glassmorphism utility — used sparingly (sticky header, floating buttons) */
.glass{
  background: rgba(255,255,255,0.14);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.22);
}

/* Floating decorative gradient blobs — hero/event-banner accents only */
.motion-blob{
  position: absolute; border-radius: 50%; filter: blur(50px);
  pointer-events: none; z-index: -1; opacity: .5;
  animation: motionFloat 9s ease-in-out infinite;
}
@keyframes motionFloat{
  0%, 100%{ transform: translateY(0) translateX(0); }
  50%{ transform: translateY(-18px) translateX(10px); }
}

/* ---------------- Layout helpers ---------------- */
.container{ max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container-narrow{ max-width: var(--container-narrow); margin: 0 auto; padding: 0 20px; }
.band{ padding: 72px 0; }
.band-tight{ padding: 48px 0; }
@media (max-width: 640px){
  .band{ padding: 48px 0; }
  .band-tight{ padding: 32px 0; }
}
.band-green{ background: var(--green-deep); color: var(--cream); }
.band-green h2, .band-green h3{ color: var(--paper); }
.band-cream2{ background: var(--cream-2); }

.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-line);
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: var(--step--1);
  margin-bottom: 10px;
}
.eyebrow svg{ width: 16px; height: 16px; flex: none; }

.section-head{ max-width: 620px; margin-bottom: 36px; }
.section-head h2{ font-size: var(--step-4); line-height: 1.15; }
.section-head p{ color: var(--ink-soft); font-size: var(--step-1); }
.band-green .section-head p{ color: #D9E6DE; }

.rule-gold{
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-line) 15%, var(--gold-line) 85%, transparent);
  margin: 0;
}

/* ---------------- Buttons ---------------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform .3s var(--ease-premium), box-shadow .3s var(--ease-premium), background-color .3s var(--ease-premium), border-color .3s var(--ease-premium);
  line-height: 1.2;
}
.btn:hover{ transform: translateY(-2px); box-shadow: 0 10px 22px rgba(15,61,46,0.16); }
.btn:active{ transform: translateY(0) scale(.97); box-shadow: none; transition-duration: .15s; }
.btn-gold{
  background: var(--gold-line);
  color: var(--green-deep);
}
.btn-gold:hover{ background: var(--gold-bright); }
.btn-outline{
  background: transparent;
  border-color: currentColor;
  color: inherit;
}
.btn-outline:hover{ background: rgba(255,255,255,0.08); }
.band:not(.band-green) .btn-outline{ border-color: var(--green-deep); color: var(--green-deep); }
.band:not(.band-green) .btn-outline:hover{ background: rgba(15,61,46,0.06); }
.btn-primary{ background: var(--green-deep); color: var(--paper); }
.btn-primary:hover{ background: var(--green-soft); }
.btn-danger{ background: var(--danger); color: #fff; }
.btn-danger:hover{ filter: brightness(1.08); }
.btn-sm{ padding: 8px 14px; font-size: 0.85rem; }
.btn-block{ width: 100%; }
.btn[disabled]{ opacity: 0.55; cursor: not-allowed; }

/* ---------------- Site header ---------------- */
.site-header{
  position: sticky; top: 0; z-index: 40;
  background: rgba(250,243,228,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(199,162,77,0.35);
  transition: background-color .4s var(--ease-premium), box-shadow .4s var(--ease-premium), backdrop-filter .4s var(--ease-premium);
}
.site-header.scrolled{
  background: rgba(250,243,228,0.85);
  backdrop-filter: blur(16px);
  box-shadow: 0 4px 24px rgba(15,61,46,0.1);
}
.site-header .row{
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px; max-width: var(--container); margin: 0 auto;
}
.brand{ display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img{ width: 40px; height: 40px; border-radius: 50%; }
.brand-text{ font-family: var(--font-display); font-weight: 600; color: var(--green-deep); line-height: 1.1; }
.brand-text small{ display:block; font-family: var(--font-body); font-weight: 500; color: var(--gold-line); font-size: 0.7rem; letter-spacing: 0.03em; }

/* ---------------- Footer ---------------- */
.site-footer{ background: var(--green-deep); color: #D9E6DE; padding: 48px 0 24px; }
.site-footer a{ color: var(--gold-bright); text-decoration: none; }
.footer-grid{ display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; margin-bottom: 32px; }
.footer-grid h4{ color: var(--paper); font-size: 0.85rem; letter-spacing: 0.03em; margin-bottom: 12px; }
.footer-grid li{ margin-bottom: 8px; font-size: 0.9rem; }
.footer-bottom{ border-top: 1px solid rgba(255,255,255,0.15); padding-top: 18px; font-size: 0.8rem; color: #A9C2B4; display:flex; justify-content: space-between; flex-wrap:wrap; gap:8px; }

/* ---------------- HERO (landing page, single orchestrated moment) ---------------- */
.hero{
  position: relative; z-index: 0;
  background: radial-gradient(ellipse at 50% -10%, #164a37 0%, var(--green-deep) 55%, #0a2b20 100%);
  color: var(--cream);
  padding: 88px 0 96px;
  overflow: hidden;
  text-align: center;
}
.hero::before{
  /* subtle engraved ring texture, echoes the seal's double ring */
  content:"";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 50% 15%, rgba(198,162,77,0.16), transparent 42%);
  pointer-events: none;
}
/* Background film: the "40" photo mosaic (hero-film.js). The shade keeps the
   headline readable; both stay invisible until the film actually starts. */
.hero-film{ position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; opacity: 0; transition: opacity 1.6s ease; }
.hero-film-shade{
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 1.6s ease;
  background:
    radial-gradient(ellipse 46% 52% at 50% 50%, rgba(8,36,26,.72), rgba(8,36,26,.35) 70%, rgba(8,36,26,.12)),
    linear-gradient(180deg, rgba(10,43,32,.35), transparent 22%, transparent 78%, rgba(10,43,32,.85));
}
.hero-film.on, .hero-film.on + .hero-film-shade{ opacity: 1; }
.hero-film.on ~ .container h1, .hero-film.on ~ .container .lede, .hero-film.on ~ .container .hero-eyebrow{ text-shadow: 0 2px 18px rgba(0,0,0,.65); }

.hero-emblem{
  width: 168px; height: 168px; margin: 0 auto 28px;
  position: relative;
}
.hero-emblem svg{ width:100%; height:100%; display:block; }
.hero-eyebrow{
  color: var(--gold-bright); font-weight: 600; letter-spacing: 0.04em;
  font-size: 0.85rem; margin-bottom: 14px;
  opacity: 0; transform: translateY(6px);
  animation: riseIn .7s ease forwards;
  animation-delay: 1.05s;
}
.hero h1{
  color: var(--paper);
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.06;
  margin-bottom: 18px;
  opacity: 0; transform: translateY(10px);
  animation: riseIn .8s ease forwards;
  animation-delay: 1.2s;
}
.hero h1 em{ font-style: italic; color: var(--gold-bright); }
.hero p.lede{
  max-width: 560px; margin: 0 auto 34px;
  color: #D9E6DE; font-size: 1.1rem;
  opacity: 0; transform: translateY(10px);
  animation: riseIn .8s ease forwards;
  animation-delay: 1.35s;
}
.hero-actions{
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  opacity: 0; transform: translateY(10px);
  animation: riseIn .8s ease forwards;
  animation-delay: 1.5s;
}
@keyframes riseIn{ to{ opacity: 1; transform: translateY(0); } }

/* SVG seal draw-in */
.seal-ring{
  fill: none; stroke: var(--gold-line); stroke-width: 2;
  stroke-dasharray: 620; stroke-dashoffset: 620;
  animation: drawRing 1.4s cubic-bezier(.65,0,.35,1) forwards;
}
.seal-ring-inner{
  fill: none; stroke: rgba(231,200,115,0.55); stroke-width: 1;
  stroke-dasharray: 520; stroke-dashoffset: 520;
  animation: drawRing 1.4s cubic-bezier(.65,0,.35,1) forwards;
  animation-delay: 0.15s;
}
@keyframes drawRing{ to{ stroke-dashoffset: 0; } }

.seal-book{
  opacity: 0; transform: scale(.85) translateY(6px); transform-origin: 50% 60%;
  animation: bookIn .5s ease forwards;
  animation-delay: 1.0s;
}
@keyframes bookIn{ to{ opacity: 1; transform: scale(1) translateY(0); } }

.seal-flame{ transform-origin: 50% 100%; animation: flicker 2.6s ease-in-out infinite; animation-delay: 1.5s; opacity:0; }
.seal-flame.show{ opacity: 1; }
@keyframes flicker{
  0%, 100% { transform: scaleY(1) scaleX(1) rotate(0deg); }
  25%      { transform: scaleY(1.04) scaleX(0.97) rotate(-1deg); }
  50%      { transform: scaleY(0.97) scaleX(1.03) rotate(1deg); }
  75%      { transform: scaleY(1.03) scaleX(0.98) rotate(-0.5deg); }
}

/* 40 counter */
.hero-count{
  display: flex; align-items: baseline; justify-content: center; gap: 10px;
  margin: 30px 0 6px;
}
.hero-count .num{
  font-family: var(--font-display); font-weight: 700; color: var(--gold-bright);
  font-size: clamp(3rem, 10vw, 6rem); line-height: 1;
  font-variant-numeric: tabular-nums;
}
.hero-count .yrs{ font-family: var(--font-display); font-size: 1.4rem; color: var(--paper); }

/* ---------------- EVENT BANNER (save-the-date, jumps to Program/Songs) ---------------- */
.event-banner{ position: relative; z-index: 0; overflow: hidden; }
.event-date{
  font-family: var(--font-display); font-weight: 700; color: var(--gold-bright);
  font-size: clamp(1.7rem, 5vw, 2.5rem); margin: 4px 0 18px;
}

/* ---------------- BACK TO TOP ---------------- */
.back-to-top{
  position: fixed; right: 20px; bottom: 20px; z-index: 50;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--green-deep); color: var(--gold-bright);
  border: 1px solid rgba(198,162,77,0.4);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; text-decoration: none; cursor: pointer;
  box-shadow: var(--shadow-card);
  opacity: 0; pointer-events: none; transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease;
}
.back-to-top.show{ opacity: 1; pointer-events: auto; transform: translateY(0); }

/* ---------------- SPLASH SCREEN (full-screen intro, homepage only) ---------------- */
.splash-screen{
  position: fixed; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at 50% -10%, #164a37 0%, var(--green-deep) 55%, #0a2b20 100%);
  z-index: 9999;
  padding: 24px;
  text-align: center;
  transition: opacity .5s ease, visibility .5s ease;
}
.splash-screen.splash-hide{ opacity: 0; visibility: hidden; pointer-events: none; }
.splash-emblem{ width: clamp(96px, 28vw, 168px); height: clamp(96px, 28vw, 168px); }
.splash-emblem svg{ width: 100%; height: 100%; display: block; }
.splash-title{
  font-family: var(--font-display); font-weight: 600; color: var(--paper);
  font-size: clamp(1.25rem, 5vw, 1.9rem); margin: 16px 0 2px;
  opacity: 0; transform: translateY(6px);
  animation: riseIn .7s ease forwards; animation-delay: 1.2s;
}
.splash-sub{
  font-family: var(--font-body); color: var(--gold-bright); font-size: clamp(.78rem, 3vw, .95rem);
  letter-spacing: .03em; margin: 0;
  opacity: 0; transform: translateY(6px);
  animation: riseIn .7s ease forwards; animation-delay: 1.35s;
}
.splash-hint{
  font-family: var(--font-body); color: rgba(250,243,228,0.5); font-size: .75rem;
  margin: 22px 0 0;
  opacity: 0;
  animation: riseIn .7s ease forwards; animation-delay: 2s;
}
.splash-ring{
  fill: none; stroke: var(--gold-line); stroke-width: 2;
  stroke-dasharray: 620; stroke-dashoffset: 620;
  animation: drawRing 1.4s cubic-bezier(.65,0,.35,1) forwards;
}
.splash-ring-inner{
  fill: none; stroke: rgba(231,200,115,0.55); stroke-width: 1;
  stroke-dasharray: 520; stroke-dashoffset: 520;
  animation: drawRing 1.4s cubic-bezier(.65,0,.35,1) forwards;
  animation-delay: .15s;
}
.splash-book{
  opacity: 0; transform: scale(.85) translateY(6px); transform-origin: 50% 60%;
  animation: bookIn .5s ease forwards; animation-delay: 1.0s;
}
.splash-flame{ transform-origin: 50% 100%; animation: flicker 2.6s ease-in-out infinite; animation-delay: 1.5s; opacity: 0; }
.splash-flame.show{ opacity: 1; }

body.splash-lock{ overflow: hidden; height: 100%; }

@media (prefers-reduced-motion: reduce){
  .splash-ring, .splash-ring-inner{ animation: none; stroke-dashoffset: 0; }
  .splash-book{ animation: none; opacity: 1; transform: none; }
  .splash-flame{ animation: none; opacity: 1; }
  .splash-title, .splash-sub, .splash-hint{ animation: none; opacity: 1; transform: none; }
}

/* ---------------- Founding Pastor teaser (homepage) ---------------- */
.founder-card{
  display: flex; align-items: center; gap: 40px;
  flex-wrap: wrap;
}
.founder-photo{
  width: 260px; height: 260px; flex: none; margin: 0 auto;
  border-radius: 50%; object-fit: cover; object-position: top center;
  border: 4px solid var(--paper);
  box-shadow: var(--shadow-card);
}
.founder-body{ flex: 1 1 320px; min-width: 280px; text-align: center; }
@media (min-width: 640px){
  .founder-photo{ margin: 0; width: 300px; height: 300px; }
  .founder-body{ text-align: left; }
  .founder-body .eyebrow{ justify-content: flex-start; }
  .founder-card-reverse{ flex-direction: row-reverse; }
}

/* Full-story page: a portrait headshot, shown in full (no cropping) rather
   than forced into the wide, short banner treatment used for landscape
   header photos elsewhere (see .history-header-img below). */
.founder-photo-portrait{
  display: block; width: 100%; max-width: 480px; margin: 0 auto 32px;
  border-radius: var(--radius-md);
  border: 4px solid var(--paper);
  box-shadow: var(--shadow-card);
}

/* ---------------- Church history detail (full body + timeline) ---------------- */
.history-updated{ display:none; align-items:center; gap:6px; font-size:0.82rem; color: var(--gold-line); background: rgba(198,162,77,0.12); padding: 5px 12px; border-radius: 999px; margin-bottom: 18px; }
.history-header-img{ display:none; width:100%; border-radius: var(--radius-md); margin-bottom: 28px; max-height: 360px; object-fit: cover; }
.history-body{ font-size: 1.05rem; line-height: 1.85; color: var(--ink); }

/* ---------------- Timeline (church history — genuinely sequential) ---------------- */
.timeline{ position: relative; max-width: 720px; margin: 0 auto; }
.timeline::before{
  content:""; position: absolute; left: 18px; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(var(--gold-line), rgba(198,162,77,0.25));
}
.timeline-item{
  position: relative; padding: 0 0 34px 52px;
  opacity: 0; transform: translateX(-8px);
  transition: opacity .5s ease, transform .5s ease;
}
.timeline-item.in-view{ opacity: 1; transform: translateX(0); }
.timeline-item::before{
  content:""; position: absolute; left: 10px; top: 4px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--cream); border: 3px solid var(--gold-line);
}
.timeline-year{ font-family: var(--font-display); font-weight: 700; color: var(--green-deep); font-size: 1.15rem; }
.timeline-item p{ color: var(--ink-soft); margin: 2px 0 0; }

/* ---------------- Module grid (nav tiles into the 12 sections) ---------------- */
.module-grid{
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.module-tile{
  display: block; text-decoration: none; color: var(--ink);
  background: var(--paper);
  border: 1px solid rgba(36,28,18,0.08);
  border-top: 3px solid var(--gold-line);
  border-radius: var(--radius-sm);
  padding: 22px 20px;
  transition: box-shadow .4s var(--ease-premium), transform .4s var(--ease-premium), border-color .4s var(--ease-premium);
}
.module-tile:hover{ box-shadow: var(--shadow-lift); transform: translateY(-6px); }
.module-tile .icon{ transition: transform .4s var(--ease-premium); }
.module-tile:hover .icon{ transform: scale(1.12) rotate(-4deg); }
.module-tile .icon{ width: 30px; height: 30px; color: var(--green-deep); margin-bottom: 12px; }
.module-tile h3{ font-size: 1.05rem; margin-bottom: 4px; }
.module-tile p{ font-size: 0.87rem; color: var(--ink-soft); margin: 0; }

/* ---------------- Content list pages (people/ministry entries) ---------------- */
.page-hero{
  background: var(--green-deep); color: var(--cream);
  padding: 44px 0 40px; text-align: center;
}
.page-hero h1{ color: var(--paper); font-size: var(--step-5); margin-bottom: 8px; }
.page-hero p{ color: #D9E6DE; margin: 0; }
.breadcrumb{ font-size: 0.82rem; color: var(--gold-bright); margin-bottom: 10px; }
.breadcrumb a{ color: var(--gold-bright); text-decoration: none; }

.entry-grid{ display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.entry-card{
  background: var(--paper); border-radius: var(--radius-sm);
  border: 1px solid rgba(36,28,18,0.08);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow .4s var(--ease-premium), transform .4s var(--ease-premium);
}
.entry-card:hover{ box-shadow: var(--shadow-lift); transform: translateY(-6px); }
.entry-photo{
  width: 100%; aspect-ratio: 1/1; object-fit: cover; background: var(--cream-2);
  transition: transform .5s var(--ease-premium);
}
.entry-card:hover .entry-photo{ transform: scale(1.06); }
.entry-photo-fallback{
  width:100%; aspect-ratio:1/1; display:flex; align-items:center; justify-content:center;
  background: var(--cream-2); color: var(--gold-line); font-family: var(--font-display); font-size: 2rem; font-weight:600;
}
.entry-body{ padding: 16px 18px; }
.entry-body h3{ font-size: 1.02rem; margin-bottom: 2px; }
.entry-meta{ color: var(--gold-line); font-weight: 600; font-size: 0.82rem; margin-bottom: 8px; }
.entry-body p{ font-size: 0.88rem; color: var(--ink-soft); margin: 0; }

.family-card .entry-body p{ margin-bottom: 4px; }

.empty-state{
  text-align:center; padding: 56px 20px; color: var(--ink-soft);
  border: 1px dashed rgba(36,28,18,0.2); border-radius: var(--radius-md);
}
.empty-state h3{ color: var(--ink); }

.loading-row{ display:flex; align-items:center; gap:10px; color: var(--ink-soft); padding: 24px 0; }
.spinner{
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(20,83,45,0.25); border-top-color: var(--green-deep);
  animation: spin .7s linear infinite;
}
@keyframes spin{ to{ transform: rotate(360deg); } }

/* Song lyric sheets */
.lyric-card{
  background: var(--paper); border: 1px solid rgba(36,28,18,0.08); border-left: 4px solid var(--gold-line);
  border-radius: var(--radius-sm); padding: 22px 24px; margin-bottom: 16px;
  transition: box-shadow .4s var(--ease-premium), transform .4s var(--ease-premium);
}
.lyric-card:hover{ box-shadow: var(--shadow-card); transform: translateX(4px); }
.lyric-card h3{ margin-bottom: 2px; }
.lyric-card .entry-meta{ margin-bottom: 12px; }
.lyric-card pre{ font-family: var(--font-body); white-space: pre-wrap; margin:0; color: var(--ink); line-height: 1.8; }

/* Program table */
.program-list{ border-top: 1px solid rgba(36,28,18,0.1); }
.program-row{
  display:flex; gap:18px; padding: 16px 12px; margin: 0 -12px;
  border-bottom: 1px solid rgba(36,28,18,0.1); align-items: baseline;
  border-radius: var(--radius-sm);
  transition: background-color .3s var(--ease-premium);
}
.program-row:hover{ background: rgba(198,162,77,0.08); }
.program-time{ font-family: var(--font-display); color: var(--gold-line); font-weight:700; width: 92px; flex: none; }
.program-title{ font-weight: 600; }
.program-person{ color: var(--ink-soft); font-size: 0.87rem; }

/* ---------------- Forms (registration + admin) ---------------- */
.form-card{
  background: var(--paper); border: 1px solid rgba(36,28,18,0.08);
  border-radius: var(--radius-md); padding: 30px;
  box-shadow: var(--shadow-card);
}
@media (max-width: 640px){ .form-card{ padding: 20px; } }
.field{ margin-bottom: 20px; }
.field label{ display:block; font-weight: 600; margin-bottom: 6px; font-size: 0.92rem; }
.field .hint{ font-size: 0.8rem; color: var(--ink-soft); margin-top: 5px; }
.field .error{ font-size: 0.8rem; color: var(--danger); margin-top: 5px; display:none; }
.field.has-error .error{ display:block; }
.field.has-error input, .field.has-error select, .field.has-error textarea{ border-color: var(--danger); }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"],
input[type="number"], input[type="search"], input[type="date"], select, textarea{
  width: 100%; padding: 12px 14px; font-size: 0.98rem; font-family: var(--font-body);
  border: 1px solid rgba(36,28,18,0.22); border-radius: var(--radius-sm);
  background: var(--paper); color: var(--ink);
}
textarea{ resize: vertical; min-height: 90px; }
.field-row{ display:flex; gap: 16px; flex-wrap: wrap; }
.field-row > .field{ flex: 1 1 220px; }

.checkbox-row{ display:flex; align-items: flex-start; gap: 10px; }
.checkbox-row input{ margin-top: 4px; width: 17px; height: 17px; flex: none; }

.ministry-groups{ display:flex; flex-direction:column; gap: 18px; }
.ministry-category-label{
  font-weight: 600; font-size: 0.82rem; letter-spacing: 0.02em;
  color: var(--green-deep); margin: 0 0 8px;
}
.chip-group{ display:flex; flex-wrap: wrap; gap: 8px; }
.chip{
  display:inline-flex; align-items:center; gap:6px; cursor:pointer; user-select:none;
  padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(36,28,18,0.22);
  font-size: 0.87rem; transition: background .15s ease, border-color .15s ease;
}
.chip input{ display:none; }
.chip.checked{ background: var(--green-deep); color: var(--paper); border-color: var(--green-deep); }
.chip-add{ display:flex; gap: 8px; margin-top: 10px; }
.chip-add input{ flex:1; }

.autocomplete{ position: relative; }
.autocomplete-list{
  position: absolute; z-index: 20; top: calc(100% + 4px); left: 0; right: 0;
  background: var(--paper); border: 1px solid rgba(36,28,18,0.18); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card); max-height: 220px; overflow-y: auto; display: none;
}
.autocomplete-list.open{ display:block; }
.autocomplete-list button{
  display:block; width:100%; text-align:left; padding: 10px 14px; background:none; border:none;
  cursor:pointer; font-size: 0.92rem; border-bottom: 1px solid rgba(36,28,18,0.06);
}
.autocomplete-list button:hover, .autocomplete-list button.active-option{ background: var(--cream-2); }
.autocomplete-list .ac-new{ color: var(--green-deep); font-weight:600; }
.autocomplete-list .ac-sub{ display:block; font-size: 0.78rem; font-weight: 400; color: var(--ink-soft); margin-top: 2px; }

.photo-field{ display:flex; align-items:center; gap: 16px; flex-wrap: wrap; }
.photo-preview{
  width: 84px; height: 84px; border-radius: 50%; object-fit: cover;
  background: var(--cream-2); border: 2px solid var(--gold-line); flex: none;
}
.photo-progress{ height: 6px; background: var(--cream-2); border-radius: 3px; overflow: hidden; margin-top: 8px; width: 100%; max-width: 260px; }
.photo-progress-bar{ height: 100%; width: 0%; background: var(--green-deep); transition: width .2s ease; }
.file-btn{ position: relative; overflow: hidden; }
.file-btn input[type=file]{ position:absolute; inset:0; opacity:0; cursor:pointer; }

.banner{ padding: 14px 18px; border-radius: var(--radius-sm); font-size: 0.92rem; margin-bottom: 18px; display:none; }
.banner.show{ display:block; }
.banner-ok{ background: var(--ok-bg); color: var(--ok); border: 1px solid rgba(30,107,69,0.25); }
.banner-error{ background: var(--danger-bg); color: var(--danger); border: 1px solid rgba(140,47,47,0.25); }
.banner-info{ background: var(--cream-2); color: var(--ink); border: 1px solid rgba(36,28,18,0.15); }

.step-track{ display:flex; gap:6px; margin-bottom: 26px; }
.step-track span{ height: 4px; flex:1; background: rgba(36,28,18,0.12); border-radius: 2px; }
.step-track span.active{ background: var(--gold-line); }

/* ---------------- Badges ---------------- */
.badge{ display:inline-flex; align-items:center; gap:5px; padding: 3px 10px; border-radius: 999px; font-size: 0.76rem; font-weight: 700; letter-spacing: .01em; }
.badge-pending{ background: #FBF0D9; color: #8A6417; }
.badge-approved{ background: var(--ok-bg); color: var(--ok); }
.badge-active{ background: var(--ok-bg); color: var(--ok); }
.badge-inactive{ background: rgba(36,28,18,0.08); color: var(--ink-soft); }

/* ---------------- Utility ---------------- */
.text-center{ text-align:center; }
.mt-0{ margin-top:0; } .mb-0{ margin-bottom:0; }
.stack{ display:flex; flex-direction:column; gap: 14px; }
.row-between{ display:flex; align-items:center; justify-content:space-between; gap: 12px; flex-wrap: wrap; }
.small{ font-size: 0.85rem; color: var(--ink-soft); }
.center-narrow{ max-width: var(--container-narrow); margin: 0 auto; }
.sr-only{ position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0; }

/* ---------------- Museum teaser (index.html → museum.html) ---------------- */
.museum-teaser{ padding: 72px 0; background: radial-gradient(ellipse 60% 90% at 80% 50%, rgba(231,200,115,.18), transparent 60%), linear-gradient(135deg, #0B0806, #1E150C); color: var(--cream); overflow: hidden; }
.museum-teaser-inner{ display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center; }
.museum-teaser h2{ color: var(--gold-bright); font-size: clamp(2rem, 5vw, 3.2rem); }
.museum-teaser p{ max-width: 520px; color: #D9CFBE; }
.museum-teaser .eyebrow{ color: var(--gold-bright); }
.museum-teaser-btn{ margin-top: 8px; }
.museum-teaser-door{
  position: relative; width: 170px; height: 250px; border-radius: 85px 85px 4px 4px; display: grid; place-items: start center; padding-top: 34px;
  background: repeating-linear-gradient(90deg, #123D2C 0 3px, #0F3526 3px 7px); box-shadow: inset 0 0 0 5px var(--gold), 0 0 0 6px #2A1E0C, 0 24px 60px rgba(0,0,0,.6), 0 0 80px rgba(231,200,115,.25);
  transition: transform .5s var(--ease-premium), box-shadow .5s;
}
.museum-teaser-door::after{ content: ""; position: absolute; left: 50%; top: 30px; bottom: 5px; width: 2px; background: rgba(198,162,77,.6); }
.museum-teaser-door img{ width: 64px; height: 64px; border-radius: 50%; box-shadow: 0 0 0 3px var(--gold); position: relative; z-index: 1; }
.museum-teaser-door:hover{ transform: translateY(-6px) scale(1.03); box-shadow: inset 0 0 0 5px var(--gold-bright), 0 0 0 6px #2A1E0C, 0 30px 70px rgba(0,0,0,.6), 0 0 120px rgba(231,200,115,.45); }
@media (max-width: 700px){ .museum-teaser-inner{ grid-template-columns: 1fr; } .museum-teaser-door{ display: none; } }
.museum-teaser .btn-primary{ background: linear-gradient(180deg, #FFE9A6, var(--gold)); color: #0B0806; }
