/* Layout: court-green opening with a to-scale court beside the pitch; quiet light sections below. */
:root {
  --surround: #235a45;
  --surround-deep: #1a4636;
  --court: #2c62a8;
  --line: #ffffff;
  --ball: #dcea52;
  --ball-hover: #eaf67a;
  --court-hover: #234f89;
  --court-tint: #d3dfe0;
  --ink: #13261e;
  --muted: #4c6157;
  --paper: #f2f6f3;
  --paper-deep: #e2ebe5;
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
}

/* Base */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font);
}
h1,
h2,
h3,
p,
ol {
  margin: 0;
  padding: 0;
}
h1,
h2 {
  font-stretch: 118%;
  font-weight: 750;
  text-wrap: balance;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
h1 {
  font-size: clamp(2.3rem, 5.4vw, 4.2rem);
}
h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}
:focus-visible {
  outline: 3px solid var(--ball);
  outline-offset: 3px;
}
main :focus-visible {
  outline-color: var(--court);
}
.wrap {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Buttons */
.btn {
  display: inline-block;
  border: 0;
  border-radius: 4px;
  padding: 14px 22px;
  background: var(--ball);
  color: var(--ink);
  font: 700 1.0625rem/1.2 var(--font);
  text-decoration: none;
  cursor: pointer;
}
.btn:hover {
  background: var(--ball-hover);
}

/* Header and hero */
.top {
  background: var(--surround);
  color: var(--line);
}
.bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
  padding-block: 22px;
}
.bar a {
  color: inherit;
}
.yt {
  display: block;
  line-height: 0;
}
.brand {
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  font-stretch: 118%;
  font-weight: 750;
  text-decoration: none;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
  padding-block: 28px 64px;
}
.pitch {
  display: grid;
  gap: 26px;
  justify-items: start;
  min-width: 0;
}
.pitch > p {
  max-width: 46ch;
  font-size: 1.15rem;
}
.court {
  width: 100%;
  max-width: 330px;
  justify-self: center;
  display: block;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
  padding-bottom: 28px;
}
.clip {
  margin: 0;
  min-width: 0;
}
.clip figcaption {
  margin-bottom: 8px;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
}
.clip video,
.wins {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 4px;
  background: var(--surround-deep);
}
.clip #match {
  object-fit: contain;
}
.wins {
  position: relative;
  margin: 0;
  overflow: hidden;
}
.slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.7s;
}
.slides img.on {
  opacity: 1;
}
.cap {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  gap: 2px;
  padding: 10px 14px 6px;
  background: rgb(19 38 30 / 0.86);
  font-weight: 650;
  line-height: 1.3;
}
.dots {
  display: flex;
  align-items: center;
  margin-left: -7px;
}
.dots button {
  width: 28px;
  height: 28px;
  padding: 8px;
  border: 0;
  background: var(--line) content-box;
  border-radius: 50%;
  opacity: 0.5;
  cursor: pointer;
}
.dots button[aria-current] {
  opacity: 1;
  background-color: var(--ball);
}
.dots .pause {
  width: auto;
  height: auto;
  margin-left: auto;
  padding: 4px 8px;
  border-radius: 4px;
  background: none;
  color: var(--line);
  font: 600 0.95rem/1.3 var(--font);
  opacity: 1;
  text-decoration: underline;
}

/* Sections and lesson steps */
section {
  padding-block: clamp(52px, 8vw, 92px);
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 32px clamp(32px, 6vw, 88px);
}
.steps {
  display: grid;
  gap: 26px;
  padding-left: 1.4em;
}
.steps li::marker {
  font-weight: 700;
  color: var(--court);
}
.steps h3 {
  font-size: 1.15rem;
  font-weight: 700;
}
.steps p {
  max-width: 60ch;
  color: var(--muted);
}

/* Rates */
.rate-band {
  background: var(--paper-deep);
}
.rate {
  display: grid;
  gap: 24px;
}
.party {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.party legend {
  padding: 0 0 10px;
  font-size: 1.15rem;
  font-weight: 700;
}
.party small {
  display: inline-block;
  margin-left: 10px;
  color: var(--muted);
  font-size: 1.0625rem;
  font-weight: 400;
}
.sizes {
  display: flex;
  gap: 10px;
}
.sizes label {
  position: relative;
}
.sizes input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.sizes span {
  display: grid;
  place-items: center;
  width: 60px;
  height: 52px;
  border: 1.5px solid var(--court);
  border-radius: 4px;
  color: var(--court);
  font-size: 1.2rem;
  font-weight: 700;
}
.sizes input:hover + span {
  background: var(--court-tint);
}
.sizes input:checked + span {
  background: var(--court);
  color: var(--line);
}
.sizes input:focus-visible + span {
  outline: 3px solid var(--court);
  outline-offset: 3px;
}
.quote {
  display: grid;
  gap: 10px;
  color: var(--muted);
}
.price {
  color: var(--ink);
  font-stretch: 118%;
  font-weight: 750;
  font-size: clamp(3.2rem, 8vw, 5.4rem);
  line-height: 1;
  letter-spacing: -0.03em;
}
.price small {
  display: inline-block;
  font-size: clamp(1.15rem, 2.4vw, 1.7rem);
  font-weight: 600;
  letter-spacing: 0;
}

/* Contact */
.contact {
  display: grid;
  gap: 14px;
  align-content: start;
  color: var(--muted);
}
.address {
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 650;
  overflow-wrap: anywhere;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.actions .btn {
  border: 1.5px solid var(--court);
  background: var(--court);
  color: var(--line);
}
.actions .btn:hover {
  background: var(--court-hover);
}
.actions .alt {
  background: transparent;
  color: var(--court);
}
.actions .alt:hover {
  background: var(--paper-deep);
}

/* Footer */
footer {
  background: var(--surround-deep);
  color: var(--line);
  padding-block: 26px;
}

/* Small screens and reduced motion */
@media (max-width: 780px) {
  .hero,
  .split {
    grid-template-columns: minmax(0, 1fr);
  }
  .court {
    max-width: 260px;
  }
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gallery .comp {
    grid-column: 1 / -1;
    order: -1;
  }
  .party legend {
    font-size: 1rem;
  }
  .party small {
    margin-left: 2px;
    font-size: 0.75rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
