/* ============================================================================
   WEST COAST ATHLETICS — global.css
   Base layer: reset, color system, typography, spacing, site chrome (header/footer).
   Loaded on every page. Design system sourced from the approved wireframe.
   ============================================================================ */

/* ---------------------------------------------------------------------------
   1. DESIGN TOKENS
   --------------------------------------------------------------------------- */
:root {
  /* 3-COLOR BRAND PALETTE — yellow #F2D952 · dark #1b1b1b · white #ffffff.
     Token names are legacy (from the old palette); the VALUES are strictly the
     three brand colors (or transparent tints of them). Grouped by role. */
  /* DARK #1b1b1b + surface shades */
  --c-black: #1b1b1b; /* primary dark background */
  --c-charcoal: #242424; /* surfaces: cards, nav, footer */
  --c-steel: #2e2e2e; /* hover / secondary surfaces */
  --c-border: #333333; /* dividers */
  --c-on-accent: #1b1b1b; /* text/icons that sit ON the yellow accent */
  /* YELLOW #F2D952 (the single accent) */
  --c-crimson: #F2D952; /* brand yellow — was also --c-gold (merged) */
  --c-crimson-lt: #F6E27E; /* lighter yellow — hover */
  --c-crimson-dim: rgba(242, 217, 82, 0.12); /* faint yellow tint — was also --c-gold-dim */
  /* WHITE #ffffff + text tints (white at opacity, not new hues) */
  --c-white: #ffffff; /* headlines, CTA labels */
  --c-silver: rgba(255, 255, 255, 0.72); /* body copy */
  --c-silver-lt: rgba(255, 255, 255, 0.86); /* UI labels, nav */

  /* Typography */
  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Space Mono", "Courier New", monospace;

  /* Spacing scale */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 64px;
  --space-2xl: 96px;

  /* Layout */
  --container: 1440px;
  --radius: 8px;
  --radius-sm: 4px;
  --header-h: 96px;

  /* Motion */
  --ease: 0.25s ease;
}

/* ---------------------------------------------------------------------------
   LIGHT SECTION THEME — alternating bands (white bg, dark text, yellow accents)
   Re-scopes the neutral tokens so token-driven components recolor automatically.
   Yellow (--c-crimson) stays for FILLS (buttons, icon chips); yellow
   as TEXT is unreadable on white, so text/label accents are darkened below.
   Buttons keep dark text via --c-on-accent (not overridden here).
   --------------------------------------------------------------------------- */
.section--light {
  --c-black: #ffffff; /* section / element "dark" bg -> white */
  --c-charcoal: #ffffff; /* surfaces / SECTION bg -> opaque white (an alpha tint would let the dark body show through full-section backgrounds) */
  --c-steel: rgba(27, 27, 27, 0.06); /* element hover surfaces -> dark @6% (sits on white, never a full-section bg) */
  --c-white: #1b1b1b; /* headline / CTA-label text -> dark */
  --c-silver: rgba(27, 27, 27, 0.72); /* body copy -> dark @72% */
  --c-silver-lt: rgba(27, 27, 27, 0.88); /* UI labels -> dark @88% */
  --c-crimson: #1b1b1b; /* yellow-as-TEXT/border -> dark so it reads on white (fills re-asserted below) */
  --c-crimson-lt: #1b1b1b; /* hover yellow-as-text -> dark */
  --c-border: rgba(27, 27, 27, 0.14); /* borders -> dark @14% */
  background: #ffffff;
  color: #1b1b1b;
}
/* Yellow text/line accents -> dark so they read on white */
.section--light .section-label {
  color: #1b1b1b;
}
.section--light .section-label::before,
.section--light .section-label::after {
  background: #1b1b1b;
}
.section--light .link-arrow {
  color: #1b1b1b;
}
.section--light .link-arrow:hover {
  color: rgba(27, 27, 27, 0.6);
}
/* Icon badges -> solid yellow chip with dark glyph (a deliberate pop of yellow).
   !important so per-page :hover rules (which set the now-dark --c-crimson) can't
   turn the chip black on hover; the hover lift (transform) still applies. */
.section--light [class*="__icon"] {
  background: #f2d952 !important;
  border-color: #f2d952 !important;
  color: #1b1b1b !important;
}
/* Buttons keep their yellow fill on light sections (crimson token is dark here) */
.section--light .btn--primary {
  background: #f2d952;
  border-color: #f2d952;
  color: #1b1b1b;
}
.section--light .btn--primary:hover,
.section--light .btn--primary:focus {
  background: #f6e27e;
  border-color: #f6e27e;
  color: #1b1b1b;
}
.section--light .btn--outline {
  color: #1b1b1b;
  border-color: #1b1b1b;
}
.section--light .btn--outline:hover,
.section--light .btn--outline:focus {
  background: #f2d952;
  border-color: #f2d952;
  color: #1b1b1b;
}
/* Button hover "sheen" stays yellow (crimson-lt token is dark in light sections) */
.section--light .btn::before {
  background: #f6e27e;
}
/* Pills -> dark text on a soft yellow fill */
.section--light .pill {
  color: #1b1b1b;
  background: rgba(242, 217, 82, 0.3);
  border-color: rgba(242, 217, 82, 0.65);
}
/* Definition-list labels (e.g. location) read dark on white */
.section--light dt {
  color: #1b1b1b;
}
/* Inline text links read dark on white (buttons keep their own styling) */
.section--light a:not(.btn) {
  color: #1b1b1b;
}

