/* ============================================
   WALKMAN STUDIOS — Shared Components
   ============================================ */
/* Great Vibes — cursive script matching the physical neon sign */
@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&display=swap');

/* ============ NAVIGATION ============ */

/* ---- Header bar ---- */
.nav-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  padding: var(--space-lg) 0;
  transition:
    background var(--duration-normal) var(--ease-out),
    padding var(--duration-normal) var(--ease-out),
    border-color var(--duration-normal) var(--ease-out),
    box-shadow var(--duration-normal) var(--ease-out);
  border-bottom: 1px solid transparent;
  /* Top-of-page: the nav floats freely over the hero */
  background: transparent;
}

/* Very subtle top-gradient vignette so the nav elements read against anything behind */
.nav-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(5, 4, 3, 0.55) 0%,
    rgba(5, 4, 3, 0.0) 100%
  );
  pointer-events: none;
  transition: opacity var(--duration-normal) var(--ease-out);
}

/* Scrolled: refined dark glass strip */
.nav-header--scrolled {
  background: rgba(7, 6, 5, 0.92);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  padding: var(--space-md) 0;
  border-bottom: 1px solid rgba(201, 168, 76, 0.14);
  box-shadow: 0 1px 32px rgba(0,0,0,0.5), 0 0 0 0.5px rgba(201, 168, 76, 0.08);
}

.nav-header--scrolled::before {
  opacity: 0;
}

/* ---- Inner flex row ---- */
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  position: relative;
  z-index: 1;
}

/* ---- Logo — Physical neon sign replica ---- */
/*
  The physical branding uses a thin cursive neon sign on a black wall.
  This replicates that: Great Vibes script, near-white hot core,
  layered amber-gold glow radiating outward, ambient wall warmth.
*/
.neon-brand {
  font-family: 'Great Vibes', cursive;
  /* Size matches the photo proportions — legible but not oversized */
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 400; /* Great Vibes has one weight — naturally thin */
  text-decoration: none;
  display: inline-block;
  line-height: 1;
  letter-spacing: 0.02em;

  /*
    Neon tube color physics:
    - Core: near-white warm (the hottest part of the glass tube)
    - Then: warm amber rings spreading outward
    - Finally: a very faint wide ambient glow (the wall behind the sign)
  */
  color: #fff9ee;
  text-shadow:
    0 0 3px  #fff9ee,
    0 0 8px  #f0c060,
    0 0 20px rgba(210, 145, 50, 0.8),
    0 0 45px rgba(190, 120, 35, 0.5),
    0 0 90px rgba(170, 100, 25, 0.2);

  /* The warm wall glow behind the sign */
  filter: drop-shadow(0 0 30px rgba(190, 120, 35, 0.18));

  animation: neon-sign-flicker 5.5s ease-in-out infinite;
  transition: filter var(--duration-slow) var(--ease-out);
}

/* Hover: step closer to the sign — the glow intensifies */
.neon-brand:hover {
  animation-play-state: paused;
  color: #fffbf2;
  text-shadow:
    0 0 3px  #fffbf2,
    0 0 10px #f5cc70,
    0 0 28px rgba(215, 155, 55, 0.9),
    0 0 60px rgba(195, 130, 40, 0.55),
    0 0 110px rgba(175, 110, 30, 0.25);
  filter: drop-shadow(0 0 45px rgba(195, 130, 40, 0.28));
}

.header-logo-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-md);
  text-decoration: none;
  margin-left: -60px;
}

.header-logo-img {
  height: 60px;
  width: auto;
  transition: transform var(--duration-normal) var(--ease-out), filter var(--duration-normal) var(--ease-out);
}

.header-logo-link:hover .header-logo-img {
  transform: scale(1.03);
  filter: drop-shadow(0 0 10px rgba(201, 168, 76, 0.3));
}

.header-logo-text {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 400;
  color: #fff9ee;
  letter-spacing: 0.02em;
  text-transform: none;
  line-height: 1;
  transform: translateY(4px);
  text-shadow: 0 0 8px rgba(201, 168, 76, 0.4);
  transition: color var(--duration-fast) var(--ease-out), text-shadow var(--duration-fast) var(--ease-out);
}

.header-logo-link:hover .header-logo-text {
  color: #fffbf2;
  text-shadow:
    0 0 3px  #fffbf2,
    0 0 10px #f5cc70,
    0 0 28px rgba(215, 155, 55, 0.9);
}

