/* ==========================================================================
   SUMMIT HEALTH CLUB — Design System
   Palette: Obsidian / Graphite / Charcoal / Platinum / Champagne Gold / Forest
   Type: Marcellus (display) + Archivo (body/UI)
   ========================================================================== */

:root {
  /* Colour tokens */
  --obsidian: #0a0b0d;
  --graphite: #141619;
  --charcoal: #1e2126;
  --slate: #2a2e34;
  --platinum: #edeae3;
  --stone: #a8a49b;
  --mist: #6b6f76;
  --gold: #c9a469;
  --gold-light: #e7ce9c;
  --gold-deep: #9a7a44;
  --forest: #16352a;
  --forest-light: #1e4536;
  --white: #ffffff;

  /* Gradients */
  --grad-gold: linear-gradient(105deg, #9a7a44 0%, #c9a469 35%, #e7ce9c 55%, #c9a469 75%, #9a7a44 100%);
  --grad-panel: linear-gradient(180deg, rgba(30, 33, 38, 0.72), rgba(20, 22, 25, 0.9));

  /* Type */
  --font-display: "Marcellus", "Times New Roman", serif;
  --font-body: "Archivo", "Segoe UI", -apple-system, sans-serif;

  /* Scale (fluid) */
  --text-hero: clamp(2.6rem, 7.5vw, 6.2rem);
  --text-h1: clamp(2.2rem, 5.5vw, 4.4rem);
  --text-h2: clamp(1.8rem, 4vw, 3.1rem);
  --text-h3: clamp(1.3rem, 2.4vw, 1.75rem);
  --text-lead: clamp(1.05rem, 1.6vw, 1.25rem);
  --text-body: 1rem;
  --text-small: 0.875rem;
  --text-micro: 0.75rem;

  /* Rhythm */
  --space-section: clamp(4.5rem, 10vw, 8.5rem);
  --space-block: clamp(2rem, 4vw, 3.5rem);
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --max-width: 1280px;
  --max-narrow: 820px;

  --radius: 6px;
  --radius-lg: 14px;

  --shadow-card: 0 18px 50px -18px rgba(0, 0, 0, 0.65);
  --shadow-gold: 0 8px 30px -8px rgba(201, 164, 105, 0.35);

  --ease-lux: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 84px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.7;
  color: var(--platinum);
  background: var(--obsidian);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font: inherit; }
::selection { background: var(--gold); color: var(--obsidian); }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--gold); color: var(--obsidian);
  padding: 0.75rem 1.5rem; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------- Typography ---------- */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0.01em;
  color: var(--white);
}
h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); }
h4 { font-family: var(--font-body); font-weight: 600; font-size: 1.1rem; color: var(--white); letter-spacing: 0.01em; }

