/* B.A. Showoff — chic & glamorous design system */

:root {
  --navy: #0E1428;
  --navy-2: #161D38;
  --navy-3: #1F2747;
  --magenta: #C2326C;
  --magenta-soft: #D85A8C;
  --magenta-deep: #8E1F4C;
  --ivory: #F5EFE6;
  --ivory-2: #EBE3D5;
  --champagne: #C9A96E;
  --champagne-soft: #E5D4A8;
  --ink: #14182B;
  --muted: #6B6577;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  font-weight: 500;
}

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

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

/* ------- Type ------- */
.script {
  font-family: 'Dancing Script', cursive;
  color: var(--magenta);
  font-weight: 700;
}

.display {
  font-family: 'Italiana', 'Playfair Display', serif;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.05;
}

.serif {
  font-family: 'Playfair Display', Georgia, serif;
}

.eyebrow {
  font-family: 'Italiana', serif;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  font-size: 14px;
  color: var(--champagne);
  font-weight: 600;
}

.eyebrow.dark { color: var(--magenta-deep); }

h1, h2, h3, h4 { font-family: 'Italiana', 'Playfair Display', serif; font-weight: 500; }

/* ------- Layout ------- */
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.container-narrow { width: 100%; max-width: 880px; margin: 0 auto; padding: 0 32px; }

section { padding: 110px 0; }
section.tight { padding: 70px 0; }

.dark { background: var(--navy); color: var(--ivory); }
.dark .eyebrow { color: var(--champagne-soft); }
.dark p { color: rgba(245, 239, 230, 0.82); }

/* ------- Nav ------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy);
  border-bottom: 1px solid rgba(201, 169, 110, 0.25);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px;
  max-width: 1320px; margin: 0 auto;
}
.nav-logo { display: flex; align-items: center; gap: 14px; }
.nav-logo img { height: 46px; width: auto; }
.nav-logo .wordmark {
  font-family: 'Italiana', serif;
  color: var(--ivory);
  letter-spacing: 0.32em;
  font-size: 15px;
}
.nav-logo .wordmark .pink { color: var(--magenta-soft); }
.nav-links { display: flex; gap: 38px; align-items: center; }
.nav-links a {
  font-family: 'Italiana', serif;
  font-weight: 600;
  letter-spacing: 0.28em;
  font-size: 12.5px;
  color: var(--ivory);
  text-transform: uppercase;
  position: relative;
  padding: 6px 0;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--magenta-soft); }
.nav-links a.active { color: var(--magenta-soft); }
.nav-links a.active::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 1px;
  background: var(--magenta-soft);
}
.nav-cta {
  font-family: 'Italiana', serif !important;
  letter-spacing: 0.22em !important;
  border: 1px solid var(--champagne);
  padding: 10px 22px !important;
  color: var(--champagne) !important;
  transition: all 0.25s;
}
.nav-cta:hover { background: var(--champagne); color: var(--navy) !important; }

/* ------- Buttons ------- */
.btn {
  display: inline-block;
  font-family: 'Italiana', serif;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 12.5px;
  padding: 16px 36px;
  border: 1px solid currentColor;
  cursor: pointer;
  transition: all 0.25s ease;
  background: transparent;
  color: inherit;
}
.btn-primary {
  background: var(--magenta);
  border-color: var(--magenta);
  color: var(--ivory);
}
.btn-primary:hover { background: var(--magenta-deep); border-color: var(--magenta-deep); }
.btn-ghost { color: var(--ivory); border-color: var(--champagne); }
.btn-ghost:hover { background: var(--champagne); color: var(--navy); }
.btn-dark { color: var(--navy); border-color: var(--navy); }
.btn-dark:hover { background: var(--navy); color: var(--ivory); }

/* ------- Decorations ------- */
.rule {
  display: flex; align-items: center; gap: 14px;
  color: var(--champagne);
  font-family: 'Italiana', serif;
  letter-spacing: 0.4em;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  margin: 0 auto 28px;
  width: fit-content;
}
.rule::before, .rule::after {
  content: ''; width: 56px; height: 1px; background: var(--champagne); opacity: 0.6;
}

.gold-frame {
  border: 1px solid var(--champagne);
  position: relative;
}
.gold-frame::before {
  content: ''; position: absolute; inset: 6px;
  border: 1px solid rgba(201, 169, 110, 0.3);
  pointer-events: none;
}

/* ------- Footer ------- */
footer {
  background: #07091A;
  color: rgba(245, 239, 230, 0.7);
  padding: 72px 0 36px;
  border-top: 1px solid rgba(201, 169, 110, 0.2);
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px;
  margin-bottom: 48px;
}
footer h4 {
  font-family: 'Italiana', serif;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 14px;
  font-weight: 600;
  color: var(--champagne);
  margin-bottom: 18px;
}
footer ul { list-style: none; }
footer li { margin-bottom: 10px; font-size: 16px; }
footer a:hover { color: var(--magenta-soft); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px; border-top: 1px solid rgba(201, 169, 110, 0.15);
  font-size: 14px; letter-spacing: 0.18em; text-transform: uppercase;
  font-family: 'Italiana', serif;
  font-weight: 600;
}

