/* =============================================
   IGLESIA LUZ Y VIDA — STYLESHEET
   Classic & Reverent: Navy + Gold, Playfair
   ============================================= */

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

:root {
  --navy:       #1a2d4f;
  --navy-dark:  #111e36;
  --navy-light: #243a66;
  --gold:       #c9a84c;
  --gold-light: #e0c06a;
  --gold-dark:  #a88630;
  --cream:      #f8f5ef;
  --cream-dark: #ede9df;
  --white:      #ffffff;
  --text:       #2c2c2c;
  --text-muted: #666666;
  --border:     #d9d2c2;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-body:  'Crimson Text', 'Georgia', serif;

  --radius: 4px;
  --shadow: 0 4px 24px rgba(26, 45, 79, 0.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--white);
}

img { max-width: 100%; display: block; }
a { color: var(--gold-dark); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold); }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: .7rem 1.8rem;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: .04em;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .22s, color .22s, border-color .22s, transform .15s;
  text-align: center;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--gold);
  color: var(--navy-dark);
  border-color: var(--gold);
}
.btn-primary:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--navy-dark); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.6);
}
.btn-outline:hover { background: rgba(255,255,255,.12); border-color: var(--white); color: var(--white); }
.btn-outline-light {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.btn-outline-light:hover { background: var(--gold); color: var(--navy-dark); }
.btn-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-secondary:hover { background: var(--navy); color: var(--white); }
.btn-full { width: 100%; }

/* ── Section shared ── */
.section { padding: 5rem 0; }
.section-dark { background: var(--navy); color: var(--white); }
.section-cream { background: var(--cream); }

.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-eyebrow {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .5rem;
}
.section-dark .section-eyebrow { color: var(--gold-light); }
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}
.section-dark .section-title { color: var(--white); }
.section-rule {
  width: 56px;
  height: 3px;
  background: var(--gold);
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* =============================================
   HEADER / NAV
   ============================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(17, 30, 54, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(201, 168, 76, .2);
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.4); }

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--white) !important;
  text-decoration: none;
}

.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-main {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: .02em;
}


.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.main-nav a {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: rgba(255,255,255,.85);
  letter-spacing: .03em;
  transition: color .2s;
}
.main-nav a:hover { color: var(--gold); }
.nav-cta {
  background: var(--gold);
  color: var(--navy-dark) !important;
  padding: .45rem 1.2rem;
  border-radius: var(--radius);
  font-weight: 600;
}
.nav-cta:hover { background: var(--gold-light) !important; color: var(--navy-dark) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy-dark);
  overflow: hidden;
}

/* Textured background pattern */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(201,168,76,.08) 0%, transparent 70%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a84c' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(17,30,54,.92) 0%, rgba(26,45,79,.85) 60%, rgba(17,30,54,.95) 100%);
  z-index: 1;
}

/* ── Hero background slideshow ── */
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 2;          /* above overlay so opacity is self-contained */
  overflow: hidden;
  pointer-events: none;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  /* Semi-transparent: navy background shows through, image still readable.
     Increase toward 0.30 for a stronger image, lower toward 0.10 for subtler. */
  opacity: 0.20;
  transform: translateX(100%);   /* start off-screen to the right */
  will-change: transform;
}


.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 720px;
}

.hero-eyebrow {
  font-family: var(--font-serif);
  font-size: 1rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1.75rem;
}

.hero-verse {
  font-size: 1.3rem;
  color: rgba(255,255,255,.75);
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}
.verse-ref {
  display: block;
  font-style: normal;
  font-size: 1.2rem;
  letter-spacing: .08em;
  color: var(--gold);
  margin-top: .4rem;
}

.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}
.hero-scroll-hint span {
  display: block;
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--gold));
  margin: 0 auto;
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0; transform: scaleY(.5); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
}

/* =============================================
   WELCOME STRIP
   ============================================= */