.lead { font-size: var(--text-lead); line-height: 1.65; color: var(--stone); max-width: 42em; }
.muted { color: var(--stone); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font-size: var(--text-micro);
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.eyebrow::before {
  content: ""; width: 2rem; height: 1px;
  background: var(--grad-gold); flex-shrink: 0;
}

.gold-text {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Layout primitives ---------- */
.container { max-width: var(--max-width); margin: 0 auto; padding-inline: var(--gutter); }
.container--narrow { max-width: var(--max-narrow); }
.section { padding-block: var(--space-section); position: relative; }
.section--graphite { background: var(--graphite); }
.section--charcoal { background: var(--charcoal); }
.section--forest { background: linear-gradient(170deg, var(--forest) 0%, #0f241d 100%); }
.section--platinum { background: var(--platinum); color: var(--charcoal); }
.section--platinum h1, .section--platinum h2, .section--platinum h3 { color: var(--obsidian); }
.section--platinum .lead, .section--platinum .muted { color: #5a564e; }

.section-head { max-width: 720px; margin-bottom: var(--space-block); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .eyebrow::before { display: none; }
.section-head--center .lead { margin-inline: auto; }
.section-head h2 { margin-bottom: 1rem; }

.grid { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.split--rev > :first-child { order: 2; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split--rev > :first-child { order: 0; }
}

/* ---------- Ridgeline signature divider ---------- */
.ridgeline {
  display: block; width: min(320px, 60%); margin: 0 auto;
  color: var(--gold);
  opacity: 0.9;
}
.section--divider { padding-block: clamp(2rem, 4vw, 3rem); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 1rem 2.2rem;
  min-height: 52px;
  font-weight: 600; font-size: var(--text-small);
  letter-spacing: 0.14em; text-transform: uppercase;
  border-radius: var(--radius);
  transition: transform 0.35s var(--ease-lux), box-shadow 0.35s var(--ease-lux), background-color 0.35s, color 0.35s, border-color 0.35s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--gold {
  background: var(--grad-gold);
  background-size: 200% auto;
  color: var(--obsidian);
  box-shadow: var(--shadow-gold);
}
.btn--gold:hover { background-position: right center; box-shadow: 0 12px 36px -8px rgba(201, 164, 105, 0.5); }

.btn--ghost {
  border: 1px solid rgba(237, 234, 227, 0.28);
  color: var(--platinum);
  background: rgba(255, 255, 255, 0.02);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-light); }

.btn--dark {
  background: var(--obsidian);
  color: var(--platinum);
  border: 1px solid var(--obsidian);
}
.btn--dark:hover { background: var(--charcoal); }

.btn--lg { padding: 1.15rem 2.8rem; font-size: 0.95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

.text-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--gold); font-weight: 600; font-size: var(--text-small);
  letter-spacing: 0.1em; text-transform: uppercase;
  transition: gap 0.3s var(--ease-lux);
}
.text-link:hover { gap: 0.85rem; color: var(--gold-light); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background-color 0.4s, backdrop-filter 0.4s, border-color 0.4s, height 0.4s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  height: 68px;
  background: rgba(10, 11, 13, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: rgba(201, 164, 105, 0.16);
}
.site-header .container {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.brand { display: flex; align-items: center; gap: 0.85rem; flex-shrink: 0; }
.brand img { width: 46px; height: 46px; }
.brand-text { line-height: 1.15; }
.brand-text .brand-name {
  font-family: var(--font-display); font-size: 1.25rem; color: var(--white);
  letter-spacing: 0.12em;
}
.brand-text .brand-sub {
  font-size: 0.6rem; letter-spacing: 0.42em; text-transform: uppercase; color: var(--gold);
}

.main-nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 1.9rem); }
.main-nav a {
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--stone);
  padding: 0.4rem 0;
  position: relative;
  transition: color 0.3s;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 1px; background: var(--grad-gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s var(--ease-lux);
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--white); }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }

.nav-dropdown { position: relative; }
.nav-dropdown > button {
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--stone); display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.4rem 0; transition: color 0.3s;
}
.nav-dropdown > button:hover { color: var(--white); }
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 230px;
  background: rgba(20, 22, 25, 0.96);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(201, 164, 105, 0.18);
  border-radius: var(--radius);
  padding: 0.6rem;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s var(--ease-lux), transform 0.3s var(--ease-lux), visibility 0.3s;
  box-shadow: var(--shadow-card);
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu a {
  display: block; padding: 0.6rem 0.9rem; border-radius: 4px;
  text-transform: none; letter-spacing: 0.02em; font-size: 0.92rem;
}
.nav-dropdown-menu a::after { display: none; }
.nav-dropdown-menu a:hover { background: rgba(201, 164, 105, 0.1); color: var(--gold-light); }

.header-cta { display: flex; align-items: center; gap: 0.9rem; flex-shrink: 0; }
.header-cta .btn { padding: 0.7rem 1.5rem; min-height: 44px; }

.nav-toggle {
  display: none;
  flex-direction: column; justify-content: center; gap: 6px;
  width: 48px; height: 48px; align-items: center;
}
.nav-toggle span {
  display: block; width: 26px; height: 2px; background: var(--platinum);
  transition: transform 0.35s var(--ease-lux), opacity 0.3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 1120px) {
  .main-nav {
    position: fixed; inset: 0; top: 0;
    flex-direction: column; justify-content: center; gap: 1.4rem;
    background: rgba(10, 11, 13, 0.97);
    backdrop-filter: blur(24px);
    opacity: 0; visibility: hidden;
    transition: opacity 0.4s var(--ease-lux), visibility 0.4s;
    z-index: -1;
  }
  .main-nav.is-open { opacity: 1; visibility: visible; z-index: 99; }
  .main-nav a { font-size: 1.1rem; }
  .nav-dropdown { display: contents; }
  .nav-dropdown > button { display: none; }
  .nav-dropdown-menu {
    position: static; transform: none; opacity: 1; visibility: visible;
    background: none; border: none; box-shadow: none; padding: 0;
    display: contents;
  }
  .nav-dropdown-menu a { font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.1em; text-align: center; }
  .nav-toggle { display: flex; }
  .header-cta .btn--ghost { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  padding-block: clamp(6rem, 14vh, 9rem) clamp(3.5rem, 8vh, 6rem);
  overflow: hidden;
  isolation: isolate;
}
.hero-media {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(120% 90% at 70% 10%, rgba(201, 164, 105, 0.12) 0%, transparent 55%),
    radial-gradient(100% 100% at 20% 90%, rgba(22, 53, 42, 0.5) 0%, transparent 60%),
    linear-gradient(180deg, #101215 0%, var(--obsidian) 100%);
}
.hero-media video,
.hero-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.55;
}
.hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10, 11, 13, 0.55) 0%, rgba(10, 11, 13, 0.15) 45%, rgba(10, 11, 13, 0.92) 100%);
}
.hero-inner { width: 100%; }
.hero-title {
  font-size: var(--text-hero);
  max-width: 13ch;
  margin-bottom: 1.5rem;
}
.hero .lead { margin-bottom: 2.5rem; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem;
  margin-top: 3rem; padding-top: 2rem;
  border-top: 1px solid rgba(237, 234, 227, 0.14);
  font-size: var(--text-small); color: var(--stone);
  letter-spacing: 0.14em; text-transform: uppercase;
}
.hero-meta strong { color: var(--gold); font-weight: 600; }

/* Sub-page hero */
.page-hero {
  position: relative;
  padding-block: calc(var(--header-h) + clamp(4rem, 9vw, 7rem)) clamp(3.5rem, 7vw, 5.5rem);
  background:
    radial-gradient(110% 100% at 80% 0%, rgba(201, 164, 105, 0.1) 0%, transparent 55%),
    linear-gradient(180deg, #101215 0%, var(--obsidian) 100%);
  overflow: hidden;
}
.page-hero--forest {
  background:
    radial-gradient(110% 100% at 80% 0%, rgba(201, 164, 105, 0.1) 0%, transparent 55%),
    linear-gradient(180deg, var(--forest) 0%, var(--obsidian) 100%);
}
.page-hero h1 { max-width: 16ch; margin-bottom: 1.25rem; }

/* ---------- Cards ---------- */
.card {
  background: var(--grad-panel);
  border: 1px solid rgba(237, 234, 227, 0.08);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  transition: transform 0.45s var(--ease-lux), border-color 0.45s, box-shadow 0.45s;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: var(--grad-gold);
  opacity: 0;
  transition: opacity 0.45s;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(201, 164, 105, 0.3);
  box-shadow: var(--shadow-card);
}
.card:hover::before { opacity: 1; }
.card h3 { margin-bottom: 0.75rem; font-size: 1.35rem; }
.card p { color: var(--stone); font-size: 0.95rem; }
.card .text-link { margin-top: 1.25rem; }

.card-icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(201, 164, 105, 0.35);
  border-radius: 50%;
  color: var(--gold);
}
.card-icon svg { width: 24px; height: 24px; }

/* Glass card (over imagery / forest) */
.card--glass {
  background: rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ---------- Media placeholders (swap with photography) ---------- */
.media-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    radial-gradient(100% 80% at 30% 20%, rgba(201, 164, 105, 0.14) 0%, transparent 60%),
    linear-gradient(160deg, var(--charcoal) 0%, var(--graphite) 100%);
  border: 1px solid rgba(237, 234, 227, 0.08);
  aspect-ratio: 4 / 3;
  display: grid; place-items: center;
}
.media-frame--wide { aspect-ratio: 16 / 9; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--square { aspect-ratio: 1; }
.media-frame img, .media-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media-frame figcaption {
  position: relative; z-index: 1;
  text-align: center; padding: 1.5rem;
  color: var(--mist); font-size: var(--text-micro);
  letter-spacing: 0.24em; text-transform: uppercase;
}
.media-frame figcaption::before {
  content: "";
  display: block; width: 40px; height: 26px; margin: 0 auto 0.9rem;
  background: currentColor;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 26"><path fill="black" d="M2 24 12 8l6 9 5-7 8 11 7-13v16H2z"/></svg>') no-repeat center / contain;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 26"><path fill="black" d="M2 24 12 8l6 9 5-7 8 11 7-13v16H2z"/></svg>') no-repeat center / contain;
  opacity: 0.5;
}

/* ---------- Stats / counters ---------- */
.stats-band {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding-block: var(--space-block);
  border-block: 1px solid rgba(237, 234, 227, 0.1);
}
@media (max-width: 900px) { .stats-band { grid-template-columns: repeat(2, 1fr); } }
.stat .stat-value {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  color: var(--white);
  line-height: 1;
}
.stat .stat-value sup { font-size: 0.45em; color: var(--gold); margin-left: 2px; }
.stat .stat-label {
  margin-top: 0.6rem;
  font-size: var(--text-micro); letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--stone);
}

/* ---------- Membership tiers ---------- */
.tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 2.5vw, 2rem); align-items: stretch; }
@media (max-width: 980px) { .tier-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; } }
.tier {
  display: flex; flex-direction: column;
  background: var(--graphite);
  border: 1px solid rgba(237, 234, 227, 0.1);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 3vw, 2.75rem);
  position: relative;
  transition: transform 0.45s var(--ease-lux), border-color 0.45s, box-shadow 0.45s;
}
.tier:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }
.tier--featured {
  background: linear-gradient(170deg, #1c1a15 0%, var(--graphite) 60%);
  border-color: rgba(201, 164, 105, 0.45);
  box-shadow: var(--shadow-gold);
}
.tier-flag {
  position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%);
  background: var(--grad-gold); color: var(--obsidian);
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  padding: 0.45rem 1.2rem; border-radius: 100px;
  white-space: nowrap;
}
.tier-name { font-family: var(--font-display); font-size: 1.6rem; color: var(--white); }
.tier-elevation { font-size: var(--text-micro); letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); margin-top: 0.3rem; }
.tier-price { margin-block: 1.5rem; display: flex; align-items: baseline; gap: 0.5rem; }
.tier-price .amount { font-family: var(--font-display); font-size: 3rem; color: var(--white); line-height: 1; }
.tier-price .period { color: var(--stone); font-size: var(--text-small); }
.tier-features { flex: 1; display: grid; gap: 0.7rem; margin-bottom: 2rem; }
.tier-features li {
  display: flex; gap: 0.7rem; align-items: flex-start;
  color: var(--stone); font-size: 0.93rem;
}
.tier-features li::before {
  content: "";
  width: 15px; height: 15px; flex-shrink: 0; margin-top: 0.28rem;
  background: var(--gold);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="black" d="M6.5 12.4 2.6 8.5l1.4-1.4 2.5 2.5 5.5-5.5 1.4 1.4z"/></svg>') no-repeat center / contain;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="black" d="M6.5 12.4 2.6 8.5l1.4-1.4 2.5 2.5 5.5-5.5 1.4 1.4z"/></svg>') no-repeat center / contain;
}
.tier-features li.is-off { opacity: 0.35; }
.tier-features li.is-off::before {
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="black" d="M3 7h10v2H3z"/></svg>') no-repeat center / contain;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="black" d="M3 7h10v2H3z"/></svg>') no-repeat center / contain;
}

