/* Pasadena Clinical Group — Substance Use Recovery
 * Design system: editorial serif + humanist sans, warm neutrals, terracotta + sage accents.
 */

:root {
  /* Palette — warm, sophisticated, not clinical-blue */
  --bg:        #f7f3ee;   /* warm off-white, paper */
  --bg-alt:    #efe9e1;   /* slightly deeper paper */
  --ink:       #2b2722;   /* near-black with warmth */
  --ink-soft:  #5a5147;   /* body text */
  --ink-mute:  #847a6e;   /* secondary */
  --line:      #d8cfc2;   /* hairline divider */
  --accent:    #7c8c6a;   /* sage green — calm, considered */
  --accent-d:  #5d6a4f;   /* darker sage for hover */
  --warm:      #b8694b;   /* terracotta — used sparingly */
  --warm-d:    #944f37;
  --cream:     #fdfbf7;   /* card background */
  --focus:     #c9874a;   /* focus ring — visible against warm palette */

  /* Type */
  --serif: "Fraunces", "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --sans:  "Inter", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Spacing scale */
  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem;
  --s-5: 1.5rem; --s-6: 2rem; --s-7: 3rem; --s-8: 4rem;
  --s-9: 6rem;   --s-10: 8rem;

  /* Layout */
  --container: 1200px;
  --container-narrow: 760px;
  --radius: 4px;
  --radius-lg: 12px;

  /* Motion */
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

/* Base typography */
body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--bg);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0 0 var(--s-4);
  font-variation-settings: "SOFT" 50, "WONK" 0;
}

h1 { font-size: clamp(2.2rem, 1.5rem + 3vw, 3.8rem); line-height: 1.08; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.6rem); line-height: 1.15; }
h3 { font-size: clamp(1.25rem, 1.1rem + .7vw, 1.6rem); line-height: 1.25; }
h4 { font-size: 1.1rem; line-height: 1.35; }

p { margin: 0 0 1em; max-width: 68ch; }
.lede { font-size: 1.2rem; color: var(--ink); line-height: 1.55; }
.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-d);
  font-weight: 600;
  margin-bottom: var(--s-3);
}

a { color: var(--accent-d); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color .2s var(--ease); }
a:hover { color: var(--warm-d); }

/* Layout helpers */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--s-5); }
.container.narrow { max-width: var(--container-narrow); }
.section { padding: var(--s-9) 0; }
.section-tight { padding: var(--s-7) 0; }
.section-alt { background: var(--bg-alt); }
.section-cream { background: var(--cream); }

.grid { display: grid; gap: var(--s-6); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* Skip to content */
.skip-link {
  position: absolute; top: -100px; left: 0;
  background: var(--ink); color: var(--cream);
  padding: var(--s-3) var(--s-4);
  text-decoration: none;
  z-index: 1000;
}
.skip-link:focus { top: 0; }

/* Header */
.topbar {
  background: var(--ink);
  color: var(--cream);
  font-size: 0.84rem;
  padding: 0.5rem 0;
}
.topbar .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); }
.topbar a { color: var(--cream); text-decoration: none; opacity: 0.85; }
.topbar a:hover { opacity: 1; color: var(--cream); }
.topbar ul { display: flex; flex-wrap: wrap; gap: var(--s-5); list-style: none; margin: 0; padding: 0; }
.topbar li { display: flex; align-items: center; gap: var(--s-2); }

.topbar-right { display: flex; align-items: center; gap: var(--s-5); flex-wrap: wrap; }
.topbar-hours { color: rgba(253, 251, 247, 0.85); }

