/* ============================================================
   Anger Therapy Now — site.css
   Pasadena Clinical Group · outpatient anger management group therapy
   ============================================================ */

/* ----- Reset (lean) ----- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; }
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; padding: 0; }
a { color: inherit; }
ul, ol { padding: 0; margin: 0; }

/* ----- Tokens ----- */
:root {
  --bg:           #f7f3ee;
  --bg-deep:      #efe7da;
  --surface:      #ffffff;
  --surface-warm: #fbf7f1;
  --ink:          #2b2521;
  --ink-soft:     #4a4039;
  --muted:        #6e645e;
  --muted-2:      #968a82;
  --line:         #e8e0d6;
  --line-strong:  #d8cdbf;

  --accent:       #b56b47;   /* clay/rust */
  --accent-deep:  #834a2f;
  --accent-soft:  #f3e3d6;

  --sage:         #8a9a7b;
  --sage-soft:    #e6ebe0;

  --gold:         #c89b58;
  --danger:       #b04a3a;

  --r-sm:  10px;
  --r-md:  16px;
  --r-lg:  24px;
  --r-xl:  36px;

  --shadow-sm: 0 2px 6px rgba(43, 37, 33, 0.06);
  --shadow-md: 0 12px 30px rgba(43, 37, 33, 0.08);
  --shadow-lg: 0 24px 60px rgba(43, 37, 33, 0.12);

  --serif: "Playfair Display", "Cormorant Garamond", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --container: 1200px;
  --reading: 64ch;
}

/* ----- Typography base ----- */
body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 0 0 0.4em;
}
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-family: var(--sans); font-weight: 600; letter-spacing: 0.01em; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; color: var(--ink); }

a {
  color: var(--accent-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 160ms ease;
}
a:hover { color: var(--accent); }

.eyebrow {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
  display: inline-block;
}

.lede {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.5vw, 1.35rem);
  line-height: 1.5;
  color: var(--ink-soft);
  font-weight: 400;
  font-style: italic;
}

.muted { color: var(--muted); }

/* ----- Skip link ----- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--ink);
  color: var(--bg);
  padding: 12px 16px;
  border-radius: var(--r-sm);
  text-decoration: none;
  z-index: 1000;
}
.skip-link:focus { top: 16px; }

/* ----- Container ----- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) { .container { padding: 0 32px; } }

.container-narrow { max-width: 780px; margin: 0 auto; padding: 0 24px; }
.container-prose  { max-width: 720px; margin: 0 auto; padding: 0 24px; }

/* ----- Top bar (above the nav) ----- */
.topbar {
  background: var(--ink);
  color: var(--bg);
  font-size: 0.84rem;
  padding: 8px 0;
}
.topbar a { color: var(--bg); text-decoration: none; }
.topbar a:hover { color: var(--accent-soft); }
.topbar-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
}
.topbar-row > div { display: flex; gap: 18px; flex-wrap: wrap; }
.topbar-row span,
.topbar-row a { display: inline-flex; align-items: center; gap: 6px; }

/* ----- Header / Nav ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 243, 238, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
}
.brand-mark {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  display: grid;
  place-items: center;
  color: white;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.05rem;
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; }
.brand-text span { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links > li { position: relative; }
.nav-links a, .nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  font-size: 0.94rem;
  text-decoration: none;
  color: var(--ink-soft);
  border-radius: var(--r-sm);
  transition: all 160ms ease;
  white-space: nowrap;
  font-weight: 500;
}
.nav-links a:hover, .nav-trigger:hover { color: var(--accent-deep); background: rgba(181, 107, 71, 0.08); }
.nav-links a.is-active { color: var(--accent-deep); }
.nav-trigger::after {
  content: "";
  width: 6px; height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-left: 2px;
  margin-bottom: 3px;
  transition: transform 200ms ease;
}
.nav-dropdown[aria-expanded="true"] .nav-trigger::after { transform: rotate(-135deg); margin-bottom: -2px; }

.nav-cta {
  background: var(--accent);
  color: white !important;
  padding: 10px 20px !important;
}
.nav-cta:hover { background: var(--accent-deep) !important; }

.nav-submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  padding: 8px;
  list-style: none;
  display: none;
  z-index: 60;
}
.nav-dropdown[aria-expanded="true"] .nav-submenu,
.nav-dropdown:focus-within .nav-submenu { display: block; }
.nav-submenu a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.nav-submenu a:hover { background: var(--accent-soft); color: var(--accent-deep); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  align-items: center;
  justify-content: center;
}
.nav-toggle-bar {
  position: relative;
  display: block;
  width: 22px; height: 2px;
  background: var(--ink);
  transition: all 200ms ease;
}
.nav-toggle-bar::before, .nav-toggle-bar::after {
  content: ""; position: absolute; left: 0;
  width: 22px; height: 2px;
  background: var(--ink);
  transition: all 200ms ease;
}
.nav-toggle-bar::before { top: -7px; }
.nav-toggle-bar::after  { top: 7px;  }
.site-header.is-open .nav-toggle-bar { background: transparent; }
.site-header.is-open .nav-toggle-bar::before { top: 0; transform: rotate(45deg); }
.site-header.is-open .nav-toggle-bar::after  { top: 0; transform: rotate(-45deg); }

@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--surface);
    padding: 16px;
    gap: 4px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    max-height: calc(100vh - 76px);
    overflow-y: auto;
  }
  .site-header.is-open .nav-links { display: flex; }
  .nav-links a, .nav-trigger { padding: 12px 14px; font-size: 1rem; }
  .nav-submenu {
    position: static;
    box-shadow: none;
    border: 0;
    background: var(--bg);
    padding: 4px 0 4px 16px;
    margin-top: 4px;
  }
  .nav-cta { margin-top: 8px; text-align: center; justify-content: center; }
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 200ms ease;
  border: 1.5px solid transparent;
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 6px 20px rgba(181, 107, 71, 0.25);
}
.btn-primary:hover { background: var(--accent-deep); transform: translateY(-1px); color: white; }
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-secondary:hover { background: var(--ink); color: var(--bg); }
.btn-ghost {
  background: transparent;
  color: var(--accent-deep);
  padding: 12px 0;
}
.btn-ghost:hover { color: var(--accent); }
.btn-arrow::after {
  content: "→";
  transition: transform 200ms ease;
}
.btn-arrow:hover::after { transform: translateX(4px); }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ----- Sections ----- */
section { padding: clamp(56px, 8vw, 96px) 0; }
section.tight { padding: clamp(40px, 5vw, 64px) 0; }
.section-title {
  text-align: center;
  margin-bottom: 48px;
}
.section-title p {
  max-width: 60ch;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.05rem;
}

