/* R4ck Sports — shared design system. Brand (from the logo artwork):
   navy #0F2D5C and olive gold #937F15. Brand gold is for the logo, fills,
   borders and large graphics; small text uses --gold-text on light
   backgrounds and --gold-on-dark on navy, which keep WCAG AA contrast.
   The --jet tokens keep their names but now hold the navy family. */

:root {
  --jet: #0F2D5C;                /* brand navy */
  --jet-2: #0B2348;              /* deeper navy for cards and drawers on navy */
  --jet-3: #24427A;              /* lines on navy */
  --gold: #937F15;               /* brand gold: logo, fills, borders */
  --gold-light: #C9B35A;
  --gold-dark: #6F600F;
  --gold-on-dark: #C9B35A;       /* gold text on navy (6.5:1) */
  --gold-text: #776611;          /* gold text on paper/white (5.3:1) */
  --focus: var(--jet);           /* keyboard focus ring on light (13.5:1 on white); dark areas reset it below */
  --field-line: #7D879A;         /* form field borders (3.6:1 on white) */
  --on-dark: #D5DCE8;            /* body text on navy */
  --paper: #F6F7FA;
  --white: #FFFFFF;
  --line: #DDE2EA;
  --ink: #0F1B33;
  --ink-2: #3A4459;
  --ink-3: #5E6A80;
  --ok: #1F7A3A;
  --err: #B3261E;
  --gold-grad: linear-gradient(180deg, #D0BC62 0%, #BFAA45 100%);   /* buttons: navy text stays 5.8:1+ */

  --font-display: "Arial Black", "Arial Bold", Impact, "Helvetica Neue", Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(15, 45, 92, .06), 0 8px 24px rgba(15, 45, 92, .07);
  --wrap: 1180px;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--font-body);
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-text); text-underline-offset: 3px; }
a:hover { color: var(--jet); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
/* Navy areas get the light gold ring (6.5:1+ on navy); light surfaces inside them go back to navy. */
.site-header, .hero, .page-hero, .section--dark, .cta-band, .site-footer, .card--dark, .cart__head { --focus: var(--gold-light); }
.card:not(.card--dark), .form-card, .product-card { --focus: var(--jet); }
.skip-link { --focus: var(--white); }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; color: var(--ink); }
h1, h2 { font-family: var(--font-display); font-weight: 900; letter-spacing: .5px; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--gold-on-dark); color: var(--jet); padding: 10px 14px; z-index: 100; font-weight: 700; }
.skip-link:focus { left: 8px; top: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 768px) { :root { --gutter: 28px; } }

/* ---------- Header ---------- */
.site-header { background: var(--jet); color: var(--white); position: sticky; top: 0; z-index: 50; border-bottom: 3px solid var(--gold); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 40px; width: auto; }
.nav-toggle { display: inline-flex; align-items: center; gap: 8px; background: transparent; color: var(--white); border: 1px solid var(--jet-3); border-radius: var(--radius-sm); padding: 8px 12px; font: 700 14px var(--font-body); cursor: pointer; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; content: ""; }
.nav-toggle .bars::before { position: absolute; top: -6px; }
.nav-toggle .bars::after { position: absolute; top: 6px; }
.site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--jet); border-bottom: 3px solid var(--gold); }
.site-nav.is-open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 8px var(--gutter) 16px; }
.site-nav a { display: block; color: var(--white); text-decoration: none; padding: 12px 4px; font-weight: 700; border-bottom: 1px solid var(--jet-3); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--gold-on-dark); }
.site-nav .nav-cta { margin-top: 12px; border: 0; }
.cart-link { position: relative; }
.cart-count { display: inline-flex; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 6px; border-radius: 10px; background: var(--gold-on-dark); color: var(--jet); font-size: 12px; align-items: center; justify-content: center; vertical-align: middle; }
.cart-count[hidden] { display: none; }
@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .site-nav { display: block; position: static; background: transparent; border: 0; }
  .site-nav ul { display: flex; align-items: center; gap: 4px; padding: 0; }
  .site-nav a { border: 0; padding: 8px 10px; font-size: 15px; }
  .site-nav .nav-cta { margin: 0 0 0 8px; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; border: 2px solid transparent; font: 800 15px/1 var(--font-body); letter-spacing: .3px; text-decoration: none; cursor: pointer; transition: transform .12s ease, background .12s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }
