/* ==========================================================================
   IronBar — Calisthenics Academy Template
   Style: Urban / High-Contrast  ·  "Chalk & Concrete"
   Stack: Vanilla HTML5 + CSS3 + JS  (no frameworks)
   --------------------------------------------------------------------------
   Table of contents
   1.  Design tokens (:root)
   2.  Reset & base
   3.  Layout helpers (container, section, eyebrow, buttons)
   4.  Navbar
   5.  Hero
   6.  Stats / counters
   7.  About
   8.  Why choose us
   9.  Programs
   10. Membership plans
   11. Trainers
   12. Schedule
   13. Success stories
   14. Testimonials
   15. Gallery
   16. BMI calculator
   17. FAQ
   18. Contact
   19. Footer
   20. Floating buttons + scroll progress
   21. Scroll-reveal + motion
   22. Responsive
   ========================================================================== */

/* ============================ 1. DESIGN TOKENS ============================ */
:root {
  /* Surfaces — warm graphite, layered darkest→lightest */
  --ink:        #141416;   /* page background            */
  --ink-1:      #1A1A1D;   /* raised sections            */
  --ink-2:      #202024;   /* cards                       */
  --ink-3:      #2A2A30;   /* card hover / elevated       */

  /* Text — chalk (never pure white) */
  --chalk:      #F2F0EB;
  --chalk-dim:  rgba(242, 240, 235, 0.66);
  --chalk-faint:rgba(242, 240, 235, 0.42);

  /* Accent — molten orange (single bold accent, ~7% of UI) */
  --acc:        #FF5B2E;
  --acc-hi:     #FFA23A;   /* amber highlight for gradients */
  --acc-soft:   rgba(255, 91, 46, 0.14);

  /* Lines */
  --line:       rgba(242, 240, 235, 0.10);
  --line-soft:  rgba(242, 240, 235, 0.06);

  /* Semantics */
  --ok:         #6FD08C;

  /* Radius — sharp, architectural (pills reserved for CTAs) */
  --r:          6px;
  --r-pill:     999px;

  /* Type */
  --f-display:  'Archivo', system-ui, sans-serif;
  --f-poster:   'Bebas Neue', 'Archivo', sans-serif;
  --f-body:     'Inter', system-ui, sans-serif;

  /* Spacing rhythm */
  --pad-x:      clamp(20px, 5vw, 64px);
  --sec-y:      clamp(64px, 9vw, 128px);

  /* Motion */
  --ease:       cubic-bezier(0.22, 1, 0.36, 1);
  --shadow:     0 24px 60px -28px rgba(0, 0, 0, 0.75);
}

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

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

body {
  font-family: var(--f-body);
  background: var(--ink);
  color: var(--chalk);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
input, textarea { font-family: inherit; }

::selection { background: var(--acc); color: #16110d; }

/* Accessible focus */
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 3px; }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 200;
  background: var(--acc); color: #16110d; padding: 10px 18px; border-radius: var(--r-pill);
  font-weight: 700;
}
.skip-link:focus { left: 8px; }

/* ==================== 3. LAYOUT HELPERS & PRIMITIVES ==================== */
.container { width: min(1240px, 100%); margin-inline: auto; padding-inline: var(--pad-x); }

.section { padding-block: var(--sec-y); position: relative; }

/* Section heads */
.section__head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.section__head--split {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 32px; max-width: none; flex-wrap: wrap;
}
.section__note { color: var(--chalk-dim); max-width: 420px; }
.section__title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-top: 14px;
}

/* Eyebrow label — poster caps with an accent tick */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-poster);
  font-size: 1.05rem; letter-spacing: 3px;
  color: var(--acc);
  text-transform: uppercase;
}
.eyebrow--light { color: var(--chalk); }
.eyebrow__tick { width: 28px; height: 3px; background: var(--acc); display: inline-block; }

.lead { color: var(--chalk-dim); font-size: 1.06rem; max-width: 60ch; }

.hl { color: var(--acc); position: relative; }

/* Buttons */
.btn {
  --h: 54px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 28px;
  font-family: var(--f-display); font-weight: 700; font-size: 0.95rem;
  letter-spacing: 0.01em;
  border-radius: var(--r-pill);
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
  will-change: transform;
}
.btn--sm { --h: 44px; padding: 0 22px; font-size: 0.88rem; }
.btn--block { width: 100%; }

