/* ============================================================
   Jalan2Bola - Shared Design System Stylesheet
   Brand: Malaysian Premier League travel agency
   Palette: Jalur Gemilang (red #DA291C · navy #1E377E · yellow #FFCD00)
   Following design.md spec - overrides Storytelling tokens.
   ============================================================ */

/* ─── Design Tokens (from design.md) ─────────────────────── */
:root {
  /* Brand palette - Jalur Gemilang trio */
  --primary:         #DA291C;  /* Merah Matchday */
  --primary-hover:   #B71E12;
  --on-primary:      #FFFFFF;
  --secondary:       #1E377E;  /* Biru Jalur - navy */
  --on-secondary:    #FFFFFF;
  --tertiary:        #FFCD00;  /* Kuning Emas */
  --on-tertiary:     #0A0A0A;  /* dark text on yellow (mandatory) */

  /* Ink scale */
  --ink:             #0A0A0A;
  --ink-muted:       #4D4D4D;
  --ink-alt:         #1A1A1A;

  /* Surface scale - navy is the dark mode, never black */
  --surface:         #FFFFFF;
  --surface-tint:    #FFF7E0;  /* warm pale-yellow panel */
  --surface-cool:    #E8EEF7;  /* pale-blue info panel */
  --surface-inverse: #0A1A45;  /* deep navy - footer/hero overlay */
  --on-inverse:      #FFFFFF;
  --bg:              #FFFFFF;

  /* Status remap (no green - red is already brand) */
  --status-confirmed: #1E377E;  /* navy = booking confirmed */
  --status-limited:   #FFCD00;  /* yellow = limited tickets */
  --status-sold-out:  #8A8A8A;  /* grey = unavailable */
  --status-live:      #DA291C;  /* red = matchday live */

  /* Typography */
  --font-display: 'Inter Display', 'Inter', system-ui, -apple-system, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:    'SF Mono', ui-monospace, 'JetBrains Mono', Menlo, monospace;

  /* Type scale */
  --fs-display-xl:  72px;
  --fs-display-lg:  48px;
  --fs-display-md:  32px;
  --fs-display-stat: 40px;
  --fs-body-md:     18px;
  --fs-body-sm:     16px;
  --fs-caption:     12px;
  --fs-marquee:     260px;

  /* Radii */
  --r-xs:   8px;
  --r-sm:   12px;
  --r-md:   16px;
  --r-lg:   40px;
  --r-xl:   50px;
  --r-full: 9999px;

  /* Spacing - 8px base with 4px half-step */
  --s-xs:  4px;
  --s-sm:  8px;
  --s-md:  16px;
  --s-lg:  24px;
  --s-xl:  40px;
  --s-2xl: 60px;
  --gutter: 60px;

  /* Shadows - navy-tinted, not black */
  --shadow-sm: rgba(10,26,69,0.17) 0 0.6px 1.57px -1.5px, rgba(10,26,69,0.14) 0 2.29px 5.95px -3px, rgba(10,26,69,0.02) 0 10px 26px -4.5px;
  --shadow-md: rgba(10,26,69,0.15) 0 4px 10px 0;
  --shadow-lg: rgba(10,26,69,0.11) 0 0.6px 1.31px -0.94px, rgba(10,26,69,0.1) 0 1.81px 3.98px -1.88px, rgba(10,26,69,0.09) 0 4.79px 10.53px -2.81px, rgba(10,26,69,0.04) 0 15px 33px -3.75px;

  /* Focus rings - navy on light, yellow on dark */
  --focus-light: outline: 3px solid var(--secondary); outline-offset: 2px;
  --focus-dark:  outline: 3px solid var(--tertiary); outline-offset: 2px;

  /* Motion */
  --m-fast: 150ms;
  --m-base: 250ms;
  --ease: cubic-bezier(0.2, 0, 0, 1);
}

/* ─── Reset & Base ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body-md);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--secondary); text-decoration: none; transition: color var(--m-fast) var(--ease); }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3, h4, h5, h6 { margin: 0; text-wrap: balance; }
:focus-visible { outline: 3px solid var(--secondary); outline-offset: 2px; border-radius: 2px; }

/* ─── Layout Primitives ──────────────────────────────────── */
/* Full-bleed: 60px gutter, no max-width container */
.section {
  padding-inline: var(--gutter);
  padding-block: var(--s-2xl);
}
.section-tight { padding-block: var(--s-xl); }
.row { display: flex; align-items: center; gap: var(--s-md); }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: var(--s-md); }
.col { display: flex; flex-direction: column; gap: var(--s-md); }
.wrap { flex-wrap: wrap; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-xl); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-lg); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-md); }

