/* =============================================================
   Walshy — Main Stylesheet
   Stack: Cormorant Garamond (display) + DM Sans (body)
   Palette: #0c0b0a bg / #ede8e0 text / #c4a86a accent (warm gold)
============================================================= */

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

:root {
  --bg:           #0c0b0a;
  --bg-2:         #141210;
  --bg-3:         #1e1b18;
  --text:         #ede8e0;
  --text-muted:   rgba(237,232,224,0.50);
  --text-dim:     rgba(237,232,224,0.16);
  --accent:       #c4a86a;
  --accent-dim:   rgba(196,168,106,0.12);
  --border:       rgba(237,232,224,0.08);
  --border-hover: rgba(237,232,224,0.22);
  --font-disp:    'Cormorant Garamond', serif;
  --font-body:    'DM Sans', sans-serif;
  --ease-out:     cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-in-out:  cubic-bezier(0.76, 0, 0.24, 1);
}

html { scroll-behavior: auto; background: var(--bg); }

body {
  font-family: var(--font-body);
  background: transparent;
  color: var(--text);
  overflow-x: hidden;
  max-width: 100vw;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* =============================================================
   GRAIN
============================================================= */

.grain {
  position: fixed;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.036;
  animation: grain-anim 0.45s steps(3) infinite;
  pointer-events: none;
  z-index: 9997;
}

@keyframes grain-anim {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-3%, -5%); }
  40%  { transform: translate(4%, 2%); }
  60%  { transform: translate(-2%, 5%); }
  80%  { transform: translate(5%, -3%); }
  100% { transform: translate(0, 0); }
}

/* =============================================================
   VIDEO BACKGROUND
============================================================= */

.video-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.video-bg video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.video-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(12,11,10,0.50) 0%,
    rgba(12,11,10,0.55) 50%,
    rgba(12,11,10,0.72) 100%
  );
}

/* z-index layering */
.grain            { z-index: 9997; }
.nav-menu-mobile  { z-index: 9999; }
.site-nav         { z-index: 9000; }
.hero,
.content-section,
.site-footer      { position: relative; z-index: 1; }
.email-popup      { z-index: 9990; }

/* =============================================================
   BUTTONS
============================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 0;
  transition: all 0.3s var(--ease-out);
  cursor: pointer;
}

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

.btn-primary:hover {
  background: transparent;
  color: var(--text);
}

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

.btn-outline:hover {
  border-color: var(--text);
}

/* =============================================================
   NAV
============================================================= */

.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9000;
  padding: 32px 0;
  transition: padding 0.4s var(--ease-out), background 0.4s var(--ease-out), border-color 0.4s;
  border-bottom: 1px solid transparent;
}

.site-nav.scrolled {
  padding: 20px 0;
  background: rgba(12,11,10,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-logo {
  display: flex;
  align-items: center;
  transition: opacity 0.3s;
}

.nav-logo img {
  height: 36px;
  width: auto;
  object-fit: contain;
  display: block;
}

.nav-logo:hover { opacity: 0.65; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 44px;
}

.nav-links li a {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.3s;
}

.nav-links li a:hover { color: var(--text); }

.nav-contact {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.3s;
}

.nav-contact:hover { color: var(--text); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  padding: 10px 22px;
  border: 1px solid var(--border-hover);
  transition: all 0.3s var(--ease-out);
  background: none;
  cursor: pointer;
}

.nav-cta:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.nav-cta--secondary {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border-hover);
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.nav-cta--secondary:hover {
  background: transparent;
  color: var(--text);
  border-color: rgba(237,232,224,0.45);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--text);
  transition: all 0.3s var(--ease-out);
  transform-origin: center;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* =============================================================
   MOBILE NAV MENU
============================================================= */

.nav-menu-mobile {
  position: fixed;
  inset: 0;
  background: rgba(12,11,10,0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
  z-index: 9999;
}

.nav-menu-mobile.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.nav-menu-mobile a,
.nav-menu-mobile button {
  font-family: var(--font-disp);
  font-size: 2.8rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.3s;
  font-style: italic;
}

.nav-menu-mobile a:hover,
.nav-menu-mobile button:hover { opacity: 0.5; }

.mobile-menu-close {
  position: absolute;
  top: 28px;
  right: 28px;
  font-size: 1.1rem;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  line-height: 1;
  font-family: var(--font-body);
  transition: color 0.3s;
}

.mobile-menu-close:hover { color: var(--text); opacity: 1; }

/* =============================================================
   HERO
============================================================= */

.hero {
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 120px 56px 72px;
  text-align: left;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  max-width: 700px;
  width: 100%;
}

.hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0;
}

.hero-title {
  font-family: var(--font-disp);
  font-size: clamp(5.5rem, 16vw, 14.5rem);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  opacity: 0;
}

.hero-tagline {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  opacity: 0;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  margin-top: 8px;
}

/* Scroll hint line */
.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.scroll-line {
  display: block;
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--text-muted));
  animation: scroll-line-anim 2s ease-in-out infinite;
}