/* ------- Forms ------- */
.field { margin-bottom: 22px; }
.field label {
  display: block;
  font-family: 'Italiana', serif;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 13px;
  font-weight: 600;
  color: var(--magenta-deep);
  margin-bottom: 8px;
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(20, 24, 43, 0.2);
  background: transparent;
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  color: var(--ink);
  border-radius: 0;
  transition: border-color 0.2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--magenta);
}
.field textarea { min-height: 120px; resize: vertical; font-family: inherit; }

.checkbox-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.check-card {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px;
  border: 1px solid rgba(20,24,43,0.2);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Italiana', serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.check-card:hover { border-color: var(--magenta); }
.check-card input { accent-color: var(--magenta); width: 16px; height: 16px; }
.check-card.selected { border-color: var(--magenta); background: rgba(194, 50, 108, 0.05); }

/* ------- Utilities ------- */
.center { text-align: center; }
.tag {
  display: inline-block;
  font-family: 'Italiana', serif;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border: 1px solid var(--champagne);
  color: var(--champagne);
}

/* ------- Page-specific helpers shared ------- */
.hero-eyebrow { letter-spacing: 0.6em; font-size: 11px; }

/* ------- Logo Lockup (consistent across site) ------- */
.logo-lockup { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; }
.logo-lockup .logo-script {
  font-family: 'Dancing Script', cursive;
  color: var(--magenta);
  font-weight: 600;
  line-height: 0.85;
  margin-bottom: 0.05em;
}
.logo-lockup .logo-word {
  font-family: 'Italiana', serif;
  color: var(--ivory);
  letter-spacing: 0.18em;
  line-height: 1;
}
.logo-lockup .logo-word .pink { color: var(--magenta); }
.logo-lockup.on-light .logo-word { color: var(--ink); }
.logo-lockup .logo-rule {
  display: flex; align-items: center; gap: 10px;
  margin-top: 0.6em;
  font-family: 'Italiana', serif;
  letter-spacing: 0.32em;
  font-size: 0.32em;
  text-transform: uppercase;
  color: var(--champagne);
}
.logo-lockup .logo-rule::before, .logo-lockup .logo-rule::after {
  content: ''; height: 1px; width: 1.2em; background: var(--champagne); opacity: 0.7;
}
.logo-lockup.no-tagline .logo-rule { display: none; }
.logo-lockup.size-sm { font-size: 28px; }
.logo-lockup.size-md { font-size: 56px; }
.logo-lockup.size-lg { font-size: 88px; }

/* ===== Mobile nav toggle ===== */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  margin: -10px;
  flex-direction: column;
  gap: 5px;
  z-index: 60;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--ivory);
  transition: transform 0.3s ease, opacity 0.2s ease;
  transform-origin: center;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ===== Tablet & below (≤ 1024px) ===== */
@media (max-width: 1024px) {
  body, body[style] { font-size: 18px !important; }
  section { padding: 80px 0 !important; }
  .container, .container-narrow { padding: 0 28px; }

  /* Collapse main 2-col content grids to single column */
  section .container > div[style*="grid-template-columns: 1fr 1.1fr"],
  section .container > div[style*="grid-template-columns: 1fr 1.2fr"],
  section .container > div[style*="grid-template-columns: 1fr 1.3fr"],
  section .container > div[style*="grid-template-columns: 1fr 1.4fr"],
  section .container > div[style*="grid-template-columns: 1fr 1.5fr"],
  section .container > div[style*="grid-template-columns: 1.05fr"],
  section .container > div[style*="grid-template-columns: 1.1fr"],
  section .container > div[style*="grid-template-columns: 1.3fr"],
  section .container > div[style*="grid-template-columns: 1.4fr"],
  section > div[style*="grid-template-columns: 1.05fr"] {
    grid-template-columns: 1fr !important;
    gap: 48px !important;
  }

  /* Disable sticky on stacked layouts (so sticky cols don't get stuck above content) */
  section [style*="position: sticky"] {
    position: static !important;
  }

  /* Hero: stack vertically, sane padding, allow heading to wrap */
  section[data-screen-label="Home / Hero"] > div:first-child,
  section[data-screen-label$="/ Hero"] > div:first-child {
    min-height: auto !important;
  }
  section[data-screen-label="Home / Hero"] > div:first-child > div:first-child {
    padding: 70px 28px 50px !important;
  }
  section[data-screen-label="Home / Hero"] h1 {
    white-space: normal !important;
    font-size: clamp(48px, 11vw, 84px) !important;
  }
  section[data-screen-label="Home / Hero"] > div:first-child > div:nth-child(2) {
    min-height: 460px;
  }
  section[data-screen-label="Home / Hero"] > div:first-child > div:nth-child(2) > div {
    inset: 32px !important;
  }
}

