/* ==========================================================================
   Peshawar Running Club — Design System
   Colours taken from the PRC logo: deep navy, ember orange, amber.
   ========================================================================== */

:root {
  --navy-950: #070F1A;
  --navy-900: #0B1626;
  --navy-800: #0F1F33;
  --navy-700: #17304D;
  --navy-600: #24466B;
  --ink: #0E1B2C;
  --orange: #F26B1D;
  --orange-600: #DB5A0F;
  --amber: #F7A81B;
  --grad: linear-gradient(120deg, #F7A81B 0%, #F26B1D 100%);
  --bg: #FFFFFF;
  --bg-soft: #F4F6F9;
  --bg-mist: #E9EDF2;
  --line: #E1E6EE;
  --muted: #5B6B80;
  --success: #12A150;
  --danger: #D93838;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(11, 22, 38, .06), 0 2px 8px rgba(11, 22, 38, .05);
  --shadow: 0 10px 30px -10px rgba(11, 22, 38, .18);
  --shadow-lg: 0 30px 60px -20px rgba(11, 22, 38, .35);
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1240px;
  --header-h: 76px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--orange); color: #fff; }
body.no-scroll { overflow: hidden; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 860px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: .98;
  letter-spacing: .005em;
  text-transform: uppercase;
  margin: 0 0 .4em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.8rem, 7vw, 6rem); }
h2 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); line-height: 1.05; }
h4 { font-size: 1.2rem; line-height: 1.1; }
p { margin: 0 0 1em; }
.italic { font-style: italic; }
.text-grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  padding-right: .06em;
}
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--grad); }
.eyebrow.center::after { content: ""; width: 34px; height: 2px; background: var(--grad); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink); --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px;
  border: 2px solid transparent; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  letter-spacing: .12em; text-transform: uppercase;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 24px -10px rgba(242, 107, 29, .65); }
.btn-primary:hover { box-shadow: 0 16px 30px -10px rgba(242, 107, 29, .75); }
.btn-outline { background: transparent; color: var(--ink); border-color: currentColor; }
.btn-outline:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-ghost-light { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.45); backdrop-filter: blur(6px); }
.btn-ghost-light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-white { background: #fff; color: var(--ink); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: .92rem; }
.btn-lg { min-height: 58px; padding: 0 34px; font-size: 1.15rem; }
.btn-block { width: 100%; }
/* Long labels (e.g. the WhatsApp receipt button) wrap instead of overflowing on narrow phones. */
.btn-wrap { white-space: normal; text-align: center; line-height: 1.3; padding-top: 12px; padding-bottom: 12px; padding-left: 18px; padding-right: 18px; }
.btn[disabled], .btn.is-loading { opacity: .6; pointer-events: none; }
.btn.is-loading::after {
  content: ""; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; font-size: .95rem; color: var(--orange);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Top bar + Header ---------- */
.topbar {
  background: var(--navy-950); color: rgba(255,255,255,.75);
  font-size: .82rem; position: relative; z-index: 60;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.topbar a:hover { color: #fff; }
.topbar-announce { display: flex; align-items: center; gap: 10px; min-width: 0; }
.topbar-announce span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-announce strong { color: var(--amber); font-weight: 600; }
.topbar-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); flex: none; box-shadow: 0 0 0 0 rgba(242,107,29,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(242,107,29,.6); } 70% { box-shadow: 0 0 0 8px rgba(242,107,29,0); } 100% { box-shadow: 0 0 0 0 rgba(242,107,29,0); } }
.topbar-right { display: flex; align-items: center; gap: 18px; flex: none; }
.topbar-social { display: flex; gap: 12px; }
.topbar-social svg { width: 15px; height: 15px; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(11, 22, 38, .0);
  transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}
.site-header.is-solid, body:not(.has-hero) .site-header {
  background: rgba(11, 22, 38, .92);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 8px 30px -12px rgba(0,0,0,.45);
}
body.has-hero .site-header { margin-bottom: calc(var(--header-h) * -1); }
.site-header .container { display: flex; align-items: center; height: 100%; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; flex: none; }
.brand img { width: 54px; height: 54px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255,255,255,.15); transition: transform .4s var(--ease); }
.brand:hover img { transform: rotate(-8deg) scale(1.04); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text b { font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: 1.35rem; letter-spacing: .04em; text-transform: uppercase; }
.brand-text b em { font-style: italic; color: var(--orange); }
.brand-text small { font-family: var(--font-display); font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-top: 4px; }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  position: relative; display: block; padding: 10px 12px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.02rem;
  letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.82);
  transition: color .2s;
}
.main-nav a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px;
  background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.main-nav a:hover, .main-nav a.active { color: #fff; }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  position: relative; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: #fff;
  transition: background .2s, border-color .2s;
}
.icon-btn:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.4); }
.icon-btn svg { width: 20px; height: 20px; }
.cart-count {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px; background: var(--grad); color: #fff;
  font-size: .7rem; font-weight: 700; display: grid; place-items: center;
  transform: scale(0); transition: transform .3s var(--ease);
}
.cart-count.show { transform: scale(1); }
.cart-count.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }
.nav-toggle { display: none; }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 90; background: var(--navy-950); color: #fff;
  display: flex; flex-direction: column; padding: 22px 24px 32px;
  transform: translateX(100%); transition: transform .5s var(--ease); overflow-y: auto;
}
.mobile-menu.open { transform: none; }
.mobile-menu-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.mobile-menu nav a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08);
  font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: 2rem; text-transform: uppercase;
}
.mobile-menu nav a.active { color: var(--orange); }
.mobile-menu nav a svg { width: 22px; opacity: .5; }
.mobile-menu .btn { margin-top: 26px; }
.mobile-menu .topbar-social { margin-top: auto; padding-top: 28px; gap: 18px; }
.mobile-menu .topbar-social svg { width: 22px; height: 22px; }

/* ---------- Hero (Home) ---------- */
.hero {
  position: relative; min-height: 100svh; min-height: 100vh;
  display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--navy-950);
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.12); transition: opacity 1.4s ease, transform 7s linear;
}
.hero-slide.active { opacity: 1; transform: scale(1); }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(7,15,26,.55) 0%, rgba(7,15,26,.15) 35%, rgba(7,15,26,.65) 75%, rgba(7,15,26,.95) 100%),
    linear-gradient(90deg, rgba(7,15,26,.7) 0%, rgba(7,15,26,0) 60%);
}
.hero-content { position: relative; z-index: 2; width: 100%; padding: calc(var(--header-h) + 80px) 0 56px; }
.hero h1 { font-style: italic; font-size: clamp(3.2rem, 9.4vw, 8.4rem); line-height: .88; margin-bottom: 22px; }
.hero h1 .outline { -webkit-text-stroke: 2px #fff; color: transparent; }
.hero .lead { color: rgba(255,255,255,.82); margin-bottom: 30px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-bottom {
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 32px;
  margin-top: 64px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.18);
}
.hero-dots { display: flex; gap: 10px; }
.hero-dot { width: 46px; height: 4px; border: 0; padding: 0; background: rgba(255,255,255,.25); border-radius: 4px; overflow: hidden; position: relative; }
.hero-dot span { position: absolute; inset: 0; background: var(--grad); transform: scaleX(0); transform-origin: left; }
.hero-dot.active span { animation: fill var(--slide-ms, 6000ms) linear forwards; }
@keyframes fill { to { transform: scaleX(1); } }
.hero-caption { font-family: var(--font-display); letter-spacing: .2em; text-transform: uppercase; font-size: .85rem; color: rgba(255,255,255,.65); margin-top: 12px; }

.countdown-card {
  display: flex; align-items: center; gap: 22px; padding: 18px 22px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.countdown-card .label { font-family: var(--font-display); font-size: .8rem; letter-spacing: .22em; text-transform: uppercase; color: var(--amber); }
.countdown-card .race-name { font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: 1.35rem; text-transform: uppercase; line-height: 1.05; }
.countdown { display: flex; gap: 10px; }
.countdown div { text-align: center; min-width: 52px; }
.countdown b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 2.1rem; line-height: 1; font-variant-numeric: tabular-nums; }
.countdown small { font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.6); }

