/* ── Google Fonts ──────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  --bg:         #faf8f5;
  --bg-alt:     #f0ece4;
  --text:       #1c1c2e;
  --subtle:     #6b6280;
  --accent:     #c9a227;
  --accent-dim: rgba(201,162,39,0.1);
  --deep:       #0d1b2a;
  --card-bg:    #ffffff;
  --nav-bg:     rgba(250,248,245,0.92);
  --border:     #e4ddd0;
  --radius:     14px;
  --serif:      'Playfair Display', Georgia, serif;
  --sans:       'Inter', system-ui, sans-serif;
  --shadow:     0 2px 16px rgba(0,0,0,0.07);
  --shadow-lg:  0 8px 40px rgba(0,0,0,0.13);
  --max-w:      1000px;
  --tr:         0.3s ease;
}

body.dark {
  --bg:        #090f1a;
  --bg-alt:    #0d1725;
  --text:      #ede9e0;
  --subtle:    #9e9680;
  --card-bg:   #111e30;
  --nav-bg:    rgba(9,15,26,0.92);
  --border:    #1a2e48;
  --shadow:    0 2px 16px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.6);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img  { max-width: 100%; display: block; }

body {
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.75;
  background: var(--bg);
  color: var(--text);
  transition: background var(--tr), color var(--tr);
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.2; }

/* ── Navigation ────────────────────────────────────────────── */
header {
  position: sticky; top: 0; z-index: 200;
  backdrop-filter: blur(14px) saturate(1.5);
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
  transition: background var(--tr), border-color var(--tr);
}

nav {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  position: relative;
}

.logo {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-right: auto;
  letter-spacing: -0.02em;
}
.logo:hover { text-decoration: none; }

#nav-links { list-style: none; display: flex; gap: 0.1rem; }

#nav-links a {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  transition: all 0.2s;
}
#nav-links a:hover,
#nav-links a.active {
  color: var(--accent);
  background: var(--accent-dim);
  text-decoration: none;
}

#theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.35rem 0.55rem;
  cursor: pointer;
  font-size: 1rem;
  color: var(--text);
  margin-left: 0.5rem;
  transition: background 0.2s;
}
#theme-toggle:hover { background: var(--bg-alt); }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text);
  padding: 0.3rem;
  margin-left: auto;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--accent);
  color: #111 !important;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid var(--accent);
  cursor: pointer;
  font-family: var(--sans);
  transition: all 0.2s;
}
.btn:hover {
  background: #b8911f;
  border-color: #b8911f;
  color: #fff !important;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201,162,39,0.35);
}
.btn-outline {
  background: transparent !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
}
.btn-outline:hover {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #111 !important;
}
.btn-ghost {
  background: transparent !important;
  color: var(--accent) !important;
  border-color: transparent !important;
  box-shadow: none !important;
}
.btn-ghost:hover { background: var(--accent-dim) !important; transform: none !important; box-shadow: none !important; }
.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.875rem; }

/* ── Hero ───────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% -5%, rgba(201,162,39,0.2) 0%, transparent 70%),
    linear-gradient(170deg, #040b12 0%, #0d1b2a 55%, #0a1e10 100%);
}

#hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 15% 25%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 80% 12%, rgba(255,255,255,0.35) 0%, transparent 100%),
    radial-gradient(1px 1px at 55% 68%, rgba(255,255,255,0.25) 0%, transparent 100%),
    radial-gradient(1px 1px at 8%  82%, rgba(255,255,255,0.3)  0%, transparent 100%),
    radial-gradient(1px 1px at 92% 55%, rgba(255,255,255,0.2)  0%, transparent 100%),
    radial-gradient(1px 1px at 38% 18%, rgba(255,255,255,0.3)  0%, transparent 100%),
    radial-gradient(2px 2px at 28% 58%, rgba(201,162,39,0.5)   0%, transparent 100%),
    radial-gradient(2px 2px at 72% 38%, rgba(201,162,39,0.4)   0%, transparent 100%);
  pointer-events: none;
}

#hero::after {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 2px; height: 50%;
  background: linear-gradient(to bottom, rgba(201,162,39,0.9), transparent);
  box-shadow: 0 0 140px 70px rgba(201,162,39,0.07);
  pointer-events: none;
}

.hero-content {
  position: relative; z-index: 10;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 7rem 1.5rem 5rem;
  text-align: center;
  width: 100%;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.75rem;
  padding: 0.35rem 1.1rem;
  border: 1px solid rgba(201,162,39,0.45);
  border-radius: 100px;
}

.hero-content h1 {
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  color: #ffffff; font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.hero-content h1 em { color: var(--accent); font-style: italic; }

.hero-content > p {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: rgba(255,255,255,0.72);
  max-width: 620px;
  margin: 0 auto 2.5rem;
  line-height: 1.85;
}

.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.hero-scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.3);
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  animation: bounce 2.2s ease-in-out infinite;
}
.hero-scroll::after { content: '↓'; font-size: 1rem; }
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(7px); }
}

/* ── Section helpers ────────────────────────────────────────── */
.section-inner { max-width: var(--max-w); margin: 0 auto; }