/*
  Neon sign flicker animation.
  Real neon: mostly steady with 2 brief voltage dips per cycle.
  Dip 1: quick stutter around 20%.
  Dip 2: slower fade around 55%.
  The sign never fully cuts out — it just dims and recovers.
*/
@keyframes neon-sign-flicker {
  /* ---- Steady burn ---- */
  0%, 17%, 25%, 52%, 60%, 100% {
    opacity: 1;
    text-shadow:
      0 0 3px  #fff9ee,
      0 0 8px  #f0c060,
      0 0 20px rgba(210, 145, 50, 0.8),
      0 0 45px rgba(190, 120, 35, 0.5),
      0 0 90px rgba(170, 100, 25, 0.2);
    filter: drop-shadow(0 0 30px rgba(190, 120, 35, 0.18));
  }

  /* ---- Dip 1: quick voltage drop ---- */
  20% {
    opacity: 0.78;
    text-shadow:
      0 0 2px rgba(240, 192, 96, 0.6),
      0 0 8px rgba(200, 130, 40, 0.35),
      0 0 18px rgba(180, 110, 30, 0.15);
    filter: drop-shadow(0 0 10px rgba(190, 120, 35, 0.06));
  }

  /* ---- Brief recovery flash ---- */
  22%, 24% {
    opacity: 0.94;
    text-shadow:
      0 0 3px  #fff9ee,
      0 0 8px  #f0c060,
      0 0 20px rgba(210, 145, 50, 0.8),
      0 0 45px rgba(190, 120, 35, 0.5);
    filter: drop-shadow(0 0 30px rgba(190, 120, 35, 0.18));
  }

  /* ---- Dip 2: longer fade ---- */
  55% {
    opacity: 0.72;
    text-shadow:
      0 0 2px rgba(240, 192, 96, 0.5),
      0 0 6px rgba(200, 130, 40, 0.28),
      0 0 14px rgba(180, 110, 30, 0.12);
    filter: drop-shadow(0 0 8px rgba(190, 120, 35, 0.05));
  }
}

/* Legacy spans no longer used in HTML — kept safe */
.logo-accent   { display: none; }
.logo-wordmark { display: none; }
.logo-rule     { display: none; }
.logo-sub      { display: none; }

/* ---- Nav right: links + CTA ---- */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
}

/* Page links */
.nav-links a {
  font-family: var(--font-body);
  font-size: var(--fs-caption);
  font-weight: var(--fw-medium);
  color: rgba(255, 238, 210, 0.52);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: var(--ls-widest);
  position: relative;
  padding: var(--space-xs) 0;
  transition:
    color var(--duration-fast) var(--ease-out),
    letter-spacing var(--duration-normal) var(--ease-out);
}

/* Gold dot above active link */
.nav-links a::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 6px var(--color-accent);
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-out);
}

/* Thin underline on hover / active */
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
  transition: width var(--duration-normal) var(--ease-out);
}

.nav-links a:hover {
  color: var(--color-text);
  letter-spacing: calc(var(--ls-widest) + 0.03em);
}

.nav-links a.active {
  color: rgba(255, 248, 230, 0.95);
}

.nav-links a.active::before {
  opacity: 1;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* ---- Mobile Menu Toggle ---- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  z-index: calc(var(--z-overlay) + 10);
  padding: 0;
  background: none;
  border: none;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.6);
  transition:
    transform var(--duration-normal) var(--ease-out),
    opacity var(--duration-fast) var(--ease-out),
    background var(--duration-fast) var(--ease-out);
  transform-origin: center;
}

.nav-toggle:hover span {
  background: var(--color-accent);
}

.nav-toggle.active span { background: rgba(255,255,255,0.8); }
.nav-toggle.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---- Mobile Menu — Full-screen Cinematic Overlay ---- */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(4, 4, 4, 0.97);
  backdrop-filter: blur(40px) saturate(130%);
  -webkit-backdrop-filter: blur(40px) saturate(130%);
  z-index: var(--z-overlay);
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: var(--space-3xl) var(--container-padding);
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-out);
  /* Subtle grid background */
  background-image:
    linear-gradient(rgba(201,168,76,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  gap: 0;
}

.mobile-menu.open {
  display: flex;
  opacity: 1;
}

/* Large Playfair nav links */
.mobile-menu a {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 7vw, 4rem);
  font-weight: var(--fw-bold);
  font-style: italic;
  color: rgba(255,255,255,0.15);
  text-decoration: none;
  letter-spacing: var(--ls-tight);
  line-height: 1.3;
  transition:
    color var(--duration-fast) var(--ease-out),
    letter-spacing var(--duration-normal) var(--ease-out);
  display: block;
  padding: var(--space-xs) 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  width: 100%;
}

.mobile-menu a:hover,
.mobile-menu a:focus {
  color: var(--color-text);
  letter-spacing: calc(var(--ls-tight) - 0.01em);
}

/* Active page link in mobile menu */
.mobile-menu a.active {
  color: var(--color-accent);
  text-shadow: 0 0 20px rgba(201,168,76,0.3);
}

.mobile-menu .btn {
  margin-top: var(--space-2xl);
  align-self: flex-start;
}

