/* ==========================================================================
   Huddle Youth Sports - marketing site
   Single stylesheet. No build step.

   Palette matches the product system: turf green, navy, and orange as the
   single accent, on the warm chalk ground. Fraunces over Public Sans.
   ========================================================================== */

:root {
  /* Warm chalk grounds (unchanged) */
  --chalk:    #f7f5ef;   /* page */
  --chalk-2:  #efece1;   /* alternating band */
  --paper:    #fffdf8;   /* cards, inputs */
  --line:     #dcd7c9;
  --line-2:   #c9c3b2;

  /* Navy: the primary. Buttons, links, eyebrows, dark bands, active markers. */
  --navy:       #184868;
  --navy-hover: #123a54;

  /* Turf: decorative only. Neither turf tone can legally carry small text on a
     light ground (#78b460 is 2.27:1 on chalk), so turf lives in fills, pitch
     markings and tints, never in type. */
  --turf:       #78b460;
  --turf-light: #9ccc90;   /* 5.29:1 on navy, so it reads on the dark band */
  --turf-tint:  #e3f0de;   /* check bullets, callouts, success state */

  /* Orange: the single accent, used on one CTA.
     White on #f86400 is 3.08:1 and fails AA, so the label is near-black. */
  --orange:       #f86400;
  --orange-hover: #ff7a1f;
  --on-orange:    #131a20;

  /* Ink, cooled to sit with navy */
  --ink:   #131a20;
  --ink-2: #46545e;
  --ink-3: #55636d;

  /* On the navy band */
  --on-deep:       #c7d9e4;
  --on-deep-quiet: #a9c3d4;

  /* Type */
  --font-head: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Layout */
  --wrap: 1140px;
  --gutter: clamp(20px, 5vw, 40px);
  --section-y: clamp(64px, 9vw, 116px);
  --header-h: 70px;

  --radius-sm: 4px;
  --radius: 6px;

  --shadow-sm: 0 1px 2px rgba(19, 26, 32, .05), 0 6px 16px rgba(19, 26, 32, .05);
  --shadow-lg: 0 30px 70px -22px rgba(18, 58, 84, .32), 0 8px 20px rgba(18, 58, 84, .08);
}

/* --------------------------------------------------------------- reset -- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--chalk);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy-hover); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.012em;
  line-height: 1.14;
  margin: 0 0 .5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.35rem, 1.3rem + 3.5vw, 3.7rem); letter-spacing: -0.022em; }
h2 { font-size: clamp(1.85rem, 1.25rem + 2.1vw, 2.65rem); letter-spacing: -0.018em; }
h3 { font-size: clamp(1.12rem, 1.02rem + .4vw, 1.3rem); line-height: 1.3; font-weight: 600; }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

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

/* ------------------------------------------------------------- helpers -- */

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.section { padding-block: var(--section-y); }
.section--soft { background: var(--chalk-2); border-block: 1px solid var(--line); }

.section--deep { position: relative; background: var(--navy); color: var(--on-deep); overflow: hidden; }
.section--deep h2, .section--deep h3 { color: var(--chalk); }
.section--deep a { color: var(--chalk); }
.section--deep .wrap { position: relative; z-index: 1; }

/* Chalk pitch markings, echoing the mockup. Static, decorative, and kept to
   the empty right side so they never sit behind the copy. */
.pitch-marks {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(52%, 620px);
  height: 100%;
  opacity: .26;
  /* Fades out towards the copy, so a long line can never collide with the
     markings no matter how the text wraps. */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 26%);
          mask-image: linear-gradient(to right, transparent 0%, #000 26%);
  pointer-events: none;
}
@media (max-width: 900px) { .pitch-marks { display: none; } }
.pitch-marks path, .pitch-marks circle, .pitch-marks rect {
  fill: none; stroke: var(--turf-light); stroke-width: 2;
}

.measure { max-width: 62ch; }

.eyebrow {
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 .9rem;
}
.section--deep .eyebrow { color: var(--on-deep-quiet); }

.lede { font-size: clamp(1.05rem, .98rem + .35vw, 1.2rem); color: var(--ink-2); }
.section--deep .lede { color: var(--on-deep); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: var(--chalk);
  padding: 12px 18px; z-index: 200; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ------------------------------------------------------------- buttons -- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-body);
  font-size: 1rem; font-weight: 600; line-height: 1;
  padding: 15px 26px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--navy); color: var(--chalk); }
.btn--primary:hover { background: var(--navy-hover); color: var(--chalk); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--navy); color: var(--navy); }

