/* ==========================================================================
   Foundations Pilates and Wellness Studio — Shared Design System
   Warm boutique-wellness aesthetic. Fraunces (display) + Figtree (body).
   No opacity:0 anywhere below — JS (main.js) sets initial animation states.
   ========================================================================== */

/* ---------- Self-hosted fonts (Fraunces + Figtree) ---------- */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/fraunces-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/fraunces-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/fraunces-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/fraunces-latin-400-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/fraunces-latin-600-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/figtree-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/figtree-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/figtree-latin-600-normal.woff2") format("woff2");
}

/* ---------- Design tokens ---------- */
:root {
  /* Palette — retuned to match the studio's real logo lockup:
     deep teal-green rings, gold / terracotta / pink dots. */
  --color-cream: #F6F1E7;
  --color-ink: #26221C;
  --color-eucalyptus: #0A3335;        /* logo ring teal-green */
  --color-eucalyptus-dark: #082A2C;   /* deeper teal for hovers/fills */
  --color-sage: #5F7A76;              /* muted teal-gray, replaces old olive sage */
  --color-terracotta: #EB7B53;        /* logo terracotta dot — fills, buttons, dark-bg text */
  --color-terracotta-dark: #DF744E;   /* button hover fill */
  --color-terracotta-deep: #984F35;   /* AA-safe terracotta for text/icons on light backgrounds */
  --color-sand: #E9DFCC;
  --color-white: #FFFDF9;
  --color-gold: #CBA75B;              /* logo gold dot — small accents only */
  --color-pink: #E0BFD2;              /* logo pink dot — small accents only */

  /* Semantic */
  --bg-base: var(--color-cream);
  --bg-card: var(--color-sand);
  --text-body: var(--color-ink);
  --text-muted: #5b5648;
  --brand-primary: var(--color-eucalyptus);
  --brand-accent: var(--color-terracotta-deep);
  --border-hairline: rgba(38, 34, 28, 0.12);

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --fs-hero: clamp(2.6rem, 6vw, 4.5rem);
  --fs-h1: clamp(2.2rem, 4.6vw, 3.4rem);
  --fs-h2: clamp(1.7rem, 3.2vw, 2.4rem);
  --fs-h3: clamp(1.25rem, 2vw, 1.6rem);
  --fs-lead: clamp(1.1rem, 1.6vw, 1.3rem);
  --fs-body: 1.05rem;
  --fs-small: 0.9rem;

  /* Spacing / rhythm */
  --space-section: clamp(4rem, 9vw, 7.5rem);
  --space-section-sm: clamp(2.5rem, 5vw, 4rem);
  --container-width: 1240px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  /* Motion (used by JS + CSS transitions) */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 180ms;
  --dur-med: 420ms;

  /* Header height (JS adjusts shrink state via class) */
  --header-h: 92px;
  --header-h-shrunk: 68px;
}

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

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

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

body {
  margin: 0;
  background: var(--bg-base);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
svg { display: block; }

a { color: inherit; text-decoration: none; }

ul, ol { margin: 0; padding: 0; list-style: none; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

input, textarea, select { font: inherit; }

h1, h2, h3, h4, p, figure { margin: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 560;
  font-optical-sizing: auto;
  color: var(--color-ink);
  line-height: 1.12;
  letter-spacing: -0.01em;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p { color: var(--text-body); }

.lead {
  font-size: var(--fs-lead);
  color: var(--text-muted);
  line-height: 1.6;
}

/* Italic serif accent word */
em.accent,
.accent {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  color: var(--brand-accent);
}

.accent-eucalyptus { color: var(--brand-primary); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-eucalyptus);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--brand-accent);
  display: inline-block;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.section {
  padding-block: var(--space-section);
}

.section-sm { padding-block: var(--space-section-sm); }

.section-header {
  max-width: 640px;
  margin-bottom: clamp(2rem, 5vw, 3.25rem);
}

.section-header.center {
  margin-inline: auto;
  text-align: center;
}

.section-header .eyebrow { margin-bottom: 0.9rem; }
.section-header h2 { margin-bottom: 1rem; }

.text-center { text-align: center; }

.bg-sand { background: var(--color-sand); }
.bg-eucalyptus { background: var(--color-eucalyptus); color: var(--color-cream); }
.bg-eucalyptus h2,
.bg-eucalyptus h3 { color: var(--color-cream); }
.bg-white { background: var(--color-white); }

.grain {
  position: relative;
}
.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0 0.035 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -60px;
  background: var(--color-eucalyptus);
  color: var(--color-cream);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top var(--dur-fast) var(--ease-out);
}
.skip-link:focus {
  top: 1rem;
}

/* ---------- Focus states ---------- */
:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--color-terracotta);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.9rem 1.7rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out),
              background-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
  will-change: transform;
}

.btn-primary {
  background: var(--color-terracotta);
  color: var(--color-ink);
  border: 1px solid var(--color-terracotta);
  box-shadow: 0 8px 20px -10px rgba(235, 123, 83, 0.65);
}
.btn-primary:hover {
  background: var(--color-terracotta-dark);
  border-color: var(--color-terracotta-dark);
  color: var(--color-ink);
}