.lang-switch { position: relative; font-family: var(--sans); }
.lang-trigger {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.28rem 0.7rem;
  border: 1px solid rgba(253, 251, 247, 0.22);
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  font-weight: 600;
  background: rgba(253, 251, 247, 0.04);
  color: var(--cream);
  cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.lang-trigger:hover, .lang-trigger:focus-visible { border-color: rgba(253, 251, 247, 0.5); background: rgba(253, 251, 247, 0.1); outline: none; }
.lang-trigger .lang-globe { flex: none; opacity: 0.85; }
.lang-trigger .lang-trigger-name { white-space: nowrap; }
.lang-trigger .lang-chevron { flex: none; opacity: 0.7; transition: transform .2s var(--ease); }
.lang-trigger[aria-expanded="true"] .lang-chevron { transform: rotate(180deg); }

.lang-menu {
  position: absolute; top: calc(100% + 0.45rem); right: 0;
  min-width: 14rem; max-height: 22rem; overflow-y: auto;
  margin: 0; padding: 0.35rem;
  list-style: none;
  background: var(--ink);
  border: 1px solid rgba(253, 251, 247, 0.16);
  border-radius: 12px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  z-index: 200;
}
.lang-menu[hidden] { display: none; }
.lang-menu li { padding: 0; margin: 0; }
.lang-menu a {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  color: rgba(253, 251, 247, 0.78);
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 500;
  line-height: 1.2;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.lang-menu a:hover, .lang-menu a:focus-visible { background: rgba(253, 251, 247, 0.08); color: var(--cream); outline: none; }
.lang-menu li[aria-selected="true"] a { color: var(--cream); background: rgba(253, 251, 247, 0.06); }
.lang-menu .lang-name { font-weight: 500; }
.lang-menu .lang-tag { font-size: 0.72rem; letter-spacing: 0.08em; opacity: 0.55; text-transform: uppercase; }

@media (max-width: 700px) {
  .lang-menu { right: 0; min-width: 12rem; }
}

@media (max-width: 700px) {
  .topbar-hours { display: none; }
}

.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(8px);
  background: rgba(247, 243, 238, 0.94);
}
.site-nav .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: var(--s-4); padding-bottom: var(--s-4);
  gap: var(--s-5);
}
.brand {
  display: flex; align-items: center; gap: var(--s-3);
  text-decoration: none; color: var(--ink);
}
.brand-mark {
  width: 38px; height: 38px;
  background: var(--accent); color: var(--cream);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 1.25rem; font-weight: 600;
  flex: 0 0 38px;
}
.brand-name {
  font-family: var(--serif); font-size: 1.25rem; line-height: 1.1;
  display: flex; flex-direction: column;
}
.brand-name span { font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mute); font-weight: 500; }

.nav-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: var(--s-5);
}
.nav-list > li { position: relative; }
.nav-list a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.93rem;
  font-weight: 500;
  padding: var(--s-2) 0;
  border-bottom: 1.5px solid transparent;
  transition: border-color .2s var(--ease);
}
.nav-list a:hover, .nav-list a[aria-current="page"] { border-color: var(--accent); }
.has-sub > a::after { content: " ⌄"; font-size: 0.75em; opacity: 0.6; }

/* Dropdowns */
.subnav {
  position: absolute; top: 100%; left: -1rem;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--s-2) 0;
  min-width: 240px;
  box-shadow: 0 12px 32px rgba(43, 39, 34, 0.08);
  list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear .2s;
  z-index: 50;
}
.has-sub:hover .subnav,
.has-sub:focus-within .subnav {
  opacity: 1; visibility: visible; transform: translateY(0);
  transition-delay: 0s;
}
.subnav li { padding: 0; }
.subnav a {
  display: block; padding: var(--s-3) var(--s-5);
  font-size: 0.9rem;
  border-bottom: none;
  color: var(--ink-soft);
}
.subnav a:hover { background: var(--bg-alt); color: var(--ink); }

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none; border: none;
  width: 44px; height: 44px;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: ""; display: block;
  position: absolute;
  width: 24px; height: 1.5px;
  background: var(--ink);
  left: 50%; margin-left: -12px;
  transition: transform .25s var(--ease), opacity .15s var(--ease);
}
.nav-toggle span { top: 50%; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1100px) {
  .nav-toggle { display: block; }
  .nav-list {
    position: fixed; inset: 0;
    top: 70px;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: var(--s-5);
    overflow-y: auto;
    transform: translateY(-100vh);
    transition: transform .3s var(--ease);
  }
  .nav-list.is-open { transform: translateY(0); }
  .nav-list > li { width: 100%; border-bottom: 1px solid var(--line); }
  .nav-list > li > a { display: block; padding: var(--s-4) 0; font-size: 1.1rem; }
  .subnav {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; padding: 0 0 var(--s-3) var(--s-4);
    background: transparent;
  }
  .has-sub > a::after { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  padding: var(--s-3) var(--s-6);
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .12s var(--ease);
}
.btn-primary { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.btn-primary:hover { background: var(--warm-d); border-color: var(--warm-d); color: var(--cream); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--cream); }
.btn-warm { background: var(--warm); color: var(--cream); border-color: var(--warm); }
.btn-warm:hover { background: var(--warm-d); border-color: var(--warm-d); }
.btn-ghost { background: transparent; color: var(--accent-d); border-color: var(--line); }
.btn-ghost:hover { background: var(--accent); color: var(--cream); border-color: var(--accent); }
.btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.btn-large { padding: var(--s-4) var(--s-7); font-size: 1.05rem; }

/* Hero */
.hero {
  position: relative;
  padding: var(--s-9) 0 var(--s-10);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: var(--s-8);
  align-items: center;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: var(--s-7); } }