.btn--solid { background: var(--acc); color: #16110d; }
.btn--solid:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px var(--acc); }

.btn--ghost { background: rgba(242,240,235,0.06); color: var(--chalk); border: 1px solid var(--line); }
.btn--ghost:hover { background: rgba(242,240,235,0.12); transform: translateY(-2px); }

.btn--outline { background: transparent; color: var(--chalk); border: 1.5px solid var(--chalk); }
.btn--outline:hover { background: var(--chalk); color: var(--ink); transform: translateY(-2px); }

.btn--text { background: none; color: var(--chalk-dim); padding: 0 6px; border-radius: 4px; }
.btn--text:hover { color: var(--acc); }
.btn--text span { transition: transform .25s var(--ease); }
.btn--text:hover span { transform: translateX(4px); }

/* ================================ 4. NAVBAR ================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .35s var(--ease), border-color .35s var(--ease), backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(20, 20, 22, 0.82);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark { border-radius: 8px; }
.brand__text {
  font-family: var(--f-display); font-weight: 900; font-size: 1.35rem;
  letter-spacing: -0.01em; text-transform: uppercase;
}

.nav__links { display: flex; gap: 30px; }
.nav__links a {
  font-size: 0.92rem; font-weight: 500; color: var(--chalk-dim);
  position: relative; padding: 6px 0;
  transition: color .25s var(--ease);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--acc); transition: width .3s var(--ease);
}
.nav__links a:hover,
.nav__links a.is-active { color: var(--chalk); }
.nav__links a.is-active::after { width: 100%; }

.nav__actions { display: flex; align-items: center; gap: 14px; }

.nav__toggle { display: none; width: 44px; height: 44px; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.nav__toggle span { width: 24px; height: 2px; background: var(--chalk); transition: transform .3s var(--ease), opacity .3s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ================================= 5. HERO ================================= */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0;
  background: url("images/hero.svg") center/cover no-repeat;
  transform: scale(1.04);
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20,20,22,0.55) 0%, rgba(20,20,22,0.35) 40%, rgba(20,20,22,0.92) 100%),
    radial-gradient(70% 60% at 78% 22%, transparent, rgba(20,20,22,0.55));
}
/* faint chalk-dust grain overlay */
.hero__grain {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: radial-gradient(rgba(242,240,235,0.12) 1px, transparent 1px);
  background-size: 4px 4px;
  mix-blend-mode: overlay;
}
.hero__inner { position: relative; z-index: 2; padding-top: 96px; padding-bottom: 60px; }

.hero__title {
  font-family: var(--f-display); font-weight: 900;
  font-size: clamp(3.2rem, 12vw, 9rem);
  line-height: 0.9; letter-spacing: -0.03em;
  text-transform: uppercase;
  margin: 22px 0 24px;
}
.hero__title .hl {
  -webkit-text-stroke: 2px var(--acc);
  color: transparent;
  paint-order: stroke fill;
}
.hero__lead { color: var(--chalk-dim); font-size: 1.12rem; max-width: 54ch; }

.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero__meta { display: flex; flex-wrap: wrap; gap: 14px 38px; margin-top: 46px; }
.hero__meta li { display: flex; flex-direction: column; }
.hero__meta .m-num {
  font-family: var(--f-poster); font-size: 2.4rem; line-height: 1; color: var(--chalk);
}
.hero__meta .m-num i { color: var(--acc); font-style: normal; }
.hero__meta .m-lab { font-size: 0.78rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--chalk-faint); }

.hero__scroll {
  position: absolute; left: var(--pad-x); bottom: 26px; z-index: 2;
  display: flex; align-items: center; gap: 12px;
  font-size: 0.72rem; letter-spacing: 3px; text-transform: uppercase; color: var(--chalk-faint);
}
.hero__scroll-line { width: 60px; height: 1px; background: var(--chalk-faint); position: relative; overflow: hidden; }
.hero__scroll-line::after {
  content: ""; position: absolute; inset: 0; width: 40%; background: var(--acc);
  animation: scrollLine 2.4s var(--ease) infinite;
}
@keyframes scrollLine { 0% { transform: translateX(-120%); } 100% { transform: translateX(260%); } }