.btn--gold { background: var(--gold-grad); color: var(--jet); border-color: var(--gold); }
.btn--gold:hover { color: var(--jet); }
.btn--dark { background: var(--jet); color: var(--white); }
.btn--dark:hover { color: var(--gold-on-dark); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--outline-light { background: transparent; color: var(--white); border-color: var(--white); }
.btn--outline-light:hover { color: var(--gold-on-dark); border-color: var(--gold-on-dark); }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Heroes & sections ---------- */
.hero { background: var(--jet); color: var(--white); padding: 64px 0 72px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -120px; bottom: -120px; width: 420px; height: 420px; background: url("/assets/mark-reversed.svg") center/contain no-repeat; opacity: .07; pointer-events: none; }
.hero h1, .hero h2 { color: var(--white); }
.gold { color: var(--gold-text); }
.hero .gold, .page-hero .gold, .section--dark .gold, .cta-band .gold, .site-footer .gold, .card--dark .gold { color: var(--gold-on-dark); }
.hero .lead { color: var(--on-dark); }
.page-hero { background: var(--jet); color: var(--white); padding: 44px 0 40px; border-bottom: 1px solid var(--jet-3); }
.page-hero h1 { color: var(--white); margin-bottom: .25em; }
.page-hero p { color: var(--on-dark); max-width: 720px; margin: 0; }
.eyebrow { display: inline-block; font: 800 12px/1 var(--font-body); letter-spacing: 4px; text-transform: uppercase; color: var(--gold-text); margin-bottom: 12px; }
.hero .eyebrow, .page-hero .eyebrow, .section--dark .eyebrow, .cta-band .eyebrow { color: var(--gold-on-dark); }
.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--ink-2); max-width: 680px; }
.tagline { font: 800 13px/1 var(--font-body); letter-spacing: 5px; text-transform: uppercase; }
.section { padding: 64px 0; }
.section--tight { padding: 40px 0; }
.section--alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--dark { background: var(--jet); color: var(--white); }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark p { color: var(--on-dark); }
.section-head { max-width: 760px; margin-bottom: 32px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 20px; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.split { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1.1fr .9fr; gap: 48px; } }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card--dark { background: var(--jet-2); border-color: var(--jet-3); color: var(--white); box-shadow: none; }
.card--dark h3 { color: var(--white); }
.card--dark p { color: var(--on-dark); }
/* Dark cards often sit in light sections, so their links need the on-navy gold (7.5:1), not --gold-text. */
.card--dark a:not(.btn) { color: var(--gold-on-dark); }
.card--dark a:not(.btn):hover { color: var(--white); }
.card__icon { width: 48px; height: 48px; border-radius: 12px; background: var(--jet); color: var(--gold-on-dark); display: grid; place-items: center; margin-bottom: 14px; }
.card__icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }
.card .card__link { font-weight: 800; text-decoration: none; }
.card .card__link::after { content: " →"; }
.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font: 800 11px/1.4 var(--font-body); letter-spacing: 1px; text-transform: uppercase; background: var(--jet); color: var(--gold-on-dark); }
.badge--gold { background: var(--gold-on-dark); color: var(--jet); }
.badge--muted { background: var(--line); color: var(--ink-2); }
.badge--ok { background: #DDF0E2; color: var(--ok); }
.check-list { list-style: none; padding: 0; margin: 0 0 1em; }
.check-list li { position: relative; padding-left: 28px; margin-bottom: 8px; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 9px; border-left: 3px solid var(--gold-dark); border-bottom: 3px solid var(--gold-dark); transform: rotate(-45deg); }
.section--dark .check-list li::before { border-color: var(--gold-on-dark); }
.notice { border-left: 4px solid var(--gold); background: #F8F5E4; padding: 14px 18px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--ink-2); }
.stat-band { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .stat-band { grid-template-columns: repeat(3, 1fr); } }
.stat-band .big { font: 900 2.4rem/1 var(--font-display); color: var(--gold-text); display: block; margin-bottom: 6px; }

/* ---------- Timeline (custom uniforms) ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 19px; top: 8px; bottom: 8px; width: 3px; background: var(--gold); border-radius: 2px; }
.timeline li { position: relative; padding: 0 0 26px 60px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline .tl-marker { position: absolute; left: 0; top: 0; width: 41px; height: 41px; border-radius: 50%; background: var(--jet); color: var(--gold-on-dark); border: 3px solid var(--gold); display: grid; place-items: center; font: 900 14px/1 var(--font-display); }
.timeline .tl-when { display: block; font: 800 12px/1.4 var(--font-body); letter-spacing: 2px; text-transform: uppercase; color: var(--gold-text); }
.section--dark .timeline .tl-when { color: var(--gold-on-dark); }
.timeline h3 { margin: 2px 0 4px; }
.timeline p { margin: 0; color: var(--ink-2); }
.section--dark .timeline p { color: var(--on-dark); }

/* ---------- Steps (numbered row) ---------- */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(var(--steps, 4), 1fr); } }
.steps li { counter-increment: step; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--jet); color: var(--gold-on-dark); font: 900 16px/1 var(--font-display); margin-bottom: 12px; }
.steps h3 { font-size: 1.05rem; }
.steps p { margin: 0; color: var(--ink-2); font-size: .97rem; }