.section-label {
  display: inline-block;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.6rem;
}

.section-title { font-size: clamp(1.7rem, 4vw, 2.4rem); margin-bottom: 0.9rem; color: var(--text); }
.section-sub   { color: var(--subtle); font-size: 1rem; max-width: 580px; line-height: 1.75; }

/* ── Pathway cards ──────────────────────────────────────────── */
#new-here {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 5rem 1.5rem;
  text-align: center;
}

.pathway-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  text-align: left;
  margin-top: 3rem;
}

.pathway-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.pathway-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: rgba(201,162,39,0.5); }

.pathway-icon { font-size: 2.2rem; display: block; margin-bottom: 1rem; }
.pathway-card h3 { font-size: 1.15rem; margin-bottom: 0.65rem; }
.pathway-card p  { color: var(--subtle); font-size: 0.92rem; line-height: 1.65; margin-bottom: 1.25rem; }
.pathway-card a  { font-weight: 600; font-size: 0.88rem; color: var(--accent); display: inline-flex; align-items: center; gap: 0.25rem; transition: gap 0.2s; }
.pathway-card a:hover { gap: 0.5rem; text-decoration: none; }

/* ── Verse of the Day ───────────────────────────────────────── */
#daily-verse {
  background: var(--deep);
  padding: 6rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
body.dark #daily-verse { background: #040c18; }

#daily-verse::before {
  content: '\201C';
  position: absolute; top: -4rem; left: 50%; transform: translateX(-50%);
  font-family: var(--serif); font-size: 24rem;
  color: rgba(201,162,39,0.04); line-height: 1;
  pointer-events: none; user-select: none;
}

#verse-text { max-width: 720px; margin: 1.5rem auto 0; }
#verse-text p {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 3vw, 1.65rem);
  color: #ffffff; line-height: 1.75;
  font-style: italic; margin-bottom: 1.5rem;
}
#verse-text cite {
  color: var(--accent); font-family: var(--sans);
  font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; font-style: normal;
}

/* ── Featured video ─────────────────────────────────────────── */
#featured-video {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 5rem 1.5rem;
  text-align: center;
}

.video-embed {
  position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;
  border-radius: var(--radius); box-shadow: var(--shadow-lg); margin-top: 2.5rem;
}
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: var(--radius); }

/* ── Blog post cards ────────────────────────────────────────── */
.posts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }

.post-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem;
  display: flex; flex-direction: column;
  transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: rgba(201,162,39,0.4); }

.post-date { font-size: 0.76rem; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.6rem; }
.post-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; line-height: 1.35; }
.post-card h3 a { color: var(--text); }
.post-card h3 a:hover { color: var(--accent); text-decoration: none; }
.post-card p  { color: var(--subtle); font-size: 0.92rem; line-height: 1.65; flex: 1; margin-bottom: 1.25rem; }

.read-more { font-weight: 600; font-size: 0.875rem; color: var(--accent); display: inline-flex; align-items: center; gap: 0.25rem; transition: gap 0.2s; }
.read-more:hover { gap: 0.5rem; text-decoration: none; }

/* ── John 3:16 Banner ───────────────────────────────────────── */
#quote-banner { padding: 5rem 1.5rem; text-align: center; }
#quote-banner blockquote {
  max-width: 700px; margin: 0 auto;
  font-family: var(--serif); font-size: clamp(1.25rem, 3vw, 1.85rem);
  font-style: italic; color: var(--text); line-height: 1.65;
}
#quote-banner cite { display: block; margin-top: 1.25rem; font-family: var(--sans); font-size: 0.875rem; font-style: normal; color: var(--subtle); font-weight: 600; }