/* ----- Hero ----- */
.hero {
  position: relative;
  padding: clamp(64px, 9vw, 120px) 0 clamp(72px, 9vw, 110px);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.1fr 1fr; gap: 64px; }
}
.hero h1 { margin-bottom: 24px; }
.hero p.lede { margin-bottom: 32px; }
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.hero-image {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-lg);
}
.hero-image img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-image-wide { aspect-ratio: 16 / 10; }

/* ----- Hero (page-level, with image) — for Conditions and Approach pages ----- */
.hero-page {
  padding: clamp(56px, 8vw, 96px) 0 clamp(56px, 8vw, 88px);
  background: linear-gradient(180deg, var(--surface-warm) 0%, var(--bg-deep) 100%);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.hero-page::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -80px;
  width: 320px; height: 320px;
  background: radial-gradient(circle at center, var(--accent-soft) 0%, transparent 65%);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}
.hero-page > .container { position: relative; z-index: 1; }
.hero-page-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
@media (min-width: 900px) {
  .hero-page-grid {
    grid-template-columns: 1.05fr 1fr;
    gap: 64px;
  }
}
@media (min-width: 1100px) {
  .hero-page-grid { gap: 80px; }
}
.hero-page-text { text-align: left; }
.hero-page-text .crumbs { margin-bottom: 18px; }
.hero-page-text .eyebrow {
  position: relative;
  padding-left: 36px;
  margin-bottom: 22px;
}
.hero-page-text .eyebrow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 1.5px;
  background: var(--accent);
}
.hero-page-text h1 {
  margin-bottom: 22px;
  line-height: 1.1;
}
.hero-page-text .lede {
  max-width: 44ch;
  margin: 0 0 28px;
}
.hero-page-text .hero-pills {
  justify-content: flex-start;
  margin-top: 0;
  margin-bottom: 36px;
}
.hero-page-cta {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.hero-page-cta .btn-link-tel {
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: 500;
  font-size: 0.94rem;
}
.hero-page-cta .btn-link-tel:hover { color: var(--accent-deep); }
.hero-page-img {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--surface);
}
@media (min-width: 1100px) {
  .hero-page-img { aspect-ratio: 4 / 5.2; }
}
.hero-page-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1000ms ease;
}
.hero-page-img:hover img { transform: scale(1.03); }
.hero-page-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg, transparent 60%, rgba(43, 37, 33, 0.14));
  pointer-events: none;
}

/* ----- Page hero (smaller, for inner pages) ----- */
.page-hero {
  padding: clamp(56px, 8vw, 88px) 0 clamp(40px, 6vw, 64px);
  background: var(--surface-warm);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.page-hero h1 { margin-bottom: 16px; }
.page-hero .lede { max-width: 60ch; margin: 0 auto; }
.crumbs {
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 16px;
}
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ----- Hero pills (under page-hero lede) ----- */
.hero-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 28px;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.84rem;
  color: var(--ink-soft);
  font-weight: 500;
}
.hero-pill::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ----- Editorial pull quote (large, centered) ----- */
.pullquote-section {
  padding: clamp(64px, 9vw, 104px) 0 !important;
  text-align: center;
  position: relative;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}