.btn-secondary {
  background: transparent;
  color: var(--color-eucalyptus);
  border: 1.5px solid var(--color-eucalyptus);
}
.btn-secondary:hover {
  background: var(--color-eucalyptus);
  color: var(--color-cream);
}

.btn-ghost {
  background: transparent;
  color: currentColor;
  border: 1.5px solid rgba(246, 241, 231, 0.5);
}
.btn-ghost:hover {
  background: rgba(246, 241, 231, 0.12);
}

.btn-sm { padding: 0.65rem 1.25rem; font-size: 0.88rem; }

/* Fallback press/hover states for when JS/Motion is unavailable */
.btn:active { transform: scale(0.98); }
@media (hover: hover) {
  .btn:hover { transform: scale(1.02); }
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  width: 100%;
  background: rgba(246, 241, 231, 0.86);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-med) var(--ease-out),
              box-shadow var(--dur-med) var(--ease-out),
              padding-block var(--dur-med) var(--ease-out);
  /* Promote the bar to its own GPU compositor layer so the backdrop blur
     doesn't re-rasterize the video hero every scroll frame (kills flicker
     on Chrome/Safari). transform on the sticky element itself is safe. */
  transform: translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  isolation: isolate;
}

.site-header.is-scrolled {
  border-color: var(--border-hairline);
  box-shadow: 0 10px 30px -22px rgba(38, 34, 28, 0.35);
}

.nav-inner {
  max-width: var(--container-width);
  margin-inline: auto;
  padding: 1.35rem clamp(1.25rem, 4vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  transition: padding var(--dur-med) var(--ease-out);
}

.site-header.is-scrolled .nav-inner {
  padding-block: 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--color-ink);
  line-height: 1;
  flex: none;
  min-width: 0;
}

.brand .brand-mark {
  font-style: italic;
  color: var(--color-terracotta);
}

/* Header logo — real lockup image, constrained by height so it can shrink
   on narrow viewports instead of forcing horizontal overflow (~7:1 ratio). */
.brand img {
  height: 30px;
  width: auto;
  display: block;
}

@media (min-width: 480px) {
  .brand img { height: 34px; }
}

@media (min-width: 768px) {
  .brand img { height: 40px; }
}

@media (min-width: 992px) {
  .brand img { height: 46px; }
}

.brand small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* Primary nav (desktop). The wrapping <nav> is hidden (not just the list)
   below 992px so it doesn't consume flex gap space in .nav-inner and push
   the header into horizontal overflow on narrow viewports. */
.nav-inner > nav {
  display: none;
}

.primary-nav {
  display: none;
}

@media (min-width: 992px) {
  .nav-inner > nav {
    display: block;
  }

  .primary-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }
}

.primary-nav > li {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-ink);
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}

.nav-link:hover,
.nav-link:focus-visible {
  background: var(--color-sand);
  color: var(--color-eucalyptus-dark);
}

.nav-link .chev {
  width: 10px;
  height: 10px;
  transition: transform var(--dur-fast) var(--ease-out);
}

.has-dropdown[aria-expanded="true"] .chev {
  transform: rotate(180deg);
}

/* Dropdown: no dead hover gap — the panel is flush against the trigger via
   a padded wrapper, not a margin-top gap, and stays open while pointer is
   anywhere inside .nav-dropdown-wrap. */
.nav-dropdown-wrap {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding-top: 0.6rem;
  width: max-content;
}

.nav-dropdown {
  min-width: 240px;
  background: var(--color-white);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  box-shadow: 0 24px 48px -24px rgba(38, 34, 28, 0.35);
  padding: 0.6rem;
  display: grid;
  gap: 0.15rem;
}

.nav-dropdown[hidden] { display: none; }

.nav-dropdown a {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--color-ink);
  transition: background-color var(--dur-fast) var(--ease-out);
}

.nav-dropdown a span.sub {
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.nav-dropdown a:hover,
.nav-dropdown a:focus-visible {
  background: var(--color-sand);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Header "Book a Class" button is redundant with the mobile bottom bar
   below 992px and was overflowing narrow viewports — hide it there. */
.nav-actions > .btn {
  display: none;
}

@media (min-width: 992px) {
  .nav-actions > .btn {
    display: inline-flex;
  }
}

.nav-call {
  display: none;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--color-eucalyptus-dark);
}

@media (min-width: 1200px) {
  .nav-call { display: inline-flex; }
}

/* Mobile menu toggle */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-hairline);
}

@media (min-width: 992px) {
  .nav-toggle { display: none; }
}

.nav-toggle .bars {
  width: 20px;
  height: 14px;
  position: relative;
}
.nav-toggle .bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-ink);
  border-radius: 2px;
  transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast) var(--ease-out), top var(--dur-fast) var(--ease-out);
}
.nav-toggle .bars span:nth-child(1) { top: 0; }
.nav-toggle .bars span:nth-child(2) { top: 6px; }
.nav-toggle .bars span:nth-child(3) { top: 12px; }