@keyframes scroll-line-anim {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 0; }
  40%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  60%  { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* =============================================================
   CONTENT SECTIONS (shared)
============================================================= */

.content-section {
  padding: 120px 0;
  border-top: 1px solid var(--border);
}

.content-section--alt {
  background: rgba(20,18,16,0.55);
}

.section-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 56px;
}

.section-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.section-heading {
  font-family: var(--font-disp);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--text);
  margin-bottom: 56px;
  line-height: 1;
}

/* =============================================================
   LISTEN / PLATFORM LINKS
============================================================= */

.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
  border: 1px solid var(--border);
  margin-bottom: 56px;
}

.platform-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 32px;
  border-right: 1px solid var(--border);
  transition: background 0.3s var(--ease-out);
}

.platform-link:last-child { border-right: none; }

.platform-link:hover {
  background: rgba(237,232,224,0.04);
}

.platform-name {
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.3s;
}

.platform-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  opacity: 0.45;
  filter: brightness(10);
  transition: opacity 0.3s;
  flex-shrink: 0;
}

.platform-link:hover .platform-icon { opacity: 1; }

.platform-link:hover .platform-name { color: var(--text); }

/* platform-arrow removed — replaced by icons */

.spotify-embed {
  border: 1px solid var(--border);
  overflow: hidden;
}

.spotify-embed iframe {
  display: block;
}

/* =============================================================
   VIDEOS
============================================================= */

.video-cta-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
}

.video-cta-text {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  line-height: 1.6;
  max-width: 480px;
}

/* =============================================================
   SHOWS
============================================================= */

.shows-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border);
  margin-bottom: 48px;
}

.show-row {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

/* Event row with poster */
.show-row--event {
  grid-template-columns: 72px 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 32px 0;
}

.show-poster {
  width: 72px;
  flex-shrink: 0;
}

.show-poster img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  display: block;
}