.pullquote-section::before,
.pullquote-section::after {
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  background: var(--accent);
  margin: 0 auto clamp(28px, 4vw, 40px);
  border-radius: 2px;
}
.pullquote-section::after {
  margin: clamp(28px, 4vw, 40px) auto 0;
}
.pullquote-large {
  max-width: 28ch;
  margin: 0 auto;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 1.32;
  color: var(--ink);
  font-style: italic;
  font-weight: 500;
  position: relative;
}
.pullquote-large::before {
  content: "“";
  display: block;
  font-family: var(--serif);
  font-size: 4rem;
  line-height: 0.6;
  color: var(--accent);
  margin-bottom: 18px;
  font-style: normal;
}
.pullquote-cite {
  display: block;
  margin-top: 18px;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-style: normal;
  font-weight: 600;
}

/* ----- Feeling cards (replaces feel-list on condition pages) ----- */
.feeling-cards {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
  margin: 0 0 1.5em;
}
@media (min-width: 700px) {
  .feeling-cards { grid-template-columns: 1fr 1fr; gap: 16px; }
}
@media (min-width: 1024px) {
  .feeling-cards {
    grid-template-columns: 1fr 1fr 1fr;
    /* Break out of container-prose (max-width 720px) into a wider grid */
    width: min(1000px, calc(100vw - 48px));
    margin-left: 50%;
    transform: translateX(-50%);
  }
}
.feeling-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px 22px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: all 200ms ease;
}
.feeling-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.feeling-card::before {
  content: "";
  flex-shrink: 0;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 11px;
}
.feeling-card p {
  margin: 0 !important;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* ----- Stats panel (numbers grid) ----- */
.stats {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr 1fr;
  padding: 36px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  margin: 56px 0;
}
@media (min-width: 760px) {
  .stats { grid-template-columns: repeat(4, 1fr); padding: 40px 32px; }
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 600;
  color: var(--accent-deep);
  line-height: 1;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.stat-label {
  display: block;
  font-size: 0.84rem;
  line-height: 1.4;
  color: var(--muted);
}

/* Split variant: each stat becomes its own card */
.stats-cards {
  background: transparent;
  border: none;
  padding: 0;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 560px) {
  .stats-cards { grid-template-columns: 1fr 1fr; gap: 18px; }
}
@media (min-width: 1024px) {
  .stats-cards {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    /* Break out of container-prose (max-width 720px) into a wider grid */
    width: min(1100px, calc(100vw - 48px));
    margin-left: 50%;
    transform: translateX(-50%);
  }
}
.stats-cards .stat {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 36px 22px 30px;
  text-align: center;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
  overflow: hidden;
  isolation: isolate;
}
.stats-cards .stat::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-deep));
  opacity: 0.85;
  transition: opacity 220ms ease, height 220ms ease;
}
.stats-cards .stat::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 50% 0%, rgba(181, 107, 71, 0.06), transparent 60%);
  opacity: 0;
  transition: opacity 220ms ease;
  z-index: -1;
}
.stats-cards .stat:hover {
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow:
    0 14px 28px -10px rgba(181, 107, 71, 0.18),
    0 4px 14px -4px rgba(15, 17, 21, 0.08);
}
.stats-cards .stat:hover::before { opacity: 1; height: 4px; }
.stats-cards .stat:hover::after  { opacity: 1; }
.stats-cards .stat .stat-num {
  font-size: clamp(1.85rem, 3.2vw, 2.35rem);
  margin-bottom: 12px;
  letter-spacing: -0.012em;
}
.stats-cards .stat .stat-label {
  font-size: 0.84rem;
  line-height: 1.45;
  letter-spacing: 0.002em;
}

/* ----- How Therapy Can Help (own section, sage band) ----- */
.how-help {
  padding: clamp(72px, 10vw, 120px) 0 clamp(72px, 10vw, 112px);
  background: var(--sage-soft);
  border-block: 1px solid rgba(138, 154, 123, 0.32);
  position: relative;
  overflow: hidden;
}
.how-help-intro {
  text-align: center;
  max-width: 60ch;
  margin: 0 auto 56px;
}
.how-help-intro .eyebrow {
  position: relative;
  padding-left: 36px;
  margin-bottom: 18px;
  color: #506a3f;
}
.how-help-intro .eyebrow::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 28px; height: 1.5px;
  background: var(--sage);
}
.how-help-intro h2 { margin-bottom: 18px; }
.how-help-intro .lede {
  font-style: italic;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
}
.how-help-img {
  position: relative;
  margin: 0 auto 64px;
  max-width: 1100px;
  aspect-ratio: 16 / 6;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.how-help-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1200ms ease;
}
.how-help-img:hover img { transform: scale(1.03); }
.how-help-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(43, 37, 33, 0.08));
  pointer-events: none;
}
.how-help-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  max-width: 1100px;
  margin: 0 auto;
}
@media (min-width: 760px) {
  .how-help-grid { grid-template-columns: 1fr 1fr 1fr; }
}
.layer {
  background: var(--surface);
  border: 1px solid rgba(138, 154, 123, 0.18);
  border-radius: var(--r-lg);
  padding: 36px 30px;
  position: relative;
  transition: all 250ms ease;
}
.layer:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.layer-num {
  display: inline-block;
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 16px;
  letter-spacing: 0.08em;
  position: relative;
  padding-bottom: 16px;
}
.layer-num::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 36px; height: 1.5px;
  background: var(--accent);
}
.layer h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  margin: 0 0 14px;
  line-height: 1.3;
  color: var(--ink);
}
.layer p {
  font-size: 0.96rem;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
}

