/*
Theme Name:   SoapKast
Theme URI:    https://soapkast.com
Author:       SoapKast Productions
Author URI:   https://soapkast.com
Description:  A premium audio-drama theme for SoapKast, inspired by Wondery's clean editorial layout. Features dark navigation, gold accents, Playfair Display headings, and DM Sans body copy.
Version:      1.0.0
Requires at least: 6.0
Tested up to: 6.7
License:      Proprietary
Text Domain:  soapkast
*/

/* ── TOKENS ──────────────────────────────────────────────────── */
:root {
  --ink:      #0e0c0a;
  --paper:    #faf8f4;
  --cream:    #f0ebe0;
  --gold:     #c9a84c;
  --gold-lt:  #e8c96a;
  --rose:     #c45c5c;
  --muted:    #7a7168;
  --card-bg:  #ffffff;
  --border:   #e2ddd4;

  --ff-display: 'Playfair Display', Georgia, serif;
  --ff-body:    'DM Sans', system-ui, sans-serif;

  --nav-h: 68px;
  --max-w: 1160px;

  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-lg: 12px;

  --transition: 0.2s ease;
}

/* ── RESET ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--ff-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: var(--ff-body); }

/* ── NAVIGATION ──────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(14,12,10,0.93);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201,168,76,0.25);
  display: flex;
  align-items: center;
  padding: 0 32px;
  gap: 40px;
}

.site-logo {
  font-family: var(--ff-display);
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: -0.01em;
  margin-right: auto;
}
.site-logo a { color: inherit; }
.site-logo span { color: #fff; }

.primary-nav { display: flex; align-items: center; gap: 28px; }
.primary-nav a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  transition: color var(--transition);
}
.primary-nav a:hover,
.primary-nav a.current-menu-item { color: var(--gold); }
.primary-nav .nav-cta {
  background: var(--gold);
  color: var(--ink) !important;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600 !important;
  transition: background var(--transition);
}
.primary-nav .nav-cta:hover { background: var(--gold-lt); }

/* Mobile hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: all var(--transition);
}

/* ── LAYOUT UTILITIES ────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.site-main { padding-top: var(--nav-h); }

.section { padding: 88px 0; }
.section-dark  { background: var(--ink); color: #fff; }
.section-cream { background: var(--cream); }

.section-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 10px;
}
.section-title {
  font-family: var(--ff-display);
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 14px;
}
.section-sub {
  font-size: 1rem;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 48px;
}
.section-dark .section-sub { color: rgba(255,255,255,0.55); }

/* ── HERO ────────────────────────────────────────────────────── */
.sk-hero {
  background: var(--ink);
  min-height: 88vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 80px 24px;
  position: relative;
  overflow: hidden;
}
.sk-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 55% at 50% 40%,
    rgba(201,168,76,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }
.hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  display: block;
}
.hero-title {
  font-family: var(--ff-display);
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.08;
  max-width: 800px;
  margin: 0 auto 20px;
}
.hero-title em { color: var(--gold); font-style: italic; }
.hero-desc {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.6);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── BUTTONS ─────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all var(--transition);
  border: none;
}
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-lt); transform: translateY(-1px); color: var(--ink); }
.btn-outline {
  border: 1.5px solid rgba(255,255,255,0.3);
  background: transparent;
  color: #fff;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-full { width: 100%; text-align: center; }

/* ── MARQUEE ─────────────────────────────────────────────────── */
.sk-marquee {
  background: var(--gold);
  padding: 14px 0;
  overflow: hidden;
  white-space: nowrap;
}
.sk-marquee-inner {
  display: inline-flex;
  gap: 56px;
  animation: sk-marquee 18s linear infinite;
}
.sk-marquee-item {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--ink);
  font-weight: 700;
}
@keyframes sk-marquee { to { transform: translateX(-50%); } }

/* ── SHOW CARDS ──────────────────────────────────────────────── */
.shows-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}
.show-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.25s, box-shadow 0.25s;
}
.show-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(14,12,10,0.12);
}
.show-card-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  position: relative;
  overflow: hidden;
}
.show-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.show-card-badge {
  position: absolute;
  top: 12px; right: 12px;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 2px;
}
.show-card-body { padding: 20px 22px 24px; }
.show-card-genre {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 6px;
}
.show-card-title {
  font-family: var(--ff-display);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 8px;
}
.show-card-desc {
  font-size: 0.87rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 16px;
}
.show-card-link {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rose);
  display: inline-flex; align-items: center; gap: 5px;
}
.show-card-link::after { content: ' →'; }