/* ─── Typography ─────────────────────────────────────────── */
.h-display-xl, h1 {
  font-family: var(--font-display);
  font-size: var(--fs-display-xl);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.h-display-lg, h2 {
  font-family: var(--font-display);
  font-size: var(--fs-display-lg);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.h-display-md, h3 {
  font-family: var(--font-display);
  font-size: var(--fs-display-md);
  font-weight: 500;
  line-height: 1.2;
}
.stat-num {
  font-family: var(--font-display);
  font-size: var(--fs-display-stat);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.body-sm { font-size: var(--fs-body-sm); line-height: 1.4; }
.caption { font-size: var(--fs-caption); line-height: 1.2; color: var(--ink-muted); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0;
}
.lead {
  font-size: var(--fs-body-md);
  line-height: 1.5;
  color: var(--ink-muted);
  max-width: 60ch;
}

/* Dark-section typography overrides */
.on-dark { color: var(--on-inverse); }
.on-dark .eyebrow { color: var(--tertiary); }
.on-dark .lead { color: rgba(255,255,255,0.75); }
.on-dark .caption { color: rgba(255,255,255,0.6); }
.on-dark :focus-visible { outline-color: var(--tertiary); }

/* ─── Navigation ─────────────────────────────────────────── */
.topnav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
  display: flex;
  align-items: center;
  padding-inline: var(--gutter);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--surface-cool);
  transition: background var(--m-base) var(--ease);
}
.topnav.nav-solid {
  background: var(--surface);
  border-bottom-color: var(--surface-cool);
}
.topnav.nav-transparent {
  background: transparent;
  border-bottom-color: transparent;
}
.topnav.nav-dark {
  background: color-mix(in srgb, var(--surface-inverse) 88%, transparent);
  border-bottom-color: rgba(255,255,255,0.08);
}
.nav-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-lg);
}
.wordmark {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--s-xs);
}
.wordmark .dot { color: var(--primary); }
.topnav.nav-dark .wordmark { color: var(--on-inverse); }
.topnav.nav-dark .wordmark .dot { color: var(--tertiary); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-links a {
  padding: 8px 12px;
  border-radius: var(--r-xl);
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
  transition: background var(--m-fast) var(--ease), color var(--m-fast) var(--ease);
}
.nav-links a:hover {
  background: color-mix(in srgb, var(--surface-cool) 50%, transparent);
  text-decoration: none;
}
.nav-links a.active {
  color: var(--primary);
  font-weight: 500;
}
.topnav.nav-dark .nav-links a { color: var(--on-inverse); }
.topnav.nav-dark .nav-links a:hover {
  background: rgba(255,255,255,0.08);
  color: var(--on-inverse);
}
.topnav.nav-dark .nav-links a.active { color: var(--tertiary); }

.nav-actions { display: flex; align-items: center; gap: var(--s-sm); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  align-items: center; justify-content: center;
  background: transparent;
}
.nav-toggle svg { width: 24px; height: 24px; stroke: var(--ink); }
.topnav.nav-dark .nav-toggle svg { stroke: var(--on-inverse); }

/* ─── Buttons ────────────────────────────────────────────── */
/* Anatomy: text label left + circular icon badge right */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-md);
  height: 55px;
  padding: 5px 5px 5px 25px;
  border-radius: var(--r-lg);
  font-family: var(--font-body);
  font-size: var(--fs-body-md);
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  border: none;
  transition: background var(--m-fast) var(--ease), transform var(--m-fast) var(--ease), box-shadow var(--m-fast) var(--ease);
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn .btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-full);
  background: rgba(255,255,255,0.15);
  transition: background var(--m-fast) var(--ease), transform var(--m-fast) var(--ease);
}
.btn .btn-icon svg { width: 18px; height: 18px; }
.btn:hover .btn-icon { transform: translateX(3px); }

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
}
.btn-primary:hover {
  background: var(--primary-hover);
  text-decoration: none;
}
.btn-primary .btn-icon { background: rgba(255,255,255,0.18); }

