/* =====================================================================
   Underdogs SC · retro race-stripe club poster
   Dark-first (white-on-black lockup), brand-cream light theme.
   Palette from Underdogs SC brand guidelines:
   cream #f8efdd · black #000 · purple #351753 · fuschia #9e2383
   pink #ed1979 · yellow #f9a01b
   ===================================================================== */

/* ─── Tokens ─── */
:root {
  --purple: #351753;
  --fuschia: #9e2383;
  --pink: #ed1979;
  --yellow: #f9a01b;
  --cream: #f8efdd;
  --near-black: #0b0709;

  /* dark theme (default) */
  --bg: #0b0709;
  --bg-band: #140d18;
  --surface: #1a1120;
  --ink: #f8efdd;
  --ink-soft: #d9cdbb;
  --line: rgba(248, 239, 221, 0.16);
  --accent-text: #f9a01b;
  --glow: rgba(53, 23, 83, 0.55);
  --nav-bg: rgba(11, 7, 9, 0.86);
  --input-bg: rgba(248, 239, 221, 0.05);

  --stripes: linear-gradient(
    to bottom,
    var(--purple) 0 25%,
    var(--fuschia) 25% 50%,
    var(--pink) 50% 75%,
    var(--yellow) 75% 100%
  );

  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Archivo", "Helvetica Neue", sans-serif;
  --font-script: "Kaushan Script", cursive;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --z-nav: 50;
  --z-skip: 60;
}

:root[data-theme="light"] {
  --bg: #f8efdd;
  --bg-band: #f1e4c8;
  --surface: #fdf8ec;
  --ink: #17101c;
  --ink-soft: #453a4d;
  --line: rgba(23, 16, 28, 0.18);
  --accent-text: #9e2383;
  --glow: rgba(158, 35, 131, 0.14);
  --nav-bg: rgba(248, 239, 221, 0.88);
  --input-bg: rgba(23, 16, 28, 0.03);
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

::selection { background: var(--pink); color: var(--near-black); }

:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: var(--z-skip);
  background: var(--pink); color: var(--near-black);
  padding: 10px 16px; font-weight: 700; text-decoration: none;
  transform: translateY(-200%); transition: transform 0.2s var(--ease-out);
}
.skip-link:focus { transform: none; }

.container { max-width: 1180px; margin-inline: auto; padding-inline: clamp(20px, 4vw, 40px); }

/* ─── Type ─── */
h1, h2, h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.96;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h2 { font-size: clamp(2.6rem, 5.5vw, 4.25rem); margin-bottom: 0.35em; }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); line-height: 1.05; }
p { max-width: 62ch; text-wrap: pretty; }

.lede { font-size: clamp(1.15rem, 1.8vw, 1.3rem); font-weight: 500; margin-bottom: 1rem; }

/* One script word per headline, like the SC in the logo */
.script-word {
  font-family: var(--font-script);
  font-style: normal;
  font-weight: 400;
  text-transform: none;
  color: var(--pink);
  display: inline-block;
  transform: rotate(-2deg);
  padding-inline: 0.06em 0.12em;
  line-height: 1;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-family: var(--font-display); font-style: italic; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.02em;
  font-size: 1.25rem; line-height: 1;
  padding: 0.9em 1.5em; text-decoration: none;
  border: none; cursor: pointer;
  position: relative; overflow: hidden;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
  will-change: transform;
}
.btn-primary { background: var(--pink); color: var(--near-black); }
.btn-primary::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 0;
  background: var(--stripes);
  transition: height 0.3s var(--ease-out);
}
.btn-primary:hover::after, .btn-primary:focus-visible::after { height: 8px; }
.btn-primary:hover { box-shadow: 0 10px 34px -10px var(--pink); }
.btn-lg { font-size: 1.6rem; padding: 1em 1.8em; }
.btn-arrow { transition: transform 0.25s var(--ease-out); }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ─── Nav ─── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-nav);
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: clamp(14px, 3vw, 32px); min-height: 72px; }
.brand-logo { height: 40px; width: auto; }
.nav-links { display: flex; gap: clamp(12px, 2.5vw, 28px); margin-left: auto; }
.nav-link {
  font-weight: 600; font-size: 0.95rem; text-decoration: none;
  color: var(--ink-soft); transition: color 0.2s ease;
}
.nav-link:hover { color: var(--pink); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-cta {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--font-display); font-style: italic; font-weight: 700;
  text-transform: uppercase; font-size: 1.05rem; line-height: 1;
  background: var(--pink); color: var(--near-black);
  padding: 0.7em 1.1em; text-decoration: none;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.nav-cta:hover { box-shadow: 0 8px 24px -8px var(--pink); }

.theme-toggle {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  background: transparent; border: 1px solid var(--line); border-radius: 50%;
  color: var(--ink); cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.3s var(--ease-out);
}
.theme-toggle:hover { border-color: var(--pink); color: var(--pink); transform: rotate(15deg); }
.theme-toggle svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.icon-moon { fill: currentColor; stroke: none; }
:root[data-theme="dark"] .icon-moon { display: none; }
:root[data-theme="light"] .icon-sun { display: none; }

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-actions { margin-left: auto; }
}

