/* Momentum Pilates Studio — 2026
   Brand palette: warm brown + champagne gold on cream
   Fonts: Playfair Display (display), Raleway (body)
   Mobile-first. No hyphenation. No fixed hero min-height. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Raleway', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: clamp(0.9375rem, 0.875rem + 0.25vw, 1.0625rem);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  min-height: 100dvh;
  max-width: 100%;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

img, picture, video, canvas, svg, iframe { display: block; max-width: 100%; height: auto; }
input, textarea, select, button { font: inherit; color: inherit; }

:root {
  /* Brand */
  --brown-900: #3B2619;
  --brown-800: #4A2F21;
  --brown-700: #5C3D2E;
  --brown-600: #7A5C4F;
  --brown-500: #8A7060;
  --brown-400: #A08878;
  --brown-200: #C9B8A8;
  --brown-100: #E6DACF;
  --gold-700: #A8863E;
  --gold-500: #C9A55A;
  --gold-400: #D4B76A;
  --gold-300: #E2CB8C;
  --cream-100: #FAF7F1;
  --cream-200: #F5EFE3;
  --cream-300: #EDE6DA;
  --cream-400: #E0D5C3;
  --white: #FFFFFF;
  --ink: #3B2619;
  --ink-soft: #5C3D2E;
  --ink-mute: #7A5C4F;
  --ink-faint: #8A7060;
  --bg: #FFFFFF;
  --bg-soft: #FAF7F1;
  --bg-alt: #F5EFE3;
  --border: #EDE6DA;

  /* Type */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Raleway', system-ui, -apple-system, sans-serif;

  /* Spacing */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;

  /* Radius */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-pill: 999px;

  /* Shadow */
  --shadow-sm: 0 2px 6px rgba(92, 61, 46, 0.06);
  --shadow-md: 0 8px 24px rgba(92, 61, 46, 0.08);
  --shadow-lg: 0 16px 40px rgba(92, 61, 46, 0.12);

  /* Layout */
  --container: 75rem;
  --container-narrow: 52rem;
  --focus: 3px solid var(--gold-500);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--brown-700);
  line-height: 1.2;
  letter-spacing: 0.01em;
  margin-bottom: var(--s-4);
  font-weight: 600;
}
h1 { font-size: clamp(1.875rem, 1.25rem + 3vw, 3.25rem); letter-spacing: 0.02em; }
h2 { font-size: clamp(1.5rem, 1rem + 2vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 1rem + 1vw, 1.625rem); }
h4 { font-size: clamp(1.125rem, 1rem + 0.5vw, 1.25rem); }

p, li, dd { margin-bottom: var(--s-4); }
p:last-child { margin-bottom: 0; }

h1, h2, h3, h4, h5, h6, p, li, span, a, td, th, label, blockquote, figcaption, address, dt, dd, button, .btn {
  hyphens: none;
  -webkit-hyphens: none;
  -ms-hyphens: none;
  overflow-wrap: break-word;
  word-wrap: break-word;
  max-width: 100%;
}

a { color: var(--brown-700); text-decoration: underline; text-decoration-color: var(--gold-500); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color 180ms ease, text-decoration-color 180ms ease; }
a:hover, a:focus-visible { color: var(--gold-700); text-decoration-color: var(--gold-700); }
a:focus-visible { outline: var(--focus); outline-offset: 2px; border-radius: 2px; }

/* Layout primitives */
.container { width: min(100% - 30px, var(--container)); margin-inline: auto; }
.container-narrow { width: min(100% - 30px, var(--container-narrow)); margin-inline: auto; }
@media (min-width: 600px) {
  .container { width: min(100% - 3rem, var(--container)); }
  .container-narrow { width: min(100% - 3rem, var(--container-narrow)); }
}
.stack > * + * { margin-top: var(--s-4); }
.stack-lg > * + * { margin-top: var(--s-6); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--s-4); align-items: center; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr)); gap: clamp(1rem, 2vw, 2rem); }
.prose { max-width: 70ch; }
.visually-hidden, .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: -40px; left: 8px; background: var(--brown-700); color: var(--white); padding: 8px 16px; border-radius: var(--r-sm); z-index: 10000; transition: top 180ms ease; }
.skip-link:focus { top: 8px; color: var(--white); text-decoration: none; }

