/* ==========================================================================
   THE CARRY INSTITUTE — Website Redesign
   Design Tokens & Component Styles (shared across all pages)
   Palette concept: Slate & Copper — cool slate blue-gray authority + warm
   parchment neutrals + warm copper/rust accent. Matches landing-page/style.css
   exactly for brand consistency across both properties.
   ========================================================================== */

:root,
[data-theme='light'] {
  /* Surfaces — warm parchment/stone neutrals */
  --color-bg: #f6f4ef;
  --color-surface: #fbfaf6;
  --color-surface-2: #ffffff;
  --color-surface-offset: #eeebe2;
  --color-surface-offset-2: #e5e1d5;
  --color-surface-dynamic: #dcd7c8;
  --color-divider: #ddd8ca;
  --color-border: #cfc9b8;

  /* Text — near-black cool slate ink. 14.7:1 on --color-bg. */
  --color-text: #1c2128;
  --color-text-muted: #5b6270;
  --color-text-faint: #9aa0a8;
  --color-text-inverse: #f6f4ef;

  /* Primary — cool slate blue-gray. 11.3:1 on --color-bg. */
  --color-primary: #2d3540;
  --color-primary-hover: #232933;
  --color-primary-active: #1a1f27;
  --color-primary-highlight: #dfe3e7;

  /* Accent — warm copper/rust (CTAs, highlights) */
  --color-accent: #a85a34;
  --color-accent-hover: #8f4b2b;
  --color-accent-active: #773d23;
  --color-accent-highlight: #f1ddd2;

  --color-warning: #93511c;
  --color-warning-hover: #713e15;
  --color-warning-highlight: #e4d3c0;

  --color-success: #3c6b3f;
  --color-success-highlight: #d8e3d3;

  --color-error: #8a3130;
  --color-error-highlight: #e6d3d0;

  --radius-sm: 0.3rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.85rem;
  --radius-xl: 1.25rem;
  --radius-full: 9999px;

  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-sm: 0 1px 2px oklch(0.2 0.02 260 / 0.08);
  --shadow-md: 0 6px 20px oklch(0.2 0.02 260 / 0.1);
  --shadow-lg: 0 20px 48px oklch(0.15 0.02 260 / 0.16);

  --content-narrow: 640px;
  --content-default: 980px;
  --content-wide: 1220px;
  --content-full: 100%;

  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-body: 'General Sans', 'Inter', -apple-system, sans-serif;

  /* Brand-dark surface — fixed slate that never flips with theme, for
     full-bleed dark sections (hero, footer, featured cards). Prevents
     these sections turning light blue in dark mode, which made their
     hardcoded light/white text unreadable. */
  --color-brand-dark: #2d3540;
  --color-brand-dark-hover: #232933;
  --color-on-brand: #f6f4ef;
}

[data-theme='dark'] {
  --color-bg: #12161f;
  --color-surface: #161b26;
  --color-surface-2: #1b2130;
  --color-surface-offset: #1e2531;
  --color-surface-offset-2: #262e3d;
  --color-surface-dynamic: #313a4a;
  --color-divider: #2a3140;
  --color-border: #3a4356;

  --color-text: #e8e6de;
  --color-text-muted: #a4aab5;
  --color-text-faint: #6b7280;
  --color-text-inverse: #12161f;

  --color-primary: #a9bbcb;
  --color-primary-hover: #c3d1dc;
  --color-primary-active: #dbe4ea;
  --color-primary-highlight: #263045;

  --color-accent: #d98a5e;
  --color-accent-hover: #e6a67e;
  --color-accent-active: #f0bd9a;
  --color-accent-highlight: #3a2a1e;

  --color-warning: #d99a63;
  --color-warning-hover: #e6b385;
  --color-warning-highlight: #3d3222;

  --color-success: #8fbf8f;
  --color-success-highlight: #263a26;

  --color-error: #d18a86;
  --color-error-highlight: #3d2523;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
  --shadow-md: 0 6px 20px oklch(0 0 0 / 0.35);
  --shadow-lg: 0 20px 48px oklch(0 0 0 / 0.45);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #12161f;
    --color-surface: #161b26;
    --color-surface-2: #1b2130;
    --color-surface-offset: #1e2531;
    --color-surface-offset-2: #262e3d;
    --color-surface-dynamic: #313a4a;
    --color-divider: #2a3140;
    --color-border: #3a4356;
    --color-text: #e8e6de;
    --color-text-muted: #a4aab5;
    --color-text-faint: #6b7280;
    --color-text-inverse: #12161f;
    --color-primary: #a9bbcb;
    --color-primary-hover: #c3d1dc;
    --color-primary-active: #dbe4ea;
    --color-primary-highlight: #263045;
    --color-accent: #d98a5e;
    --color-accent-hover: #e6a67e;
    --color-accent-active: #f0bd9a;
    --color-accent-highlight: #3a2a1e;
    --color-warning: #d99a63;
    --color-warning-hover: #e6b385;
    --color-warning-highlight: #3d3222;
    --color-success: #8fbf8f;
    --color-success-highlight: #263a26;
    --color-error: #d18a86;
    --color-error-highlight: #3d2523;
    --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
    --shadow-md: 0 6px 20px oklch(0 0 0 / 0.35);
    --shadow-lg: 0 20px 48px oklch(0 0 0 / 0.45);
  }
}

