/* ──────────────────────────────────────────────────────────────
   GRIPGO — site styles
   Palette: chalk field lines, dugout navy, stitch red, optic yellow.
   Type: Alfa Slab One (varsity display) + Nunito (friendly body).
   Signature element: the ballpark scoreboard comparison.
   ────────────────────────────────────────────────────────────── */

@font-face {
  font-family: 'Alfa Slab One';
  src: url('/assets/fonts/alfa-slab-one-latin.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Nunito';
  src: url('/assets/fonts/nunito-latin-var.woff2') format('woff2');
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --chalk:    #F4EFE2;   /* field-chalk background            */
  --chalk-2:  #EBE4D0;   /* deeper chalk, cards on chalk      */
  --navy:     #152238;   /* dugout navy — ink and dark bands  */
  --navy-2:   #1D2F4D;   /* raised panels on navy             */
  --stitch:   #C8102E;   /* red seam thread — action color    */
  --stitch-d: #A00D25;   /* pressed/hover red                 */
  --optic:    #D8E025;   /* optic-yellow softball             */
  --dust:     #7C7460;   /* muted text on chalk               */
  --dust-l:   #B9B29D;   /* muted text on navy                */
  --line:     #DCD4BE;   /* hairlines on chalk                */

  --display: 'Alfa Slab One', 'Rockwell', serif;
  --body: 'Nunito', 'Segoe UI', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--body);
  font-weight: 500;
  background: var(--chalk);
  color: var(--navy);
  line-height: 1.65;
  margin: 0;
}

::selection { background: var(--optic); color: var(--navy); }

a { color: var(--stitch); }
a:hover { color: var(--stitch-d); }

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

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; }

/* ── Type roles ─────────────────────────────────────────────── */
.display {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}
.eyebrow {
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--stitch);
}
.on-navy .eyebrow { color: var(--optic); }

.section-title { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin: 0.35rem 0 0.8rem; }
.lede { font-size: 1.12rem; color: var(--dust); max-width: 34em; }
.on-navy .lede { color: var(--dust-l); }

/* ── Buttons ────────────────────────────────────────────────── */
.btn-gripgo {
  display: inline-block;
  font-family: var(--display);
  font-size: 1.02rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
  background: var(--stitch);
  border: 0;
  border-radius: 10px;
  padding: 0.85rem 1.7rem;
  text-decoration: none;
  box-shadow: 0 3px 0 var(--stitch-d);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.btn-gripgo:hover, .btn-gripgo:focus-visible { color: #fff; background: var(--stitch-d); }
.btn-gripgo:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--stitch-d); }

.btn-quiet {
  display: inline-block;
  font-weight: 800;
  color: inherit;
  text-decoration: none;
  border-bottom: 3px solid var(--optic);
  padding-bottom: 2px;
}
.btn-quiet:hover { color: inherit; border-bottom-color: var(--stitch); }

/* ── Navbar ─────────────────────────────────────────────────── */
.nav-gripgo {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 239, 226, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 2px solid var(--line);
}
.nav-gripgo .wrap {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}
.wordmark {
  font-family: var(--display);
  font-size: 1.35rem;
  color: var(--navy);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.wordmark:hover { color: var(--navy); }
.wordmark svg { width: 26px; height: 26px; }
.nav-links { display: flex; gap: 1.3rem; margin-left: auto; align-items: center; }
.nav-links a:not(.btn-gripgo) {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--navy);
  text-decoration: none;
}
.nav-links a:not(.btn-gripgo):hover { color: var(--stitch); }
.nav-links .btn-gripgo { padding: 0.5rem 1.1rem; font-size: 0.9rem; }
@media (max-width: 640px) {
  .nav-links a:not(.btn-gripgo) { display: none; }
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  background: var(--navy);
  color: var(--chalk);
  position: relative;
  overflow: hidden;
}
.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 2.5rem;
  align-items: center;
  padding-top: 4.5rem;
  padding-bottom: 5rem;
}
.hero h1 {
  font-size: clamp(2.3rem, 5.2vw, 3.7rem);
  margin: 0.5rem 0 1.1rem;
  color: var(--chalk);
}
.hero h1 .hl { color: var(--optic); }
.hero-art { min-width: 0; }
.hero-art svg { width: 100%; height: auto; display: block; }
.hero-cta { display: flex; gap: 1.4rem; align-items: center; flex-wrap: wrap; margin-top: 1.6rem; }
.hero-note { font-size: 0.9rem; color: var(--dust-l); margin-top: 0.9rem; }
/* faint outfield-wall arc behind the art */
.hero::after {
  content: '';
  position: absolute;
  right: -12%;
  bottom: -55%;
  width: 60%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px dashed rgba(216, 224, 37, 0.18);
  pointer-events: none;
}
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 3rem; padding-bottom: 3.2rem; }
  .hero-art { max-width: 420px; margin: 0 auto; }
}