/* Header + nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(150%) blur(8px);
  -webkit-backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-3) 0;
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--brown-700);
  text-decoration: none;
  flex: 0 1 auto;
}
.brand img { height: 40px; width: auto; }
.brand:hover, .brand:focus-visible { color: var(--gold-700); text-decoration: none; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 48px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--brown-700);
  cursor: pointer;
}
.nav-toggle:hover { border-color: var(--gold-500); color: var(--gold-700); }
.nav-toggle svg { width: 22px; height: 22px; }

.primary-nav {
  display: none;
  width: 100%;
  padding: var(--s-3) 0 var(--s-5);
  border-top: 1px solid var(--border);
  margin-top: var(--s-3);
}
/* Scrollable mobile nav — prevents bottom cutoff on short viewports */
.primary-nav[data-open="true"] {
  display: block;
  max-height: calc(100dvh - 80px);
  max-height: calc(100vh - 80px); /* fallback for browsers without dvh */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.primary-nav ul { list-style: none; display: flex; flex-direction: column; gap: 0; }
.primary-nav a {
  display: block;
  padding: 14px var(--s-4);
  color: var(--brown-700);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--border);
}
.primary-nav a:hover, .primary-nav a:focus-visible { color: var(--gold-700); background: var(--cream-100); text-decoration: none; }

/* Current-page highlight (bold + gold accent) */
.primary-nav a[aria-current="page"] {
  color: var(--gold-700);
  font-weight: 700;
  background: linear-gradient(90deg, rgba(201, 165, 90, 0.10), rgba(212, 183, 106, 0.06));
  border-left: 3px solid var(--gold-500);
  padding-left: calc(var(--s-4) - 3px);
}
.primary-nav a[aria-current="page"]:hover,
.primary-nav a[aria-current="page"]:focus-visible {
  color: var(--gold-700);
  background: linear-gradient(90deg, rgba(201, 165, 90, 0.18), rgba(212, 183, 106, 0.10));
}

.primary-nav a.cta { color: var(--white); background: linear-gradient(135deg, var(--gold-500), var(--gold-400)); border-radius: var(--r-pill); margin: var(--s-3) var(--s-4); padding: 12px var(--s-5); text-align: center; border-bottom: none; }
.primary-nav a.cta:hover { background: linear-gradient(135deg, var(--gold-700), var(--gold-500)); color: var(--white); }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .primary-nav { display: block; width: auto; padding: 0; border-top: 0; margin-top: 0; }
  .primary-nav ul { flex-direction: row; gap: var(--s-2); align-items: center; }
  .primary-nav a { padding: 10px 14px; border-bottom: 0; font-size: 0.95rem; border-radius: var(--r-sm); }
  .primary-nav a.cta { padding: 10px 20px; margin: 0 0 0 var(--s-3); }

  /* Desktop current-page highlight — bold + gold underline bar */
  .primary-nav a[aria-current="page"] {
    color: var(--brown-700);
    background: var(--cream-200);
    border-left: none;
    padding-left: 14px;
    position: relative;
  }
  .primary-nav a[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 4px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold-500), var(--gold-400));
    border-radius: 1px;
  }
  .primary-nav a[aria-current="page"]:hover,
  .primary-nav a[aria-current="page"]:focus-visible {
    color: var(--brown-800);
    background: var(--cream-300);
  }
}

/* Hero */
.hero {
  padding: clamp(2rem, 5vw, 4rem) 0;
  background: linear-gradient(180deg, var(--cream-100) 0%, var(--white) 100%);
  border-bottom: 1px solid var(--border);
}
.hero .inner { display: grid; gap: var(--s-6); align-items: center; padding: 15px; }
.hero h1 { margin-bottom: var(--s-4); }
.hero .lede { font-size: clamp(1rem, 0.9rem + 0.5vw, 1.2rem); color: var(--ink-mute); margin-bottom: var(--s-6); max-width: 60ch; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.hero .badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: var(--r-pill);
  margin-bottom: var(--s-4);
}
.hero .divider { width: 64px; height: 3px; background: linear-gradient(90deg, var(--gold-500), var(--gold-400)); border-radius: 2px; margin-bottom: var(--s-5); }
.hero .visual img { border-radius: var(--r-lg); box-shadow: var(--shadow-md); }

