/* Momentum light default template (generated) */
/* base.css — reset + foundational rules (per website-building skill) */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  hanging-punctuation: first last;
  scroll-padding-top: var(--space-20);
}

body {
  min-height: 100dvh;
  line-height: 1.6;
  font-family: var(--font-body, sans-serif);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}
ul[role='list'],
ol[role='list'] {
  list-style: none;
}
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
  line-height: 1.15;
}
p,
li,
figcaption {
  text-wrap: pretty;
}

::selection {
  background: oklch(from var(--color-primary) l c h / 0.25);
  color: var(--color-text);
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

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

button {
  cursor: pointer;
  background: none;
  border: none;
}
table {
  border-collapse: collapse;
  width: 100%;
}
a {
  text-decoration: none;
  color: inherit;
}

a,
button,
[role='button'],
[role='link'],
input,
textarea,
select {
  transition:
    color var(--transition-interactive),
    background var(--transition-interactive),
    border-color var(--transition-interactive),
    box-shadow var(--transition-interactive);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ==========================================================================
   VEGA COMMAND — Universal Master Website Template
   Demo instance: Momentum Fitness Co. (Gym / Fitness Club vertical)
   ========================================================================== */

/* -------------------------------------------------------------------------
   1. DESIGN TOKENS — Master Template layer (structure applies to every org;
      color values below are overridden per-organization via Org Data)
   ------------------------------------------------------------------------- */
:root {
  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);
  --text-hero: clamp(2.75rem, 1rem + 6vw, 6.5rem);

  /* Spacing (4px system) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 0.9rem;
  --radius-xl: 1.25rem;
  --radius-full: 9999px;

  /* Motion */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 1040px;
  --content-wide: 1240px;
  --content-full: 100%;

  /* Fonts (Industry Configuration selects the pairing; Master defines the roles) */
  --font-display: 'General Sans', 'Segoe UI', sans-serif;
  --font-body: 'Satoshi', 'Segoe UI', sans-serif;

  /* ---- ORGANIZATION DATA: brand colors (Momentum Fitness Co.) ----
     In production this block is generated per-org and overrides
     the Industry Configuration defaults below it. */
  --color-brand: #d95d2b;
  --color-brand-hover: #b8481d;
  --color-brand-active: #963a16;
  --color-brand-highlight: #f4ded1;
  --color-brand-ink: #ffffff;
}

:root,
[data-theme='light'] {
  /* Neutral surfaces — Master Template default, industry may shift warmth */
  --color-bg: #faf9f7;
  --color-surface: #ffffff;
  --color-surface-2: #fdfcfb;
  --color-surface-offset: #f1efec;
  --color-surface-offset-2: #e8e5e0;
  --color-surface-dynamic: #ded9d2;
  --color-divider: #e6e3de;
  --color-border: #dcd8d1;

  --color-text: #201d19;
  --color-text-muted: #6f6a62;
  --color-text-faint: #a8a29a;
  --color-text-inverse: #faf9f7;

  --color-primary: var(--color-brand);
  --color-primary-hover: var(--color-brand-hover);
  --color-primary-active: var(--color-brand-active);
  --color-primary-highlight: var(--color-brand-highlight);

  --color-success: #3f7a3a;
  --color-success-highlight: #d7e6d2;
  --color-error: #a13636;
  --color-error-highlight: #ecd6d6;
  --color-warning: #93601c;
  --color-warning-highlight: #ecdec5;

  --shadow-sm: 0 1px 2px oklch(0.2 0.02 40 / 0.06);
  --shadow-md: 0 4px 14px oklch(0.2 0.02 40 / 0.08);
  --shadow-lg: 0 16px 40px oklch(0.2 0.02 40 / 0.14);

  /* Architecture-layer overlay colors (dev-mode only, never brand colors) */
  --layer-master: #2f6fed;
  --layer-master-soft: rgba(47, 111, 237, 0.1);
  --layer-industry: #1f9d63;
  --layer-industry-soft: rgba(31, 157, 99, 0.1);
  --layer-org: #9548e0;
  --layer-org-soft: rgba(149, 72, 224, 0.1);
}

/* dark theme removed — light-only default template */

/* system dark preference ignored */

/* -------------------------------------------------------------------------
   2. LAYOUT PRIMITIVES
   ------------------------------------------------------------------------- */
.container {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-5);
}
.container--default {
  max-width: var(--content-default);
}
.container--narrow {
  max-width: var(--content-narrow);
}

.section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-24));
  position: relative;
}
.section--tight {
  padding-block: clamp(var(--space-10), 5vw, var(--space-16));
}
.section--offset {
  background: var(--color-surface-offset);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}
.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  flex-shrink: 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: var(--space-12);
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
}
.section-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--color-text);
}
.section-lede {
  margin-top: var(--space-3);
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 60ch;
}
.section-head--center .section-lede {
  margin-inline: auto;
}