.btn--accent { background: var(--orange); color: var(--on-orange); }
.btn--accent:hover { background: var(--orange-hover); color: var(--on-orange); }
/* `.section--deep a` outranks `.btn`, so restate button colours inside it. */
.section--deep a.btn--accent, .section--deep a.btn--accent:hover { color: var(--on-orange); }
.section--deep a.btn--primary { color: var(--chalk); }

.btn--wide { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* -------------------------------------------------------------- header -- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 245, 239, .92);
  backdrop-filter: saturate(1.6) blur(10px);
  -webkit-backdrop-filter: saturate(1.6) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.is-stuck { border-bottom-color: var(--line); }

.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: var(--header-h);
}

.brand {
  display: inline-flex; align-items: center; gap: 11px;
  text-decoration: none; color: var(--ink);
  font-family: var(--font-head); font-weight: 600; font-size: 1.1rem;
  letter-spacing: -0.014em; white-space: nowrap;
}
.brand:hover { color: var(--ink); }
.brand__mark { width: 30px; height: 30px; flex: none; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav__link {
  font-size: .95rem; font-weight: 500; color: var(--ink-2);
  text-decoration: none; padding: 9px 13px; border-radius: var(--radius-sm);
}
.nav__link:hover { color: var(--ink); background: var(--chalk-2); }
.nav__link[aria-current="page"] { color: var(--navy); font-weight: 600; }
/* Log in is an action for an existing coach, not another page to browse. */
.nav__link--login { font-weight: 600; color: var(--ink); }
.nav .btn { margin-left: 8px; padding: 11px 19px; font-size: .95rem; }

.nav-toggle {
  display: none; background: none;
  border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  padding: 9px 11px; cursor: pointer; color: var(--ink);
}

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--chalk);
    border-bottom: 1px solid var(--line);
    padding: 10px var(--gutter) 20px;
    box-shadow: 0 14px 26px -14px rgba(19, 26, 32, .16);
  }
  .nav[hidden] { display: none; }
  .nav__link { padding: 13px 4px; font-size: 1.02rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__link:hover { background: none; }
  .nav .btn { margin: 14px 0 0; width: 100%; padding: 15px 20px; }
}

/* ---------------------------------------------------------------- hero -- */