/* Comparison table */
.compare-wrap { overflow-x: auto; border: 1px solid rgba(237, 234, 227, 0.1); border-radius: var(--radius-lg); }
.compare { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 0.92rem; }
.compare th, .compare td { padding: 1rem 1.25rem; text-align: center; border-bottom: 1px solid rgba(237, 234, 227, 0.08); }
.compare th { font-family: var(--font-display); font-weight: 400; font-size: 1.05rem; color: var(--white); background: var(--charcoal); }
.compare td:first-child, .compare th:first-child { text-align: left; color: var(--stone); }
.compare td { color: var(--platinum); }
.compare tr:last-child td { border-bottom: none; }
.compare .yes { color: var(--gold); font-weight: 700; }
.compare .no { color: var(--mist); }
.compare th.featured-col { color: var(--gold-light); }

/* ---------- Testimonials ---------- */
.quote-card {
  background: var(--grad-panel);
  border: 1px solid rgba(237, 234, 227, 0.08);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  display: flex; flex-direction: column; gap: 1.25rem;
}
.quote-stars { color: var(--gold); letter-spacing: 0.2em; font-size: 0.9rem; }
.quote-card blockquote { font-size: 1.02rem; line-height: 1.75; color: var(--platinum); }
.quote-attr { display: flex; align-items: center; gap: 0.9rem; margin-top: auto; }
.quote-attr .avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--grad-gold);
  display: grid; place-items: center;
  color: var(--obsidian); font-weight: 700; font-size: 0.9rem;
}
.quote-attr .name { color: var(--white); font-weight: 600; font-size: 0.95rem; }
.quote-attr .role { color: var(--mist); font-size: var(--text-micro); letter-spacing: 0.14em; text-transform: uppercase; }