.btn-secondary {
  background: var(--surface);
  color: var(--secondary);
  border: 1px solid var(--surface-cool);
}
.btn-secondary:hover { background: var(--surface-cool); text-decoration: none; }
.btn-secondary .btn-icon { background: var(--surface-cool); }

.btn-tertiary {
  background: var(--tertiary);
  color: var(--on-tertiary);
}
.btn-tertiary:hover { background: color-mix(in srgb, var(--tertiary) 92%, black); text-decoration: none; }
.btn-tertiary .btn-icon { background: rgba(10,10,10,0.1); }

/* Ghost variant for dark sections */
.btn-ghost {
  background: transparent;
  color: var(--on-inverse);
  border: 1.5px solid rgba(255,255,255,0.3);
}
.btn-ghost:hover { border-color: var(--tertiary); text-decoration: none; }
.btn-ghost .btn-icon { background: rgba(255,255,255,0.1); }

/* Disabled state */
.btn:disabled, .btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Text link button (no chrome) */
.btn-text {
  display: inline-flex;
  align-items: center;
  gap: var(--s-xs);
  padding: 8px 0;
  font-size: var(--fs-body-md);
  font-weight: 500;
  color: var(--secondary);
  background: none;
  text-decoration: none;
  border: none;
}
.btn-text:hover { color: var(--primary); text-decoration: underline; }
.btn-text svg { width: 16px; height: 16px; transition: transform var(--m-fast) var(--ease); }
.btn-text:hover svg { transform: translateX(3px); }

/* Small button variant */
.btn-sm {
  height: 44px;
  padding: 4px 4px 4px 20px;
  font-size: var(--fs-body-sm);
}
.btn-sm .btn-icon { width: 36px; height: 36px; }

/* ─── Status Pills ───────────────────────────────────────── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: var(--fs-caption);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.2;
}
.pill-confirmed { background: var(--status-confirmed); color: var(--on-secondary); }
.pill-limited   { background: var(--status-limited); color: var(--on-tertiary); }
.pill-sold-out  { background: var(--status-sold-out); color: #fff; }
.pill-live      { background: var(--status-live); color: var(--on-primary); }
.pill-live .live-dot {
  width: 8px; height: 8px;
  border-radius: var(--r-full);
  background: #fff;
  animation: pulse-live 1s ease-in-out infinite;
}
@keyframes pulse-live {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* Category badge (blog) */
.badge-cat {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--r-sm);
  background: var(--surface-cool);
  color: var(--secondary);
  font-size: var(--fs-caption);
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* ─── Cards: Fixture (dark, image-led) ───────────────────── */
.fixture-card {
  background: var(--surface-inverse);
  color: var(--on-inverse);
  border-radius: var(--r-md);
  overflow: hidden;
  position: relative;
  transition: box-shadow var(--m-base) var(--ease), transform var(--m-base) var(--ease);
  display: flex;
  flex-direction: column;
}
.fixture-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.fixture-card:hover .fixture-img { transform: scale(1.05); }
.fixture-img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.fixture-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--m-base) var(--ease);
}
.fixture-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,26,69,0.3) 0%, rgba(10,26,69,0.85) 100%);
}
.fixture-crests {
  position: absolute;
  top: var(--s-lg);
  left: var(--s-lg);
  display: flex;
  align-items: center;
  gap: var(--s-sm);
}
.crest {
  width: 44px; height: 44px;
  border-radius: var(--r-full);
  background: rgba(255,255,255,0.95);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.fixture-status {
  position: absolute;
  top: var(--s-lg);
  right: var(--s-lg);
}
.fixture-body {
  padding: var(--s-lg);
  display: flex;
  flex-direction: column;
  gap: var(--s-sm);
  flex: 1;
}
.fixture-title {
  font-family: var(--font-display);
  font-size: var(--fs-display-md);
  font-weight: 500;
  line-height: 1.2;
}
.fixture-meta {
  color: rgba(255,255,255,0.7);
  font-size: var(--fs-body-sm);
}
.fixture-timezone {
  display: flex;
  gap: var(--s-lg);
  margin-top: var(--s-xs);
  font-size: var(--fs-caption);
  color: rgba(255,255,255,0.6);
}
.fixture-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--s-md);
  margin-top: auto;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.fixture-price {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.fixture-price .price-label { font-size: var(--fs-caption); color: rgba(255,255,255,0.5); }
.fixture-price .price-amt {
  font-family: var(--font-display);
  font-size: var(--fs-body-md);
  font-weight: 600;
  color: var(--tertiary);
}

/* ─── Cards: Package (light, content-led) ────────────────── */
.pkg-card {
  background: var(--surface);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--m-base) var(--ease), transform var(--m-base) var(--ease);
  display: flex;
  flex-direction: column;
}
.pkg-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.pkg-img-wrap {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
}
.pkg-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--m-base) var(--ease);
}
.pkg-card:hover .pkg-img { transform: scale(1.03); }
.pkg-body {
  padding: var(--s-lg);
  display: flex;
  flex-direction: column;
  gap: var(--s-sm);
  flex: 1;
}
.pkg-title {
  font-family: var(--font-display);
  font-size: var(--fs-display-md);
  font-weight: 500;
  line-height: 1.2;
}
.pkg-dur {
  display: flex;
  align-items: center;
  gap: var(--s-xs);
  font-size: var(--fs-body-sm);
  color: var(--ink-muted);
}
.pkg-dur svg { width: 16px; height: 16px; stroke: var(--secondary); }
.pkg-desc { color: var(--ink-muted); font-size: var(--fs-body-sm); line-height: 1.5; }
.pkg-includes {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-xs);
  margin-top: var(--s-xs);
}
.pkg-include {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--r-xs);
  background: var(--surface-cool);
  font-size: var(--fs-caption);
  color: var(--secondary);
}
.pkg-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--s-md);
  margin-top: auto;
  border-top: 1px solid var(--surface-cool);
}
.pkg-price .price-label { font-size: var(--fs-caption); color: var(--ink-muted); }
.pkg-price .price-amt {
  font-family: var(--font-display);
  font-size: var(--fs-display-md);
  font-weight: 500;
  color: var(--primary);
}
.pkg-price .price-gbp { font-size: var(--fs-caption); color: var(--ink-muted); margin-left: var(--s-xs); }

