/* ==========================================================================
   GROUNDUP SPORTS — base.css
   Design tokens, reset, typography, buttons, small utilities.

   Style brief: bright sports-club marketing site. White paper, soft mint and
   sky panels, generous rounding, one deep-green ink for headings and a teal
   pill button as the single call to action. Cards float on soft shadows
   rather than sitting inside hairline boxes.
   ========================================================================== */

:root {
  /* --- surfaces ---------------------------------------------------------- */
  --paper:        #ffffff;
  --paper-2:      #f2f8f3;   /* page tint / recessed sections */
  --paper-3:      #e6f2e8;   /* soft mint card fill */
  --mint:         #dcefe0;   /* stronger mint block */
  --mint-deep:    #c8e6cf;
  --sky:          #d8eaf6;   /* pale blue card */
  --sky-2:        #eaf4fb;
  --sand:         #f4efe4;

  /* --- ink --------------------------------------------------------------- */
  --ink:          #0f3a22;   /* headings — deep forest green */
  --ink-2:        #4d6355;   /* body copy */
  --ink-3:        #7d9086;   /* captions, meta */
  --line:         #dbe9de;
  --line-2:       #c6ddcb;

  /* --- brand ------------------------------------------------------------- */
  --teal:         #146b60;   /* primary button */
  --teal-dark:    #0d514a;
  --forest:       #0c2e1c;   /* dark panels + footer */
  --forest-2:     #17472e;

  /* --- one accent per sport --------------------------------------------- */
  --cricket:      #1c7a4b;
  --football:     #c06a12;
  --tkd:          #b3322c;

  --accent:       var(--teal);   /* overridden per section */

  /* --- type -------------------------------------------------------------- */
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body:    "DM Sans", "Segoe UI", system-ui, sans-serif;
  --mono:    "Archivo", ui-monospace, monospace;

  /* --- metrics ----------------------------------------------------------- */
  --rail:     78px;          /* fixed social rail width (desktop) */
  --gut:      clamp(18px, 4vw, 56px);
  --maxw:     1240px;
  --hair:     1px solid var(--line);

  /* --- rounding + depth -------------------------------------------------- */
  --r-xl:     34px;
  --r-lg:     26px;
  --r-md:     18px;
  --r-sm:     12px;
  --r-pill:   999px;

  --shadow:      0 18px 40px -26px rgba(12, 46, 28, .38);
  --shadow-lg:   0 30px 70px -34px rgba(12, 46, 28, .45);
  --shadow-card: 0 2px 0 rgba(12, 46, 28, .03), 0 14px 34px -24px rgba(12, 46, 28, .4);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--body);
  font-size: 16.5px;
  line-height: 1.65;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }

/* --------------------------------------------------------------------------
   Typography
   Headings are set uppercase in a heavy grotesque, tight and green, with the
   line breaks doing the layout work. Body copy stays small and quiet beside
   them — that contrast is the whole voice of the design.
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, .display {
  font-family: var(--display);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.02;
  letter-spacing: -.018em;
  text-transform: uppercase;
  margin: 0;
}

h1 { font-size: clamp(2.5rem, 6.2vw, 4.9rem); letter-spacing: -.026em; }
h2 { font-size: clamp(1.95rem, 3.9vw, 3.2rem); letter-spacing: -.022em; }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
h4 { font-size: 1.02rem; letter-spacing: .01em; }

p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }

/* Pill badge that sits above a heading, e.g. "◦ Three sports, one club" */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--body);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .01em;
  text-transform: none;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  padding: .38rem .95rem .38rem .8rem;
  margin: 0 0 1.1rem;
  box-shadow: var(--shadow-card);
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}
/* Plain-text variant for tight spots */
.eyebrow--bare {
  background: none;
  border: 0;
  box-shadow: none;
  padding: 0;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* Section counter, e.g. 01 / 02 / 03 — soft mint, sits behind the heading */
.numeral {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: .82;
  color: var(--mint-deep);
  letter-spacing: -.04em;
  user-select: none;
}

.lede {
  font-size: clamp(1.02rem, 1.3vw, 1.16rem);
  line-height: 1.6;
  color: var(--ink-2);
}

.dek { color: var(--ink-3); font-size: .96rem; }

/* --------------------------------------------------------------------------
   Layout helpers
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gut);
  position: relative;
  z-index: 1;
}

.section { padding-block: clamp(3rem, 6.5vw, 6rem); position: relative; z-index: 1; }
.section--tight { padding-block: clamp(2.2rem, 4.5vw, 3.8rem); }

/* Sunk sections are a rounded mint slab inset from the page edges, not a
   full-bleed band — it keeps the white page visible around every block. */
.section--sunk {
  background: var(--paper-2);
  border-radius: var(--r-xl);
  margin-inline: clamp(10px, 2vw, 26px);
}
.rule-top { border-top: var(--hair); }

/* Tiles inside a sunk section flip to white — a mint card on a mint slab is
   invisible. Everything that normally fills with --paper-2 is listed here. */
.section--sunk .values > div,
.section--sunk .stats div,
.section--sunk .voice,
.section--sunk .honours li,
.section--sunk .facts div,
.section--sunk .contact-lines li,
.section--sunk .team__rows li,
.section--sunk .coach__quote,
.section--sunk .hours th,
.section--sunk .hours td,
.section--sunk .faq details,
.section--sunk .steps li { background: var(--paper); }
.section--sunk .faq details[open],
.section--sunk .steps li[data-state="on"],
.section--sunk .steps li[data-state="done"] { background: var(--paper-3); }

/* Ragged two-column: content deliberately off-centre, not a 50/50 split */
.split {
  display: grid;
  gap: clamp(1.6rem, 3.6vw, 3.4rem);
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: start;
}
.split--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
/* Form pages: the form takes the wide column, the aside runs beside it */
.split--wide { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }

@media (max-width: 840px) {
  .split, .split--flip, .split--wide { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Buttons — teal pills with a small arrow disc, mirroring the hero CTA
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--body);
  font-size: .94rem;
  font-weight: 500;
  letter-spacing: .005em;
  text-transform: none;
  text-decoration: none;
  padding: .78rem 1.35rem;
  border: 1px solid var(--teal);
  border-radius: var(--r-pill);
  background: var(--teal);
  color: #fff;
  box-shadow: var(--shadow-card);
  transition: transform .16s ease, background .2s ease, color .2s ease,
              border-color .2s ease, box-shadow .2s ease;
}
.btn::after {
  content: "↗";
  font-size: .82em;
  opacity: .85;
  transition: transform .2s ease;
}
.btn:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.btn:hover::after { transform: translate(2px, -2px); }
.btn:active { transform: none; }

/* Quiet button: white pill, green outline */
.btn--ghost {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line-2);
}
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Solid dark pill, used on light mint blocks */
.btn--dark { background: var(--forest); border-color: var(--forest); }
.btn--dark:hover { background: var(--ink); border-color: var(--ink); }

.btn--wide { width: 100%; justify-content: center; }
.btn--sm { padding: .58rem 1.05rem; font-size: .86rem; }
.btn--plain::after { content: none; }

/* Arrow link — underline sweeps in from the left on hover */
.arrow {
  font-family: var(--body);
  font-size: .92rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding-bottom: 3px;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0% 1.5px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size .3s ease, color .2s ease;
}
.arrow:hover { background-size: 100% 1.5px; color: var(--accent); }
.arrow span { transition: transform .25s ease; }
.arrow:hover span { transform: translateX(5px); }

/* --------------------------------------------------------------------------
   Sport accent scoping — set --accent once, everything downstream follows
   -------------------------------------------------------------------------- */
.s-cricket   { --accent: var(--cricket); }
.s-football  { --accent: var(--football); }
.s-taekwondo { --accent: var(--tkd); }

/* Chip — small rounded label, e.g. a season or a squad name */
.tag {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--body);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  padding: .28rem .8rem;
  white-space: nowrap;
}
.tag::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}
.tag--solid { background: var(--accent); color: #fff; border-color: var(--accent); }
.tag--solid::before { background: rgba(255,255,255,.75); }

/* Generic soft card used across pages */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.2rem, 2.4vw, 1.9rem);
  box-shadow: var(--shadow-card);
}
.card--mint   { background: var(--paper-3); border-color: transparent; }
.card--sky    { background: var(--sky-2);   border-color: transparent; }
.card--forest { background: var(--forest);  border-color: transparent; color: #cfe0d4; }
.card--forest h2, .card--forest h3, .card--forest h4 { color: #fff; }

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */
.hide { display: none !important; }
/* Class-level display rules (.btn, .step) otherwise beat the UA's [hidden] */
[hidden] { display: none !important; }
.nowrap { white-space: nowrap; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--forest);
  color: #fff;
  padding: .7rem 1.1rem;
  border-radius: var(--r-pill);
  font-family: var(--body);
}
.skip:focus { left: 8px; top: 8px; }

/* Reveal-on-scroll. Kept subtle: 14px lift, no scale, no stagger circus. */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s ease, transform .6s ease;
}
[data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; }
}