/* -------------------------------------------------------------------------
   3. TYPOGRAPHY UTILITIES
   ------------------------------------------------------------------------- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--color-text);
}
p {
  color: var(--color-text-muted);
}
.text-muted {
  color: var(--color-text-muted);
}
.text-faint {
  color: var(--color-text-faint);
}

/* -------------------------------------------------------------------------
   4. BUTTONS
   ------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  min-height: 44px;
  white-space: nowrap;
  border: 1px solid transparent;
  text-decoration: none;
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-brand-ink, #fff);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.btn-primary:active {
  background: var(--color-primary-active);
  transform: translateY(0);
}
.btn-secondary {
  background: var(--color-surface);
  color: var(--color-text);
  border-color: oklch(from var(--color-text) l c h / 0.14);
}
.btn-secondary:hover {
  background: var(--color-surface-offset);
  border-color: oklch(from var(--color-text) l c h / 0.22);
}
.btn-ghost {
  background: transparent;
  color: var(--color-text);
}
.btn-ghost:hover {
  background: var(--color-surface-offset);
}
.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}
.btn-on-dark {
  background: var(--color-primary);
  color: #fff;
}
.btn-on-dark.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
}
.btn-on-dark.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
}

/* -------------------------------------------------------------------------
   5. HEADER / NAV
   ------------------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: oklch(from var(--color-bg) l c h / 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.08);
  transition:
    transform 0.3s var(--ease-out),
    box-shadow 0.3s var(--ease-out);
}
.header--hidden {
  transform: translateY(-100%);
}
.header--scrolled {
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-weight: 650;
  font-size: var(--text-base);
  color: var(--color-text);
  text-decoration: none;
  flex-shrink: 0;
}
.brand-logo {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  color: var(--color-primary);
}
.brand-name {
  line-height: 1.1;
  white-space: nowrap;
}
.brand-name small {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-faint);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Header CTA is hidden below the desktop nav breakpoint — the mobile nav
   panel carries its own full-width CTA, so the compact header only needs
   the logo, theme toggle, and hamburger to stay comfortably inside 375px. */
.header-actions > .btn {
  display: none;
}
@media (min-width: 560px) {
  .brand-name small {
    display: block;
  }
}
@media (max-width: 559px) {
  .brand-name small {
    display: none;
  }
}

.nav-desktop {
  display: none;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}
.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
}
.nav-links a:hover,
.nav-links a[aria-current='page'] {
  color: var(--color-text);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
}
.theme-toggle:hover {
  background: var(--color-surface-offset);
  color: var(--color-text);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  color: var(--color-text);
}
.nav-toggle:hover {
  background: var(--color-surface-offset);
}

.mobile-nav {
  position: fixed;
  inset: 76px 0 0 0;
  z-index: 55;
  background: var(--color-bg);
  padding: var(--space-6) var(--space-5);
  display: none;
  flex-direction: column;
  gap: var(--space-1);
  overflow-y: auto;
}
.mobile-nav.is-open {
  display: flex;
}
.mobile-nav a {
  padding: var(--space-4) var(--space-2);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid var(--color-divider);
}
.mobile-nav .btn {
  margin-top: var(--space-4);
  width: 100%;
}

@media (min-width: 640px) {
  .header-actions > .btn {
    display: inline-flex;
  }
}
@media (min-width: 900px) {
  .nav-desktop {
    display: flex;
    align-items: center;
    gap: var(--space-8);
  }
  .nav-toggle {
    display: none;
  }
  .mobile-nav {
    display: none !important;
  }
}

/* -------------------------------------------------------------------------
   6. HERO
   ------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(var(--space-16), 10vw, var(--space-32)) clamp(var(--space-16), 8vw, var(--space-24));
  overflow: hidden;
  background: linear-gradient(180deg, var(--color-surface-offset) 0%, var(--color-bg) 60%);
}
.hero-grid {
  display: grid;
  gap: var(--space-12);
  align-items: center;
}
.hero-copy .eyebrow {
  margin-bottom: var(--space-5);
}
.hero-title {
  font-size: var(--text-hero);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
  color: var(--color-text);
}
.hero-title em {
  font-style: normal;
  color: var(--color-primary);
}
.hero-sub {
  margin-top: var(--space-5);
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 34rem;
  line-height: 1.55;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-8);
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  margin-top: var(--space-10);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-divider);
}
.hero-meta-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-text);
}
.hero-meta-item span {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.hero-media {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5;
}
.hero-media img,
.hero-media .org-video-wrap,
.hero-media .org-video-frame,
.hero-media .org-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-media .org-video-wrap,
.hero-media .org-video-frame {
  min-height: 100%;
  border-radius: inherit;
  overflow: hidden;
}

/* -------------------------------------------------------------------------
   VIP Fit — See It In Action (below-hero story band)
   Durable layout so GrapesJS stripping inline styles cannot break alignment.
   ------------------------------------------------------------------------- */
