/* =========================================================
   CLUB FITNESS — Global Design System
   Sleek & premium dark theme · bold athletic headlines
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Brand palette */
  --bg:        #242423;   /* charcoal base            */
  --bg-2:      #2c2c2a;   /* raised surface / cards   */
  --bg-3:      #34332f;   /* hover / nested surface   */
  --line:      rgba(247, 247, 247, 0.08);
  --line-2:    rgba(247, 247, 247, 0.14);

  --headline:  #73B3BF;   /* primary blue headlines   */
  --aqua:      #6BC0C0;   /* brighter aqua accent     */
  --lime:      #C6D584;   /* lime green accent        */
  --text:      #FFFFFF;   /* body copy white          */
  --muted:     rgba(255, 255, 255, 0.82);
  --muted-2:   rgba(255, 255, 255, 0.50);

  /* Glows */
  --glow-aqua: 0 0 0 1px rgba(107, 192, 192, 0.5), 0 8px 40px -8px rgba(107, 192, 192, 0.45);
  --glow-lime: 0 0 0 1px rgba(198, 213, 132, 0.5), 0 8px 40px -8px rgba(198, 213, 132, 0.45);

  /* Type */
  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 16px;
  --radius-sm: 10px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* Ambient page texture (very subtle) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 600px at 12% -5%, rgba(115, 179, 191, 0.08), transparent 60%),
    radial-gradient(800px 600px at 95% 8%, rgba(198, 213, 132, 0.06), transparent 55%);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}
h1 { font-size: clamp(2.6rem, 7vw, 5.4rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h3 { font-size: clamp(1.3rem, 2.3vw, 1.7rem); }
.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--lime);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--lime);
  display: inline-block;
}
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 60ch; }
.accent-aqua { color: var(--aqua); }
.accent-lime { color: var(--lime); }
.accent-blue { color: var(--headline); }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); position: relative; z-index: 1; }
.section { padding-block: clamp(64px, 9vw, 130px); position: relative; z-index: 1; }
.section--tight { padding-block: clamp(48px, 6vw, 84px); }


.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head h2 { margin-bottom: 18px; }
.center { text-align: center; margin-inline: auto; }
.grid { display: grid; gap: clamp(16px, 2vw, 26px); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--lime);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.95em 1.8em;
  border-radius: 100px;
  position: relative;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 1.1em; height: 1.1em; transition: transform 0.4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn--lime { background: var(--lime); color: #20231a; }
.btn--lime:hover { transform: translateY(-3px); box-shadow: var(--glow-lime); }

.btn--aqua { background: var(--aqua); color: #14201f; }
.btn--aqua:hover { transform: translateY(-3px); box-shadow: var(--glow-aqua); }

.btn--ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn--ghost:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1.5px var(--aqua), var(--glow-aqua); color: var(--aqua); }

.btn--sm { padding: 0.7em 1.3em; font-size: 0.82rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease), box-shadow 0.4s var(--ease), padding 0.4s var(--ease);
  padding-block: 18px;
}
.site-header.scrolled {
  background: rgba(28, 28, 27, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 var(--line), 0 10px 40px -20px rgba(0,0,0,0.8);
  padding-block: 12px;
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__logo img { height: 62px; width: auto; transition: height 0.4s var(--ease); }
.site-header.scrolled .nav__logo img { height: 54px; }
.nav__menu { display: flex; align-items: center; gap: clamp(8px, 1vw, 18px); }
.nav__link {
  font-size: 0.83rem; font-weight: 500; letter-spacing: 0.03em; color: var(--muted);
  position: relative; padding: 6px 0; transition: color 0.3s var(--ease);
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--aqua), var(--lime));
  transition: width 0.35s var(--ease);
}
.nav__link:hover, .nav__link.active { color: var(--text); }
.nav__link:hover::after, .nav__link.active::after { width: 100%; }
.nav__actions { display: flex; align-items: center; gap: 8px; margin-left: 10px; flex-shrink: 0; }
.nav__toggle { display: none; width: 44px; height: 44px; flex-direction: column; justify-content: center; gap: 6px; align-items: center; }
.nav__toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.4s var(--ease), opacity 0.3s var(--ease); }

