/* ==========================================================================
   HOLY LAND PRAYERS — Stylesheet
   Design language: Jerusalem stone by day, candlelit dusk by night.
   A wax-seal motif ties the sending/sealing ritual together across pages.
   ========================================================================== */

:root {
  /* ---- Color tokens ---- */
  --parchment: #faf6ed;          /* base page background */
  --stone-light: #ede6d6;        /* warm limestone panels */
  --stone-mid: #ddd0b4;          /* stone shadow / borders */
  --ink-navy: #182430;           /* dusk sky, dark sections */
  --ink-navy-deep: #0f1821;      /* deepest shadow / footer */
  --gold: #a8813f;               /* aged gold, primary accent */
  --gold-light: #d8b978;         /* highlight gold */
  --wine: #6b2a34;               /* sacred wax / candle accent */
  --wine-light: #8a3d47;
  --ink-text: #2b2420;           /* body copy on light */
  --ink-text-soft: #574c3f;      /* secondary copy on light */
  --cream-text: #f3ece0;         /* copy on dark sections */
  --cream-text-soft: #c9bfa9;    /* secondary copy on dark */

  /* ---- Type ---- */
  --font-display: "Playfair Display", "Georgia", serif;
  --font-accent: "Cormorant Garamond", "Georgia", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  /* ---- Layout ---- */
  --radius-soft: 4px;
  --radius-seal: 50%;
  --shadow-card: 0 12px 32px rgba(15, 24, 33, 0.12);
  --shadow-card-deep: 0 18px 48px rgba(15, 24, 33, 0.35);
  --container-max: 1180px;
}

/* ---- Reset & base ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--parchment);
  color: var(--ink-text);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink-navy);
  margin: 0 0 0.5em;
  line-height: 1.15;
  font-weight: 700;
}

p { margin: 0 0 1em; }

.container-narrow {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--wine);
  letter-spacing: 0.04em;
  margin-bottom: 0.6em;
  display: block;
}

.section {
  padding: 88px 0;
}

.section--stone { background: var(--stone-light); }
.section--parchment { background: var(--parchment); }
.section--night {
  background: linear-gradient(180deg, var(--ink-navy) 0%, var(--ink-navy-deep) 100%);
  color: var(--cream-text);
}
.section--night h1, .section--night h2, .section--night h3 { color: var(--cream-text); }
.section--night p { color: var(--cream-text-soft); }

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  max-width: 720px;
}

.section-lede {
  font-family: var(--font-accent);
  font-size: 1.4rem;
  color: var(--ink-text-soft);
  max-width: 640px;
  line-height: 1.5;
}
.section--night .section-lede { color: var(--cream-text-soft); }

/* ---- Carved divider: signature motif, echoes stone-carved rule lines ---- */
.carved-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 auto 48px;
  width: 100%;
  max-width: 260px;
}
.carved-divider::before,
.carved-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.carved-divider .flame {
  width: 14px;
  height: 14px;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn-seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  padding: 18px 40px;
  border-radius: var(--radius-soft);
  border: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  min-height: 58px;
}
.btn-seal:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 3px; }

.btn-seal--gold {
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 100%);
  color: var(--ink-navy-deep);
  box-shadow: 0 10px 24px rgba(168, 129, 63, 0.35);
}
.btn-seal--gold:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(168, 129, 63, 0.45); color: var(--ink-navy-deep); }

.btn-seal--outline {
  background: transparent;
  border: 1.5px solid var(--gold);
  color: var(--gold-light);
}
.btn-seal--outline:hover { background: rgba(168, 129, 63, 0.12); color: var(--gold-light); }

.btn-block { width: 100%; }

/* ==========================================================================
   NAV
   ========================================================================== */
.hlp-nav {
  position: relative;
  z-index: 10;
  padding: 22px 0;
}
.hlp-nav .container-narrow {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hlp-brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--cream-text);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hlp-brand .seal-mark { width: 30px; height: 30px; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  background: var(--ink-navy-deep); /* fallback if the image fails to load */
  color: var(--cream-text);
  padding-bottom: 70px;
  overflow: hidden;
}
/* Dark scrim — sits ABOVE the photo (z-index 1) so text stays legible
   regardless of how bright the underlying photo is. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,24,33,0.72) 0%, rgba(15,24,33,0.88) 45%, var(--ink-navy-deep) 100%);
  z-index: 1;
}
/* Hero visual: ships as an illustrated Jerusalem skyline (images/hero-illustration.svg)
   so the page looks finished immediately. Swap it for a real photo any time —
   see README "Replacing the Hero Image" for the one-line change. */