#vip-home-story-video {
  padding: clamp(48px, 6vw, 72px) 0;
  background: #0b1220;
  color: #fff;
}
#vip-home-story-video > .container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}
#vip-home-story-video .vip-home-story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(28px, 4vw, 48px) clamp(32px, 5vw, 56px);
  align-items: center;
}
#vip-home-story-video .vip-home-story-copy,
#vip-home-story-video .vip-home-story-grid > :first-child {
  min-width: 0;
}
#vip-home-story-video .vip-home-story-media,
#vip-home-story-video .vip-home-story-grid > :last-child {
  min-width: 0;
  display: flex;
  justify-content: center;
  justify-self: end;
  width: 100%;
}
#vip-home-story-video .eyebrow,
#vip-home-story-video .eyebrow p {
  margin: 0 0 12px;
  color: #e11d2e;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
  font-size: 0.78rem;
}
#vip-home-story-video h2 {
  margin: 0 0 14px;
  font-size: clamp(1.9rem, 3.2vw, 2.75rem);
  letter-spacing: 0.02em;
  line-height: 1.1;
  color: #fff;
}
#vip-home-story-video .vip-home-story-copy > [data-wb-type="text"] p,
#vip-home-story-video .vip-home-story-grid > :first-child > [data-wb-type="text"] p {
  margin: 0 0 22px;
  max-width: 36rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
}
#vip-home-story-video ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
#vip-home-story-video li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
#vip-home-story-video li > span:first-child {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #e11d2e;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(225, 29, 46, 0.35);
}
#vip-home-story-video li svg {
  display: block;
  width: 20px;
  height: 20px;
  stroke: #fff;
  fill: none;
}
#vip-home-story-video li strong {
  display: block;
  font-size: 1rem;
  color: #fff;
}
#vip-home-story-video li span:not(:first-child),
#vip-home-story-video li [data-wb-type="text"] span {
  display: block;
  margin-top: 2px;
  font-size: 0.95rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.68);
}
#vip-home-story-video .org-video-wrap {
  width: min(100%, 360px);
  margin: 0;
}
#vip-home-story-video .org-video-frame {
  aspect-ratio: 9 / 16;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 24px 50px -28px rgba(0, 0, 0, 0.7);
}
#vip-home-story-video .org-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 900px) {
  html body #vip-home-story-video .vip-home-story-grid,
  html body [data-vip-home-story-video="1"] .vip-home-story-grid,
  html body [data-vip-home-story-video="1"] [style*="grid-template-columns"] {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-auto-flow: row !important;
    gap: 24px !important;
    width: 100% !important;
  }
  html body #vip-home-story-video .vip-home-story-grid > *,
  html body [data-vip-home-story-copy="1"],
  html body [data-vip-home-story-media="1"] {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    max-width: 100% !important;
    justify-self: stretch !important;
    order: 0 !important;
    float: none !important;
    position: relative !important;
    left: auto !important;
  }
  html body #vip-home-story-video .org-video-wrap,
  html body #vip-home-story-video img,
  html body #vip-home-story-video video,
  html body #vip-home-story-video iframe,
  html body [data-vip-home-story-video="1"] img,
  html body [data-vip-home-story-video="1"] video {
    width: 100% !important;
    max-width: 100% !important;
    height: auto;
    float: none !important;
    left: auto !important;
  }
  html body #vip-home-story-video .org-video-wrap,
  html body [data-vip-home-story-video="1"] .org-video-wrap {
    width: min(100%, 320px) !important;
    margin: 0 auto;
  }
}