.hero h1 { margin-bottom: var(--s-5); }
.hero .lede { margin-bottom: var(--s-6); max-width: 32ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.hero-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: 0 30px 60px -20px rgba(43, 39, 34, 0.18);
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; }

/* Page hero — used on subpages.
   Layered: warm gradient backdrop + two soft decorative blobs (sage + terracotta),
   contained by overflow:hidden. Designed to feel editorial, not corporate. */
.page-hero {
  position: relative;
  padding: var(--s-9) 0 var(--s-8);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(124, 140, 106, 0.10) 0%, rgba(124, 140, 106, 0) 55%),
    radial-gradient(90% 60% at 0% 100%, rgba(184, 105, 75, 0.08) 0%, rgba(184, 105, 75, 0) 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
}
.page-hero::before,
.page-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  z-index: -1;
  pointer-events: none;
}
.page-hero::before {
  width: 460px; height: 460px;
  top: -160px; right: -120px;
  background: radial-gradient(circle, rgba(124, 140, 106, 0.32), rgba(124, 140, 106, 0) 70%);
}
.page-hero::after {
  width: 380px; height: 380px;
  bottom: -200px; left: -120px;
  background: radial-gradient(circle, rgba(184, 105, 75, 0.22), rgba(184, 105, 75, 0) 70%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .eyebrow {
  color: var(--warm-d);
  font-weight: 600;
  position: relative;
  display: inline-block;
}
.page-hero h1 {
  max-width: 22ch;
  margin-bottom: var(--s-5);
  font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.page-hero h1 em {
  font-style: italic;
  color: var(--warm-d);
  font-weight: 500;
}
.page-hero .lede {
  max-width: 56ch;
  font-size: clamp(1.05rem, 0.95rem + .4vw, 1.2rem);
  color: var(--ink-soft);
  line-height: 1.55;
}

/* Breadcrumbs — small nav above hero text, with subtle warm accent for current */
.breadcrumbs {
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
  margin-bottom: var(--s-5);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}
.breadcrumbs a {
  color: var(--ink-mute);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.breadcrumbs a:hover { color: var(--ink); border-bottom-color: var(--warm); }
.breadcrumbs span[aria-current] { color: var(--ink); font-weight: 500; }
.breadcrumbs .sep { opacity: 0.5; }

/* Hero chips — small pill row of key facts above the headline */
.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-bottom: var(--s-5);
}
.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.8rem;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--ink-soft);
  font-weight: 500;
  letter-spacing: 0.01em;
}
.hero-chip::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: 0 0 6px;
}
.hero-chip.warm::before { background: var(--warm); }

/* Page hero — split layout (text + image).
   Text leads (1.6fr); the image is a smaller, capped accent (1fr, max ~340px),
   right-aligned and softly framed. Designed to support the headline, not compete with it. */
.page-hero.has-image .page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: var(--s-7);
  align-items: center;
}
.page-hero.has-image .page-hero-text h1 { max-width: 22ch; }
.page-hero.has-image .page-hero-text .lede { max-width: 52ch; }

