/* ==========================================================
   Magdalene Mercy Ministry - Stylesheet
   Sacred, reverent design with soft golds, deep purples,
   and creams. Fully responsive.
   ========================================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --gold: #c9a961;
  --gold-light: #e6d4a3;
  --gold-dark: #6b4f1e;         /* deeper bronze for WCAG-AA on cream (was #7a5f2a) */
  --purple: #4a2c5a;
  --purple-light: #6b4380;
  --purple-dark: #2e1a3a;
  --cream: #faf6ed;
  --cream-dark: #ede4d0;
  --ink: #1f1828;               /* darkened from #2b2332 */
  --ink-soft: #3d3348;          /* darkened from #534861 — body copy now WCAG-AA on cream */
  --white: #ffffff;
  --shadow: 0 10px 40px rgba(46, 26, 58, 0.15);
  --shadow-lg: 0 20px 60px rgba(46, 26, 58, 0.25);
  --radius: 8px;
  --serif: 'Cormorant Garamond', 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Lato', 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}

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

a {
  color: var(--purple);
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover { color: var(--gold-dark); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.25;
  color: var(--purple-dark);
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); }
h4 { font-size: 1.15rem; }

p { margin-bottom: 1rem; }

/* ---------- Layout Containers ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.narrow {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 80px 0; }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(250, 246, 237, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201, 169, 97, 0.25);
  box-shadow: 0 2px 20px rgba(46, 26, 58, 0.06);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: 1280px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo-mark {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--purple), var(--gold-dark));
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--cream);
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(74, 44, 90, 0.3);
}
.logo-text {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--purple-dark);
  line-height: 1.1;
}
.logo-text small {
  display: block;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  font-size: 0.95rem;
  color: var(--ink-soft);
  padding: 8px 14px;
  border-radius: var(--radius);
  font-weight: 500;
  transition: all 0.25s ease;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--purple-dark);
  background: rgba(201, 169, 97, 0.15);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--purple-dark);
  margin: 6px 0;
  transition: 0.3s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 90vh;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--cream);
  overflow: hidden;
  padding: 100px 24px;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('images/hero-banner.png') center/cover no-repeat;
  z-index: -2;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(46, 26, 58, 0.55) 0%,
    rgba(46, 26, 58, 0.7) 100%);
  z-index: -1;
}

.hero-content { max-width: 900px; animation: fadeUp 1.2s ease; }

.hero h1 {
  color: var(--cream);
  font-style: italic;
  margin-bottom: 20px;
  text-shadow: 0 3px 25px rgba(0, 0, 0, 0.5);
}
.hero .tagline {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  font-style: italic;
  color: var(--gold-light);
  margin-bottom: 32px;
  letter-spacing: 0.04em;
}
.hero blockquote {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-style: italic;
  color: var(--cream);
  margin: 32px auto;
  padding: 24px 40px;
  border-left: 3px solid var(--gold);
  border-right: 3px solid var(--gold);
  max-width: 700px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius);
}
.hero blockquote cite {
  display: block;
  font-size: 0.95rem;
  margin-top: 12px;
  color: var(--gold-light);
  font-style: normal;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-divider {
  width: 80px;
  height: 2px;
  background: var(--gold);
  margin: 20px auto;
  position: relative;
}
.hero-divider::before,
.hero-divider::after {
  content: '✦';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-size: 14px;
}
.hero-divider::before { left: -24px; }
.hero-divider::after { right: -24px; }

/* ---------- Page Header (inner pages) ---------- */
.page-header {
  position: relative;
  padding: 140px 24px 90px;
  text-align: center;
  color: var(--cream);
  background: linear-gradient(135deg, var(--purple-dark), var(--purple));
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.25;
  background-image: url('images/hero-banner.png');
  background-size: cover;
  background-position: center;
}
.page-header > * { position: relative; z-index: 1; }
.page-header h1 {
  color: var(--cream);
  font-style: italic;
  margin-bottom: 12px;
}
.page-header .subtitle {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--gold-light);
  max-width: 640px;
  margin: 0 auto;
}

/* ---------- Page Header with Video Background ---------- */
.page-header-video {
  min-height: 520px;
  padding: 160px 24px 110px;
  background: var(--purple-dark);
}
.page-header-video .hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0; /* hidden until JS confirms playback; poster shows via parent bg */
  transition: opacity 700ms ease;
  pointer-events: none;
  border: 0;
  outline: 0;
  background: transparent;
}
.page-header-video .hero-video.playing { opacity: 0.85; }

