/* ============================================================
   Island Praise FM — design tokens
   ============================================================ */
:root {
  --font-display: 'Clash Display', 'Satoshi', sans-serif;
  --font-body: 'Satoshi', system-ui, sans-serif;

  /* brand palette (from logo) */
  --navy-900: #0a1c33;
  --navy-800: #0d2745;
  --navy-700: #123a5e;
  --coral: #ff7a4d;
  --coral-deep: #e8542e;
  --red-deep: #c8362a;
  --gold: #ffc857;
  --turquoise: #2ec4c6;
  --turquoise-deep: #1a9baa;
  --cream: #fbf5ec;
  --cream-deep: #f3e9d8;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;
  --space-32: 8rem;

  --text-xs: 0.8rem;
  --text-sm: 0.9375rem;
  --text-base: 1rem;
  --text-lg: 1.15rem;
  --text-xl: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem);
  --text-hero: clamp(2.75rem, 2rem + 4.5vw, 4.75rem);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 10px rgba(10, 28, 51, 0.06);
  --shadow-md: 0 12px 32px rgba(10, 28, 51, 0.12);
  --shadow-lg: 0 24px 64px rgba(10, 28, 51, 0.18);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* light theme (default) */
  --color-bg: var(--cream);
  --color-bg-alt: var(--cream-deep);
  --color-surface: #ffffff;
  --color-text: var(--navy-900);
  --color-text-muted: #4a5568;
  --color-border: rgba(10, 28, 51, 0.1);
  --color-accent: var(--coral-deep);
}

[data-theme='dark'] {
  --color-bg: var(--navy-900);
  --color-bg-alt: var(--navy-800);
  --color-surface: var(--navy-800);
  --color-text: var(--cream);
  --color-text-muted: #a9bcd0;
  --color-border: rgba(251, 245, 236, 0.12);
  --color-accent: var(--coral);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[hidden] { display: none !important; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: var(--text-base);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-display); margin: 0; line-height: 1.15; font-weight: 600; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--navy-900); color: #fff; padding: 0.5rem 1rem; z-index: 200;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ============================================================
   Topbar
   ============================================================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}
.topbar.hidden { transform: translateY(-100%); }

.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand-mark { width: 34px; height: 34px; border-radius: 50%; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1rem; white-space: nowrap; }

.nav { display: flex; gap: var(--space-6); }
.nav a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  transition: color 0.2s var(--ease);
  white-space: nowrap;
}
.nav a:hover { color: var(--color-accent); }

.topbar-actions { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }

.mini-player {
  display: flex; align-items: center; gap: 0.45rem;
  background: linear-gradient(135deg, var(--coral) 0%, var(--red-deep) 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  padding: 0.5rem 0.95rem;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.mini-player:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.mini-player-icon svg { width: 14px; height: 14px; display: block; }

.theme-toggle {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s var(--ease);
}
.theme-toggle svg { width: 17px; height: 17px; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  padding: var(--space-16) var(--space-6) 0;
  overflow: hidden;
  color: var(--cream);
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-bg {
  position: absolute; inset: 0;
  background-image: url('assets/hero-coastline.png');
  background-size: cover;
  background-position: center 70%;
  z-index: 0;
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,28,51,0.55) 0%, rgba(10,28,51,0.35) 45%, rgba(10,28,51,0.85) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-16) 0 var(--space-24);
}

.hero-badge {
  width: 130px; height: 130px;
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.live-pill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.85rem;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
}
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #9aa7b8; }
.live-pill.on .live-dot { background: #ff5b5b; box-shadow: 0 0 0 0 rgba(255,91,91,0.6); animation: pulse 1.6s infinite; }
.live-pill.on { color: #ffd9d0; border-color: rgba(255,122,77,0.5); background: rgba(255,122,77,0.14); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,91,91,0.55); } 70% { box-shadow: 0 0 0 8px rgba(255,91,91,0); } 100% { box-shadow: 0 0 0 0 rgba(255,91,91,0); } }

.hero-title {
  font-size: var(--text-hero);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0.2rem 0 0;
}

.hero-tagline {
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.2rem);
  color: rgba(251,245,236,0.85);
  max-width: 480px;
  margin: 0 auto;
}

/* Player card */
.player-card {
  margin-top: var(--space-6);
  width: min(100%, 380px);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  box-shadow: var(--shadow-lg);
}

.visualizer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 22px;
}
.visualizer span {
  width: 3px;
  height: 6px;
  border-radius: 2px;
  background: var(--gold);
  opacity: 0.5;
  transition: opacity 0.3s;
}
.visualizer.playing span { animation: eq 1s ease-in-out infinite; opacity: 1; }
.visualizer span:nth-child(1) { animation-delay: -0.9s; }
.visualizer span:nth-child(2) { animation-delay: -0.7s; }
.visualizer span:nth-child(3) { animation-delay: -1.1s; }
.visualizer span:nth-child(4) { animation-delay: -0.3s; }
.visualizer span:nth-child(5) { animation-delay: -0.8s; }
.visualizer span:nth-child(6) { animation-delay: -0.5s; }
.visualizer span:nth-child(7) { animation-delay: -1.2s; }
@keyframes eq { 0%, 100% { height: 6px; } 50% { height: 22px; } }

.play-btn {
  width: 74px; height: 74px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--coral) 0%, var(--red-deep) 100%);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 28px rgba(216, 52, 42, 0.45);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.play-btn:hover { transform: scale(1.05); box-shadow: 0 14px 34px rgba(216, 52, 42, 0.55); }