/* ---------- FAQ accordion ---------- */
.faq-item { border-bottom: 1px solid rgba(237, 234, 227, 0.1); }
.faq-q {
  width: 100%;
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 1.5rem 0.25rem;
  text-align: left;
  font-family: var(--font-display); font-size: 1.2rem; color: var(--white);
  transition: color 0.3s;
}
.faq-q:hover { color: var(--gold-light); }
.faq-q .faq-icon {
  flex-shrink: 0; width: 34px; height: 34px;
  border: 1px solid rgba(201, 164, 105, 0.4); border-radius: 50%;
  display: grid; place-items: center;
  position: relative;
  transition: transform 0.4s var(--ease-lux), background-color 0.3s;
}
.faq-q .faq-icon::before, .faq-q .faq-icon::after {
  content: ""; position: absolute; background: var(--gold);
  width: 12px; height: 1.5px;
}
.faq-q .faq-icon::after { transform: rotate(90deg); transition: transform 0.4s var(--ease-lux); }
.faq-item.is-open .faq-icon { transform: rotate(180deg); background: rgba(201, 164, 105, 0.12); }
.faq-item.is-open .faq-icon::after { transform: rotate(0); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height 0.5s var(--ease-lux);
}
.faq-a-inner { padding: 0 0.25rem 1.75rem; color: var(--stone); max-width: 60em; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.form-grid .full { grid-column: 1 / -1; }
.field label {
  display: block; margin-bottom: 0.5rem;
  font-size: var(--text-micro); font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--stone);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.95rem 1.1rem;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(237, 234, 227, 0.14);
  border-radius: var(--radius);
  color: var(--platinum);
  transition: border-color 0.3s, background-color 0.3s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold);
  background: rgba(201, 164, 105, 0.05);
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.field select option { background: var(--charcoal); }
.field textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: var(--text-small); color: var(--mist); margin-top: 1rem; }
.form-success {
  display: none;
  padding: 1.25rem 1.5rem; border-radius: var(--radius);
  background: rgba(30, 69, 54, 0.4); border: 1px solid var(--forest-light);
  color: var(--platinum); margin-top: 1.5rem;
}
.form-success.is-visible { display: block; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  text-align: center;
  padding-block: var(--space-section);
  background:
    radial-gradient(90% 120% at 50% 100%, rgba(201, 164, 105, 0.16) 0%, transparent 60%),
    linear-gradient(180deg, var(--graphite) 0%, var(--obsidian) 100%);
  overflow: hidden;
}
.cta-band h2 { font-size: var(--text-h1); max-width: 18ch; margin: 0 auto 1.25rem; }
.cta-band .lead { margin: 0 auto 2.5rem; }
.cta-band .btn-row { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer {
  background: #070809;
  border-top: 1px solid rgba(201, 164, 105, 0.14);
  padding-block: clamp(3.5rem, 7vw, 5.5rem) 2rem;
  font-size: var(--text-small);
  color: var(--stone);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem);
  margin-bottom: 3.5rem;
}
@media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img { width: 64px; margin-bottom: 1.25rem; }
.footer-brand p { max-width: 32ch; }
.footer-col h4 {
  font-size: var(--text-micro); letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.25rem; font-weight: 600;
}
.footer-col ul { display: grid; gap: 0.65rem; }
.footer-col a { transition: color 0.3s; }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid rgba(237, 234, 227, 0.08);
  padding-top: 2rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  font-size: var(--text-micro); color: var(--mist);
  letter-spacing: 0.06em;
}