/* ============================ 6. STATS / COUNTERS ============================ */
.stats { background: var(--ink-1); border-block: 1px solid var(--line); }
.stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding-block: clamp(40px, 5vw, 60px);
}
.stat { padding: 8px 24px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: none; padding-left: 0; }
.stat__num {
  font-family: var(--f-poster); font-size: clamp(2.8rem, 6vw, 4.4rem); line-height: 0.95; color: var(--chalk);
}
.stat__num sup { color: var(--acc); font-size: 0.5em; top: -0.5em; }
.stat__label { font-size: 0.8rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--chalk-faint); margin-top: 6px; }

/* ================================ 7. ABOUT ================================ */
.about__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.about__media { position: relative; border-radius: var(--r); overflow: hidden; }
.about__media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; transition: transform .8s var(--ease); }
.about__media:hover img { transform: scale(1.05); }
.about__badge {
  position: absolute; left: 20px; bottom: 20px;
  background: var(--acc); color: #16110d; padding: 16px 20px; border-radius: var(--r);
  display: flex; flex-direction: column; box-shadow: var(--shadow);
}
.about__badge-num { font-family: var(--f-poster); font-size: 2.6rem; line-height: 0.85; }
.about__badge-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }

.about__points { margin: 26px 0 30px; display: grid; gap: 14px; }
.about__points li { display: flex; gap: 12px; align-items: flex-start; color: var(--chalk-dim); }
.about__points li::before {
  content: ""; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 5px;
  background: var(--acc-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF5B2E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/13px no-repeat;
}

/* ============================ 8. WHY CHOOSE US ============================ */
.why { background: var(--ink-1); }
.why__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.why__card {
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r);
  padding: 32px 28px; transition: transform .35s var(--ease), border-color .35s, background .35s;
  position: relative; overflow: hidden;
}
.why__card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; width: 0; background: var(--acc);
  transition: width .4s var(--ease);
}
.why__card:hover { transform: translateY(-6px); border-color: rgba(255,91,46,0.4); background: var(--ink-3); }
.why__card:hover::before { width: 100%; }
.why__icon {
  width: 52px; height: 52px; border-radius: var(--r); background: var(--acc-soft);
  display: grid; place-items: center; color: var(--acc); margin-bottom: 20px;
}
.why__icon svg { width: 26px; height: 26px; }
.why__card h3 { font-family: var(--f-display); font-weight: 700; font-size: 1.22rem; margin-bottom: 10px; }
.why__card p { color: var(--chalk-dim); font-size: 0.96rem; }

/* ================================ 9. PROGRAMS ================================ */
.programs__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.program {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r);
  padding: 26px 28px; transition: background .35s var(--ease), border-color .35s, transform .35s;
}
.program:hover { background: var(--ink-3); border-color: var(--line); transform: translateX(4px); }
.program__num {
  font-family: var(--f-poster); font-size: 2.8rem; line-height: 1; color: transparent;
  -webkit-text-stroke: 1.4px var(--chalk-faint); transition: -webkit-text-stroke-color .35s;
}
.program:hover .program__num { -webkit-text-stroke-color: var(--acc); }
.program__body h3 { font-family: var(--f-display); font-weight: 700; font-size: 1.2rem; }
.program__body p { color: var(--chalk-dim); font-size: 0.92rem; margin-top: 4px; }
.program__tag {
  font-family: var(--f-poster); letter-spacing: 1.5px; font-size: 0.9rem;
  color: var(--acc); border: 1px solid var(--line); padding: 6px 12px; border-radius: var(--r-pill);
  white-space: nowrap;
}