.welcome-strip {
  background: var(--cream);
  border-top: 3px solid var(--gold);
  padding: 3rem 0;
}
.welcome-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}
.welcome-icon { font-size: 2rem; margin-bottom: .6rem; }
.welcome-item h3 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .4rem;
}
.welcome-item p { font-size: 1.2rem; color: var(--text-muted); }

/* =============================================
   ABOUT / BELIEFS
   ============================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.about-text p { margin-bottom: 1.2rem; font-size: 1.2rem; }
.solas-list {
  list-style: none;
  border-left: 3px solid var(--gold);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.solas-list li { font-size: 1.2rem; }
.solas-list strong { color: var(--navy); }

.pastor-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.pastor-img-placeholder {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--navy-light);
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  border: 3px solid var(--gold);
  overflow: hidden;
}

.pastor-img-placeholder img {
  width: 115%;
  height: 115%;
  object-fit: cover;
  display: block;
}

.pastor-label {
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: .3rem;
}
.pastor-name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .75rem;
}
.pastor-bio { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 1.25rem; }

/* =============================================
   SERMONS
   ============================================= */
.sermons-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}
.sermon-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(201,168,76,.25);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform .2s, box-shadow .2s;
}
.sermon-card:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(0,0,0,.3); }
.sermon-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .75rem;
  flex-wrap: wrap;
  gap: .4rem;
}
.sermon-series {
  font-size: .86rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
}
.sermon-date { font-size: 1rem; color: rgba(255,255,255,.5); }
.sermon-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.35;
  margin-bottom: .4rem;
}
.sermon-ref {
  font-size: 1rem;
  color: var(--gold);
  font-style: italic;
  margin-bottom: .3rem;
}
.sermon-preacher { font-size: 1.2rem; color: rgba(255,255,255,.55); margin-bottom: 1.25rem; }
.sermons-footer { text-align: center; margin-top: 3rem; }

/* Sermon video thumbnail + player */
.sermon-video-wrap {
  position: relative;
  margin-top: 1rem;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--navy-dark);
  cursor: pointer;
}

/* Thumbnail image */
.sermon-video-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .25s;
}
.sermon-video-wrap:hover img { opacity: .85; }

/* Circular play button overlay */
.sermon-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.sermon-play-overlay span {
  width: 54px;
  height: 54px;
  background: rgba(201, 168, 76, .92);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--navy-dark);
  transition: transform .2s, background .2s;
  /* nudge the triangle visually centred */
  padding-left: 4px;
}
.sermon-video-wrap:hover .sermon-play-overlay span {
  transform: scale(1.12);
  background: var(--gold);
}

/* Live iframe (replaces thumbnail on click) */
.sermon-video-wrap iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* =============================================
   SERVICE TIMES & LOCATION
   ============================================= */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.schedule-card, .location-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}
.schedule-card h3, .location-card h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.75rem;
  padding-bottom: .75rem;
  border-bottom: 2px solid var(--gold);
}
.schedule-list { list-style: none; display: flex; flex-direction: column; gap: 1.1rem; }
.schedule-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--cream-dark);
}
.schedule-list li:last-child { border-bottom: none; padding-bottom: 0; }
.schedule-day {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--navy);
  min-width: 90px;
  font-size: 1.1rem;
}
.schedule-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex: 1;
  flex-wrap: wrap;
  gap: .3rem;
}
.schedule-time {
  font-weight: 600;
  color: var(--gold-dark);
}
.schedule-note { font-size: 1.2rem; color: var(--text-muted); margin-top: 1.5rem; font-style: italic; }