.hero > .hero-illustration {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 65%;
  filter: brightness(0.72);
  z-index: 0;
}
.hero > * { position: relative; z-index: 2; }
.hero-content {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  padding: 30px 24px 0;
}
.hero-content h1 {
  color: #fff;
  font-size: clamp(2.3rem, 6vw, 3.6rem);
  text-shadow: 0 4px 24px rgba(0,0,0,0.35);
}
.hero-sub {
  font-family: var(--font-accent);
  font-size: 1.45rem;
  color: var(--cream-text-soft);
  max-width: 620px;
  margin: 0 auto 34px;
  line-height: 1.55;
}
.hero .btn-seal--gold { font-size: 1.15rem; padding: 20px 48px; }

.trust-badges {
  list-style: none;
  padding: 0;
  margin: 44px 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 28px;
}
.trust-badges li {
  font-size: 0.92rem;
  color: var(--cream-text-soft);
  display: flex;
  align-items: center;
  gap: 8px;
}
.trust-badges li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-light);
  flex-shrink: 0;
}

/* Light-background variant — used on preview.html and any parchment/stone section */
.trust-badges--light {
  margin: 0;
}
.trust-badges--light li {
  color: var(--ink-text-soft);
  font-weight: 500;
}
.trust-badges--light li::before {
  background: var(--gold);
}

.trust-strip {
  background: var(--stone-light);
  border-top: 1px solid var(--stone-mid);
  border-bottom: 1px solid var(--stone-mid);
  padding: 22px 0;
}
.trust-strip .trust-badges { justify-content: center; }

/* Stat bar — social proof for cold Meta traffic */
.stat-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
@media (min-width: 700px) { .stat-bar { grid-template-columns: repeat(4, 1fr); } }
.stat-bar .stat-num {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  color: var(--gold-light);
  display: block;
}
.stat-bar .stat-label {
  font-size: 0.82rem;
  color: var(--cream-text-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   PRAYER FORM CARD
   ========================================================================== */
.prayer-form-wrap {
  max-width: 560px;
  margin: 48px auto 0;
  position: relative;
  z-index: 2;
  padding: 0 20px;
}
.prayer-form-card {
  background: var(--parchment);
  border-radius: 10px;
  padding: 40px 32px;
  box-shadow: var(--shadow-card-deep);
  border: 1px solid var(--stone-mid);
}
.prayer-form-card h2 {
  font-size: 1.6rem;
  text-align: center;
  margin-bottom: 6px;
}
.prayer-form-subtitle {
  text-align: center;
  font-family: var(--font-accent);
  font-style: italic;
  color: var(--ink-text-soft);
  font-size: 1.1rem;
  margin-bottom: 28px;
}

.form-label {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink-navy);
  margin-bottom: 6px;
  display: block;
}
.form-control-hlp {
  width: 100%;
  padding: 15px 16px;
  font-family: var(--font-body);
  font-size: 1.02rem;
  border: 1.5px solid var(--stone-mid);
  border-radius: var(--radius-soft);
  background: #fff;
  color: var(--ink-text);
  margin-bottom: 20px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-control-hlp:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(168, 129, 63, 0.18);
}
textarea.form-control-hlp { min-height: 130px; resize: vertical; }

.form-error {
  color: var(--wine);
  font-size: 0.85rem;
  margin: -14px 0 16px;
  display: none;
}
.form-error.is-visible { display: block; }
.form-control-hlp.is-invalid { border-color: var(--wine); }

/* ==========================================================================
   STORY SECTION
   ========================================================================== */
.story-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
@media (min-width: 900px) {
  .story-grid { grid-template-columns: 0.9fr 1.1fr; gap: 64px; }
}
.story-image {
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  aspect-ratio: 4/5;
  object-fit: cover;
  width: 100%;
}
.story-copy p {
  font-size: 1.08rem;
  color: var(--ink-text-soft);
}
.story-copy .pull-quote {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--wine);
  border-left: 3px solid var(--gold);
  padding-left: 20px;
  margin: 28px 0;
  line-height: 1.4;
}