/* ============================ 10. MEMBERSHIP PLANS ============================ */
.plans { background: var(--ink-1); }
.plans__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan {
  display: flex; flex-direction: column;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r);
  padding: 34px 30px; transition: transform .35s var(--ease), border-color .35s;
  position: relative;
}
.plan:hover { transform: translateY(-6px); }
.plan--featured {
  border-color: var(--acc);
  background: linear-gradient(180deg, rgba(255,91,46,0.10), var(--ink-2) 40%);
  box-shadow: var(--shadow);
}
.plan__flag {
  position: absolute; top: -13px; left: 30px;
  background: var(--acc); color: #16110d; font-family: var(--f-poster); letter-spacing: 2px;
  font-size: 0.85rem; padding: 5px 14px; border-radius: var(--r-pill);
}
.plan__name { font-family: var(--f-poster); letter-spacing: 2px; color: var(--chalk-dim); font-size: 1.2rem; }
.plan__price { display: flex; align-items: baseline; gap: 6px; margin: 8px 0 2px; }
.plan__price .amt { font-family: var(--f-display); font-weight: 900; font-size: 3.2rem; line-height: 1; letter-spacing: -0.03em; }
.plan__price .per { color: var(--chalk-faint); font-size: 0.9rem; }
.plan__blurb { color: var(--chalk-dim); font-size: 0.92rem; margin-bottom: 22px; }
.plan__feats { display: grid; gap: 12px; margin-bottom: 28px; flex: 1; }
.plan__feats li { display: flex; gap: 10px; align-items: flex-start; color: var(--chalk-dim); font-size: 0.94rem; }
.plan__feats li::before {
  content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%;
  background: var(--acc-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF5B2E' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/11px no-repeat;
}
.plans__foot { text-align: center; color: var(--chalk-faint); font-size: 0.9rem; margin-top: 30px; }

/* ================================ 11. TRAINERS ================================ */
.trainers__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.trainer {
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s;
}
.trainer:hover { transform: translateY(-6px); border-color: rgba(255,91,46,0.4); }
.trainer__media { position: relative; overflow: hidden; aspect-ratio: 4/5; }
.trainer__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); filter: grayscale(0.25); }
.trainer:hover .trainer__media img { transform: scale(1.06); filter: grayscale(0); }
.trainer__social {
  position: absolute; inset: auto 0 0 0; display: flex; gap: 10px; padding: 14px;
  background: linear-gradient(0deg, rgba(20,20,22,0.9), transparent);
  transform: translateY(100%); opacity: 0; transition: transform .4s var(--ease), opacity .4s;
}
.trainer:hover .trainer__social { transform: translateY(0); opacity: 1; }
.trainer__social a {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(242,240,235,0.1); color: var(--chalk); transition: background .25s, color .25s;
}
.trainer__social a:hover { background: var(--acc); color: #16110d; }
.trainer__social svg { width: 17px; height: 17px; }
.trainer__body { padding: 20px 22px 24px; }
.trainer__spec { font-family: var(--f-poster); letter-spacing: 2px; color: var(--acc); font-size: 0.92rem; }
.trainer__name { font-family: var(--f-display); font-weight: 800; font-size: 1.28rem; margin: 4px 0 6px; }
.trainer__exp { color: var(--chalk-faint); font-size: 0.85rem; }

/* ================================ 12. SCHEDULE ================================ */
.schedule { background: var(--ink-1); }
.schedule__legend { display: flex; gap: 18px; flex-wrap: wrap; }
.schedule__legend span { display: inline-flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--chalk-dim); }
.schedule__legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.schedule__scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
.schedule__table { width: 100%; border-collapse: collapse; min-width: 720px; }
.schedule__table thead th {
  font-family: var(--f-poster); letter-spacing: 1.5px; font-size: 0.95rem; color: var(--chalk-dim);
  text-align: left; padding: 18px 16px; background: var(--ink-2); border-bottom: 1px solid var(--line);
  position: sticky; top: 0;
}
.schedule__table thead th:first-child { color: var(--chalk-faint); }
.schedule__table td { padding: 14px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.schedule__table tbody tr:last-child td { border-bottom: none; }
.schedule__time { font-family: var(--f-poster); letter-spacing: 1px; color: var(--chalk-faint); white-space: nowrap; }
.cls {
  display: block; border-radius: var(--r); padding: 10px 12px; font-size: 0.85rem;
  border: 1px solid var(--line); transition: transform .25s var(--ease), border-color .25s;
}
.cls:hover { transform: translateY(-2px); }
.cls strong { display: block; font-weight: 600; color: var(--chalk); }
.cls small { color: var(--chalk-faint); font-size: 0.76rem; }
.cls[data-type="skill"]    { border-left: 3px solid var(--acc); }
.cls[data-type="strength"] { border-left: 3px solid var(--acc-hi); }
.cls[data-type="mobility"] { border-left: 3px solid var(--ok); }
.cls--empty { color: var(--chalk-faint); font-size: 0.8rem; }

/* ============================ 13. SUCCESS STORIES ============================ */
.stories__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.story {
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
}
/* before/after slider */
.ba { position: relative; aspect-ratio: 16/11; overflow: hidden; user-select: none; touch-action: none; cursor: ew-resize; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__after { clip-path: inset(0 0 0 50%); }
.ba__tag {
  position: absolute; top: 12px; font-family: var(--f-poster); letter-spacing: 2px; font-size: 0.85rem;
  padding: 4px 12px; border-radius: var(--r-pill); background: rgba(20,20,22,0.72); backdrop-filter: blur(4px);
}
.ba__tag--before { left: 12px; color: var(--chalk-dim); }
.ba__tag--after  { right: 12px; color: var(--acc); }
.ba__handle {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: var(--acc);
  transform: translateX(-50%);
}
.ba__grip {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 42px; height: 42px; border-radius: 50%; background: var(--acc); color: #16110d;
  display: grid; place-items: center; box-shadow: var(--shadow); font-weight: 800;
}
.story__body { padding: 20px 24px 24px; }
.story__body h3 { font-family: var(--f-display); font-weight: 800; font-size: 1.2rem; }
.story__body p { color: var(--chalk-dim); font-size: 0.92rem; margin-top: 6px; }
.story__stat { display: inline-block; margin-top: 12px; font-family: var(--f-poster); letter-spacing: 1px; color: var(--acc); }

/* ============================== 14. TESTIMONIALS ============================== */
.quotes__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote {
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r); padding: 30px 28px;
  display: flex; flex-direction: column; transition: transform .35s var(--ease), border-color .35s;
}
.quote:hover { transform: translateY(-5px); border-color: rgba(255,91,46,0.35); }
.quote__mark { font-family: var(--f-display); font-weight: 900; font-size: 3rem; color: var(--acc); line-height: 0.6; height: 26px; }
.quote__text { color: var(--chalk-dim); font-size: 1rem; margin: 18px 0 22px; flex: 1; }
.quote__by { display: flex; align-items: center; gap: 12px; }
.quote__by img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.quote__name { font-family: var(--f-display); font-weight: 700; font-size: 0.98rem; }
.quote__role { color: var(--chalk-faint); font-size: 0.82rem; }
.quote__stars { color: var(--acc); font-size: 0.85rem; letter-spacing: 2px; margin-top: 2px; }

/* ================================ 15. GALLERY ================================ */
.gallery__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 14px;
}
.gallery__item {
  position: relative; overflow: hidden; border-radius: var(--r); border: 1px solid var(--line);
}
.gallery__item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery__item:nth-child(6) { grid-column: span 2; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.gallery__item:hover img { transform: scale(1.1); }
.gallery__item::after {
  content: attr(data-cap); position: absolute; left: 14px; bottom: 12px;
  font-family: var(--f-poster); letter-spacing: 2px; color: var(--chalk);
  opacity: 0; transform: translateY(8px); transition: opacity .35s var(--ease), transform .35s var(--ease);
  text-shadow: 0 2px 12px rgba(0,0,0,0.8);
}
.gallery__item:hover::after { opacity: 1; transform: translateY(0); }

/* ============================= 16. BMI CALCULATOR ============================= */
.bmi__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.bmi__card {
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r);
  padding: clamp(26px, 4vw, 40px); box-shadow: var(--shadow);
}
.bmi__units { display: inline-flex; background: var(--ink-1); border-radius: var(--r-pill); padding: 4px; margin-bottom: 26px; }
.bmi__unit {
  padding: 8px 22px; border-radius: var(--r-pill); font-weight: 600; font-size: 0.88rem;
  color: var(--chalk-dim); transition: background .25s, color .25s;
}
.bmi__unit.is-active { background: var(--acc); color: #16110d; }

.bmi__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 22px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field__label { font-size: 0.8rem; letter-spacing: 0.5px; text-transform: uppercase; color: var(--chalk-faint); font-weight: 500; }
.field__label em { color: var(--acc); font-style: normal; text-transform: none; }
.field input, .field textarea {
  background: var(--ink-1); border: 1px solid var(--line); border-radius: var(--r);
  padding: 13px 15px; color: var(--chalk); font-size: 1rem; transition: border-color .25s, background .25s;
}
.field input:focus, .field textarea:focus { border-color: var(--acc); background: var(--ink); }
.field textarea { resize: vertical; }

.bmi__result { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); }
.bmi__score { display: flex; align-items: baseline; gap: 14px; }
.bmi__value { font-family: var(--f-display); font-weight: 900; font-size: 3.4rem; line-height: 1; letter-spacing: -0.03em; }
.bmi__cat { font-family: var(--f-poster); letter-spacing: 2px; font-size: 1.3rem; color: var(--acc); }
.bmi__gauge { position: relative; height: 10px; margin: 22px 0 14px; }
.bmi__track {
  position: absolute; inset: 0; border-radius: var(--r-pill);
  background: linear-gradient(90deg, #4FA3E3 0%, var(--ok) 33%, var(--acc-hi) 66%, var(--acc) 100%);
}
.bmi__marker {
  position: absolute; top: 50%; width: 20px; height: 20px; border-radius: 50%;
  background: var(--chalk); border: 3px solid var(--ink-2); transform: translate(-50%, -50%);
  left: 0; transition: left .5s var(--ease); box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.bmi__hint { color: var(--chalk-dim); font-size: 0.9rem; }

/* ================================== 17. FAQ ================================== */
.faq { background: var(--ink-1); }
.faq__grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.faq__head { margin-bottom: 0; }
.faq__list { display: grid; gap: 12px; }
.faq__item { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.faq__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 24px; text-align: left; font-family: var(--f-display); font-weight: 600; font-size: 1.06rem;
}
.faq__q .ic { flex: none; width: 24px; height: 24px; position: relative; }
.faq__q .ic::before, .faq__q .ic::after {
  content: ""; position: absolute; top: 50%; left: 50%; background: var(--acc);
  transform: translate(-50%, -50%); transition: transform .3s var(--ease);
}
.faq__q .ic::before { width: 14px; height: 2px; }
.faq__q .ic::after  { width: 2px; height: 14px; }
.faq__item.is-open .faq__q .ic::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq__a p { padding: 0 24px 24px; color: var(--chalk-dim); }

/* ================================ 18. CONTACT ================================ */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); }
.contact__list { display: grid; gap: 16px; margin: 26px 0 30px; }
.contact__list li { display: flex; gap: 14px; align-items: flex-start; }
.contact__list .ic {
  flex: none; width: 44px; height: 44px; border-radius: var(--r); background: var(--acc-soft);
  color: var(--acc); display: grid; place-items: center;
}
.contact__list .ic svg { width: 20px; height: 20px; }
.contact__list .l1 { font-size: 0.78rem; letter-spacing: 1px; text-transform: uppercase; color: var(--chalk-faint); }
.contact__list .l2 { color: var(--chalk); font-weight: 500; }
.contact__list a.l2:hover { color: var(--acc); }