/* Parent container carries the poster as a background image so users
   ALWAYS see a beautiful still image \u2014 even on iOS Safari which tends
   to show a big play button on <video> elements that haven\u2019t started. */
.page-header-video {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
/* Hide all browser-native video controls & play overlays */
.page-header-video .hero-video::-webkit-media-controls,
.page-header-video .hero-video::-webkit-media-controls-enclosure,
.page-header-video .hero-video::-webkit-media-controls-panel,
.page-header-video .hero-video::-webkit-media-controls-play-button,
.page-header-video .hero-video::-webkit-media-controls-start-playback-button,
.page-header-video .hero-video::--webkit-media-controls-overlay-play-button,
.hero.hero-with-video .hero-bg-video::-webkit-media-controls,
.hero.hero-with-video .hero-bg-video::-webkit-media-controls-enclosure,
.hero.hero-with-video .hero-bg-video::-webkit-media-controls-panel,
.hero.hero-with-video .hero-bg-video::-webkit-media-controls-play-button,
.hero.hero-with-video .hero-bg-video::-webkit-media-controls-start-playback-button {
  display: none !important;
  -webkit-appearance: none !important;
  opacity: 0 !important;
}
/* ==========================================================
   MOBILE: Disable videos entirely, show poster as background.
   iOS Safari is inconsistent with autoplay and often paints a
   play button on unstarted videos. The cleanest fix is to
   never render the <video> element at all on phones \u2014 the
   poster image (set as parent background in JS and here as a
   fallback) gives the same visual experience without any
   possibility of a play button appearing.
   ========================================================== */
@media (max-width: 768px) {
  video.hero-video,
  video.hero-bg-video {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    pointer-events: none !important;
  }
  /* Ensure poster backgrounds are guaranteed on each page header */
  .page-header-video { background-size: cover; background-position: center; }
  .hero.hero-with-video {
    background-image: url('images/home-poster.jpg');
    background-size: cover;
    background-position: center;
  }
}
.page-header-video .hero-video-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(46,26,58,0.55) 0%, rgba(46,26,58,0.35) 45%, rgba(46,26,58,0.82) 100%),
    radial-gradient(ellipse at center, transparent 20%, rgba(46,26,58,0.4) 85%);
  z-index: 1;
}
.page-header-video .hero-video-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.page-header-video h1 {
  color: var(--cream);
  font-style: italic;
  margin-bottom: 14px;
  text-shadow: 0 3px 25px rgba(0,0,0,0.7);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}
.page-header-video .subtitle {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-style: italic;
  color: var(--gold-light);
  max-width: 640px;
  margin: 0 auto;
  text-shadow: 0 2px 18px rgba(0,0,0,0.6);
}
@media (max-width: 760px) {
  .page-header-video { min-height: 420px; padding: 120px 20px 80px; }
}

/* ---------- Buttons ---------- */
.btn-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
}
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius);
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}
.btn-primary {
  background: var(--gold);
  color: var(--purple-dark);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-dark);
  color: var(--cream);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(154, 125, 63, 0.4);
}
.btn-outline {
  background: transparent;
  color: var(--cream);
  border-color: var(--cream);
}
.btn-outline:hover {
  background: var(--cream);
  color: var(--purple-dark);
  transform: translateY(-2px);
}
.btn-secondary {
  background: var(--purple);
  color: var(--cream);
  border-color: var(--purple);
}
.btn-secondary:hover {
  background: var(--purple-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(74, 44, 90, 0.4);
}

/* ---------- Sections ---------- */
.section-title {
  text-align: center;
  margin-bottom: 14px;
}
.section-subtitle {
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  color: var(--purple);          /* was --gold-dark; now deep purple for WCAG-AA contrast on cream */
  font-size: 1.2rem;
  margin-bottom: 50px;
  opacity: 0.92;
}

.ornament {
  text-align: center;
  margin: 20px 0 40px;
  color: var(--gold);
  font-size: 1.3rem;
  letter-spacing: 1em;
}

/* ---------- Welcome / Intro ---------- */
.welcome {
  background: var(--cream);
  text-align: center;
}
.welcome .narrow p {
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin-bottom: 20px;
}
.welcome-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.welcome-point {
  padding: 28px 20px;
  background: var(--white);
  border-radius: var(--radius);
  border-top: 3px solid var(--gold);
  box-shadow: var(--shadow);
}
.welcome-point h4 {
  font-family: var(--serif);
  color: var(--purple);
  font-style: italic;
  font-size: 1.3rem;
  margin-bottom: 8px;
}
.welcome-point p {
  font-size: 0.98rem;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- Feature Cards (Homepage CTA) ---------- */
.features {
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-dark) 100%);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}
.feature-card {
  background: var(--white);
  padding: 40px 32px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid rgba(201, 169, 97, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.feature-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--purple), var(--gold-dark));
  border-radius: 50%;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  color: var(--cream);
  font-size: 1.8rem;
}
.feature-card h3 {
  color: var(--purple-dark);
  margin-bottom: 12px;
}
.feature-card p {
  color: var(--ink-soft);
  margin-bottom: 20px;
}

