/* ==========================================================================
   Fitness First Wellness Center
   Implementation of "Fitness First.dc.html" (hero treatment: Duotone teal)
   ========================================================================== */

/* --- Tokens --------------------------------------------------------------- */
:root {
  /* Surfaces */
  --ink:          #0B0C0B;
  --ink-raised:   #101315;
  --surface:      #14181A;

  /* Lines */
  --line:         #242A2C;
  --line-soft:    #1A1F21;
  --line-mid:     #2A3133;
  --line-strong:  #3C4547;

  /* Type */
  --text:         #F2F4F3;
  --text-muted:   #BAC4C5;
  --text-dim:     #9AA5A6;
  --text-faint:   #8E9A9C;

  /* Accent */
  --teal:         #3FB8C8;
  --teal-bright:  #7FE0EC;
  --teal-deep:    #17707D;
  --teal-deeper:  #0F4C55;
  --teal-pale:    #CFEAEE;
  --on-teal:      #04191C;
  --gold:         #C9A46A;

  /* Fonts */
  --font-body:    'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-ui:      'Barlow Condensed', 'Barlow', system-ui, sans-serif;
  --font-display: 'Archivo Black', 'Barlow Condensed', system-ui, sans-serif;
  --font-script:  'Kaushan Script', 'Segoe Script', cursive;

  /* Layout */
  --shell:        1280px;
  --gutter:       24px;
  --header-h:     84px;
  --section-y:    clamp(56px, 7vw, 88px);
}

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 16px/1.5 var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, figure, blockquote, address { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
img { display: block; max-width: 100%; }

a { color: var(--teal); text-decoration: none; transition: color .15s ease, border-color .15s ease; }
a:hover { color: var(--teal-bright); }

:focus-visible {
  outline: 2px solid var(--teal-bright);
  outline-offset: 3px;
}

/* Sticky header must not cover anchored sections */
[id] { scroll-margin-top: var(--header-h); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--teal);
  color: var(--on-teal);
  font: 700 14px var(--font-ui);
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 12px 20px;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
  color: var(--on-teal);
}

/* --- Layout primitives ---------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--flush-top { padding-top: 0; }

.section__title {
  font: 400 clamp(28px, 3.4vw, 36px)/1.1 var(--font-display);
  text-transform: uppercase;
  margin-bottom: 36px;
}
.dot { color: var(--teal); }

.eyebrow {
  font: 600 15px var(--font-ui);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--teal);
}

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-block;
  font: 700 15px var(--font-ui);
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 14px 26px;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn--solid { background: var(--teal); color: var(--on-teal); }
.btn--solid:hover { background: var(--teal-bright); color: var(--on-teal); }

.btn--ghost { border: 1px solid var(--line-strong); color: var(--text); font-weight: 600; }
.btn--ghost:hover { border-color: var(--teal); color: var(--text); }

.btn--ink { background: var(--ink); color: var(--text); }
.btn--ink:hover { background: var(--text); color: var(--ink); }

.btn--lg { font-size: 17px; padding: 16px 32px; }

/* Underlined rule link */
.link-rule {
  position: relative;
  display: inline-block;
  font: 600 13px var(--font-ui);
  letter-spacing: .16em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--teal-deep);
  padding-bottom: 2px;
}

/* These sit ~19px tall, under the 24x24 minimum for a pointer target
   (WCAG 2.5.8). Expanding the hit area with an overlay grows the tappable
   region to ~45px without moving the underline or shifting any layout. */
.link-rule::after {
  content: '';
  position: absolute;
  inset: -13px 0;
}
.link-rule--muted { color: var(--text-dim); border-bottom-color: var(--line-mid); }
.link-rule--muted:hover { color: var(--teal); border-bottom-color: var(--teal-deep); }

/* --- Header / nav --------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 12, 11, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  max-width: var(--shell);
  margin-inline: auto;
  padding: 12px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.nav__brand { display: flex; align-items: center; gap: 12px; flex: none; }
.nav__brand picture { display: flex; flex: none; }
.nav__emblem { height: 46px; width: auto; }

/* The wordmark is live text rather than an image, so it stays crisp at any
   zoom or pixel density and is selectable/searchable. */
