/* ==========================================================================
   QNTM Fit Life — hand-coded design system
   Governing rule: black-and-white identity, functional greys, RED as the
   single accent (primary CTA only). No blue. Bright/inviting, not dark/moody.
   Type:  Barlow Condensed (display/headings) · Barlow (body) — chosen via the
          ui-ux-pro-max skill's Sports/Fitness pairing (see docs/DESIGN-NOTES.md).
   ========================================================================== */

:root {
  --black:       #0A0A0A;   /* true black — headers, footer, dark sections */
  --rich-black:  #1A1A1A;   /* brand extract */
  --charcoal:    #3A4248;   /* Charcoal Slate — body text on white */
  --steel:       #8B949E;   /* Steel Gray — muted text on dark */
  --white:       #FFFFFF;
  --offwhite:    #F6F6FF;   /* brand Off-White — section backgrounds */
  --red:         #E4002B;   /* the ONE accent — primary CTA only */
  --red-hover:   #B8001F;
  --line:        rgba(10,10,10,.10);
  --line-dark:   rgba(255,255,255,.14);

  --text-on-white: var(--charcoal);
  --heading-on-white: var(--black);
  --text-on-dark: #C7CBCF;
  --heading-on-dark: var(--white);

  --font-head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --container: 1180px;
  --gutter: 24px;
  --section-y: 96px;
}

/* ---- reset --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-on-white);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0;
}
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

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

/* ---- skip link ------------------------------------------------------------ */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--black); color: var(--white); padding: 12px 20px;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---- header (sticky, always solid — progressive enhancement in JS only
   toggles a compact state on scroll, never load-bearing for correctness) --- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--black);
  padding: 16px 0;
  border-bottom: 1px solid var(--line-dark);
  transition: padding .2s ease;
}
.site-header.is-compact { padding: 10px 0; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-logo { display: flex; align-items: center; flex: 0 0 auto; }
.site-logo img { height: 32px; width: auto; max-width: none; filter: invert(1); }
.site-header__inner { flex-wrap: nowrap; }
.site-nav { display: flex; gap: 26px; align-items: center; flex: 1; justify-content: center; min-width: 0; }
.site-nav a {
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.85;
}
.site-nav a:hover { opacity: 1; color: var(--red); }
.site-header__cta { flex: 0 0 auto; }

/* ---- buttons --------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 30px;
  border-radius: 0;
  border: 2px solid;
  cursor: pointer;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
  line-height: 1;
}
.btn--solid { background: var(--red); color: var(--white); border-color: var(--red); }
.btn--solid:hover { background: var(--red-hover); border-color: var(--red-hover); }
.btn--white { background: var(--white); color: var(--black); border-color: var(--white); }
.btn--white:hover { background: var(--offwhite); }
.btn--outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.6); }
.btn--outline:hover { background: rgba(255,255,255,.1); border-color: var(--white); }
.btn--outline-dark { background: transparent; color: var(--black); border-color: rgba(10,10,10,.35); }
.btn--outline-dark:hover { background: rgba(10,10,10,.06); border-color: var(--black); }

/* ---- hero -------------------------------------------------------------------
   Legibility scrim: a dark radial/linear gradient concentrated behind the
   text column (center of the hero, where .hero__inner sits), fading toward
   transparent at the edges so the photo stays visible. Combined with a
   stronger text-shadow so headline/subhead read over ANY hero image, busy
   or bright, on every hero across the site (home + category/service pages
   all share this component). Black/white/red system only, no new colours. */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
  text-align: center;
}
.hero--tall { min-height: 88vh; }
.hero__slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1s ease;
}
.hero__slide.is-active { opacity: 1; }
.hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  /* Base tonal wash so the whole image sits under a consistent dark base... */
  background:
    /* ...then a scrim concentrated at the vertical center (the text zone),
       darkest directly behind the copy and easing out top/bottom. */
    radial-gradient(ellipse 900px 520px at 50% 50%, rgba(0,0,0,.68) 0%, rgba(0,0,0,.55) 40%, rgba(0,0,0,.28) 70%, rgba(0,0,0,0) 100%),
    linear-gradient(180deg, rgba(10,10,10,.42) 0%, rgba(10,10,10,.32) 45%, rgba(10,10,10,.55) 100%);
}
.hero__inner { position: relative; z-index: 2; margin: 0 auto; max-width: 900px; padding: 100px var(--gutter); }
.hero__eyebrow {
  color: var(--red);
  font-family: var(--font-head);
  font-size: 15px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; margin: 0 0 16px;
  text-shadow: 0 1px 10px rgba(0,0,0,.6);
}
.hero__title {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 0.98;
  margin: 0 0 20px;
  text-shadow: 0 2px 6px rgba(0,0,0,.75), 0 4px 26px rgba(0,0,0,.55);
}
.hero__subtitle { font-family: var(--font-body); font-size: 19px; font-weight: 500; color: var(--white); opacity: .95; margin: 0 auto 30px; max-width: 640px; text-shadow: 0 1px 4px rgba(0,0,0,.7), 0 2px 14px rgba(0,0,0,.5); }
.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---- generic section --------------------------------------------------------- */
.section { position: relative; padding: var(--section-y) 0; }
.section--white { background: var(--white); color: var(--text-on-white); }
.section--dark  { background: var(--black); color: var(--text-on-dark); }
.section--accent { background: var(--red); color: var(--white); }
.section--dark h2, .section--dark h3 { color: var(--heading-on-dark); }
.section--white h2, .section--white h3 { color: var(--heading-on-white); }
.section--accent h2 { color: var(--white); }
.section__narrow { max-width: 820px; margin: 0 auto; }