.page-hero-image {
  position: relative;
  width: 100%;
  max-width: 340px;
  margin-left: auto;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
}
.page-hero-image > picture {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px -22px rgba(43, 39, 34, 0.28), 0 4px 12px -6px rgba(43, 39, 34, 0.10);
}
.page-hero-image > picture img { width: 100%; height: 100%; object-fit: cover; display: block; }
.page-hero-image::before {
  /* Warm offset accent — sits behind the image for subtle layered depth */
  content: "";
  position: absolute;
  inset: 12px -12px -12px 12px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(124, 140, 106, 0.28), rgba(184, 105, 75, 0.18));
  z-index: 1;
}
@media (max-width: 900px) {
  .page-hero.has-image .page-hero-grid { grid-template-columns: 1fr; gap: var(--s-6); }
  .page-hero-image { max-width: 280px; aspect-ratio: 1/1; margin: 0 auto; }
  .page-hero-image::before { inset: 8px -8px -8px 8px; }
}

/* Hero-rich variant — used on overview pages without an image, for heavier visual treatment */
.page-hero.hero-rich {
  padding: var(--s-10) 0 var(--s-9);
}
.page-hero.hero-rich h1 {
  max-width: 26ch;
  font-size: clamp(2.4rem, 1.7rem + 2.6vw, 4rem);
}
.page-hero.hero-rich .lede {
  max-width: 60ch;
}

/* Narrative intro — rich content section after the hero on subpages.
   Uses the warm cream background to feel like a continuation of the hero. */
.narrative-intro {
  padding: var(--s-8) 0;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.narrative-intro .article > p {
  font-size: 1.08rem;
  line-height: 1.7;
}
.narrative-intro .article > p:first-of-type::first-letter {
  font-family: var(--serif);
  font-size: 3.4rem;
  font-weight: 500;
  float: left;
  line-height: 0.9;
  margin: 0.1em 0.4rem 0 -0.05em;
  color: var(--warm-d);
}
.narrative-intro h2 {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  margin-bottom: var(--s-4);
}

/* Inline locale chips — used in narrative blocks to surface local SEO terms */
.locale-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: var(--s-5) 0;
  padding-left: 0;
  list-style: none;
}
.locale-chips li {
  font-family: var(--sans);
  font-size: 0.85rem;
  padding: 0.3rem 0.7rem;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
}

/* Section heading lockup with eyebrow */
.section-eyebrow-band {
  text-align: center;
  max-width: 56ch;
  margin: 0 auto var(--s-6);
}
.section-eyebrow-band .eyebrow { color: var(--warm-d); }
.section-eyebrow-band h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin-bottom: var(--s-3); }
.section-eyebrow-band p { color: var(--ink-mute); font-size: 1rem; max-width: 56ch; margin: 0 auto; }

/* Category band — used on Conditions overview to group the tiles */
.cat-band {
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
}
.cat-band:first-of-type { margin-top: 0; padding-top: 0; border-top: none; }
.cat-band-head {
  display: flex; align-items: baseline; gap: var(--s-4); flex-wrap: wrap;
  margin-bottom: var(--s-5);
}
.cat-band-head h2 {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 1.1rem + .6vw, 1.6rem);
  margin: 0;
  flex: 0 0 auto;
}
.cat-band-head p {
  color: var(--ink-mute);
  font-size: 0.95rem;
  margin: 0;
  flex: 1 1 280px;
  min-width: 0;
}

/* Feature list — "What this can feel like" on condition pages */
.feature-list {
  background: var(--cream);
  border: 1px solid var(--line);
  border-left: 3px solid var(--warm);
  border-radius: var(--radius-lg);
  padding: var(--s-6) var(--s-6) var(--s-5) var(--s-6);
  list-style: none;
  margin: var(--s-5) 0 0;
}
.feature-list li {
  position: relative;
  padding-left: var(--s-5);
  margin-bottom: var(--s-3);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
}
.feature-list li:last-child { margin-bottom: 0; }
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--warm);
  opacity: 0.6;
}