.contact__hours { border-top: 1px solid var(--line); padding-top: 22px; margin-bottom: 26px; }
.contact__hours-title { font-family: var(--f-poster); letter-spacing: 2px; font-size: 1.05rem; margin-bottom: 12px; color: var(--chalk-dim); }
.contact__hours li { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--line-soft); font-size: 0.92rem; }
.contact__hours li span:first-child { color: var(--chalk-dim); }
.contact__hours li span:last-child { color: var(--chalk); font-weight: 500; }
.contact__hours li.is-closed span:last-child { color: var(--chalk-faint); }

.contact__social { display: flex; gap: 12px; }
.contact__social a, .footer__social a {
  width: 42px; height: 42px; border-radius: var(--r); border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--chalk-dim);
  transition: background .25s, color .25s, transform .25s, border-color .25s;
}
.contact__social a:hover, .footer__social a:hover { background: var(--acc); color: #16110d; transform: translateY(-3px); border-color: var(--acc); }
.contact__social svg, .footer__social svg { width: 18px; height: 18px; }

.contact__form { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(24px, 4vw, 36px); display: grid; gap: 18px; }
.contact__form-note { font-size: 0.88rem; color: var(--ok); min-height: 1.2em; }
.contact__map {
  display: block; margin-top: 20px; position: relative; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line);
}
.contact__map img { width: 100%; aspect-ratio: 2/1; object-fit: cover; transition: transform .6s var(--ease); }
.contact__map:hover img { transform: scale(1.05); }
.contact__map-tag {
  position: absolute; right: 12px; bottom: 12px; background: var(--acc); color: #16110d;
  font-family: var(--f-display); font-weight: 700; font-size: 0.82rem; padding: 8px 14px; border-radius: var(--r-pill);
}