.wordmark {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1;
}
.wordmark__name {
  font: 400 24px/1 var(--font-script);
  color: var(--teal);
  letter-spacing: .01em;
}
.wordmark__sub {
  font: 600 10px var(--font-ui);
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold);
  padding-left: 2px;
}

.wordmark--lg { gap: 4px; }
.wordmark--lg .wordmark__name { font-size: 34px; }
.wordmark--lg .wordmark__sub { font-size: 12px; }

.nav__links {
  display: flex;
  gap: 28px;
  font: 600 15px var(--font-ui);
  letter-spacing: .14em;
  text-transform: uppercase;
  flex-wrap: wrap;
}
.nav__links a { color: var(--text-dim); }
.nav__links a:hover { color: var(--teal-bright); }

.nav__cta { font-size: 14px; padding: 11px 22px; flex: none; }

.nav__toggle {
  display: none;
  align-items: center;
  gap: 10px;
  flex: none;
  appearance: none;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--text);
  font: 600 14px var(--font-ui);
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 10px 0;
}
.nav__bars { display: flex; flex-direction: column; gap: 5px; }
.nav__bars span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--teal);
}

@media (max-width: 1040px) {
  .nav__toggle { display: flex; }
  .nav__cta { display: none; }

  .nav { flex-wrap: nowrap; }
  .nav[data-open="true"] { flex-wrap: wrap; }

  .nav__links { display: none; }
  .nav[data-open="true"] .nav__links {
    display: flex;
    flex-direction: column;
    flex-basis: 100%;
    gap: 0;
    padding: 8px 0 4px;
    border-top: 1px solid var(--line);
  }
  .nav[data-open="true"] .nav__links a {
    padding: 12px 0;
    border-bottom: 1px solid var(--line-soft);
  }
  .nav[data-open="true"] .nav__links a:last-child { border-bottom: 0; }
}

/* --- Hero ----------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: clamp(560px, 72vh, 760px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__media { position: absolute; inset: 0; }
.hero__photo,
.hero__duotone,
.hero__scrim { position: absolute; inset: 0; }

.hero__photo {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  /* Plain url() first as the fallback; image-set serves WebP where supported. */
  background-image: url('assets/photos/hero-1920.jpg');
  background-image: image-set(
    url('assets/photos/hero-1920.webp') type('image/webp'),
    url('assets/photos/hero-1920.jpg')  type('image/jpeg'));
  filter: grayscale(1) contrast(1.2) brightness(.72);
}

@media (max-width: 800px) {
  .hero__photo {
    background-image: url('assets/photos/hero-1200.jpg');
    background-image: image-set(
      url('assets/photos/hero-1200.webp') type('image/webp'),
      url('assets/photos/hero-1200.jpg')  type('image/jpeg'));
  }
}
.hero__duotone {
  background: linear-gradient(180deg, var(--teal-deep), var(--ink));
  mix-blend-mode: color;
  opacity: .9;
}
.hero__scrim {
  background: linear-gradient(100deg,
    rgba(11, 12, 11, .96) 24%,
    rgba(11, 12, 11, .55) 58%,
    rgba(63, 184, 200, .18) 100%);
}

.hero__inner {
  position: relative;
  padding-block: clamp(56px, 8vw, 104px);
}

.hero__content {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.hero__title {
  font: 400 clamp(44px, 6.6vw, 80px)/1.02 var(--font-display);
  text-transform: uppercase;
  text-wrap: pretty;
}

.hero__lede {
  font: 400 clamp(17px, 1.6vw, 20px)/1.55 var(--font-body);
  color: var(--text-muted);
  max-width: 540px;
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  gap: 14px;
  margin-top: 10px;
  flex-wrap: wrap;
}

/* --- Highlights band ------------------------------------------------------ */
.highlights {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--ink-raised);
}
.highlights__grid {
  padding-block: 22px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.highlights__grid li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font: 500 16px var(--font-body);
  color: var(--text-muted);
}
.highlights__num {
  font: 600 13px var(--font-ui);
  letter-spacing: .2em;
  color: var(--teal);
  flex: none;
}