/* ─── Cards: Blog ("Pitch Notes") ────────────────────────── */
.blog-card {
  display: flex;
  flex-direction: column;
  gap: var(--s-md);
  text-decoration: none;
  color: inherit;
}
.blog-card:hover { text-decoration: none; }
.blog-card:hover .blog-title { color: var(--secondary); }
.blog-img-wrap {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: var(--r-md);
  position: relative;
}
.blog-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--m-base) var(--ease);
}
.blog-card:hover .blog-img { transform: scale(1.04); }
.blog-cat {
  position: absolute;
  top: var(--s-md);
  left: var(--s-md);
}
.blog-title {
  font-family: var(--font-display);
  font-size: var(--fs-display-md);
  font-weight: 500;
  line-height: 1.2;
  transition: color var(--m-fast) var(--ease);
}
.blog-excerpt { color: var(--ink-muted); font-size: var(--fs-body-sm); }
.blog-meta { font-size: var(--fs-caption); color: var(--ink-muted); }

/* ─── Image Placeholder ──────────────────────────────────── */
.ph {
  background: linear-gradient(135deg, var(--surface-cool), var(--surface-tint));
  display: grid;
  place-items: center;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: inherit;
}
.ph-stadium {
  background:
    radial-gradient(ellipse at 50% 100%, rgba(255,205,0,0.08) 0%, transparent 50%),
    linear-gradient(180deg, var(--surface-inverse) 0%, #061235 100%);
  color: rgba(255,255,255,0.35);
}
.ph-pitch {
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.03) 0px, rgba(255,255,255,0.03) 40px, transparent 40px, transparent 80px),
    linear-gradient(180deg, #0d3a0d 0%, #0a2a0a 100%);
}

/* ─── Marquee (decorative ticker) ────────────────────────── */
.marquee {
  overflow: hidden;
  padding-block: var(--s-md);
  background: var(--surface-inverse);
  color: var(--on-inverse);
  white-space: nowrap;
  position: relative;
}
.marquee-track {
  display: inline-flex;
  gap: var(--s-xl);
  animation: marquee-scroll 40s linear infinite;
  will-change: transform;
}
.marquee-item {
  font-family: var(--font-display);
  font-size: var(--fs-marquee);
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1;
  color: rgba(255,255,255,0.06);
  text-transform: uppercase;
  flex-shrink: 0;
}
@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── Stats Bar ──────────────────────────────────────────── */
.stats-bar {
  display: flex;
  gap: var(--s-2xl);
  flex-wrap: wrap;
  align-items: baseline;
}
.stat-block { display: flex; flex-direction: column; gap: var(--s-xs); }
.stat-block .stat-num { color: var(--primary); }
.stat-block .stat-label { color: var(--ink-muted); font-size: var(--fs-body-sm); }

