/* Sideline Shift Website: brand tokens from the approved logo package
   (brand-assets/README.txt: black #101010 / Athletic Green #2F6B3B, Helvetica Neue Bold
   wordmark) and the app (shanesalski/sidelineshift, src/index.css). Copied, not imported:
   the two codebases share nothing at build time. */
:root {
  color-scheme: light dark;

  --brand: #2F6B3B;        /* Athletic Green, approved package + app's --color-brand-600 */
  --brand-hover: #255730;
  --brand-tint: #EAF4EE;
  --on-brand: #FFFFFF;
  --ink: #101010;          /* approved package black */
  --nav: #020617;          /* app's --color-nav (sign-in screen background) */
  --nav-line: rgb(255 255 255 / 0.1);

  --bg: #FAF8F3;
  --surface: #FFFFFF;
  --text: #111827;
  --text-muted: #475569;
  --line: #D9E2EC;

  --radius-card: 1rem;
  --radius-control: 0.75rem;
  --radius-pill: 999px;
  --max: 72rem;
  /* Approved package: "Wordmark: Helvetica Neue Bold / equivalent clean sans-serif." A
     system stack, not a web font: Baseline widely available, no network request, no FOUC. */
  --font-display: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #4CA05F;
    --brand-hover: #5DB872;
    --brand-tint: #11281A;
    --on-brand: #04130A;
    --bg: #0B1220;
    --surface: #111A2B;
    --text: #E5E7EB;
    --text-muted: #A3B0C2;
    --line: #23324A;
  }
}

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

html { accent-color: var(--brand); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brand); }
a:hover { color: var(--brand-hover); }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.5rem, 7vw, 4.25rem); margin: 0 0 1rem; text-transform: uppercase; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin: 0 0 1rem; }
h3 { font-size: 1.35rem; margin: 0 0 0.5rem; }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: 1rem; }

.skip {
  position: absolute; left: -999px; top: 0.5rem;
  background: var(--surface); color: var(--text); padding: 0.5rem 1rem;
  border-radius: var(--radius-control);
}
.skip:focus { left: 0.5rem; z-index: 10; }

/* Header: permanently dark, like the reference mockup and the app's sign-in screen —
   the one surface that looks identical in every color scheme, on every page. */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--nav) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--nav-line);
  color-scheme: dark;
}
.site-header .wrap {
  display: flex; align-items: center; gap: 1rem; min-height: 4.25rem;
}
.brand {
  display: flex; align-items: center; gap: 0.6rem;
  color: #fff; text-decoration: none; white-space: nowrap;
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.02em;
}
.brand img { width: 2.25rem; height: 2.25rem; }

.nav { display: flex; gap: 1.75rem; margin-inline-start: auto; }
.nav a {
  color: rgb(255 255 255 / 0.85); text-decoration: none; font-weight: 600;
  font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.03em;
}
.nav a:hover { color: #fff; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.65rem 1.25rem; border-radius: var(--radius-pill);
  font-weight: 700; text-decoration: none; white-space: nowrap;
  border: 2px solid transparent;
  text-transform: uppercase; letter-spacing: 0.03em; font-size: 0.95rem;
}
.btn-primary { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.btn-primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); color: var(--on-brand); }
.btn-ghost { color: var(--brand); background: transparent; border-color: var(--brand); }
.btn-ghost:hover { background: var(--brand-tint); }
.btn-lg { padding: 0.9rem 1.75rem; font-size: 1.05rem; }

