/* Sprangler Sports site. Brand rules: BRAND.md (light and calm: white + one light neutral, navy text, one blue accent;
   no gradients / eyebrows / icon tiles / cards). Mobile first: base styles are the 390 px phone, min-width queries add the desktop. */
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/barlow-400.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/barlow-600.woff2") format("woff2"); }

:root {
  --ink: #0b1d36;          /* navy: text only */
  --blue: #0b63ce;         /* the one accent: buttons, links, small marks */
  --white: #fff;
  --paper: #f5f6f8;        /* the one light neutral: alternate sections, footer, form fields */
  --muted: #4f5d70;        /* navy, softened for body copy */
  --line: #dfe3e9;
  --font: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1160px;
  --pad: 22px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 400 18px/1.6 var(--font); color: var(--ink); background: var(--white); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: 3px; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-weight: 600; line-height: 1.08; letter-spacing: -.02em; margin: 0 0 .45em; }
h1 { font-size: clamp(2.6rem, 10.5vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 7vw, 2.6rem); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; line-height: 1.3; margin-bottom: .3em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.small { font-size: .95rem; }
.lead { font-size: 1.2rem; line-height: 1.5; color: var(--muted); max-width: 32em; }
@media (min-width: 900px) { :root { --pad: 40px; } .lead { font-size: 1.3rem; } }

/* button: one per screen, flat */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 28px; border: 0; border-radius: 6px;
  background: var(--blue); color: var(--white); font: 600 1.08rem/1 var(--font); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--ink); color: var(--white); }
.btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.btn[disabled] { opacity: .6; cursor: wait; }
.btn-wide { width: 100%; }
.text-link { font-weight: 600; }

/* campaign banner ("Prepared for <school>") */
.prepared { background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--line); text-align: center; font-weight: 600; font-size: .95rem; padding: 9px 16px; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; min-height: 66px; gap: 16px; }
.brand img { width: 84px; height: auto; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1rem; }
.nav a:hover { color: var(--blue); }
.nav .nav-hide { display: none; }
.nav .nav-cta { color: var(--blue); }
@media (min-width: 900px) {
  .top-in { min-height: 78px; }
  .brand img { width: 96px; }
  .nav { gap: 36px; }
  .nav .nav-hide { display: inline; }
}

/* sections */
.section { padding: 64px 0; }
.alt { background: var(--paper); }
@media (min-width: 900px) { .section { padding: 104px 0; } }

/* home hero: text, then a wide photo */
.hero { padding: 44px 0 0; }
.hero h1 { max-width: 11em; }
.hero .lead { margin-bottom: 1.5em; }
.hero-note { margin: 18px 0 0; font-size: .98rem; color: var(--muted); }
.price-note { font-weight: 600; border-left: 3px solid var(--blue); padding-left: 12px; max-width: 32em; }
.hero-photo { margin: 40px 0 0; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 900px) {
  .hero { padding: 72px 0 0; }
  .hero-in { display: grid; grid-template-columns: 5fr 6fr; gap: 64px; align-items: center; }
  .hero-photo { margin: 0; }
  .hero-photo img { aspect-ratio: 5 / 4; border-radius: 6px; }
}

/* what we handle: plain two-column list */
.handle { list-style: none; padding: 0; margin: 28px 0 0; border-top: 1px solid var(--line); }
.handle li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.handle b { display: block; font-weight: 600; font-size: 1.12rem; }
.handle span { color: var(--muted); }
@media (min-width: 900px) {
  .split { display: grid; grid-template-columns: 4fr 7fr; gap: 72px; align-items: start; }
  .handle { margin-top: 0; }
  .handle li { display: grid; grid-template-columns: 170px 1fr; gap: 32px; padding: 20px 0; align-items: baseline; }
}

/* sports: one plain line */
.sports { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 1.1em; font-size: 1.35rem; font-weight: 600; }
.sport { white-space: nowrap; }
.sport.highlight { color: var(--blue); }
@media (min-width: 900px) { .sports { font-size: 1.55rem; gap: 8px 1.25em; } }

/* how it works: three plain steps */
.steps { list-style: none; padding: 0; margin: 28px 0 0; counter-reset: s; }
.steps li { counter-increment: s; padding: 18px 0; border-top: 1px solid var(--line); }
.steps li::before { content: counter(s) "."; font-weight: 600; font-size: 1.25rem; color: var(--blue); margin-right: .35em; }
.steps b { font-weight: 600; font-size: 1.25rem; }
.steps span { display: block; margin-top: 4px; }
.steps span { color: var(--muted); }
@media (min-width: 900px) {
  .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 40px; }
  .steps li { padding-top: 22px; }
}

/* photos: wide, real, no frames */
.photo { margin: 0; }
.photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.photo figcaption { font-size: .92rem; color: var(--muted); padding: 10px var(--pad) 0; }
.photos { display: grid; gap: 12px; }
@media (min-width: 900px) {
  .photos { grid-template-columns: 1fr 1fr; gap: 24px; }
  .photo img { border-radius: 6px; }
  .photo figcaption { padding: 10px 0 0; }
  .photo-wide img { aspect-ratio: 21 / 9; }
}

/* schools we work with: a quiet line of names */
.schools { margin: 40px 0 0; color: var(--muted); max-width: 52em; }
.schools b { color: var(--ink); font-weight: 600; }

/* closing call to action */
.cta { text-align: left; }
.cta p { max-width: 30em; }
@media (min-width: 900px) { .cta-in { display: flex; align-items: center; justify-content: space-between; gap: 48px; } .cta-in > div { max-width: 40em; } .cta p { margin-bottom: 0; } }