/* ================================= 19. FOOTER ================================= */
.footer { background: var(--ink-1); border-top: 1px solid var(--line); padding-top: clamp(56px, 7vw, 88px); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.footer__tag { color: var(--chalk-dim); font-size: 0.94rem; margin: 16px 0 20px; max-width: 34ch; }
.footer__social { display: flex; gap: 10px; }
.footer__col h4 { font-family: var(--f-poster); letter-spacing: 2px; font-size: 1rem; color: var(--chalk-dim); margin-bottom: 16px; }
.footer__col a, .footer__contact { display: block; color: var(--chalk-faint); font-size: 0.94rem; padding: 5px 0; transition: color .2s; }
.footer__col a:hover, .footer__contact:hover { color: var(--acc); }
.footer__addr { color: var(--chalk-faint); font-size: 0.94rem; margin-bottom: 10px; }
.footer__bar {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  padding: 26px 0; border-top: 1px solid var(--line); font-size: 0.86rem; color: var(--chalk-faint);
}
.footer__credit strong { color: var(--acc); }

/* ==================== 20. FLOATING BUTTONS + SCROLL PROGRESS ==================== */
.scrollbar { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--acc); z-index: 120; }

.wa {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(37,211,102,0.6);
  transition: transform .3s var(--ease);
}
.wa:hover { transform: scale(1.08) translateY(-2px); }
.wa::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366;
  animation: waPing 2.4s var(--ease) infinite;
}
@keyframes waPing { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(1.7); opacity: 0; } }

