/* ==========================================================================
   Simply Lectio — shared stylesheet
   Design: deep navy + warm gold, serif display headings (Playfair Display),
   clean sans body text (Inter).
   ========================================================================== */

/* ---- Design tokens ---- */
:root {
  --navy-900: #131a3f;      /* darkest hero gradient stop */
  --navy-800: #1b2455;      /* header / footer navy */
  --navy-700: #232e6b;      /* lighter gradient stop */
  --gold-400: #e3b45c;      /* primary gold accent */
  --gold-500: #d9a83f;      /* button gold */
  --gold-text: #8a6420;     /* accessible gold for text on light backgrounds (WCAG AA) */
  --ink-900: #1a1f36;       /* near-black heading text on light bg */
  --ink-600: #4a5068;       /* body text on light bg */
  --paper: #f4f4f8;         /* light section background */
  --card: #fbfbfd;          /* card background */
  --card-border: #e3e4ee;
  --radius: 14px;
  --maxw: 1180px;
}

/* ---- Reset & base ---- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-600);
  background: var(--paper);
}

h1, h2, h3 {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  color: var(--ink-900);
  line-height: 1.15;
  margin: 0 0 0.5em;
}

img, svg { vertical-align: middle; }

a { color: var(--gold-text); }

/* Visible keyboard focus for accessibility */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--gold-400);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Skip link for screen-reader / keyboard users */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold-400);
  color: var(--navy-900);
  padding: 0.6rem 1rem;
  z-index: 100;
  font-weight: 600;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---- Header / navigation ---- */
.site-header {
  background: var(--navy-800);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
  flex-wrap: wrap;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(227, 180, 92, 0.15);
  border: 1px solid rgba(227, 180, 92, 0.5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-400);
  flex-shrink: 0;
}

.brand-name {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: 1.45rem;
  color: #ffffff;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #d5d9ee;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
  padding: 0.55rem 0.85rem;
  border-radius: 9px;
  min-height: 44px; /* touch target */
}

.site-nav a:hover { background: rgba(255, 255, 255, 0.08); color: #ffffff; }

.site-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.12);
  color: var(--gold-400);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 10px;
  padding: 0.8rem 1.5rem;
  min-height: 48px; /* touch target */
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-gold {
  background: var(--gold-500);
  color: #24200f;
}
.btn-gold:hover { background: #c99a35; }

.btn-outline-light {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.45);
}
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.08); }

.btn-outline-dark {
  background: #ffffff;
  color: var(--navy-800);
  border-color: #c9ccdd;
}
.btn-outline-dark:hover { border-color: var(--navy-800); }

.btn-navy {
  background: var(--navy-800);
  color: #ffffff;
}
.btn-navy:hover { background: var(--navy-700); }

/* ---- Hero (dark) sections ---- */
.hero {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
  color: #c9cde4;
  padding: 5.5rem 0 5rem;
}

.hero h1 {
  color: #ffffff;
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  font-weight: 700;
  margin: 1.2rem 0 1.4rem;
}

.hero h1 .gold { color: var(--gold-400); }

.eyebrow {
  display: inline-block;
  border: 1px solid rgba(227, 180, 92, 0.55);
  color: var(--gold-400);
  background: rgba(227, 180, 92, 0.08);
  border-radius: 8px;
  padding: 0.35rem 0.9rem;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.scripture-quote {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-size: 1.35rem;
  color: #e8eaf6;
  margin: 0 0 0.35rem;
}

.scripture-ref { color: #aab1d4; margin: 0 0 1.8rem; }

.hero .lead {
  max-width: 620px;
  font-size: 1.15rem;
  margin-bottom: 2.2rem;
}

.hero .lead a, .hero .lead .gold { color: var(--gold-400); font-weight: 600; text-decoration: none; }

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Page-title hero variant (inner pages) */
.hero.page-hero { padding: 3.5rem 0 3.2rem; }

.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin: 1rem 0 0.6rem;
}

.page-hero .tagline {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-size: 1.15rem;
  color: #b7bdda;
  margin: 0;
}

.hero-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(227, 180, 92, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-400);
  margin-right: 0.75rem;
}