/* ---------- Content layouts ---------- */
.content-section {
  background: var(--cream);
}
.content-section.alt {
  background: var(--white);
}

.split-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.split-content.reverse { direction: rtl; }
.split-content.reverse > * { direction: ltr; }

.split-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 400px;
}

.split-text h2 {
  margin-bottom: 20px;
}
.split-text p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin-bottom: 16px;
}

/* Bulleted lists */
.stylish-list {
  list-style: none;
  margin: 20px 0;
}
.stylish-list li {
  position: relative;
  padding: 10px 0 10px 36px;
  color: var(--ink);
  font-size: 1.05rem;
  border-bottom: 1px dashed rgba(201, 169, 97, 0.4);
}
.stylish-list li:last-child { border-bottom: none; }
.stylish-list li::before {
  content: '✦';
  position: absolute;
  left: 8px;
  top: 10px;
  color: var(--gold);
  font-size: 1rem;
}

/* ---------- Prayer Box ---------- */
.prayer-box {
  background: linear-gradient(135deg, rgba(74, 44, 90, 0.04), rgba(201, 169, 97, 0.1));
  border: 1px solid rgba(201, 169, 97, 0.4);
  border-left: 5px solid var(--gold);
  padding: 44px 40px;
  border-radius: var(--radius);
  margin: 40px 0;
  position: relative;
  box-shadow: var(--shadow);
}
.prayer-box::before {
  content: '❝';
  position: absolute;
  top: 10px;
  left: 20px;
  font-family: var(--serif);
  font-size: 4rem;
  color: rgba(201, 169, 97, 0.35);
  line-height: 1;
}
.prayer-box h3 {
  font-family: var(--serif);
  font-style: italic;
  color: var(--purple-dark);
  margin-bottom: 20px;
  text-align: center;
}
.prayer-text {
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--ink);
  font-style: italic;
  text-align: center;
  white-space: pre-line;
  margin: 0;
}
.prayer-amen {
  display: block;
  text-align: center;
  margin-top: 20px;
  font-family: var(--serif);
  font-weight: 600;
  font-style: normal;
  color: var(--gold-dark);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-size: 1.1rem;
}

/* ---------- Scripture Quote ---------- */
.scripture {
  background: var(--purple-dark);
  color: var(--cream);
  text-align: center;
  padding: 70px 24px;
  position: relative;
  overflow: hidden;
}
.scripture::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('images/angels.png');
  background-size: cover;
  background-position: center;
  opacity: 0.15;
}
.scripture > * { position: relative; z-index: 1; }
.scripture blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.3rem, 2.8vw, 2rem);
  max-width: 800px;
  margin: 0 auto 20px;
  color: var(--gold-light);
  line-height: 1.5;
}
.scripture cite {
  font-family: var(--sans);
  font-style: normal;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: var(--gold);
}

/* ---------- Reflection prompts ---------- */
.reflection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 36px;
}
.reflection-card {
  background: var(--white);
  padding: 32px 28px;
  border-radius: var(--radius);
  border-top: 4px solid var(--purple);
  box-shadow: var(--shadow);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink);
  position: relative;
}
.reflection-number {
  font-family: var(--serif);
  font-size: 2.5rem;
  color: var(--gold);
  font-weight: 600;
  line-height: 1;
  margin-bottom: 12px;
  display: block;
}

