/* ==========================================================================
   Daisy & Her Boyfriends — Stylesheet
   1. Tokens   2. Base   3. Background   4. Header   5. Buttons & Glass
   6. Hero (Home)   7. Page layout   8. Band   9. Gallery   10. Events
   11. Booking   12. Footer   13. Legal   14. Motion
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --bordeaux: #3E0610;
  --orange:   #D4581A;
  --flame:    #F0673F;
  --night:    #140709;
  --cream:    #F7EEE4;

  --cream-60: rgba(247, 238, 228, .6);
  --cream-40: rgba(247, 238, 228, .4);
  --line:     rgba(247, 238, 228, .16);
  --glass:    rgba(247, 238, 228, .07);
  --glass-hi: rgba(247, 238, 228, .12);

  --f-display: "Syne", system-ui, sans-serif;
  --f-serif:   "Instrument Serif", Georgia, serif;
  --f-sans:    "Instrument Sans", system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 84px;
  --radius: 28px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--night);
  color: var(--cream);
  font: 400 17px/1.6 var(--f-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
main { flex: 1; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--flame); outline-offset: 3px; }
::selection { background: var(--flame); color: var(--night); }

.display {
  font-family: var(--f-display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: .9;
  letter-spacing: -.02em;
}
.display em,
.serif {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--flame);
}
.display em { display: block; font-size: 1.08em; line-height: 1; }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cream-60);
}

/* 3. Background (sub pages) -------------------------------------------------- */
.bg {
  position: fixed;
  inset: -8%;
  z-index: -2;
  background: var(--bordeaux) url("../img/bg.jpg") center / cover no-repeat;
  animation: drift 38s ease-in-out infinite alternate;
}
.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 50% 0%, transparent 30%, rgba(20, 7, 9, .55)),
    linear-gradient(180deg, rgba(20, 7, 9, .25), rgba(20, 7, 9, .7));
}
@keyframes drift {
  0%   { transform: scale(1)    translate3d(0, 0, 0); }
  100% { transform: scale(1.12) translate3d(-3%, 2%, 0); }
}

/* 4. Header ---------------------------------------------------------------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 var(--gutter);
  transition: background .4s var(--ease), backdrop-filter .4s var(--ease);
}
.header.is-scrolled {
  background: rgba(20, 7, 9, .45);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.nav { display: flex; gap: 8px; }
.nav a {
  padding: 9px 15px;
  border: 1px solid var(--cream-40);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: background .25s, color .25s, border-color .25s;
}
.nav a:hover { border-color: var(--cream); }
.nav a[aria-current="page"] { background: var(--cream); color: var(--night); border-color: var(--cream); }

.logo { display: flex; align-items: center; line-height: 0; }
.logo img { height: 48px; width: auto; max-width: none; display: block; }
.home .logo { visibility: hidden; pointer-events: none; }

.icons { display: flex; justify-content: flex-end; gap: 8px; }
.icon-btn {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 1px solid var(--cream-40);
  border-radius: 50%;
  transition: background .25s, color .25s, border-color .25s;
}
.icon-btn:hover { background: var(--cream); color: var(--night); border-color: var(--cream); }
.icon-btn svg { width: 18px; height: 18px; }

.burger { display: none; }
.burger span { display: block; width: 18px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease); }
.burger span + span { margin-top: 5px; }
.menu-open .burger span:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-open .burger span:last-child  { transform: translateY(-3.25px) rotate(-45deg); }

@media (max-width: 1024px) {
  :root { --header-h: 72px; }
  .burger { display: grid; place-content: center; }
  .icons .hide-mobile { display: none; }
  .logo img { height: 40px; }

  .nav {
    position: absolute;
    top: calc(var(--header-h) - 4px);
    left: var(--gutter);
    right: var(--gutter);
    flex-direction: column;
    gap: 4px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(20, 7, 9, .72);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  }
  .menu-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav a { border: 0; padding: 14px 16px; font-size: 14px; border-radius: 14px; }
}

/* 5. Buttons & Glass ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--night);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: transform .25s var(--ease), background .25s, color .25s;
}
.btn:hover { transform: translateY(-2px); background: var(--flame); color: var(--night); }
.btn--ghost { background: transparent; color: var(--cream); border: 1px solid var(--cream-40); }
.btn--ghost:hover { background: var(--cream); color: var(--night); }
.btn[disabled] { opacity: .35; pointer-events: none; }

.glass {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  backdrop-filter: blur(24px) saturate(140%);
}

/* 6. Hero (Home) --------------------------------------------------------------- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 520px;
  overflow: hidden;
  background: var(--bordeaux) url("../img/bg.jpg") center / cover;
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 7, 9, .45) 0%, transparent 22%, transparent 60%, rgba(20, 7, 9, .75) 100%);
  pointer-events: none;
}
.hero__content {
  position: absolute;
  z-index: 1;
  right: var(--gutter);
  bottom: clamp(28px, 6vh, 64px);
  display: flex;
  justify-content: flex-end;
}

/* 7. Page layout ------------------------------------------------------------- */
.page {
  padding: calc(var(--header-h) + clamp(32px, 7vh, 80px)) var(--gutter) clamp(56px, 10vh, 120px);
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
}
.page-head { margin-bottom: clamp(32px, 6vh, 64px); }
.page-head .eyebrow { margin-bottom: 18px; }
.page-title { font-size: clamp(2.8rem, 8vw, 7rem); }
.section { margin-top: clamp(72px, 12vh, 140px); }
.section-title { font-size: clamp(2rem, 5vw, 3.8rem); margin-bottom: 28px; }