.nav-toggle[aria-expanded="true"] .bars span:nth-child(1) {
  top: 6px;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .bars span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .bars span:nth-child(3) {
  top: 6px;
  transform: rotate(-45deg);
}

/* Mobile nav panel */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: var(--color-cream);
  padding: calc(var(--header-h) + 1rem) 1.5rem 2rem;
  overflow-y: auto;
  display: none;
}

.mobile-nav.is-open { display: block; }

@media (min-width: 992px) {
  .mobile-nav { display: none !important; }
}

.mobile-nav ul { display: grid; gap: 0.25rem; }

.mobile-nav > .container,
.mobile-nav .mobile-nav-list { display: grid; gap: 0.25rem; }

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0.25rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  border-bottom: 1px solid var(--border-hairline);
}

.mobile-nav-sub {
  display: grid;
  gap: 0.1rem;
  padding: 0.25rem 0 0.75rem 1rem;
}

.mobile-nav-sub[hidden] { display: none; }

.mobile-nav-sub a {
  padding: 0.6rem 0.25rem;
  font-weight: 600;
  color: var(--text-muted);
}

.mobile-nav-cta {
  margin-top: 2rem;
  display: grid;
  gap: 0.85rem;
}

/* ==========================================================================
   Mobile bottom action bar
   ========================================================================== */
.mobile-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 180;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--color-white);
  border-top: 1px solid var(--border-hairline);
  box-shadow: 0 -12px 30px -20px rgba(38, 34, 28, 0.4);
  padding-bottom: env(safe-area-inset-bottom, 0);
}

@media (min-width: 992px) {
  .mobile-bottom-bar { display: none; }
}

.mobile-bottom-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
}

.mobile-bottom-bar .bar-book {
  background: var(--color-terracotta);
  color: var(--color-ink);
}

.mobile-bottom-bar .bar-call {
  background: var(--color-eucalyptus);
  color: var(--color-cream);
}

body.has-bottom-bar {
  padding-bottom: 64px;
}

@media (min-width: 992px) {
  body.has-bottom-bar { padding-bottom: 0; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  padding-block: clamp(2.5rem, 6vw, 4.5rem) var(--space-section);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: center;
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.hero-copy h1 {
  font-size: var(--fs-hero);
  margin-bottom: 1.35rem;
}

.hero-copy .lead {
  max-width: 46ch;
  margin-bottom: 2.25rem;
}

.hero-media {
  position: relative;
}

.hero-media .arch-frame {
  position: relative;
  border-radius: 260px 260px 24px 24px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: 0 40px 70px -30px rgba(38, 34, 28, 0.45);
}

.hero-media .arch-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-badge {
  position: absolute;
  left: -1rem;
  bottom: 1.5rem;
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  box-shadow: 0 24px 40px -20px rgba(38, 34, 28, 0.4);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 240px;
}

@media (max-width: 560px) {
  .hero-badge {
    left: 50%;
    transform: translateX(-50%);
    bottom: -1.25rem;
  }
}

.hero-badge .badge-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2rem;
  color: var(--color-terracotta-deep);
  line-height: 1;
}

.hero-badge .badge-text {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.3;
}

/* ==========================================================================
   Trust bar
   ========================================================================== */
.trust-bar {
  background: var(--color-eucalyptus);
  color: var(--color-cream);
  padding-block: 1.25rem;
}

.trust-bar ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 2.5rem;
  text-align: center;
}

.trust-bar li {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.trust-bar li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-terracotta);
  flex: none;
}
.trust-bar li:first-child::before { display: none; }

/* ==========================================================================
   Cards
   ========================================================================== */
.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--border-hairline);
  transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -34px rgba(38, 34, 28, 0.4);
}

.card-sand { background: var(--color-sand); border-color: transparent; }

.grid {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
}

.grid-2 { grid-template-columns: repeat(1, 1fr); }
.grid-3 { grid-template-columns: repeat(1, 1fr); }
.grid-4 { grid-template-columns: repeat(1, 1fr); }
.grid-5 { grid-template-columns: repeat(1, 1fr); }

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1200px) {
  .grid-5 { grid-template-columns: repeat(5, 1fr); }
}

/* Intro offer cards */
.offer-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.offer-card .price {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 560;
  color: var(--color-terracotta-deep);
  line-height: 1;
}

.offer-card .price sup {
  font-size: 1rem;
  font-weight: 600;
  margin-right: 0.15rem;
  top: -0.9em;
}

.offer-card .price-sub {
  display: block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.offer-card ul {
  display: grid;
  gap: 0.5rem;
  margin-block: 0.25rem;
}

.offer-card li {
  font-size: 0.92rem;
  color: var(--text-muted);
  display: flex;
  gap: 0.5rem;
}

.offer-card li::before {
  content: "✓";
  color: var(--color-eucalyptus);
  font-weight: 700;
  flex: none;
}

/* Class category cards */
.category-card {
  position: relative;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  isolation: isolate;
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease-out);
}

