/* SportsEd Solutions: public website.
   Brand: navy #002B58, orange #FF6504, Poppins. One bold element (the hero before/after);
   everything else is quiet and left aligned. */
:root {
  --navy: #002b58;
  --navy-deep: #001a36;
  --orange: #ff6504;
  --orange-dark: #d94f00;
  --ink: #0f1b2b;
  --body: #3d4a5c;
  --mist: #eef2f7;
  --line: #dde3eb;
  --white: #fff;
  --wrap: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--white); color: var(--body);
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
h1, h2, h3 { color: var(--navy); margin: 0; line-height: 1.12; letter-spacing: -.02em; }
p { margin: 0; }
a { color: var(--navy); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-weight: 600; font-size: .98rem; text-decoration: none;
  padding: .8rem 1.4rem; border-radius: 10px; border: 2px solid transparent;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: var(--orange-dark); }
.btn-line { border-color: var(--line); color: var(--navy); }
.btn-line:hover { border-color: var(--navy); }
.btn-lg { padding: 1rem 1.7rem; font-size: 1.05rem; }

/* ---------- Nav ---------- */
.nav { border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .96); position: sticky; top: 0; z-index: 5; backdrop-filter: saturate(1.4) blur(8px); }
.nav-inner { display: flex; align-items: center; gap: 2.5rem; min-height: 78px; }
.nav-logo img { display: block; width: 112px; height: auto; }
.nav-links { display: flex; gap: 1.8rem; flex: 1; }
.nav-links a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav-links a:hover { color: var(--orange-dark); }
.nav-actions { display: flex; gap: .6rem; flex: none; }
.nav-cta { padding: .6rem 1.1rem; font-size: .92rem; white-space: nowrap; }