/* ── Page hero (inner pages) ────────────────────────────────── */
.page-hero {
  background:
    radial-gradient(ellipse 120% 80% at 50% -10%, rgba(201,162,39,0.14) 0%, transparent 70%),
    var(--deep);
  padding: 5rem 1.5rem 4rem; text-align: center;
}
body.dark .page-hero { background: radial-gradient(ellipse 120% 80% at 50% -10%, rgba(201,162,39,0.1) 0%, transparent 70%), #040c18; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3rem); color: #fff; margin-bottom: 0.75rem; }
.page-hero p  { color: rgba(255,255,255,0.6); font-size: 1rem; max-width: 560px; margin: 0 auto; }

/* ── Blog page list ─────────────────────────────────────────── */
.blog-posts-section { max-width: 780px; margin: 0 auto; padding: 3rem 1.5rem 5rem; }
.post-list-item { padding: 2.25rem 0; border-bottom: 1px solid var(--border); }
.post-list-item:last-child { border-bottom: none; }
.post-list-item h2 { font-size: 1.35rem; margin: 0.4rem 0 0.5rem; }
.post-list-item h2 a { color: var(--text); }
.post-list-item h2 a:hover { color: var(--accent); text-decoration: none; }
.post-list-item p { color: var(--subtle); font-size: 0.95rem; }

/* ── Full blog article ──────────────────────────────────────── */
.article-wrapper { max-width: 720px; margin: 0 auto; padding: 3rem 1.5rem 5rem; }

.back-link { display: inline-flex; align-items: center; gap: 0.3rem; color: var(--subtle); font-size: 0.9rem; margin-bottom: 2.5rem; transition: color 0.2s; }
.back-link:hover { color: var(--accent); text-decoration: none; }

.article-date { font-size: 0.76rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); margin-bottom: 0.85rem; }
.article-wrapper h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 2.5rem; line-height: 1.2; }
.article-wrapper h2 { font-size: 1.35rem; margin: 2.5rem 0 0.6rem; color: var(--text); }
.article-wrapper p  { margin-bottom: 1.3rem; line-height: 1.9; }

.article-wrapper blockquote {
  border-left: 3px solid var(--accent); padding: 1.25rem 1.75rem; margin: 2rem 0;
  background: var(--bg-alt); border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--serif); font-style: italic; font-size: 1.05rem; line-height: 1.8;
}
.article-wrapper blockquote cite { display: block; margin-top: 0.75rem; font-family: var(--sans); font-size: 0.85rem; color: var(--subtle); font-style: normal; font-weight: 600; }

/* ── Bible reader — sidebar layout ─────────────────────────── */
.bible-page-wrapper { display: grid; grid-template-columns: 270px 1fr; min-height: calc(100vh - 60px); }

.bible-sidebar {
  background: var(--bg-alt); border-right: 1px solid var(--border);
  padding: 1.75rem 1.25rem; overflow-y: auto;
  position: sticky; top: 60px; height: calc(100vh - 60px);
}

.bible-sidebar h3 { font-family: var(--sans); font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.15em; color: var(--subtle); margin-bottom: 1.25rem; }
.bible-controls-inline { display: flex; flex-direction: column; gap: 1rem; }

.control-group label { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--subtle); display: block; margin-bottom: 0.35rem; }
.control-group select {
  width: 100%; padding: 0.6rem 2rem 0.6rem 0.85rem;
  border: 1px solid var(--border); border-radius: 8px;
  background: var(--card-bg); color: var(--text);
  font-size: 0.9rem; font-family: var(--sans); cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%236b6280' d='M5 7L1 3h8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.7rem center;
}

.bible-main { padding: 2.5rem 3rem; max-width: 760px; }

.bible-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--border); flex-wrap: wrap; gap: 1rem; }
.bible-title { font-family: var(--serif); font-size: 1.7rem; color: var(--text); }
.bible-tools { display: flex; gap: 0.5rem; align-items: center; }

.font-size-btn {
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: 8px;
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text); font-size: 0.85rem; font-weight: 600; font-family: var(--sans);
  transition: background 0.2s, border-color 0.2s;
}
.font-size-btn:hover { background: var(--accent-dim); border-color: var(--accent); }