@media (min-width: 800px) {
  .hero .inner { grid-template-columns: 1.1fr 1fr; gap: var(--s-8); }
  .hero.reverse .inner { grid-template-columns: 1fr 1.1fr; }
  .hero.reverse .visual { order: -1; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 48px;
  padding: 12px 24px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  text-align: center;
  line-height: 1.2;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--white);
}
.btn-primary:hover, .btn-primary:focus-visible { background: linear-gradient(135deg, var(--gold-700), var(--gold-500)); color: var(--white); text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-secondary {
  background: transparent;
  color: var(--brown-700);
  border: 1.5px solid var(--brown-700);
}
.btn-secondary:hover, .btn-secondary:focus-visible { background: var(--brown-700); color: var(--white); text-decoration: none; }
.btn-ghost {
  background: var(--cream-200);
  color: var(--brown-700);
}
.btn-ghost:hover, .btn-ghost:focus-visible { background: var(--cream-300); color: var(--brown-700); text-decoration: none; }
.btn:focus-visible { outline: var(--focus); outline-offset: 3px; }
.btn svg { width: 18px; height: 18px; }

/* Sections */
.section { padding: clamp(2.5rem, 6vw, 5rem) 0; }
.section-alt { background: var(--cream-100); border-block: 1px solid var(--border); }
.section-dark { background: linear-gradient(135deg, var(--brown-700), var(--brown-800)); color: var(--cream-200); border-block: 0; }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: var(--cream-100); }
.section-dark a { color: var(--gold-300); text-decoration-color: var(--gold-500); }
.section-dark a:hover, .section-dark a:focus-visible { color: var(--white); text-decoration-color: var(--white); }
.section-dark .btn-secondary { color: var(--cream-100); border-color: var(--cream-200); }
.section-dark .btn-secondary:hover { background: var(--cream-100); color: var(--brown-700); }
.section-dark .sub { color: var(--cream-300); }
.section-head { text-align: center; max-width: 60ch; margin: 0 auto var(--s-7); }
.section-head .eyebrow {
  display: inline-block;
  color: var(--gold-700);
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: var(--s-3);
}
.section-head h2 { margin-bottom: var(--s-3); }
.section-head p { color: var(--ink-mute); font-size: 1.05rem; }

/* Class cards */
.class-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
.class-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--cream-400); }
.class-card .art {
  aspect-ratio: 1200 / 630;
  background: var(--cream-200);
}
.class-card .art img { width: 100%; height: 100%; object-fit: cover; }
.class-card .body { padding: var(--s-5) var(--s-5) var(--s-6); display: flex; flex-direction: column; gap: var(--s-3); flex: 1; }
.class-card h3 { margin: 0; font-size: 1.35rem; }
.class-card .subtitle { color: var(--gold-700); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; margin: 0; }
.class-card p { color: var(--ink-mute); margin: 0; line-height: 1.6; }
.class-card .meta { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: auto; }
.class-card .tag { background: var(--cream-200); color: var(--brown-700); padding: 4px 10px; border-radius: var(--r-pill); font-size: 0.78rem; font-weight: 500; }

/* Feature grid (generic) */
.feature {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--s-5);
  transition: transform 220ms ease, box-shadow 220ms ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.feature .icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  margin-bottom: var(--s-3);
}
.feature .icon svg { width: 24px; height: 24px; }
.feature h3 { margin-bottom: var(--s-2); font-size: 1.2rem; }
.feature p { color: var(--ink-mute); font-size: 0.95rem; margin: 0; }

/* Booking section */
.booking {
  background: linear-gradient(135deg, var(--brown-700), var(--brown-800));
  color: var(--cream-200);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 4vw, 3rem);
  text-align: center;
}
.booking h2 { color: var(--cream-100); }
.booking p { color: var(--cream-300); max-width: 60ch; margin-inline: auto; }
.booking .mb-button {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-3);
  margin-top: var(--s-5);
}
.booking iframe { border: 0; background: transparent; margin: 0 auto; }
.booking .app-link { color: var(--gold-300); font-size: 0.9rem; }
.booking .app-link:hover { color: var(--white); }

/* Contact / Map */
.map-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
}
.map-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.contact-grid { display: grid; gap: var(--s-5); }
@media (min-width: 800px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: var(--s-7); } }
.contact-list { list-style: none; display: flex; flex-direction: column; gap: var(--s-4); }
.contact-list li { display: flex; gap: var(--s-4); align-items: flex-start; margin: 0; }
.contact-list .icon { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--gold-500), var(--gold-400)); color: var(--white); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-list .icon svg { width: 18px; height: 18px; }
.contact-list strong { display: block; color: var(--brown-700); font-weight: 600; margin-bottom: 2px; }