.scroll-cue { position: absolute; right: 24px; bottom: 50%; z-index: 2; writing-mode: vertical-rl; font-family: var(--font-display); letter-spacing: .3em; text-transform: uppercase; font-size: .78rem; color: rgba(255,255,255,.6); display: flex; align-items: center; gap: 12px; }
.scroll-cue::after { content: ""; width: 1px; height: 60px; background: linear-gradient(rgba(255,255,255,.6), transparent); }

/* Speed lines (logo motif) */
.speed-lines { position: relative; height: 26px; overflow: hidden; }
.speed-lines::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, transparent 0 8%, var(--ink) 8% 40%, transparent 40%) 0 2px / 100% 3px no-repeat,
    linear-gradient(90deg, transparent 0 20%, var(--orange) 20% 62%, transparent 62%) 0 9px / 100% 3px no-repeat,
    linear-gradient(90deg, transparent 0 4%, var(--ink) 4% 30%, transparent 30%) 0 16px / 100% 3px no-repeat,
    linear-gradient(90deg, transparent 0 14%, var(--amber) 14% 48%, transparent 48%) 0 23px / 100% 3px no-repeat;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; color: #fff; background: var(--navy-900) center/cover no-repeat;
  padding: calc(var(--header-h) + 110px) 0 80px; overflow: hidden; isolation: isolate;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(7,15,26,.7), rgba(7,15,26,.55) 50%, rgba(7,15,26,.92));
}
.page-hero h1 { font-style: italic; max-width: 16ch; }
.page-hero .lead { color: rgba(255,255,255,.8); }
.breadcrumb { display: flex; gap: 8px; font-size: .85rem; color: rgba(255,255,255,.6); margin-bottom: 20px; flex-wrap: wrap; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span::before { content: "/"; margin-right: 8px; opacity: .5; }
.page-hero-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); font-size: .88rem; color: #fff;
}
.chip svg { width: 16px; height: 16px; color: var(--amber); }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 9vw, 128px) 0; position: relative; }
.section-sm { padding: clamp(48px, 6vw, 80px) 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--navy-900); color: #fff; }
.section-dark .lead, .section-dark .muted { color: rgba(255,255,255,.7); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 52px; flex-wrap: wrap; }
.section-head > div { max-width: 720px; }
.section-head h2 { margin-bottom: 14px; }
.section-head .lead { margin: 0; }
.section-head.center { flex-direction: column; align-items: center; text-align: center; }
.section-head.center .lead { margin: 0 auto; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Weekly event cards ---------- */
.week-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.event-card {
  position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.event-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.event-card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--navy-800); }
.event-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.event-card:hover .event-card-media img { transform: scale(1.07); }
.event-day {
  position: absolute; top: 14px; left: 14px; padding: 6px 12px; border-radius: 8px;
  background: var(--ink); color: #fff; font-family: var(--font-display); font-weight: 800; font-style: italic;
  letter-spacing: .1em; text-transform: uppercase; font-size: 1rem;
}
.event-day.alt { background: var(--grad); }
.event-card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.event-card h3 { margin-bottom: 10px; }
.meta-list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; font-size: .92rem; color: var(--muted); }
.meta-list li { display: flex; gap: 10px; align-items: flex-start; }
.meta-list svg { width: 17px; height: 17px; color: var(--orange); flex: none; margin-top: 3px; }
.event-card .btn, .event-card .link-arrow { margin-top: auto; }
.level-tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--bg-mist); color: var(--navy-700); margin-bottom: 12px; }

/* ---------- Race cards ---------- */
.race-list { display: grid; gap: 22px; }
.race-card {
  display: grid; grid-template-columns: 1.05fr 1.4fr; background: #fff; border-radius: var(--radius-lg);
  overflow: hidden; border: 1px solid var(--line); transition: box-shadow .35s var(--ease), transform .35s var(--ease);
}
.race-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.race-card-media { position: relative; min-height: 300px; overflow: hidden; background: var(--navy-800); }
.race-card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.race-card:hover .race-card-media img { transform: scale(1.06); }
.date-badge {
  position: absolute; top: 18px; left: 18px; z-index: 1; background: #fff; color: var(--ink); border-radius: 12px;
  text-align: center; padding: 10px 14px 8px; box-shadow: var(--shadow); min-width: 74px;
}
.date-badge b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 2.2rem; line-height: .9; }
.date-badge span { font-family: var(--font-display); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .82rem; color: var(--orange); }
.race-type {
  position: absolute; bottom: 18px; left: 18px; z-index: 1; padding: 6px 12px; border-radius: 999px;
  background: rgba(7,15,26,.7); backdrop-filter: blur(6px); color: #fff; font-size: .75rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
}
.race-card-body { padding: 34px 36px; display: flex; flex-direction: column; }
.race-card-body h3 { font-size: clamp(1.8rem, 3vw, 2.5rem); font-style: italic; }
.race-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: .93rem; margin-bottom: 16px; }
.race-meta span { display: inline-flex; gap: 7px; align-items: center; }
.race-meta svg { width: 16px; height: 16px; color: var(--orange); }
.distance-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 22px; }
.distance-pill {
  font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; letter-spacing: .06em;
  padding: 6px 14px; border-radius: 8px; border: 1.5px solid var(--ink); text-transform: uppercase;
}
.distance-pill small { font-weight: 600; color: var(--muted); margin-left: 6px; letter-spacing: 0; font-family: var(--font-body); font-size: .78rem; text-transform: none; }
.race-card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 20px; border-top: 1px dashed var(--line); }
.price-from { font-size: .85rem; color: var(--muted); }
.price-from b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; color: var(--ink); line-height: 1; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; }
.status-open { background: #E6F6EC; color: #0C7A3B; }
.status-early { background: #FFF2E6; color: var(--orange-600); }
.status-closed { background: #F1F1F1; color: #666; }
.status-soon { background: #E8EEF8; color: var(--navy-600); }
.race-group-title { margin: 18px 0 -4px; font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.race-group-title:first-child { margin-top: 0; }
.event-tagline { margin: -6px 0 14px; font-family: var(--font-display); font-weight: 700; font-style: italic; font-size: 1.15rem; letter-spacing: .02em; color: var(--orange-600); }
.race-card-featured { border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange); }
.slot-grid { display: grid; gap: 12px; }
.slot-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.slot-card.is-full { background: #F7F7F7; }
.slot-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.slot-bar { height: 8px; border-radius: 99px; background: #EEF1F5; margin: 10px 0; overflow: hidden; }
.slot-bar i { display: block; height: 100%; background: var(--grad); }
.slot-nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 0; text-align: center; }
.slot-nums dt { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.slot-nums dd { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; }
.event-mini-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }

/* Compact race tiles (home) */
.race-tiles { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-auto-rows: 260px; gap: 18px; }
.race-tile { position: relative; border-radius: var(--radius-lg); overflow: hidden; color: #fff; display: flex; align-items: flex-end; isolation: isolate; background: var(--navy-800); }
.race-tile:first-child { grid-row: span 2; }
.race-tile:nth-child(4):last-child { grid-column: span 2; }
.race-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s var(--ease); }
.race-tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7,15,26,0) 25%, rgba(7,15,26,.9)); }
.race-tile:hover img { transform: scale(1.07); }
.race-tile-body { padding: 24px; width: 100%; }
.race-tile .when { font-family: var(--font-display); letter-spacing: .18em; text-transform: uppercase; font-size: .85rem; color: var(--amber); margin-bottom: 6px; }
.race-tile h3 { font-style: italic; margin-bottom: 8px; }
.race-tile:first-child h3 { font-size: clamp(2rem, 3.6vw, 3rem); }
.race-tile .dist { font-size: .9rem; color: rgba(255,255,255,.78); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.race-tile .arrow { width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; flex: none; transition: background .25s, color .25s, transform .3s var(--ease); }
.race-tile .arrow svg { width: 18px; }
.race-tile:hover .arrow { background: var(--orange); color: #fff; transform: rotate(-45deg); }

/* ---------- Benefits ---------- */
.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.1); border-radius: var(--radius-lg); overflow: hidden; }
.benefit { background: var(--navy-900); padding: 36px 32px; transition: background .3s; }
.benefit:hover { background: var(--navy-800); }
.benefit-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: rgba(242,107,29,.12); color: var(--orange); margin-bottom: 22px; }
.benefit-icon svg { width: 28px; height: 28px; }
.benefit h3 { font-size: 1.55rem; }
.benefit p { color: rgba(255,255,255,.68); margin: 0; font-size: .97rem; }
.benefit .stat { font-family: var(--font-display); font-weight: 800; font-size: .95rem; color: var(--amber); letter-spacing: .08em; text-transform: uppercase; margin-top: 16px; display: block; }

/* ---------- Split / Feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split > *, .checkout-layout > *, .grid > *, .race-hero-grid > * { min-width: 0; }
.split-media { position: relative; }
.split-media .main { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow-lg); }
.split-media .main img { width: 100%; height: 100%; object-fit: cover; }
.split-media .float {
  position: absolute; right: -24px; bottom: 36px; width: 46%; aspect-ratio: 1; border-radius: var(--radius-lg);
  overflow: hidden; border: 6px solid #fff; box-shadow: var(--shadow-lg);
}
.split-media .float img { width: 100%; height: 100%; object-fit: cover; }
.split-media .stamp {
  position: absolute; top: -28px; left: -28px; width: 120px; height: 120px; border-radius: 50%;
  background: #fff; box-shadow: var(--shadow); padding: 4px; animation: rotate 26s linear infinite;
}
@keyframes rotate { to { transform: rotate(360deg); } }
.check-list { list-style: none; padding: 0; margin: 24px 0 32px; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list svg { width: 22px; height: 22px; color: #fff; background: var(--grad); border-radius: 50%; padding: 4px; flex: none; margin-top: 1px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat-item { border-left: 3px solid; border-image: var(--grad) 1; padding-left: 20px; }
.stat-item b { display: block; font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1; }
.stat-item span { color: var(--muted); font-size: .95rem; }
.section-dark .stat-item span { color: rgba(255,255,255,.65); }

/* ---------- Recent / Gallery ---------- */
.recent-card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s; }
.recent-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.recent-card .media { aspect-ratio: 16 / 10; overflow: hidden; position: relative; background: var(--navy-800); }
.recent-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.recent-card:hover .media img { transform: scale(1.06); }
.recent-card .body { padding: 22px 24px 26px; }
.recent-card .date { font-size: .82rem; color: var(--orange); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }
.recent-card h3 { font-size: 1.5rem; }
.recent-card p { color: var(--muted); font-size: .95rem; margin: 0; }