.hero-highlights {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-8);
}
.hero-highlight {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-3);
  align-items: start;
  padding: var(--space-4);
  border: 1px solid color-mix(in oklab, var(--color-border, #e5e7eb) 85%, transparent);
  border-radius: var(--radius-lg, 16px);
  background: color-mix(in oklab, var(--color-bg, #fff) 88%, var(--accent, #c22222) 12%);
}
.hero-highlight-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: color-mix(in oklab, var(--accent, #c22222) 14%, transparent);
  color: var(--accent, #c22222);
  font-size: 1rem;
}
.hero-highlight strong {
  display: block;
  font-size: var(--text-sm, 0.925rem);
  margin-bottom: 2px;
  color: var(--color-text, #201d19);
  font-weight: 700;
}
/* Title row can be <strong>, bare text, or <p> after GrapesJS edits — never inherit muted p color */
.hero-highlight > div:last-child > [data-wb-type="text"]:first-child,
.hero-highlight > div:last-child > [data-wb-type="text"]:first-child p,
.hero-highlight > div:last-child > [data-wb-type="text"]:first-child strong,
.hero-highlight > div:last-child > [data-wb-type="text"]:first-child span {
  color: var(--color-text, #201d19);
  font-weight: 700;
  font-size: var(--text-sm, 0.925rem);
  opacity: 1;
  margin: 0 0 2px;
  line-height: 1.35;
}
.hero-highlight p {
  margin: 0;
  font-size: var(--text-xs, 0.8rem);
  color: var(--color-text-muted, #6b7280);
  line-height: 1.45;
  font-weight: 400;
}
.hero-highlight > div:last-child > [data-wb-type="text"]:first-child p {
  color: var(--color-text, #201d19);
  font-weight: 700;
  font-size: var(--text-sm, 0.925rem);
}
@media (min-width: 900px) {
  .hero-highlights {
    gap: var(--space-3);
  }
}
.hero-media-badge {
  position: absolute;
  left: var(--space-5);
  bottom: var(--space-5);
  background: oklch(from var(--color-bg) l c h / 0.9);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  max-width: 260px;
}
.hero-media-badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-base);
  color: var(--color-text);
}
.hero-media-badge span {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
/* T2T / donate badge — match by marker OR donate copy (GrapesJS often strips data-*).
   Explicit strong/span beat default `.hero-media-badge strong { color: var(--color-text) }`. */
.hero-media-badge[data-vip-t2t-hero-badge="1"],
.hero-media-badge:has(a[href*="freedom-fitness"]),
.hero-media-badge:has([data-prop-text*="Donate"]) {
  background: #c22222 !important;
  color: #fff !important;
}
.hero-media-badge[data-vip-t2t-hero-badge="1"],
.hero-media-badge[data-vip-t2t-hero-badge="1"] *,
.hero-media-badge[data-vip-t2t-hero-badge="1"] strong,
.hero-media-badge[data-vip-t2t-hero-badge="1"] span,
.hero-media-badge[data-vip-t2t-hero-badge="1"] a,
.hero-media-badge:has(a[href*="freedom-fitness"]),
.hero-media-badge:has(a[href*="freedom-fitness"]) *,
.hero-media-badge:has(a[href*="freedom-fitness"]) strong,
.hero-media-badge:has(a[href*="freedom-fitness"]) span,
.hero-media-badge:has([data-prop-text*="Donate"]),
.hero-media-badge:has([data-prop-text*="Donate"]) *,
.hero-media-badge:has([data-prop-text*="Donate"]) strong,
.hero-media-badge:has([data-prop-text*="Donate"]) span {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

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

/* Freedom & Fitness / T2T CTA — match campaign flyer blue (override stale dark inline styles). */
.vip-t2t-veterans-cta,
section[data-vip-t2t-veterans-cta="1"] {
  background: linear-gradient(165deg, #0a2f7a 0%, #0c3d9a 48%, #1248b0 100%) !important;
  color: #fff;
}

/* -------------------------------------------------------------------------
   7. VALUE PROPS / FEATURE CARDS
   ------------------------------------------------------------------------- */
.value-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
}
.value-card {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
}
.value-card .value-num {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.06em;
}
.value-card h3 {
  margin-top: var(--space-4);
  font-size: var(--text-lg);
  font-weight: 620;
}
.value-card p {
  margin-top: var(--space-3);
  font-size: var(--text-sm);
}
.value-card--wide {
  grid-column: 1 / -1;
  display: grid;
  gap: var(--space-6);
}
@media (min-width: 700px) {
  .value-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .value-card--wide {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    padding: var(--space-10);
  }
}

/* -------------------------------------------------------------------------
   8. PROGRAMS / SERVICES
   ------------------------------------------------------------------------- */
.program-list {
  display: grid;
  gap: var(--space-4);
}
.program-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-lg);
  align-items: center;
}
.program-tag {
  display: inline-flex;
  align-items: center;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: var(--color-primary-highlight);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  width: fit-content;
  white-space: nowrap;
}
.program-row h3 {
  margin-top: var(--space-3);
  font-size: var(--text-lg);
  font-weight: 620;
}
.program-row p {
  margin-top: var(--space-2);
  font-size: var(--text-sm);
}
.program-meta {
  display: flex;
  gap: var(--space-5);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-top: var(--space-4);
  flex-wrap: wrap;
}
.program-meta strong {
  color: var(--color-text-muted);
  font-weight: 600;
}
@media (min-width: 800px) {
  .program-row {
    grid-template-columns: 220px 1fr;
    gap: var(--space-8);
  }
  .program-row-body {
    border-left: 1px solid var(--color-divider);
    padding-left: var(--space-8);
  }
}

/* -------------------------------------------------------------------------
   9. WHY CHOOSE US — asymmetric stat/feature layout
   ------------------------------------------------------------------------- */
.why-layout {
  display: grid;
  gap: var(--space-10);
}
.why-list {
  display: grid;
  gap: var(--space-6);
}
.why-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-4);
}
.why-item .why-check {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: var(--color-primary-highlight);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.why-item h3 {
  font-size: var(--text-base);
  font-weight: 620;
}
.why-item p {
  margin-top: var(--space-1);
  font-size: var(--text-sm);
}
.why-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}
.stat-card {
  background: var(--color-text);
  color: var(--color-text-inverse);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}
.stat-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
}
.stat-card span {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.72;
}
.stat-card--accent {
  background: var(--color-primary);
  color: #fff;
}
@media (min-width: 900px) {
  .why-layout {
    grid-template-columns: 1fr 0.85fr;
    align-items: start;
  }
}

/* -------------------------------------------------------------------------
   10. MEMBERSHIPS / PRICING
   ------------------------------------------------------------------------- */
.plans-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
}
.plan-card {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.plan-card--featured {
  background: var(--color-text);
  color: var(--color-text-inverse);
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.plan-card--featured .plan-name,
.plan-card--featured .plan-price,
.plan-card--featured .plan-desc {
  color: var(--color-text-inverse);
}
.plan-card--featured .plan-feature-list li {
  color: oklch(from var(--color-text-inverse) l c h / 0.82);
}
.plan-badge {
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  background: var(--color-primary);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 600;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
}
.plan-name {
  font-size: var(--text-lg);
  font-weight: 650;
}
.plan-desc {
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.plan-price {
  margin-top: var(--space-6);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
}
.plan-price span {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-faint);
}
.plan-feature-list {
  margin-top: var(--space-6);
  display: grid;
  gap: var(--space-3);
  flex: 1;
}
.plan-feature-list:empty {
  display: none;
  margin: 0;
}
.plan-feature-list li {
  display: flex;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.plan-feature-list li svg {
  flex-shrink: 0;
  color: var(--color-primary);
  margin-top: 3px;
}
.plan-card--featured .plan-feature-list li svg {
  color: var(--color-primary);
}
.plan-card .btn {
  margin-top: var(--space-8);
  width: 100%;
}
@media (min-width: 700px) {
  .plans-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* -------------------------------------------------------------------------
   11. ABOUT / ORG PROFILE SNIPPET
   ------------------------------------------------------------------------- */
.about-snippet {
  display: grid;
  gap: var(--space-10);
  align-items: center;
}
.about-media {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.about-media img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.org-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-6);
}
.org-fact {
  padding: var(--space-4) 0;
  border-top: 1px solid var(--color-divider);
}
.org-fact strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-base);
  color: var(--color-text);
}
.org-fact span {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
@media (min-width: 900px) {
  .about-snippet {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

/* -------------------------------------------------------------------------
   12. TESTIMONIALS
   ------------------------------------------------------------------------- */
.testimonial-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
}
.testimonial-card {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
}
.testimonial-stars {
  display: flex;
  gap: 2px;
  color: var(--color-primary);
}
.testimonial-quote {
  margin-top: var(--space-4);
  font-size: var(--text-base);
  color: var(--color-text);
  flex: 1;
}
.testimonial-person {
  margin-top: var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--color-primary-highlight);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: var(--text-sm);
  flex-shrink: 0;
}
.testimonial-person strong {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-text);
}
.testimonial-person span {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}
@media (min-width: 700px) {
  .testimonial-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* -------------------------------------------------------------------------
   13. GALLERY
   ------------------------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}
.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1/1;
  transition: transform 0.5s var(--ease-out);
}
.gallery-item:hover img {
  transform: scale(1.05);
}
.gallery-item-label {
  position: absolute;
  left: var(--space-3);
  bottom: var(--space-3);
  background: oklch(from var(--color-bg) l c h / 0.88);
  backdrop-filter: blur(6px);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text);
}
.gallery-item--wide {
  grid-column: span 2;
}
@media (min-width: 700px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .gallery-item--wide {
    grid-column: span 2;
  }
  .gallery-item--tall img {
    aspect-ratio: 1/1.4;
  }
}

/* -------------------------------------------------------------------------
   14. FAQ
   ------------------------------------------------------------------------- */
.faq-list {
  display: grid;
  gap: var(--space-3);
  max-width: var(--content-narrow);
}
.faq-item {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  text-align: left;
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
}
.faq-question svg {
  flex-shrink: 0;
  color: var(--color-text-faint);
  transition: transform 0.25s var(--ease-out);
}
.faq-item.is-open .faq-question svg {
  transform: rotate(45deg);
  color: var(--color-primary);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s var(--ease-out);
}
.faq-answer-inner {
  padding: 0 var(--space-6) var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.faq-item.is-open .faq-answer {
  max-height: 400px;
}

/* -------------------------------------------------------------------------
   15. PRIMARY CTA BANNER
   ------------------------------------------------------------------------- */
.cta-banner {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  isolation: isolate;
  color: #fff;
}
.cta-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.cta-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(120deg, oklch(0.18 0.02 40 / 0.92) 0%, oklch(0.22 0.04 40 / 0.72) 60%, oklch(0.22 0.04 40 / 0.5) 100%);
}
.cta-banner-content {
  padding: clamp(var(--space-10), 6vw, var(--space-16));
  max-width: 560px;
}
.cta-banner h2 {
  font-size: var(--text-xl);
  color: #fff;
  font-weight: 650;
}
.cta-banner p {
  margin-top: var(--space-3);
  color: rgba(255, 255, 255, 0.82);
  font-size: var(--text-base);
}
.cta-banner-actions {
  margin-top: var(--space-8);
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* -------------------------------------------------------------------------
   15.5 REGISTRATION STEPS
   ------------------------------------------------------------------------- */
.steps-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-8);
}
@media (max-width: 860px) {
  .steps-list { grid-template-columns: 1fr; }
}
.step-item {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
}
.step-item p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: 0;
}