/* ===== Phone (≤ 720px) ===== */
@media (max-width: 720px) {
  body, body[style] { font-size: 17px !important; }
  section { padding: 64px 0 !important; }
  .container, .container-narrow { padding: 0 20px; }

  /* Nav: hide inline links, show hamburger, links become dropdown panel */
  .nav { position: relative; }
  .nav-inner { padding: 14px 20px; }
  .nav-toggle { display: flex; }
  .nav-logo img { height: 38px; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 24px;
    border-bottom: 1px solid rgba(201, 169, 110, 0.25);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 16px 0;
    border-bottom: 1px solid rgba(201, 169, 110, 0.12);
    font-size: 13px;
  }
  .nav-links a:last-child { border-bottom: none; }
  .nav-cta {
    margin-top: 12px;
    text-align: center;
    padding: 14px 22px !important;
  }

  /* Buttons stack cleanly */
  .btn { padding: 14px 26px; font-size: 12px; }

  /* Collapse remaining 2-col & multi-col grids */
  section [style*="grid-template-columns: 1fr 1fr"],
  section [style*="grid-template-columns: repeat(2"],
  section [style*="grid-template-columns: repeat(3"],
  section [style*="grid-template-columns: repeat(4"] {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }
  /* Stat triplets stay as 3 mini-columns (no inline gap, dividers are inline borders) */
  section[data-screen-label="About / Becky"] .container > div > div > div[style*="grid-template-columns: repeat(3, 1fr)"],
  section[data-screen-label="About / Alexandra"] .container > div > div > div[style*="grid-template-columns: repeat(3, 1fr)"] {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0 !important;
  }
  section[data-screen-label="About / Becky"] .container .display[style*="font-size: 52px"],
  section[data-screen-label="About / Becky"] .container .display[style*="font-size: 49px"],
  section[data-screen-label="About / Alexandra"] .container .display[style*="font-size: 52px"],
  section[data-screen-label="About / Alexandra"] .container .display[style*="font-size: 49px"] {
    font-size: 32px !important;
  }
  section[data-screen-label="About / Becky"] .container .eyebrow[style*="letter-spacing: 0.32em"],
  section[data-screen-label="About / Alexandra"] .container .eyebrow[style*="letter-spacing: 0.32em"] {
    font-size: 8px !important;
    letter-spacing: 0.18em !important;
  }

  /* Hero photo panel sized to image */
  section[data-screen-label="Home / Hero"] > div:first-child > div:nth-child(2) {
    min-height: 380px;
    aspect-ratio: 4/5;
  }
  section[data-screen-label="Home / Hero"] > div:first-child > div:nth-child(2) > div {
    inset: 20px !important;
  }

  /* Big display headings — keep readable on phones */
  .display { line-height: 1.05; }
  h1.display[style*="clamp(64px"],
  h1.display[style*="clamp(72px"] {
    font-size: clamp(44px, 12vw, 64px) !important;
  }
  h2.display[style*="clamp(48px"] { font-size: clamp(36px, 9vw, 56px) !important; }
  h2.display[style*="clamp(40px"] { font-size: clamp(32px, 8vw, 48px) !important; }
  h2.display[style*="clamp(36px"] { font-size: clamp(30px, 7vw, 40px) !important; }
  .script[style*="font-size: 52px"],
  .script[style*="font-size: 56px"],
  .script[style*="font-size: 64px"] { font-size: 42px !important; }

  /* Tighten the Becky/Alexandra photo frames */
  section[data-screen-label="About / Becky"] .container > div > div:first-child > div[style*="height: 330px"],
  section[data-screen-label="About / Alexandra"] .container > div > div:last-child > div[style*="height: 325px"] {
    height: auto !important;
  }
  section[data-screen-label="About / Becky"] image-slot,
  section[data-screen-label="About / Alexandra"] image-slot {
    height: 340px !important;
  }

  /* Featured episodes carousel — show ~1.1 cards */
  .ep-card { flex: 0 0 88% !important; min-height: auto !important; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .checkbox-grid { grid-template-columns: 1fr !important; }

  /* Forms & inputs comfortable on phone */
  .field input, .field textarea, .field select { font-size: 16px; }
}

/* ===== Small phone (≤ 420px) ===== */
@media (max-width: 420px) {
  .container, .container-narrow { padding: 0 16px; }
  section { padding: 52px 0 !important; }
  .footer-grid { grid-template-columns: 1fr !important; }
  .nav-logo img { height: 32px; }
  .btn { padding: 12px 20px; font-size: 11px; letter-spacing: 0.24em; }
}
