/* =========================================================
   GOD'S PERSONAL SERVANT (GPS) PODCAST — MAIN STYLESHEET
   =========================================================
   1. Fonts & base setup
   2. Color / spacing variables (change the site's whole look
      by editing the values at the top of :root)
   3. Header / navigation
   4. Hero section (headline + buttons + waveform)
   5. Recent Episodes section
   6. Scripture quote section
   7. Footer
   8. Mobile / responsive rules (bottom of file)
   ========================================================= */

/* ---------- 1. Base setup ---------- */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg);
  color: var(--text-cream);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* Visible keyboard focus everywhere (accessibility) */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ---------- Motion: hero entrance + waveform + scroll reveals ---------- */

@keyframes gpsFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.gps-fade-up {
  animation: gpsFadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes gpsWavePulse {
  0%, 100% { transform: scaleY(0.85); opacity: 0.75; }
  50%      { transform: scaleY(1.15); opacity: 1; }
}

.waveform .bar {
  transform-origin: center;
  animation: gpsWavePulse 2.2s ease-in-out infinite;
}

/* Scroll reveal: hidden + shifted until '.is-visible' is added by the
   small script in includes/footer.php as the element scrolls into view. */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* If JavaScript never runs for any reason, don't leave content invisible. */
.no-js .reveal-on-scroll {
  opacity: 1;
  transform: none;
}

/* ---------- 2. Color / spacing variables ---------- */

:root {
  --bg: #0b0906;
  --bg-soft: #120e09;
  --card-bg: #1a140c;
  --card-bg-light: #241b10;

  --gold: #c9a668;
  --gold-bright: #e3c37f;
  --gold-dim: #8a713f;

  --text-cream: #f4efe3;
  --text-muted: #a89e8c;
  --text-faint: #6b6355;

  --border-soft: rgba(201, 166, 104, 0.25);
  --border-faint: rgba(244, 239, 227, 0.08);

  --max-width: 1200px;
  --section-pad: 100px;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

/* Reusable gold "eyebrow" label style */
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- 3. Header / navigation ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 9, 6, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-faint);
}

.top-bar {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border-faint);
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
}

.top-bar-tagline {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.top-bar .social-icons a {
  width: 34px;
  height: 34px;
}

.top-bar .social-icons svg {
  width: 17px;
  height: 17px;
}

.site-header .wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 32px;
  height: 128px;
}

/* ---- Center brand: bigger logo, name set underneath as a small
   letter-spaced wordmark, echoing the circular badge design ---- */
.brand-center {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.brand-mark {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  flex-shrink: 0;
  box-shadow: 0 0 0 5px rgba(11, 9, 6, 1), 0 0 24px rgba(201, 166, 104, 0.15);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-name {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}

/* ---- Side navigation wings ---- */
.nav-side {
  display: flex;
}

.nav-side.nav-left {
  grid-column: 1;
  justify-content: flex-end;
}

.nav-side.nav-right {
  grid-column: 3;
  justify-content: flex-start;
}

.nav-side ul {
  display: flex;
  gap: 40px;
}

.nav-side a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--text-cream);
  opacity: 0.8;
  transition: opacity 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.nav-side a:hover {
  opacity: 1;
  color: var(--gold-bright);
}

.nav-side a.active,
.mobile-nav a.active {
  opacity: 1;
  color: var(--gold);
  position: relative;
}

.nav-side a.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 1px;
  background: var(--gold);
}

/* ---- Mobile menu overlay (combines all six links) ---- */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.mobile-nav.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-nav ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.mobile-nav a {
  font-size: 22px;
  color: var(--text-cream);
}

.mobile-nav a:hover {
  color: var(--gold-bright);
}

.mobile-nav-close {
  position: absolute;
  top: 36px;
  right: 36px;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 1px solid var(--border-soft);
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav-close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--text-cream);
  stroke-width: 2;
}

/* Small hamburger button — hidden on desktop, shown on mobile */
.nav-toggle {
  display: none;
  grid-column: 3;
  justify-self: end;
  background: none;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-cream);
  position: relative;
}

.nav-toggle span::before {
  position: absolute;
  top: -6px;
}

.nav-toggle span::after {
  position: absolute;
  top: 6px;
}

/* ---------- 4. Hero section ---------- */

.hero {
  padding: 120px 0 90px;
  text-align: center;
  position: relative;
}

/* faint radial glow behind the headline, echoes the light-through-cross
   in the logo without repeating it literally */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(ellipse at top, rgba(201, 166, 104, 0.14), transparent 70%);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
}

