/* ---------- Tokens ---------- */
:root {
  --navy: #0b1220;
  --navy-2: #101a30;
  --red: #e8402a;
  --red-dark: #c92f1c;
  --green: #2fae5c;
  --white: #ffffff;
  --ink: #10141f;
  --ink-soft: #4a5064;
  --line: #e6e8ee;
  --bg-soft: #f5f6f9;

  --font-head: 'Oswald', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius: 14px;
  --shadow: 0 12px 30px -12px rgba(11, 18, 32, 0.25);
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; width: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.12;
  margin: 0 0 0.5em;
}
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--red);
  color: var(--white);
  padding: 10px 16px;
  z-index: 1000;
}
.skip-link:focus { left: 12px; top: 12px; }

.eyebrow {
  font-family: var(--font-head);
  color: var(--red);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 0.6em;
  font-weight: 600;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-outline:hover { border-color: var(--red); color: var(--red); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn-ghost:hover { border-color: var(--white); }
.btn-lg { padding: 16px 32px; font-size: 0.95rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(11, 18, 32, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex;
  flex-direction: column;
  line-height: 1;
  color: var(--white);
}
.brand-mark {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.brand-sub {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-top: 3px;
}
.main-nav {
  display: flex;
  gap: 30px;
}
.main-nav a {
  color: rgba(255,255,255,0.85);
  font-family: var(--font-head);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  transition: color 0.15s ease;
}
.main-nav a:hover { color: var(--white); }
.header-cta { display: flex; align-items: center; gap: 20px; }
.header-phone {
  font-family: var(--font-head);
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  color: var(--white);
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.15s ease;
}
.header-phone:hover { color: var(--red); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,18,32,0.55) 0%, rgba(11,18,32,0.55) 40%, rgba(11,18,32,0.94) 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding-top: 140px;
  padding-bottom: 80px;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  max-width: 15ch;
  margin-bottom: 0.35em;
}
.hero-lede {
  max-width: 62ch;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
}
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 40px;
  margin: 28px 0 32px;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.18);
  border-bottom: 1px solid rgba(255,255,255,0.18);
}
.fact { display: flex; flex-direction: column; gap: 4px; }
.fact-label {
  font-family: var(--font-head);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}
.fact-value { font-weight: 500; }
.fact-value a { border-bottom: 1px solid rgba(255,255,255,0.35); transition: border-color 0.15s ease; }
.fact-value a:hover { border-color: var(--white); }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Service strip ---------- */
.service-strip {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  padding: 16px 0;
  font-size: 0.85rem;
  overflow-x: auto;
}
.service-strip strong { color: var(--white); }
.service-strip p { margin: 0; white-space: nowrap; }

/* ---------- Section shared ---------- */
section { padding: 96px 0; }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }

/* ---------- Programs ---------- */
.programs { background: var(--bg-soft); }
.program-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.program-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.program-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.program-icon { font-size: 1.8rem; margin-bottom: 14px; }
.program-card h3 { font-size: 1.1rem; margin-bottom: 0.4em; }
.program-card p { color: var(--ink-soft); margin: 0; font-size: 0.95rem; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-media img { border-radius: var(--radius); box-shadow: var(--shadow); }
.about-content h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.about-content p { color: var(--ink-soft); }
.checklist { margin: 20px 0 28px; display: flex; flex-direction: column; gap: 12px; }
.checklist li {
  position: relative;
  padding-left: 30px;
  color: var(--ink);
  font-weight: 500;
}
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--white);
  background: var(--green);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Pricing ---------- */
.pricing { background: var(--navy); color: var(--white); }
.pricing .eyebrow { color: var(--red); }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.price-card {
  position: relative;
  background: var(--navy-2);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}
.price-card h3 {
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  text-transform: none;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0;
}
.price-card .price {
  font-family: var(--font-head);
  font-size: 2.4rem;
  color: var(--white);
  margin: 8px 0 6px;
}
.price-card .price span {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.55);
  font-family: var(--font-body);
  text-transform: none;
  letter-spacing: 0;
}
.price-desc { color: rgba(255,255,255,0.6); font-size: 0.9rem; flex-grow: 1; }
.price-card .btn { margin-top: 8px; align-self: flex-start; }
.price-card .btn-outline {
  color: var(--white);
  border-color: rgba(255,255,255,0.35);
}
.price-card .btn-outline:hover {
  border-color: var(--white);
  color: var(--white);
  background: rgba(255,255,255,0.08);
}
.price-card.featured {
  background: linear-gradient(160deg, var(--red) 0%, var(--red-dark) 100%);
  border-color: transparent;
}
.price-card.featured .price,
.price-card.featured h3 { color: var(--white); }
.price-card.featured .price span,
.price-card.featured .price-desc { color: rgba(255,255,255,0.85); }
.price-card.featured .btn-primary { background: var(--white); color: var(--red-dark); }
.price-card.featured .btn-primary:hover { background: rgba(255,255,255,0.9); }
.price-badge {
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
}

