/* ═══════════════════════════════════════════════════════════════
   MUSIC HABITAT — DEFINITIVE MOBILE + HERO FIX
   Single source of truth for nav, logo, hamburger, hero spacing
   ═══════════════════════════════════════════════════════════════ */

/* ── TOKENS ──────────────────────────────────────────────────── */
:root {
  --nav-h: 80px;
}

/* ── LOGO ────────────────────────────────────────────────────── */
.nav-logo {
  height: 40px;
  width: auto;
  display: block;
  /* logo-white.png is already white — no filter needed */
  opacity: .92;
  transition: opacity .2s;
  flex-shrink: 0;
}
.nav-logo:hover { opacity: 1 }

/* ── NAV — DESKTOP ───────────────────────────────────────────── */
#nav {
  height: var(--nav-h);
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
}
.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  z-index: 2;
  position: relative;
}
.nav-brand-sub {
  font-size: .45rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 600;
  white-space: nowrap;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  font-size: .67rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: .65;
  white-space: nowrap;
  transition: color .2s, opacity .2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); opacity: 1 }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Tighten at laptop widths */
@media (max-width: 1280px) {
  .nav-links { gap: 18px }
  .nav-links a { font-size: .63rem }
}
@media (max-width: 1140px) {
  .nav-links { gap: 13px }
  .nav-links a { font-size: .6rem; letter-spacing: .04em }
  .nav-brand-sub { display: none }
  .nav-actions .btn { padding: 9px 14px; font-size: .6rem }
}

/* ── NAV — TABLET/MOBILE: hamburger at ≤1060px ───────────────── */
@media (max-width: 1060px) {
  .nav-inner {
    justify-content: space-between;
    position: relative;
  }
  /* Hide desktop nav + actions */
  .nav-links  { display: none }
  .nav-actions { display: none }
  /* Show hamburger */
  .hamburger  { display: flex !important }
  
  /* Logo: left-aligned, reasonable size */
  .nav-brand {
    position: static;
    transform: none;
  }
  .nav-brand-sub { display: none }
  .nav-logo { height: 36px }
}

/* ── HAMBURGER ───────────────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
  margin-right: -10px;
  background: none;
  border: none;
  z-index: 2;
  position: relative;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all .3s var(--ease);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg) }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0) }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg) }

/* ── MOBILE NAV OVERLAY ──────────────────────────────────────── */
#mob-nav {
  position: fixed;
  inset: 0;
  background: rgba(8,9,15,.97);
  z-index: 999;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 80px 36px 48px;
  gap: 0;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
#mob-nav.open { display: flex }

#mob-nav a {
  font-family: var(--ff-disp);
  font-size: clamp(1.8rem, 6vw, 2.6rem);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--white);
  padding: 10px 0;
  width: 100%;
  border-bottom: 1px solid rgba(30,206,202,.08);
  transition: color .2s, padding-left .2s;
  display: block;
  text-decoration: none;
}
#mob-nav a:last-of-type { border-bottom: none }
#mob-nav a:hover { color: var(--teal); padding-left: 6px }

.mob-nav-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 28px;
  width: 100%;
}
.mob-nav-actions .btn {
  width: 100%;
  justify-content: center;
  min-height: 52px;
  font-size: .75rem;
}
.mob-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: 1px solid rgba(255,255,255,.15);
  color: var(--white);
  border-radius: 4px;
  padding: 8px 16px;
  font-size: .6rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  cursor: pointer;
  pointer-events: all;
  font-family: var(--ff-body);
}
.mob-close:hover {
  border-color: var(--teal);
  color: var(--teal);
}

/* ── HERO — DESKTOP ──────────────────────────────────────────── */
#hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Fixed clear: nav height + generous breathing room */
  padding-top: calc(var(--nav-h) + 80px);
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}
.hero-content {
  max-width: 760px;
  width: 100%;
  position: relative;
  z-index: 2;
}
.hero-hl {
  font-family: var(--ff-disp);
  font-size: clamp(3rem, 5.2vw, 6.2rem);
  line-height: .9;
  letter-spacing: .01em;
  text-transform: uppercase;
  margin-bottom: 32px;
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--cream);
  opacity: .78;
  line-height: 1.88;
  max-width: 540px;
  margin-bottom: 0;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}