/* prose */
.prose h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin: 0 0 22px; }
.prose h3 { font-size: 22px; margin: 30px 0 12px; text-transform: none; }
.prose p { font-size: 17px; font-family: var(--font-body); text-transform: none; }
.prose a { color: var(--red); text-decoration: underline; text-decoration-color: rgba(228,0,43,.5); font-weight: 600; }
.prose a:hover { text-decoration-color: rgba(228,0,43,.9); }
.prose ul, .prose ol { padding-left: 26px; margin: 14px 0; }
.prose li { margin-bottom: 8px; }
.prose blockquote {
  border-left: 4px solid var(--red);
  padding: 4px 0 4px 24px;
  margin: 28px 0;
  font-size: 20px; font-style: italic; line-height: 1.55; font-family: var(--font-body);
}
.prose table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 15px; }
.prose th { text-align: left; font-weight: 700; padding: 12px 20px 12px 0; border-bottom: 2px solid var(--red); font-family: var(--font-head); text-transform: uppercase; letter-spacing: .02em; }
.prose td { padding: 12px 20px 12px 0; border-bottom: 1px solid var(--line); }
.section--dark .prose td { border-bottom-color: var(--line-dark); }
.prose tr:last-child td { border-bottom: none; }

/* eyebrow used in editorial sections */
.eyebrow {
  font-family: var(--font-head);
  font-size: 14px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--red); margin: 0 0 14px;
}

/* ---- intro (lead) ------------------------------------------------------------ */
.lead h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin: 0 0 20px; }
.lead p { font-family: var(--font-body); font-size: 18px; }
.lead ul { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 12px 34px; }
.lead li { position: relative; padding-left: 22px; font-weight: 600; font-family: var(--font-body); }
.lead li::before { content: ""; position: absolute; left: 0; top: .65em; width: 8px; height: 8px; background: var(--red); }

/* ---- section head ------------------------------------------------------------ */
.section__head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section__head h2 { font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 16px; }
.section__head p { font-family: var(--font-body); font-size: 17px; }

/* ---- category card grid ------------------------------------------------------ */
.card-grid { display: grid; gap: 2px; grid-template-columns: repeat(3, 1fr); background: var(--line); }
.card {
  position: relative;
  min-height: 320px;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 30px;
  color: var(--white);
  background: var(--black) center/cover no-repeat;
  text-decoration: none;
  overflow: hidden;
}
.card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,.10) 0%, rgba(10,10,10,.55) 55%, rgba(10,10,10,.88) 100%);
  transition: background .3s ease;
}
.card:hover::after { background: linear-gradient(180deg, rgba(228,0,43,.15) 0%, rgba(10,10,10,.6) 55%, rgba(10,10,10,.92) 100%); }
.card > * { position: relative; z-index: 2; }
.card h3 { font-size: 26px; margin: 0 0 8px; color: var(--white); text-shadow: 0 2px 12px rgba(0,0,0,.85); }
.card p { font-size: 15px; font-family: var(--font-body); text-transform: none; color: var(--white); opacity: .92; margin: 0; text-shadow: 0 1px 8px rgba(0,0,0,.9); }
.card__more { display: block; margin-top: 14px; font-family: var(--font-head); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ---- membership cards ---------------------------------------------------------- */
.membership-grid { display: grid; gap: 2px; grid-template-columns: repeat(3, 1fr); background: var(--line); }
.membership-card { position: relative; background: var(--white); padding: 40px 32px; display: flex; flex-direction: column; }
.membership-card--featured { background: var(--black); color: var(--text-on-dark); }
.membership-card--featured h3, .membership-card--featured .membership-card__body { color: var(--white); }
.membership-card__badge {
  position: absolute; top: -1px; right: 24px;
  background: var(--red); color: var(--white);
  font-family: var(--font-head); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 14px;
}
.membership-card h3 { font-size: 24px; margin: 0 0 14px; }
.membership-card__body { font-family: var(--font-body); text-transform: none; font-size: 15px; color: var(--text-on-white); margin-bottom: 18px; }
.membership-card ul { list-style: none; padding: 0; margin: 0 0 26px; flex: 1; }
.membership-card li {
  font-family: var(--font-body); font-size: 14px; font-weight: 600;
  padding: 9px 0; border-top: 1px solid var(--line);
}
.membership-card--featured li { border-top-color: var(--line-dark); }
.membership-card li:first-child { border-top: none; }
.membership-card .btn { align-self: flex-start; }

/* ---- editorial alternating rows ----------------------------------------------- */
.editorial { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.editorial--reverse .editorial__media { order: 2; }
.editorial--reverse .editorial__body { order: 1; }
.editorial__media { background-size: cover; background-position: center; min-height: 460px; position: relative; }
.editorial__body { display: flex; flex-direction: column; justify-content: center; padding: 72px 7%; }
.editorial__body h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 18px; }
.editorial__body p { font-family: var(--font-body); font-size: 17px; text-transform: none; }
.editorial--dark  { background: var(--black);  color: var(--text-on-dark); }
.editorial--dark h3 { color: var(--heading-on-dark); }
.editorial--white { background: var(--white); color: var(--text-on-white); }
.editorial--white h3 { color: var(--heading-on-white); }

.img--dim::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: rgba(10, 10, 10, .5);
  pointer-events: none;
}