.category-card:hover img { transform: scale(1.06); }

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(38, 34, 28, 0) 35%, rgba(38, 34, 28, 0.82) 100%);
  z-index: 1;
}

.category-card .cat-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 1.5rem;
  color: var(--color-cream);
}

.category-card h3 {
  color: var(--color-cream);
  margin-bottom: 0.35rem;
}

.category-card p {
  color: rgba(246, 241, 231, 0.85);
  font-size: 0.88rem;
  margin-bottom: 0.85rem;
}

.category-card .cat-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--color-cream);
  border-bottom: 1.5px solid var(--color-terracotta);
  padding-bottom: 0.15rem;
}

/* Differentiator / why-us list */
.diff-list {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 700px) {
  .diff-list { grid-template-columns: repeat(2, 1fr); }
}

.diff-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.diff-item .diff-icon {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--color-sand);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-eucalyptus);
}

/* Stat counters */
.stats-row {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(2, 1fr);
  text-align: center;
}

@media (min-width: 700px) {
  .stats-row { grid-template-columns: repeat(4, 1fr); }
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.stat .stat-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  color: var(--color-terracotta-deep);
  line-height: 1;
  display: inline-block;
  position: relative;
  padding-bottom: 0.4rem;
}

/* Small underline accent, cycling through the logo's three dot colors */
.stat .stat-num::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 34px;
  height: 3px;
  border-radius: 2px;
  background: var(--color-terracotta);
}

.stat:nth-child(3n+1) .stat-num::after { background: var(--color-gold); }
.stat:nth-child(3n+2) .stat-num::after { background: var(--color-terracotta); }
.stat:nth-child(3n+3) .stat-num::after { background: var(--color-pink); }

.stat .stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Instructor / team cards */
.team-card {
  text-align: left;
}

.team-card .team-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  margin-bottom: 1rem;
}

.team-card .team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card .team-cert {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

/* ==========================================================================
   Blob / arch organic image shapes
   ========================================================================== */
.shape-arch {
  border-radius: 200px 200px 24px 24px;
  overflow: hidden;
}

.shape-blob {
  border-radius: 62% 38% 55% 45% / 48% 60% 40% 52%;
  overflow: hidden;
}

.shape-round {
  border-radius: 24px;
  overflow: hidden;
}

/* Every shape frame is a media frame: the image must FILL and CROP to the
   frame, never stretch. Without this, an image inherits its width/height
   attributes and distorts (this was breaking the Mat Pilates hero). */
.shape-arch,
.shape-blob,
.shape-round {
  display: block;
  position: relative;
}

.shape-arch > img,
.shape-blob > img,
.shape-round > img,
.shape-arch > picture > img,
.shape-blob > picture > img,
.shape-round > picture > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Fallback proportion for shape frames used as hero/section media so the
   frame always has a height even if no aspect-ratio is set locally. */
.hero-media > .shape-arch,
.hero-media > .shape-blob,
.hero-media > .shape-round,
.about-teaser > .shape-arch,
.about-teaser > .shape-round {
  aspect-ratio: 4 / 5;
}

/* ==========================================================================
   About teaser
   ========================================================================== */
.about-teaser {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: center;
}

@media (min-width: 960px) {
  .about-teaser { grid-template-columns: 0.85fr 1.15fr; }
}

.about-teaser .shape-blob {
  aspect-ratio: 4 / 5;
}
.about-teaser img { width: 100%; height: 100%; object-fit: cover; }

.pull-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  color: var(--color-eucalyptus-dark);
  line-height: 1.4;
  margin-block: 1.5rem;
}

/* ==========================================================================
   Reviews
   ========================================================================== */
.reviews-section .reviews-embed {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: clamp(1rem, 3vw, 1.75rem);
  border: 1px solid var(--border-hairline);
}

/* ==========================================================================
   Marquee
   ========================================================================== */
.marquee {
  overflow: hidden;
  background: var(--color-sand);
  border-block: 1px solid var(--border-hairline);
  padding-block: 1.5rem;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 32s linear infinite;
}

.marquee[data-paused="true"] .marquee-track {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

.marquee ul {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding-right: 2.5rem;
  flex: none;
}

.marquee li {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  color: var(--color-eucalyptus);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.marquee li::after {
  content: "•";
  font-style: normal;
  color: var(--color-terracotta);
}

/* Cycle the separator dots through the logo's three accent colors */
.marquee li:nth-child(3n+2)::after { color: var(--color-gold); }
.marquee li:nth-child(3n+3)::after { color: var(--color-pink); }

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ==========================================================================
   Accordion (FAQ)
   ========================================================================== */
.accordion {
  display: grid;
  gap: 0.85rem;
}

.accordion-item {
  background: var(--color-white);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--color-ink);
}

.accordion-trigger .accordion-icon {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-sand);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--dur-med) var(--ease-out);
}

.accordion-trigger[aria-expanded="true"] .accordion-icon {
  transform: rotate(45deg);
  background: var(--color-terracotta);
  color: var(--color-ink);
}

.accordion-panel {
  height: 0;
  overflow: hidden;
}