.hero {
  position: relative;
  background:
    radial-gradient(115% 85% at 86% 6%, #e6efdf 0%, rgba(230, 239, 223, 0) 60%),
    linear-gradient(180deg, #faf8f3 0%, var(--chalk) 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero__grid { display: grid; gap: clamp(40px, 6vw, 72px); align-items: center; padding-block: clamp(52px, 7.5vw, 100px); }
@media (min-width: 900px) { .hero__grid { grid-template-columns: 1.04fr .96fr; } }

.hero h1 { margin-bottom: .38em; }
.hero__sub { font-size: clamp(1.08rem, 1rem + .45vw, 1.26rem); color: var(--ink-2); max-width: 33em; }
.hero .btn-row { margin-top: 30px; }

.hero__note { margin-top: 26px; display: flex; align-items: center; gap: 10px; font-size: .92rem; color: var(--ink-3); }
.hero__dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--navy); box-shadow: 0 0 0 4px rgba(24, 72, 104, .16); }

.hero__art { display: flex; justify-content: center; }
@media (min-width: 900px) { .hero__art { justify-content: flex-end; } }

@media (max-width: 480px) {
  .hero .btn-row { display: grid; grid-template-columns: 1fr; gap: 12px; }
  .hero .btn-row .btn { width: 100%; }
}

/* --------------------------------------------------------- phone frame -- */

.phone {
  position: relative;
  width: min(300px, 78vw);
  padding: 9px;
  background: linear-gradient(160deg, #2c302e 0%, #141716 55%, #232725 100%);
  border-radius: 40px;
  box-shadow: var(--shadow-lg);
  flex: none;
}
.phone::after {
  content: ""; position: absolute; inset: 3px;
  border-radius: 37px; border: 1px solid rgba(255, 255, 255, .1);
  pointer-events: none;
}
.phone__screen { border-radius: 32px; overflow: hidden; background: #f5f5f5; display: block; }
.phone__screen img { width: 100%; height: auto; display: block; }

.phone--lg { width: min(330px, 80vw); }

/* ====================================================== SHOWCASE ======== */
/* One phone held in view while the reader scrolls through the steps beside
   it. Desktop and tablet only, and only when motion is welcome. Everywhere
   else this degrades to a plain stacked sequence, which is the same content
   in the same order. */

.showcase { background: var(--chalk-2); border-block: 1px solid var(--line); }
.showcase__head { max-width: 58ch; margin-bottom: clamp(30px, 3.5vw, 40px); }
.showcase__grid { display: grid; gap: clamp(36px, 5vw, 84px); }

.showcase__stage { display: none; }

.showcase__steps { display: grid; gap: clamp(40px, 6vw, 64px); }

.showcase__step { position: relative; }
.showcase__step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; margin-bottom: 16px;
  border: 1px solid var(--line-2); border-radius: 50%;
  background: transparent; color: var(--ink-3);
  font-family: var(--font-head); font-size: .95rem; font-weight: 600; line-height: 1;
  transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}
.showcase__step h3 { margin-bottom: .4em; }
.showcase__step p { color: var(--ink-2); margin: 0; max-width: 46ch; }

/* Inline screenshot, used in the stacked (mobile / reduced-motion) layout. */
.showcase__inline { margin: 26px 0 0; display: flex; justify-content: center; }

@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  .showcase__grid { grid-template-columns: 1fr auto; align-items: start; }

  .showcase__stage {
    display: grid; place-items: center;
    position: sticky;
    top: var(--header-h);
    height: calc(100vh - var(--header-h));
  }
  .showcase__inline { display: none; }

  /* Each step needs enough room that only one sits at the viewport midline. */
  .showcase__step {
    min-height: 76vh;
    display: flex; flex-direction: column; justify-content: center;
    padding-left: 26px;
    border-left: 2px solid var(--line);
    transition: border-color .3s ease;
  }
  .showcase__steps { gap: 0; }

  /* The first step sits directly under the intro, so it needs less run-up.
     Step content stays vertically centred in its block, which is what
     pickActive() measures, so the active step is always the one being read. */
  .showcase__step:first-of-type { min-height: 50vh; }

  .showcase__step.is-active { border-left-color: var(--navy); }
  .showcase__step.is-active .showcase__step-num {
    background: var(--navy); border-color: var(--navy); color: var(--chalk);
  }

  .showcase .phone { width: min(300px, 34vh); }

  .showcase__shots { position: relative; aspect-ratio: 896 / 1955; }
  .showcase__shot {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; object-position: top center;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .5s ease, transform .5s ease;
  }
  .showcase__shot.is-active { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------- split -- */

.split { display: grid; gap: clamp(40px, 6vw, 76px); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
}
.split__art { display: flex; justify-content: center; }

.checks { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 30px; color: var(--ink-2); font-size: 1rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .46em;
  width: 17px; height: 17px; border-radius: 50%;
  background: var(--turf-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23184868' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/11px no-repeat;
}
.section--deep .checks li { color: var(--on-deep); }
.section--deep .checks li::before {
  background-color: rgba(255,255,255,.14);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------- steps -- */

.steps { list-style: none; margin: clamp(36px, 5vw, 56px) 0 0; padding: 0; display: grid; gap: clamp(26px, 3.5vw, 40px); counter-reset: step; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.steps li { counter-increment: step; padding-top: 26px; border-top: 2px solid var(--navy); }
.steps li::before {
  content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--navy); color: var(--chalk);
  font-family: var(--font-head); font-size: 1.05rem; font-weight: 600; line-height: 1;
  margin-bottom: 16px;
}
.steps h3 { margin-bottom: .3em; }
.steps p { color: var(--ink-2); font-size: .99rem; margin: 0; }

/* --------------------------------------------------------------- proof -- */

.proof-grid { display: grid; gap: clamp(28px, 3.5vw, 44px); align-items: start; margin-top: clamp(34px, 4vw, 48px); }

.stat-row { display: grid; gap: 20px; }
@media (min-width: 520px) { .stat-row { grid-template-columns: repeat(3, 1fr); } }

.stat { padding: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.stat__num { font-family: var(--font-head); font-size: clamp(1.7rem, 1.45rem + .9vw, 2.05rem); font-weight: 600; color: var(--navy); line-height: 1.1; display: block; }
.stat__label { font-size: .9rem; color: var(--ink-3); margin-top: 8px; display: block; line-height: 1.45; }

.quote-card {
  margin: 0;                 /* figure has a UA margin of 1em 40px */
  max-width: 62ch;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--navy);
  border-radius: var(--radius);
  padding: clamp(26px, 3.5vw, 38px);
  box-shadow: var(--shadow-sm);
}
.quote-card blockquote { margin: 0; font-family: var(--font-head); font-size: clamp(1.12rem, 1.02rem + .45vw, 1.35rem); line-height: 1.45; color: var(--ink); }
.quote-card figcaption { margin-top: 18px; font-size: .9rem; color: var(--ink-3); }

/* ---------------------------------------------------------------- form -- */

.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(26px, 3.6vw, 40px); box-shadow: var(--shadow-sm); }

.field { margin-bottom: 18px; }
.field:last-of-type { margin-bottom: 24px; }
.field label { display: block; font-size: .89rem; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.field label .opt { font-weight: 400; color: var(--ink-3); }

.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--paper);
  padding: 13px 14px;
  border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 118px; resize: vertical; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(24, 72, 104, .16);
}

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-note { font-size: .85rem; color: var(--ink-3); margin: 14px 0 0; }

.form-status { margin: 16px 0 0; padding: 13px 15px; border-radius: var(--radius-sm); font-size: .93rem; line-height: 1.5; }
.form-status[hidden] { display: none; }
.form-status--ok  { background: var(--turf-tint); color: var(--navy); }
.form-status--err { background: #fbeadf; color: #8a3418; }

.contact-grid { display: grid; gap: clamp(36px, 5vw, 64px); align-items: start; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: .92fr 1.08fr; } }

/* -------------------------------------------------------------- footer -- */

.site-footer { background: var(--navy); color: var(--on-deep-quiet); padding-block: clamp(44px, 5.5vw, 64px); font-size: .93rem; }
.site-footer a { color: #e2edf4; text-decoration: none; }
.site-footer a:hover { color: var(--chalk); text-decoration: underline; }

.site-footer__top { display: flex; flex-wrap: wrap; gap: 28px 40px; justify-content: space-between; align-items: flex-start; padding-bottom: 30px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.site-footer .brand { color: var(--chalk); font-size: 1.05rem; }
.site-footer .brand:hover { color: var(--chalk); }

.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 26px; }

.site-footer__bottom { padding-top: 24px; display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: space-between; font-size: .87rem; color: var(--on-deep-quiet); }

/* ---------------------------------------------------------- about etc -- */

.page-head { background: var(--chalk-2); border-bottom: 1px solid var(--line); padding-block: clamp(52px, 7vw, 88px); }
.page-head__title { max-width: 17ch; }

.prose { max-width: 66ch; }
.prose h2 { margin-top: 2em; font-size: clamp(1.5rem, 1.2rem + 1.1vw, 1.9rem); }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--ink-2); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose__sub { font-size: clamp(1.2rem, 1.1rem + .4vw, 1.35rem); margin-top: 0; }
.prose__after-list { margin-top: 2rem; }

.callout { margin: 2em 0 0; padding: 22px 24px; background: var(--turf-tint); border-radius: var(--radius); border-left: 3px solid var(--navy); }
.callout p { color: var(--navy); margin: 0; }

@media (min-width: 900px) {
  .split--about { grid-template-columns: 1.32fr .68fr; align-items: start; }
  .split--about .split__art { position: sticky; top: calc(var(--header-h) + 26px); }
}

.deep-cta  { margin-top: 2rem; }
.deep-note { margin-top: 1.6rem; font-size: .95rem; color: var(--on-deep-quiet); }

/* ------------------------------------------------------- what's next -- */

/* Two columns, visually unequal on purpose: what is live carries the turf
   marker and the link, what is next is quieter and has nothing to click. */
.horizon {
  display: grid;
  gap: clamp(28px, 4vw, 56px);
  margin-top: clamp(34px, 4vw, 48px);
}
@media (min-width: 760px) { .horizon { grid-template-columns: 1fr 1fr; } }

.horizon__col { padding-top: 22px; border-top: 2px solid var(--line); }
.horizon__col:first-child { border-top-color: var(--navy); }

.horizon__tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 .7rem;
}
.horizon__tag::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--line-2);
}
.horizon__tag--now { color: var(--navy); }
.horizon__tag--now::before {
  background: var(--turf);
  box-shadow: 0 0 0 4px rgba(120, 180, 96, .22);
}

.horizon__col h3 { margin-bottom: .4em; }
.horizon__col p { color: var(--ink-2); max-width: 46ch; }
.horizon__link { margin-top: 1.1em; }
.horizon__link a { font-weight: 600; }
.horizon__note { margin-top: 1.1em; font-size: .9rem; color: var(--ink-3); }