/* Type scale */
:root {
  --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.25rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 4.5rem);
  --text-hero: clamp(2.75rem, 0.9rem + 6vw, 5.5rem);
}

/* Spacing */
:root {
  --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;
}

/* ==========================================================================
   Layout primitives
   ========================================================================== */

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

section {
  padding-block: clamp(var(--space-16), 9vw, var(--space-32));
}

.section-tight {
  padding-block: clamp(var(--space-10), 6vw, var(--space-20));
}

.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.14em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background: currentColor;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  color: var(--color-text);
  letter-spacing: -0.01em;
}

h2 {
  font-size: var(--text-xl);
  font-weight: 600;
}

h3 {
  font-size: var(--text-lg);
  font-weight: 600;
}

.section-head {
  max-width: 62ch;
  margin-bottom: clamp(var(--space-8), 5vw, var(--space-12));
}
.section-head p {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  margin-top: var(--space-3);
}

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

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  min-height: 44px;
  white-space: nowrap;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff8ee;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--color-accent-hover);
  box-shadow: var(--shadow-md);
}
.btn-primary:active {
  background: var(--color-accent-active);
}

.btn-secondary {
  background: transparent;
  border-color: oklch(from var(--color-text-inverse) l c h / 0.35);
  color: var(--color-text-inverse);
}
.btn-secondary:hover {
  background: oklch(from var(--color-text-inverse) l c h / 0.1);
  border-color: oklch(from var(--color-text-inverse) l c h / 0.6);
}

.btn-outline {
  background: transparent;
  border-color: var(--color-border);
  color: var(--color-text);
}
.btn-outline:hover {
  background: var(--color-surface-offset);
  border-color: var(--color-text-faint);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: var(--space-2) var(--space-4);
  min-height: 38px;
  font-size: var(--text-xs);
}

/* ==========================================================================
   Header / Nav
   ========================================================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(from var(--color-bg) l c h / 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.08);
  transition:
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.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);
  padding-block: var(--space-3);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-base);
  text-decoration: none;
  line-height: 1.1;
}
.brand svg {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}
.brand-name {
  display: flex;
  flex-direction: column;
}
.brand-name span:last-child {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
}
.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);
}
.nav-links a[aria-current='page'] {
  color: var(--color-accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.theme-toggle {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  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: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
  .header-actions .btn-primary {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
}

/* Mobile menu sheet */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  padding: var(--space-6) var(--space-5);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}
.mobile-menu.is-open {
  transform: translateX(0);
}
.mobile-menu-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-10);
}
.mobile-menu-close {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
}
.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.mobile-menu nav a {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-text);
  text-decoration: none;
}
.mobile-menu .btn {
  margin-top: var(--space-8);
}

/* ==========================================================================
   Page hero (interior pages — shorter than home hero)
   ========================================================================== */