.accordion-panel-inner {
  padding: 0 1.5rem 1.35rem;
  color: var(--text-muted);
  max-width: 65ch;
}

/* No-JS fallback: native <details>/<summary> pattern is handled in HTML;
   if used with button+panel markup instead, ensure content is visible when
   JS hasn't attached (panel starts at content height, JS collapses it). */
.no-js .accordion-panel {
  height: auto !important;
}

/* ==========================================================================
   Embed placeholder (MindBody / GHL form placeholders)
   ========================================================================== */
.embed-placeholder {
  border: 2px dashed var(--color-sage);
  background: var(--color-sand);
  border-radius: var(--radius-md);
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
}

.embed-placeholder .ep-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.embed-placeholder .ep-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-eucalyptus);
}

/* ==========================================================================
   Final CTA band
   ========================================================================== */
.final-cta {
  background: var(--color-eucalyptus);
  color: var(--color-cream);
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 6vw, 4rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.final-cta h2 { color: var(--color-cream); }

.final-cta .lead { color: rgba(246, 241, 231, 0.85); }

.final-cta .btn-row { justify-content: center; margin-top: 2rem; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--color-ink);
  color: rgba(246, 241, 231, 0.82);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(246, 241, 231, 0.14);
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
}

.footer-brand .brand {
  color: var(--color-cream);
  margin-bottom: 0.75rem;
}

/* Footer sits on a dark background; the logo's dark teal reads poorly
   there, so it's presented on a small cream rounded card instead of an
   inverted treatment. */
.footer-logo-card {
  display: inline-flex;
  background: var(--color-cream);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.1rem;
  margin-bottom: 0.9rem;
}

.footer-logo-card img {
  height: 32px;
  width: auto;
  display: block;
}

.footer-col h4 {
  color: var(--color-cream);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-family: var(--font-body);
}

.footer-col ul { display: grid; gap: 0.6rem; }

.footer-col a,
.footer-col p {
  color: rgba(246, 241, 231, 0.75);
  font-size: 0.92rem;
}

.footer-col a:hover { color: var(--color-terracotta); }

.footer-areas {
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(246, 241, 231, 0.65);
}

.footer-bottom {
  padding-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(246, 241, 231, 0.55);
}

.footer-legal-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(246, 241, 231, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-social a:hover {
  background: var(--color-terracotta);
  border-color: var(--color-terracotta);
  color: var(--color-ink);
}

/* ==========================================================================
   Utility: reveal targets (JS-controlled; must render fully visible
   with no JS / reduced motion, per brief — no opacity:0 in CSS)
   ========================================================================== */
[data-reveal],
[data-reveal-group] > * {
  /* Intentionally no opacity/transform here. main.js sets initial
     inline styles only when Motion is available and motion is allowed,
     then animates to final state. Without JS this content is fully visible. */
}

/* ==========================================================================
   Misc page furniture
   ========================================================================== */
.divider {
  height: 1px;
  background: var(--border-hairline);
  border: none;
  margin-block: 0;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--color-sand);
  color: var(--color-eucalyptus-dark);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
}

/* Intro-offer chip accents — each of the three cards echoes one of the
   logo's three dot colors with a small dot, text stays AA-safe throughout. */
.badge-pill--gold::before,
.badge-pill--terracotta::before,
.badge-pill--pink::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}
.badge-pill--gold::before { background: var(--color-gold); }
.badge-pill--terracotta::before { background: var(--color-terracotta); }
.badge-pill--pink::before { background: var(--color-pink); }

/* ==========================================================================
   Responsive checkpoints (mobile-first; explicit checks at 390 / 768 / 1280)
   ========================================================================== */
@media (max-width: 389px) {
  :root { --fs-hero: clamp(2.2rem, 8vw, 2.6rem); }
  .container { padding-inline: 1rem; }
  .hero-badge { max-width: 200px; }
}

@media (min-width: 768px) {
  .section { padding-block: var(--space-section); }
}

@media (min-width: 1280px) {
  .container { padding-inline: 2.5rem; }
}

/* ==========================================================================
   Reduced motion: neutralize decorative motion, keep layout/content intact
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .marquee-track { animation: none !important; }
}

/* ==========================================================================
   PAGE-SPECIFIC: about.html (prefix: about-)
   ========================================================================== */
.about-role {
  display: block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-accent);
  margin-top: 0.65rem;
  margin-bottom: 0.5rem;
}

.about-team-photo-empty {
  border: 2px dashed var(--color-sage);
  border-radius: var(--radius-lg);
  aspect-ratio: 1 / 1;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-sage);
  background: var(--color-sand);
}

.about-story-grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: center;
}

@media (min-width: 960px) {
  .about-story-grid { grid-template-columns: 0.9fr 1.1fr; }
}

.about-story-grid .shape-arch { aspect-ratio: 4 / 5; }
.about-story-grid img { width: 100%; height: 100%; object-fit: cover; }