/* ---------- Membership ---------- */
.membership { background: var(--bg-soft); }
.member-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.member-card {
  position: relative;
  background: var(--white);
  border: 2px solid var(--red);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow);
}
.member-badge {
  position: absolute;
  top: -13px;
  left: 32px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
}
.member-card h3 { font-size: 1.05rem; margin-bottom: 0.2em; }
.member-price {
  font-family: var(--font-head);
  font-size: 3rem;
  line-height: 1;
  margin: 0 0 24px;
}
.member-price span {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink-soft);
  text-transform: none;
  letter-spacing: 0;
}
.member-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.member-list li {
  position: relative;
  padding-left: 28px;
  color: var(--ink);
  font-size: 0.95rem;
}
.member-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-size: 0.68rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.member-note { color: var(--ink-soft); font-size: 0.88rem; }
.member-math {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 36px 32px;
}
.member-math h3 { font-size: 1.05rem; margin-bottom: 12px; }
.member-window {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.72);
  padding: 12px 14px;
  margin-bottom: 20px;
  border-left: 3px solid var(--red);
  background: rgba(255,255,255,0.04);
  border-radius: 0 6px 6px 0;
}
.member-window strong { color: var(--white); }
.member-math .member-note { color: rgba(255,255,255,0.6); margin-top: 16px; margin-bottom: 0; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.member-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.member-table th:not(:first-child),
.member-table td:not(:first-child) { text-align: right; padding-left: 12px; }
.member-table th {
  text-align: left;
  font-family: var(--font-head);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.18);
  font-weight: 600;
}
.member-table td {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.85);
}
.member-table tr td:last-child { color: var(--white); font-weight: 600; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.gallery-grid img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: var(--radius);
  transition: transform 0.3s ease;
}
.gallery-grid img:hover { transform: scale(1.02); }

/* ---------- Visit ---------- */
.visit { background: var(--bg-soft); }
.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: stretch;
}
.visit-content { display: flex; flex-direction: column; justify-content: center; }
.visit-content h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.visit-hours { color: var(--ink-soft); font-weight: 500; font-size: 1.05rem; }
.visit-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; }
.visit-map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 340px;
}
.visit-map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; }

/* ---------- Review band ---------- */
.review-band {
  background: var(--white);
  border-top: 1px solid var(--line);
  padding: 64px 0;
}
.review-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.review-inner h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 0.4em; }
.review-copy { color: var(--ink-soft); max-width: 52ch; margin: 0; }
.review-inner .btn { flex-shrink: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  padding: 72px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand { color: var(--white); }
.footer-brand .brand-mark { font-size: 1.3rem; }
.footer-brand p { margin-top: 12px; color: rgba(255,255,255,0.55); }
.footer-col h4 {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--red);
  margin-bottom: 1em;
}
.footer-col p { margin-bottom: 0.7em; font-size: 0.92rem; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  padding: 22px 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}

/* ---------- Mobile booking bar ---------- */
.nav-book { display: none; }
.mobile-book-bar { display: none; }

/* ---------- Scrolled state ---------- */
.site-header.is-scrolled { box-shadow: 0 6px 20px rgba(0,0,0,0.25); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .program-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .visit-grid { grid-template-columns: 1fr; }
  .member-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  /* backdrop-filter creates a containing block that traps the fixed nav panel */
  .site-header { backdrop-filter: none; background: var(--navy); }
  .main-nav {
    position: fixed;
    inset: 76px 0 0 0;
    height: calc(100vh - 76px);
    background: var(--navy);
    z-index: 400;
    flex-direction: column;
    padding: 32px 24px;
    gap: 4px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav a {
    padding: 14px 4px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 1rem;
  }
  .nav-toggle { display: flex; }
  .header-cta .btn-primary { display: none; }
  .nav-book {
    display: inline-flex;
    margin-top: 24px;
    align-self: flex-start;
    border-bottom: none;
  }
  .mobile-book-bar {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 450;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(11, 18, 32, 0.96);
    border-top: 1px solid rgba(255,255,255,0.12);
  }
  .member-math { padding: 28px 22px; }
  .member-table { font-size: 0.82rem; }
  .member-table th { font-size: 0.62rem; letter-spacing: 0.05em; }
  .member-table th:not(:first-child),
  .member-table td:not(:first-child) { padding-left: 8px; }
  .mobile-book-bar { display: flex; gap: 10px; }
  .mobile-book-bar .btn-call {
    flex: 0 0 30%;
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.45);
  }
  .mobile-book-bar .btn-primary { flex: 1; }
  .site-footer { padding-bottom: 88px; }
  .header-phone { display: none; }
  .program-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid img { height: 240px; }
  .footer-grid { grid-template-columns: 1fr; }
  .review-inner { flex-direction: column; align-items: flex-start; gap: 24px; }
  .review-inner .btn { width: 100%; }
  section { padding: 64px 0; }
  .hero { min-height: unset; padding-top: 40px; }
  .hero-inner { padding-top: 100px; padding-bottom: 56px; }
  .service-strip p { white-space: normal; }
}