.page-hero {
  position: relative;
  background: var(--color-brand-dark);
  color: var(--color-on-brand);
  padding-block: clamp(var(--space-16), 10vw, var(--space-24));
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 20%, oklch(0.55 0.08 45 / 0.18), transparent 60%),
    radial-gradient(circle at 10% 90%, oklch(0.3 0.02 260 / 0.4), transparent 55%);
}
.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
}
.page-hero .eyebrow {
  color: #e8b892;
}
.page-hero h1 {
  font-size: var(--text-2xl);
  font-weight: 500;
  color: #fff;
  line-height: 1.08;
  margin-top: var(--space-4);
  margin-bottom: var(--space-5);
}
.page-hero p {
  font-size: var(--text-lg);
  color: oklch(0.94 0.01 260 / 0.85);
  max-width: 56ch;
}
.page-hero .hero-ctas {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-top: var(--space-8);
}
.page-hero .hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  font-size: var(--text-sm);
  color: oklch(0.94 0.01 260 / 0.78);
  margin-top: var(--space-8);
}
.page-hero .hero-meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.page-hero .hero-meta-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Breadcrumb-ish page label under header, above hero content (used sparingly) */
.page-kicker {
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: oklch(0.94 0.01 260 / 0.6);
}

/* ==========================================================================
   Full-bleed Home hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  color: var(--color-on-brand);
  overflow: hidden;
  background: var(--color-brand-dark);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    oklch(0.14 0.03 260 / 0.94) 0%,
    oklch(0.14 0.03 260 / 0.82) 38%,
    oklch(0.14 0.03 260 / 0.45) 68%,
    oklch(0.14 0.03 260 / 0.25) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding-block: clamp(var(--space-20), 12vw, var(--space-32));
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #e8b892;
  margin-bottom: var(--space-5);
}
.hero-eyebrow::before {
  content: '';
  width: 20px;
  height: 1px;
  background: currentColor;
}

.hero h1 {
  font-size: var(--text-hero);
  font-weight: 500;
  color: #fff;
  line-height: 1.04;
  margin-bottom: var(--space-6);
}
.hero h1 em {
  font-style: italic;
  color: #e8b892;
}

.hero-sub {
  font-size: var(--text-lg);
  color: oklch(0.94 0.01 260 / 0.88);
  max-width: 46ch;
  margin-bottom: var(--space-8);
}

.hero-ctas {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-10);
}

.hero-price-pill {
  display: inline-flex;
  align-items: baseline;
  gap: var(--space-2);
  background: oklch(1 0 0 / 0.1);
  border: 1px solid oklch(1 0 0 / 0.2);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-5);
  font-size: var(--text-sm);
  color: #fff;
  margin-bottom: var(--space-6);
}
.hero-price-pill strong {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: #e8b892;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  font-size: var(--text-sm);
  color: oklch(0.94 0.01 260 / 0.75);
}
.hero-meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.hero-meta-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ==========================================================================
   Trust bar
   ========================================================================== */

.trust-bar {
  background: var(--color-surface-offset);
  border-bottom: 1px solid var(--color-divider);
  padding-block: var(--space-6);
}
.trust-bar-inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  justify-content: space-between;
  align-items: center;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
}
.trust-item svg {
  width: 20px;
  height: 20px;
  color: var(--color-accent);
  flex-shrink: 0;
}
.trust-item img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}

/* ==========================================================================
   Credibility / Why train with us
   ========================================================================== */

.why {
  background: var(--color-surface);
}

.why-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(var(--space-10), 6vw, var(--space-20));
  align-items: start;
}

.why-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.why-image img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}
.why-image figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-5);
  background: linear-gradient(to top, oklch(0.1 0.02 260 / 0.75), transparent);
  color: #fff;
  font-size: var(--text-xs);
  max-width: none;
}