.about-charity-note {
  background: var(--color-sand);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-top: 1.75rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* ==========================================================================
   PAGE-SPECIFIC: contact.html (prefix: contact-)
   ========================================================================== */
.contact-hero {
  padding-block: clamp(2.5rem, 6vw, 4rem) var(--space-section-sm);
}

.contact-hero-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

@media (min-width: 900px) {
  .contact-hero-grid { grid-template-columns: 1.1fr 0.9fr; }
}

.contact-hero-media { aspect-ratio: 4 / 5; }
.contact-hero-media img { width: 100%; height: 100%; object-fit: cover; }

.contact-grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
}

@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1.1fr 0.9fr; }
}

.contact-info-card {
  display: grid;
  gap: 1.5rem;
}

.contact-info-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-info-icon {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--color-sand);
  color: var(--color-eucalyptus);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-info-row h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.contact-info-row p { color: var(--text-muted); font-size: 0.95rem; }
.contact-info-row a:hover { color: var(--brand-accent); }

.contact-no-walkins {
  background: var(--color-eucalyptus);
  color: var(--color-cream);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.75rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-no-walkins svg { flex: none; margin-top: 0.15rem; }
.contact-no-walkins p { color: rgba(246, 241, 231, 0.9); font-size: 0.92rem; margin: 0; }
.contact-no-walkins strong { color: var(--color-cream); }

.contact-social-row {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.contact-social-row a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--border-hairline);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-eucalyptus);
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}

.contact-social-row a:hover {
  background: var(--color-terracotta);
  color: var(--color-ink);
  border-color: var(--color-terracotta);
}

.contact-areas p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-muted);
}

/* ==========================================================================
   PAGE-SPECIFIC: book.html (prefix: book-)
   ========================================================================== */
.book-pillnav {
  position: sticky;
  top: calc(var(--header-h-shrunk) + 12px);
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding-block: 0.5rem 2rem;
}

.book-pillnav a {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-pill);
  background: var(--color-white);
  border: 1.5px solid var(--border-hairline);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--color-eucalyptus-dark);
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}

.book-pillnav a:hover {
  background: var(--color-eucalyptus);
  border-color: var(--color-eucalyptus);
  color: var(--color-cream);
}

.book-section {
  scroll-margin-top: calc(var(--header-h-shrunk) + 70px);
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
}

.book-section + .book-section {
  border-top: 1px solid var(--border-hairline);
}

.book-section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.book-prereq {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: var(--color-sand);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.book-prereq svg { flex: none; color: var(--color-terracotta-deep); margin-top: 0.1rem; }

.book-fallback-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: var(--color-sand);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.5rem);
}

.book-fallback-card h3 { margin-bottom: 0.4rem; }
.book-fallback-card p { color: var(--text-muted); }

.book-steps {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.75rem;
}

@media (min-width: 700px) {
  .book-steps { grid-template-columns: repeat(3, 1fr); }
}

.book-step {
  display: flex;
  gap: 0.9rem;
}

.book-step-num {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-eucalyptus);
  color: var(--color-cream);
  font-family: var(--font-display);
  font-style: italic;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.book-step h3 { font-size: 1rem; margin-bottom: 0.25rem; }
.book-step p { font-size: 0.9rem; color: var(--text-muted); }

/* ==========================================================================
   PAGE-SPECIFIC: privacy.html / terms.html (prefix: legal-)
   ========================================================================== */
.legal-hero {
  padding-block: clamp(2.5rem, 5vw, 3.5rem) var(--space-section-sm);
}

.legal-effective {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-sand);
  border-radius: var(--radius-pill);
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-eucalyptus-dark);
  margin-bottom: 1.25rem;
}

.legal-content {
  max-width: 72ch;
}

.legal-content h2 {
  font-size: 1.35rem;
  margin-top: 2.75rem;
  margin-bottom: 0.85rem;
}

.legal-content h2:first-child { margin-top: 0; }

.legal-content p,
.legal-content li {
  color: var(--text-muted);
  margin-bottom: 0.9rem;
  font-size: 0.98rem;
}

.legal-content ul,
.legal-content ol {
  padding-left: 1.35rem;
  margin-bottom: 1rem;
}

.legal-content ul li { list-style: disc; }
.legal-content ol li { list-style: decimal; }

.legal-content a { color: var(--color-eucalyptus-dark); text-decoration: underline; text-underline-offset: 2px; }
.legal-content a:hover { color: var(--brand-accent); }

.legal-callout {
  background: var(--color-sand);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-block: 1.25rem;
}

.legal-callout p { margin-bottom: 0; color: var(--text-body); font-weight: 500; }

.legal-url {
  font-family: var(--font-body);
  font-weight: 600;
  word-break: break-word;
}

/* ==========================================================================
   PAGE-SPECIFIC: 404.html (prefix: notfound-)
   ========================================================================== */
.notfound-hero {
  padding-block: clamp(4rem, 10vw, 7rem);
  text-align: center;
}

.notfound-num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(5rem, 16vw, 9rem);
  color: var(--color-terracotta-deep);
  line-height: 1;
  margin-bottom: 1rem;
}