/* ---------- Sticky mobile CTA + floating enquiry ---------- */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: none;
  grid-template-columns: 1fr 1fr;
  background: rgba(10, 11, 13, 0.92);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(201, 164, 105, 0.25);
  padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom));
  gap: 0.6rem;
}
.mobile-cta .btn { min-height: 50px; padding: 0.8rem 1rem; font-size: 0.8rem; }
@media (max-width: 760px) {
  .mobile-cta { display: grid; }
  body { padding-bottom: 72px; }
}

.float-enquire {
  position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1.25rem, 4vh, 2.5rem); z-index: 89;
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--grad-gold); color: var(--obsidian);
  font-weight: 700; font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.95rem 1.5rem; border-radius: 100px;
  box-shadow: 0 14px 40px -8px rgba(201, 164, 105, 0.55);
  transition: transform 0.35s var(--ease-lux), box-shadow 0.35s;
}
.float-enquire:hover { transform: translateY(-3px) scale(1.03); }
@media (max-width: 760px) { .float-enquire { display: none; } }

/* ---------- Timetable ---------- */
.timetable-wrap { overflow-x: auto; border: 1px solid rgba(237, 234, 227, 0.1); border-radius: var(--radius-lg); }
.timetable { width: 100%; min-width: 900px; border-collapse: collapse; font-size: 0.85rem; }
.timetable th {
  background: var(--charcoal); color: var(--gold);
  font-size: var(--text-micro); letter-spacing: 0.2em; text-transform: uppercase;
  padding: 1rem; text-align: left; font-weight: 600;
}
.timetable td { padding: 0.9rem 1rem; border-top: 1px solid rgba(237, 234, 227, 0.07); vertical-align: top; }
.timetable .class-name { color: var(--white); font-weight: 600; display: block; }
.timetable .class-time { color: var(--gold); font-size: 0.78rem; letter-spacing: 0.08em; }
.timetable .class-studio { color: var(--mist); font-size: 0.75rem; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 240px;
  gap: 1rem;
}
.gallery-grid .media-frame { aspect-ratio: auto; height: 100%; }
.gallery-grid .span-2r { grid-row: span 2; }
.gallery-grid .span-2c { grid-column: span 2; }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } .gallery-grid .span-2c { grid-column: span 2; } }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: 1fr; } .gallery-grid .span-2c, .gallery-grid .span-2r { grid-column: auto; grid-row: auto; } }