/* Bottom session info bar inside mobile menu */
.mobile-menu::after {
  content: 'walkmanstudios@gmail.com';
  position: absolute;
  bottom: var(--space-2xl);
  left: var(--container-padding);
  right: var(--container-padding);
  font-family: var(--font-body);
  font-size: var(--fs-caption);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: var(--space-md);
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  
  /* Optimize logo for mobile */
  .header-logo-link {
    margin-left: -16px; /* Reset aggressive negative margin on mobile */
    gap: var(--space-xs);
  }
  .header-logo-img {
    height: 40px;
  }
  .header-logo-text {
    font-size: 1.6rem;
    transform: translateY(2px);
  }
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  padding: var(--space-sm) var(--space-lg);
  border-radius: 0;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-black);
  border: 1px solid var(--color-accent);
}

.btn--primary:hover {
  background: var(--color-accent-light);
  border-color: var(--color-accent-light);
  color: var(--color-black);
  box-shadow: var(--shadow-glow);
}

.btn--outline {
  background: transparent;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
}

.btn--outline:hover {
  background: var(--color-accent);
  color: var(--color-black);
  box-shadow: var(--shadow-glow);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn--ghost:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn--lg {
  padding: var(--space-md) var(--space-xl);
  font-size: var(--fs-body);
}

/* ============ SECTION HEADING ============ */
.section-header {
  margin-bottom: var(--space-3xl);
}

.section-header--center {
  text-align: center;
}

.section-header--center .divider {
  margin-left: auto;
  margin-right: auto;
}

.section-header .label {
  margin-bottom: var(--space-sm);
  display: block;
}

.section-header h2 {
  margin-bottom: var(--space-md);
}

.section-header p {
  max-width: 600px;
  font-size: var(--fs-body-lg);
}

.section-header--center p {
  margin-left: auto;
  margin-right: auto;
}

/* ============ CONTACT MODAL ============ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-normal) var(--ease-out),
              visibility var(--duration-normal) var(--ease-out);
  padding: var(--space-md);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: var(--space-2xl);
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform var(--duration-normal) var(--ease-out);
}

.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 1.5rem;
  transition: color var(--duration-fast) var(--ease-out);
  cursor: pointer;
  background: none;
  border: none;
}

.modal-close:hover {
  color: var(--color-text);
}

.modal h3 {
  font-size: var(--fs-h3);
  margin-bottom: var(--space-xs);
}

.modal .modal-subtitle {
  color: var(--color-text-muted);
  margin-bottom: var(--space-xl);
  font-size: var(--fs-body);
}

/* ---- Form ---- */
.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xs);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: var(--fs-body);
  transition: border-color var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
  outline: none;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-glow);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-muted);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group select {
  cursor: pointer;
}

.form-group .error-msg {
  font-size: var(--fs-caption);
  color: #e74c3c;
  margin-top: var(--space-2xs);
  display: none;
}

.form-group.error input,
.form-group.error textarea,
.form-group.error select {
  border-color: #e74c3c;
}

.form-group.error .error-msg {
  display: block;
}

.form-submit {
  margin-top: var(--space-lg);
}

.form-success {
  text-align: center;
  padding: var(--space-2xl) 0;
  display: none;
}

.form-success.show {
  display: block;
}

.form-success .checkmark {
  font-size: 3rem;
  margin-bottom: var(--space-md);
  color: var(--color-accent);
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-3xl);
}

.footer-brand .nav-logo {
  margin-bottom: var(--space-md);
}

.footer-brand p {
  color: var(--color-text-muted);
  font-size: var(--fs-small);
  max-width: 300px;
  line-height: var(--lh-loose);
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: var(--fs-caption);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ls-widest);
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-col a {
  color: var(--color-text-muted);
  font-size: var(--fs-small);
  transition: color var(--duration-fast) var(--ease-out);
}

.footer-col a:hover {
  color: var(--color-accent);
}

.footer-social {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  transition: all var(--duration-fast) var(--ease-out);
}

.footer-social a:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: var(--color-accent-glow);
}

.footer-social svg {
  width: 18px;
  height: 18px;
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-bottom p {
  font-size: var(--fs-caption);
  color: var(--color-text-muted);
  margin: 0;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ============ HERO SHARED ============ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: clamp(120px, 15vh, 160px); /* Offset for the fixed nav header */
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.6) 60%,
    rgba(10, 10, 10, 1) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 var(--container-padding);
}

.hero-content h1 {
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  margin-bottom: var(--space-md);
}

.hero-content p {
  font-size: var(--fs-body-lg);
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto var(--space-xl);
}

.scroll-indicator {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  color: var(--color-text-muted);
  font-size: var(--fs-caption);
  text-transform: uppercase;
  letter-spacing: var(--ls-widest);
}

.scroll-indicator .scroll-line {
  width: 1px;
  height: 40px;
  position: relative;
  overflow: hidden;
  background: var(--color-border);
}

.scroll-indicator .scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-accent);
  animation: scrollIndicator 2s ease-in-out infinite;
}

/* ============ PAGE HERO (sub-pages) ============ */
.page-hero {
  position: relative;
  height: 60vh;
  min-height: 400px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  overflow: hidden;
  padding-bottom: var(--space-3xl);
}

.page-hero .hero-content {
  text-align: left;
  max-width: none;
}

.page-hero h1 {
  font-size: var(--fs-h1);
}