/* ----- Beats grid (4-column narrative chunks) ----- */
.beats {
  display: grid;
  gap: 36px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .beats { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (min-width: 1100px) {
  .beats { grid-template-columns: repeat(4, 1fr); gap: 28px; }
}
.beat {
  border-top: 2px solid var(--accent);
  padding-top: 22px;
}
.beat-eyebrow {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 10px;
  display: block;
}
.beat h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.18rem;
  line-height: 1.3;
  color: var(--ink);
  margin: 0 0 12px;
}
.beat p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
}

/* ----- Trust band (homepage) ----- */
.trust-band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.trust-item { display: flex; gap: 14px; padding: 8px 0; }
.trust-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-deep);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}
.trust-item h4 { margin: 0 0 4px; font-size: 0.98rem; }
.trust-item p { margin: 0; font-size: 0.88rem; color: var(--muted); }

/* ----- Cards ----- */
.card-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.card-grid.cols-2 { grid-template-columns: 1fr; }
@media (min-width: 760px) { .card-grid.cols-2 { grid-template-columns: 1fr 1fr; } }
.card-grid.cols-3 { grid-template-columns: 1fr; }
@media (min-width: 760px) { .card-grid.cols-3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .card-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: all 200ms ease;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}
.card h3 { margin-bottom: 10px; font-size: 1.25rem; }
.card p { color: var(--muted); margin: 0; }
.card .card-link {
  margin-top: 18px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent-deep);
  text-decoration: none;
  align-self: flex-start;
}
.card .card-link:hover { color: var(--accent); }
.card a.card-cover {
  position: absolute; inset: 0;
  z-index: 1;
}

.card-img {
  position: relative;
  margin: -28px -28px 24px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}
.card:hover .card-img img { transform: scale(1.04); }

.card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  margin-bottom: 18px;
}

/* ----- Step cards (numbered) ----- */
.steps {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) { .steps { grid-template-columns: 1fr 1fr 1fr; } }
.step h3 { display: flex; gap: 14px; align-items: baseline; }
.step-num {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
}
.step p { color: var(--muted); }

/* ----- Two column split (image + text) ----- */
.split {
  display: grid;
  gap: 48px;
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 64px; }
  .split.right .split-img { order: 2; }
}
.split-img {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-md);
}
.split-img img { width: 100%; height: 100%; object-fit: cover; }

/* ----- Pull quote ----- */
.pullquote {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  line-height: 1.4;
  color: var(--ink);
  border-left: 3px solid var(--accent);
  padding: 8px 0 8px 28px;
  margin: 32px 0;
  font-style: italic;
}
.pullquote cite {
  display: block;
  margin-top: 14px;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-style: normal;
  color: var(--muted);
}

/* ----- Lists ----- */
.feel-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 12px;
}
.feel-list li {
  position: relative;
  padding-left: 28px;
  color: var(--ink-soft);
}
.feel-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 12px;
  width: 14px; height: 1.5px;
  background: var(--accent);
}
.check-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.check-list li { padding-left: 28px; position: relative; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--sage);
  font-weight: 700;
}

/* ----- FAQ ----- */
.faq { display: grid; gap: 12px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 0;
  transition: border-color 160ms ease;
}
.faq details[open] { border-color: var(--line-strong); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 24px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--accent);
  font-weight: 400;
  transition: transform 200ms ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-body {
  padding: 0 24px 22px;
  color: var(--muted);
}
.faq .faq-body p:first-child { margin-top: 0; }

/* ----- FAQ Tabs (categorized FAQ with sidebar nav) ----- */
.faq-tabs {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .faq-tabs { grid-template-columns: 280px 1fr; }
}

.faq-tabs-search {
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-warm);
}
@media (min-width: 900px) {
  .faq-tabs-search { grid-column: 1 / -1; }
}
.faq-tabs-search-inner {
  position: relative;
  max-width: 560px;
}
.faq-tabs-search input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  font-size: 0.95rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.faq-tabs-search input::placeholder { color: var(--muted-2); }
.faq-tabs-search input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(181, 107, 71, 0.12);
}
.faq-tabs-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-2);
  font-size: 1rem;
  pointer-events: none;
}
.faq-tabs-search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg-deep);
  color: var(--muted);
  font-size: 0.85rem;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 160ms ease;
}
.faq-tabs-search-clear.is-visible { display: inline-flex; }
.faq-tabs-search-clear:hover { background: var(--line-strong); color: var(--ink); }