/* ---------- Blog cards ---------- */
.post-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.post-card .media-frame { border-radius: 0; border: none; aspect-ratio: 16 / 10; }
.post-body { padding: 1.75rem; display: flex; flex-direction: column; gap: 0.75rem; flex: 1; }
.post-meta { font-size: var(--text-micro); letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.post-body h3 { font-size: 1.25rem; margin: 0; }
.post-body .text-link { margin-top: auto; padding-top: 1rem; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-lux), transform 0.9s var(--ease-lux);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-stagger > * {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.8s var(--ease-lux), transform 0.8s var(--ease-lux);
}
.reveal-stagger.is-visible > * { opacity: 1; transform: none; }
.reveal-stagger.is-visible > :nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger.is-visible > :nth-child(3) { transition-delay: 0.2s; }
.reveal-stagger.is-visible > :nth-child(4) { transition-delay: 0.3s; }
.reveal-stagger.is-visible > :nth-child(5) { transition-delay: 0.4s; }
.reveal-stagger.is-visible > :nth-child(6) { transition-delay: 0.5s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; }
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; } .mb-2 { margin-bottom: 2rem; } .mb-3 { margin-bottom: 3rem; }

/* Map embed */
.map-frame {
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid rgba(237, 234, 227, 0.1);
  filter: grayscale(0.9) contrast(1.05);
  transition: filter 0.5s;
}
.map-frame:hover { filter: grayscale(0.2); }
.map-frame iframe { width: 100%; height: 420px; border: 0; display: block; }

/* Hours table */
.hours-list { display: grid; gap: 0.6rem; }
.hours-list li {
  display: flex; justify-content: space-between; gap: 2rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(237, 234, 227, 0.08);
  font-size: 0.95rem;
}
.hours-list .day { color: var(--stone); }
.hours-list .time { color: var(--white); font-weight: 500; }
.hours-list .badge-247 { color: var(--gold); font-weight: 700; }