/* ---------- Forms ---------- */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
@media (min-width: 700px) { .form-card { padding: 32px; } }
.r4-form .field { margin-bottom: 16px; }
.r4-form .field-row { display: grid; gap: 0 16px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .r4-form .field-row { grid-template-columns: 1fr 1fr; } }
.r4-form label, .r4-form legend { display: block; font-weight: 700; font-size: .95rem; margin-bottom: 6px; color: var(--ink); }
.r4-form .optional { font-weight: 400; color: var(--ink-3); font-size: .85rem; }
.r4-form input, .r4-form select, .r4-form textarea { width: 100%; font: 16px/1.4 var(--font-body); color: var(--ink); background: var(--white); border: 1.5px solid var(--field-line); border-radius: var(--radius-sm); padding: 11px 12px; }
.r4-form textarea { min-height: 120px; resize: vertical; }
.r4-form input:focus, .r4-form select:focus, .r4-form textarea:focus { border-color: var(--jet); outline: 2px solid var(--jet); outline-offset: 0; box-shadow: 0 0 0 5px rgba(147, 127, 21, .3); }
.r4-form fieldset { border: 0; padding: 0; margin: 0 0 16px; }
.r4-form .choice { display: flex; align-items: center; gap: 8px; font-weight: 400; margin: 0 0 6px; }
.r4-form .choice input { width: auto; }
.r4-form .hint { font-size: .85rem; color: var(--ink-3); margin-top: 4px; }
.r4-form .field-error { color: var(--err); font-size: .88rem; margin-top: 6px; font-weight: 600; }
.r4-form [aria-invalid="true"] { border-color: var(--err); }
.r4-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 14px 0 0; font-weight: 700; min-height: 1.5em; }
.form-status.is-ok { color: var(--ok); }
.form-status.is-err { color: var(--err); }
.form-success { text-align: center; padding: 24px 8px; }
.form-success h3 { color: var(--ok); }

/* ---------- Shop ---------- */
.shop-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 24px; }
.chip { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); color: var(--ink); font: 700 14px var(--font-body); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--jet); color: var(--white); border-color: var(--jet); }
.product-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1180px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }
.product-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.product-card__media { aspect-ratio: 4 / 3; background: var(--jet); display: grid; place-items: center; position: relative; overflow: hidden; }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; }
.product-card__media .tile-mark { width: 38%; opacity: .9; }
.product-card__media .tile-label { position: absolute; left: 12px; bottom: 10px; font: 800 11px/1 var(--font-body); letter-spacing: 3px; text-transform: uppercase; color: var(--gold-on-dark); }
.product-card__media .badge { position: absolute; top: 10px; left: 10px; }
.product-card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-card__name { font-size: 1.02rem; margin: 0; }
.product-card__meta { font-size: .88rem; color: var(--ink-3); margin: 0; }
.price { font: 900 1.15rem/1 var(--font-display); color: var(--ink); }
.price s { color: var(--ink-3); font-size: .85em; margin-left: 6px; }
.price--quote { font: 800 .95rem/1.2 var(--font-body); color: var(--gold-text); }
.stock-note { font-size: .85rem; font-weight: 700; color: var(--err); }
.product-card__actions { margin-top: auto; display: grid; gap: 8px; }
.product-card select { width: 100%; font: 15px var(--font-body); padding: 9px 10px; border: 1.5px solid var(--field-line); border-radius: var(--radius-sm); background: var(--white); }
.qty-input { width: 84px; font: 15px var(--font-body); padding: 9px 10px; border: 1.5px solid var(--field-line); border-radius: var(--radius-sm); }
.cart { position: fixed; inset: 0 0 0 auto; width: min(420px, 100vw); background: var(--white); box-shadow: -12px 0 40px rgba(15, 27, 51, .25); z-index: 80; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .2s ease; visibility: hidden; }
.cart.is-open { transform: none; visibility: visible; }
.cart__head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; background: var(--jet); color: var(--white); }
.cart__head h2 { color: var(--white); font-size: 1.2rem; margin: 0; }
.cart__close { background: none; border: 0; color: var(--white); font-size: 28px; line-height: 1; cursor: pointer; padding: 4px 8px; }
.cart__body { padding: 16px 20px; overflow-y: auto; flex: 1; }
.cart__item { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart__item .remove { background: none; border: 0; color: var(--err); font-weight: 700; cursor: pointer; padding: 0; text-align: left; }
.cart__foot { padding: 16px 20px; border-top: 1px solid var(--line); }
.cart-backdrop { position: fixed; inset: 0; background: rgba(15, 27, 51, .55); z-index: 70; }
.cart-backdrop[hidden] { display: none; }
.empty { text-align: center; color: var(--ink-3); padding: 40px 16px; }

/* ---------- Prose (policies) ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.4rem; margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose li { margin-bottom: .4em; }
.prose .updated { color: var(--ink-3); font-size: .95rem; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--jet); color: var(--white); border-top: 3px solid var(--gold); padding: 48px 0; }
.cta-band .container { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.cta-band h2 { color: var(--white); margin: 0; }
.cta-band p { color: var(--on-dark); margin: 6px 0 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--jet-2); color: var(--on-dark); padding: 48px 0 24px; font-size: .95rem; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer img { height: 56px; width: auto; margin-bottom: 12px; }
.site-footer h2 { font: 800 12px/1 var(--font-body); letter-spacing: 3px; text-transform: uppercase; color: var(--gold-on-dark); margin: 6px 0 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #EEF2F8; text-decoration: none; }
.site-footer a:hover { color: var(--gold-on-dark); }
.footer-bottom { border-top: 1px solid var(--jet-3); margin-top: 32px; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; font-size: .85rem; color: #A9B6CC; }