/* -------------------------------------------------------------------------
   16. CONTACT / LOCATION
   ------------------------------------------------------------------------- */
.contact-layout {
  display: grid;
  gap: var(--space-8);
}
.contact-card {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
}
.contact-detail {
  display: flex;
  gap: var(--space-4);
  padding-block: var(--space-4);
  border-bottom: 1px solid var(--color-divider);
}
.contact-detail:last-child {
  border-bottom: none;
}
.contact-detail svg {
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-detail strong {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-text);
}
.contact-detail p,
.contact-detail a {
  margin-top: 2px;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
}
.contact-detail a:hover {
  color: var(--color-primary);
}
.map-placeholder {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/10;
  background:
    linear-gradient(oklch(from var(--color-text) l c h / 0.03) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, oklch(from var(--color-text) l c h / 0.03) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--color-surface-offset);
  border: 1px solid var(--color-divider);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--space-3);
  color: var(--color-text-faint);
  position: relative;
}
.map-placeholder svg {
  color: var(--color-primary);
}
.map-pin-pulse {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--color-primary-highlight);
  display: flex;
  align-items: center;
  justify-content: center;
}
.social-row {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-6);
}
.social-link {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--color-surface-offset);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}
.social-link:hover {
  background: var(--color-primary-highlight);
  color: var(--color-primary);
}
.hours-table {
  margin-top: var(--space-2);
}
.hours-table tr {
  border-bottom: 1px solid var(--color-divider);
}
.hours-table tr:last-child {
  border-bottom: none;
}
.hours-table td {
  padding: var(--space-3) 0;
  font-size: var(--text-sm);
}
.hours-table td:first-child {
  color: var(--color-text);
  font-weight: 500;
}
.hours-table td:last-child {
  text-align: right;
  color: var(--color-text-muted);
}
@media (min-width: 950px) {
  .contact-layout {
    grid-template-columns: 1fr 1fr;
  }
}