/* ─── Hero ─── */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid; align-items: center;
  padding: 130px 0 70px;
  overflow: clip;
}
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(56% 48% at 72% 18%, var(--glow), transparent 70%),
    radial-gradient(40% 36% at 12% 82%, var(--glow), transparent 70%);
}
.hero-inner { position: relative; width: 100%; }
.hero-logo { width: min(560px, 78vw); height: auto; margin-bottom: clamp(28px, 4.5vh, 48px); }
.hero-title {
  font-size: clamp(3.2rem, 8.6vw, 6rem);
  font-weight: 800;
  max-width: 14ch;
}
.hero-title .script-word { font-size: 0.82em; }

.hero-stripes {
  display: grid; gap: 6px;
  width: min(430px, 62vw);
  margin: clamp(20px, 3vh, 32px) 0;
}
.hero-stripes span { height: 9px; display: block; transform-origin: left; }
.hero-stripes span:nth-child(1) { background: var(--purple); width: 100%; }
.hero-stripes span:nth-child(2) { background: var(--fuschia); width: 88%; }
.hero-stripes span:nth-child(3) { background: var(--pink); width: 76%; }
.hero-stripes span:nth-child(4) { background: var(--yellow); width: 64%; }

.hero-sub { font-size: clamp(1.1rem, 1.9vw, 1.3rem); font-weight: 500; max-width: 46ch; }

.hero-cta-row { display: flex; align-items: center; gap: clamp(18px, 3vw, 32px); flex-wrap: wrap; margin-top: clamp(26px, 4vh, 40px); }
.hero-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; text-decoration: none; color: var(--ink-soft);
  transition: color 0.2s ease;
}
.hero-link:hover { color: var(--pink); }
.hero-link-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--yellow); }

/* ─── Stripe bar: the 4-band brand device, full and unsliced ─── */
.stripe-bar { height: 10px; background: var(--stripes); }

/* ─── Sections ─── */
.section { padding: clamp(80px, 12vh, 130px) 0; }
.section-band { background: var(--bg-band); }

/* ─── The Club ─── */
.club-grid {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(36px, 5vw, 72px); align-items: center;
}
.club-copy p { margin-bottom: 1rem; color: var(--ink-soft); }
.club-copy .lede { color: var(--ink); }
.club-points { list-style: none; margin-top: 1.6rem; display: grid; gap: 0.9rem; }
.club-points li { padding-left: 22px; position: relative; color: var(--ink-soft); }
.club-points li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 12px; height: 12px; background: var(--stripes);
}
.club-points strong { color: var(--ink); }

.club-photos { position: relative; min-height: 420px; }
.duo { position: absolute; overflow: hidden; }
.duo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.85) contrast(1.06); }
.duo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(140deg, rgba(53, 23, 83, 0.45), rgba(237, 25, 121, 0.22));
  mix-blend-mode: multiply;
}
.duo-a { inset: 0 12% 18% 0; transform: rotate(-1.6deg); }
.duo-a::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px;
  background: var(--stripes); z-index: 1;
}
.duo-b { width: 58%; height: 52%; right: 0; bottom: 0; transform: rotate(2deg); outline: 8px solid var(--bg); }

@media (max-width: 880px) {
  .club-grid { grid-template-columns: 1fr; }
  .club-photos { min-height: 0; height: 360px; }
}

/* ─── Photo strip ─── */
.photo-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(10px, 1.4vw, 18px); margin-top: clamp(40px, 6vh, 72px);
}
.strip-shot { position: relative; overflow: hidden; aspect-ratio: 3 / 4; }
.strip-shot img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.85) contrast(1.06);
  transition: transform 0.5s var(--ease-out);
}
.strip-shot::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(140deg, rgba(53, 23, 83, 0.45), rgba(237, 25, 121, 0.22));
  mix-blend-mode: multiply;
}
.strip-shot:nth-child(even) { margin-top: clamp(14px, 2.4vw, 32px); }
.strip-shot:hover img { transform: scale(1.05); }

@media (max-width: 720px) {
  .photo-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .strip-shot:hover img { transform: none; }
}