/* ==========================================================================
   HOW IT WORKS — carved stone step markers
   ========================================================================== */
.steps-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  counter-reset: step;
  max-width: 780px;
  margin: 0 auto;
}
.step-item {
  display: flex;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid rgba(243, 236, 224, 0.12);
}
.step-item:last-child { border-bottom: none; }
.step-num {
  counter-increment: step;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--gold-light);
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-num::before { content: counter(step, decimal-leading-zero); }
.step-body h3 { color: var(--cream-text); font-size: 1.2rem; margin-bottom: 4px; }
.step-body p { color: var(--cream-text-soft); margin: 0; }

/* ==========================================================================
   WHY CHOOSE US
   ========================================================================== */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
@media (min-width: 700px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .why-grid { grid-template-columns: repeat(3, 1fr); } }

.why-card {
  background: #fff;
  border: 1px solid var(--stone-mid);
  border-radius: 8px;
  padding: 30px 26px;
}
.why-card .why-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  color: var(--gold);
}
.why-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.why-card p { color: var(--ink-text-soft); font-size: 0.98rem; margin: 0; }

/* ==========================================================================
   GALLERY
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (min-width: 700px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }

.gallery-item {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 1/1.15;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  background: var(--stone-mid);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item .gallery-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 14px 12px 10px;
  background: linear-gradient(180deg, transparent, rgba(15,24,33,0.75));
  color: #fff;
  font-size: 0.82rem;
  font-family: var(--font-accent);
  font-style: italic;
}

/* Lightbox */
.hlp-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 24, 33, 0.92);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.hlp-lightbox.is-open { display: flex; }
.hlp-lightbox img {
  max-width: min(90vw, 640px);
  max-height: 82vh;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.hlp-lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 800px) { .testimonial-grid { grid-template-columns: repeat(3, 1fr); } }

.testimonial-card {
  background: var(--stone-light);
  border-radius: 8px;
  padding: 28px 26px;
  border: 1px solid var(--stone-mid);
}
.stars { color: var(--gold); margin-bottom: 12px; letter-spacing: 2px; font-size: 1rem; }
.testimonial-card p.quote {
  font-family: var(--font-accent);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--ink-text);
  line-height: 1.5;
}
.testimonial-author {
  margin-top: 16px;
  font-size: 0.88rem;
  color: var(--ink-text-soft);
  font-weight: 600;
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--stone-mid);
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 22px 4px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--ink-navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-question .plus {
  font-size: 1.4rem;
  color: var(--gold);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.faq-item.is-open .faq-question .plus { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.faq-answer p {
  padding: 0 4px 22px;
  color: var(--ink-text-soft);
  margin: 0;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.hlp-footer {
  background: var(--ink-navy-deep);
  color: var(--cream-text-soft);
  padding: 56px 0 30px;
  font-size: 0.9rem;
}
.hlp-footer .footer-top {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  text-align: center;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(243,236,224,0.12);
  margin-bottom: 24px;
}
.hlp-footer .footer-brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--cream-text);
}
.footer-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
  padding: 0;
  margin: 0;
}
.footer-links a:hover { color: var(--gold-light); }
.footer-bottom {
  text-align: center;
  color: var(--cream-text-soft);
  opacity: 0.75;
}

/* ==========================================================================
   PREVIEW PAGE
   ========================================================================== */
.preview-shell {
  min-height: 100vh;
  background: linear-gradient(180deg, var(--ink-navy) 0%, var(--ink-navy-deep) 100%);
  padding: 0 20px 80px;
}
.preview-nav {
  padding: 28px 0 8px;
  text-align: center;
}
.preview-card {
  max-width: 620px;
  margin: 36px auto 0;
  background: var(--parchment);
  border-radius: 10px;
  padding: 44px 36px;
  box-shadow: var(--shadow-card-deep);
}
.preview-seal {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  color: var(--gold);
}
.preview-card h1 {
  text-align: center;
  font-size: 1.85rem;
}
.preview-card .preview-lede {
  text-align: center;
  font-family: var(--font-accent);
  font-style: italic;
  color: var(--ink-text-soft);
  font-size: 1.15rem;
  margin-bottom: 32px;
}