.marquee-wrap { overflow: hidden; padding: 16px 0; margin: -26px 0 -16px; position: relative; z-index: 3; }
.marquee { overflow: hidden; background: var(--grad); color: #fff; padding: 18px 0; transform: rotate(-1.5deg); margin: 0 -20px; }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 32s linear infinite; }
.marquee span { font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: clamp(1.5rem, 3vw, 2.4rem); text-transform: uppercase; white-space: nowrap; display: flex; align-items: center; gap: 48px; }
.marquee span::after { content: "✦"; font-style: normal; font-size: .7em; opacity: .75; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Community / Testimonials ---------- */
.community-mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: 14px; grid-auto-flow: dense; }
.community-mosaic figure { margin: 0; border-radius: var(--radius); overflow: hidden; position: relative; background: var(--navy-800); }
.community-mosaic figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.community-mosaic figure:hover img { transform: scale(1.06); }
.community-mosaic .tall { grid-row: span 2; }
.community-mosaic .wide { grid-column: span 2; }
.community-mosaic .quote-tile { background: var(--grad); color: #fff; padding: 28px; display: flex; flex-direction: column; justify-content: space-between; }
.quote-tile p { font-family: var(--font-display); font-weight: 700; font-style: italic; font-size: 1.6rem; line-height: 1.1; text-transform: uppercase; margin: 0; }
.quote-tile cite { font-style: normal; font-size: .88rem; opacity: .9; }

.testimonial { background: #fff; border-radius: var(--radius-lg); padding: 32px; border: 1px solid var(--line); display: flex; flex-direction: column; }
.testimonial .stars { color: var(--amber); display: flex; gap: 2px; margin-bottom: 16px; }
.testimonial .stars svg { width: 18px; height: 18px; fill: currentColor; }
.testimonial blockquote { margin: 0 0 22px; font-size: 1.04rem; }
.testimonial .who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--navy-700); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; flex: none; }
.avatar.alt { background: var(--grad); }
.who b { display: block; line-height: 1.2; }
.who small { color: var(--muted); }

/* ---------- Sponsors / Shop teaser ---------- */
.sponsor-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 210px)); justify-content: center; gap: 16px; }
.sponsor-slot {
  height: 110px; border: 1.5px dashed #C9D2DE; border-radius: var(--radius); display: grid; place-items: center; text-align: center;
  color: #8A98AB; font-family: var(--font-display); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .85rem;
  transition: border-color .25s, color .25s, background .25s;
}
.sponsor-slot:hover { border-color: var(--orange); color: var(--orange); background: #FFF8F2; }
.sponsor-slot svg { width: 22px; height: 22px; margin: 0 auto 6px; }
.sponsor-slot.is-partner { border-style: solid; border-color: var(--line); background: #fff; color: var(--navy-900); padding: 12px; gap: 6px; align-content: center; }
.sponsor-slot.is-partner img { max-height: 54px; max-width: 100%; object-fit: contain; margin: 0 auto; }
.sponsor-slot.is-partner small { color: var(--muted); letter-spacing: .08em; font-size: .7rem; }
.sponsor-slot small { letter-spacing: .08em; font-size: .72rem; }
.sponsor-slot.is-loading { border-style: solid; border-color: var(--line); background: linear-gradient(90deg, #F4F6F9 25%, #E9EDF2 50%, #F4F6F9 75%); background-size: 200% 100%; animation: prc-shimmer 1.4s infinite; }
@keyframes prc-shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .sponsor-slot.is-loading { animation: none; } }
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.album-card { position: relative; display: block; padding: 0; border: 0; border-radius: var(--radius-lg); overflow: hidden; cursor: pointer; background: var(--navy-900); aspect-ratio: 4 / 3; text-align: left; }
.album-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.album-card:hover img, .album-card:focus-visible img { transform: scale(1.04); }
.album-meta { position: absolute; inset: auto 0 0 0; padding: 16px 18px; color: #fff; background: linear-gradient(transparent, rgba(11,22,38,.85)); }
.album-meta b { display: block; font-family: var(--font-display); font-size: 1.35rem; text-transform: uppercase; letter-spacing: .02em; }
.album-meta small { opacity: .8; }
.album-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 16px; }
.album-photos figure { margin: 0; }
.album-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; background: #F4F6F9; }
.album-photos figcaption { font-size: .85rem; color: var(--muted); margin-top: 6px; }

.cta-band {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(40px, 6vw, 72px);
  background: var(--navy-900) center/cover; color: #fff; isolation: isolate;
}
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(7,15,26,.95) 30%, rgba(7,15,26,.4)); }
.cta-band h2 { max-width: 14ch; font-style: italic; }
.cta-band .lead { color: rgba(255,255,255,.8); margin-bottom: 28px; }

/* ---------- Products ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product-card { position: relative; display: flex; flex-direction: column; }
.product-media {
  position: relative; aspect-ratio: 1; border-radius: var(--radius-lg); overflow: hidden;
  background: radial-gradient(circle at 50% 40%, #fff 0%, var(--bg-mist) 75%); display: grid; place-items: center; cursor: pointer;
}
.product-media svg { width: 78%; height: 78%; transition: transform .6s var(--ease); filter: drop-shadow(0 18px 18px rgba(11,22,38,.18)); }
.product-card:hover .product-media svg { transform: scale(1.06) rotate(-2deg); }
.product-badge { position: absolute; top: 14px; left: 14px; padding: 5px 10px; border-radius: 999px; background: var(--ink); color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.product-badge.hot { background: var(--grad); }
.quick-add {
  position: absolute; left: 14px; right: 14px; bottom: 14px; opacity: 0; transform: translateY(10px);
  transition: opacity .3s, transform .3s var(--ease);
}
.product-card:hover .quick-add, .product-card:focus-within .quick-add { opacity: 1; transform: none; }
.mobile-add { display: none; margin-top: 12px; width: 100%; }
.product-info { padding: 16px 4px 0; display: flex; justify-content: space-between; gap: 12px; }
.product-info h3 { font-size: 1.3rem; margin: 0 0 4px; }
.product-info .cat { font-size: .82rem; color: var(--muted); }
.price { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; white-space: nowrap; }
.price s { color: var(--muted); font-weight: 600; font-size: .95rem; margin-right: 6px; }
.swatches { display: flex; gap: 6px; margin-top: 8px; }
.swatch { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); }

.shop-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 34px; }
.filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-tab {
  padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff;
  font-family: var(--font-display); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .92rem;
  transition: all .2s;
}
.filter-tab:hover { border-color: var(--ink); }
.filter-tab.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 20px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 7px; position: relative; }
.field label, .field-label { font-size: .86rem; font-weight: 600; color: var(--ink); }
.field label .req { color: var(--orange); }
.input, .select, .textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff;
  transition: border-color .2s, box-shadow .2s; font-size: 1rem;
}
.textarea { min-height: 130px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235B6B80' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 42px; }
.input:hover, .select:hover, .textarea:hover { border-color: #C5CEDA; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(242,107,29,.14); }
.field.invalid .input, .field.invalid .select, .field.invalid .textarea { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(217,56,56,.1); }
.field-error { display: none; font-size: .8rem; color: var(--danger); font-weight: 500; }
.field.invalid .field-error { display: block; }
.hint { font-size: .8rem; color: var(--muted); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .93rem; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--orange); flex: none; }
.check.invalid { color: var(--danger); }

.option-cards { display: grid; gap: 12px; }
.option-cards.cols-2 { grid-template-columns: repeat(2, 1fr); }
.option-cards.cols-3 { grid-template-columns: repeat(3, 1fr); }
.option-card { position: relative; cursor: pointer; }
.option-card input { position: absolute; opacity: 0; pointer-events: none; }
.option-card .oc-body {
  display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff;
  transition: border-color .2s, box-shadow .2s, background .2s; height: 100%;
}
.option-card .oc-body:hover { border-color: #C5CEDA; }
.option-card input:checked + .oc-body { border-color: var(--orange); background: #FFF8F2; box-shadow: 0 0 0 3px rgba(242,107,29,.14); }
.option-card input:focus-visible + .oc-body { outline: 3px solid var(--amber); outline-offset: 2px; }
.oc-radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #B8C3D1; flex: none; margin-top: 2px; display: grid; place-items: center; transition: border-color .2s; }
.option-card input:checked + .oc-body .oc-radio { border-color: var(--orange); }
.option-card input:checked + .oc-body .oc-radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); }
.oc-main { flex: 1; min-width: 0; }
.oc-title { font-weight: 700; display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.oc-title .oc-price { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; white-space: nowrap; }
.oc-desc { font-size: .85rem; color: var(--muted); margin-top: 2px; }
.oc-price s { color: var(--muted); font-size: .9rem; margin-right: 4px; font-weight: 600; }

.size-options { display: flex; gap: 8px; flex-wrap: wrap; }
.size-opt input { position: absolute; opacity: 0; pointer-events: none; }
.size-opt span {
  display: grid; place-items: center; min-width: 50px; height: 46px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 10px;
  font-weight: 600; cursor: pointer; transition: all .2s; background: #fff;
}
.size-opt span:hover { border-color: var(--ink); }
.size-opt input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.size-opt input:focus-visible + span { outline: 3px solid var(--amber); outline-offset: 2px; }
.color-opt input { position: absolute; opacity: 0; pointer-events: none; }
.color-opt span { display: block; width: 36px; height: 36px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1.5px var(--line); cursor: pointer; transition: box-shadow .2s; }
.color-opt input:checked + span { box-shadow: 0 0 0 2.5px var(--orange); }

.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.qty button { width: 38px; height: 38px; border: 0; background: transparent; display: grid; place-items: center; }
.qty button:hover { background: var(--bg-soft); }
.qty button svg { width: 14px; height: 14px; }
.qty input { width: 38px; border: 0; text-align: center; font-weight: 700; background: transparent; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 36px); }
.card + .card { margin-top: 22px; }
.card-title { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.card-title h3 { margin: 0; font-size: 1.6rem; }
.step-num { width: 36px; height: 36px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; flex: none; }

.pay-info { margin-top: 16px; padding: 18px 20px; background: var(--bg-soft); border-radius: 12px; font-size: .92rem; display: none; }
.pay-info.show { display: block; }
.pay-info dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 10px 0 0; }
.pay-info dt { color: var(--muted); }
.pay-info dd { margin: 0; font-weight: 600; }

/* ---------- Checkout / Summary ---------- */
.checkout-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; align-items: start; }
.summary { position: sticky; top: calc(var(--header-h) + 20px); }
.summary-card { background: var(--navy-900); color: #fff; border-radius: var(--radius-lg); padding: 28px; }
.summary-card h3 { font-size: 1.6rem; }
.summary-lines { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 14px; }
.summary-line { display: flex; gap: 14px; align-items: center; }
.summary-thumb { width: 60px; height: 60px; border-radius: 12px; background: rgba(255,255,255,.08); display: grid; place-items: center; flex: none; position: relative; }
.summary-thumb svg { width: 80%; height: 80%; }
.summary-thumb .q { position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; border-radius: 999px; background: var(--orange); font-size: .72rem; font-weight: 700; display: grid; place-items: center; padding: 0 5px; }
.summary-line .info { flex: 1; min-width: 0; font-size: .92rem; }
.summary-line .info small { color: rgba(255,255,255,.6); display: block; }
.summary-totals { border-top: 1px solid rgba(255,255,255,.14); padding-top: 16px; display: grid; gap: 10px; font-size: .95rem; }
.summary-totals div { display: flex; justify-content: space-between; gap: 12px; }
.summary-totals .muted { color: rgba(255,255,255,.65); }
.summary-totals .total { font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; text-transform: uppercase; border-top: 1px solid rgba(255,255,255,.14); padding-top: 14px; margin-top: 4px; }
.summary-totals .discount { color: #7BE3A6; }
.promo-row { display: flex; gap: 8px; margin: 18px 0 6px; }
.promo-row .input { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); color: #fff; min-height: 46px; }
.promo-row .input::placeholder { color: rgba(255,255,255,.45); }
.promo-msg { font-size: .82rem; min-height: 1.2em; }
.promo-msg.ok { color: #7BE3A6; }
.promo-msg.err { color: #FF9A9A; }
.secure-note { display: flex; gap: 10px; align-items: center; font-size: .82rem; color: rgba(255,255,255,.6); margin-top: 16px; }
.secure-note svg { width: 18px; height: 18px; flex: none; color: var(--amber); }

/* Confirmation */
.confirm { text-align: center; max-width: 760px; margin: 0 auto; }
.confirm-icon { width: 92px; height: 92px; margin: 0 auto 24px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; box-shadow: 0 20px 40px -14px rgba(242,107,29,.6); animation: pop .6s var(--ease); }
.confirm-icon svg { width: 44px; height: 44px; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .6s .3s var(--ease) forwards; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.ticket { margin: 34px auto 0; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.ticket-head { background: var(--navy-900); color: #fff; padding: 22px 28px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.ticket-head img { width: 52px; height: 52px; border-radius: 50%; }
.ticket-id { font-family: var(--font-display); font-weight: 800; font-size: 1.8rem; letter-spacing: .06em; }
.ticket-id small { display: block; font-size: .72rem; letter-spacing: .24em; color: var(--amber); font-weight: 700; }
.ticket-body { padding: 24px 28px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 28px; }
.ticket-body div small { display: block; color: var(--muted); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; }
.ticket-body div b { font-weight: 600; }
.ticket-foot { border-top: 2px dashed var(--line); padding: 18px 28px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; background: var(--bg-soft); }
.confirm-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.notice { display: flex; gap: 12px; padding: 16px 18px; border-radius: 12px; background: #FFF6E8; border: 1px solid #FBDDB0; font-size: .92rem; text-align: left; margin-top: 22px; }
.notice svg { width: 22px; height: 22px; color: var(--orange); flex: none; }
.notice.info { background: #EEF4FB; border-color: #CFE0F3; }
.notice.info svg { color: var(--navy-600); }

/* ---------- Steps / Progress ---------- */
.stepper { display: flex; gap: 0; margin-bottom: 34px; counter-reset: step; }
.stepper li { flex: 1; list-style: none; position: relative; text-align: center; font-size: .82rem; font-weight: 600; color: var(--muted); padding-top: 46px; }
.stepper li::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 36px; height: 36px; border-radius: 50%;
  background: #fff; border: 2px solid var(--line); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; z-index: 1;
  transition: all .3s;
}
.stepper li::after { content: ""; position: absolute; top: 17px; left: -50%; width: 100%; height: 2px; background: var(--line); }
.stepper li:first-child::after { display: none; }
.stepper li.done, .stepper li.current { color: var(--ink); }
.stepper li.done::before { background: var(--ink); border-color: var(--ink); color: #fff; content: "✓"; }
.stepper li.current::before { background: var(--grad); border-color: transparent; color: #fff; }
.stepper li.done::after, .stepper li.current::after { background: var(--ink); }
.stepper { padding: 0; }
.form-step { display: none; animation: fadeUp .5s var(--ease); }
.form-step.active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } }
.step-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; flex-wrap: wrap; }

/* ---------- Drawer / Modal / Toast ---------- */
.overlay { position: fixed; inset: 0; background: rgba(7,15,26,.6); backdrop-filter: blur(3px); z-index: 95; opacity: 0; pointer-events: none; transition: opacity .35s; }
.overlay.show { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); z-index: 100; background: #fff;
  display: flex; flex-direction: column; transform: translateX(100%); transition: transform .45s var(--ease); box-shadow: var(--shadow-lg);
}
.drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { margin: 0; font-size: 1.7rem; }
.close-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; transition: background .2s, transform .3s var(--ease); }
.close-btn:hover { background: var(--bg-soft); transform: rotate(90deg); }
.close-btn svg { width: 18px; height: 18px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 24px; }
.drawer-foot { padding: 20px 24px 24px; border-top: 1px solid var(--line); background: var(--bg-soft); }
.drawer-foot .row { display: flex; justify-content: space-between; margin-bottom: 6px; }
.drawer-foot .row b { font-family: var(--font-display); font-size: 1.5rem; }
.free-ship { font-size: .82rem; color: var(--muted); margin-bottom: 14px; }
.free-ship .bar { height: 6px; background: var(--bg-mist); border-radius: 6px; overflow: hidden; margin-top: 8px; }
.free-ship .bar span { display: block; height: 100%; background: var(--grad); border-radius: 6px; transition: width .5s var(--ease); }
.cart-item { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cart-item:last-child { border-bottom: 0; }
.cart-thumb { width: 84px; height: 84px; border-radius: 12px; background: var(--bg-soft); display: grid; place-items: center; flex: none; }
.cart-thumb svg { width: 82%; height: 82%; }
.cart-item .info { flex: 1; min-width: 0; }
.cart-item .info h4 { font-size: 1.1rem; margin-bottom: 4px; }
.cart-item .info small { color: var(--muted); display: block; margin-bottom: 10px; }
.cart-item .right { text-align: right; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; }
.remove-btn { border: 0; background: none; color: var(--muted); font-size: .8rem; text-decoration: underline; padding: 0; }
.remove-btn:hover { color: var(--danger); }
.empty-state { text-align: center; padding: 56px 12px; color: var(--muted); }
.empty-state svg { width: 64px; height: 64px; margin: 0 auto 16px; color: #C3CCD8; }
.empty-state h4 { color: var(--ink); font-size: 1.5rem; }

.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; pointer-events: none; opacity: 0; transition: opacity .3s; }
.modal.open { pointer-events: auto; opacity: 1; }
.modal-dialog {
  position: relative; width: min(920px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); transform: translateY(20px) scale(.98); transition: transform .4s var(--ease);
}
.modal.open .modal-dialog { transform: none; }
.modal-dialog.sm { width: min(560px, 100%); }
.modal-dialog.lg { width: min(1100px, 100%); }
.modal-close { position: absolute; top: 16px; right: 16px; z-index: 2; }
.modal-body { padding: clamp(24px, 4vw, 40px); }
.product-modal { display: grid; grid-template-columns: 1fr 1fr; }
.product-modal .pm-media { background: radial-gradient(circle at 50% 40%, #fff 0%, var(--bg-mist) 80%); display: grid; place-items: center; padding: 30px; min-height: 380px; }
.product-modal .pm-media svg { width: 90%; filter: drop-shadow(0 20px 20px rgba(11,22,38,.2)); }
.pm-info { padding: clamp(24px, 4vw, 40px); display: flex; flex-direction: column; gap: 18px; }
.pm-info h2 { font-size: 2.4rem; margin: 0; font-style: italic; }
.pm-info .price { font-size: 1.8rem; }
.pm-features { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: .9rem; color: var(--muted); }
.pm-features li::before { content: "—"; color: var(--orange); margin-right: 8px; }

.toast-stack { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 200; display: grid; gap: 10px; width: min(420px, calc(100% - 32px)); }
.toast {
  display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 14px; background: var(--navy-900); color: #fff;
  box-shadow: var(--shadow-lg); font-size: .93rem; animation: toastIn .45s var(--ease);
}
.toast.out { animation: toastOut .3s ease forwards; }
.toast svg { width: 22px; height: 22px; flex: none; color: #7BE3A6; }
.toast.error svg { color: #FF9A9A; }
.toast a { margin-left: auto; color: var(--amber); font-weight: 600; white-space: nowrap; }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px) scale(.96); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px); } }

/* ---------- Tabs / Accordion / Tables ---------- */
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 30px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { padding: 14px 18px; border: 0; background: none; font-family: var(--font-display); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab.active { color: var(--ink); border-color: var(--orange); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeUp .4s var(--ease); }

.accordion { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-btn { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; background: none; border: 0; text-align: left; font-weight: 600; font-size: 1.05rem; }
.acc-btn .pm { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; flex: none; transition: transform .3s var(--ease), background .2s; }
.acc-btn .pm svg { width: 14px; height: 14px; }
.acc-item.open .acc-btn .pm { transform: rotate(45deg); background: var(--ink); color: #fff; border-color: var(--ink); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.acc-panel > div { overflow: hidden; color: var(--muted); }
.acc-item.open .acc-panel { grid-template-rows: 1fr; }
.acc-panel p { padding-bottom: 20px; margin: 0; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: .94rem; min-width: 560px; }
.table th, .table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.table th { background: var(--bg-soft); font-family: var(--font-display); letter-spacing: .12em; text-transform: uppercase; font-size: .85rem; }
.table tr:last-child td { border-bottom: 0; }

/* Race detail */
.race-hero-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: end; }
.race-hero-card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius-lg); padding: 24px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.race-hero-card .countdown { margin: 14px 0 20px; justify-content: space-between; }
.info-strip { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); margin-top: -50px; position: relative; z-index: 3; overflow: hidden; }
.info-strip div { padding: 24px 26px; border-right: 1px solid var(--line); }
.info-strip div:last-child { border-right: 0; }
.info-strip small { display: block; font-size: .75rem; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; font-weight: 600; margin-bottom: 4px; }
.info-strip b { font-family: var(--font-display); font-weight: 800; font-size: 1.45rem; text-transform: uppercase; }
.dist-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.dist-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; position: relative; overflow: hidden; background: #fff; display: flex; flex-direction: column; transition: border-color .3s, transform .3s var(--ease), box-shadow .3s; }
.dist-card:hover { border-color: var(--orange); transform: translateY(-4px); box-shadow: var(--shadow); }
.dist-card .big { font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: 3.4rem; line-height: .9; }
.dist-card .big small { font-size: 1.3rem; }
.dist-card .name { font-weight: 700; margin: 6px 0 14px; }
.dist-card ul { list-style: none; padding: 0; margin: 0 0 20px; font-size: .9rem; color: var(--muted); display: grid; gap: 6px; }
.dist-card ul li { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dashed var(--line); padding-bottom: 6px; }
.dist-card ul li b { color: var(--ink); font-weight: 600; }
.dist-card .fee { font-family: var(--font-display); font-weight: 800; font-size: 1.8rem; margin-bottom: 14px; }
.dist-card .fee s { font-size: 1.05rem; color: var(--muted); margin-right: 8px; }
.dist-card .btn { margin-top: auto; }
.elev-chart { width: 100%; height: 160px; }
.schedule-list { list-style: none; padding: 0; margin: 0; }
.schedule-list li { display: grid; grid-template-columns: 110px 1fr; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.schedule-list time { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; color: var(--orange); }

.map-frame { width: 100%; height: 420px; border: 0; border-radius: var(--radius-lg); background: var(--bg-mist); }

/* Weekly timetable */
.timetable { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.tt-day { border-radius: var(--radius); background: #fff; border: 1px solid var(--line); padding: 16px 14px; min-height: 170px; display: flex; flex-direction: column; gap: 8px; }
.tt-day h4 { font-size: 1.05rem; letter-spacing: .1em; color: var(--muted); margin: 0 0 4px; }
.tt-day.has { border-color: transparent; background: var(--navy-900); color: #fff; }
.tt-day.has h4 { color: var(--amber); }
.tt-day .tt-ev { font-family: var(--font-display); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 1.25rem; line-height: 1; }
.tt-day .tt-time { font-size: .82rem; color: rgba(255,255,255,.7); }
.tt-day .rest { color: #9AA6B6; font-size: .85rem; margin-top: auto; }
.tt-day.today { box-shadow: 0 0 0 3px var(--orange); }
.pace-table td:first-child { font-weight: 700; }

/* Adventures */
.adv-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s; }
.adv-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.adv-media { position: relative; aspect-ratio: 16 / 11; overflow: hidden; background: var(--navy-800); }
.adv-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.adv-card:hover .adv-media img { transform: scale(1.07); }
.adv-media .tag { position: absolute; top: 16px; left: 16px; }
.adv-media .diff { position: absolute; top: 16px; right: 16px; background: rgba(7,15,26,.7); color: #fff; padding: 6px 12px; border-radius: 999px; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; backdrop-filter: blur(6px); display: flex; gap: 6px; align-items: center; }
.diff-dots { display: inline-flex; gap: 3px; }
.diff-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.3); }
.diff-dots i.on { background: var(--amber); }
.adv-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.adv-body h3 { font-style: italic; font-size: 1.8rem; }
.adv-body .where { color: var(--orange); font-weight: 600; font-size: .9rem; display: flex; gap: 6px; align-items: center; margin-bottom: 10px; }
.adv-body .where svg { width: 16px; height: 16px; }
.adv-body p { color: var(--muted); font-size: .95rem; }
.adv-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 6px 0 20px; }
.adv-facts div { background: var(--bg-soft); border-radius: 10px; padding: 10px 12px; }
.adv-facts small { display: block; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.adv-facts b { font-family: var(--font-display); font-size: 1.15rem; font-weight: 800; }
.adv-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.spots { font-size: .82rem; color: var(--muted); }
.spots .bar { width: 120px; height: 5px; border-radius: 5px; background: var(--bg-mist); margin-top: 6px; overflow: hidden; }
.spots .bar span { display: block; height: 100%; background: var(--grad); }

/* Values / About */
.value-card { padding: 32px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); transition: border-color .3s, transform .3s var(--ease); }
.value-card:hover { border-color: var(--orange); transform: translateY(-4px); }
.value-card .num { font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: 3.2rem; line-height: 1; margin-bottom: 14px; }
.value-card p { color: var(--muted); margin: 0; }
.timeline { position: relative; display: grid; gap: 30px; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--amber), var(--orange), rgba(242,107,29,.1)); }
.tl-item { position: relative; }
.tl-item::before { content: ""; position: absolute; left: -34px; top: 6px; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 4px solid var(--orange); }
.tl-item .yr { font-family: var(--font-display); font-weight: 800; color: var(--orange); letter-spacing: .14em; }
.tl-item h4 { margin: 4px 0 6px; font-size: 1.4rem; }
.tl-item p { color: var(--muted); margin: 0; }
.role-card { text-align: center; padding: 30px 22px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); }
.role-card .avatar { width: 84px; height: 84px; font-size: 1.8rem; margin: 0 auto 16px; }
.role-card h4 { margin-bottom: 4px; }
.role-card p { color: var(--muted); font-size: .9rem; margin: 8px 0 0; }

/* Contact */
.contact-cards { display: grid; gap: 14px; }
.contact-card { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: border-color .25s, transform .25s var(--ease); }
a.contact-card:hover { border-color: var(--orange); transform: translateX(4px); }
.contact-card .ic { width: 48px; height: 48px; border-radius: 12px; background: var(--grad); color: #fff; display: grid; place-items: center; flex: none; }
.contact-card .ic svg { width: 22px; height: 22px; }
.contact-card small { display: block; color: var(--muted); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
.contact-card b { font-weight: 600; word-break: break-word; }

/* Bookings */
.booking-row { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.booking-row + .booking-row { margin-top: 12px; }
.booking-row .kind { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--bg-soft); color: var(--orange); }
.booking-row .kind svg { width: 24px; height: 24px; }
.booking-row h4 { margin: 0 0 4px; font-size: 1.2rem; }
.booking-row small { color: var(--muted); }
.booking-row .right { text-align: right; display: grid; gap: 6px; justify-items: end; }

/* Legal */
.legal { max-width: 820px; }
.legal h2 { font-size: 1.9rem; margin-top: 2em; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: #34445A; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.legal-toc { position: sticky; top: calc(var(--header-h) + 24px); list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; font-size: .92rem; }
.legal-toc a { display: block; padding: 8px 14px; border-left: 2px solid var(--line); color: var(--muted); }
.legal-toc a:hover { color: var(--ink); border-color: var(--orange); }
.legal-layout { display: grid; grid-template-columns: 240px 1fr; gap: 56px; }

/* ---------- Newsletter + Footer (UTMB inspired) ---------- */
.newsletter {
  background: var(--grad); color: #fff; border-radius: var(--radius-lg); padding: clamp(32px, 5vw, 56px);
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; position: relative; overflow: hidden;
}
.newsletter::after { content: "PRC"; position: absolute; right: -20px; bottom: -60px; font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: 16rem; line-height: 1; color: rgba(255,255,255,.1); pointer-events: none; }
.newsletter h2 { font-style: italic; margin: 0 0 8px; }
.newsletter p { margin: 0; opacity: .9; }
.newsletter form { display: flex; gap: 10px; position: relative; z-index: 1; flex-wrap: wrap; }
.newsletter .input { flex: 1; min-width: 200px; border: 0; min-height: 56px; border-radius: 999px; padding: 0 22px; }
.newsletter .btn { min-height: 56px; }
.newsletter .field-error { color: #fff; font-weight: 600; width: 100%; padding-left: 20px; }

.site-footer { background: var(--navy-950); color: rgba(255,255,255,.7); padding-top: 110px; margin-top: -60px; }
.footer-pre { position: relative; z-index: 2; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand img { width: 108px; height: 108px; border-radius: 50%; margin-bottom: 18px; }
.footer-brand .name { font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: 1.9rem; text-transform: uppercase; color: #fff; line-height: 1; }
.footer-brand .name em { color: var(--orange); }
.footer-brand .tag { font-family: var(--font-display); letter-spacing: .3em; text-transform: uppercase; font-size: .78rem; margin: 8px 0 18px; color: rgba(255,255,255,.55); }
.footer-brand p { font-size: .93rem; max-width: 34ch; }
.footer-col h4 { color: #fff; font-size: 1.05rem; letter-spacing: .16em; margin-bottom: 18px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: .94rem; }
.footer-col a { transition: color .2s, padding .2s; }
.footer-col a:hover { color: #fff; padding-left: 4px; }
.footer-col li { display: flex; gap: 10px; align-items: flex-start; }
.footer-col li svg { width: 16px; height: 16px; color: var(--orange); flex: none; margin-top: 4px; }
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.socials a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); display: grid; place-items: center; color: #fff; transition: background .25s, border-color .25s, transform .25s var(--ease); }
.socials a:hover { background: var(--orange); border-color: var(--orange); transform: translateY(-3px); }
.socials svg { width: 18px; height: 18px; }
.footer-giant { font-family: var(--font-display); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: clamp(2rem, 7.4vw, 6.6rem); line-height: .85; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.14); text-align: center; padding: 40px 0 10px; white-space: nowrap; overflow: hidden; user-select: none; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; padding: 24px 0 32px; font-size: .85rem; border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-bottom a:hover { color: #fff; }

.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 80; width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 26px -8px rgba(37,211,102,.7); transition: transform .3s var(--ease); }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }
.to-top { position: fixed; right: 26px; bottom: 90px; z-index: 80; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; display: grid; place-items: center; opacity: 0; transform: translateY(10px); pointer-events: none; transition: all .3s var(--ease); box-shadow: var(--shadow); }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 20px; height: 20px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; } .reveal-d2 { transition-delay: .16s; } .reveal-d3 { transition-delay: .24s; } .reveal-d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .main-nav a { padding: 10px 8px; font-size: .95rem; letter-spacing: .06em; }
  .header-actions .btn { display: none; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .week-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
  :root { --header-h: 68px; }
  .main-nav { display: none; }
  .nav-toggle { display: grid; }
  .header-actions { margin-left: auto; }
  .brand img { width: 46px; height: 46px; }
  .grid-4, .stats { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .race-card { grid-template-columns: 1fr; }
  .race-card-media { min-height: 240px; }
  .race-tiles { grid-template-columns: 1fr 1fr; grid-auto-rows: 240px; }
  .race-tiles .race-tile:first-child { grid-column: span 2; grid-row: span 1; }
  .split { grid-template-columns: 1fr; }
  .split-media { max-width: 560px; }
  .checkout-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .community-mosaic { grid-template-columns: repeat(2, 1fr); }
  .newsletter { grid-template-columns: 1fr; }
  .race-hero-grid { grid-template-columns: 1fr; }
  .info-strip { grid-template-columns: repeat(2, 1fr); }
  .info-strip div:nth-child(2) { border-right: 0; }
  .info-strip div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .timetable { grid-template-columns: repeat(4, 1fr); }
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { display: none; }
  .scroll-cue { display: none; }
}
@media (max-width: 720px) {
  .container { padding: 0 16px; }
  .topbar-announce { display: none; }
  .topbar .container { justify-content: center; }
  .topbar-right { gap: 14px; }
  .topbar-right > a[href^="mailto"] { display: none; }
  .brand-text small { display: none; }
  .brand-text b { font-size: 1rem; }
  .site-header .container { gap: 12px; }
  .header-actions { gap: 8px; }
  .icon-btn { width: 40px; height: 40px; }
  .brand { gap: 10px; }
  .grid-2, .grid-3, .grid-4, .benefit-grid, .week-strip { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .product-info { flex-direction: column; gap: 2px; }
  .product-info h3 { font-size: 1.1rem; }
  .product-media .quick-add { display: none; }
  .mobile-add { display: inline-flex; }
  .race-tiles { grid-template-columns: 1fr; grid-auto-rows: 260px; }
  .race-tiles .race-tile:first-child { grid-column: auto; }
  .race-card-body { padding: 24px 22px; }
  .hero-bottom { grid-template-columns: 1fr; margin-top: 40px; }
  .countdown-card { flex-direction: column; align-items: flex-start; gap: 12px; }
  .countdown b { font-size: 1.8rem; }
  .form-grid { grid-template-columns: 1fr; }
  .option-cards.cols-2, .option-cards.cols-3 { grid-template-columns: 1fr; }
  .product-modal { grid-template-columns: 1fr; }
  .product-modal .pm-media { min-height: 260px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .community-mosaic { grid-auto-rows: 160px; }
  .community-mosaic .wide { grid-column: span 2; }
  .sponsor-row { grid-template-columns: repeat(2, 1fr); }
  .split-media .float { right: -6px; width: 42%; }
  .split-media .stamp { width: 86px; height: 86px; top: -16px; left: -10px; }
  .ticket-body { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .info-strip { grid-template-columns: 1fr 1fr; }
  .info-strip div { padding: 18px; }
  .timetable { grid-template-columns: repeat(2, 1fr); }
  .booking-row { grid-template-columns: 1fr; }
  .booking-row .right { justify-items: start; text-align: left; }
  .adv-facts { grid-template-columns: repeat(3, 1fr); }
  .stepper li { font-size: 0; }
  .schedule-list li { grid-template-columns: 80px 1fr; }
  .wa-float { width: 52px; height: 52px; right: 16px; bottom: 16px; }
  .to-top { right: 20px; bottom: 80px; }
}

/* ---------- Print (tickets / receipts) ---------- */
@media print {
  .topbar, .site-header, .site-footer, .wa-float, .to-top, .confirm-actions, .page-hero, .newsletter, .no-print { display: none !important; }
  body { background: #fff; }
  .section { padding: 0; }
  .ticket { box-shadow: none; }
  .ticket-head { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Contact layout */
.contact-layout { grid-template-columns: 1fr 1.5fr; }
@media (max-width: 1024px) { .contact-layout { grid-template-columns: 1fr; } }

[id] { scroll-margin-top: calc(var(--header-h) + 24px); }

/* ==========================================================================
   Registration system, runner dashboard & admin
   ========================================================================== */
.env-badge { position: fixed; left: 16px; bottom: 16px; z-index: 300; background: #7A1F1F; color: #fff; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 7px 12px; border-radius: 8px; box-shadow: var(--shadow); pointer-events: none; }
.auth-box { max-width: 460px; }
.auth-box h3 { font-size: 1.7rem; margin-bottom: 6px; }
.otp-input { font-size: 1.6rem; letter-spacing: .5em; text-align: center; font-weight: 700; }
.auth-links { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.link-btn { background: none; border: 0; padding: 0; color: var(--orange); font-weight: 600; text-decoration: underline; font-size: .88rem; cursor: pointer; }
.link-btn:disabled { color: var(--muted); text-decoration: none; cursor: default; }
.form-msg { margin: 12px 0 0; font-size: .9rem; min-height: 1.2em; }
.form-msg.err { color: var(--danger); font-weight: 600; }
.form-msg.ok { color: var(--success); font-weight: 600; }
.dropzone { display: flex; align-items: center; justify-content: center; min-height: 130px; border: 2px dashed #C9D2DE; border-radius: 14px; padding: 18px; cursor: pointer; background: var(--bg-soft); transition: border-color .2s, background .2s; text-align: center; }
.dropzone:hover, .dropzone:focus-visible { border-color: var(--orange); background: #FFF8F2; }
.field.invalid .dropzone { border-color: var(--danger); }
.dz-empty { display: grid; gap: 4px; justify-items: center; color: var(--muted); }
.dz-empty svg { width: 28px; height: 28px; color: var(--orange); transform: rotate(180deg); }
.dz-empty b { color: var(--ink); }
.dz-preview { display: flex; gap: 14px; align-items: center; text-align: left; width: 100%; }
.dz-preview img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.dz-preview small { display: block; color: var(--muted); }
.pdf-chip { width: 64px; height: 76px; border-radius: 10px; background: #D93838; color: #fff; display: grid; place-items: center; font-weight: 800; flex: none; }
.pay-accounts { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.pay-account { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; background: #fff; }
.pa-method { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--orange); margin-bottom: 8px; }
.pay-account dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0; font-size: .92rem; }
.pay-account dt { color: var(--muted); }
.pay-account dd { margin: 0; font-weight: 600; word-break: break-word; }
.amount-box { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px 20px; border-radius: 14px; background: var(--navy-900); color: #fff; margin-bottom: 18px; }
.amount-box b { font-family: var(--font-display); font-size: 2rem; }
.amount-box small { color: rgba(255,255,255,.7); display: block; }
.status-track { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 0; }
.status-track li { position: relative; padding: 0 0 18px 34px; color: var(--muted); }
.status-track li::before { content: ""; position: absolute; left: 6px; top: 4px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid #C9D2DE; background: #fff; }
.status-track li::after { content: ""; position: absolute; left: 12px; top: 20px; bottom: 0; width: 2px; background: var(--line); }
.status-track li:last-child::after { display: none; }
.status-track li.done { color: var(--ink); }
.status-track li.done::before { background: var(--success); border-color: var(--success); }
.status-track li.now { color: var(--ink); font-weight: 700; }
.status-track li.now::before { background: var(--orange); border-color: var(--orange); box-shadow: 0 0 0 4px rgba(242,107,29,.2); }
.status-track li.bad::before { background: var(--danger); border-color: var(--danger); }
.reg-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.reg-card + .reg-card { margin-top: 18px; }
.reg-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 20px 22px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.reg-card-head h3 { margin: 0 0 4px; font-size: 1.5rem; }
.reg-card-body { padding: 20px 22px; }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px 20px; margin: 0 0 16px; }
.kv div small { display: block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.kv div b { font-weight: 600; }
.loading-block { display: grid; place-items: center; min-height: 200px; color: var(--muted); gap: 10px; }
.loading-block::before { content: ""; width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--orange); animation: spin .8s linear infinite; }
.waiver-box { max-height: 200px; overflow-y: auto; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-soft); font-size: .9rem; white-space: pre-wrap; margin-bottom: 14px; }
.review-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 24px; margin: 0; }
.review-list dt { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.review-list dd { margin: 0 0 6px; font-weight: 600; }
.edit-link { float: right; font-size: .85rem; }

/* Admin */
.admin-body { background: var(--bg-soft); }
.admin-shell { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: start; }
.admin-nav { position: sticky; top: calc(var(--header-h) + 16px); background: var(--navy-900); color: #fff; border-radius: var(--radius-lg); padding: 16px; display: grid; gap: 4px; }
.admin-nav button { text-align: left; background: none; border: 0; color: rgba(255,255,255,.75); padding: 11px 12px; border-radius: 10px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.admin-nav button:hover { background: rgba(255,255,255,.08); color: #fff; }
.admin-nav button.active { background: var(--grad); color: #fff; }
.admin-nav .count { background: rgba(255,255,255,.2); border-radius: 999px; padding: 1px 8px; font-size: .75rem; }
.admin-nav .who { font-size: .8rem; color: rgba(255,255,255,.6); padding: 10px 12px 4px; border-top: 1px solid rgba(255,255,255,.1); margin-top: 8px; word-break: break-all; }
.admin-panel { background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line); padding: clamp(18px, 3vw, 28px); min-width: 0; }
.admin-panel h2 { font-size: 2rem; margin-bottom: 16px; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.toolbar .input, .toolbar .select { min-height: 44px; width: auto; flex: 1 1 180px; }
.data-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.data-table th { text-align: left; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 10px 12px; border-bottom: 2px solid var(--line); white-space: nowrap; }
.data-table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table tr.clickable { cursor: pointer; }
.data-table tr.clickable:hover td { background: #FFF8F2; }
.data-table small { color: var(--muted); display: block; }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat-card { border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.stat-card small { color: var(--muted); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; }
.stat-card b { display: block; font-family: var(--font-display); font-size: 1.9rem; }
.bar-row { display: grid; grid-template-columns: 1fr 2fr auto; gap: 12px; align-items: center; margin-bottom: 10px; font-size: .9rem; }
.bar-row .bar { height: 8px; border-radius: 8px; background: var(--bg-mist); overflow: hidden; }
.bar-row .bar span { display: block; height: 100%; background: var(--grad); }
.side-panel { position: fixed; top: 0; right: 0; bottom: 0; width: min(720px, 100%); background: #fff; z-index: 100; overflow-y: auto; box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform .4s var(--ease); }
.side-panel.open { transform: none; }
.side-panel .sp-head { position: sticky; top: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 18px 22px; display: flex; justify-content: space-between; align-items: center; gap: 12px; z-index: 2; }
.side-panel .sp-body { padding: 22px; }
.sp-section { margin-bottom: 26px; }
.sp-section h4 { font-size: 1.15rem; margin-bottom: 12px; }
.proof-view { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--bg-soft); margin: 10px 0; }
.proof-view img { width: 100%; max-height: 520px; object-fit: contain; background: #222; }
.proof-view iframe { width: 100%; height: 520px; border: 0; background: #fff; }
.warn-flag { color: var(--danger); font-weight: 700; font-size: .85rem; }
.submission { border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-bottom: 14px; }
.submission.pending { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(242,107,29,.1); }
.timeline-mini { list-style: none; padding: 0; margin: 0; font-size: .85rem; display: grid; gap: 8px; }
.timeline-mini li { padding-left: 14px; border-left: 2px solid var(--line); }
.timeline-mini small { color: var(--muted); }
.qr-box { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin: 16px 0; }
.qr-box img { width: 180px; height: 180px; border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 8px; }
.cat-row { display: grid; grid-template-columns: 1.4fr .8fr 1fr .8fr .7fr .7fr .7fr auto; gap: 8px; align-items: end; margin-bottom: 8px; }
.cat-row .input { min-height: 42px; padding: 8px 10px; }
@media (max-width: 1024px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-nav { position: static; grid-auto-flow: column; overflow-x: auto; grid-auto-columns: max-content; }
  /* Keep Sign out reachable on tablets/phones; the email is dropped to save space. */
  .admin-nav .who { display: flex; align-items: center; font-size: 0; border-top: 0; border-left: 1px solid rgba(255,255,255,.1); margin: 0 0 0 8px; padding: 4px 12px; }
  .admin-nav .who br { display: none; }
  .admin-nav .who .link-btn { font-size: .85rem; margin-top: 0 !important; white-space: nowrap; }
}
@media (max-width: 720px) {
  .review-list { grid-template-columns: 1fr; }
  .data-table thead { display: none; }
  .data-table, .data-table tbody, .data-table tr, .data-table td { display: block; width: 100%; }
  .data-table tr { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; padding: 6px; }
  .data-table td { border: 0; padding: 6px 8px; }
  .cat-row { grid-template-columns: 1fr 1fr; }
  .bar-row { grid-template-columns: 1fr; gap: 4px; }
}
@media print { .env-badge { display: none; } }
@media (max-width: 720px) { .env-badge { left: 8px; bottom: 8px; font-size: .62rem; padding: 5px 8px; max-width: 58%; opacity: .92; } }

/* Smallest phones (320–359 px): the logo, club name and two header buttons must fit without sideways scrolling. */
@media (max-width: 359px) {
  .brand img { width: 40px; height: 40px; }
  .brand { gap: 8px; }
  .brand-text b { font-size: .86rem; }
  .site-header .container { gap: 8px; }
  .header-actions { gap: 6px; }
  .icon-btn { width: 38px; height: 38px; }
}
@media (max-width: 400px) {
  /* Long button labels wrap rather than push the page sideways. */
  .btn { white-space: normal; text-align: center; line-height: 1.25; }
  .btn-lg { padding: 0 20px; font-size: 1.05rem; }
  .slot-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 10px; }
}