.play-btn:active { transform: scale(0.97); }
.play-btn svg { width: 26px; height: 26px; }
.play-btn .icon-spinner { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.player-status {
  font-size: var(--text-sm);
  color: rgba(251,245,236,0.85);
  text-align: center;
  min-height: 1.3em;
}

.volume-row { display: flex; align-items: center; gap: 0.6rem; width: 100%; margin-top: 0.2rem; }
.mute-btn { background: none; border: none; color: rgba(251,245,236,0.85); display: flex; }
.mute-btn svg { width: 18px; height: 18px; }

.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold) var(--vol-pct, 85%), rgba(255,255,255,0.25) var(--vol-pct, 85%));
  outline: none;
}
.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(255,200,87,0.25);
  cursor: pointer;
}
.volume-slider::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 50%; border: none;
  background: var(--gold);
  cursor: pointer;
}

.hero-ctas { display: flex; gap: var(--space-3); margin-top: var(--space-4); flex-wrap: wrap; justify-content: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.65rem 1.3rem;
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: 600;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}
.btn-ghost-light {
  border: 1px solid rgba(255,255,255,0.35);
  color: var(--cream);
  background: rgba(255,255,255,0.06);
}
.btn-ghost-light:hover { background: rgba(255,255,255,0.16); transform: translateY(-1px); }

.hero-wave {
  position: absolute; bottom: -2px; left: 0; width: 100%; line-height: 0; z-index: 1;
}
.hero-wave svg { width: 100%; height: 70px; display: block; }
.hero-wave path { fill: var(--color-bg); transition: fill 0.3s var(--ease); }

/* ============================================================
   Shared section layout
   ============================================================ */
main > section {
  padding: clamp(var(--space-12), 8vw, var(--space-24)) var(--space-6);
}
.about { background: var(--color-bg); }
.programs { background: var(--color-bg-alt); }
.why { background: var(--color-bg); }
.faq { background: var(--color-bg-alt); }

.section-head { max-width: 700px; margin: 0 auto var(--space-12); text-align: center; }
.eyebrow {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.section-title { font-size: var(--text-xl); margin-bottom: var(--space-4); }
.lede { color: var(--color-text-muted); font-size: var(--text-base); }

.section-grid { max-width: 1160px; margin: 0 auto; }
.two-col {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-16);
  align-items: center;
}
.col-text .eyebrow { text-align: left; }
.col-text .section-title { text-align: left; }

.pull-quote {
  border-left: 3px solid var(--color-accent);
  padding-left: var(--space-4);
  margin: var(--space-6) 0;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  font-style: normal;
  color: var(--color-text);
}
.body-copy { color: var(--color-text-muted); margin-top: var(--space-4); }

.col-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.commitments { margin-top: var(--space-24); grid-template-columns: 1fr 1fr; gap: var(--space-6); }
.commitment-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
}
.commitment-card h3 { font-size: var(--text-lg); margin: var(--space-4) 0 var(--space-2); }
.commitment-card p { color: var(--color-text-muted); font-size: var(--text-sm); }