/* ---------------------------------------------------------------------------
   2. RESET
   --------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background: var(--c-black);
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--c-silver);
  background: var(--c-black) !important;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Force a black background across Astra's default light wrappers so no white
   ever shows through (applies on every page, not just Home). */
#page,
.site,
.site-content,
#content,
.ast-container,
.entry-content,
.ast-separate-container .ast-article-single,
.ast-separate-container,
.ast-page-builder-template .site-content,
.hentry,
article.post {
  background-color: var(--c-on-accent);
  color: var(--c-silver);
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}
ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0;
} /* beats Astra/UA list indent */
dl,
dt,
dd {
  margin: 0;
} /* element-level reset — beats Astra/UA dd indent */
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--ease);
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  background: none;
  border: none;
}

/* ---------------------------------------------------------------------------
   3. TYPOGRAPHY (wireframe usage guidelines)
   --------------------------------------------------------------------------- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--c-white);
  line-height: 1.12;
  text-transform: uppercase;
  font-weight: 700;
}

/* Page headline — Oswald 700, 48–64px */
h1,
.h1 {
  font-size: clamp(40px, 6vw, 64px);
  letter-spacing: 0.5px;
}
/* Section heading — Oswald 600, 28–36px */
h2,
.h2 {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 600;
  letter-spacing: 0.5px;
}
h3,
.h3 {
  font-size: clamp(18px, 2.4vw, 22px);
  font-weight: 600;
}

p {
  margin: 0;
}
p + p {
  margin-top: var(--space-sm);
}

/* Space below a section heading when body copy follows it directly (the global
   reset zeroes heading margins). Scoped to .section so hero layouts keep their
   own spacing; keyed to .body-copy so card titles + their classed descriptions
   (e.g. .offer-card__desc) are never affected. */
.section :is(h1, h2, h3, h4) + .body-copy {
  margin-top: var(--space-md);
}

/* Subheading — Oswald 400, 18–24px, Crimson */
.subline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(18px, 2.4vw, 24px);
  color: var(--c-crimson);
  text-transform: none;
  letter-spacing: 0.3px;
}

/* Body copy — Inter 400, 15–17px, Silver */
.body-copy {
  font-size: clamp(15px, 1.6vw, 17px);
  color: var(--c-silver);
}

/* Eyebrow / section label — Space Mono, Gold, uppercase */
.section-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--c-crimson);
  display: block;
  margin-bottom: var(--space-sm);
}

.text-crimson {
  color: var(--c-crimson);
}
.text-white {
  color: var(--c-white);
}

/* ---------------------------------------------------------------------------
   4. LAYOUT PRIMITIVES
   --------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

.section {
  padding-block: var(--space-xl);
}
.section--tight {
  padding-block: var(--space-lg);
}

.section-head {
  max-width: 720px;
  margin-bottom: var(--space-lg);
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
}

/* ---------------------------------------------------------------------------
   5. ACCESSIBILITY
   --------------------------------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--c-crimson);
  color: var(--c-on-accent);
  padding: 12px 20px;
  font-family: var(--font-display);
  text-transform: uppercase;
}
.skip-link:focus {
  left: 8px;
  top: 8px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--c-crimson-lt);
  outline-offset: 2px;
}

/* ===========================================================================
   6. SITE HEADER (dynamic — reusable across all pages)
   =========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-charcoal);
  border-bottom: 1px solid var(--c-crimson-dim);
}
.site-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-md);
  min-height: var(--header-h);
  padding-top: 10px;
    padding-bottom: 10px;
}
.site-logo {
  justify-self: start;
}
.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* Logo */
.site-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--c-white);
  white-space: nowrap;
}
.site-logo,
.site-logo span {
  color: var(--c-white);
} /* logo: white, transparent bg */
.site-logo {
  display: inline-flex;
  align-items: center;
}
.site-logo__img {
  height: 90px;
  width: auto;
  display: block;
}

/* Primary nav — centered in the header */
.primary-nav {
  display: flex;
  align-items: center;
  justify-self: center;
}
.primary-menu {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
.primary-menu li {
  position: relative;
}
.primary-menu a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.5px;
  color: var(--c-silver-lt);
  padding-block: 8px;
  display: inline-block;
}
.primary-menu a:hover,
.primary-menu .current-menu-item > a {
  color: var(--c-crimson);
}