/* Live activity note — reflects a REAL count from data/prayers.txt via
   recent-count.php, not a fabricated number. Hidden until it resolves. */
.preview-activity {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--wine);
  background: rgba(107, 42, 52, 0.07);
  border: 1px solid rgba(107, 42, 52, 0.18);
  border-radius: 30px;
  padding: 9px 18px;
  margin: 0 auto 28px;
  width: fit-content;
}
.preview-activity.is-visible { display: flex; }
.preview-activity .pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--wine);
  flex-shrink: 0;
  animation: pulseDot 1.8s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

/* Process / emotional section — printing & placing, inside the card */
.preview-process {
  background: var(--stone-light);
  border-radius: 8px;
  padding: 22px 24px;
  margin: 28px 0;
  border-left: 3px solid var(--gold);
}
.preview-process p {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.08rem;
  color: var(--ink-text);
  line-height: 1.55;
  margin: 0;
}

/* Checkout button — gentle breathing glow to draw the eye without nagging */
#checkoutBtn {
  animation: checkoutPulse 2.6s ease-in-out infinite;
}
#checkoutBtn:hover,
#checkoutBtn:focus-visible {
  animation-play-state: paused;
}
@keyframes checkoutPulse {
  0%, 100% { box-shadow: 0 10px 24px rgba(168, 129, 63, 0.35); }
  50% { box-shadow: 0 10px 34px rgba(168, 129, 63, 0.65); }
}

.preview-field {
  margin-bottom: 20px;
}
.preview-field .label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 4px;
}
.preview-field .value {
  font-size: 1.05rem;
  color: var(--ink-text);
}
.prayer-text-box {
  background: #fff;
  border: 1px solid var(--stone-mid);
  border-left: 3px solid var(--gold);
  border-radius: 4px;
  padding: 18px 20px;
  font-family: var(--font-accent);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--ink-text);
  line-height: 1.6;
  white-space: pre-wrap;
}

.included-list {
  list-style: none;
  padding: 0;
  margin: 28px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
}
.included-list li {
  font-size: 0.92rem;
  color: var(--ink-text-soft);
  display: flex;
  align-items: center;
  gap: 8px;
}
.included-list li svg { color: var(--gold); flex-shrink: 0; width: 16px; height: 16px; }

.preview-price {
  text-align: center;
  border-top: 1px dashed var(--stone-mid);
  border-bottom: 1px dashed var(--stone-mid);
  padding: 22px 0;
  margin: 24px 0 28px;
}
.preview-price .amount {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 2.3rem;
  color: var(--ink-navy);
}
.preview-price .amount-label {
  font-size: 0.85rem;
  color: var(--ink-text-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.preview-secure-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-text-soft);
  margin-top: 16px;
}

/* ==========================================================================
   SUCCESS PAGE
   ========================================================================== */
.success-shell {
  min-height: 100vh;
  background: linear-gradient(180deg, var(--ink-navy) 0%, var(--ink-navy-deep) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
}
.success-card {
  max-width: 560px;
  text-align: center;
  background: var(--parchment);
  border-radius: 10px;
  padding: 56px 40px;
  box-shadow: var(--shadow-card-deep);
}
.success-seal {
  width: 78px;
  height: 78px;
  margin: 0 auto 24px;
  color: var(--gold);
}
.success-card h1 { font-size: 2rem; }
.success-card .success-lede {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--ink-text-soft);
  margin-bottom: 8px;
}
.success-details {
  text-align: left;
  background: #fff;
  border: 1px solid var(--stone-mid);
  border-radius: 6px;
  padding: 22px 24px;
  margin: 28px 0;
  font-size: 0.98rem;
  color: var(--ink-text-soft);
}
.success-details li { margin-bottom: 8px; }
.success-details li:last-child { margin-bottom: 0; }

/* ==========================================================================
   UTIL / A11Y
   ========================================================================== */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   SCROLL REVEAL — subtle, single-purpose motion for emotional sections
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   PREVIEW PAGE — mini "recent prayers placed" gallery + trust strip
   ========================================================================== */