.card-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--turquoise) 0%, var(--turquoise-deep) 100%);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.card-icon svg { width: 22px; height: 22px; }

/* Programs */
.program-grid {
  max-width: 1160px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
.program-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.program-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.program-card .card-icon { background: linear-gradient(135deg, var(--coral) 0%, var(--red-deep) 100%); }
.program-card h3 { font-size: var(--text-lg); margin: var(--space-4) 0 var(--space-2); }
.program-card p { color: var(--color-text-muted); font-size: var(--text-sm); }

/* Why */
.why-grid {
  max-width: 980px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
}
.why-item { position: relative; }
.why-number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3rem, 2.4rem + 2vw, 4.5rem);
  font-weight: 700;
  color: var(--color-accent);
  opacity: 0.85;
  line-height: 1;
  margin-bottom: var(--space-2);
}
.why-item h3 { font-size: var(--text-lg); margin-bottom: var(--space-2); }
.why-item p { color: var(--color-text-muted); font-size: var(--text-sm); }

/* Verse */
.verse {
  text-align: center;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: var(--cream);
  padding: var(--space-16) var(--space-6);
}
.verse-text {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1.2rem + 1.2vw, 2rem);
  font-weight: 500;
  max-width: 700px;
  margin: 0 auto var(--space-3);
}
.verse-ref {
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--turquoise);
  font-weight: 700;
}

/* Verse — intro variant (opening statement of faith at top of page) */
.verse-intro {
  padding: var(--space-12) var(--space-6) var(--space-14);
}
.verse-cross {
  width: 26px;
  height: 26px;
  color: var(--turquoise);
  margin-bottom: var(--space-4);
}
.verse-intro .verse-text {
  font-size: clamp(1.3rem, 1.1rem + 1vw, 1.75rem);
}

/* FAQ / Accordion */
.accordion { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: var(--space-3); }
.accordion-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  background: none;
  border: none;
  padding: var(--space-6);
  text-align: left;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--color-text);
}
.accordion-trigger .chev { width: 18px; height: 18px; flex-shrink: 0; transition: transform 0.3s var(--ease); color: var(--color-accent); }
.accordion-trigger[aria-expanded='true'] .chev { transform: rotate(180deg); }

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease);
}
.accordion-panel p {
  padding: 0 var(--space-6) var(--space-6);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

/* ============================================================
   Footer
   ============================================================ */
.footer { background: var(--navy-900); color: var(--cream); }
.footer-inner {
  max-width: 1160px; margin: 0 auto;
  padding: var(--space-16) var(--space-6) var(--space-8);
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: var(--space-8);
}
.footer-brand-mark { display: flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-3); }
.footer-logo { height: 40px; width: 40px; border-radius: 50%; }
.footer-brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; color: #fbf5ec; }
.footer-brand p { color: rgba(251,245,236,0.65); font-size: var(--text-sm); max-width: 320px; }
.footer-nav { display: flex; flex-direction: column; gap: var(--space-2); }
.footer-nav a { color: rgba(251,245,236,0.75); font-size: var(--text-sm); transition: color 0.2s; }
.footer-nav a:hover { color: var(--coral); }
.footer-contact p { color: rgba(251,245,236,0.75); font-size: var(--text-sm); margin-bottom: var(--space-2); }
.footer-contact a:hover { color: var(--coral); }
.footer-bottom {
  border-top: 1px solid rgba(251,245,236,0.12);
  padding: var(--space-4) var(--space-6);
  text-align: center;
  font-size: var(--text-xs);
  color: rgba(251,245,236,0.5);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .nav { display: none; }
  .two-col { grid-template-columns: 1fr; gap: var(--space-8); }
  .commitments { grid-template-columns: 1fr; margin-top: var(--space-16); }
  .program-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .footer-inner { grid-template-columns: 1fr; gap: var(--space-6); }
  .col-image { order: -1; }
}

@media (max-width: 520px) {
  .brand-name { display: none; }
  .mini-player-label { display: none; }
  .mini-player { padding: 0.6rem; }
  .hero-badge { width: 100px; height: 100px; }
  .player-card { padding: var(--space-6) var(--space-4); }
}