/* ---------- Hero ---------- */
.hero { padding: clamp(3rem, 7vw, 6rem) 0 clamp(3.5rem, 7vw, 6rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 4vw, 3.5rem); font-weight: 800; letter-spacing: -.035em; max-width: 13ch; }
.lede { font-size: 1.1rem; margin-top: 1.4rem; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.demo-hint { font-size: .85rem; color: #6b7788; margin-top: .9rem; text-align: center; }

/* ---------- Before / after ---------- */
.ba {
  --pos: 50%;
  position: relative; aspect-ratio: 1073 / 861; container-type: inline-size;
  border-radius: 16px; overflow: hidden; background: #ccc; touch-action: pan-y;
  box-shadow: 0 1px 2px rgba(0, 27, 54, .08), 0 30px 60px -20px rgba(0, 27, 54, .35);
}
.ba-wrap { margin: 0; }
.ba-pane { position: absolute; inset: 0; }
.ba-after img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.ba-after { clip-path: inset(0 0 0 var(--pos)); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: var(--orange); pointer-events: none; }
.ba-handle span {
  position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; transform: translate(-50%, -50%);
  border-radius: 50%; background: var(--orange); box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
}
.ba-handle span::before, .ba-handle span::after {
  content: ''; position: absolute; top: 50%; width: 0; height: 0; margin-top: -6px; border: 6px solid transparent;
}
.ba-handle span::before { left: 7px; border-right: 8px solid #fff; border-left: 0; }
.ba-handle span::after { right: 7px; border-left: 8px solid #fff; border-right: 0; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba:has(.ba-range:focus-visible) .ba-handle span { outline: 3px solid #fff; outline-offset: 3px; }
.ba-caption { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1rem; font-size: .9rem; font-weight: 600; color: var(--ink); }
.ba-caption span { display: inline-flex; align-items: center; gap: .5rem; }
.ba-caption span::before { content: ''; width: .7rem; height: .7rem; border-radius: 50%; background: #9aa3ae; }
.cap-after { color: var(--orange-dark); }
.cap-after::before { background: var(--orange) !important; order: 2; }

/* The original: a familiar text-wall slide */
.old { height: 100%; display: flex; flex-direction: column; background: #f3f3f1; font-family: Arial, Helvetica, sans-serif; color: #222; }
.old-bar { background: #4a6a9a; color: #fff; font-size: 2.3cqw; font-weight: 700; padding: 1.3cqw 2.6cqw; }
.old-body { flex: 1; padding: 1.8cqw 3cqw 0; font-family: 'Times New Roman', Times, serif; overflow: hidden; }
.old-p { font-size: 2.05cqw; line-height: 1.38; margin-bottom: 1.4cqw; }
.old-h { font-size: 2.6cqw; font-weight: 700; text-decoration: underline; margin-bottom: 1cqw; }
.old ul { margin: 0; padding-left: 3.4cqw; font-size: 2.05cqw; line-height: 1.32; }
.old li { margin-bottom: .6cqw; }
.old-foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #c8c8c8; padding: 1.2cqw 2.6cqw; font-size: 1.75cqw; color: #666; }
.old-btn { background: linear-gradient(#fdfdfd, #d9d9d9); border: 1px solid #999; color: #333; padding: .3cqw 1.6cqw; border-radius: 3px; }

/* ---------- Section basics ---------- */
.signs, .refresh, .new, .make { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.eyebrow { color: var(--orange-dark); font-weight: 700; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .9rem; }
.sec-h { font-size: clamp(1.9rem, 3.2vw, 2.6rem); font-weight: 800; max-width: 22ch; }
.sec-sub { margin-top: 1rem; max-width: 40em; font-size: 1.05rem; }
.btn svg { width: 1.1em; height: 1.1em; margin-left: .45rem; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); }

/* Icon tiles used by the signs and formats */
.tile-ico { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: #ffe9db; color: var(--orange-dark); margin-bottom: 1.1rem; }
.tile-ico svg { width: 24px; height: 24px; }
.tile-navy { background: var(--navy); color: #fff; }

/* ---------- Four signs ---------- */
.hero { background: var(--mist); }
.sign-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; margin-top: 2.6rem; }
.sign { border: 1px solid var(--line); border-radius: 16px; padding: 1.6rem 1.4rem; background: #fff; }
.sign h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: .6rem; line-height: 1.3; }
.sign p { font-size: .95rem; }

/* ---------- Refresh (navy) ---------- */
.refresh { background: var(--navy); color: rgba(255, 255, 255, .82); }
.refresh .sec-h { color: #fff; }
.refresh .eyebrow { color: var(--orange); }
.refresh-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.3fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.steps { list-style: none; padding: 0; margin: 2.2rem 0 2.4rem; counter-reset: step; display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem 2rem; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.4rem 1fr; column-gap: .9rem; }
.steps li::before {
  content: counter(step); grid-row: span 2; width: 2.4rem; height: 2.4rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--orange); color: #fff; font-weight: 700;
}
.steps b { color: #fff; font-weight: 600; }
.steps span { font-size: .95rem; }

/* Shield photos */
.shield-photo { display: block; width: 100%; max-width: 360px; height: auto; margin: 0 auto; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .25)); }
.shield-edge { fill: none; stroke-width: 9; stroke-linejoin: round; }
.shield-dark .shield-edge { stroke: #fff; }
.shield-light .shield-edge { stroke: var(--navy); }

/* ---------- Build new ---------- */
.new { background: var(--mist); }
.new-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .8fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.ticks { list-style: none; padding: 0; margin: 1.8rem 0 2.2rem; display: grid; gap: .8rem; }
.ticks li { position: relative; padding-left: 2rem; color: var(--ink); font-weight: 500; }
.ticks li::before {
  content: ''; position: absolute; left: 0; top: .2em; width: 1.3rem; height: 1.3rem; border-radius: 50%;
  border: 2px solid var(--orange);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 12.5 3.2 3.2L17 9' fill='none' stroke='%23ff6504' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat;
}

/* ---------- What we make ---------- */
.format-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; margin-top: 2.6rem; }
.format { border: 1px solid var(--line); border-radius: 16px; padding: 1.8rem 1.6rem; background: #fff; display: flex; flex-direction: column; }
.format h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: .7rem; }
.format p { font-size: .97rem; }
.format-out { margin-top: auto; padding-top: 1rem; font-size: .9rem; color: var(--ink); }
.format-out b { color: var(--orange-dark); margin-right: .3rem; }

/* ---------- Proof: stats + logos ---------- */
.proof { padding: 0 0 clamp(4rem, 8vw, 6rem); }
.stats { list-style: none; margin: 0; padding: 2.4rem 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats li { display: flex; gap: 1rem; align-items: flex-start; }
.stat-ico { color: var(--orange); flex: none; }
.stat-ico svg { width: 34px; height: 34px; }
.stats b { display: block; font-size: 1.9rem; font-weight: 800; color: var(--navy); line-height: 1.1; letter-spacing: -.02em; }
.stats small { display: block; font-size: .92rem; color: var(--body); margin-top: .2rem; }
.logos-h { font-size: 1rem; font-weight: 600; color: var(--body); letter-spacing: 0; margin-top: 2.4rem; }
.logo-row { list-style: none; margin: 1.2rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1rem; }
.logo-row li { display: grid; place-items: center; width: 170px; height: 88px; border: 1px solid var(--line); border-radius: 12px; padding: .8rem 1rem; background: #fff; }
.logo-row img { display: block; width: auto; height: auto; max-height: 64px; max-width: 138px; object-fit: contain; }

/* ---------- CTA ---------- */
.cta { background: var(--navy); color: rgba(255, 255, 255, .82); padding: clamp(3.5rem, 7vw, 5rem) 0; position: relative; overflow: hidden; }
.cta::after { content: ''; position: absolute; right: 6%; top: -30%; width: 260px; aspect-ratio: 233 / 293; background: url('/img/shield.svg') center / contain no-repeat; pointer-events: none; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; position: relative; z-index: 1; }
.cta-inner > div { max-width: 36em; }
.cta h2 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; margin-bottom: .5rem; }

/* ---------- Contact ---------- */
.contact { padding: clamp(3.5rem, 7vw, 5.5rem) 0; background: var(--mist); }
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact h1 { font-size: clamp(2.2rem, 4vw, 3.1rem); font-weight: 800; max-width: 14ch; }
.contact .lede { margin-top: 1.2rem; }
.next-steps { list-style: none; padding: 0; margin: 2.2rem 0 0; counter-reset: step; display: grid; gap: 1.1rem; }
.next-steps li { counter-increment: step; display: grid; grid-template-columns: 2.2rem 1fr; column-gap: .9rem; }
.next-steps li::before { content: counter(step); grid-row: span 2; width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font-weight: 700; font-size: .9rem; }
.next-steps b { color: var(--navy); }
.next-steps span { font-size: .95rem; }
.contact-form { background: #fff; border-radius: 18px; padding: clamp(1.5rem, 3.5vw, 2.4rem); box-shadow: 0 2px 4px rgba(0, 27, 54, .05), 0 24px 60px rgba(0, 27, 54, .12); }
.enquiry label { display: block; font-weight: 600; font-size: .9rem; color: var(--navy); margin-bottom: 1.1rem; }
.enquiry input[type=text], .enquiry input[type=email], .enquiry textarea {
  display: block; width: 100%; margin-top: .4rem; font: inherit; font-weight: 400; font-size: 1rem; color: var(--ink);
  padding: .75rem .9rem; border: 1.5px solid var(--line); border-radius: 10px; background: #fff;
}
.enquiry input:focus, .enquiry textarea:focus { outline: none; border-color: var(--navy); }
.enquiry textarea { resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.needs { border: 0; padding: 0; margin: 0 0 1.1rem; }
.needs legend { font-weight: 600; font-size: .9rem; color: var(--navy); margin-bottom: .5rem; padding: 0; }
.needs { display: flex; flex-wrap: wrap; gap: .5rem; }
.enquiry .need { margin: 0; font-weight: 500; }
.need input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.need span { display: inline-block; padding: .5rem .9rem; border: 1.5px solid var(--line); border-radius: 99px; font-size: .9rem; color: var(--ink); cursor: pointer; }
.need input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.need input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { background: #fdecec; color: #8a1c1c; border-left: 4px solid #c62828; padding: .8rem 1rem; border-radius: 8px; margin-bottom: 1.2rem; font-size: .95rem; }
.sent { text-align: left; }
.sent-ico { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #e9f6ee; color: #1b7a43; margin-bottom: 1rem; }
.sent-ico svg { width: 26px; height: 26px; margin: 0; }
.sent h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: .6rem; }
.sent p { margin-bottom: 1.6rem; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.foot { background: var(--navy-deep); color: rgba(255, 255, 255, .7); padding: 3.5rem 0 2.5rem; font-size: .93rem; }
.foot-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 1.5rem 3rem; align-items: start; }
.foot-inner img { width: 120px; }
.foot-inner > p:first-of-type { max-width: 30em; }
.foot-links { display: grid; gap: .5rem; }
.foot-links a { color: #fff; text-decoration: none; }
.foot-links a:hover { color: var(--orange); }
.foot-small { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 1.5rem; font-size: .82rem; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .refresh-grid, .new-grid, .format-grid { grid-template-columns: 1fr; }
  .sign-grid { grid-template-columns: 1fr 1fr; }
  .refresh-photo .shield-photo, .new-photo .shield-photo { max-width: 260px; }
  .new-photo { order: -1; }
  .hero h1 { max-width: 16ch; }
  .foot-inner { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .nav-inner { gap: 1rem; justify-content: space-between; min-height: 66px; }
  .nav-logo img { width: 84px; }
  .nav-actions { gap: .4rem; }
  .nav-cta { padding: .5rem .75rem; font-size: .82rem; }
  .cta::after { display: none; }
  .sign-grid, .steps, .stats { grid-template-columns: 1fr; }
}