/* Dropdown nav */
.nav__has-dropdown { position: relative; }
.nav__dropdown-btn {
  background: none; border: none; cursor: pointer; padding: 6px 0;
  display: flex; align-items: center; gap: 5px;
}
.nav__dropdown-btn svg { transition: transform 0.25s var(--ease); flex-shrink: 0; }
.nav__has-dropdown:hover .nav__dropdown-btn svg,
.nav__has-dropdown.open .nav__dropdown-btn svg { transform: rotate(180deg); }
.nav__dropdown-menu {
  position: absolute; top: calc(100% + 16px); left: 50%; transform: translateX(-50%) translateY(-6px);
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px;
  padding: 6px; min-width: 210px; list-style: none;
  opacity: 0; visibility: hidden;
  transition: opacity 0.2s var(--ease), visibility 0.2s, transform 0.2s var(--ease);
  z-index: 200; box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}
.nav__has-dropdown:hover .nav__dropdown-menu,
.nav__has-dropdown.open .nav__dropdown-menu {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.nav__dropdown-item {
  display: block; padding: 9px 14px; border-radius: 7px;
  font-size: 0.84rem; font-weight: 500; letter-spacing: 0.03em; color: var(--muted);
  transition: color 0.2s, background 0.2s; white-space: nowrap;
}
.nav__dropdown-item:hover { color: var(--text); background: rgba(247,247,247,0.05); }
.nav__dropdown-item.active { color: var(--aqua); }

/* Mobile nav panel */
.nav__panel { position: fixed; inset: 0 0 0 auto; width: min(360px, 86vw); background: var(--bg-2);
  transform: translateX(100%); transition: transform 0.5s var(--ease); z-index: 99;
  padding: 110px 36px 40px; display: flex; flex-direction: column; gap: 6px;
  overflow-y: auto;
  box-shadow: -30px 0 80px -30px rgba(0,0,0,0.9); border-left: 1px solid var(--line); }
.nav__panel.open { transform: translateX(0); }
.nav__panel a { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.05em; font-size: 1.25rem; padding: 12px 0; color: var(--muted); border-bottom: 1px solid var(--line); transition: color 0.3s, padding-left 0.3s var(--ease); }
.nav__panel a:hover { color: var(--aqua); padding-left: 8px; }
.nav__panel .btn { margin-top: 14px; }
.nav__panel .btn + .btn { margin-top: 8px; }
.nav__panel .btn--lime { color: #000; }
.nav__panel-label { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.7rem; color: var(--aqua); padding: 14px 0 2px; opacity: 0.8; }
.nav__panel-sub { padding-left: 14px !important; font-size: 1.1rem !important; }
.nav__overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); opacity: 0; visibility: hidden; transition: opacity 0.4s; z-index: 98; }
.nav__overlay.open { opacity: 1; visibility: visible; }
body.nav-open { overflow: hidden; }

/* ---------- Cards ---------- */
.card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 2.4vw, 32px);
  position: relative;
  overflow: hidden;
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease), background 0.5s var(--ease);
  isolation: isolate;
}
/* mouse-follow glow inside cards */
.card::before {
  content: ""; position: absolute; inset: -1px; z-index: -1; opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(107,192,192,0.16), transparent 42%);
  transition: opacity 0.5s var(--ease);
}
.card:hover { transform: translateY(-6px); border-color: var(--line-2); }
.card:hover::before { opacity: 1; }

.card__icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(150deg, rgba(107,192,192,0.18), rgba(198,213,132,0.12));
  color: var(--aqua); margin-bottom: 22px; border: 1px solid var(--line-2);
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 10px; color: var(--text); }
.card p { color: var(--muted); font-size: 0.97rem; }