/* ─── Feature Block ──────────────────────────────────────── */
.feature {
  display: flex;
  flex-direction: column;
  gap: var(--s-md);
}
.feature-icon {
  width: 56px; height: 56px;
  border-radius: var(--r-md);
  background: var(--surface-cool);
  display: grid; place-items: center;
  color: var(--secondary);
}
.feature-icon svg { width: 28px; height: 28px; }
.feature h3 { font-family: var(--font-display); font-size: var(--fs-display-md); font-weight: 500; }
.feature p { color: var(--ink-muted); font-size: var(--fs-body-sm); line-height: 1.5; }

/* ─── Testimonial ────────────────────────────────────────── */
.testimonial {
  background: var(--surface);
  border-radius: var(--r-md);
  padding: var(--s-xl);
  box-shadow: var(--shadow-sm);
}
.testimonial-quote {
  font-family: var(--font-display);
  font-size: var(--fs-display-md);
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: var(--s-lg);
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--s-md);
}
.author-avatar {
  width: 48px; height: 48px;
  border-radius: var(--r-full);
  background: var(--surface-cool);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--secondary);
}
.author-name { font-weight: 500; font-size: var(--fs-body-md); }
.author-trip { font-size: var(--fs-caption); color: var(--ink-muted); }
.rating { display: flex; gap: 2px; margin-bottom: var(--s-sm); }
.rating .star {
  width: 20px; height: 20px;
  fill: var(--tertiary);
}

/* ─── CTA Banner ─────────────────────────────────────────── */
.cta-banner {
  background: var(--surface-inverse);
  color: var(--on-inverse);
  border-radius: var(--r-md);
  padding: var(--s-2xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-xl);
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-banner h2 { color: var(--on-inverse); max-width: 18ch; }

/* ─── Footer ─────────────────────────────────────────────── */
.pagefoot {
  background: var(--surface-inverse);
  color: var(--on-inverse);
  padding-top: 350px;
  padding-bottom: var(--s-2xl);
  padding-inline: var(--gutter);
}
.pagefoot .foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--s-2xl);
  padding-bottom: var(--s-2xl);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.pagefoot .foot-brand .wordmark { color: var(--on-inverse); font-size: 28px; }
.pagefoot .foot-brand p { color: rgba(255,255,255,0.6); font-size: var(--fs-body-sm); max-width: 32ch; margin-top: var(--s-md); }
.pagefoot h4 {
  font-family: var(--font-body);
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: var(--s-md);
}
.pagefoot .foot-links a {
  display: block;
  color: rgba(255,255,255,0.8);
  font-size: var(--fs-body-sm);
  padding: 6px 0;
  text-decoration: none;
}
.pagefoot .foot-links a:hover { color: var(--tertiary); }
.pagefoot .foot-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--s-lg);
  flex-wrap: wrap;
  gap: var(--s-md);
}
.pagefoot .foot-bottom span { color: rgba(255,255,255,0.5); font-size: var(--fs-caption); }
.pagefoot .foot-social { display: flex; gap: var(--s-sm); }
.pagefoot .foot-social a {
  width: 40px; height: 40px;
  border-radius: var(--r-full);
  background: rgba(255,255,255,0.08);
  display: grid; place-items: center;
  transition: background var(--m-fast) var(--ease);
}
.pagefoot .foot-social a:hover { background: rgba(255,205,0,0.2); }
.pagefoot .foot-social svg { width: 20px; height: 20px; fill: var(--on-inverse); }

