/* Nexus Athletic Solutions marketing site. Static, no JavaScript, no third-party requests.
   Colors (WCAG AA, checked in tests/design/site.test.mjs):
   - navy #0B1B2E backgrounds with #FFFFFF / #F4F6F8 text (16–17:1) and #7FBBFF accents (8.6:1)
   - blue #1F6FD1 as text only on light backgrounds (4.6:1 on #F4F6F8), as a button with white text (4.9:1)
   - #44566A body text on light backgrounds (7.0:1) */

@font-face {
  font-family: "Oswald";
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/oswald-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/dm-sans-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/dm-sans-latin-700-normal.woff2") format("woff2");
}

:root {
  --navy: #0b1b2e;
  --navy-deep: #07121f;
  --blue: #1f6fd1;
  --blue-hover: #1a5db3;
  --sky: #7fbbff;
  --mist: #c5d3e2;
  --paper: #f4f6f8;
  --white: #ffffff;
  --chip: #eaf2fc;
  --slate: #44566a;
  --display: "Oswald", "Arial Narrow", Arial, sans-serif;
  --body: "DM Sans", Arial, sans-serif;
  --radius: 16px;
  --max: 1160px;
  --gutter: 20px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--navy);
  color: var(--white);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.6;
}

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

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.1;
  margin: 0;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

main {
  flex: 1;
}

main:focus {
  outline: none;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

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

.light :focus-visible {
  outline-color: var(--blue);
}

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

.skip {
  position: absolute;
  left: var(--gutter);
  top: 12px;
  transform: translateY(-200%);
  z-index: 10;
  padding: 12px 18px;
  background: var(--white);
  color: var(--navy);
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
}

.skip:focus {
  transform: none;
}

/* Header */
.site-header {
  border-bottom: 1px solid rgba(197, 211, 226, 0.16);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.brand img {
  width: 120px;
  height: auto;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 8px;
  white-space: nowrap;
  color: var(--mist);
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: none;
  border-radius: 8px;
}

.site-nav a:hover {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 6px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.0625rem;
  text-decoration: none;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--blue-hover);
}

.btn-ghost {
  border-color: var(--sky);
  color: var(--sky);
}

.btn-ghost:hover {
  background: rgba(127, 187, 255, 0.12);
}

/* Shared section bits */
.eyebrow {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sky);
}

.light .eyebrow {
  color: var(--blue);
}

/* Hero */
.hero {
  background: radial-gradient(ellipse at 75% 40%, rgba(31, 111, 209, 0.45) 0%, rgba(11, 27, 46, 0) 60%), var(--navy);
  padding: 56px 0 72px;
  overflow: hidden;
}

.hero .wrap {
  display: grid;
  gap: 48px;
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero h1 {
  font-size: clamp(2.5rem, 8vw, 4.25rem);
}

.status {
  align-self: flex-start;
  padding: 6px 14px;
  border: 1px solid var(--sky);
  border-radius: 14px;
  color: var(--sky);
  font-size: 0.9375rem;
  font-weight: 700;
}

.hero h1 span {
  color: var(--sky);
}

.lede {
  font-size: 1.1875rem;
  color: var(--paper);
  max-width: 34rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.hero-phone {
  justify-self: center;
  width: min(280px, 72vw);
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.5));
}

/* How it works */
.light {
  background: var(--paper);
  color: var(--navy);
}

.how {
  padding: 72px 0;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 44rem;
  margin-bottom: 40px;
}

.section-head h2 {
  font-size: clamp(2rem, 6vw, 3rem);
}

.section-head p:last-child {
  color: var(--slate);
}

.steps {
  display: grid;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.step {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 20px;
  background: var(--white);
  border: 1px solid #d5dee8;
  border-radius: var(--radius);
}

.step img {
  width: 120px;
  filter: drop-shadow(0 10px 18px rgba(11, 27, 46, 0.25));
}

.step-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.chip {
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--chip);
  color: var(--blue-hover);
  font-size: 0.875rem;
  font-weight: 700;
}

.step h3 {
  font-size: 1.5rem;
}

.step h3::before {
  counter-increment: step;
  content: counter(step) ". " / "";
  color: var(--blue);
}

.step p:last-child {
  color: var(--slate);
}

.note {
  margin-top: 24px;
  font-size: 1rem;
  color: var(--slate);
}

/* Contact */
.contact {
  padding: 72px 0;
  background: radial-gradient(ellipse at 20% 100%, rgba(31, 111, 209, 0.35) 0%, rgba(11, 27, 46, 0) 55%), var(--navy);
}

.contact .wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact h2 {
  font-size: clamp(2rem, 6vw, 3rem);
}

.contact p {
  color: var(--paper);
  max-width: 38rem;
}

.btn.email {
  padding: 8px 20px;
  font-size: clamp(0.9375rem, 4.2vw, 1.0625rem);
  overflow-wrap: anywhere;
  text-align: center;
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: var(--mist);
  font-size: 1rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  padding-bottom: 24px;
}

.site-footer p {
  min-width: 0;
  overflow-wrap: anywhere;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--sky);
}

/* 404 */
.notfound {
  display: flex;
  align-items: center;
  padding: 72px 0;
}

.notfound .wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.notfound h1 {
  font-size: clamp(2.5rem, 9vw, 4rem);
  text-transform: uppercase;
}

.notfound p {
  color: var(--paper);
}

/* Wider screens */
@media (min-width: 720px) {
  :root {
    --gutter: 32px;
  }

  .brand img {
    width: 180px;
  }

  .hero .wrap {
    grid-template-columns: 1.3fr 1fr;
  }

  .hero-phone {
    width: 240px;
  }
}

@media (min-width: 960px) {
  .hero {
    padding: 88px 0 104px;
  }

  .hero .wrap {
    grid-template-columns: 1.2fr 1fr;
  }

  .hero-phone {
    width: 300px;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .step {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 28px 24px 32px;
    text-align: center;
  }

  .step img {
    width: 220px;
  }

  .step-text {
    align-items: center;
  }

  .how,
  .contact {
    padding: 104px 0;
  }
}

@media (forced-colors: active) {
  .btn {
    border-color: ButtonText;
  }
}