/* -------------------------------------------------------------------------
   17. FORMS
   ------------------------------------------------------------------------- */
.form-grid {
  display: grid;
  gap: var(--space-5);
}
.form-row {
  display: grid;
  gap: var(--space-5);
}
@media (min-width: 560px) {
  .form-row--2 {
    grid-template-columns: 1fr 1fr;
  }
}
.field {
  display: grid;
  gap: var(--space-2);
}
.field label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
}
.field input,
.field select,
.field textarea {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid oklch(from var(--color-text) l c h / 0.16);
  background: var(--color-surface);
  font-size: var(--text-base);
  min-height: 44px;
}
.field textarea {
  min-height: 120px;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-highlight);
}
.form-note {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}
.form-success {
  display: none;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-5);
  background: var(--color-success-highlight);
  color: var(--color-success);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
}
.form-success.is-visible {
  display: flex;
}
.form-success svg {
  flex-shrink: 0;
}

/* -------------------------------------------------------------------------
   18. FOOTER
   ------------------------------------------------------------------------- */
.footer {
  background: var(--color-text);
  color: var(--color-text-inverse);
  padding-block: var(--space-16) var(--space-8);
}
.footer-grid {
  display: grid;
  gap: var(--space-10);
  padding-bottom: var(--space-10);
  border-bottom: 1px solid oklch(from var(--color-text-inverse) l c h / 0.14);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text-inverse);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 650;
}
.footer-brand .brand-logo {
  color: var(--color-primary);
}
.footer-desc {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: oklch(from var(--color-text-inverse) l c h / 0.66);
  max-width: 32ch;
}
.footer-col h4 {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: oklch(from var(--color-text-inverse) l c h / 0.5);
  margin-bottom: var(--space-4);
}
.footer-col a,
.footer-col p {
  display: block;
  font-size: var(--text-sm);
  color: oklch(from var(--color-text-inverse) l c h / 0.78);
  text-decoration: none;
  margin-bottom: var(--space-3);
}
.footer-col a:hover {
  color: var(--color-text-inverse);
}
.footer-bottom {
  margin-top: var(--space-8);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: space-between;
  font-size: var(--text-xs);
  color: oklch(from var(--color-text-inverse) l c h / 0.5);
}
@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}

/* -------------------------------------------------------------------------
   19. INTERIOR PAGE HEADER (About / Services / Memberships / Contact)
   ------------------------------------------------------------------------- */
.page-header {
  padding-block: clamp(var(--space-16), 8vw, var(--space-24)) clamp(var(--space-10), 5vw, var(--space-16));
  background: var(--color-surface-offset);
}
.page-header .eyebrow {
  margin-bottom: var(--space-4);
}
.page-header h1 {
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.015em;
  max-width: 24ch;
}
.page-header p {
  margin-top: var(--space-4);
  font-size: var(--text-base);
  max-width: 56ch;
}
.breadcrumb {
  display: flex;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-bottom: var(--space-6);
}
.breadcrumb a {
  color: var(--color-text-faint);
  text-decoration: none;
}
.breadcrumb a:hover {
  color: var(--color-primary);
}

