/* ==========================================================================
   Beekay — main stylesheet
   ========================================================================== */

@font-face {
  font-family: "Miedinger";
  src: url("../fonts/miedinger-bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-variable.ttf") format("truetype-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-black: #0a0a0a;
  --color-white: #ffffff;
  --color-off-white: #f5f4f2;
  --color-accent: #e07352; /* coral/terracotta title-reveal + hover accent */
  --color-grey: #8a8a8a;
  --sidebar-w: 88px;
  --sidebar-w-open: 320px;
  --font-display: "Miedinger", "Arial Narrow", Arial, sans-serif;
  --font-body: "Montserrat", -apple-system, Segoe UI, sans-serif;
  --ease: cubic-bezier(0.65, 0, 0.35, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--color-white);
  color: var(--color-black);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}

body.is-ready { opacity: 1; }

/* If JS never runs, content must still be visible (see noscript in header.php). */

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

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

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Sidebar (persistent, all pages)
   -------------------------------------------------------------------------- */

.sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w);
  background: var(--color-black);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
  transition: width 0.4s var(--ease);
}

.sidebar__logo img { width: 34px; height: auto; }

.sidebar__logo { display: block; }

.menu-toggle {
  background: none;
  border: none;
  color: var(--color-white);
  cursor: pointer;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-toggle svg { width: 24px; height: 24px; }
.menu-toggle .icon-close { display: none; }

/* Expandable nav overlay */
.nav-overlay {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w-open);
  max-width: 86vw;
  background: var(--color-black);
  z-index: 99;
  transform: translateX(calc(-1 * var(--sidebar-w-open)));
  transition: transform 0.45s var(--ease);
  padding: 28px 0 28px calc(var(--sidebar-w) + 24px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

body.nav-open .nav-overlay { transform: translateX(0); }
body.nav-open .menu-toggle .icon-open { display: none; }
body.nav-open .menu-toggle .icon-close { display: flex; }
body.nav-open { overflow: hidden; }

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.nav-list a {
  color: var(--color-white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: color 0.25s var(--ease);
}

.nav-list a:hover,
.nav-list a:focus-visible,
.nav-list a[aria-current="page"] {
  color: var(--color-accent);
}

.nav-list .nav-icon {
  width: 20px; height: 20px;
  flex: none;
}

.nav-scrim {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
  z-index: 98;
}

body.nav-open .nav-scrim { opacity: 1; pointer-events: auto; }

/* --------------------------------------------------------------------------
   Inner page header (breadcrumb + big title) — About/Music/Tours/Blog
   -------------------------------------------------------------------------- */

.page-shell { margin-left: var(--sidebar-w); min-height: 100vh; }

.page-header {
  text-align: center;
  padding: 72px 24px 40px;
}

.page-header__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(48px, 9vw, 96px);
  letter-spacing: 0.01em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.breadcrumb {
  font-size: 14px;
  color: var(--color-grey);
}

.breadcrumb a { color: var(--color-grey); }
.breadcrumb a:hover { color: var(--color-black); }
.breadcrumb .sep { margin: 0 8px; }
.breadcrumb .current { color: var(--color-black); }

/* --------------------------------------------------------------------------
   Homepage — stationary video, scroll-linked foreground track
   The video is a fixed background layer that fills the sticky viewport and
   never moves. A separate foreground track (Tours/Blog/Music/About/
   Bookings) sits above it and is the only thing JS translates, in lockstep
   with normal vertical scroll (see assets/js/main.js). At rest, the track
   is offset so only a --home-peek-w sliver of the first panel shows at the
   right edge, as if about to slide in.
   -------------------------------------------------------------------------- */

:root {
  --home-peek-w: clamp(56px, 7vw, 110px);
}

.home-scroll-outer {
  position: relative;
  margin-left: var(--sidebar-w);
  /* JS sets an inline height of 100vh + total horizontal travel. */
}

.home-scroll-viewport {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.home-video-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #111;
}

.home-scroll-track {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  display: flex;
  z-index: 1;
  will-change: transform;
}

.hpanel {
  position: relative;
  flex: none;
  height: 100%;
  overflow: hidden;
  color: var(--color-white);
}

.hpanel--wide  { width: clamp(300px, 34vw, 560px); }
.hpanel--book  { width: clamp(260px, 26vw, 420px); background: var(--color-black); }

.hpanel__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hpanel__scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 55% at 50% 52%, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.12) 70%),
    linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.05) 30%);
  z-index: 1;
}

/* Vertical "Scroll" label — lives on the first foreground panel (Tours),
   positioned near its own left edge, since that's the only part visible
   while the panel is still peeking in from the right at rest. */