/* 8. Band — video + tracklist --------------------------------------------------- */
.player {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 20px;
  align-items: stretch;
}
.player__frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  background: var(--night);
  border: 1px solid var(--line);
}
.player__frame video { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }
.placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 20px;
  font: italic 400 22px/1.2 var(--f-serif);
  color: var(--cream-40);
  background: radial-gradient(70% 60% at 50% 40%, rgba(240, 103, 63, .28), transparent 70%), var(--bordeaux);
}

.tracks {
  display: flex;
  flex-direction: column;
  padding: 14px;
  max-height: 100%;
  overflow-y: auto;
}
.tracks__head { padding: 10px 12px 14px; }
.track {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 12px;
  border-radius: 16px;
  text-align: left;
  transition: background .2s;
}
.track:hover { background: var(--glass-hi); }
.track__no { font: 800 13px var(--f-display); color: var(--cream-40); }
.track__title { display: block; font-weight: 600; line-height: 1.25; }
.track__artist { display: block; font: italic 16px var(--f-serif); color: var(--cream-60); }
.track__time { font-size: 13px; color: var(--cream-60); font-variant-numeric: tabular-nums; }
.track.is-active { background: var(--flame); color: var(--night); }
.track.is-active .track__no,
.track.is-active .track__artist,
.track.is-active .track__time { color: var(--night); }

@media (max-width: 960px) {
  .player { grid-template-columns: 1fr; }
  .tracks { max-height: none; }
}

/* 9. Gallery — 3D coverflow ------------------------------------------------------ */
.gallery { position: relative; margin: 0 calc(var(--gutter) * -1); }
.gallery__track {
  --item: clamp(220px, 26vw, 400px);
  --pad: max(24px, calc(50% - var(--item) / 2));
  display: flex;
  gap: clamp(8px, 1.5vw, 20px);
  overflow-x: auto;
  scroll-snap-type: none;
  padding: 40px 0;
  perspective: 1400px;
  scrollbar-width: none;
  cursor: grab;
}
.gallery__track::before,
.gallery__track::after {
  content: "";
  flex: 0 0 var(--pad);
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__track.is-dragging { cursor: grabbing; }
.gallery__item {
  --d: 0;
  --a: 0;
  position: relative;
  flex: 0 0 var(--item);
  aspect-ratio: 2 / 3;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  transform: rotateY(calc(var(--d) * -22deg)) scale(calc(1 - var(--a) * .12));
  opacity: calc(1 - var(--a) * .3);
  filter: saturate(calc(1 - min(var(--a), 1) * .4));
  transition: none;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6);
  will-change: transform;
}
.gallery__item img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; pointer-events: none; user-select: none; }
.gallery__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 8px;
}
.gallery__count { font: 800 14px var(--f-display); letter-spacing: .1em; min-width: 70px; text-align: center; }
.gallery__count span { color: var(--cream-40); }

.lightbox {
  width: 100vw; height: 100svh;
  max-width: none; max-height: none;
  margin: 0; padding: 0;
  border: 0;
  background: rgba(20, 7, 9, .92);
  color: var(--cream);
}
.lightbox::backdrop { background: transparent; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-height: 86svh; max-width: 92vw; border-radius: 20px; object-fit: contain; }
.lightbox .icon-btn { position: absolute; }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__prev  { left: 20px; top: calc(50% - 21px); }
.lightbox__next  { right: 20px; top: calc(50% - 21px); }

/* Missing media: hide broken images so the placeholder shows */
img.is-missing { opacity: 0; }