/* ---------- Belief / Mission Grid ---------- */
.mission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.mission-item {
  padding: 28px 24px;
  background: var(--white);
  border-radius: var(--radius);
  border-left: 4px solid var(--gold);
  box-shadow: 0 4px 20px rgba(46, 26, 58, 0.08);
  transition: all 0.3s ease;
}
.mission-item:hover {
  transform: translateX(4px);
  border-left-color: var(--purple);
}
.mission-item h4 {
  font-family: var(--serif);
  color: var(--purple-dark);
  margin-bottom: 8px;
}
.mission-item p {
  color: var(--ink-soft);
  font-size: 0.98rem;
  margin: 0;
}

/* ---------- Form ---------- */
.form-wrap {
  max-width: 680px;
  margin: 40px auto 0;
  background: var(--white);
  padding: 50px 45px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border-top: 4px solid var(--gold);
}
.form-group { margin-bottom: 22px; }
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--purple-dark);
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}
.form-group label .req { color: var(--gold-dark); }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid rgba(74, 44, 90, 0.2);
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 1rem;
  background: var(--cream);
  color: var(--ink);
  transition: all 0.25s ease;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(201, 169, 97, 0.15);
}
.form-group textarea { resize: vertical; min-height: 140px; }

.radio-group {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.radio-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  color: var(--ink);
  cursor: pointer;
}
.radio-group input[type="radio"] {
  width: auto;
  accent-color: var(--purple);
}

.form-submit {
  width: 100%;
  text-align: center;
  margin-top: 8px;
}

.form-note {
  text-align: center;
  font-style: italic;
  color: var(--ink-soft);
  margin-top: 24px;
  font-family: var(--serif);
  font-size: 1.1rem;
}

/* ---------- Success message ---------- */
.success-msg {
  display: none;
  background: linear-gradient(135deg, rgba(201, 169, 97, 0.15), rgba(74, 44, 90, 0.08));
  border: 1px solid var(--gold);
  padding: 28px;
  border-radius: var(--radius);
  text-align: center;
  margin-top: 20px;
  color: var(--purple-dark);
  font-family: var(--serif);
  font-size: 1.2rem;
  font-style: italic;
}
.success-msg.show { display: block; animation: fadeUp 0.6s ease; }

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--purple-dark), var(--purple));
  color: var(--cream);
  text-align: center;
  padding: 80px 24px;
}
.cta-banner h2 {
  color: var(--cream);
  font-style: italic;
  margin-bottom: 16px;
}
.cta-banner p {
  color: var(--gold-light);
  font-size: 1.15rem;
  max-width: 640px;
  margin: 0 auto 30px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--purple-dark);
  color: var(--cream);
  padding: 70px 24px 30px;
  text-align: center;
}
.site-footer .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
  text-align: left;
}
.footer-col h4 {
  color: var(--gold);
  font-family: var(--serif);
  font-style: italic;
  margin-bottom: 16px;
  font-size: 1.25rem;
}
.footer-col p, .footer-col a {
  color: rgba(250, 246, 237, 0.8);
  font-size: 0.95rem;
  margin-bottom: 10px;
  display: block;
}
.footer-col a:hover { color: var(--gold-light); }
.footer-scripture {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold-light);
  font-size: 1.05rem;
  line-height: 1.7;
}
.social-links {
  display: flex;
  gap: 14px;
  margin-top: 10px;
}
.social-links a {
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold);
  margin: 0;
  transition: all 0.25s ease;
}
.social-links a:hover {
  background: var(--gold);
  color: var(--purple-dark);
  transform: translateY(-2px);
}
.footer-bottom {
  border-top: 1px solid rgba(201, 169, 97, 0.3);
  padding-top: 24px;
  font-size: 0.9rem;
  color: rgba(250, 246, 237, 0.82);
}
.footer-bottom .verse {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold-light);
  font-size: 1.1rem;
  margin-bottom: 10px;
}