.pillar-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.pillar {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-4);
  padding-block: var(--space-5);
  border-top: 1px solid var(--color-divider);
}
.pillar:first-child {
  border-top: none;
  padding-top: 0;
}
.pillar-index {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-accent);
  font-weight: 600;
  line-height: 1.3;
}
.pillar h3 {
  margin-bottom: var(--space-2);
}
.pillar p {
  font-size: var(--text-base);
  margin: 0;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-10);
  padding-top: var(--space-10);
  border-top: 1px solid var(--color-divider);
}
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-primary);
  font-weight: 600;
}
.stat span {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ==========================================================================
   Courses
   ========================================================================== */

.courses {
  background: var(--color-surface-offset);
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.course-group {
  margin-bottom: clamp(var(--space-12), 6vw, var(--space-20));
}
.course-group:last-child {
  margin-bottom: 0;
}
.course-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
}
.course-group-head h2 {
  font-size: var(--text-xl);
  margin: 0;
}
.course-group-head p {
  font-size: var(--text-sm);
  margin: 0;
  max-width: 50ch;
}

.course-card {
  background: var(--color-surface-2);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  border: 1px solid oklch(from var(--color-text) l c h / 0.06);
}
.course-card:hover {
  box-shadow: var(--shadow-md);
}

.course-card--featured {
  background: var(--color-brand-dark);
  color: var(--color-on-brand);
}
.course-card--featured p,
.course-card--featured .course-duration {
  color: oklch(0.94 0.01 260 / 0.78);
}
.course-card--featured h3 {
  color: #fff;
}
.course-card--featured .course-price {
  color: #e8b892;
}
.course-card--featured .course-price small {
  color: oklch(0.94 0.01 260 / 0.7);
}
.course-card--featured .course-meta {
  border-top-color: oklch(1 0 0 / 0.15);
}
.course-card--featured .badge {
  background: oklch(1 0 0 / 0.14);
  color: #fff;
}
.course-card--featured .btn-outline {
  border-color: oklch(1 0 0 / 0.35);
  color: #fff;
}
.course-card--featured .btn-outline:hover {
  background: oklch(1 0 0 / 0.1);
}

.course-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.badge {
  display: inline-flex;
  align-items: center;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-accent-hover);
  background: var(--color-accent-highlight);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  white-space: normal;
  line-height: 1.3;
  text-align: left;
}

.course-card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.course-card p {
  font-size: var(--text-sm);
  margin-bottom: var(--space-5);
  flex-grow: 1;
}

.course-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-divider);
  margin-bottom: var(--space-5);
}

.course-price {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-primary);
}
.course-price small {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-muted);
  margin-left: var(--space-1);
}

.course-duration {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-align: right;
}

.course-card--featured .course-price small {
  color: oklch(0.94 0.01 260 / 0.7);
}

.courses-note {
  margin-top: var(--space-10);
  padding: var(--space-5) var(--space-6);
  background: var(--color-surface-2);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  font-size: var(--text-sm);
  display: flex;
  gap: var(--space-3);
}
.courses-note svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--color-accent);
  margin-top: 2px;
}
.courses-note p {
  margin: 0;
  font-size: var(--text-sm);
}
.courses-note strong {
  color: var(--color-text);
}

/* ==========================================================================
   Comparison table
   ========================================================================== */

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--color-surface-2);
  box-shadow: var(--shadow-sm);
  position: relative;
  -webkit-overflow-scrolling: touch;
}
/* Mobile scroll affordance: fade + hint text so a clipped table doesn't look broken */
@media (max-width: 720px) {
  .table-wrap {
    background-image: linear-gradient(to left, var(--color-surface-2) 0%, transparent 12%);
    background-repeat: no-repeat;
    background-position: top right;
    background-size: 40px 100%;
  }
  .table-wrap::after {
    content: '\2192 Scroll for price & prerequisite';
    display: block;
    text-align: center;
    font-size: var(--text-xs);
    color: var(--color-text-faint);
    padding: var(--space-2) 0;
    background: var(--color-surface-offset);
    border-top: 1px solid var(--color-border);
  }
}
.compare-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: var(--text-sm);
}
.compare-table th,
.compare-table td {
  padding: var(--space-4) var(--space-5);
  text-align: left;
  border-bottom: 1px solid var(--color-divider);
  vertical-align: top;
}
.compare-table thead th {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  background: var(--color-surface-offset);
  white-space: nowrap;
}
.compare-table tbody tr:last-child td {
  border-bottom: none;
}
.compare-table tbody tr:hover {
  background: var(--color-surface-offset);
}
.compare-table td.course-name {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
}
.compare-table td.price-cell {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-accent-hover);
  white-space: nowrap;
}
[data-theme='dark'] .compare-table td.price-cell {
  color: var(--color-accent);
}

/* ==========================================================================
   CCL explainer
   ========================================================================== */

.ccl {
  background: var(--color-surface);
}

.ccl-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(var(--space-10), 6vw, var(--space-16));
  align-items: start;
}

.ccl-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.ccl-step {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: var(--space-4);
  padding-block: var(--space-5);
  position: relative;
}
.ccl-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 15px;
  top: 44px;
  bottom: -4px;
  width: 1px;
  background: var(--color-divider);
}
.ccl-step-num {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--color-brand-dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  z-index: 1;
}
.ccl-step h3 {
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-1);
}
.ccl-step p {
  font-size: var(--text-sm);
  margin: 0;
}

