/* Urelevant — matches the live Kajabi site palette + structure */
:root {
  --bg: #161E2A;            /* dark blue-black, matches Kajabi */
  --bg-alt: #1c2538;
  --bg-card: #202b40;
  --text: #ecf0f1;          /* light text, matches Kajabi */
  --text-muted: #aab4c2;
  --accent: #395aed;        /* primary purple-blue button color, matches Kajabi */
  --accent-hover: #4d6ff5;
  --border: rgba(255,255,255,0.08);
  --max: 1180px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { font-family: 'Fira Sans', 'Open Sans', sans-serif; font-weight: 800; line-height: 1.18; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

/* Layout */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(22, 30, 42, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav { max-width: var(--max); margin: 0 auto; padding: 18px 24px; display: flex; align-items: center; gap: 28px; }
.nav .brand img { height: 38px; width: auto; }
.nav .links { margin-left: auto; display: flex; gap: 32px; }
.nav .links a { color: var(--text); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.92rem; }
.nav .links a:hover { color: var(--accent); }

/* Hero — banner image with dark overlay matching Kajabi */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex; align-items: center;
  background: url('/assets/images/hero-banner.png') center/cover no-repeat, var(--bg);
  isolation: isolate;
  padding: 120px 0;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(22,30,42,0.55) 0%, rgba(22,30,42,0.65) 100%);
  z-index: -1;
}
.hero h1 { color: #ffffff; font-size: clamp(2.6rem, 5.5vw, 4.5rem); max-width: 18ch; }
.hero p.lead { font-size: clamp(1.1rem, 1.8vw, 1.4rem); max-width: 50ch; color: #ffffff; opacity: 0.95; }

/* Buttons match Kajabi: solid #395aed, white text, slight rounded corners */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: #ffffff;
  border: none; border-radius: 8px;
  padding: 16px 38px;
  font-weight: 700; font-size: 1rem; letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .15s, transform .15s;
}
.btn:hover { background: var(--accent-hover); color: #ffffff; transform: translateY(-1px); }
.btn.btn-outline {
  background: transparent; color: #ffffff;
  border: 2px solid #ffffff;
}
.btn.btn-outline:hover { background: #ffffff; color: var(--accent); }

/* Topic sections — alternating image/text rows like Kajabi */
.topic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 60px 0;
}
.topic.flip { direction: rtl; }
.topic.flip > * { direction: ltr; }
.topic img {
  border-radius: 6px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
}
.topic h2 { color: #ffffff; }
.topic p { color: var(--text); font-size: 1.05rem; }
.topic .btn { margin-top: 14px; }

.section-alt { background: var(--bg-alt); }

/* Episodes grid */
.episodes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 18px;
  margin-top: 32px;
}
.ep-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  display: flex; flex-direction: column; gap: 10px;
  transition: transform .15s, border-color .15s, background .15s;
}
.ep-card:hover { transform: translateY(-2px); border-color: var(--accent); background: #283556; }
.ep-card .num { font-size: 0.78rem; color: var(--accent); letter-spacing: 0.1em; text-transform: uppercase; font-weight: 800; }
.ep-card .title { color: var(--text); font-weight: 700; font-size: 1.08rem; line-height: 1.35; min-height: 2.7em; font-family: 'Fira Sans', sans-serif; }
.ep-card .meta { color: var(--text-muted); font-size: 0.85rem; margin-top: auto; }

/* Episode page */
.episode header.ep-head { padding: 16px 0 28px; border-bottom: 1px solid var(--border); margin-bottom: 32px; }
.episode .crumb { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 10px; }
.episode .crumb a { color: var(--text-muted); }
.episode .crumb a:hover { color: var(--accent); }
.episode h1 { color: #ffffff; font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
.episode .video, .episode .audio { margin: 28px 0; }
.episode .video iframe { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 6px; }
.episode .audio audio { width: 100%; }
.episode .desc { font-size: 1.06rem; color: var(--text); }
.episode .desc a { color: var(--accent); text-decoration: underline; }
.episode .nav-prev-next {
  display: flex; justify-content: space-between; gap: 16px;
  margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--border);
}
.episode .nav-prev-next a { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.92rem; }

/* Subscribe row */
.subscribe-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-top: 20px; }
.subscribe-row a {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 8px; padding: 12px 20px; color: var(--text); font-weight: 700; font-size: 0.95rem;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.subscribe-row a:hover { border-color: var(--accent); background: var(--accent); color: #ffffff; }

/* About */
.about-grid { display: grid; grid-template-columns: 320px 1fr; gap: 56px; align-items: start; }
.about-grid img { border-radius: 6px; box-shadow: 0 16px 40px rgba(0,0,0,0.4); }
.about-grid h2 { color: #ffffff; margin-top: 1.4em; }

/* Footer */
.site-footer {
  background: #0d1320;
  padding: 56px 0 40px;
  margin-top: 0;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.92rem;
}
.site-footer .wrap { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 32px; align-items: center; }
.site-footer .links a { color: var(--text-muted); margin-right: 22px; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.85rem; font-weight: 700; }
.site-footer .links a:hover { color: var(--accent); }
.site-footer .social { text-align: center; }
.site-footer .social a { font-size: 1rem; margin: 0 14px; color: var(--text-muted); font-weight: 700; }
.site-footer .social a:hover { color: var(--accent); }
.site-footer .copy { text-align: right; font-size: 0.85rem; }

/* Responsive */
@media (max-width: 820px) {
  .hero { min-height: auto; padding: 80px 0; }
  .topic, .topic.flip, .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .topic.flip { direction: ltr; }
  .nav { gap: 12px; }
  .nav .links { gap: 18px; font-size: 0.82rem; }
  .section { padding: 56px 0; }
  .site-footer .wrap { grid-template-columns: 1fr; text-align: center; }
  .site-footer .copy { text-align: center; }
  .site-footer .links a { margin: 0 10px; }
}