/* ─── Form Controls ──────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: var(--s-sm); }
.form-label {
  font-size: var(--fs-body-sm);
  font-weight: 500;
  color: var(--ink);
}
.form-label .req { color: var(--primary); }
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  height: 52px;
  padding: 0 var(--s-md);
  border: 1.5px solid var(--surface-cool);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body-md);
  transition: border-color var(--m-fast) var(--ease);
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--secondary);
}
.form-input:focus-visible,
.form-select:focus-visible {
  outline: 3px solid var(--secondary);
  outline-offset: 2px;
}
.form-textarea {
  height: auto;
  min-height: 120px;
  padding: var(--s-md);
  resize: vertical;
  line-height: 1.5;
}
.form-input::placeholder { color: var(--ink-muted); opacity: 0.6; }
.form-input.error { border-color: var(--primary); }
.form-error {
  font-size: var(--fs-caption);
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 4px;
}
.form-hint { font-size: var(--fs-caption); color: var(--ink-muted); }

/* Custom select arrow */
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E377E' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 20px;
  padding-right: 48px;
}

/* Checkbox/Radio */
.form-check {
  display: flex;
  align-items: flex-start;
  gap: var(--s-sm);
  cursor: pointer;
}
.form-check input { width: 20px; height: 20px; accent-color: var(--secondary); margin-top: 2px; }
.form-check label { font-size: var(--fs-body-sm); color: var(--ink); cursor: pointer; }

/* ─── Stepper (booking flow) ─────────────────────────────── */
.stepper {
  display: flex;
  align-items: center;
  gap: var(--s-sm);
  margin-bottom: var(--s-xl);
}
.step {
  display: flex;
  align-items: center;
  gap: var(--s-sm);
}
.step-num {
  width: 36px; height: 36px;
  border-radius: var(--r-full);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: var(--fs-body-sm);
  font-weight: 600;
  background: var(--surface-cool);
  color: var(--secondary);
}
.step.active .step-num { background: var(--primary); color: var(--on-primary); }
.step.done .step-num { background: var(--status-confirmed); color: var(--on-secondary); }
.step.done .step-num::after { content: '✓'; }
.step.done .step-num span { display: none; }
.step-label { font-size: var(--fs-body-sm); color: var(--ink-muted); font-weight: 500; }
.step.active .step-label { color: var(--ink); }
.step-line { flex: 1; height: 2px; background: var(--surface-cool); max-width: 60px; }
.step-line.done { background: var(--status-confirmed); }

/* ─── Timeline (itinerary) ───────────────────────────────── */
.timeline { display: flex; flex-direction: column; gap: 0; }
.timeline-item {
  display: grid;
  grid-template-columns: 100px 40px 1fr;
  gap: var(--s-md);
  padding-bottom: var(--s-xl);
  position: relative;
}
.timeline-day {
  font-family: var(--font-display);
  font-size: var(--fs-body-md);
  font-weight: 600;
  color: var(--secondary);
}
.timeline-day .day-label { display: block; font-size: var(--fs-caption); color: var(--ink-muted); font-weight: 400; text-transform: uppercase; letter-spacing: 0.05em; }
.timeline-dot {
  width: 16px; height: 16px;
  border-radius: var(--r-full);
  background: var(--tertiary);
  border: 3px solid var(--surface);
  box-shadow: 0 0 0 2px var(--tertiary);
  margin-top: 4px;
  position: relative;
  z-index: 1;
}
.timeline-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 117px;
  top: 20px;
  bottom: 0;
  width: 2px;
  background: var(--surface-cool);
}
.timeline-content h4 {
  font-family: var(--font-display);
  font-size: var(--fs-body-md);
  font-weight: 500;
  margin-bottom: var(--s-xs);
}
.timeline-content p { color: var(--ink-muted); font-size: var(--fs-body-sm); }
.timeline-tags { display: flex; gap: var(--s-xs); margin-top: var(--s-sm); flex-wrap: wrap; }

/* ─── Filter Bar ─────────────────────────────────────────── */
.filter-bar {
  display: flex;
  align-items: center;
  gap: var(--s-sm);
  flex-wrap: wrap;
  padding-bottom: var(--s-xl);
}
.filter-chip {
  padding: 8px 16px;
  border-radius: var(--r-full);
  background: var(--surface);
  border: 1.5px solid var(--surface-cool);
  font-size: var(--fs-body-sm);
  font-weight: 500;
  color: var(--ink-muted);
  cursor: pointer;
  transition: all var(--m-fast) var(--ease);
}
.filter-chip:hover { border-color: var(--secondary); color: var(--secondary); }
.filter-chip.active {
  background: var(--secondary);
  border-color: var(--secondary);
  color: var(--on-secondary);
}