/* Dropdown sub-menus */
.primary-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  background: var(--c-charcoal);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  padding: var(--space-xs) 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all var(--ease);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.primary-menu li:hover > .sub-menu,
.primary-menu li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.primary-menu .sub-menu a {
  display: block;
  padding: 8px 18px;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--c-silver-lt);
  transition: var(--ease);
}

/* ===========================================================================
   7. SITE FOOTER (dynamic — reusable across all pages)
   =========================================================================== */
.site-footer {
  background: var(--c-charcoal);
  border-top: 1px solid var(--c-crimson-dim);
  padding-block: var(--space-xl) var(--space-md);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-lg);
}

.footer-logo__img {
  text-align: left;
  margin-left: -20px;
  margin-bottom: 20px;
  width: 140px;
}

/* Headings — Oswald, crimson, uppercase (matches wireframe footer) */
.footer-col h2 {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--c-crimson);
  margin-bottom: var(--space-sm);
}
.footer-col h4:not(:first-child) {
  margin-top: var(--space-md);
}
/* Body / links — Inter, silver (matches wireframe footer) */
.footer-col p,
.footer-col li,
.footer-col a {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 2;
  color: var(--c-silver);
}
.footer-col a:hover {
  color: var(--c-crimson);
}
.footer-brand__phone {
  color: var(--c-crimson);
}
.footer-credentials {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--c-silver);
  line-height: 2;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: var(--space-xl);
  padding-top: var(--space-md);
  border-top: 1px solid var(--c-border);
}
.footer-bottom p,
.footer-bottom a {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--c-silver);
}
.footer-legal-menu {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}
.footer-legal-menu a {
  color: var(--c-silver);
}
.footer-legal-menu a:hover {
  color: var(--c-crimson);
}

/* ---------------------------------------------------------------------------
   8. RESPONSIVE — site chrome
   --------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --space-2xl: 64px;
    --space-xl: 48px;
  }

  .site-header__inner {
    display: flex;
    justify-content: space-between;
  }
  .nav-toggle {
    display: flex;
  }

  .nav-toggle:hover,
  .nav-toggle:focus {
    background: none;
    border: none;
    outline: 0;
  }
  .nav-cta {
    display: none !important;
  } /* hide header "Book Free Intro" on mobile — use the menu */

  .primary-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--c-charcoal);
    border-bottom: 1px solid var(--c-border);
    padding: var(--space-sm) var(--space-md) var(--space-md);
    transform: translateY(-200%);
  opacity: 0;
    transition: transform var(--ease), opacity var(--ease);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  width: 100%;
  }
  .site-header.nav-open .primary-nav {
    transform: translateY(0);
  opacity: 1;
  }
  .primary-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .primary-menu a {
    padding: 12px 0;
    /*border-bottom: 1px solid var(--c-border);*/
  }
  .primary-menu .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    padding-left: var(--space-sm);
  }
}

/* Footer bottom bar: stack + center on tablet and mobile */
@media (max-width: 1024px) {
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  .footer-legal-menu {
    justify-content: center;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ===========================================================================
   9. MODERN UPLIFT — art direction layer
   Texture, depth, motion, and editorial detailing. Brand palette unchanged.
   =========================================================================== */

/* Atmospheric backdrop: a fixed crimson glow + faint grid behind everything.
   Kept on a ::before overlay so it survives the body background !important. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(
      80% 55% at 80% -5%,
      rgba(242, 217, 82, 0.16) 0%,
      transparent 60%
    ),
    radial-gradient(
      60% 50% at 0% 100%,
      rgba(242, 217, 82, 0.06) 0%,
      transparent 55%
    ),
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size:
    100% 100%,
    100% 100%,
    56px 56px,
    56px 56px;
}

/* Custom scrollbar + selection */
::selection {
  background: #1b1b1b;
  color: #fff;
}
* {
  scrollbar-width: thin;
  scrollbar-color: var(--c-crimson) var(--c-charcoal);
}
::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}
::-webkit-scrollbar-track {
  background: var(--c-charcoal);
}
::-webkit-scrollbar-thumb {
  background: var(--c-steel);
  border: 3px solid var(--c-charcoal);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--c-crimson);
}

/* Editorial section label — leading rule + Space Mono, modern eyebrow */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.section-label::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--c-crimson);
  flex: none;
}

/* Glassy, refined header with a crimson hairline + scroll state */
.site-header {
  background: rgba(15, 15, 15, 0.72);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition:
    background var(--ease),
    border-color var(--ease),
    box-shadow var(--ease);
}
.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--c-crimson),
    var(--c-crimson-lt) 45%,
    transparent
  );
}
.site-header.scrolled {
  background: rgba(27, 27, 27, 0.9);
  border-bottom-color: var(--c-crimson-dim);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Animated nav underline */
.primary-menu > li > a {
  position: relative;
}
.primary-menu > li > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 2px;
  background: var(--c-crimson);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--ease);
}
.primary-menu > li > a:hover::after,
.primary-menu .current-menu-item > a::after {
  transform: scaleX(1);
}

/* Scroll-reveal (progressive — class added by JS, so no-JS shows everything) */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