.location-address {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  color: var(--text);
}
.map-embed {
  width: 100%;
  height: 220px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 1.5rem;
}
.map-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* =============================================
   CONTACT
   ============================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  align-items: start;
}
.contact-info h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.5rem;
}
.contact-list { list-style: none; display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
.contact-list li { display: flex; align-items: center; gap: .75rem; font-size: 1.2rem; }
.contact-icon { font-size: 1.1rem; }
.contact-list a { color: var(--navy); }
.contact-list a:hover { color: var(--gold-dark); }

.social-links { display: flex; gap: .75rem; }
.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .85rem;
  transition: background .2s;
}
.social-btn:hover { background: var(--gold); color: var(--navy-dark) !important; }

.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--navy);
  margin-bottom: .4rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .7rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--text);
  background: var(--white);
  transition: border-color .2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,.12);
}
.form-group textarea { resize: vertical; }
.form-success {
  margin-top: 1rem;
  color: #2d7a4f;
  font-size: .95rem;
  font-weight: 600;
  text-align: center;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,.65);
  padding: 3rem 0 2rem;
  text-align: center;
  border-top: 3px solid var(--gold);
}
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.footer-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
}
.footer-verse {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--gold);
  font-size: .95rem;
  letter-spacing: .08em;
}
.footer-nav { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
.footer-nav a { font-size: 1rem; color: rgba(255,255,255,.55); }
.footer-nav a:hover { color: var(--gold); }
.footer-copy { font-size: .9rem; color: rgba(255,255,255,.35); }

/* =============================================
   CONFESIONES PAGE — PAGE HERO
   ============================================= */
.page-hero {
  position: relative;
  min-height: 46vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy-dark);
  overflow: hidden;
  padding-top: 72px; /* offset for fixed header */
}

/* Reuse the same subtle texture as the main hero */
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 60%, rgba(201,168,76,.07) 0%, transparent 70%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a84c' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/G%3E%3C/svg%3E");
  z-index: 0;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(17,30,54,.88) 0%, rgba(26,45,79,.80) 60%, rgba(17,30,54,.92) 100%);
  z-index: 1;
}

/* Static background image — sits above overlay, opacity controls transparency */
.hero-background {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  opacity: 0.20;
  z-index: 2;
}

.page-hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 3.5rem 1.5rem;
}

.page-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.page-hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,.72);
  font-style: italic;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* =============================================
   CONFESIONES PAGE — SECTION INTRO
   ============================================= */
.section-intro {
  max-width: 680px;
  margin: 1.25rem auto 0;
  font-size: 1.1rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.75;
}

/* =============================================
   CONFESIONES PAGE — CREED CARDS
   ============================================= */
.creeds-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.creed-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: .75rem;
  transition: transform .2s, box-shadow .2s;
}
.creed-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(26,45,79,.15);
}

/* Featured cards (Westminster docs) get a navy accent instead */
.creed-card--featured {
  border-top-color: var(--navy);
  background: var(--cream);
}

.creed-icon {
  font-size: 1.6rem;
  color: var(--gold);
  line-height: 1;
}
.creed-card--featured .creed-icon { color: var(--navy); }

.creed-meta {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}
.creed-era {
  font-family: var(--font-serif);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--gold);
  padding: .2rem .6rem;
  border-radius: 2px;
}
.creed-card--featured .creed-era { background: var(--navy); }

.creed-type {
  font-size: .8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.creed-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}

.creed-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1; /* pushes button to bottom */
}

.creed-card .btn {
  align-self: flex-start;
  margin-top: .5rem;
}

/* =============================================
   WESTMINSTER PAGE — LAYOUT
   ============================================= */
.westminster-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
  gap: 3rem;
}

/* ── Sidebar / Table of Contents ── */
.toc-sidebar {
  position: sticky;
  top: 88px; /* clears fixed header */
  max-height: calc(100vh - 108px);
  overflow-y: auto;
  background: var(--cream);
  border: 1px solid var(--border);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

/* Scrollbar styling for sidebar */
.toc-sidebar::-webkit-scrollbar { width: 4px; }
.toc-sidebar::-webkit-scrollbar-track { background: transparent; }
.toc-sidebar::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 2px; }

.toc-heading {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 1rem;
}