/* ── STATS ROW ───────────────────────────────────────────────── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.stat-cell {
  background: var(--card-bg);
  padding: 36px 32px;
  text-align: center;
}
.stat-number {
  font-family: var(--ff-display);
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  display: block;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
}

/* ── EPISODE LIST ────────────────────────────────────────────── */
.episode-list { display: flex; flex-direction: column; }
.episode-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
  cursor: pointer;
}
.episode-row:hover {
  background: var(--cream);
  padding: 20px 12px;
  margin: 0 -12px;
  border-radius: var(--radius-sm);
}
.ep-num {
  font-family: var(--ff-display);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--gold);
  text-align: center;
}
.ep-title {
  font-family: var(--ff-display);
  font-size: 1.05rem;
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
}
.ep-desc { font-size: 0.83rem; color: var(--muted); line-height: 1.5; }
.ep-duration { font-size: 0.78rem; font-weight: 500; color: var(--muted); white-space: nowrap; }

/* ── PAGE HEADER ─────────────────────────────────────────────── */
.page-header {
  background: var(--ink);
  padding: 72px 24px 64px;
  text-align: center;
}
.page-header h1 {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 12px;
}
.page-header .page-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.55);
  max-width: 500px;
  margin: 0 auto;
}

/* ── FORMS ───────────────────────────────────────────────────── */
.sk-form-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 48px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--paper);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: var(--ff-body);
  font-size: 0.95rem;
  color: var(--ink);
  outline: none;
  transition: border-color var(--transition);
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--gold); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-message {
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  display: none;
}
.form-message.success { background: #f0fff4; color: #276749; border: 1px solid #c6f6d5; display: block; }
.form-message.error   { background: #fff5f5; color: #9b2c2c; border: 1px solid #fed7d7; display: block; }

/* ── FOOTER ──────────────────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.55);
  padding: 60px 0 36px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer-brand-name {
  font-family: var(--ff-display);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--gold);
  display: block;
  margin-bottom: 12px;
}
.footer-tagline { font-size: 0.88rem; line-height: 1.7; margin-bottom: 24px; }
.footer-socials { display: flex; gap: 10px; }
.social-icon {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.55);
  transition: all var(--transition);
}
.social-icon:hover { border-color: var(--gold); color: var(--gold); }
.footer-col-title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  display: block;
  margin-bottom: 16px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.88rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 28px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-copy { font-size: 0.8rem; }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { font-size: 0.8rem; transition: color var(--transition); }
.footer-legal a:hover { color: var(--gold); }

/* ── PARTNERSHIP TYPE CARDS ──────────────────────────────────── */
.partnership-types {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 72px;
}
.partnership-type-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
}
.partnership-type-card .icon { font-size: 1.5rem; margin-bottom: 16px; }
.partnership-type-card h3 {
  font-family: var(--ff-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.partnership-type-card p { font-size: 0.88rem; color: var(--muted); line-height: 1.7; }

/* ── BRANDED FEATURE SPLIT ───────────────────────────────────── */
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.feature-visual {
  background: linear-gradient(135deg, #1a1510 0%, #2d2217 100%);
  padding: 60px 48px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
  min-height: 400px;
}
.feature-visual::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 60%, rgba(201,168,76,0.18) 0%, transparent 65%);
}
.feature-visual-content { position: relative; z-index: 1; text-align: center; }
.feature-copy { padding: 60px 56px; background: #fff; display: flex; flex-direction: column; justify-content: center; }

/* ── WORDPRESS DEFAULTS OVERRIDES ────────────────────────────── */
.wp-block-image img { border-radius: var(--radius-sm); }
.alignleft { float: left; margin-right: 24px; margin-bottom: 16px; }
.alignright { float: right; margin-left: 24px; margin-bottom: 16px; }
.aligncenter { margin: 0 auto 16px; }
.screen-reader-text {
  clip: rect(1px,1px,1px,1px);
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
}

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .partnership-types { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .primary-nav { display: none; }
  .primary-nav.open { display: flex; flex-direction: column; position: fixed; top: var(--nav-h); left: 0; right: 0; background: var(--ink); padding: 24px 32px; gap: 20px; }
  .nav-toggle { display: flex; }
  .stats-row { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full { grid-column: 1; }
  .feature-split { grid-template-columns: 1fr; }
  .feature-copy { padding: 40px 24px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .sk-form-card { padding: 32px 24px; }
}

@media (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
}