/* ─── Testimonials: proof, not promises ─── */
.proof-feature {
  position: relative; overflow: hidden;
  margin-top: clamp(28px, 5vh, 48px);
  aspect-ratio: 16 / 9;
}
.proof-feature img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%;
  filter: saturate(0.85) contrast(1.06);
}
.proof-feature::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(140deg, rgba(53, 23, 83, 0.45), rgba(237, 25, 121, 0.22));
  mix-blend-mode: multiply;
}
.proof-feature::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px;
  background: var(--stripes); z-index: 1;
}
@media (max-width: 720px) { .proof-feature { aspect-ratio: 4 / 3; } }

.testimonial-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(20px, 3vw, 32px); margin-top: clamp(28px, 5vh, 48px);
}
.testimonial-card {
  position: relative; display: flex; flex-direction: column; gap: 1.2rem;
  background: var(--surface); border: 1px solid var(--line);
  padding: clamp(24px, 3vw, 36px);
  padding-top: calc(clamp(24px, 3vw, 36px) + 8px);
  transition: transform 0.3s var(--ease-out);
}
.testimonial-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 8px;
  background: var(--stripes);
}
.testimonial-card:hover { transform: translateY(-4px); }
.testimonial-quote { color: var(--ink); line-height: 1.55; }
.testimonial-card figcaption { margin-top: auto; display: grid; gap: 0.2rem; }
.testimonial-name {
  font-family: var(--font-display); font-style: italic; font-weight: 700;
  text-transform: uppercase; font-size: 1.25rem; line-height: 1; color: var(--pink);
}
.testimonial-context { color: var(--ink-soft); font-size: 0.92rem; }

/* ─── Steps: a real sequence, so numbers earn their place ─── */
.steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(28px, 4vw, 48px); margin-top: clamp(30px, 5vh, 52px);
}
.step-num {
  font-family: var(--font-display); font-style: italic; font-weight: 800;
  font-size: 3.4rem; line-height: 1; color: var(--pink);
  margin-bottom: 10px;
}
.step:nth-child(2) .step-num { color: var(--fuschia); }
:root[data-theme="dark"] .step:nth-child(2) .step-num { color: var(--yellow); }
.step:nth-child(3) .step-num { color: var(--accent-text); }
:root[data-theme="dark"] .step:nth-child(3) .step-num { color: var(--cream); }
.step h3 { margin-bottom: 0.5rem; }
.step p { color: var(--ink-soft); font-size: 1rem; }

/* ─── Booking band: always dark, photo-backed ─── */
.book-band {
  position: relative; overflow: clip;
  padding: clamp(110px, 18vh, 180px) 0;
}
.book-band::before, .book-band::after {
  content: ""; position: absolute; left: 0; right: 0; height: 10px;
  background: var(--stripes); z-index: 1;
}
.book-band::before { top: 0; }
.book-band::after { bottom: 0; }
.book-band-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; filter: saturate(0.7) contrast(1.05);
}
.book-band-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(150deg, rgba(53, 23, 83, 0.88), rgba(11, 7, 9, 0.86) 70%);
}
.book-band-inner { position: relative; text-align: center; display: grid; justify-items: center; gap: 14px; }
.book-band h2 { color: var(--cream); font-size: clamp(3rem, 7vw, 5.25rem); }
.book-band-note { color: rgba(248, 239, 221, 0.85); font-size: 0.95rem; margin-top: 14px; margin-inline: auto; }

/* ─── Contact ─── */
.contact-grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(36px, 5vw, 72px); align-items: start;
}
.contact-lines { list-style: none; margin-top: 1.4rem; display: grid; gap: 0.5rem; font-weight: 600; }
.contact-lines a { color: var(--accent-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.contact-lines a:hover { color: var(--pink); }
.contact-intro .lede { color: var(--ink-soft); }

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

/* ─── Form ─── */
.form-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: clamp(24px, 4vw, 40px);
  display: grid; gap: 18px;
}
.form-card::before, .form-success::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 10px;
  background: var(--stripes);
}
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-row { display: grid; gap: 6px; }
.form-label { font-weight: 600; font-size: 0.95rem; }
.req { color: var(--pink); margin-left: 2px; }
.optional { color: var(--ink-soft); font-weight: 400; font-size: 0.85rem; }
.form-input, .form-select, .form-textarea {
  font: inherit; color: var(--ink);
  background: var(--input-bg);
  border: 2px solid var(--line);
  padding: 12px 14px;
  border-radius: 0;
  width: 100%;
  transition: border-color 0.2s ease;
}
.form-textarea { min-height: 130px; resize: vertical; }
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--pink);
}
.form-select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; }
.form-error {
  display: none;
  background: rgba(237, 25, 121, 0.12);
  border: 1px solid var(--pink);
  color: var(--ink);
  padding: 10px 14px; font-size: 0.95rem; font-weight: 600;
}
.form-error.show { display: block; }
.submit-btn { justify-self: start; }
.form-success {
  display: none;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: clamp(28px, 5vw, 48px);
}
.form-success.show { display: block; }
.form-success h3 { color: var(--pink); font-size: 2.2rem; margin-bottom: 0.4rem; }