.hero-eyebrow {
  margin-bottom: 24px;
}

.hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: clamp(38px, 5.4vw, 68px);
  line-height: 1.12;
  color: var(--text-cream);
  max-width: 900px;
  margin: 0 auto 28px;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 44px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 64px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 34px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn-gold {
  background: var(--gold);
  color: #1a1204;
  border: 1px solid var(--gold);
}

.btn-gold:hover {
  background: var(--gold-bright);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text-cream);
  border: 1px solid var(--border-soft);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}

/* Waveform / player strip */
.waveform {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  max-width: 620px;
  margin: 0 auto;
  height: 60px;
}

.waveform .bar {
  width: 3px;
  border-radius: 2px;
  background: var(--text-faint);
}

.waveform .bar.accent {
  background: var(--gold-dim);
}

.play-button {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: rgba(11, 9, 6, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.play-button:hover {
  background: rgba(201, 166, 104, 0.12);
}

.play-button svg {
  width: 20px;
  height: 20px;
  fill: var(--gold-bright);
  margin-left: 3px;
}

/* ---------- 5. Recent Episodes ---------- */

.episodes {
  padding: var(--section-pad) 0;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 44px;
}

.section-head-label {
  display: flex;
  align-items: center;
  gap: 14px;
}

.section-head-label .rule {
  width: 34px;
  height: 2px;
  background: var(--gold);
}

.section-head-label h2 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-cream);
}

.view-all {
  font-size: 14px;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s ease;
}

.view-all:hover {
  gap: 10px;
  color: var(--gold-bright);
}

.episode-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.episode-card {
  background: var(--card-bg);
  border: 1px solid var(--border-faint);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.episode-card:hover {
  border-color: var(--border-soft);
  transform: translateY(-3px);
}

.episode-thumb {
  position: relative;
  aspect-ratio: 16 / 11;
  background: linear-gradient(180deg, #3a2b12 0%, #150f08 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: background-size 0.4s ease;
  background-size: 100% !important;
}

.episode-card:hover .episode-thumb {
  background-size: 108% !important;
}

.episode-thumb .play-button {
  position: static;
  transform: none;
  width: 56px;
  height: 56px;
}

.episode-info {
  padding: 22px 24px 26px;
}

.episode-info h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 19px;
  font-weight: 600;
  color: var(--text-cream);
  margin-bottom: 8px;
}

.episode-meta {
  font-size: 13px;
  color: var(--text-faint);
}

/* ---------- 6. Scripture quote section ---------- */

.quote-section {
  padding: 70px 0 110px;
  text-align: center;
}

.quote-mark {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 80px;
  color: var(--gold-dim);
  line-height: 1;
  margin-bottom: 8px;
}

.quote-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(22px, 3vw, 30px);
  color: var(--text-cream);
  max-width: 780px;
  margin: 0 auto 22px;
}

.quote-ref {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--gold);
}

/* ---------- 7. Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border-faint);
  padding: 32px 0;
}

.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-footer .copyright {
  font-size: 14px;
  color: var(--text-faint);
}

.social-icons {
  display: flex;
  gap: 12px;
}

.social-icons a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.social-icons a:hover {
  border-color: var(--gold);
  background: rgba(201, 166, 104, 0.1);
}

.social-icons svg {
  width: 16px;
  height: 16px;
  fill: var(--text-cream);
}

/* ---------- 8. Interior page hero (About / Episodes / News / Blog / Contact) ---------- */

.page-hero {
  padding: 90px 0 64px;
  text-align: center;
  border-bottom: 1px solid var(--border-faint);
}

.page-hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: clamp(32px, 4.6vw, 52px);
  color: var(--text-cream);
  margin: 18px 0 20px;
}

.page-hero-sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

.wrap-narrow {
  max-width: 720px;
}

/* ---------- 9. About page ---------- */

.about-story {
  padding: var(--section-pad) 0 20px;
  border-top: 1px solid var(--border-faint);
}

.body-text {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 24px;
}

.beliefs {
  padding: 60px 0 var(--section-pad);
}

.beliefs-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 40px;
}

.beliefs-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 24px;
  background: var(--card-bg);
  border: 1px solid var(--border-faint);
  border-radius: 10px;
  font-size: 15px;
  color: var(--text-cream);
  line-height: 1.6;
}