/* ─── Misc Utilities ─────────────────────────────────────── */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-tertiary { color: var(--tertiary); }
.text-muted { color: var(--ink-muted); }
.bg-tint { background: var(--surface-tint); }
.bg-cool { background: var(--surface-cool); }
.bg-inverse { background: var(--surface-inverse); }
.rounded-md { border-radius: var(--r-md); }
.full-bleed { padding-inline: var(--gutter); }
.mt-2xl { margin-top: var(--s-2xl); }
.mb-2xl { margin-bottom: var(--s-2xl); }
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-lg);
  margin-bottom: var(--s-xl);
  flex-wrap: wrap;
}
.section-header .lead { margin-top: var(--s-sm); }

/* ─── Carousel Controls ──────────────────────────────────── */
.carousel-wrap { position: relative; }
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: var(--r-lg);
  background: rgba(10,26,69,0.2);
  backdrop-filter: blur(8px);
  display: grid; place-items: center;
  z-index: 5;
  transition: background var(--m-fast) var(--ease);
}
.carousel-btn:hover { background: rgba(10,26,69,0.4); }
.carousel-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.carousel-btn.prev { left: -24px; }
.carousel-btn.next { right: -24px; }
.carousel-btn svg { width: 20px; height: 20px; stroke: #fff; }
.carousel-track {
  display: flex;
  gap: var(--s-lg);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > * { scroll-snap-align: start; flex-shrink: 0; }

/* ─── Reduced Motion ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .marquee-track { animation: none; }
  .pill-live .live-dot { animation: none; }
}

/* ─── Responsive Breakpoints ─────────────────────────────── */
@media (max-width: 1180px) {
  :root { --gutter: 40px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 920px) {
  :root {
    --fs-display-xl: 48px;
    --fs-display-lg: 36px;
    --fs-display-md: 26px;
    --fs-display-stat: 32px;
    --gutter: 24px;
  }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .wordmark { display: none; }
  .nav-toggle { display: flex; order: -1; }
  .nav-actions { width: 100%; justify-content: space-between; }
  .nav-inner { gap: var(--s-md); }


  /* Mobile dropdown menu */
  body.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    padding: var(--s-sm) var(--gutter);
    box-shadow: var(--shadow-md);
    border-top: 1px solid var(--surface-cool);
    gap: 0;
    z-index: 99;
    max-height: 80vh;
    overflow-y: auto;
  }
  body.nav-open .nav-links a {
    padding: var(--s-md) 0;
    border-bottom: 1px solid var(--surface-cool);
    width: 100%;
    border-radius: 0;
    font-size: var(--fs-body-md);
  }
  body.nav-open .nav-links a:last-child { border-bottom: none; }
  body.nav-open .nav-links a:hover { background: var(--surface-cool); border-radius: var(--r-sm); }
  body.nav-open .topnav.nav-dark .nav-links { background: var(--surface-inverse); border-top-color: rgba(255,255,255,0.1); }
  body.nav-open .topnav.nav-dark .nav-links a { color: var(--on-inverse); border-bottom-color: rgba(255,255,255,0.08); }
  body.nav-open .topnav.nav-dark .nav-links a:hover { background: rgba(255,255,255,0.08); }
  body.nav-open .topnav.nav-dark .nav-links a.active { color: var(--tertiary); }
  body.nav-open .nav-toggle { background: var(--surface-cool); }
  body.nav-open .topnav.nav-dark .nav-toggle { background: rgba(255,255,255,0.08); }
  .section { padding-block: var(--s-xl); }
  .pagefoot { padding-top: var(--s-2xl); }
  .pagefoot .foot-grid { grid-template-columns: 1fr 1fr; gap: var(--s-xl); }
  .cta-banner { flex-direction: column; text-align: center; }
  .stats-bar { gap: var(--s-xl); }
  .timeline-item { grid-template-columns: 80px 32px 1fr; }

    /* Matchday numbered strip responsive */
    .section.bg-inverse [style*="repeat(4, 1fr)"] {
      grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 600px) {
  :root {
    --fs-display-xl: 36px;
    --fs-display-lg: 28px;
    --fs-display-md: 22px;
    --gutter: 16px;
  }
  .grid-4 { grid-template-columns: 1fr; }
  .pagefoot .foot-grid { grid-template-columns: 1fr; }
  .stepper .step-label { display: none; }
  .fixture-timezone { flex-direction: column; gap: var(--s-xs); }
}