.notfound-hero .lead {
  max-width: 46ch;
  margin-inline: auto;
  margin-bottom: 2.25rem;
}

.notfound-hero .btn-row { justify-content: center; }

/* ==========================================================================
   PAGE-SPECIFIC — Class & pricing pages
   (reformer-pilates, mat-pilates, yoga, wellness, private-pilates, pricing)
   Small layout helpers only, reused across this page family so each class
   page can vary section order / image shape / graphic treatment without a
   new stylesheet. Classes prefixed for the page family they belong to.
   ========================================================================== */

/* Reversed hero (image on the left) — used by page-mat for variation */
@media (min-width: 992px) {
  .page-hero-reverse .hero-grid { grid-template-columns: 0.95fr 1.05fr; }
  .page-hero-reverse .hero-media { order: -1; }
}

/* Callout box — prerequisite notes, private-training notes, etc. */
.page-callout {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  background: var(--color-sand);
  border-left: 4px solid var(--color-terracotta);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.75rem;
}
.page-callout .callout-icon {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-terracotta-deep);
}
.page-callout h3 { margin-bottom: 0.35rem; }
.page-callout p { color: var(--text-muted); margin: 0; }

/* Icon-based class cards (no photo) — used by page-wellness */
.page-icon-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.page-icon-card .icon-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-sand);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-eucalyptus);
}

/* Package pricing tables — page-private and page-pricing */
.page-pkg-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-hairline);
  background: var(--color-white);
}
.page-pkg-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}
.page-pkg-table caption {
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 560;
  padding: 1.15rem 1.25rem 0.7rem;
  color: var(--color-ink);
}
.page-pkg-table th,
.page-pkg-table td {
  padding: 0.85rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border-hairline);
  font-size: 0.94rem;
}
.page-pkg-table thead th {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--color-sand);
}
.page-pkg-table tbody tr:last-child td { border-bottom: none; }
.page-pkg-table td.pkg-price {
  font-family: var(--font-display);
  font-weight: 560;
  color: var(--color-terracotta-deep);
}

/* Pricing page: terms / no-membership cards */
.page-pricing-terms {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 700px) {
  .page-pricing-terms { grid-template-columns: repeat(3, 1fr); }
}
.page-pricing-terms .term-card {
  background: var(--color-white);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 1.6rem;
}

/* Payment method pills */
.page-payment-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.page-payment-methods li {
  background: var(--color-sand);
  border-radius: var(--radius-pill);
  padding: 0.55rem 1.1rem;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--color-eucalyptus-dark);
}

/* Alternating image/copy "flip" cards — page-reformer class list */
.page-flip-card {
  display: grid;
  gap: 1.75rem;
  align-items: center;
}
@media (min-width: 800px) {
  .page-flip-card { grid-template-columns: 0.85fr 1.15fr; }
  .page-flip-card.flip-reverse { grid-template-columns: 1.15fr 0.85fr; }
  .page-flip-card.flip-reverse .flip-media { order: 2; }
}
.page-flip-card .flip-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  /* 3:2 matches the native proportion of the studio photography, so these
     frames crop almost nothing. Was 4/3, which chopped heads off. */
  aspect-ratio: 3 / 2;
}
.page-flip-card .flip-media img { width: 100%; height: 100%; object-fit: cover; }
.page-flip-card .flip-media.shape-round { border-radius: var(--radius-lg); }

/* Booking embed sections get a little extra height for the calendar widget */
.page-booking-embed .embed-placeholder { min-height: 340px; }

/* ==========================================================================
   Hero — video background variant (homepage)
   ========================================================================== */