/* ─── Footer: always the white-on-black lockup zone ─── */
footer { background: var(--near-black); color: var(--cream); }
.footer-grid {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(30px, 5vw, 64px);
  padding: clamp(48px, 8vh, 80px) 0 40px;
}
.footer-logo { width: 200px; height: auto; }
.footer-tag {
  font-family: var(--font-script); font-size: 1.35rem; color: var(--pink);
  margin-top: 18px; transform: rotate(-2deg); display: inline-block;
}
.footer-col h4 {
  font-family: var(--font-display); font-style: italic; font-weight: 700;
  text-transform: uppercase; font-size: 1.15rem; color: var(--yellow);
  margin-bottom: 12px;
}
.footer-col ul { list-style: none; display: grid; gap: 8px; }
.footer-col a { color: rgba(248, 239, 221, 0.82); text-decoration: none; font-size: 0.95rem; }
.footer-col a:hover { color: var(--pink); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 22px 0 34px;
  border-top: 1px solid rgba(248, 239, 221, 0.14);
  color: rgba(248, 239, 221, 0.66); font-size: 0.88rem;
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ─── Legal doc pages (privacy, terms) ─── */
.page-header { padding: 150px 0 30px; }
.page-header h1 { font-size: clamp(2.8rem, 6.5vw, 4.5rem); font-weight: 800; }
.page-header .stripe-bar { width: min(320px, 50vw); margin: 18px 0 22px; }
.page-lede { font-size: clamp(1.1rem, 1.7vw, 1.25rem); font-weight: 500; color: var(--ink-soft); max-width: 52ch; }
.page-meta { margin-top: 14px; font-size: 0.9rem; font-weight: 600; color: var(--accent-text); }

.doc-section { padding: 30px 0 clamp(80px, 12vh, 120px); }
.doc { max-width: 72ch; }
.doc .intro { font-size: 1.15rem; font-weight: 500; margin-bottom: 2rem; }
.doc h2 {
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  margin: 2.4rem 0 0.7rem;
  line-height: 1.05;
}
.doc p { margin-bottom: 0.9rem; color: var(--ink-soft); }
.doc .intro, .doc strong { color: var(--ink); }
.doc ul { margin: 0 0 1rem; padding-left: 0; list-style: none; display: grid; gap: 0.45rem; }
.doc li { position: relative; padding-left: 22px; color: var(--ink-soft); }
.doc li::before {
  content: ""; position: absolute; left: 0; top: 0.6em;
  width: 11px; height: 11px; background: var(--stripes);
}
.doc a { color: var(--accent-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.doc a:hover { color: var(--pink); }
.doc .warning {
  border: 2px solid var(--pink);
  background: rgba(237, 25, 121, 0.08);
  padding: 16px 20px;
  margin: 0 0 1rem;
}
.doc .warning p { margin: 0; color: var(--ink); }

/* ─── Footer legal row ─── */
.footer-legal a { color: rgba(248, 239, 221, 0.66); text-decoration: none; }
.footer-legal a:hover { color: var(--pink); }
.footer-legal .sep { padding-inline: 8px; }

/* ─── Scroll reveal: enhance-only, gated on html.js ─── */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out);
  transition-delay: var(--d, 0s);
}
html.js [data-reveal].is-revealed { opacity: 1; transform: none; }

html.js [data-reveal="draw"] { transform: none; }
html.js [data-reveal="draw"] span { transform: scaleX(0); transform-origin: left; transition: transform 0.8s var(--ease-out); }
html.js [data-reveal="draw"] span:nth-child(2) { transition-delay: 0.08s; }
html.js [data-reveal="draw"] span:nth-child(3) { transition-delay: 0.16s; }
html.js [data-reveal="draw"] span:nth-child(4) { transition-delay: 0.24s; }
html.js [data-reveal="draw"].is-revealed span { transform: none; }

/* ─── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js [data-reveal], html.js [data-reveal="draw"] span {
    opacity: 1; transform: none; transition: none;
  }
  .btn, .nav-cta, .theme-toggle, .testimonial-card, .btn-arrow { transition: none; }
}