/* ---------- Animations ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(25px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 1s ease both; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 20px;
    border-top: 1px solid rgba(201, 169, 97, 0.3);
    box-shadow: 0 10px 30px rgba(46, 26, 58, 0.1);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: 12px 16px; }

  .split-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .split-content.reverse { direction: ltr; }
  .split-image img { min-height: 320px; }

  section { padding: 60px 0; }
  .hero { min-height: 80vh; padding: 80px 20px; }
  .hero blockquote { padding: 20px 24px; }
  .page-header { padding: 100px 20px 70px; }
  .form-wrap { padding: 32px 24px; }
  .prayer-box { padding: 32px 24px; }
}

@media (max-width: 480px) {
  .logo-text { font-size: 1.1rem; }
  .logo-text small { font-size: 0.65rem; }
  .btn { padding: 12px 22px; font-size: 0.85rem; }
  .btn-group { flex-direction: column; align-items: stretch; }
  .btn-group .btn { text-align: center; }
}

/* ==========================================================
   Prayer Result Card (prayer-requests.html)
   ========================================================== */
.intro-quote { margin-bottom: 30px; }
.centered-quote {
  font-family: var(--serif);
  font-style: italic;
  text-align: center;
  font-size: 1.3rem;
  color: var(--purple);
  padding: 20px;
  border-top: 1px solid rgba(201, 169, 97, 0.3);
  border-bottom: 1px solid rgba(201, 169, 97, 0.3);
  max-width: 680px;
  margin: 0 auto;
}
.centered-quote cite {
  display: block;
  font-style: normal;
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-top: 12px;
}

.prayer-result {
  display: none;
  margin-top: 50px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease;
}
.prayer-result.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
  animation: fadeUp 1s ease;
}

/* Loading state */
.prayer-loading {
  text-align: center;
  padding: 60px 30px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 4px solid var(--gold);
}
.spinner {
  width: 56px;
  height: 56px;
  margin: 0 auto 24px;
  border: 4px solid rgba(201, 169, 97, 0.25);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--purple-dark);
  margin-bottom: 8px;
}
.loading-sub {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold-dark);
  font-size: 1rem;
}

/* Prayer card */
.prayer-result-card {
  background:
    linear-gradient(135deg, rgba(250, 246, 237, 0.97), rgba(255, 255, 255, 0.97)),
    url('images/hero-banner.png') center/cover;
  border: 1px solid rgba(201, 169, 97, 0.4);
  border-radius: var(--radius);
  padding: 50px 45px;
  box-shadow: 0 20px 60px rgba(46, 26, 58, 0.2);
  position: relative;
  overflow: hidden;
}
.prayer-result-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light), var(--gold), var(--gold-dark));
}
.prayer-result-header {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 24px;
  border-bottom: 1px dashed rgba(201, 169, 97, 0.5);
}
.prayer-result-header .seal {
  font-size: 2.2rem;
  color: var(--gold);
  margin-bottom: 12px;
}
.prayer-result-header .date {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 10px;
}
.prayer-result-header h2 {
  font-family: var(--serif);
  font-style: italic;
  color: var(--purple-dark);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 12px;
}
.badge {
  display: inline-block;
  background: var(--purple);
  color: var(--cream);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
}
.badge-quiet {
  background: var(--gold-dark);
}

.composed-prayer {
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.85;
  color: var(--ink);
  font-style: italic;
  text-align: left;
  padding: 0 10px;
  white-space: pre-line;
}

.prayer-result-footer {
  text-align: center;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px dashed rgba(201, 169, 97, 0.5);
}
.prayer-result-footer .signed {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold-dark);
  font-size: 1rem;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}
.seal-verse {
  font-family: var(--serif);
  font-style: italic;
  color: var(--purple);
  font-size: 1rem;
}

.prayer-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid rgba(201, 169, 97, 0.2);
}
.prayer-actions .btn {
  padding: 12px 24px;
  font-size: 0.85rem;
}
.btn-outline-dark {
  background: transparent;
  border: 2px solid var(--purple);
  color: var(--purple);
}
.btn-outline-dark:hover {
  background: var(--purple);
  color: var(--cream);
  transform: translateY(-2px);
}

.fallback-note {
  text-align: center;
  margin-top: 20px;
  font-size: 0.8rem;
  color: var(--ink-soft);
  font-style: italic;
  opacity: 0.7;
}

.prayer-error {
  background: #fff3e0;
  border-left: 4px solid #c9a961;
  padding: 20px;
  border-radius: var(--radius);
  color: var(--purple-dark);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
}