.faq-tabs-nav {
  background: var(--surface-warm);
  border-right: 1px solid var(--line);
  padding: 18px 12px;
  display: flex;
  flex-direction: row;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: thin;
}
@media (min-width: 900px) {
  .faq-tabs-nav {
    flex-direction: column;
    overflow-x: visible;
    padding: 18px 14px;
  }
}
.faq-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  text-align: left;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.93rem;
  white-space: nowrap;
  transition: background 160ms ease, color 160ms ease;
  position: relative;
  flex: 0 0 auto;
}
@media (min-width: 900px) {
  .faq-tab { white-space: normal; flex: 1 1 auto; }
}
.faq-tab:hover { background: rgba(181, 107, 71, 0.06); color: var(--ink); }
.faq-tab.is-active {
  background: var(--surface);
  color: var(--accent-deep);
  box-shadow: 0 1px 3px rgba(43, 37, 33, 0.06);
}
.faq-tab.is-active::before {
  content: "";
  position: absolute;
  left: 0; top: 14px; bottom: 14px;
  width: 3px;
  background: var(--accent);
  border-radius: 2px;
}
@media (max-width: 899px) {
  .faq-tab.is-active::before {
    top: auto; left: 14px; right: 14px;
    bottom: 0; height: 2px; width: auto;
  }
}
.faq-tab-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  flex: 0 0 32px;
  border-radius: 8px;
  background: var(--bg-deep);
  font-size: 1rem;
  transition: background 160ms ease;
}
.faq-tab.is-active .faq-tab-icon {
  background: var(--accent-soft);
}
.faq-tab-label {
  flex: 1;
  line-height: 1.3;
}
.faq-tab-count {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--bg-deep);
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.faq-tab.is-active .faq-tab-count {
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.faq-tabs-panels {
  padding: 28px 28px 32px;
  min-height: 360px;
}
@media (min-width: 900px) {
  .faq-tabs-panels { padding: 36px 40px 40px; }
}
.faq-panel {
  display: none;
  animation: faqFadeIn 240ms ease;
}
.faq-panel.is-active { display: block; }
@keyframes faqFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.faq-panel-header {
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.faq-panel-header h3 {
  margin: 0 0 6px;
  font-size: 1.4rem;
}
.faq-panel-header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

/* Compact FAQ inside tabs */
.faq-tabs .faq { gap: 8px; }
.faq-tabs .faq details {
  border-color: var(--line);
  background: var(--surface);
}
.faq-tabs .faq details:hover { border-color: var(--line-strong); }
.faq-tabs .faq summary {
  font-size: 0.97rem;
  padding: 16px 20px;
}
.faq-tabs .faq .faq-body {
  padding: 0 20px 18px;
  font-size: 0.93rem;
}
.faq-tabs .faq details.is-hidden { display: none; }

.faq-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
  font-size: 0.95rem;
  display: none;
}
.faq-empty.is-visible { display: block; }
.faq-empty strong { color: var(--ink); display: block; margin-bottom: 6px; font-size: 1rem; }

/* ----- Reviews ----- */
.reviews {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.review {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 28px;
  border: 1px solid var(--line);
}
.review .stars { color: var(--gold); margin-bottom: 12px; font-size: 0.95rem; letter-spacing: 2px; }
.review p { font-family: var(--serif); font-size: 1.08rem; line-height: 1.55; color: var(--ink); font-style: italic; margin: 0 0 16px; }
.review footer { color: var(--muted); font-size: 0.88rem; }
.review footer strong { color: var(--ink); font-weight: 600; }

/* ----- Forms ----- */
.form-row { display: grid; gap: 16px; margin-bottom: 16px; }
.form-row.cols-2 { grid-template-columns: 1fr; }
@media (min-width: 600px) { .form-row.cols-2 { grid-template-columns: 1fr 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  font-size: 0.98rem;
  color: var(--ink);
  transition: border-color 160ms ease;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: 0;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(181, 107, 71, 0.12);
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-field .help { font-size: 0.82rem; color: var(--muted); margin-top: 2px; }
.form-field input[type="checkbox"] { width: auto; }
.checkbox-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) { .checkbox-grid { grid-template-columns: 1fr 1fr; } }
.checkbox-grid label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  transition: background 160ms ease;
}
.checkbox-grid label:hover { background: var(--surface-warm); }

.form-disclaimer {
  background: var(--surface-warm);
  border-left: 3px solid var(--accent);
  padding: 16px 20px;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-bottom: 24px;
}
.form-status {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--r-sm);
  font-size: 0.94rem;
  display: none;
}
.form-status.is-success { display: block; background: var(--sage-soft); color: #3a4d2e; border: 1px solid var(--sage); }
.form-status.is-error   { display: block; background: #fae5e1; color: var(--danger); border: 1px solid var(--danger); }

/* ----- Banner (legal pages template warning) ----- */
.banner-warn {
  background: #fcf3df;
  border: 1px solid var(--gold);
  border-radius: var(--r-md);
  padding: 16px 20px;
  margin-bottom: 32px;
  font-size: 0.94rem;
  color: #6e5318;
}
.banner-warn strong { color: #4a3611; }

/* ----- Prose (long-form legal/blog content) ----- */
.prose { max-width: var(--reading); margin: 0 auto; }
.prose h2 { margin-top: 2.2em; padding-top: 0.4em; }
.prose h3 { margin-top: 1.8em; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul, .prose ol { margin: 0 0 1.2em 1.4em; }
.prose li { margin-bottom: 0.4em; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose blockquote {
  margin: 1.6em 0;
  padding: 4px 0 4px 24px;
  border-left: 3px solid var(--accent);
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-soft);
}
.prose code {
  background: var(--bg-deep);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

/* ----- CTA strip ----- */
.cta-strip {
  background: linear-gradient(135deg, var(--ink) 0%, #3a302a 100%);
  color: var(--bg);
  text-align: center;
  border-radius: var(--r-xl);
  padding: clamp(40px, 6vw, 64px) clamp(28px, 5vw, 56px);
  margin: 0;
}
.cta-strip h2 { color: white; }
.cta-strip p { color: rgba(247, 243, 238, 0.82); max-width: 56ch; margin: 0 auto 28px; }
.cta-strip .btn-primary { box-shadow: 0 12px 36px rgba(181, 107, 71, 0.35); }
.cta-strip .btn-secondary { color: white; border-color: rgba(247, 243, 238, 0.4); }
.cta-strip .btn-secondary:hover { background: white; color: var(--ink); }

/* ----- Footer ----- */
.site-footer {
  background: var(--ink);
  color: var(--bg-deep);
  padding: 0 0 28px;
  font-size: 0.92rem;
  position: relative;
}
.site-footer a { color: var(--bg-deep); text-decoration: none; transition: color 160ms ease; }
.site-footer a:hover { color: var(--accent-soft); }

/* Top trust strip — 4 quick value props */
.footer-trust {
  background: linear-gradient(180deg, rgba(181, 107, 71, 0.08) 0%, rgba(181, 107, 71, 0) 100%);
  border-bottom: 1px solid rgba(247, 243, 238, 0.08);
  padding: 36px 0;
}
.footer-trust-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .footer-trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .footer-trust-grid { grid-template-columns: repeat(4, 1fr); } }
.footer-trust-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.footer-trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 50%;
  background: rgba(181, 107, 71, 0.18);
  color: var(--accent-soft);
  font-size: 1.1rem;
}
.footer-trust-item strong {
  color: white;
  font-weight: 600;
  display: block;
  font-size: 0.95rem;
  margin-bottom: 2px;
}
.footer-trust-item span.footer-trust-meta {
  display: block;
  color: rgba(247, 243, 238, 0.62);
  font-size: 0.84rem;
  line-height: 1.45;
}

/* Main footer grid */
.footer-main {
  padding-top: 64px;
}
.footer-grid {
  display: grid;
  gap: 40px 36px;
  grid-template-columns: 1fr;
  margin-bottom: 40px;
}
@media (min-width: 700px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) {
  .footer-grid {
    grid-template-columns: 1.55fr 1fr 1.05fr 0.95fr 1.15fr;
  }
}
.footer-col h4 {
  color: white;
  font-family: var(--sans);
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 18px;
  position: relative;
  padding-bottom: 10px;
}
.footer-col h4::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 28px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.footer-col + .footer-col h4.footer-h4-second { margin-top: 28px; }
.footer-col ul { list-style: none; display: grid; gap: 9px; }
.footer-col ul a { font-size: 0.92rem; }
.footer-brand p { color: rgba(247, 243, 238, 0.74); max-width: 36ch; line-height: 1.6; }
.footer-brand .brand { color: white; text-decoration: none; }
.footer-brand .brand-text strong { color: white; }
.footer-lang {
  font-size: 0.84rem;
  color: rgba(247, 243, 238, 0.6);
  margin-top: 10px;
  letter-spacing: 0.01em;
}

/* Contact mini block in brand column */
.footer-contact-mini {
  margin-top: 20px;
  display: grid;
  gap: 8px;
  font-size: 0.88rem;
  line-height: 1.5;
}
.footer-contact-mini > div {
  display: flex;
  gap: 10px;
}
.footer-contact-mini .footer-contact-label {
  color: rgba(247, 243, 238, 0.42);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  font-weight: 600;
  flex: 0 0 50px;
  padding-top: 3px;
}
.footer-contact-mini .footer-contact-val {
  color: rgba(247, 243, 238, 0.86);
  flex: 1;
}
.footer-contact-mini a { color: rgba(247, 243, 238, 0.86); }
.footer-contact-mini a:hover { color: var(--accent-soft); }

/* Booking column */
.footer-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: white !important;
  padding: 12px 18px;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  margin-bottom: 16px;
  transition: background 160ms ease, transform 160ms ease;
}
.footer-cta-btn:hover {
  background: var(--accent-deep);
  color: white !important;
  transform: translateY(-1px);
}
.footer-cta-tel {
  display: block;
  color: white !important;
  font-size: 1.08rem;
  font-weight: 600;
  margin-bottom: 4px;
  letter-spacing: 0.01em;
}
.footer-cta-tel:hover { color: var(--accent-soft) !important; }
.footer-cta-hours {
  font-size: 0.82rem;
  color: rgba(247, 243, 238, 0.55);
  margin-bottom: 22px;
}

/* Crisis block */
.footer-crisis {
  background: rgba(176, 74, 58, 0.12);
  border-left: 3px solid var(--danger);
  padding: 16px 18px;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: 0.83rem;
  color: rgba(247, 243, 238, 0.85);
  line-height: 1.55;
}
.footer-crisis strong { color: white; display: block; margin-bottom: 4px; font-size: 0.86rem; letter-spacing: 0.04em; }

/* Trust marks (HIPAA, CMIA, CA Lic) */
.footer-trust-marks {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.footer-mark {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border: 1px solid rgba(247, 243, 238, 0.18);
  border-radius: 999px;
  font-size: 0.7rem;
  color: rgba(247, 243, 238, 0.7);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}

/* Legal strip — second tier */
.footer-legal-strip {
  border-top: 1px solid rgba(247, 243, 238, 0.1);
  padding: 28px 0 0;
  margin-bottom: 24px;
}
.footer-legal-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .footer-legal-grid { grid-template-columns: repeat(2, 1fr); } }
.footer-legal-grid h5 {
  color: rgba(247, 243, 238, 0.92);
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 12px;
  font-weight: 600;
}
.footer-legal-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 0.84rem;
  margin: 0;
  padding: 0;
}
.footer-legal-list li { line-height: 1.4; }
.footer-legal-list a, .footer-legal-list button {
  color: rgba(247, 243, 238, 0.62);
  text-decoration: none;
}
.footer-legal-list a:hover, .footer-legal-list button:hover { color: var(--accent-soft); }
.footer-legal-list button {
  background: none; border: 0; cursor: pointer; font: inherit; padding: 0;
}

/* Bottom bar */
.footer-bar {
  border-top: 1px solid rgba(247, 243, 238, 0.1);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(247, 243, 238, 0.5);
}
.footer-bar a { color: rgba(247, 243, 238, 0.7); }
.footer-bar-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  align-items: center;
}
.footer-bar-meta span.dot {
  width: 3px; height: 3px; border-radius: 50%;
  background: rgba(247, 243, 238, 0.3);
  display: inline-block;
}

/* ----- Cookie banner ----- */
.cookie-banner {
  position: fixed;
  bottom: 16px; left: 16px; right: 16px;
  z-index: 200;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  padding: 20px 24px;
  display: none;
  max-width: 720px;
  margin: 0 auto;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 14px; font-size: 0.94rem; }
.cookie-actions {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.cookie-actions .btn { padding: 10px 18px; font-size: 0.88rem; }
.cookie-actions .btn-link {
  background: transparent;
  color: var(--ink-soft);
  text-decoration: underline;
  padding: 10px 14px;
  border-radius: var(--r-sm);
}
.cookie-actions .btn-link:hover { color: var(--accent-deep); }

.cookie-modal {
  position: fixed;
  inset: 0;
  background: rgba(43, 37, 33, 0.5);
  display: none;
  z-index: 250;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.cookie-modal.is-visible { display: flex; }
.cookie-modal-inner {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 32px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.cookie-modal h3 { margin-top: 0; }
.cookie-toggle {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.cookie-toggle:last-of-type { border-bottom: 0; }
.cookie-toggle h4 { margin: 0 0 4px; font-size: 0.98rem; }
.cookie-toggle p { margin: 0; font-size: 0.86rem; color: var(--muted); }

.switch {
  position: relative;
  width: 44px; height: 24px;
  flex-shrink: 0;
  margin-top: 4px;
}
.switch input { opacity: 0; width: 0; height: 0; }
.switch-track {
  position: absolute; inset: 0;
  background: var(--line-strong);
  border-radius: 999px;
  transition: 200ms ease;
  cursor: pointer;
}
.switch-track::after {
  content: "";
  position: absolute;
  left: 3px; top: 3px;
  width: 18px; height: 18px;
  background: white;
  border-radius: 50%;
  transition: 200ms ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.18);
}
.switch input:checked + .switch-track { background: var(--accent); }
.switch input:checked + .switch-track::after { left: 23px; }
.switch input:disabled + .switch-track { background: var(--line); cursor: not-allowed; }
.switch input:focus-visible + .switch-track { box-shadow: 0 0 0 3px rgba(181, 107, 71, 0.25); }

/* ----- Carrier tile grid (Insurance page) ----- */
.carrier-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr;
}
@media (min-width: 640px) {
  .carrier-grid { grid-template-columns: 1fr 1fr 1fr; }
}
@media (min-width: 1024px) {
  .carrier-grid { grid-template-columns: repeat(4, 1fr); }
}
.carrier-tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 22px 18px;
  text-align: center;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink-soft);
  transition: all 220ms ease;
  letter-spacing: -0.005em;
}
.carrier-tile:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* ----- Pricing / scenarios (Insurance + general) ----- */
.scenarios {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .scenarios { grid-template-columns: 1fr 1fr 1fr; }
}
.scenario {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  transition: all 220ms ease;
}
.scenario:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.scenario-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  margin-bottom: 22px;
}
.scenario h3 { margin: 0 0 12px; font-size: 1.18rem; }
.scenario .price {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--accent-deep);
  margin: 0 0 14px;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.scenario p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}