.ccl-card {
  background: var(--color-brand-dark);
  color: var(--color-on-brand);
  border-radius: var(--radius-lg);
  padding: clamp(var(--space-8), 5vw, var(--space-10));
  box-shadow: var(--shadow-lg);
}
.ccl-card h3 {
  color: #fff;
  font-size: var(--text-lg);
  margin-bottom: var(--space-4);
}
.ccl-card ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}
.ccl-card li {
  display: flex;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: oklch(0.94 0.01 260 / 0.88);
  max-width: none;
}
.ccl-card li svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: #e8b892;
  margin-top: 1px;
}
.ccl-fee {
  background: oklch(1 0 0 / 0.08);
  border: 1px solid oklch(1 0 0 / 0.15);
  border-radius: var(--radius-md);
  padding: var(--space-5);
}
.ccl-fee p {
  color: oklch(0.94 0.01 260 / 0.85);
  font-size: var(--text-sm);
  margin: 0;
}
.ccl-fee strong {
  color: #e8b892;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  display: block;
  margin-bottom: var(--space-1);
}

/* Simple content section for guide/FAQ pages */
.content-block {
  max-width: 72ch;
}
.content-block h2 {
  margin-top: var(--space-12);
  margin-bottom: var(--space-4);
}
.content-block h2:first-child {
  margin-top: 0;
}
.content-block h3 {
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
  font-size: var(--text-base);
}
.content-block p {
  font-size: var(--text-base);
  margin-bottom: var(--space-4);
}
.content-block ul,
.content-block ol {
  margin-bottom: var(--space-4);
  padding-left: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.content-block li {
  font-size: var(--text-base);
  color: var(--color-text-muted);
}
.content-block strong {
  color: var(--color-text);
}

.callout {
  background: var(--color-accent-highlight);
  border: 1px solid oklch(from var(--color-accent) l c h / 0.3);
  border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-6);
  margin-block: var(--space-6);
  display: flex;
  gap: var(--space-3);
}
.callout svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--color-accent-hover);
  margin-top: 2px;
}
[data-theme='dark'] .callout svg {
  color: var(--color-accent);
}
.callout p {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--color-text);
}
.callout strong {
  color: var(--color-text);
}

.callout--muted {
  background: var(--color-surface-offset);
  border-color: var(--color-border);
}
.callout--muted svg {
  color: var(--color-text-muted);
}

/* Numbered step list used on CCL guide */
.step-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: var(--space-6) 0;
}
.step-item {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: var(--space-4);
  padding-block: var(--space-5);
  position: relative;
}
.step-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 17px;
  top: 48px;
  bottom: -4px;
  width: 1px;
  background: var(--color-divider);
}
.step-num {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--color-brand-dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  z-index: 1;
}
.step-item h3 {
  margin: 0 0 var(--space-1);
  font-size: var(--text-base);
}
.step-item p {
  margin: 0;
  font-size: var(--text-sm);
}

/* ==========================================================================
   How it works
   ========================================================================== */

.how {
  background: var(--color-surface-offset);
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.how-card {
  background: var(--color-surface-2);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  border: 1px solid oklch(from var(--color-text) l c h / 0.06);
}
.how-num {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-accent);
  font-weight: 600;
  line-height: 1;
  margin-bottom: var(--space-4);
  display: block;
  opacity: 0.5;
}
@supports (-webkit-text-stroke: 1px black) {
  .how-num {
    -webkit-text-stroke: 1.5px var(--color-accent);
    color: transparent;
    opacity: 1;
  }
}
.how-card h3 {
  font-size: var(--text-base);
  margin-bottom: var(--space-2);
}
.how-card p {
  font-size: var(--text-sm);
  margin: 0;
}

.how-cta {
  margin-top: var(--space-10);
  display: flex;
  align-items: center;
  gap: var(--space-5);
  flex-wrap: wrap;
}
.how-cta p {
  font-size: var(--text-sm);
  margin: 0;
}

/* ==========================================================================
   Community strip (image + quote)
   ========================================================================== */