@media (max-width: 600px) {
  .prayer-result-card { padding: 32px 22px; }
  .composed-prayer { font-size: 1.15rem; padding: 0; }
  .prayer-actions { flex-direction: column; }
  .prayer-actions .btn { width: 100%; }
}

/* ==========================================================
   Devotions Page
   ========================================================== */
.daily-verse {
  text-align: center;
  background: linear-gradient(135deg, rgba(201, 169, 97, 0.08), rgba(74, 44, 90, 0.05));
  padding: 50px 40px;
  border-radius: var(--radius);
  border: 1px solid rgba(201, 169, 97, 0.3);
  box-shadow: var(--shadow);
}
.verse-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 8px;
}
.verse-header .verse-title {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gold-dark);
  text-transform: none;
}
.verse-header .verse-flourish {
  color: var(--gold);
  font-size: 1rem;
  line-height: 1;
}
.verse-date {
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 24px;
}
.verse-text {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  color: var(--purple-dark);
  line-height: 1.5;
  margin: 20px 0 10px;
}
.verse-cite {
  display: block;
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 24px;
}
.verse-reflection {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-soft);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

.rhythm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 22px;
  margin-top: 40px;
}
.rhythm-card {
  background: var(--white);
  padding: 30px 26px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 3px solid var(--gold);
  transition: transform 0.3s ease;
}
.rhythm-card:hover {
  transform: translateY(-4px);
}
.rhythm-time {
  display: inline-block;
  background: var(--purple);
  color: var(--cream);
  padding: 4px 14px;
  border-radius: 14px;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.rhythm-card h3 {
  font-family: var(--serif);
  color: var(--purple-dark);
  font-style: italic;
  margin-bottom: 10px;
}
.rhythm-prayer {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

/* Novena accordion */
.novena-accordion {
  max-width: 760px;
  margin: 30px auto 0;
}
.novena-day {
  background: var(--white);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  margin-bottom: 12px;
  padding: 18px 24px;
  box-shadow: 0 4px 14px rgba(46, 26, 58, 0.06);
  transition: box-shadow 0.3s ease;
}
.novena-day[open] {
  box-shadow: 0 8px 22px rgba(46, 26, 58, 0.1);
  border-left-color: var(--purple);
}
.novena-day summary {
  cursor: pointer;
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--purple-dark);
  padding: 4px 0;
  outline: none;
  list-style: none;
  position: relative;
  padding-left: 28px;
}
.novena-day summary::-webkit-details-marker { display: none; }
.novena-day summary::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--gold);
  transition: transform 0.3s ease;
}
.novena-day[open] summary::before { transform: rotate(180deg); color: var(--purple); }
.novena-day p {
  margin: 16px 0 4px;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.7;
  font-style: italic;
}

/* Saints grid */
.saints-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 36px;
}
.saint-card {
  background: var(--white);
  padding: 28px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 3px solid var(--purple);
  transition: all 0.3s ease;
}
.saint-card:hover {
  transform: translateY(-4px);
  border-top-color: var(--gold);
}
.saint-card h3 {
  font-family: var(--serif);
  color: var(--purple-dark);
  font-style: italic;
  margin-bottom: 6px;
}
.saint-card .patron {
  font-size: 0.85rem;
  color: var(--gold-dark);
  font-style: italic;
  margin-bottom: 12px;
  text-transform: none;
  letter-spacing: 0.02em;
}
.saint-card p:last-child {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.6;
  margin: 0;
}