/* Intro band — used above tile grids on overview pages */
.intro-band {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: var(--s-7) 0;
}
.intro-band-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--s-5);
}
.intro-stat .num {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem);
  font-weight: 500;
  color: var(--warm-d);
  display: block;
  line-height: 1.1;
  margin-bottom: var(--s-2);
}
.intro-stat .lbl {
  font-family: var(--sans);
  font-size: 0.92rem;
  color: var(--ink-mute);
  line-height: 1.45;
  display: block;
}

/* Trust band */
.trust-band {
  background: var(--ink);
  color: var(--cream);
  padding: var(--s-7) 0;
}
.trust-band h2, .trust-band h3 { color: var(--cream); }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--s-5);
}
.trust-item {
  border-left: 2px solid var(--accent);
  padding-left: var(--s-4);
}
.trust-item h3 { font-family: var(--sans); font-size: 1rem; font-weight: 600; letter-spacing: 0.02em; margin-bottom: var(--s-2); color: var(--cream); }
.trust-item p { color: rgba(253, 251, 247, 0.75); font-size: 0.92rem; margin: 0; }

/* Card */
.card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
}
.card.has-image { padding: 0; overflow: hidden; }
.card-img {
  aspect-ratio: 4/3;
  overflow: hidden;
}
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card.has-image:hover .card-img img { transform: scale(1.04); }
.card-body { padding: var(--s-5); }
.card h3 { margin-bottom: var(--s-3); }
.card p { font-size: 0.96rem; margin-bottom: var(--s-4); }
.card-link {
  margin-top: auto;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--warm-d);
  text-decoration: none;
}
.card-link:hover { color: var(--ink); }
.card-link::after { content: " →"; transition: margin-left .2s var(--ease); }
.card-link:hover::after { margin-left: 4px; }

/* Step list — what to expect */
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--s-6);
}
.steps li {
  position: relative;
  padding-top: var(--s-7);
  border-top: 1px solid var(--line);
}
.steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute; top: var(--s-3); left: 0;
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--warm);
  font-weight: 500;
}
.steps h3 { font-size: 1.2rem; margin-bottom: var(--s-3); }

/* Pull quote */
.pull-quote {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 1.1rem + .8vw, 1.7rem);
  line-height: 1.4;
  color: var(--ink);
  border-left: 2px solid var(--warm);
  padding-left: var(--s-5);
  margin: var(--s-7) 0;
  max-width: 36ch;
  font-style: italic;
}

/* Two-up section */
.two-up {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-8);
  align-items: center;
}
@media (max-width: 900px) { .two-up { grid-template-columns: 1fr; gap: var(--s-6); } }
.two-up.flip { direction: rtl; }
.two-up.flip > * { direction: ltr; }
.two-up-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/2;
}
.two-up-image img { width: 100%; height: 100%; object-fit: cover; }

/* Conditions / Approach grid on overview pages */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--s-5);
}
.tile {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  text-decoration: none; color: var(--ink);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.tile:hover { transform: translateY(-3px); box-shadow: 0 16px 32px -16px rgba(43, 39, 34, 0.18); color: var(--ink); }
.tile-img { aspect-ratio: 4/3; overflow: hidden; }
.tile-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.tile:hover .tile-img img { transform: scale(1.06); }
.tile-body { padding: var(--s-5); flex: 1; display: flex; flex-direction: column; }
.tile h3 { font-size: 1.2rem; margin-bottom: var(--s-2); }
.tile p { font-size: 0.92rem; color: var(--ink-mute); margin-bottom: var(--s-3); }

/* Testimonials */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--s-5);
}
.testimonial {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--s-6);
}
.testimonial blockquote {
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.55;
  margin: 0 0 var(--s-4);
  color: var(--ink);
}
.testimonial cite {
  display: block;
  font-style: normal;
  font-size: 0.85rem;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
}

/* FAQ */
.faq { max-width: 760px; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: var(--s-4) 0;
}
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--ink);
  list-style: none;
  position: relative;
  padding-right: var(--s-7);
  font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 0; top: -2px;
  font-size: 1.5rem;
  color: var(--warm);
  font-family: var(--sans);
  transition: transform .25s var(--ease);
}
.faq details[open] summary::after { content: "−"; }
.faq details[open] summary { color: var(--warm-d); }
.faq details > p,
.faq details > div { margin-top: var(--s-3); }