.community {
  background: var(--color-brand-dark);
  color: var(--color-on-brand);
}
.community-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-8), 6vw, var(--space-16));
  align-items: center;
}
.community-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.community-image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.community blockquote {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  line-height: 1.3;
  color: #fff;
  margin-bottom: var(--space-6);
  max-width: none;
}
.community cite {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-size: var(--text-sm);
  color: oklch(0.94 0.01 260 / 0.75);
}

/* ==========================================================================
   Reviews (new-business honest section)
   ========================================================================== */

.reviews {
  background: var(--color-surface);
}
.reviews-card {
  background: var(--color-surface-2);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-8), 6vw, var(--space-12));
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
}
.reviews-icon {
  width: 56px;
  height: 56px;
  margin-inline: auto;
  margin-bottom: var(--space-5);
  border-radius: var(--radius-full);
  background: var(--color-accent-highlight);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent-hover);
}
[data-theme='dark'] .reviews-icon {
  color: var(--color-accent);
}
.reviews-icon svg {
  width: 28px;
  height: 28px;
}
.reviews-card h2 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}
.reviews-card p {
  font-size: var(--text-base);
  max-width: 52ch;
  margin-inline: auto;
  margin-bottom: var(--space-6);
}
.reviews-stars {
  display: flex;
  justify-content: center;
  gap: var(--space-1);
  margin-bottom: var(--space-5);
  color: var(--color-text-faint);
}
.reviews-stars svg {
  width: 22px;
  height: 22px;
}

/* ==========================================================================
   FAQ accordion
   ========================================================================== */

.faq {
  background: var(--color-surface-offset);
}
.faq-list {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.faq-item {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.faq-item summary {
  padding: var(--space-5) var(--space-6);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--color-text);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary .faq-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--color-accent);
  transition: transform var(--transition-interactive);
}
.faq-item[open] summary .faq-icon {
  transform: rotate(45deg);
}
.faq-item summary:hover {
  color: var(--color-accent-hover);
}
.faq-answer {
  padding: 0 var(--space-6) var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.faq-answer p {
  margin: 0;
}
.faq-answer p + p {
  margin-top: var(--space-3);
}
.faq-answer a {
  color: var(--color-accent-hover);
  font-weight: 600;
  text-decoration: underline;
}
[data-theme='dark'] .faq-answer a {
  color: var(--color-accent);
}

/* Generic inline link styling wherever body copy links appear outside
   explicitly-styled components (content-block, callout, faq already covered) */
.hero-sub a,
.community cite a {
  color: inherit;
  text-decoration: underline;
  font-weight: 600;
}

/* ==========================================================================
   Signup / Contact
   ========================================================================== */

.signup {
  background: var(--color-surface);
}
.signup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-10), 6vw, var(--space-16));
}

.form-card {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(var(--space-6), 4vw, var(--space-8));
  box-shadow: var(--shadow-sm);
}
.form-card h3 {
  margin-bottom: var(--space-2);
}
.form-card > p {
  font-size: var(--text-sm);
  margin-bottom: var(--space-6);
}

.field {
  margin-bottom: var(--space-4);
}
.field label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  font-size: var(--text-base);
  min-height: 44px;
}
.field textarea {
  min-height: 96px;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
  border-color: var(--color-primary);
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
.form-fineprint {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-top: var(--space-3);
}

.signup-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.contact-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  margin-top: var(--space-8);
}
.contact-item {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}
.contact-item svg {
  width: 22px;
  height: 22px;
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-item h3 {
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: var(--space-1);
}
.contact-item p,
.contact-item a {
  font-size: var(--text-base);
  color: var(--color-text);
  margin: 0;
  text-decoration: none;
}
.contact-item a:hover {
  color: var(--color-accent);
}

/* Static map placeholder graphic (no live embed since address is TBD) */
.map-placeholder {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-surface-offset);
  aspect-ratio: 16/9;
  margin-top: var(--space-8);
  display: flex;
  align-items: center;
  justify-content: center;
}
.map-placeholder svg.map-grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--color-border);
  opacity: 0.6;
}
.map-placeholder-pin {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  text-align: center;
  padding: var(--space-4);
}
.map-placeholder-pin svg {
  width: 32px;
  height: 32px;
  color: var(--color-accent);
}
.map-placeholder-pin span {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  max-width: 30ch;
}

/* ==========================================================================
   About page — instructor / facility content
   ========================================================================== */