.hpanel__scroll-cue {
  position: absolute;
  top: 50%;
  left: calc(var(--home-peek-w) * 0.38);
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  z-index: 2;
  opacity: 0.85;
  white-space: nowrap;
}

.hpanel__logo {
  position: absolute;
  z-index: 1;
  left: 40px;
  bottom: 40px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.05em;
  color: var(--color-white);
}

/* Centered title + subtitle overlay group (Tours/Blog/Music/About panels) */
.hpanel__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  padding: 24px;
  pointer-events: none;
}

.hpanel__title {
  margin: 0;
  line-height: 1;
}

.hpanel__title-link {
  position: relative;
  display: inline-block;
  pointer-events: auto;
  color: var(--color-white);
}

.hpanel__title-clip {
  position: relative;
  display: inline-block;
  overflow: hidden;
  padding: 0 3px;
}

.hpanel__title-base,
.hpanel__title-orange {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 4.6vw, 60px);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  white-space: nowrap;
}

.hpanel__title-base { color: var(--color-white); }

.hpanel__title-orange {
  position: absolute;
  inset: 0;
  color: var(--color-accent);
  clip-path: inset(0 100% 0 0);
}

.hpanel__title-wipe {
  position: absolute;
  inset: 0;
  background: var(--color-white);
  transform: translateX(-100%);
  pointer-events: none;
}

.hpanel__title-link:hover .hpanel__title-orange,
.hpanel__title-link:focus-visible .hpanel__title-orange {
  animation: title-reveal-orange 0.6s var(--ease) forwards;
}

.hpanel__title-link:hover .hpanel__title-wipe,
.hpanel__title-link:focus-visible .hpanel__title-wipe {
  animation: title-wipe-sweep 0.6s var(--ease) forwards;
}

@keyframes title-wipe-sweep {
  0%   { transform: translateX(-100%); }
  50%  { transform: translateX(0%); }
  100% { transform: translateX(100%); }
}

@keyframes title-reveal-orange {
  0%   { clip-path: inset(0 100% 0 0); }
  50%  { clip-path: inset(0 50% 0 0); }
  100% { clip-path: inset(0 0% 0 0); }
}

.hpanel__subtitle {
  margin: 0;
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-white);
}

.hpanel--link { cursor: pointer; }

/* Bookings / contact panel */
.hpanel--book .hpanel__body {
  position: relative;
  z-index: 2;
  padding: 48px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.book-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.book-content { position: relative; z-index: 2; }

.book-content h3 {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.15em;
  margin: 0 0 14px;
}

.book-content p { margin: 4px 0; font-size: 15px; }
.book-content a:hover { color: var(--color-accent); }

.buy-tickets {
  align-self: flex-end;
  border: 1px solid var(--color-white);
  padding: 14px 26px;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
  z-index: 2;
}

.buy-tickets[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
}

.buy-tickets:not([aria-disabled="true"]):hover {
  background: var(--color-white);
  color: var(--color-black);
}

/* --------------------------------------------------------------------------
   About page
   -------------------------------------------------------------------------- */

.about-hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  color: var(--color-white);
  overflow: hidden;
}

.about-hero__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
}

.about-hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0.35) 55%, rgba(0,0,0,0.15));
}

.about-hero__body {
  position: relative;
  z-index: 2;
  padding: 60px clamp(24px, 6vw, 96px);
  max-width: 900px;
}

.about-hero__eyebrow {
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-grey);
}

.about-hero__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(44px, 7vw, 84px);
  text-transform: uppercase;
  margin: 8px 0 24px;
  line-height: 1.02;
}

.about-hero__body p {
  font-size: 16px;
  line-height: 1.7;
  max-width: 760px;
  margin: 0 0 18px;
  color: rgba(255,255,255,0.92);
}

.about-contact {
  padding: 40px clamp(24px, 6vw, 96px);
}

.about-contact a { display: block; font-size: 16px; margin-bottom: 6px; }
.about-contact a:hover { color: var(--color-accent); }

.about-social h2 {
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.about-social ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 28px; flex-wrap: wrap;
}

.about-social a { font-weight: 600; }
.about-social a:hover { color: var(--color-accent); }

.about-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-top: 48px;
}

.about-gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3/4; }

/* --------------------------------------------------------------------------
   Music grid + detail
   -------------------------------------------------------------------------- */

.music-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 24px;
  padding: 0 clamp(24px, 6vw, 64px) 96px;
  max-width: 1400px;
  margin: 0 auto;
}

.release-card { display: block; }

.release-card__cover {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  margin-bottom: 14px;
  background: var(--color-off-white);
  transition: transform 0.4s var(--ease);
}