.hero-trust {
  margin-top: 52px;
  padding-top: 32px;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

/* ── HERO SEGMENT CARDS — DESKTOP ────────────────────────────── */
.hero-segment-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 16px;
  max-width: 760px;
  width: 100%;
}
.hero-seg-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(246,244,239,.08);
  border-radius: 6px;
  padding: 16px 14px;
  transition: border-color .25s, background .25s;
}
.hero-seg-card:hover {
  border-color: rgba(30,206,202,.3);
  background: rgba(30,206,202,.04);
}
.hero-seg-label {
  font-size: .54rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: .4;
  display: block;
  margin-bottom: 10px;
}
.hero-seg-btns {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.hero-seg-btns .btn {
  width: 100%;
  justify-content: center;
  padding: 9px 10px;
  font-size: .58rem;
  letter-spacing: .09em;
}

/* ── HERO — MOBILE ───────────────────────────────────────────── */
@media (max-width: 768px) {
  :root { --nav-h: 64px }

  #hero {
    min-height: auto;
    /* Precise: nav + small gap only */
    padding-top: calc(var(--nav-h) + 36px);
    padding-bottom: 48px;
    justify-content: flex-start;
  }

  .hero-eyebrow {
    margin-bottom: 18px;
    flex-wrap: nowrap;
    gap: 10px;
    overflow: hidden;
  }
  .hero-sep { display: none }
  /* Truncate eyebrow text on small screens */
  .hero-meta { 
    font-size: .54rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero-hl {
    font-size: clamp(2.8rem, 11vw, 4.8rem);
    line-height: .88;
    margin-bottom: 24px;
  }

  .hero-sub {
    font-size: .95rem;
    line-height: 1.72;
    max-width: 100%;
  }
  /* Remove <br> on mobile — let text reflow */
  .hero-sub br { display: none }

  /* Primary actions only — 2 buttons, full width */
  .hero-actions {
    flex-direction: column;
    gap: 10px;
    margin-top: 28px;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    min-height: 56px;
    font-size: .78rem;
  }

  /* HIDE segment grid on mobile — too cluttered */
  .hero-segment-grid { display: none }

  /* Trust bar 2-col */
  .hero-trust {
    margin-top: 32px;
    padding-top: 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .ht-item { padding: 0 }
  .ht-item::after { display: none }
  .ht-val { font-size: 1.6rem }
  .ht-label { font-size: .55rem }
}

/* ── SMALL MOBILE ────────────────────────────────────────────── */
@media (max-width: 420px) {
  :root { --nav-h: 60px }
  #hero {
    padding-top: calc(var(--nav-h) + 28px);
    padding-bottom: 40px;
  }
  .hero-hl { font-size: clamp(2.5rem, 12vw, 3.8rem) }
  .nav-logo { height: 30px }
}

/* ── SECTION SPACING ─────────────────────────────────────────── */
section {
  padding-top: 120px;
  padding-bottom: 120px;
}
#hero { padding-top: calc(var(--nav-h) + 80px); }
@media (max-width: 960px) { section { padding-top: 96px; padding-bottom: 96px } }
@media (max-width: 640px) { section { padding-top: 72px; padding-bottom: 72px } }
@media (max-width: 768px) {
  #hero {
    padding-top: calc(var(--nav-h) + 36px) !important;
    padding-bottom: 48px !important;
  }
}

/* ── INNER PAGE HERO ─────────────────────────────────────────── */
.page-hero, .sp-hero, .inv-hero, .aw-hero, .sh, .sessions-hero, .team-hero {
  padding-top: calc(var(--nav-h) + 80px) !important;
  padding-bottom: 100px !important;
}
@media (max-width: 768px) {
  .page-hero, .sp-hero, .inv-hero, .aw-hero, .sh, .sessions-hero, .team-hero {
    padding-top: calc(var(--nav-h) + 48px) !important;
    padding-bottom: 64px !important;
  }
}

/* ── WRAP ────────────────────────────────────────────────────── */
.wrap {
  padding-left: 40px;
  padding-right: 40px;
}
@media (max-width: 960px) { .wrap { padding-left: 28px; padding-right: 28px } }
@media (max-width: 640px) { .wrap { padding-left: 20px; padding-right: 20px } }
@media (max-width: 380px) { .wrap { padding-left: 16px; padding-right: 16px } }

/* ── FEATURE STATUS BADGES ───────────────────────────────────── */
.status-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .52rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 100px; white-space: nowrap;
  vertical-align: middle; margin-left: 8px;
}
.status-badge::before { content:''; width:4px; height:4px; border-radius:50%; flex-shrink:0 }
.status-live    { background:rgba(30,206,202,.15); color:var(--teal);  border:1px solid rgba(30,206,202,.25) }
.status-live::before    { background:var(--teal) }
.status-dev     { background:rgba(240,165,0,.12);  color:var(--gold);  border:1px solid rgba(240,165,0,.2) }
.status-dev::before     { background:var(--gold) }
.status-sep     { background:rgba(30,206,202,.08); color:var(--teal);  border:1px solid rgba(30,206,202,.12) }
.status-sep::before     { background:var(--teal); opacity:.7 }
.status-roadmap { background:rgba(124,58,237,.12); color:#A78BFA;      border:1px solid rgba(124,58,237,.2) }
.status-roadmap::before { background:#A78BFA }

/* ── STICKY MOBILE CTA ───────────────────────────────────────── */
@media (max-width: 640px) {
  .mobile-sticky-cta {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 900;
    background: linear-gradient(to top, var(--ink) 65%, transparent);
    padding: 16px 20px 28px;
    display: flex; gap: 10px;
    pointer-events: all;
  }
  .mobile-sticky-cta .btn { flex: 1; justify-content: center; min-height: 50px }
  body.has-sticky-cta { padding-bottom: 84px }
}