/* Forms */
.form-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--s-6) var(--s-7);
}
.form-disclaimer {
  background: var(--bg-alt);
  border-left: 3px solid var(--warm);
  padding: var(--s-4) var(--s-5);
  margin-bottom: var(--s-5);
  font-size: 0.92rem;
  color: var(--ink-soft);
  border-radius: var(--radius);
}
.form-row { margin-bottom: var(--s-5); }
.form-row.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); }
@media (max-width: 600px) { .form-row.row-2 { grid-template-columns: 1fr; } }
label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin-bottom: var(--s-2);
}
.req { color: var(--warm-d); margin-left: 2px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="date"], input[type="file"],
select, textarea {
  width: 100%;
  padding: var(--s-3) var(--s-4);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 1rem;
  color: var(--ink);
  font-family: var(--sans);
  transition: border-color .15s var(--ease);
}
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124, 140, 106, 0.18);
}
.checkboxes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--s-3);
}
.checkboxes label {
  display: flex; align-items: center; gap: var(--s-2);
  font-size: 0.92rem; font-weight: 400; letter-spacing: 0;
  color: var(--ink-soft);
  margin-bottom: 0;
  cursor: pointer;
}
.checkboxes input[type="checkbox"] { width: auto; margin: 0; }

.form-status {
  margin-top: var(--s-4);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--radius);
  font-size: 0.95rem;
  display: none;
}
.form-status.show { display: block; }
.form-status.success { background: rgba(124, 140, 106, 0.15); color: var(--accent-d); border: 1px solid var(--accent); }
.form-status.error { background: rgba(184, 105, 75, 0.12); color: var(--warm-d); border: 1px solid var(--warm); }

.cf-turnstile { margin: var(--s-4) 0; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(253, 251, 247, 0.75);
  padding: var(--s-9) 0 var(--s-5);
  font-size: 0.92rem;
}
.site-footer h3, .site-footer h4 { color: var(--cream); font-family: var(--sans); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: var(--s-4); }
.site-footer a { color: rgba(253, 251, 247, 0.85); text-decoration: none; }
.site-footer a:hover { color: var(--cream); text-decoration: underline; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--s-7);
  margin-bottom: var(--s-7);
  padding-bottom: var(--s-6);
  border-bottom: 1px solid rgba(253, 251, 247, 0.12);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--s-2); }