.release-card:hover .release-card__cover { transform: scale(1.02); }

.release-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  text-transform: uppercase;
  margin: 0 0 2px;
}

.release-card:hover .release-card__title { color: var(--color-accent); }

.release-card__artist { font-size: 13px; color: var(--color-grey); margin: 0; }

.release-detail {
  display: grid;
  grid-template-columns: minmax(280px, 460px) 1fr;
  gap: 64px;
  padding: 0 clamp(24px, 6vw, 64px) 96px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}

.release-detail__cover { width: 100%; }

.release-detail__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4vw, 48px);
  text-transform: uppercase;
  margin: 0 0 24px;
}

.release-detail dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
  margin: 0 0 28px;
  font-size: 15px;
}

.release-detail dt { color: var(--color-grey); }
.release-detail dd { margin: 0; font-weight: 600; }

.share-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

.share-row .share-label {
  font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
  width: 100%; margin-bottom: 4px; color: var(--color-grey);
}

.share-link {
  border: 1px solid var(--color-black);
  padding: 9px 16px;
  font-size: 13px;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.share-link:hover,
.share-link:focus-visible {
  background: var(--color-black);
  color: var(--color-white);
}

/* Brand-colored hover per platform (Apple Music keeps the default black). */
.share-link[data-brand="youtube"]:hover,
.share-link[data-brand="youtube"]:focus-visible {
  background: #ff0000;
  border-color: #ff0000;
  color: var(--color-white);
}

.share-link[data-brand="spotify"]:hover,
.share-link[data-brand="spotify"]:focus-visible {
  background: #1db954;
  border-color: #1db954;
  color: var(--color-white);
}

.no-links-note { font-size: 14px; color: var(--color-grey); font-style: italic; }

/* --------------------------------------------------------------------------
   Tours
   -------------------------------------------------------------------------- */

.tours-list {
  padding: 0 clamp(24px, 6vw, 64px) 96px;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 320px));
  gap: 32px;
}

.tour-card {
  background: var(--color-off-white);
  padding-bottom: 20px;
}

.tour-card__img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.tour-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  text-transform: uppercase;
  text-align: center;
  margin: 16px 12px 0;
}

.tour-card:hover .tour-card__title { color: var(--color-accent); }

.tour-detail {
  padding: 0 clamp(24px, 6vw, 64px) 96px;
  max-width: 760px;
  margin: 0 auto;
}

.tour-detail__card { background: var(--color-off-white); }
.tour-detail__img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.tour-detail__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  text-align: center;
  text-transform: uppercase;
  margin: 20px 16px;
}

.tour-detail__meta {
  text-align: center;
  color: var(--color-grey);
  font-size: 14px;
  padding-bottom: 20px;
}

.tour-detail__unavailable {
  display: inline-block;
  margin: 0 auto 24px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--color-grey);
  color: var(--color-grey);
  padding: 8px 16px;
}

/* --------------------------------------------------------------------------
   Blog
   -------------------------------------------------------------------------- */

.blog-list {
  padding: 0 clamp(24px, 6vw, 64px) 96px;
  max-width: 900px;
  margin: 0 auto;
}

.blog-empty {
  color: var(--color-grey);
  font-size: 15px;
}

/* --------------------------------------------------------------------------
   Back-to-top
   -------------------------------------------------------------------------- */

.back-to-top {
  position: fixed;
  right: 24px; bottom: 24px;
  width: 44px; height: 44px;
  border-radius: 2px;
  background: var(--color-accent);
  color: var(--color-white);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
  z-index: 50;
}

.back-to-top.is-visible { opacity: 1; pointer-events: auto; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .music-grid { grid-template-columns: repeat(2, 1fr); }
  .release-detail { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 720px) {
  :root { --sidebar-w: 64px; }

  /* One full-width (sidebar-adjusted) panel per screen on mobile. The
     viewport's own width already excludes the sidebar via
     .home-scroll-outer's margin-left, so 100% here — not 100vw — is what
     keeps panels from overshooting under the sidebar. */
  .hpanel--wide,
  .hpanel--book {
    width: 100%;
  }

  .page-header { padding: 56px 20px 28px; }
  .page-header__title { font-size: clamp(36px, 12vw, 56px); }

  .about-gallery { grid-template-columns: repeat(2, 1fr); }
  .about-hero { min-height: 60vh; }

  .nav-overlay { width: 100vw; max-width: 100vw; padding-left: calc(var(--sidebar-w) + 16px); }
}

@media (max-width: 480px) {
  .music-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 14px; }
  .release-card__title { font-size: 15px; }
}
