/* ============================================================
   Calgary Stampede Venue Services - Orientation Microsite
   POC stylesheet. Hand-written, token-driven, ~static.
   Brand authority: CS Quick Reference. Stampede Red PMS 485 = #D52B1E (RGB 213/43/30).
   Supersedes PRD/DL-145 #DA291C per Alex ruling 2026-06-08 (match the client's own value).
   Fonts: --font-display (Engravers analog) / --font-body (Today Shop).
   Venue hexes PROVISIONAL for POC; verify vs CS Style Guide pre-print.
   ============================================================ */

/* ---- Self-hosted brand font (real Today Shop, Light weight) ---- */
@font-face {
  font-family: "Today Shop";
  src: url("fonts/todayshop-light.otf") format("opentype");
  font-weight: 300 600;
  font-display: swap;
}

:root {
  /* Brand core (PRD s10) */
  --cs-red: #D52B1E;        /* Stampede Red, PMS 485, RGB 213/43/30 (CS Quick Reference) */
  --cs-red-deep: #B12419;
  --cs-blue: #005EB8;
  --cs-navy: #353249;       /* Pantone 533 */
  --ink: #1c1b22;
  --ink-soft: #4a4853;
  --paper: #ffffff;
  --paper-warm: #faf7f3;
  --line: #e7e2da;

  /* Venue colors - hexes from CS official Vibrant palette (Quick Reference Guide);
     venue->color ASSIGNMENT still provisional pending the entrance-map taxonomy. */
  --bmo: #005EB8;            --bmo-ink: #ffffff;   /* BMO Centre blue (DL-145) */
  --gmc: #FDC82F;           --gmc-ink: #2a2410;   /* CS Vibrant PMS 122 */
  --nutrien: #E37222;       --nutrien-ink: #ffffff; /* CS Vibrant PMS 158 */
  --big4: #3F9C35;          --big4-ink: #ffffff;  /* CS Vibrant PMS 362 */
  --infield: #A31A7E;       --infield-ink: #ffffff; /* CS Vibrant PMS 241 */
  --south: #7A1420;         --south-ink: #ffffff; /* provisional dark red */

  /* Type - CS external corporate fonts: Today (body) + Mrs. Eaves (display).
     Today Shop self-hosted; Libre Baskerville is the free Mrs. Eaves analog. */
  --font-display: "Libre Baskerville", "Mrs Eaves", Georgia, "Times New Roman", serif;
  --font-body: "Today Shop", "Today", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Space + shape (Liquid Glass) */
  --r: 18px;
  --r-lg: 26px;
  --shadow: 0 1px 2px rgba(28,27,34,.06), 0 8px 24px rgba(28,27,34,.08);
  --shadow-lift: 0 2px 4px rgba(28,27,34,.08), 0 14px 34px rgba(28,27,34,.14);
  --tap: 48px;
  --maxw: 480px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;            /* Grade-3 legibility: large base */
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper-warm);
  -webkit-font-smoothing: antialiased;
}

/* ---- Layout shell ---- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.page { padding-bottom: 56px; }
main { display: block; }
section { margin-top: 28px; }

/* ---- Type ---- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; letter-spacing: .01em; margin: 0 0 .4em; }
h1 { font-size: 30px; }
h2 { font-size: 22px; }
h3 { font-size: 18px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); }
p { margin: 0 0 1em; }
.lead { font-size: 20px; color: var(--ink); }
.muted { color: var(--ink-soft); }
strong { font-weight: 600; }
a { color: var(--cs-red); }

/* ---- Top bar / wordmark ---- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar__row { display: flex; align-items: center; justify-content: space-between; min-height: 60px; }
.wordmark { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.wordmark__mark { width: 12px; height: 28px; border-radius: 3px; background: var(--cs-red); display: inline-block; }
.wordmark__txt { font-family: var(--font-display); font-weight: 700; letter-spacing: .12em; font-size: 15px; text-transform: uppercase; }
.topbar__link { font-size: 14px; color: var(--ink-soft); text-decoration: none; padding: 10px 6px; min-height: var(--tap); display: inline-flex; align-items: center; }

/* ---- Hero / welcome ---- */
.hero { padding-top: 30px; }
.eyebrow { font-family: var(--font-body); letter-spacing: .18em; text-transform: uppercase; font-size: 12px; font-weight: 600; color: var(--cs-red); margin-bottom: 12px; }
.hero h1 { font-size: 34px; }