.totop {
  position: fixed; right: 24px; bottom: 92px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%; background: var(--ink-3); color: var(--chalk);
  border: 1px solid var(--line); display: grid; place-items: center;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), background .25s;
}
.totop.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.totop:hover { background: var(--acc); color: #16110d; }

/* ======================= 21. SCROLL REVEAL + MOTION ======================= */
.reveal, [data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-in, [data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal-delay="3"] { transition-delay: .24s; }
[data-reveal-delay="4"] { transition-delay: .32s; }

/* ============================= 22. RESPONSIVE ============================= */
@media (max-width: 1080px) {
  .why__grid, .quotes__grid { grid-template-columns: repeat(2, 1fr); }
  .trainers__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  /* Mobile nav */
  .nav__links {
    position: fixed; inset: 76px 0 auto 0;
    flex-direction: column; gap: 0;
    background: rgba(20,20,22,0.97); backdrop-filter: blur(16px);
    padding: 12px var(--pad-x) 26px; border-bottom: 1px solid var(--line);
    transform: translateY(-120%); transition: transform .4s var(--ease); visibility: hidden;
  }
  .nav__links.is-open { transform: translateY(0); visibility: visible; }
  .nav__links a { padding: 15px 0; border-bottom: 1px solid var(--line-soft); font-size: 1.05rem; }
  .nav__links a::after { display: none; }
  .nav__toggle { display: flex; }

  .about__grid, .bmi__grid, .contact__grid, .faq__grid { grid-template-columns: 1fr; }
  .programs__grid, .plans__grid, .stories__grid { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 30px 12px; }
  .stat { border-left: none; padding-left: 0; }
  .plan--featured { order: -1; }
}

@media (max-width: 620px) {
  .why__grid, .quotes__grid, .trainers__grid, .footer__grid { grid-template-columns: 1fr; }
  .bmi__fields { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .gallery__item:nth-child(1) { grid-column: span 2; }
  .gallery__item:nth-child(6) { grid-column: span 2; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }
  .section__head--split { align-items: flex-start; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal, [data-reveal] { opacity: 1 !important; transform: none !important; }
}