/* -------------------------------------------------------------------------
   20. TEAM (About page)
   ------------------------------------------------------------------------- */
.team-grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
}
.team-card {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.team-photo {
  aspect-ratio: 1/1;
  overflow: hidden;
}
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.team-info {
  padding: var(--space-5);
}
.team-info h3 {
  font-size: var(--text-base);
  font-weight: 620;
}
.team-info span {
  display: block;
  margin-top: 2px;
  font-size: var(--text-xs);
  color: var(--color-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.team-info p {
  margin-top: var(--space-3);
  font-size: var(--text-sm);
}
@media (min-width: 700px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* -------------------------------------------------------------------------
   21. STORY / MISSION (About page)
   ------------------------------------------------------------------------- */
.story-layout {
  display: grid;
  gap: var(--space-10);
  align-items: start;
}
.story-media {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 100px;
}
.story-media img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.story-body p + p {
  margin-top: var(--space-4);
}
.story-body p {
  font-size: var(--text-base);
  max-width: 62ch;
}
.mission-pull {
  margin-top: var(--space-8);
  padding-left: var(--space-6);
  border-left: 2px solid var(--color-primary);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 550;
  color: var(--color-text);
  max-width: 50ch;
}
@media (min-width: 900px) {
  .story-layout {
    grid-template-columns: 0.85fr 1.15fr;
  }
}

/* Join CTA — never flush to the viewport edge (GrapesJS often strips inline padding). */
.wb-dynamiccta-join,
[data-dynamic="cta-join"] {
  max-width: var(--content-default);
  margin-inline: auto;
  padding-inline: var(--space-5);
  padding-block: 0 var(--space-10);
  box-sizing: border-box;
}

/* About story: sit the Join button under the copy column, matching .story-layout. */
section:has(.story-layout) + .wb-dynamiccta-join,
section:has(.story-layout) + [data-dynamic="cta-join"] {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  align-items: start;
  padding-top: 0;
}

section:has(.story-layout) + .wb-dynamiccta-join > a,
section:has(.story-layout) + [data-dynamic="cta-join"] > a {
  justify-self: start;
}

@media (min-width: 900px) {
  section:has(.story-layout) + .wb-dynamiccta-join,
  section:has(.story-layout) + [data-dynamic="cta-join"] {
    grid-template-columns: 0.85fr 1.15fr;
  }

  section:has(.story-layout) + .wb-dynamiccta-join > a,
  section:has(.story-layout) + [data-dynamic="cta-join"] > a {
    grid-column: 2;
  }
}

/* -------------------------------------------------------------------------
   22. SERVICES PAGE — service detail blocks
   ------------------------------------------------------------------------- */
.service-detail {
  display: grid;
  gap: var(--space-8);
  padding-block: clamp(var(--space-10), 5vw, var(--space-16));
  border-top: 1px solid var(--color-divider);
}
.service-detail:first-of-type {
  border-top: none;
}
.service-detail-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.service-detail-media img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.service-detail-body .program-tag {
  margin-bottom: var(--space-4);
}
.service-detail-body h3 {
  font-size: var(--text-xl);
  font-weight: 650;
}
.service-detail-body p {
  margin-top: var(--space-4);
  font-size: var(--text-base);
  max-width: 60ch;
}
.service-includes {
  margin-top: var(--space-6);
  display: grid;
  gap: var(--space-2);
}
.service-includes li {
  display: flex;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.service-includes li svg {
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 3px;
}
@media (min-width: 850px) {
  .service-detail {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
  }
  .service-detail:nth-of-type(even) .service-detail-media {
    order: 2;
  }
}

/* =========================================================================
   ARCHITECTURE LAYERS — developer-facing toggle overlay system
   (Not part of the customer-facing site chrome; visible only in dev mode)
   ========================================================================= */
[data-layers='off'] .layer-outline,
[data-layers='off'] .layer-tag,
[data-layers='off'] .dev-note {
  display: none !important;
}

[data-layers='on'] [data-layer] {
  position: relative;
  margin-top: 26px;
  padding-top: 16px;
}
[data-layers='on'] .header[data-layer] {
  margin-top: 0;
  padding-top: 0;
}
[data-layers='on'] .header[data-layer] > .layer-tag {
  top: 4px;
  left: var(--space-5);
}
[data-layers='on'] .brand-logo[data-layer] {
  padding-top: 0;
  margin-top: 0;
}
[data-layers='on'] [data-layer]::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 2px dashed var(--layer-color);
  border-radius: var(--radius-md);
  pointer-events: none;
  z-index: 40;
}
[data-layers='on'] [data-layer='master'] {
  --layer-color: var(--layer-master);
}
[data-layers='on'] [data-layer='industry'] {
  --layer-color: var(--layer-industry);
}
[data-layers='on'] [data-layer='org'] {
  --layer-color: var(--layer-org);
}

.layer-tag {
  position: absolute;
  top: -13px;
  left: 10px;
  z-index: 41;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 4px 9px 4px 7px;
  border-radius: var(--radius-full);
  color: #fff;
  pointer-events: none;
  line-height: 1.4;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
.layer-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  filter: brightness(1.6);
}
.layer-tag--master {
  background: var(--layer-master);
}
.layer-tag--industry {
  background: var(--layer-industry);
}
.layer-tag--org {
  background: var(--layer-org);
}

.dev-note {
  position: relative;
  z-index: 41;
  margin-top: var(--space-4);
  padding: var(--space-3) var(--space-4);
  background: var(--layer-org-soft);
  border: 1px dashed var(--layer-org);
  border-radius: var(--radius-md);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--color-text);
  max-width: 62ch;
}
.dev-note strong {
  color: var(--layer-org);
  font-weight: 700;
}

/* Small nested layer targets (e.g. the header brand logo) are too small to
   host a wrapped tag on top of them without clipping — push the tag out
   to the right instead of pinning it top-left. */
.brand-logo[data-layer] {
  overflow: visible;
}
.brand-logo[data-layer] > .layer-tag {
  top: 50%;
  left: 100%;
  transform: translateY(-50%);
  margin-left: 10px;
  white-space: nowrap;
}
.brand-logo[data-layer]::before {
  inset: -4px;
}

/* Layer toggle pill */
.layer-toggle {
  position: fixed;
  right: var(--space-5);
  bottom: var(--space-5);
  z-index: 200;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  background: var(--color-text);
  color: var(--color-text-inverse);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  border: 1px solid oklch(from var(--color-text-inverse) l c h / 0.14);
}
.layer-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px oklch(0.2 0.02 40 / 0.28);
}
.layer-toggle .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-text-faint);
  transition: background 0.2s var(--ease-out);
}
.layer-toggle.is-on .dot {
  background: var(--layer-org);
  box-shadow: 0 0 0 3px var(--layer-org-soft);
}