/* --- Ladies band ---------------------------------------------------------- */
.ladies-band {
  background: linear-gradient(90deg, var(--teal-deep), var(--teal-deeper));
  border-bottom: 1px solid var(--line);
}
.ladies-band__inner {
  padding-block: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.ladies-band__title {
  font: 400 clamp(20px, 2.4vw, 26px)/1.2 var(--font-display);
  text-transform: uppercase;
}
.ladies-band__note {
  font: 400 16px var(--font-body);
  color: var(--teal-pale);
}

/* --- Facilities ----------------------------------------------------------- */
.facilities {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 18px;
}
@media (min-width: 640px) and (max-width: 1099px) {
  .facilities { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .facilities { grid-template-columns: repeat(4, 1fr); }
}

.facility {
  background: var(--surface);
  border-top: 3px solid var(--teal);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.facility__title {
  font: 600 20px var(--font-ui);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.facility__list {
  font: 400 15px/1.7 var(--font-body);
  color: var(--text-dim);
}

/* --- Gallery -------------------------------------------------------------- */
/* Six photographs: explicit 1 / 2 / 3 columns so they always fill complete
   rows. (auto-fit would land on four across at desktop, orphaning two.) */
.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 640px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
}

.gallery__item {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface);
}
.gallery__item picture {
  display: block;
  width: 100%;
  height: 100%;
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.92);
}

/* --- Hours ---------------------------------------------------------------- */
.hours {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 18px;
}
.hours__card {
  background: var(--surface);
  border: 1px solid var(--line-mid);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hours__card--accent {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--on-teal);
}

.hours__who {
  font: 400 22px/1.2 var(--font-display);
  text-transform: uppercase;
}
.hours__who--teal { color: var(--teal); }

.hours__days {
  font: 600 13px var(--font-ui);
  letter-spacing: .2em;
  text-transform: uppercase;
}
.hours__days--muted { color: var(--text-dim); }

.hours__slots {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  font: 500 17px/1.4 var(--font-body);
}
.hours__label {
  display: block;
  font: 600 12px var(--font-ui);
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .75;
  margin-bottom: 4px;
}
.hours__label--muted { color: var(--text-dim); opacity: 1; }

.hours__closed {
  margin-top: 18px;
  border: 1px dashed var(--line-strong);
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font: 600 14px var(--font-ui);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* --- Programs ------------------------------------------------------------- */
.programs__head {
  display: flex;
  align-items: baseline;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.programs__head .section__title { margin-bottom: 0; }
.programs__kicker {
  font: 400 17px var(--font-body);
  color: var(--text-dim);
}

.programs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 18px;
}
.program {
  background: var(--surface);
  border: 1px solid var(--line-mid);
  border-top: 3px solid var(--teal);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.program__index {
  font: 600 13px var(--font-ui);
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--teal);
}
.program__title {
  font: 400 clamp(22px, 2.4vw, 26px)/1.15 var(--font-display);
  text-transform: uppercase;
}
.program__text {
  font: 400 16px/1.7 var(--font-body);
  color: var(--text-muted);
  text-wrap: pretty;
}
.program__tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.program__tags li {
  border: 1px solid var(--line-mid);
  color: var(--text-dim);
  font: 600 12px var(--font-ui);
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 6px 10px;
}

/* --- Membership band ------------------------------------------------------ */
.join {
  background: linear-gradient(100deg, var(--teal-deep), var(--teal-deeper));
  border-top: 1px solid var(--line);
}
.join__inner {
  padding-block: clamp(48px, 6vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  flex-wrap: wrap;
}
.join__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 620px;
}
.join__eyebrow {
  font: 600 13px var(--font-ui);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--teal-pale);
}
.join__title {
  font: 400 clamp(28px, 3.4vw, 36px)/1.1 var(--font-display);
  text-transform: uppercase;
}
.join__text {
  font: 400 17px/1.65 var(--font-body);
  color: #E4F4F6;
  text-wrap: pretty;
}

/* --- About ---------------------------------------------------------------- */
.about {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(32px, 4vw, 56px);
  align-items: center;
}
.about__photo {
  width: 100%;
  height: clamp(280px, 38vw, 400px);
  object-fit: cover;
  filter: grayscale(.35) contrast(1.08);
}
.about__body { display: flex; flex-direction: column; gap: 20px; }
.about__body .section__title { margin-bottom: 0; }
.about__text {
  font: 400 clamp(16px, 1.5vw, 18px)/1.75 var(--font-body);
  color: var(--text-muted);
  text-wrap: pretty;
}

.team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 20px;
  margin-top: 8px;
}
.team__member { display: flex; align-items: center; gap: 14px; }
.team__member img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--teal);
  flex: none;
}
.team__name { font: 700 16px var(--font-body); }
.team__role {
  font: 600 12px/1.5 var(--font-ui);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* --- Reviews -------------------------------------------------------------- */
.reviews {
  background: var(--ink-raised);
  border-top: 1px solid var(--line);
}
.reviews__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.reviews__head .section__title { margin-bottom: 0; }

/* The design floats the arrows over the track at left/right -12px, but a 44px
   button starting at -12px reaches past the card's 26px inner padding — so it
   covers the first characters of the quote at every width. Sitting them in a
   row under the track keeps them visible and thumb-reachable, and never
   obscures a review. */
.reviews__carousel {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.reviews__track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.reviews__track::-webkit-scrollbar { display: none; }

@media (prefers-reduced-motion: reduce) {
  .reviews__track { scroll-behavior: auto; }
}

.reviews__controls {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.reviews__nav {
  width: 44px;
  height: 44px;
  flex: none;
  border: 1px solid var(--line-strong);
  background: var(--ink);
  color: var(--text);
  font: 600 18px var(--font-body);
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease;
}
.reviews__nav:hover { border-color: var(--teal); color: var(--teal); }

.review {
  flex: 0 0 min(100%, 340px);
  scroll-snap-align: start;
  background: var(--surface);
  border: 1px solid var(--line-mid);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.review__stars {
  color: var(--teal);
  font: 600 14px var(--font-ui);
  letter-spacing: .3em;
}
.review__quote {
  font: 400 17px/1.6 var(--font-body);
  color: var(--text);
  text-wrap: pretty;
}
.review__quote::before { content: '\201C'; }
.review__quote::after  { content: '\201D'; }
.review__by {
  font: 600 13px var(--font-ui);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: auto;
}

/* --- Footer --------------------------------------------------------------- */
.footer {
  background: var(--ink);
  border-top: 1px solid var(--line);
}
.footer__grid {
  padding-block: clamp(48px, 6vw, 72px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 36px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.footer__emblem { width: 72px; height: 72px; object-fit: contain; flex: none; }

.footer__heading {
  font: 600 13px var(--font-ui);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 14px;
}
.footer__text {
  font: 400 15px/1.8 var(--font-body);
  color: var(--text-dim);
  margin-bottom: 14px;
}
.footer__text--tight { line-height: 2.1; }

/* Phone and email are the page's main conversion links on a phone — give them
   a comfortable tap target. The line box is 31px, so a 5px overlay on each
   side reaches 28px without the two links colliding. */
.footer__link {
  position: relative;
  display: inline-block;
  color: inherit;
}
.footer__link::after {
  content: '';
  position: absolute;
  inset: -5px 0;
}
.footer__link:hover { color: var(--teal); }

.footer__social {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer__cta {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
.footer__legal {
  font: 400 13px/1.7 var(--font-body);
  color: var(--text-faint);
}

/* --- Sticky WhatsApp ------------------------------------------------------ */
.whatsapp-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  background: var(--teal);
  color: var(--on-teal);
  font: 700 15px var(--font-ui);
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 15px 22px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
  transition: background-color .15s ease;
}
.whatsapp-fab:hover { background: var(--teal-bright); color: var(--on-teal); }

/* The fixed button would otherwise sit on top of the footer's last lines when
   the page is scrolled to the bottom. */
@media (max-width: 700px) {
  .footer__grid { padding-bottom: calc(clamp(48px, 6vw, 72px) + 72px); }
}