.scenario .scenario-note {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
  color: var(--muted-2);
}

/* ----- Callout (highlighted info box) ----- */
.callout-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .callout-grid { grid-template-columns: 1fr 1fr; }
}
.callout {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 28px 32px;
}
.callout-eyebrow {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 10px;
  display: block;
}
.callout h3 { margin: 0 0 12px; font-size: 1.15rem; }
.callout p { margin: 0 0 12px; color: var(--muted); line-height: 1.6; }
.callout p:last-child { margin: 0; }

/* ----- Pillars (Career: training pillars grid) ----- */
.pillars {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .pillars { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .pillars { grid-template-columns: 1fr 1fr 1fr; }
}
.pillar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  position: relative;
  transition: all 220ms ease;
}
.pillar:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}
.pillar-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--sage-soft);
  color: #506a3f;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  margin-bottom: 20px;
}
.pillar h3 { margin: 0 0 12px; font-size: 1.18rem; }
.pillar p { margin: 0 0 14px; color: var(--muted); font-size: 0.95rem; line-height: 1.6; }
.pillar ul.check-list { margin: 0; }
.pillar ul.check-list li {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

/* ----- Map embed ----- */
.map-wrap {
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ----- Utility ----- */
.text-center { text-align: center; }
.bg-warm    { background: var(--surface-warm); }

.page-disclaimer {
  padding: 18px 0 22px;
  border-top: 1px solid var(--line);
}
.page-disclaimer .container { max-width: 880px; }
.page-disclaimer p {
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--muted);
  margin: 12px 0 0;
}
.page-disclaimer strong {
  color: var(--ink-soft);
  font-weight: 600;
}
.disclaimer-details > summary {
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--muted);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  user-select: none;
}
.disclaimer-details > summary::-webkit-details-marker { display: none; }
.disclaimer-details > summary strong {
  color: var(--ink-soft);
  font-weight: 600;
}
.disclaimer-details > summary .disclaimer-cta {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
}
.disclaimer-details > summary .disclaimer-cta::before {
  content: "▸ ";
  display: inline-block;
  margin-right: 2px;
  text-decoration: none;
  transition: transform 0.15s ease;
}
.disclaimer-details[open] > summary .disclaimer-cta::before {
  content: "▾ ";
}
.disclaimer-details:hover > summary .disclaimer-cta { color: var(--ink); }