/* ---------- Class tile ---------- */
.class-tile {
  display: flex; flex-direction: column;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; position: relative;
}
.class-tile__media { aspect-ratio: 16/10; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #2f322a, #2a2c2b 60%, #283130); }
.class-tile__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; z-index: 0; }
.class-tile__tag { position: absolute; top: 14px; left: 14px; z-index: 2;
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.1em;
  font-size: 0.68rem; font-weight: 600; padding: 5px 11px; border-radius: 100px;
  background: rgba(36,36,35,0.7); backdrop-filter: blur(6px); color: var(--lime); border: 1px solid var(--line-2); }
.intensity-badge { position: absolute; top: 14px; left: 14px; z-index: 2;
  font-family: var(--font-display); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em;
  padding: 5px 12px; border-radius: 100px; }
.intensity-badge.intensity--low    { background: var(--aqua);  color: #0d2424; border: none; }
.intensity-badge.intensity--medium { background: var(--lime);  color: #1a1d16; border: none; }
.intensity-badge.intensity--high   { background: #dc5050;      color: #fff;    border: none; }
.class-tile__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.class-tile__body h3 { margin-bottom: 4px; color: var(--text); }
.class-tile__with { color: var(--aqua); font-size: 0.82rem; font-weight: 500; letter-spacing: 0.02em; margin-bottom: 12px; }
.class-tile__body p { color: var(--muted); font-size: 0.92rem; flex: 1; }

/* Placeholder media glyph */
.media-glyph { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(247,247,247,0.10); }
.media-glyph svg { width: 40%; height: 40%; }

/* ---------- Stats ---------- */
.stat__num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.4rem, 5vw, 3.6rem);
  background: linear-gradient(120deg, var(--aqua), var(--lime)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; line-height: 1; }
.stat__label { color: var(--muted); font-size: 0.9rem; margin-top: 8px; text-transform: uppercase; letter-spacing: 0.12em; }

/* ---------- Footer ---------- */
.site-footer { background: #1f1f1e; border-top: 1px solid var(--line); padding-block: clamp(56px, 7vw, 84px) 30px; position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 50px; }
.site-footer img.flogo { height: 56px; margin-bottom: 20px; }
.site-footer p { color: var(--muted); font-size: 0.95rem; max-width: 34ch; }
.footer-col h4 { font-size: 1.05rem; color: var(--text); margin-bottom: 18px; letter-spacing: 0.06em; }
.footer-col a, .footer-col li { color: var(--muted); font-size: 0.95rem; display: block; padding: 5px 0; transition: color 0.3s, padding-left 0.3s var(--ease); }
.footer-col a:hover { color: var(--aqua); padding-left: 5px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 26px; border-top: 1px solid var(--line); color: var(--muted-2); font-size: 0.85rem; flex-wrap: wrap; }
.footer-bottom a:hover { color: var(--aqua); }
.social-links { display: flex; gap: 10px; margin-top: 22px; }
.social-links a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); color: var(--muted); flex-shrink: 0; transition: color 0.3s, border-color 0.3s, background 0.3s; }
.social-links a:hover { color: var(--aqua); border-color: var(--aqua); background: rgba(107,192,192,.08); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
.reveal[data-delay="5"] { transition-delay: 0.40s; }

/* ---------- Cursor light (hero) ---------- */
.cursor-light { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.cursor-light__dot { position: absolute; width: 600px; height: 600px; border-radius: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(107,192,192,0.14), transparent 60%); left: 50%; top: 40%;
  transition: left 0.3s var(--ease-soft), top 0.3s var(--ease-soft); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav__menu { display: none; }
  .nav__actions { display: none; }
  .nav__toggle { display: flex; }
  .cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .hero__cta { flex-direction: column; width: 100%; }
  .hero__cta .btn { width: 100%; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