.toc-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .1rem;
  counter-reset: none;
}

.toc-list li { padding: 0; }

.toc-list a {
  display: block;
  font-family: var(--font-body);
  font-size: 1.2rem;
  color: var(--text);
  line-height: 1.4;
  padding: .35rem .5rem;
  border-radius: 3px;
  transition: background .15s, color .15s;
  text-decoration: none;
}
.toc-list a:hover {
  background: var(--cream-dark);
  color: var(--navy);
}

.toc-back-link {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: .85rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color .2s;
}
.toc-back-link:hover { color: var(--navy); }

/* ── Confession Main Text ── */
.confession-main {
  min-width: 0; /* prevents grid blowout */
}

.confession-chapter {
  margin-bottom: 3.5rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 96px; /* offset for sticky header */
}
.confession-chapter:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.chapter-header {
  margin-bottom: 1.5rem;
}

.chapter-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: .4rem;
}

.chapter-title {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
}

.chapter-text p {
  font-size: 1.2rem;
  line-height: 1.85;
  color: var(--text);
  margin-bottom: 1.1rem;
}
.chapter-text p:last-child { margin-bottom: 0; }

.section-num {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--gold-dark);
  margin-right: .35rem;
}

/* =============================================
   CREED PAGE (credo-apostoles, etc.)
   ============================================= */
.creed-page-wrap {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.creed-back-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: 1.2rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color .2s;
}
.creed-back-link:hover { color: var(--navy); }

.creed-text-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 2.5rem 3rem;
  box-shadow: var(--shadow);
}

.creed-text-header {
  margin-bottom: 2rem;
}

.creed-text-label {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

.creed-text-body p {
  font-family: var(--font-body);
  font-size: 1.2rem;
  line-height: 1.9;
  color: var(--text);
  margin-bottom: 1.1rem;
}
.creed-text-body p:last-child { margin-bottom: 0; }

.creed-note {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  font-size: 1.2rem;
  color: var(--text-muted);
}
.creed-note i {
  font-size: 1.1rem;
  color: var(--gold-dark);
  margin-top: .2rem;
  flex-shrink: 0;
}
.creed-note p { margin: 0; }

/* ── Book lists (Westminster I.2) ── */
.books-section {
  margin: 1.75rem 0;
}

.books-heading {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: .85rem;
  padding-bottom: .4rem;
  border-bottom: 1px solid var(--border);
}

.books-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 2.5rem;
}

.books-col p {
  font-size: 1.2rem;
  line-height: 1.65;
  margin-bottom: .15rem;
  color: var(--text);
}

.books-col p.books-category {
  font-weight: 600;
  color: var(--navy);
  margin-top: .6rem;
  margin-bottom: .2rem;
}

.books-col p.books-item {
  padding-left: .75rem;
  color: var(--text-muted);
}

/* Placeholder shown until content is added */
.content-placeholder {
  color: var(--text-muted);
  font-style: italic;
  border: 2px dashed var(--border);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
} 

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .about-grid,
  .services-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }

  .sermons-grid { grid-template-columns: 1fr 1fr; }

  .welcome-grid { grid-template-columns: 1fr; gap: 1.5rem; }

  .creeds-grid { grid-template-columns: 1fr 1fr; }

  .westminster-layout {
    grid-template-columns: 1fr;
    padding: 2rem 1.5rem 4rem;
  }
  .toc-sidebar {
    position: static;
    max-height: none;
  }
}

@media (max-width: 700px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0; right: 0;
    background: var(--navy-dark);
    border-top: 1px solid rgba(201,168,76,.2);
    padding: 1.5rem;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 1.25rem; }
  .nav-toggle { display: flex; }
  .sermons-grid { grid-template-columns: 1fr; }
  .creeds-grid  { grid-template-columns: 1fr; }
  .section { padding: 3.5rem 0; }
  .hero-buttons { flex-direction: column; align-items: center; }
}