/* Legend panel */
.layer-legend {
  position: fixed;
  right: var(--space-5);
  bottom: 76px;
  z-index: 199;
  width: min(320px, calc(100vw - 2 * var(--space-5)));
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-5);
  transform: translateY(12px) scale(0.98);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s var(--ease-out),
    transform 0.2s var(--ease-out);
  max-height: min(70vh, 520px);
  overflow-y: auto;
}
.layer-legend.is-visible {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}
.layer-legend h3 {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text);
}
.layer-legend > p {
  margin-top: var(--space-2);
  font-size: 11.5px;
  color: var(--color-text-muted);
  line-height: 1.5;
}
.legend-rows {
  margin-top: var(--space-4);
  display: grid;
  gap: var(--space-3);
}
.legend-row {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}
.legend-swatch {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 2px;
  border: 2px dashed;
}
.legend-swatch--master {
  border-color: var(--layer-master);
  background: var(--layer-master-soft);
}
.legend-swatch--industry {
  border-color: var(--layer-industry);
  background: var(--layer-industry-soft);
}
.legend-swatch--org {
  border-color: var(--layer-org);
  background: var(--layer-org-soft);
}
.legend-row strong {
  display: block;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11.5px;
  color: var(--color-text);
}
.legend-row span {
  display: block;
  font-size: 11.5px;
  color: var(--color-text-muted);
  margin-top: 2px;
  line-height: 1.45;
}
.legend-priority {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-divider);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.legend-priority b {
  color: var(--layer-org);
}
.legend-priority .gt {
  color: var(--color-text-faint);
}

@media (max-width: 480px) {
  .layer-legend {
    right: var(--space-4);
    left: var(--space-4);
    width: auto;
    bottom: 72px;
  }
  .layer-toggle {
    right: var(--space-4);
    bottom: var(--space-4);
    padding: var(--space-3) var(--space-4);
  }
  .layer-toggle span.label-full {
    display: none;
  }
}

/* Vega: force light Momentum template; hide demo architecture overlays */
html, :root { color-scheme: light; }
.layer-tag, .layer-legend, [data-layer-toggle], .theme-toggle, .dev-note { display: none !important; }
:root, [data-theme='light'] {
  --color-brand: var(--accent, #d95d2b);
  --color-brand-hover: color-mix(in srgb, var(--accent, #d95d2b) 85%, #000);
  --color-brand-active: color-mix(in srgb, var(--accent, #d95d2b) 70%, #000);
  --color-primary: var(--color-brand);
  --color-primary-hover: var(--color-brand-hover);
  --color-primary-active: var(--color-brand-active);
  --font-display: var(--wb-font-heading, 'General Sans', 'Segoe UI', sans-serif);
  --font-body: var(--wb-font-body, 'Satoshi', 'Segoe UI', sans-serif);
}