/* inner page heads */
.page-head { padding: 44px 0 8px; }
.page-head h1 { max-width: 12em; }
@media (min-width: 900px) { .page-head { padding: 80px 0 16px; } }

/* form */
.form-wrap { display: grid; gap: 48px; }
@media (min-width: 900px) { .form-wrap { grid-template-columns: 1.8fr 1fr; gap: 80px; align-items: start; } }
.form h2 { font-size: 1.3rem; letter-spacing: -.01em; margin: 34px 0 14px; padding-top: 22px; border-top: 1px solid var(--line); }
.form h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.form label { display: block; font-weight: 600; font-size: 1rem; margin-bottom: 18px; }
.form input:not([type=checkbox]), .form select, .form textarea { display: block; width: 100%; margin-top: 6px; font: inherit; font-weight: 400; font-size: 1.05rem;
  padding: 12px 14px; border: 1px solid #c9d0da; border-radius: 6px; background: var(--white); color: var(--ink); min-height: 52px; -webkit-appearance: none; appearance: none; }
.form select { background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230b1d36' stroke-width='2'/%3E%3C/svg%3E") right 14px center/12px 8px no-repeat; padding-right: 40px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.form [aria-invalid="true"] { border-color: var(--blue); outline: 2px solid var(--blue); }
.grid2 { display: grid; gap: 0 20px; }
@media (min-width: 640px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.req { color: var(--blue); }
.opt { color: var(--muted); font-weight: 400; }
fieldset { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.checks.days { grid-template-columns: repeat(3, 1fr); }
@media (min-width: 640px) { .checks { grid-template-columns: repeat(3, 1fr); } .checks.days { grid-template-columns: repeat(6, auto); justify-content: start; } }
.checks label { display: flex; align-items: center; gap: 10px; margin: 0; font-weight: 400; border: 1px solid #c9d0da; border-radius: 6px; padding: 10px 12px; cursor: pointer; min-height: 50px; background: var(--white); }
.checks input { width: 20px; height: 20px; flex: none; accent-color: var(--blue); }
.checks label:has(input:checked) { border-color: var(--blue); outline: 1px solid var(--blue); outline-offset: -2px; }
.other { margin-top: 10px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-err { border-left: 3px solid var(--blue); background: var(--paper); padding: 12px 14px; font-weight: 600; }
.form-done { border-top: 3px solid var(--blue); padding-top: 24px; }
.form-done:focus { outline: none; }
.form-side { border-top: 1px solid var(--line); padding-top: 24px; }
.form-side h2 { font-size: 1.3rem; letter-spacing: -.01em; }
.form-side p { color: var(--muted); }
.form-side .contact { margin-top: 28px; }
.form-side .contact p { margin: 0 0 4px; color: var(--ink); }
@media (min-width: 900px) { .form-side { position: sticky; top: 110px; } }

/* footer */
.foot { background: var(--paper); color: var(--muted); padding: 48px 0 28px; font-size: 1rem; border-top: 1px solid var(--line); }
.foot a { color: var(--ink); }
.foot-in { display: grid; gap: 22px; }
.foot-name { color: var(--ink); font-weight: 600; margin-bottom: 4px; }
.foot-small { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .9rem; }
@media (min-width: 900px) { .foot-in { grid-template-columns: 2fr 1fr 1fr; gap: 48px; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.photo-band { padding: 0; }
.photo-band .wrap { padding: 0; }
@media (min-width: 900px) { .photo-band { padding: 104px 0 0; } .photo-band .wrap { padding: 0 var(--pad); } }
.more-sports { margin: 18px 0 0; }
.page-head + .section { padding-top: 28px; }
#sports { padding-bottom: 0; }
.cta-in > div:first-child { border-top: 1px solid var(--line); padding-top: 48px; }
.cta.section { padding-top: 64px; }
@media (min-width: 900px) { .cta-in { border-top: 1px solid var(--line); padding-top: 72px; } .cta-in > div:first-child { border-top: 0; padding-top: 0; } .cta.section { padding-top: 88px; } }

/* third pass (25 Oct): Carrd section order. About + crests, programs text + photo stack, form at the bottom */
.split-even { align-items: start; }
@media (min-width: 900px) { .split-even { grid-template-columns: 1fr 560px; gap: 72px; } }
#about .split > div:first-child p { max-width: 30em; }
.crests-head { margin: 36px 0 18px; font-size: 1.1rem; }
.crests { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px 8px; align-items: center; justify-items: center; }
/* crests are ~100 px files: half size on 2x phones, two thirds on 1x desktops, never upscaled */
.crest { height: calc(var(--h) * .48px); width: auto; }
@media (min-width: 900px) {
  .crests-head { margin-top: 0; }
  .crests { grid-template-columns: repeat(6, 1fr); gap: 34px 12px; }
  .crest { height: calc(var(--h) * .62px); }
}
.steps-stack { margin: 28px 0 32px; }
@media (min-width: 900px) { .steps-stack { display: block; margin: 32px 0 36px; } .steps-stack li { padding: 16px 0; } }
.stack { display: grid; gap: 14px; margin-top: 44px; }
.strip { margin: 0; }
.strip img { width: 100%; aspect-ratio: 4 / 1; object-fit: cover; }
.strip figcaption { font-size: .9rem; color: var(--muted); padding-top: 6px; }
@media (min-width: 900px) { .stack { margin-top: 0; gap: 18px; } .strip img { border-radius: 6px; } }
#enquire .form-lead { margin-bottom: 0; }
#enquire > .wrap:first-child { margin-bottom: 36px; }