.verse { margin-bottom: 0.3rem; padding: 0.35rem 0.6rem; border-radius: 6px; transition: background 0.15s; cursor: pointer; line-height: 1.95; }
.verse:hover { background: var(--accent-dim); }
.verse sup { color: var(--accent); font-weight: 700; font-size: 0.68em; margin-right: 0.3rem; user-select: none; }

.bible-nav-bar { display: flex; justify-content: space-between; align-items: center; margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }

.bible-loading, .bible-placeholder { color: var(--subtle); font-style: italic; text-align: center; padding: 5rem 0; }
.bible-error { color: #c0392b; text-align: center; padding: 2rem 0; }
.version-note { font-size: 0.82rem; color: var(--subtle); font-style: italic; margin-bottom: 1.5rem; padding: 0.6rem 1rem; background: var(--bg-alt); border-radius: 8px; border-left: 3px solid var(--accent); }

/* ── Videos page ────────────────────────────────────────────── */
.videos-section { max-width: var(--max-w); margin: 0 auto; padding: 3rem 1.5rem 5rem; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }

.video-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform 0.22s, box-shadow 0.22s; }
.video-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.video-placeholder { background: linear-gradient(135deg, #0a1520, #162840); color: rgba(255,255,255,0.45); display: flex; flex-direction: column; align-items: center; justify-content: center; height: 185px; font-size: 0.9rem; }
.video-placeholder span { font-size: 2.5rem; margin-bottom: 0.5rem; }
.video-card h3 { padding: 1.1rem 1.25rem 0.3rem; font-size: 1rem; }
.video-card p  { padding: 0 1.25rem 1.25rem; color: var(--subtle); font-size: 0.88rem; }

.video-about { max-width: var(--max-w); margin: 3rem auto 0; padding: 2.5rem; background: var(--bg-alt); border-radius: var(--radius); border: 1px solid var(--border); }
.video-about h2 { font-size: 1.35rem; margin-bottom: 1rem; }
.video-about p  { color: var(--subtle); font-size: 0.95rem; margin-bottom: 0.75rem; }

/* ── Footer ─────────────────────────────────────────────────── */
footer { background: var(--deep); color: rgba(255,255,255,0.55); padding: 4.5rem 1.5rem 2rem; }
body.dark footer { background: #030810; }

.footer-inner { max-width: var(--max-w); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand .logo { color: var(--accent); display: block; margin-bottom: 0.85rem; }
.footer-brand p  { font-size: 0.9rem; line-height: 1.7; max-width: 280px; }
.footer-col h4 { font-family: var(--sans); font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.15em; color: rgba(255,255,255,0.35); margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col ul a { color: rgba(255,255,255,0.55); font-size: 0.9rem; transition: color 0.2s; }
.footer-col ul a:hover { color: var(--accent); text-decoration: none; }

.footer-bottom { max-width: var(--max-w); margin: 0 auto; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.07); display: flex; justify-content: space-between; align-items: center; font-size: 0.82rem; flex-wrap: wrap; gap: 0.75rem; }

/* ── Scroll animations ──────────────────────────────────────── */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-in.visible { opacity: 1; transform: none; }
.fade-in:nth-child(2) { transition-delay: 0.1s; }
.fade-in:nth-child(3) { transition-delay: 0.2s; }

.highlight { color: var(--accent); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 800px) {
  .bible-page-wrapper { grid-template-columns: 1fr; }
  .bible-sidebar { position: static; height: auto; border-right: none; border-bottom: 1px solid var(--border); }
  .bible-main { padding: 1.5rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 600px) {
  .menu-toggle { display: block; }
  #nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border); padding: 1rem 1.5rem; gap: 0.2rem; box-shadow: 0 8px 24px rgba(0,0,0,0.1); z-index: 200; }
  #nav-links.open { display: flex; }
  #nav-links a { padding: 0.65rem 0.75rem; }
  .hero-buttons { flex-direction: column; align-items: center; }
  nav { position: relative; }
  section { padding: 3.5rem 1.5rem; }
  #hero { min-height: 95vh; }
  .pathway-grid, .posts-grid, .video-grid { grid-template-columns: 1fr; }
}