.preview-mini-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 24px 0 8px;
}
.preview-mini-gallery .mini-item {
  border-radius: 5px;
  overflow: hidden;
  aspect-ratio: 1/1;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(15,24,33,0.14);
}
.preview-mini-gallery .mini-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.preview-mini-gallery .mini-item:hover img { transform: scale(1.08); }
.preview-mini-caption {
  text-align: center;
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 0.92rem;
  color: var(--ink-text-soft);
  margin-bottom: 8px;
}

.preview-testimonial {
  background: var(--stone-light);
  border-radius: 8px;
  padding: 18px 20px;
  margin: 20px 0 4px;
  border: 1px solid var(--stone-mid);
}
.preview-testimonial .stars { margin-bottom: 6px; font-size: 0.9rem; }
.preview-testimonial p.quote { font-size: 1rem; margin-bottom: 6px; }
.preview-testimonial .testimonial-author { margin-top: 0; font-size: 0.82rem; }

/* ==========================================================================
   ADMIN PANEL
   ========================================================================== */
.admin-shell {
  min-height: 100vh;
  background: var(--parchment);
}
.admin-login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(180deg, var(--ink-navy) 0%, var(--ink-navy-deep) 100%);
}
.admin-login-card {
  max-width: 400px;
  width: 100%;
  background: var(--parchment);
  border-radius: 10px;
  padding: 40px 32px;
  box-shadow: var(--shadow-card-deep);
}
.admin-login-card h1 { font-size: 1.5rem; text-align: center; }
.admin-login-card .sub { text-align: center; color: var(--ink-text-soft); font-size: 0.92rem; margin-bottom: 26px; }
.admin-error {
  background: rgba(107, 42, 52, 0.08);
  border: 1px solid var(--wine);
  color: var(--wine);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 0.88rem;
  margin-bottom: 18px;
  display: none;
}
.admin-error.is-visible { display: block; }

.admin-header {
  background: var(--ink-navy-deep);
  color: var(--cream-text);
  padding: 20px 0;
}
.admin-header .container-narrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.admin-header h1 { color: #fff; font-size: 1.3rem; margin: 0; }
.admin-logout-btn {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold-light);
  padding: 8px 18px;
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.9rem;
}
.admin-logout-btn:hover { background: rgba(168,129,63,0.15); }

.admin-toolbar {
  padding: 24px 0 0;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.admin-search {
  flex: 1;
  min-width: 220px;
  padding: 12px 16px;
  border: 1.5px solid var(--stone-mid);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 1rem;
}
.admin-search:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(168,129,63,0.18); }
.admin-count { font-size: 0.88rem; color: var(--ink-text-soft); white-space: nowrap; }

.admin-table-wrap {
  margin: 20px 0 60px;
  background: #fff;
  border: 1px solid var(--stone-mid);
  border-radius: 8px;
  overflow: hidden;
}
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.admin-table th {
  text-align: left;
  background: var(--stone-light);
  padding: 12px 16px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-text-soft);
  border-bottom: 1px solid var(--stone-mid);
}
.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--stone-light);
  vertical-align: top;
  color: var(--ink-text);
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table .prayer-cell { max-width: 380px; white-space: pre-wrap; }
.admin-table .date-cell { white-space: nowrap; color: var(--ink-text-soft); font-size: 0.85rem; }
.admin-empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--ink-text-soft);
}
.admin-setup-notice {
  max-width: 640px;
  margin: 60px auto;
  background: #fff;
  border: 1px solid var(--stone-mid);
  border-left: 4px solid var(--wine);
  border-radius: 6px;
  padding: 28px 30px;
}
.admin-setup-notice h2 { font-size: 1.2rem; }
.admin-setup-notice code {
  background: var(--stone-light);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.88rem;
}
.admin-loading { text-align: center; padding: 60px 20px; color: var(--ink-text-soft); }

@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;
  }
}

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

@media (max-width: 640px) {
  .hero { padding-bottom: 48px; }
  .hero-content { padding-top: 20px; }
  .trust-badges { margin-top: 32px; gap: 10px 18px; }
  .trust-badges li { font-size: 0.85rem; }
  .section { padding: 60px 0; }
  .prayer-form-wrap { margin-top: 32px; padding: 0 16px; }
  .prayer-form-card { padding: 32px 24px; }
  .included-list { grid-template-columns: 1fr; }
}