/* On the dark header, Login is a light pill — matches the reference mockup's button. */
.site-header .btn-login {
  background: #fff; color: var(--ink); border-color: #fff;
}
.site-header .btn-login:hover { background: #E2E8F0; border-color: #E2E8F0; }

/* Small screens: page links move into a disclosure menu; Log in stays visible. */
.menu { display: none; position: relative; }
.menu summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 0.4rem;
  padding: 0.5rem 0.75rem; border: 1px solid rgb(255 255 255 / 0.3);
  border-radius: var(--radius-control); font-weight: 600; color: #fff;
}
.menu summary::-webkit-details-marker { display: none; }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 0.5rem);
  display: grid; gap: 0.25rem; min-width: 12rem; padding: 0.5rem;
  background: var(--nav); border: 1px solid rgb(255 255 255 / 0.15); border-radius: var(--radius-card);
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.4);
}
.menu-panel a {
  padding: 0.6rem 0.75rem; border-radius: 0.5rem; color: rgb(255 255 255 / 0.9);
  text-decoration: none; text-transform: uppercase; font-size: 0.9rem; font-weight: 600;
}
.menu-panel a:hover { background: rgb(255 255 255 / 0.08); color: #fff; }

@media (max-width: 47.99rem) {
  .nav { display: none; }
  .menu { display: block; margin-inline-start: auto; }
  .site-header .wrap { gap: 0.5rem; }
  .site-header .btn-login { padding: 0.55rem 0.9rem; font-size: 0.85rem; }
  .menu summary { padding: 0.5rem 0.6rem; }
}

/* Very narrow phones: the full wordmark, "Menu" label and Login pill no longer all fit on
   one row. Drop the wordmark text and the "Menu" label; the logo and icons stay, each with
   its own accessible name (the link's visible text / summary's aria-label). */
@media (max-width: 26rem) {
  .brand-text { display: none; }
  .menu-text { display: none; }
}

/* Hero art: the owner's illustration, pulled up by the header's height so the translucent
   sticky header reads directly on top of it ("behind the big header"). Decorative only — the
   page's real, accessible heading is the hidden <h1> in .hero below. */
.hero-art {
  position: relative;
  margin-top: calc(-1 * 4.25rem);
  overflow: hidden;
  color-scheme: dark;
}
.hero-bg { display: block; width: 100%; height: auto; }
.hero-art::after {
  /* Scrim: dark enough under the header for the nav links, clear over the art's midsection,
     then fades to the solid --nav the copy section below already sits on — one seamless drop
     from image to brand-dark, in any color scheme. */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgb(2 6 23 / 0.65) 0%,
    rgb(2 6 23 / 0.1) 20%,
    rgb(2 6 23 / 0.05) 55%,
    var(--nav) 100%
  );
}

.hero {
  color-scheme: dark;
  background: var(--nav);
  color: #fff;
  padding-block: clamp(2.5rem, 6vw, 4rem) clamp(4rem, 10vw, 7rem);
  text-align: center;
  border-bottom: 1px solid var(--nav-line);
}
.hero .wrap { max-width: 50rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.hero p.lead { font-size: 1.2rem; color: rgb(255 255 255 / 0.75); max-width: 38rem; margin-inline: auto; }
.eyebrow {
  display: inline-block; font-weight: 700; font-size: 0.85rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: #6FCB84; margin-bottom: 0.75rem;
}
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 1.75rem; }
.hero .btn-ghost { color: #fff; border-color: rgb(255 255 255 / 0.4); }
.hero .btn-ghost:hover { background: rgb(255 255 255 / 0.08); }

/* Sections */
section:not(.hero) { padding-block: clamp(3rem, 8vw, 6rem); }
.alt { background: var(--surface); border-block: 1px solid var(--line); }

.grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: 1.5rem;
}
.alt .card { background: var(--bg); }
.card p { margin: 0; color: var(--text-muted); }

.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: grid; place-items: center; width: 2.25rem; height: 2.25rem; margin-bottom: 0.75rem;
  border-radius: 999px; background: var(--brand); color: var(--on-brand); font-weight: 700;
}

.reviews-note {
  background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius-card);
  padding: 1.5rem; color: var(--text-muted);
}

.cta {
  background: var(--nav); color: #fff; border-radius: var(--radius-card);
  padding: clamp(2rem, 6vw, 3.5rem); text-align: center; color-scheme: dark;
}
.cta p { color: #CBD5E1; }
.cta .actions { justify-content: center; }
.cta .btn-primary { background: #4CA05F; border-color: #4CA05F; color: #04130A; }
.cta .btn-primary:hover { background: #5DB872; border-color: #5DB872; }

.prose { max-width: 46rem; }
.prose h2 { font-size: 1.5rem; margin-top: 2.5rem; }
.contact-list { list-style: none; padding: 0; display: grid; gap: 0.5rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line); padding-block: 2rem;
  color: var(--text-muted); font-size: 0.95rem;
}
.site-footer .wrap {
  display: flex; flex-wrap: wrap; gap: 1rem 2rem;
  align-items: center; justify-content: space-between;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.site-footer a { color: var(--text-muted); }

.footer-brand { display: flex; flex-direction: column; gap: 0.25rem; }
.footer-brand-link { font-size: 1rem; }
.footer-tagline {
  font-size: 0.85rem; font-style: italic; color: var(--text-muted);
  font-family: var(--font-display);
}
.footer-copy { font-size: 0.875rem; color: var(--text-muted); }

@media (prefers-reduced-motion: no-preference) {
  .btn { transition: background-color 0.15s, color 0.15s, border-color 0.15s; }
}