.about-hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-10), 6vw, var(--space-16));
  align-items: center;
}
.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.instructor-profile {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-6);
  align-items: start;
  background: var(--color-surface-2);
  border: 1px solid oklch(from var(--color-text) l c h / 0.06);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
}
.instructor-avatar {
  width: 88px;
  height: 88px;
  border-radius: var(--radius-full);
  background: var(--color-brand-dark);
  color: #e8b892;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.instructor-bio h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-1);
}
.instructor-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-accent-hover);
  margin-bottom: var(--space-3);
}
[data-theme='dark'] .instructor-title {
  color: var(--color-accent);
}
.instructor-badges {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}
.instructor-badges img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}
.instructor-badges span {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
}
.instructor-bio p:not(.instructor-title) {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}
.instructor-bio p:last-child {
  margin-bottom: 0;
}
@media (max-width: 640px) {
  .instructor-profile {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .instructor-avatar {
    margin-inline: auto;
  }
}

.credential-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-10);
}
.credential-card {
  background: var(--color-surface-2);
  border: 1px solid oklch(from var(--color-text) l c h / 0.06);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}
.credential-card svg {
  width: 28px;
  height: 28px;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}
.credential-card h3 {
  font-size: var(--text-base);
  margin-bottom: var(--space-2);
}
.credential-card p {
  font-size: var(--text-sm);
  margin: 0;
}

.placeholder-note {
  display: flex;
  gap: var(--space-3);
  background: var(--color-warning-highlight);
  border: 1px solid oklch(from var(--color-warning) l c h / 0.35);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  margin-top: var(--space-6);
  font-size: var(--text-sm);
}
.placeholder-note svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--color-warning);
  margin-top: 2px;
}
.placeholder-note p {
  margin: 0;
  color: var(--color-text);
}

.service-area-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}
.service-area-list span {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text);
}

/* ==========================================================================
   Final CTA band
   ========================================================================== */

.final-cta {
  background: var(--color-brand-dark);
  color: var(--color-on-brand);
  text-align: center;
}
.final-cta h2 {
  color: #fff;
  font-size: var(--text-xl);
  margin-bottom: var(--space-4);
}
.final-cta p {
  color: oklch(0.94 0.01 260 / 0.82);
  max-width: 56ch;
  margin-inline: auto;
  margin-bottom: var(--space-8);
  font-size: var(--text-base);
}
.final-cta .hero-ctas {
  justify-content: center;
  margin-bottom: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: var(--color-brand-dark);
  color: var(--color-on-brand);
  padding-block: var(--space-16) var(--space-8);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-10);
  padding-bottom: var(--space-10);
  border-bottom: 1px solid oklch(1 0 0 / 0.12);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  color: #fff;
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
}
.footer-brand svg {
  width: 34px;
  height: 34px;
}
.footer p {
  color: oklch(0.94 0.01 260 / 0.7);
  font-size: var(--text-sm);
  max-width: 34ch;
}
.footer h4 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: oklch(0.94 0.01 260 / 0.55);
  margin-bottom: var(--space-4);
  font-weight: 600;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.footer-links a {
  color: oklch(0.94 0.01 260 / 0.8);
  font-size: var(--text-sm);
  text-decoration: none;
}
.footer-links a:hover {
  color: #e8b892;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding-top: var(--space-6);
  font-size: var(--text-xs);
  color: oklch(0.94 0.01 260 / 0.55);
}
.footer-legal-note {
  max-width: none !important;
  width: 100%;
  padding-top: var(--space-4);
  color: oklch(0.94 0.01 260 / 0.45) !important;
  font-size: var(--text-xs) !important;
}

/* ==========================================================================
   Reveal-on-scroll (subtle)
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 980px) {
  .why-grid,
  .ccl-grid,
  .community-grid,
  .signup-grid,
  .about-hero-split {
    grid-template-columns: 1fr;
  }
  .why-image,
  .about-image {
    order: -1;
  }
  .course-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .how-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .credential-grid {
    grid-template-columns: 1fr;
  }
  .trust-bar-inner {
    justify-content: flex-start;
    gap: var(--space-5);
  }
}

@media (max-width: 620px) {
  .course-grid {
    grid-template-columns: 1fr;
  }
  .how-grid {
    grid-template-columns: 1fr;
  }
  .stat-row {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }
  .field-row {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    min-height: 100vh;
  }
  .hero-ctas .btn {
    width: 100%;
  }
  .hero-ctas {
    flex-direction: column;
  }
  .page-hero .hero-ctas .btn {
    width: 100%;
  }
  .page-hero .hero-ctas {
    flex-direction: column;
  }
  .course-group-head {
    flex-direction: column;
  }
}

/* ==========================================================================
   Compatibility patch layer — aliases used across interior pages
   (Home / Courses / CCL Guide / About / FAQ / Contact)
   ========================================================================== */