.footer-brand { max-width: 36ch; }
.footer-brand p { color: rgba(253, 251, 247, 0.65); font-size: 0.92rem; margin-bottom: var(--s-3); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: var(--s-4); align-items: center; justify-content: space-between;
  font-size: 0.82rem; color: rgba(253, 251, 247, 0.55);
}
.footer-crisis {
  background: rgba(253, 251, 247, 0.05);
  border-left: 2px solid var(--warm);
  padding: var(--s-4) var(--s-5);
  margin-bottom: var(--s-6);
  border-radius: var(--radius);
  font-size: 0.92rem;
  color: rgba(253, 251, 247, 0.85);
}
.footer-crisis strong { color: var(--cream); }

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: var(--s-4); left: var(--s-4); right: var(--s-4);
  max-width: 720px;
  margin: 0 auto;
  background: var(--ink);
  color: rgba(253, 251, 247, 0.92);
  padding: var(--s-5);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px -16px rgba(0, 0, 0, 0.4);
  z-index: 200;
  font-size: 0.92rem;
  display: none;
}
.cookie-banner.show { display: block; animation: slideUp .4s var(--ease) both; }
@keyframes slideUp { from { transform: translateY(40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.cookie-banner p { margin: 0 0 var(--s-4); color: rgba(253, 251, 247, 0.85); max-width: none; }
.cookie-banner a { color: var(--cream); text-decoration: underline; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.cookie-actions .btn-primary { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.cookie-actions .btn-primary:hover { background: var(--accent); border-color: var(--accent); }
.cookie-actions .btn-secondary { color: var(--cream); border-color: rgba(253, 251, 247, 0.4); }
.cookie-actions .btn-secondary:hover { background: rgba(253, 251, 247, 0.1); color: var(--cream); }

.cookie-modal {
  position: fixed; inset: 0;
  background: rgba(43, 39, 34, 0.7);
  display: none;
  align-items: center; justify-content: center;
  z-index: 300;
  padding: var(--s-4);
}
.cookie-modal.show { display: flex; }
.cookie-modal-inner {
  background: var(--cream);
  border-radius: var(--radius-lg);
  max-width: 600px; width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: var(--s-7);
}
.cookie-modal h2 { margin-top: 0; }
.cookie-cat {
  border-top: 1px solid var(--line);
  padding: var(--s-4) 0;
}
.cookie-cat-head { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); }
.cookie-cat h3 { margin: 0 0 var(--s-2); font-family: var(--sans); font-size: 1rem; font-weight: 600; }
.cookie-cat p { font-size: 0.88rem; margin: 0; color: var(--ink-mute); }
.toggle {
  position: relative;
  width: 44px; height: 24px;
  background: var(--line); border-radius: 12px;
  cursor: pointer; flex-shrink: 0;
  transition: background .2s var(--ease);
  border: none;
}
.toggle::after {
  content: ""; position: absolute;
  top: 2px; left: 2px;
  width: 20px; height: 20px;
  background: var(--cream);
  border-radius: 50%;
  transition: transform .2s var(--ease);
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.toggle[aria-checked="true"] { background: var(--accent); }
.toggle[aria-checked="true"]::after { transform: translateX(20px); }
.toggle[aria-disabled="true"] { background: var(--accent); opacity: 0.5; cursor: not-allowed; }

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

/* Article (blog & legal) */
.article {
  max-width: 720px;
  margin: 0 auto;
}
.article h2 { margin-top: var(--s-7); }
.article h3 { margin-top: var(--s-6); }
.article p, .article ul, .article ol { font-size: 1.02rem; line-height: 1.7; }
.article ul, .article ol { padding-left: var(--s-5); margin-bottom: 1.2em; }
.article li { margin-bottom: var(--s-2); }
.article hr { border: none; border-top: 1px solid var(--line); margin: var(--s-7) 0; }
.legal-banner {
  background: rgba(184, 105, 75, 0.08);
  border-left: 3px solid var(--warm);
  padding: var(--s-4) var(--s-5);
  margin-bottom: var(--s-6);
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--ink);
}
.legal-banner strong { display: block; margin-bottom: var(--s-2); color: var(--warm-d); }
.legal-meta {
  font-size: 0.85rem;
  color: var(--ink-mute);
  margin-bottom: var(--s-5);
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--line);
}

/* CTA block */
.cta-block {
  background: var(--accent);
  color: var(--cream);
  padding: var(--s-7);
  border-radius: var(--radius-lg);
  text-align: center;
}
.cta-block h2 { color: var(--cream); }
.cta-block p { color: rgba(253, 251, 247, 0.9); max-width: 50ch; margin: 0 auto var(--s-5); }
.cta-block .btn-primary { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.cta-block .btn-primary:hover { background: var(--ink); color: var(--cream); }

/* Subtle scroll-reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
}

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-3 { margin-bottom: var(--s-3); }
.mb-5 { margin-bottom: var(--s-5); }
.mb-7 { margin-bottom: var(--s-7); }
.section-heading { max-width: 56ch; margin-bottom: var(--s-7); }
.section-heading.center { margin-left: auto; margin-right: auto; text-align: center; }
.divider { height: 1px; background: var(--line); margin: var(--s-7) 0; }
.tag {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-d);
  font-weight: 600;
  background: var(--bg-alt);
  padding: 0.25rem 0.6rem;
  border-radius: 100px;
}
.related {
  border-top: 1px solid var(--line);
  padding-top: var(--s-6);
  margin-top: var(--s-7);
}
.related h3 { font-family: var(--sans); font-size: 0.9rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mute); font-weight: 600; }
.related ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--s-3); }
.related a { font-size: 0.95rem; }

@media (prefers-color-scheme: dark) {
  /* Honor reading preference but keep brand identity. Light scheme is the default for warmth. */
}