.page-hero .hero-top { display: flex; align-items: center; }

/* ---- Light content sections ---- */
.section { padding: 4.5rem 0; }

.section-head { text-align: center; max-width: 760px; margin: 0 auto 3rem; }

.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); }

.section-head p { font-size: 1.1rem; margin: 0; }

/* ---- Card grids ---- */
.grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
}

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: 0 1px 3px rgba(19, 26, 63, 0.06);
}

.card h3 { font-size: 1.35rem; margin: 0.35rem 0 0.6rem; }

.card p { margin: 0; font-size: 0.98rem; }

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(227, 180, 92, 0.16);
  color: #8a6420;
  margin-bottom: 0.9rem;
}

.card-kicker {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5c6280;
}

/* Movement cards (numbered) */
.movement-head { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 0.9rem; }
.movement-head .card-icon { margin-bottom: 0; flex-shrink: 0; }
.movement-head h3 { margin: 0.1rem 0 0; }

/* ---- Episode cards ---- */
.episode-card { display: flex; flex-direction: column; }

.episode-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.episode-kicker { font-size: 0.9rem; color: #5c6280; }

.episode-scripture { color: var(--gold-text); font-weight: 600; font-size: 0.95rem; margin: 0 0 0.6rem; }

.episode-card .desc { flex-grow: 1; margin-bottom: 1.2rem; }

.episode-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.episode-duration { color: #5c6280; font-size: 0.95rem; }

/* ---- Filter pills (resources page) ---- */
.pill-row { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 2.2rem; }

.pill {
  border: 1px solid var(--card-border);
  background: #ffffff;
  color: var(--ink-600);
  border-radius: 9px;
  padding: 0.5rem 1.1rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.pill.active { background: var(--navy-800); color: #ffffff; border-color: var(--navy-800); }

.tag {
  display: inline-block;
  background: rgba(227, 180, 92, 0.16);
  color: #8a6420;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 7px;
  padding: 0.25rem 0.7rem;
  margin-bottom: 0.8rem;
}

/* ---- Dark CTA band ---- */
.cta-band {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 60%, var(--navy-700) 100%);
  color: #c9cde4;
  text-align: center;
  padding: 5rem 0;
}

.cta-band h2 { color: #ffffff; font-size: clamp(2rem, 5vw, 3rem); }

.cta-band .scripture-quote { font-size: 1.15rem; margin-bottom: 2rem; }

.cta-band .cta-mark {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 1.6rem;
  background: rgba(227, 180, 92, 0.14);
  border: 1px solid rgba(227, 180, 92, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-400);
}

.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---- Coming-soon panel (journal / prayer / community) ---- */
.soon-panel {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  padding: 3rem 1.5rem;
}

.soon-panel .cta-mark {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 1.4rem;
  background: rgba(27, 36, 85, 0.06);
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-800);
}

.soon-panel h2 { font-size: 1.7rem; }

/* ---- Footer ---- */
.site-footer {
  background: var(--navy-800);
  color: #b7bdda;
  padding: 4rem 0 2rem;
}

.footer-cols {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-quote {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  margin: 1rem 0 0.2rem;
}

.footer-ref { font-size: 0.95rem; color: #8f96bd; }

.footer-head {
  font-family: "Playfair Display", Georgia, serif;
  color: var(--gold-400);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-links { list-style: none; margin: 0; padding: 0; }

.footer-links li { margin-bottom: 0.7rem; }

.footer-links a { color: #d5d9ee; text-decoration: none; }
.footer-links a:hover { color: var(--gold-400); text-decoration: underline; }

.footer-bottom { text-align: center; padding-top: 1.8rem; font-size: 0.95rem; color: #8f96bd; }

/* ---- Responsive tweaks ---- */
@media (max-width: 720px) {
  .site-header .wrap { justify-content: center; }
  .hero { padding: 3.5rem 0; }
  .section { padding: 3rem 0; }
}

/* Screen-reader-only utility (visually hidden, still announced) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