.show-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.show-support {
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

.show-venue--bright { color: var(--text) !important; }
.show-support--bright { color: rgba(237,232,224,0.80) !important; }

.show-action { display: flex; align-items: center; }

.show-date {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.show-venue {
  font-size: 1rem;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.show-location { display: flex; align-items: center; }

.shows-note {
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.shows-note p {
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  line-height: 1.8;
}

.shows-note--bright {
  color: rgba(237,232,224,0.80) !important;
}

/* =============================================================
   SHOP
============================================================= */

.shop-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
}

.shop-text {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  line-height: 1.6;
  max-width: 480px;
}

/* =============================================================
   FOOTER
============================================================= */

.site-footer {
  padding: 80px 0 56px;
  border-top: 1px solid var(--border);
  background: rgba(12,11,10,0.80);
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.footer-wordmark {
  font-family: var(--font-disp);
  font-size: 2.8rem;
  font-weight: 300;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--text);
}

.footer-location {
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  margin: 8px 0;
}

.footer-social {
  display: inline-flex;
  align-items: center;
  opacity: 0.45;
  transition: opacity 0.3s;
}

.footer-social img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: brightness(10);
  display: block;
}

.footer-social:hover { opacity: 1; }

.footer-email {
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  transition: color 0.3s;
  margin-top: 4px;
}

.footer-email:hover { color: var(--text); }

.footer-copy {
  font-size: 0.68rem;
  font-weight: 300;
  letter-spacing: 0.10em;
  color: var(--text-dim);
  margin-top: 16px;
}

/* =============================================================
   EMAIL POPUP
============================================================= */

.email-popup {
  position: fixed;
  inset: 0;
  z-index: 9990;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s var(--ease-out);
}

.email-popup.open {
  pointer-events: all;
  opacity: 1;
}

.email-popup-overlay {
  position: absolute;
  inset: 0;
  background: rgba(12,11,10,0.80);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
}

.email-popup-card {
  position: relative;
  background: var(--bg-3);
  border: 1px solid var(--border-hover);
  padding: 56px 48px;
  max-width: 520px;
  width: 100%;
  transform: translateY(20px);
  transition: transform 0.4s var(--ease-out);
}

.email-popup.open .email-popup-card {
  transform: translateY(0);
}

.email-popup-close {
  position: absolute;
  top: 20px; right: 20px;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  line-height: 1;
  transition: color 0.3s;
}

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

.email-popup-eyebrow {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.email-popup-title {
  font-family: var(--font-disp);
  font-size: 2.6rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.1;
}

.email-popup-sub {
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 32px;
  letter-spacing: 0.02em;
}

.email-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.email-form__input {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-hover);
  outline: none;
  padding: 16px 20px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--text);
  letter-spacing: 0.04em;
  transition: border-color 0.3s;
  width: 100%;
}

.email-form__input:focus {
  border-color: rgba(237,232,224,0.45);
}

.email-form__input::placeholder { color: var(--text-dim); }

.email-form__btn {
  background: var(--text);
  color: var(--bg);
  border: none;
  padding: 18px 28px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  width: 100%;
  transition: background 0.3s, color 0.3s;
  margin-top: 4px;
}

.email-form__btn:hover {
  background: var(--accent);
  color: var(--bg);
}

.email-form__btn:disabled {
  background: var(--text-dim);
  color: var(--text-muted);
  cursor: default;
}

/* =============================================================
   REVEAL ANIMATIONS (initial state — GSAP will animate these)
============================================================= */

.reveal,
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(32px);
}

/* =============================================================
   CONTACT POPUP
============================================================= */

.contact-popup {
  position: fixed;
  inset: 0;
  z-index: 9990;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s var(--ease-out);
}

.contact-popup.open {
  pointer-events: all;
  opacity: 1;
}

.contact-popup-overlay {
  position: absolute;
  inset: 0;
  background: rgba(12,11,10,0.80);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
}

.contact-popup-card {
  position: relative;
  background: var(--bg-3);
  border: 1px solid var(--border-hover);
  padding: 56px 48px 48px;
  max-width: 460px;
  width: 100%;
  transform: translateY(20px);
  transition: transform 0.4s var(--ease-out);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-popup.open .contact-popup-card {
  transform: translateY(0);
}

.contact-popup-close {
  position: absolute;
  top: 20px; right: 20px;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  line-height: 1;
  transition: color 0.3s;
}

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

.contact-email-link {
  display: inline-block;
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text);
  border-bottom: 1px solid var(--border-hover);
  padding-bottom: 2px;
  transition: border-color 0.3s, color 0.3s;
  margin-top: 8px;
}

.contact-email-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* =============================================================
   RESPONSIVE — 375px mobile
============================================================= */

@media (max-width: 900px) {
  .nav-inner { padding: 0 28px; }
  .nav-links, .nav-actions { display: none; }
  .nav-toggle { display: flex; }

  .hero { padding: 100px 28px 56px; }
  .hero-ctas { flex-direction: column; width: 100%; }
  .hero-ctas .btn { width: 100%; justify-content: center; }

  .content-section { padding: 80px 0; }
  .section-inner { padding: 0 28px; }

  .platform-grid { grid-template-columns: 1fr 1fr; }
  .platform-link { border-right: none; border-bottom: 1px solid var(--border); }
  .platform-link:nth-child(odd) { border-right: 1px solid var(--border); }
  .platform-link:last-child { border-bottom: none; }

  .show-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .footer-inner { padding: 0 28px; }
  .footer-socials { gap: 20px; }

  .email-popup-card { padding: 40px 28px; }
  .email-popup-title { font-size: 2rem; }
  .email-form { flex-direction: column; }
  .email-form button { width: 100%; }
}

@media (max-width: 480px) {
  .platform-grid { grid-template-columns: 1fr; }
  .platform-link { border-right: none !important; border-bottom: 1px solid var(--border); }
  .platform-link:last-child { border-bottom: none; }

  .hero-scroll-hint { display: none; }
}