/* Forms */
form .field { display: flex; flex-direction: column; gap: var(--s-2); margin-bottom: var(--s-4); }
form label { font-weight: 600; color: var(--brown-700); font-size: 0.95rem; }
form input[type="text"], form input[type="email"], form input[type="tel"], form textarea {
  font-size: 16px;
  min-height: 48px;
  padding: 12px 14px;
  width: 100%;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--cream-400);
  border-radius: var(--r-sm);
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
form textarea { min-height: 140px; resize: vertical; }
form input:focus, form textarea:focus { outline: var(--focus); outline-offset: 1px; border-color: var(--gold-500); }
form .hp { position: absolute; left: -9999px; opacity: 0; width: 1px; height: 1px; overflow: hidden; pointer-events: none; }
form .form-note { font-size: 0.85rem; color: var(--ink-faint); }
form .form-status { margin-top: var(--s-4); padding: var(--s-4); border-radius: var(--r-sm); display: none; }
form .form-status.success { display: block; background: #EDF6E9; color: #2D5A1C; border: 1px solid #B9D4A2; }
form .form-status.error { display: block; background: #F6E9E9; color: #5A1C1C; border: 1px solid #D4A2A2; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: var(--s-3); }
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--s-4) var(--s-5);
}
.faq-item summary {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--brown-700);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 2rem;
  line-height: 1.3;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--gold-700);
  line-height: 1;
  transition: transform 180ms ease;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin-top: var(--s-3); color: var(--ink-mute); line-height: 1.65; }
.faq-item:focus-within { border-color: var(--gold-500); box-shadow: var(--shadow-sm); }

/* Classes detail row (used on /classes/ page) */
.class-row {
  padding: var(--s-6) clamp(0.75rem, 2.5vw, 1.5rem);
  border-bottom: 1px solid var(--border);
}
.class-row:last-child { border-bottom: 0; }
.class-row dl { color: var(--ink-mute); margin: var(--s-5) 0; }
@media (min-width: 800px) { .class-row { padding-block: var(--s-7); } }

/* Legal pages */
.legal-body { max-width: 70ch; margin: 0 auto; }
.legal-body h2 { margin-top: var(--s-6); border-bottom: 1px solid var(--border); padding-bottom: var(--s-2); }
.legal-body h3 { margin-top: var(--s-5); }
.legal-body ul, .legal-body ol { padding-left: var(--s-5); margin-bottom: var(--s-4); }
.legal-body li { margin-bottom: var(--s-2); }
.legal-body .updated { font-size: 0.85rem; color: var(--ink-faint); font-style: italic; margin-bottom: var(--s-5); }

/* Breadcrumbs */
.crumbs { font-size: 0.85rem; color: var(--ink-mute); margin-bottom: var(--s-5); }
.crumbs a { color: var(--ink-mute); text-decoration-color: var(--cream-400); }
.crumbs a:hover { color: var(--brown-700); text-decoration-color: var(--gold-500); }
.crumbs span[aria-current="page"] { color: var(--brown-700); font-weight: 600; }

/* Footer */
.site-footer {
  background: linear-gradient(135deg, var(--brown-800), var(--brown-900));
  color: var(--cream-200);
  padding: var(--s-8) 0 var(--s-5);
}
.site-footer a { color: var(--cream-200); text-decoration-color: var(--gold-500); }
.site-footer a:hover, .site-footer a:focus-visible { color: var(--white); text-decoration-color: var(--white); }
.footer-grid { display: grid; gap: var(--s-6); grid-template-columns: 1fr; margin-bottom: var(--s-6); }
.footer-grid h3 { color: var(--cream-100); font-size: 1.1rem; margin-bottom: var(--s-3); font-family: var(--font-display); }
.footer-grid ul { list-style: none; display: flex; flex-direction: column; gap: var(--s-2); }
.footer-grid li { margin: 0; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.footer-bottom {
  border-top: 1px solid rgba(233, 218, 195, 0.18);
  padding-top: var(--s-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--cream-400);
}
.footer-bottom .sep { color: var(--brown-400); }

/* Speakable targets — voice assistants */
.speakable-summary { /* no visual change; targeted by JSON-LD cssSelector */ }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Print */
@media print {
  .site-header, .site-footer, .nav-toggle, .booking iframe, form, .skip-link { display: none !important; }
  a { color: #000 !important; text-decoration: underline !important; }
  body { background: #fff; color: #000; }
}