/* 10. Events — split layout ----------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 5vw, 80px);
  padding-top: calc(var(--header-h) + 24px);
  padding-inline: var(--gutter);
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
}
.split__media {
  position: sticky;
  align-self: start;
  top: calc(var(--header-h) + 24px);
  height: calc(100svh - var(--header-h) - 48px);
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
}
.split__media img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.split__content { padding: clamp(16px, 5vh, 56px) 0 clamp(56px, 10vh, 120px); }

.lead { font-size: clamp(19px, 1.6vw, 23px); line-height: 1.5; margin-top: 28px; max-width: 38ch; }
.prose p { color: var(--cream-60); max-width: 58ch; }
.prose p + p { margin-top: 1em; }
.block { margin-top: clamp(48px, 8vh, 80px); }
.block h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 18px; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 40px; }
.stat {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-height: 168px;
  padding: 24px 16px 20px;
  text-align: center;
  overflow: hidden;
}
.stat__num {
  position: absolute;
  inset: 0 0 40px;
  display: grid;
  place-items: center;
  font: 800 clamp(1.6rem, 2.8vw, 2.4rem)/1 var(--f-display);
  color: var(--flame);
  font-variant-numeric: tabular-nums;
  max-width: 100%;
  padding: 0 8px;
  box-sizing: border-box;
  transform: translateY(10px);
}
.stat__label {
  position: relative;
  z-index: 1;
  display: block;
  font-size: 14px;
  color: var(--cream-60);
  line-height: 1.3;
}

.pills { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.pills--row { margin-top: 8px; }
.pills li { padding: 10px 18px; border: 1px solid var(--cream-40); border-radius: 999px; font-size: 15px; }

.genres { display: flex; flex-wrap: wrap; gap: 0 .35em; font-size: clamp(2.2rem, 5vw, 4.2rem); margin-bottom: 20px; }
.genres em { display: inline; font-size: 1em; }

.lineups { display: grid; gap: 12px; }
.lineup {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 24px;
}
.lineup__size {
  flex: 0 0 4.5rem;
  display: grid;
  place-items: center;
  font: 800 2.4rem/1 var(--f-display);
  color: var(--flame);
  text-align: center;
  letter-spacing: -.02em;
  white-space: nowrap;
}
.lineup__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  text-align: center;
}
.lineup h3 { font-size: 18px; }
.lineup p { color: var(--cream-60); font-size: 16px; margin-top: 4px; }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 0; }
  .split__media { position: relative; top: 0; height: 62svh; min-height: 380px; }
  .split__content { padding-top: 40px; }
}
@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr; }
}

/* 11. Booking — stepper form ---------------------------------------------------- */
.book {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.book__intro p { color: var(--cream-60); margin-top: 24px; max-width: 42ch; }
.book__steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 10px; counter-reset: s; }
.book__steps li { counter-increment: s; display: flex; gap: 14px; align-items: center; color: var(--cream-60); transition: color .3s; }
.book__steps li::before {
  content: counter(s, decimal-leading-zero);
  font: 800 12px var(--f-display);
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: background .3s, color .3s, border-color .3s;
}
.book__steps li.is-done { color: var(--cream); }
.book__steps li.is-done::before { background: var(--flame); border-color: var(--flame); color: var(--night); }

.form { padding: clamp(24px, 4vw, 48px); min-height: 440px; display: flex; flex-direction: column; }
.form__progress { height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; margin-bottom: 36px; }
.form__progress span { display: block; height: 100%; width: 0; background: var(--flame); transition: width .5s var(--ease); }
.step { display: none; flex: 1; flex-direction: column; }
.step.is-active { display: flex; animation: stepIn .5s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateY(14px); } }
.step__label { font: italic 400 clamp(1.8rem, 3.2vw, 2.6rem)/1.1 var(--f-serif); margin-bottom: 28px; display: block; }
.step__label small { display: block; font: 600 12px var(--f-sans); letter-spacing: .18em; text-transform: uppercase; color: var(--cream-60); margin-bottom: 12px; font-style: normal; }

.field {
  width: 100%;
  padding: 16px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--cream-40);
  color: var(--cream);
  font: 400 22px var(--f-sans);
  border-radius: 0;
  color-scheme: dark;
  transition: border-color .25s;
}
.field:focus { outline: none; border-color: var(--flame); }
.field::placeholder { color: var(--cream-40); }
.field-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 20px; }
.field-row label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--cream-60); }

.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: block;
  padding: 13px 22px;
  border: 1px solid var(--cream-40);
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.choice span:hover { border-color: var(--cream); }
.choice input:checked + span { background: var(--cream); color: var(--night); border-color: var(--cream); }
.choice input:focus-visible + span { outline: 2px solid var(--flame); outline-offset: 3px; }

.summary { display: grid; gap: 0; margin: 0; }
.summary div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.summary dt { color: var(--cream-60); font-size: 14px; }
.summary dd { margin: 0; font-weight: 600; }
.form__note { margin-top: 18px; font-size: 14px; color: var(--cream-60); }

.form__nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding-top: 36px; }
.form__error { color: var(--flame); font-size: 14px; min-height: 1.4em; margin-top: 12px; }

@media (max-width: 900px) {
  .book { grid-template-columns: 1fr; }
  .book__steps { display: none; }
}
@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .field-row > :first-child { grid-column: 1 / -1; }
  .summary div { grid-template-columns: 1fr; gap: 2px; }
}

/* 12. Footer ---------------------------------------------------------------- */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 28px var(--gutter);
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--cream-60);
}
.footer nav { display: flex; gap: 14px; }
.footer a:hover { color: var(--cream); }
@media (max-width: 560px) { .footer { flex-direction: column-reverse; } }

/* 13. Legal pages ------------------------------------------------------------- */
.legal { max-width: 760px; }
.legal h2 { font-size: 1.3rem; margin: 2em 0 .6em; }
.legal p { color: var(--cream-60); }

/* 14. Motion ------------------------------------------------------------------ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