/* Saved prayers list */
.saved-prayers {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px dashed rgba(201, 169, 97, 0.5);
}
.saved-prayers h3 {
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  color: var(--purple-dark);
  margin-bottom: 20px;
}
.saved-item {
  background: var(--white);
  padding: 16px 20px;
  margin-bottom: 10px;
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(46,26,58,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-left: 3px solid var(--gold);
}
.saved-item .saved-meta {
  flex: 1;
  min-width: 0;
}
.saved-item .saved-title {
  font-family: var(--serif);
  font-style: italic;
  color: var(--purple-dark);
  font-size: 1.05rem;
}
.saved-item .saved-date {
  font-size: 0.8rem;
  color: var(--ink-soft);
}
.saved-item button {
  background: transparent;
  border: 1px solid var(--purple);
  color: var(--purple);
  padding: 6px 14px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s ease;
}
.saved-item button:hover {
  background: var(--purple);
  color: var(--cream);
}
.saved-item .del-btn { border-color: #b55; color: #b55; }
.saved-item .del-btn:hover { background: #b55; color: #fff; }

/* ==========================================================
   Mobile polish — tap highlights, smooth scroll, safe-area
   ========================================================== */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
* { -webkit-tap-highlight-color: rgba(201, 169, 97, 0.25); }
a, button, input, textarea, select { touch-action: manipulation; }
body { overscroll-behavior-y: none; }
@supports (padding: max(0px)) {
  .site-footer { padding-bottom: max(2rem, env(safe-area-inset-bottom)); }
}
/* Prevent iOS input zoom by keeping font-size >= 16px */
input, textarea, select { font-size: 16px; }

/* ==========================================================
   Patron Saint Match block (inside prayer result)
   ========================================================== */
.saint-match {
  margin: 2.25rem 0 0.5rem;
  padding: 1.75rem 1.75rem 1.5rem;
  background: linear-gradient(180deg, #ffffff 0%, #fdfaf0 100%);
  border: 1px solid rgba(201, 169, 97, 0.45);
  border-top: 4px solid var(--purple);
  border-radius: 6px;
  box-shadow: 0 6px 22px rgba(92, 58, 122, 0.08);
  text-align: center;
  position: relative;
}
.saint-match-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.saint-match-header .saint-seal {
  color: var(--gold);
  font-size: 1rem;
  line-height: 1;
}
.saint-match-header .saint-label {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--purple);
  font-weight: 600;
}
.saint-match .saint-name {
  font-family: var(--serif);
  font-style: italic;
  color: var(--purple);
  font-size: 2rem;
  line-height: 1.15;
  margin: 0 0 0.25rem;
  font-weight: 500;
}
.saint-match .saint-title {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold-dark);
  font-size: 1.05rem;
  margin: 0 0 0.25rem;
}
.saint-match .saint-feast {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin: 0 0 1rem;
}
.saint-match .saint-why {
  margin: 1rem auto 0;
  max-width: 52ch;
  text-align: left;
  background: rgba(247, 242, 230, 0.55);
  border-left: 3px solid var(--gold);
  padding: 0.9rem 1.1rem;
  border-radius: 2px;
}
.saint-match .saint-why-label {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--purple);
  margin: 0 0 0.4rem;
  font-weight: 600;
}
.saint-match .saint-why-text {
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.65;
  margin: 0;
}
.saint-match .saint-invocation {
  margin: 1.2rem auto 0;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(201, 169, 97, 0.35);
  font-family: var(--serif);
  font-style: italic;
  color: var(--purple);
  font-size: 1.15rem;
  max-width: 44ch;
  line-height: 1.5;
}

/* Saved-prayer card: show matched saint under the date */
.saved-saint {
  font-family: var(--serif);
  font-style: italic;
  color: var(--purple);
  font-size: 0.92rem;
  margin-top: 0.3rem;
  letter-spacing: 0.02em;
}

@media (max-width: 600px) {
  .saint-match { padding: 1.25rem 1rem 1.1rem; }
  .saint-match .saint-name { font-size: 1.6rem; }
  .saint-match .saint-invocation { font-size: 1rem; }
}

/* ==========================================================
   Home hero — video background variant
   ========================================================== */
.hero.hero-with-video::before { display: none; } /* hide the static image layer */
.hero.hero-with-video {
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* Safe default poster until JS sets one dynamically */
  background-image: url('images/home-poster.jpg');
}
.hero.hero-with-video .hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  opacity: 0; /* revealed only when playback starts */
  transition: opacity 700ms ease;
  pointer-events: none;
}
.hero.hero-with-video .hero-bg-video.playing { opacity: 0.95; }
.hero.hero-with-video::after {
  /* strengthen overlay so text stays readable over video */
  background: linear-gradient(180deg,
    rgba(46, 26, 58, 0.62) 0%,
    rgba(46, 26, 58, 0.78) 100%);
}
@media (prefers-reduced-motion: reduce) {
  .hero.hero-with-video .hero-bg-video,
  .page-header-video .hero-video { display: none; }
  .hero.hero-with-video { background: url('images/home-poster.jpg') center/cover no-repeat; }
}