/* ---- Official CS masterbrand wordmark ---- */
.brandlogo { display: block; width: 210px; max-width: 64%; height: auto; margin: 6px 0 18px; }
.help__logo { display: block; width: 156px; height: auto; margin: 0 auto 16px; }

/* ---- Video poster ---- */
.video {
  position: relative; margin-top: 18px; border-radius: var(--r-lg); overflow: hidden;
  background: linear-gradient(150deg, var(--cs-navy), #1d1b29);
  box-shadow: var(--shadow); aspect-ratio: 16 / 10; display: grid; place-items: center;
}
.video__label { position: absolute; left: 16px; bottom: 14px; color: #fff; font-size: 14px; letter-spacing: .02em; opacity: .92; }
.video__play {
  width: 66px; height: 66px; border-radius: 999px; border: 0; cursor: pointer;
  background: rgba(255,255,255,.16); backdrop-filter: blur(6px);
  display: grid; place-items: center; transition: transform .25s ease, background .25s ease;
}
.video__play:hover { transform: scale(1.06); background: rgba(255,255,255,.26); }
.video__play svg { width: 26px; height: 26px; margin-left: 4px; fill: #fff; }

/* ---- Venue selector ---- */
.selector h2 { text-align: center; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.tile {
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 104px; padding: 14px; border-radius: var(--r); text-decoration: none;
  color: var(--tile-ink, #fff); background: var(--tile, var(--cs-navy));
  box-shadow: var(--shadow); position: relative; overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.tile:active { transform: translateY(0); }
.tile__name { font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: .03em; }
.tile__sub { font-size: 13px; opacity: .92; margin-top: 2px; }
.tile--bmo { --tile: var(--bmo); --tile-ink: var(--bmo-ink); }
.tile--gmc { --tile: var(--gmc); --tile-ink: var(--gmc-ink); }
.tile--nutrien { --tile: var(--nutrien); --tile-ink: var(--nutrien-ink); }
.tile--big4 { --tile: var(--big4); --tile-ink: var(--big4-ink); }
.tile--infield { --tile: var(--infield); --tile-ink: var(--infield-ink); }
.tile--south { --tile: var(--south); --tile-ink: var(--south-ink); }

/* ---- Module strip ---- */
.modules { margin-top: 30px; }
.modules h3 { text-align: center; margin-bottom: 14px; }
.modstrip { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mod {
  display: flex; align-items: center; gap: 10px; min-height: var(--tap);
  padding: 12px 14px; border-radius: 14px; background: var(--paper);
  border: 1px solid var(--line); text-decoration: none; color: var(--ink);
  font-size: 15px; transition: border-color .2s ease, transform .2s ease;
}
.mod:hover { border-color: var(--cs-red); transform: translateY(-1px); }
.mod svg { width: 20px; height: 20px; flex: none; stroke: var(--cs-red); fill: none; stroke-width: 1.8; }
.mod--wide { grid-column: 1 / -1; }

/* ---- Venue page header / badge ---- */
.vhead { color: #fff; border-radius: 0 0 var(--r-lg) var(--r-lg); padding: 26px 20px 30px; margin: 0 -20px; background: var(--vc, var(--cs-navy)); color: var(--vc-ink, #fff); }
.vhead .wrap { padding: 0; }
.vbadge { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); letter-spacing: .14em; text-transform: uppercase; font-size: 12px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.18); }
.vhead h1 { color: inherit; margin-top: 14px; font-size: 30px; }
.vhead p { color: inherit; opacity: .92; margin: 0; }
.v--bmo { --vc: var(--bmo); --vc-ink: var(--bmo-ink); }
.v--gmc { --vc: var(--gmc); --vc-ink: var(--gmc-ink); }
.v--nutrien { --vc: var(--nutrien); --vc-ink: var(--nutrien-ink); }
.v--big4 { --vc: var(--big4); --vc-ink: var(--big4-ink); }
.v--infield { --vc: var(--infield); --vc-ink: var(--infield-ink); }
.v--south { --vc: var(--south); --vc-ink: var(--south-ink); }

/* ---- Content cards ---- */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); }
.card + .card { margin-top: 14px; }
.card__kicker { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .1em; font-size: 12px; color: var(--cs-red); margin-bottom: 6px; }
.card--critical { border-left: 5px solid var(--vc, var(--cs-red)); }
.steps { margin: 0; padding-left: 0; list-style: none; counter-reset: s; }
.steps li { position: relative; padding: 8px 0 8px 40px; border-top: 1px solid var(--line); }
.steps li:first-child { border-top: 0; }
.steps li::before {
  counter-increment: s; content: counter(s);
  position: absolute; left: 0; top: 8px; width: 28px; height: 28px; border-radius: 999px;
  background: var(--cs-red); color: #fff; font-family: var(--font-display); font-size: 14px;
  display: grid; place-items: center;
}

/* ---- Media placeholders (map / photo) ---- */
.frame {
  border-radius: var(--r); border: 1.5px dashed #c9c2b6; background:
    repeating-linear-gradient(45deg, #f4efe7 0 10px, #efe9df 10px 20px);
  min-height: 150px; display: grid; place-items: center; text-align: center; padding: 18px;
  color: var(--ink-soft); font-size: 14px;
}
.frame svg { width: 26px; height: 26px; stroke: #b6ae9f; fill: none; stroke-width: 1.6; margin-bottom: 6px; display: block; }

/* ---- Pending chip (honesty pattern, PRD s13) ---- */
.chip {
  display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-soft);
  background: #f3eee6; border: 1px solid #e3dccf; border-radius: 999px; padding: 5px 12px;
}
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 999px; background: var(--gmc); flex: none; }

/* ---- Need-help footer ---- */
.help { margin-top: 34px; border-radius: var(--r-lg); background: var(--cs-navy); color: #fff; padding: 22px; }
.help h3 { color: #fff; opacity: .8; }
.help a { color: #fff; }
.help__row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.14); }
.help__row:first-of-type { border-top: 0; }
.help__row svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 1.8; flex: none; }
.btel { font-family: var(--font-display); letter-spacing: .02em; font-size: 18px; text-decoration: none; }

/* ---- Buttons / back nav ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap); padding: 12px 20px; border-radius: 999px; text-decoration: none;
  font-family: var(--font-display); letter-spacing: .04em; text-transform: uppercase; font-size: 14px;
  background: var(--cs-red); color: #fff; border: 0; cursor: pointer; transition: background .2s ease, transform .2s ease;
}
.btn:hover { background: var(--cs-red-deep); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.backnav { display: inline-flex; align-items: center; gap: 8px; min-height: var(--tap); color: var(--ink-soft); text-decoration: none; font-size: 15px; }
.backnav svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ---- Stamp + disclosure ---- */
.stamp { margin-top: 26px; text-align: center; font-size: 12px; color: var(--ink-soft); letter-spacing: .02em; }
.disclosure { margin-top: 8px; text-align: center; font-size: 11px; color: #9b948a; padding: 0 10px 10px; }

/* ---- A11y + motion ---- */
:focus-visible { outline: 3px solid var(--cs-blue); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 50; background: #fff; padding: 10px 14px; border-radius: 8px; box-shadow: var(--shadow-lift); }
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ---- Narrow phones (360px) ---- */
@media (max-width: 360px) {
  body { font-size: 17px; }
  .hero h1 { font-size: 30px; }
  .tiles { gap: 10px; }
}