.footnote-marker {
  font-size: 0.55em;
  vertical-align: super;
  line-height: 0;
  margin-left: 2px;
}
.footnote-marker a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}
.footnote-marker a:hover { text-decoration: underline; }
.page-disclaimer .footnote-marker {
  font-size: 1em;
  vertical-align: baseline;
  line-height: inherit;
  color: var(--accent);
  font-weight: 700;
  margin: 0 4px 0 0;
}

.oon-footnote {
  padding: 24px 0;
  border-top: 1px solid var(--line);
  background: var(--surface-warm);
  scroll-margin-top: 96px;
}
.oon-footnote .container { max-width: 880px; }
.oon-footnote p {
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0;
}
.oon-footnote p strong { color: var(--ink); font-weight: 600; }
.oon-footnote a { color: var(--accent); }
.oon-footnote:target,
#oon-disclaimer:target {
  background: var(--surface);
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.bg-surface { background: var(--surface); }
.bg-deep    { background: var(--bg-deep); }
.mb-0 { margin-bottom: 0 !important; }
.mt-0 { margin-top: 0 !important; }

/* ----- Motion ----- */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms ease, transform 600ms ease;
}
.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .card:hover { transform: none; }
}

/* ----- Focus styles ----- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ----- Badges ----- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--sage-soft);
  color: #3a4d2e;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.badge-warm { background: var(--accent-soft); color: var(--accent-deep); }

/* ----- Responsive helpers ----- */
@media (max-width: 600px) {
  section { padding: 56px 0; }
  .hero { padding: 48px 0; }
}