/* ── Seam divider — red stitch arcs between sections ────────── */
.seam { display: block; width: 100%; height: 46px; }

/* ── Scoreboard (signature) ─────────────────────────────────── */
.scoreboard-band { background: var(--navy); color: var(--chalk); padding: 4rem 0 4.5rem; }
.scoreboard {
  margin-top: 2rem;
  border: 4px solid #0C1626;
  background: #0E1930;
  border-radius: 14px;
  padding: 1.6rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.2rem;
  align-items: stretch;
  box-shadow: inset 0 0 0 2px #223458, 0 10px 30px rgba(0, 0, 0, 0.35);
}
.sb-side { text-align: center; padding: 1rem 0.6rem 1.2rem; border-radius: 8px; }
.sb-label {
  font-family: var(--display);
  font-size: clamp(0.9rem, 1.8vw, 1.15rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dust-l);
  margin-bottom: 0.5rem;
}
.sb-time {
  font-family: var(--display);
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  line-height: 1;
  color: var(--optic);
  text-shadow: 0 0 18px rgba(216, 224, 37, 0.35);
  font-variant-numeric: tabular-nums;
}
.sb-side.sb-lose .sb-time { color: #E4573F; text-shadow: 0 0 18px rgba(228, 87, 63, 0.3); }
.sb-caption { font-size: 0.92rem; color: var(--dust-l); margin-top: 0.6rem; }
.sb-vs {
  align-self: center;
  font-family: var(--display);
  font-size: 1.3rem;
  color: var(--chalk);
  background: var(--stitch);
  border-radius: 50%;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
}
.sb-footnote { text-align: center; color: var(--dust-l); font-size: 0.88rem; margin-top: 1.1rem; }
@media (max-width: 640px) {
  .scoreboard { grid-template-columns: 1fr; }
  .sb-vs { justify-self: center; }
}

/* ── Video ──────────────────────────────────────────────────── */
.video-section { padding: 4.5rem 0 4rem; }
.video-frame {
  margin-top: 1.8rem;
  border: 4px solid var(--navy);
  border-radius: 14px;
  overflow: hidden;
  background: var(--navy);
  box-shadow: 0 6px 0 var(--line);
}
.video-frame video { display: block; width: 100%; height: auto; }
.video-placeholder {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--dust-l);
  background:
    radial-gradient(ellipse 70% 90% at 50% 110%, rgba(216, 224, 37, 0.10), transparent 65%),
    var(--navy);
  padding: 1.5rem;
}
.video-placeholder .display { color: var(--chalk); font-size: 1.4rem; margin-bottom: 0.4rem; }

/* ── Steps ──────────────────────────────────────────────────── */
.steps-section { padding: 0 0 4.5rem; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 2rem; }
.step {
  background: #FBF8F0;
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 1.5rem 1.4rem 1.6rem;
  position: relative;
}
.step-num {
  font-family: var(--display);
  color: var(--chalk);
  background: var(--navy);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  margin-bottom: 0.9rem;
  border: 3px solid var(--optic);
}
.step h3 { font-family: var(--display); font-size: 1.15rem; text-transform: uppercase; margin: 0 0 0.5rem; }
.step p { margin: 0; color: var(--dust); font-size: 0.98rem; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ── Parents strip ──────────────────────────────────────────── */
.parents-band { background: var(--chalk-2); padding: 4rem 0 4.5rem; }
.parent-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 2rem; }
.parent-card {
  background: var(--chalk);
  border-radius: 12px;
  padding: 1.5rem 1.4rem;
  border: 2px solid var(--line);
  border-top: 6px solid var(--stitch);
}
.parent-card h3 { font-family: var(--display); font-size: 1.05rem; text-transform: uppercase; margin: 0 0 0.5rem; }
.parent-card p { margin: 0; color: var(--dust); font-size: 0.97rem; }
@media (max-width: 760px) { .parent-cards { grid-template-columns: 1fr; } }