.hero--media {
  padding: 0;
  min-height: clamp(560px, 86vh, 780px);
  display: flex;
  align-items: flex-end;
  position: relative;
  background: var(--color-eucalyptus);
}
.hero--media .hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  background: var(--color-eucalyptus) url('../images/hero-poster.webp') center/cover no-repeat;
}
.hero--media .hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero--media .hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8,42,44,0.55) 0%, rgba(8,42,44,0.12) 34%, rgba(8,42,44,0.38) 62%, rgba(8,42,44,0.90) 100%),
    linear-gradient(90deg, rgba(8,42,44,0.62) 0%, rgba(8,42,44,0.08) 58%);
}
.hero--media .hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-block: clamp(2.5rem, 7vw, 4.75rem);
}
.hero--media .hero-copy { max-width: 46rem; color: var(--color-cream); }
.hero--media .hero-copy .eyebrow { color: var(--color-gold); }
.hero--media .hero-copy h1 { color: var(--color-cream); }
.hero--media .hero-copy h1 .accent { color: var(--color-terracotta); }
.hero--media .hero-copy .lead { color: rgba(246,241,231,0.92); max-width: 44ch; }
.hero--media .btn-on-dark {
  background: transparent;
  color: var(--color-cream);
  border-color: rgba(246,241,231,0.6);
}
.hero--media .btn-on-dark:hover {
  background: rgba(246,241,231,0.12);
  border-color: var(--color-cream);
}
.hero--media .hero-badge { position: static; margin-top: 2rem; left: auto; transform: none; }
@media (min-width: 992px) {
  .hero--media .hero-badge {
    position: absolute;
    right: clamp(1rem, 4vw, 3rem);
    bottom: clamp(1.5rem, 4vw, 3rem);
    left: auto;
    margin: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero--media .hero-video { display: none; }
}

/* Studio video (About page) */
.studio-video {
  max-width: 960px;
  margin-inline: auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 40px 70px -30px rgba(38, 34, 28, 0.45);
  background: #000;
}
.studio-video video { width: 100%; height: auto; display: block; aspect-ratio: 16 / 9; }

/* ==========================================================================
   Atmosphere / depth layer — brand concentric-ring motif as soft background
   (decorative only: behind content, non-interactive, reduced-motion safe)
   ========================================================================== */
.atmos { position: relative; isolation: isolate; overflow: hidden; }
.atmos > *:not(.atmos-deco) { position: relative; z-index: 1; }
.atmos-deco { position: absolute; pointer-events: none; z-index: 0; }
.atmos-rings {
  width: min(48vw, 640px); aspect-ratio: 1; right: -8%; top: -14%; opacity: 0.55;
  background:
    radial-gradient(circle, transparent 29%, rgba(203,167,91,0.20) 30%, rgba(203,167,91,0.20) 33%, transparent 34%),
    radial-gradient(circle, transparent 41%, rgba(235,123,83,0.16) 42%, rgba(235,123,83,0.16) 45%, transparent 46%),
    radial-gradient(circle, transparent 53%, rgba(224,191,210,0.16) 54%, rgba(224,191,210,0.16) 57%, transparent 58%);
}
.atmos-glow {
  width: min(64vw, 760px); aspect-ratio: 1; left: -16%; bottom: -34%; opacity: 0.5;
  background: radial-gradient(circle, rgba(95,122,118,0.20), transparent 62%);
  filter: blur(18px);
}
.final-cta.atmos .atmos-rings { opacity: 0.4; }
@media (prefers-reduced-motion: no-preference) {
  .atmos-deco { animation: atmosFloat 20s ease-in-out infinite alternate; will-change: transform; }
  @keyframes atmosFloat { from { transform: translate3d(0,0,0); } to { transform: translate3d(0,-20px,0); } }
}

/* ==========================================================================
   Active page state in the nav
   ========================================================================== */
.nav-link[aria-current="page"],
.has-dropdown[aria-current="page"] {
  color: var(--color-eucalyptus-dark);
  background: var(--color-sand);
}
.nav-dropdown a[aria-current="page"] {
  color: var(--color-eucalyptus-dark);
  font-weight: 700;
}
.mobile-nav a[aria-current="page"] {
  color: var(--color-eucalyptus-dark);
  font-weight: 700;
}

/* ==========================================================================
   Studio photo strip — 2-up landscape gallery used on the thinner
   service pages (Mat, Private, Pricing). Photos are native 3:2, so the
   frames are 3:2 and crop nothing.
   ========================================================================== */
.photo-strip {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.75rem);
  align-items: start;
}
@media (min-width: 760px) {
  .photo-strip { grid-template-columns: repeat(2, 1fr); }
  .photo-strip.strip-offset > figure:nth-child(2) { margin-top: clamp(1.5rem, 4vw, 3rem); }
}
.photo-strip figure {
  margin: 0;
}
.photo-strip .strip-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3 / 2;
  box-shadow: 0 30px 55px -30px rgba(38, 34, 28, 0.4);
}
/* Portrait variant — for frames holding a natively vertical photo, so it is
   never cropped into a landscape box. */
.photo-strip .strip-media.media-portrait { aspect-ratio: 4 / 5; }

.photo-strip .strip-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-strip figcaption {
  margin-top: 0.85rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Single wide feature photo band */
.photo-band {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  box-shadow: 0 40px 70px -35px rgba(38, 34, 28, 0.45);
}
.photo-band img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   Responsive map embed (Contact page)
   ========================================================================== */
.map-embed {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  box-shadow: 0 30px 55px -30px rgba(38, 34, 28, 0.35);
  background: var(--color-sand);
}
@media (min-width: 900px) {
  .map-embed { aspect-ratio: 21 / 9; }
}
.map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ==========================================================================
   GHL form card — white panel so the embedded form stays legible when it
   sits inside a dark section (the final CTA blocks on inner pages).
   ========================================================================== */
.form-card {
  background: var(--color-white);
  border-radius: 14px;
  padding: 0.5rem;
  text-align: left;
}
.form-card iframe {
  width: 100%;
  min-height: 620px;
  border: none;
  border-radius: 10px;
  display: block;
}

/* Booking embed section: give MindBody widgets breathing room */
.page-booking-embed .mindbody-widget {
  min-height: 340px;
}
.booking-note {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--color-white);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--color-gold);
}
.booking-note svg { flex: 0 0 auto; margin-top: 0.15rem; color: var(--color-eucalyptus); }
.booking-note p { margin: 0; font-size: 0.94rem; line-height: 1.6; }