/* .hero-eyebrow used inside .page-hero as an alias of .eyebrow */
.page-hero .hero-eyebrow {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e8b892;
  margin: 0;
}
.page-hero h1 {
  max-width: 760px;
}
.page-hero .hero-sub {
  max-width: 60ch;
}

/* Step list secondary heading level compatibility (h3 or h4) */
.step-item h4 {
  margin: 0 0 var(--space-1);
  font-size: var(--text-base);
  font-family: var(--font-body);
  color: var(--color-text);
}

/* Callout accent variant (stronger accent border, used for cost breakdowns) */
.callout--accent {
  background: var(--color-accent-highlight);
  border-color: var(--color-accent);
}

/* Course detail list — small inline meta list inside course cards */
.course-detail-list {
  list-style: none;
  padding: 0;
  margin: var(--space-3) 0 var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.course-detail-list li {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  padding-left: var(--space-4);
  position: relative;
}
.course-detail-list li::before {
  content: '\2013';
  position: absolute;
  left: 0;
  color: var(--color-accent);
}

/* About hero split sits on a light surface, not the dark full-bleed hero —
   override the light-on-dark hero type styles so text stays readable */
.about-hero-split .hero-eyebrow,
.about-hero-split .eyebrow {
  color: var(--color-accent-hover);
}
[data-theme='dark'] .about-hero-split .hero-eyebrow,
[data-theme='dark'] .about-hero-split .eyebrow {
  color: var(--color-accent);
}
.about-hero-split h1 {
  color: var(--color-text);
}
.about-hero-split .hero-sub {
  color: var(--color-text-muted);
  max-width: 50ch;
}

/* About page hero split — alias grid (matches .about-hero-split children) */
.about-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-10), 6vw, var(--space-16));
  align-items: center;
}
.about-hero-grid figure {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin: 0;
}
.about-hero-grid figure img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

/* Credential icon wrapper (used inside .credential-card ahead of svg) */
.credential-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--color-accent-highlight);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}
.credential-icon svg {
  width: 22px;
  height: 22px;
  margin: 0;
  color: var(--color-accent-hover);
}
[data-theme='dark'] .credential-icon svg {
  color: var(--color-accent);
}

/* .map-placeholder / .map-placeholder-pin already defined above; the markup
   in contact.html uses that original component pattern directly. */

/* Contact page — info list (alias of .contact-list / .contact-item) */
.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  margin-top: var(--space-8);
}
.contact-info-item {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  text-decoration: none;
  padding: var(--space-3);
  margin: calc(var(--space-3) * -1);
  border-radius: var(--radius-md);
  transition: background-color var(--transition-fast);
}
a.contact-info-item:hover {
  background: var(--color-surface-2);
}
.contact-info-item svg {
  width: 22px;
  height: 22px;
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-info-item div {
  display: flex;
  flex-direction: column;
}
.contact-info-item span {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  font-weight: 600;
  margin-bottom: var(--space-1);
}
.contact-info-item strong {
  font-size: var(--text-base);
  color: var(--color-text);
  font-weight: 600;
}
.contact-info-item small {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-top: var(--space-1);
}
.contact-info-item--static {
  cursor: default;
}

/* Contact form field rows (alias of .field) */
.form-card form {
  margin-top: var(--space-2);
}
.form-row {
  margin-bottom: var(--space-4);
}
.form-row label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: var(--text-base);
  font-family: var(--font-body);
  min-height: 44px;
}
.form-row textarea {
  min-height: 96px;
  resize: vertical;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
  border-color: var(--color-primary);
}

@media (max-width: 980px) {
  .about-hero-grid,
  .about-hero-split {
    grid-template-columns: 1fr;
  }
  .credential-grid {
    grid-template-columns: 1fr;
  }
}