/* ---- stat tiles ----------------------------------------------------------------- */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; background: var(--line-dark); }
.tile { background: var(--black); padding: 34px 26px; }
.tile__stat { display: block; font-family: var(--font-head); font-size: 44px; font-weight: 700; color: var(--red); line-height: 1; margin-bottom: 8px; }
.tile h3 { font-size: 18px; margin: 0 0 10px; color: var(--heading-on-dark); }
.tile p { font-size: 14px; font-family: var(--font-body); text-transform: none; color: var(--text-on-dark); margin: 0; }

/* ---- amenity grid (facility highlights) ----------------------------------------- */
.amenity-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.amenity { background: var(--white); padding: 20px 18px; }
.amenity h4 { font-size: 15px; font-weight: 600; letter-spacing: .01em; margin: 0; color: var(--heading-on-white); }

/* ---- FAQ accordion ---------------------------------------------------------------- */
.faq { max-width: 860px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  display: flex; align-items: center; gap: 14px;
  padding: 20px 4px;
  font-family: var(--font-head); font-size: 18px; font-weight: 700; color: var(--heading-on-white);
  text-transform: none;
}
.faq__icon { position: relative; width: 16px; height: 16px; flex: 0 0 16px; }
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; background: var(--red); transition: transform .25s ease, opacity .25s ease;
}
.faq__icon::before { left: 0; top: 7px; width: 16px; height: 2px; }
.faq__icon::after  { left: 7px; top: 0; width: 2px; height: 16px; }
.faq__q[aria-expanded="true"] .faq__icon::after { transform: scaleY(0); opacity: 0; }
.faq__a { overflow: hidden; max-height: 0; transition: max-height .3s ease; }
.faq__a-inner { padding: 0 4px 22px; font-size: 16px; font-family: var(--font-body); color: var(--text-on-white); }
.faq__q[aria-expanded="true"] + .faq__a { max-height: 600px; }

/* ---- CTA ---------------------------------------------------------------------------- */
.cta { text-align: center; }
.cta h2 { font-size: clamp(2rem, 4.4vw, 3rem); margin: 0 0 16px; color: var(--white); }
.cta p { font-family: var(--font-body); font-size: 18px; text-transform: none; margin: 0 0 30px; opacity: .95; }

/* ---- location ------------------------------------------------------------------------ */
.location { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.location__body h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin: 0 0 20px; }
.location__body p { font-family: var(--font-body); text-transform: none; }
.location__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.location__map { min-height: 320px; background: var(--offwhite); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
.location__map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }

/* ---- footer --------------------------------------------------------------------------- */
.site-footer { background: var(--black); color: var(--text-on-dark); padding: 32px 0; font-size: 14px; font-family: var(--font-body); }
.site-footer__inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-footer__nap { display: flex; flex-direction: column; gap: 4px; }
.site-footer__nap strong { font-family: var(--font-head); color: var(--white); font-size: 18px; text-transform: uppercase; }
.site-footer__meta { display: flex; flex-direction: column; gap: 4px; text-align: right; }
.site-footer a { color: var(--white); text-decoration: none; font-weight: 600; }
.site-footer a:hover { text-decoration: underline; color: var(--red); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .card-grid, .card-grid--4, .tiles, .membership-grid, .amenity-grid { grid-template-columns: repeat(2, 1fr); }
  .editorial { grid-template-columns: 1fr; }
  .editorial--reverse .editorial__media { order: 0; }
  .editorial--reverse .editorial__body { order: 0; }
  .editorial__media { min-height: 260px; }
  .editorial__body { padding: 48px var(--gutter); }
  .location { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  :root { --section-y: 64px; }
  .site-nav { display: none; }
  .card-grid, .card-grid--4, .tiles, .membership-grid, .amenity-grid { grid-template-columns: 1fr; }
  .site-footer__inner { flex-direction: column; text-align: left; }
  .site-footer__meta { text-align: left; }
}
