/* X5 Premiere Nights — shared brand styles (March 2026 BMW Brand Guidelines) */

/* Medium is the universal base face — Light/Regular intentionally not
   loaded, so 300/400 weights resolve to Medium too. Bold is reserved for
   CTAs, labels, and clickables. */
@font-face {
  font-family: "BMW TypeNext";
  src: url("/assets/fonts/BMWTypeNextPro-Medium.woff2") format("woff2");
  font-weight: 300 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "BMW TypeNext";
  src: url("/assets/fonts/BMWTypeNextPro-Bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --bg: #221F1F;
  --bg-raised: #2C2929;
  --blue: #1C69D3;
  --blue-hover: #2658BB;
  --blue-accent: #5895E9;
  --error: #D83336;
  --grey-1: #F6F6F6;
  --grey-2: #CACACA;
  --grey-3: #727171;
  --white: #FFFFFF;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--grey-1);
  font-family: "BMW TypeNext", Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.55;
}

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

h1, h2, h3 {
  font-weight: 500;
  text-transform: uppercase;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--white);
}
h1 { font-size: clamp(2rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.3rem, 3.5vw, 1.9rem); }

a { color: var(--blue-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { width: min(1080px, 92%); margin: 0 auto; }
.wrap-narrow { width: min(680px, 92%); margin: 0 auto; }

/* ---------- buttons: no border-radius anywhere ---------- */
.btn {
  display: inline-block;
  border: 0;
  border-radius: 0;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  padding: 0.95rem 2.4rem;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.btn:hover { text-decoration: none; }
/* white button / black text on dark backgrounds */
.btn-primary { background: var(--white); color: #000; }
.btn-primary:hover { background: var(--grey-2); }
/* blue button / white text on light backgrounds */
.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: var(--blue-hover); }
.btn-ghost {
  background: transparent; color: var(--white);
  border: 1px solid var(--grey-2);
}
.btn-ghost:hover { border-color: var(--white); }
.btn[disabled] { opacity: 0.55; cursor: default; }
.btn-block { display: block; width: 100%; text-align: center; }

/* ---------- forms ---------- */
label {
  display: block;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--grey-2);
  margin: 0 0 0.4rem;
}
input[type="text"], input[type="email"], input[type="tel"], select {
  width: 100%;
  font-family: inherit;
  font-size: 16px; /* iOS zoom guard */
  font-weight: 500;
  color: var(--white);
  background: var(--bg-raised);
  border: 1px solid var(--grey-3);
  border-radius: 0;
  padding: 0.85rem 0.9rem;
  appearance: none;
  -webkit-appearance: none;
}
select {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23CACACA' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.4rem;
}
input:focus, select:focus {
  outline: 2px solid var(--blue-accent);
  outline-offset: 0;
  border-color: var(--blue-accent);
}
input.invalid, select.invalid { border-color: var(--error); }
.field { margin-bottom: 1.15rem; }
.field-error {
  display: none;
  color: var(--error);
  font-size: 0.82rem;
  margin-top: 0.3rem;
}
.field.show-error .field-error { display: block; }
.check-row {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}
.check-row input[type="checkbox"] {
  flex: 0 0 auto;
  width: 20px; height: 20px;
  margin-top: 2px;
  accent-color: var(--blue);
  border-radius: 0;
}
.check-row span { font-size: 0.82rem; color: var(--grey-2); line-height: 1.45; }

/* ---------- hero: headline centered over the video (track-event style) ---------- */
.hero {
  position: relative;
  min-height: 82svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.hero video, .hero .hero-poster {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(34,31,31,0.55) 0%,
    rgba(34,31,31,0.45) 50%,
    rgba(34,31,31,0.70) 100%);
  z-index: 1;
}
.hero-inner {
  position: relative; z-index: 2;
  text-align: center;
  padding: 3.2rem 0;
}
.hero-topbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2;
  display: flex; justify-content: flex-end; align-items: center;
  padding: 1.4rem 0;
}
.hero-topbar .roundel { width: 52px; height: 52px; }
.hero-sub {
  font-weight: 500;
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  color: var(--grey-1);
  margin-top: 0.9rem;
}
.hero-sub strong { font-weight: 500; color: var(--white); }

@media (prefers-reduced-motion: reduce) {
  .hero video { display: none; }
}

/* ---------- sections ---------- */
section { padding: 3.6rem 0; }
.section-dark-raised { background: var(--bg-raised); }
.eyebrow {
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-accent);
  margin-bottom: 0.9rem;
}
.body-copy { color: var(--grey-2); font-size: 1.05rem; }

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.6rem;
  margin-top: 1.8rem;
}
.details-item h3 {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  color: var(--grey-3);
  margin-bottom: 0.45rem;
}
.details-item p { color: var(--grey-1); font-size: 1.05rem; }

/* ---------- footer ---------- */
footer {
  border-top: 1px solid #3A3737;
  padding: 2.6rem 0 3rem;
}
.footer-row {
  display: flex;
  justify-content: center;
  align-items: center;
}
.footer-row .tudm { width: 150px; }
.footer-legal {
  margin-top: 1.6rem;
  color: var(--grey-3);
  font-size: 0.78rem;
  line-height: 1.5;
  text-align: center;
}

/* ---------- utility ---------- */
.status-chip {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
}
.chip-confirmed { background: #1E4B2E; color: #9FE2B5; }
.chip-waitlist { background: #4B3A1E; color: #E2CE9F; }
.chip-walkin { background: #1E3A4B; color: #9FCCE2; }
.hidden { display: none !important; }