.belief-mark {
  color: var(--gold);
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ---------- 10. News / Blog post lists ---------- */

.post-list-section {
  padding: var(--section-pad) 0;
}

.post-list-item {
  border-bottom: 1px solid var(--border-faint);
}

.post-list-item:first-child {
  border-top: 1px solid var(--border-faint);
}

.post-list-item-inner {
  display: block;
  padding: 36px 4px;
}

.post-featured-image {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 20px;
}

.post-date {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.post-list-item h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--text-cream);
  margin-bottom: 12px;
}

.post-excerpt {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 14px;
  max-width: 640px;
}

.post-read-more {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
}

/* ---------- 11. Episodes page extras ---------- */

.episodes-full {
  padding-top: 60px;
}

.subscribe-strip {
  padding: 30px 0 0;
}

.subscribe-strip .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 20px 28px;
  background: var(--card-bg);
  border: 1px solid var(--border-faint);
  border-radius: 10px;
}

.subscribe-strip p {
  font-size: 14px;
  color: var(--text-muted);
}

.episode-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 10px;
}

/* ---------- 12. Contact form ---------- */

.contact-section {
  padding: var(--section-pad) 0;
}

.form-notice {
  padding: 18px 22px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 30px;
}

.form-notice-success {
  background: rgba(201, 166, 104, 0.12);
  border: 1px solid var(--border-soft);
  color: var(--gold-bright);
}

.form-notice-error {
  background: rgba(200, 90, 70, 0.1);
  border: 1px solid rgba(200, 90, 70, 0.4);
  color: #e2a596;
}

.form-notice-error ul {
  list-style: disc;
  padding-left: 20px;
}

.form-notice-error li {
  margin-bottom: 4px;
}

/* Honeypot field: invisible to real visitors, still present in the DOM for bots */
.form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-row {
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-row label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.form-row input,
.form-row textarea {
  background: var(--card-bg);
  border: 1px solid var(--border-faint);
  border-radius: 8px;
  padding: 14px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--text-cream);
  transition: border-color 0.2s ease;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.form-row textarea {
  resize: vertical;
}

.contact-form .btn {
  border: none;
  width: 100%;
}

.contact-direct {
  margin-top: 50px;
  padding-top: 40px;
  border-top: 1px solid var(--border-faint);
  text-align: center;
}

.contact-direct .eyebrow {
  display: block;
  margin-bottom: 10px;
}

.contact-direct a {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px;
  color: var(--gold-bright);
}

.seo-content-section {
  padding: 70px 0 90px;
  border-top: 1px solid var(--border-faint);
}

.seo-content-section .body-text {
  font-size: 15px;
  color: var(--text-faint);
}

/* ---------- FAQ accordion ---------- */

.faq-section {
  padding: var(--section-pad) 0;
}

.faq-item {
  border-bottom: 1px solid var(--border-faint);
  padding: 6px 0;
}

.faq-item:first-child {
  border-top: 1px solid var(--border-faint);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 4px;
  cursor: pointer;
  list-style: none;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-cream);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-toggle-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: var(--gold);
  transition: transform 0.25s ease, background 0.2s ease;
}

.faq-item[open] .faq-toggle-icon {
  transform: rotate(45deg);
  background: rgba(201, 166, 104, 0.1);
}

.faq-answer {
  padding: 0 4px 22px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 680px;
}

/* ---------- 13. Responsive rules ---------- */

@media (max-width: 900px) {
  .episode-grid {
    grid-template-columns: 1fr 1fr;
  }

  .beliefs-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 500px) {
  .top-bar-tagline {
    display: none;
  }
  .top-bar-inner {
    justify-content: flex-end;
  }
}

@media (max-width: 760px) {
  .wrap {
    padding: 0 24px;
  }

  .site-header .wrap {
    grid-template-columns: 1fr auto;
    height: 96px;
  }

  .brand-center {
    grid-column: 1;
    justify-self: start;
    flex-direction: row;
    text-align: left;
  }

  .brand-mark {
    width: 48px;
    height: 48px;
  }

  .brand-name {
    font-size: 11px;
  }

  .nav-side {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    grid-column: 2;
  }

  .hero {
    padding: 80px 0 60px;
  }

  .page-hero {
    padding: 60px 0 44px;
  }

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

  .section-head {
    flex-wrap: wrap;
    gap: 12px;
  }

  .site-footer .wrap {
    flex-direction: column;
    gap: 18px;
    text-align: center;
  }

  .waveform {
    display: none;
  }

  .post-list-item a {
    padding: 28px 0;
  }
}