/* ── Order card ─────────────────────────────────────────────── */
.order-section { padding: 4.5rem 0; }
.order-card {
  max-width: 560px;
  margin: 2rem auto 0;
  background: #FBF8F0;
  border: 2px solid var(--navy);
  border-radius: 16px;
  padding: 2rem 2rem 2.2rem;
  position: relative;
  /* leather-patch stitching */
  outline: 2px dashed var(--stitch);
  outline-offset: -10px;
}
.order-price-row { display: flex; align-items: baseline; gap: 0.8rem; flex-wrap: wrap; }
.order-price { font-family: var(--display); font-size: 2.6rem; line-height: 1; }
.order-price-note { color: var(--dust); font-weight: 700; font-size: 0.95rem; }
.order-form { margin-top: 1.4rem; display: grid; gap: 1rem; }
.order-form label { font-weight: 800; font-size: 0.9rem; display: block; margin-bottom: 0.3rem; }
.order-form input, .order-form select {
  width: 100%;
  font-family: var(--body);
  font-size: 1rem;
  padding: 0.65rem 0.8rem;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--navy);
}
.order-form input:focus, .order-form select:focus {
  border-color: var(--navy);
  outline: 3px solid rgba(216, 224, 37, 0.55);
  outline-offset: 0;
}
.order-two { display: grid; grid-template-columns: 2fr 1fr; gap: 1rem; }
@media (max-width: 520px) { .order-two { grid-template-columns: 1fr; } }
.order-form .btn-gripgo { width: 100%; text-align: center; font-size: 1.15rem; padding: 1rem; }
.order-small { font-size: 0.86rem; color: var(--dust); text-align: center; margin: 0.2rem 0 0; }

/* ── FAQ ────────────────────────────────────────────────────── */
.faq-section { padding: 0 0 5rem; }
.faq { max-width: 720px; margin: 1.6rem auto 0; }
.faq details {
  border-bottom: 2px solid var(--line);
  padding: 0.9rem 0.2rem;
}
.faq summary {
  font-weight: 800;
  font-size: 1.04rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--display); color: var(--stitch); font-size: 1.2rem; }
.faq details[open] summary::after { content: '–'; }
.faq details p { color: var(--dust); margin: 0.7rem 0 0.2rem; }

/* ── Footer ─────────────────────────────────────────────────── */
.footer-gripgo {
  background: var(--navy);
  color: var(--dust-l);
  padding: 2.6rem 0;
  font-size: 0.92rem;
}
.footer-gripgo .wrap { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; align-items: center; }
.footer-gripgo a { color: var(--chalk); text-decoration: none; font-weight: 700; }
.footer-gripgo a:hover { color: var(--optic); }

/* ── Flash messages ─────────────────────────────────────────── */
.flash-stack { position: fixed; top: 70px; left: 0; right: 0; z-index: 200; pointer-events: none; }
.flash-stack .wrap { display: grid; gap: 0.5rem; }
.flash {
  pointer-events: auto;
  border-radius: 10px;
  padding: 0.8rem 1.1rem;
  font-weight: 700;
  border: 2px solid;
  background: #FBF8F0;
  box-shadow: 0 6px 18px rgba(21, 34, 56, 0.15);
}
.flash-success { border-color: #2E7D46; color: #2E7D46; }
.flash-danger  { border-color: var(--stitch); color: var(--stitch-d); }
.flash-info    { border-color: var(--navy); color: var(--navy); }

/* ── Simple content pages (order-complete, admin, errors) ───── */
.page-plain { max-width: 640px; margin: 4rem auto; padding: 0 22px; }
.page-plain h1 { font-family: var(--display); text-transform: uppercase; font-size: 2rem; }
