/* ==========================================================================
   Pasadena Clinical Group — Depression Support LA
   Editorial wellness design system. Restraint over decoration.
   v2: refined typography, brand wordmark, varied layouts, compact components.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Warm palette — cream, deep forest, soft terracotta */
  --cream: #f4eedd;
  --cream-2: #ebe1c8;
  --paper: #faf6ec;
  --ink: #14201c;
  --ink-2: #2a3833;
  --ink-3: #44544f;
  --muted: #5d6b66;
  --muted-2: #8b9590;
  --line: #e6dec9;
  --line-2: #d4cab0;

  --forest: #1f3d2c;
  --forest-2: #2d5340;
  --forest-dk: #16291f;
  --forest-tint: #e2eadf;
  --forest-tint-2: #cfd9c8;

  --terracotta: #b85a3f;
  --terracotta-dk: #8b3f29;
  --terracotta-tint: #f3dccd;
  --sand: #d6bc7d;

  --shadow-1: 0 1px 2px rgba(20,32,28,.04), 0 8px 24px rgba(20,32,28,.06);
  --shadow-2: 0 1px 2px rgba(20,32,28,.06), 0 18px 50px rgba(20,32,28,.12);
  --shadow-img: 0 30px 80px -20px rgba(20,32,28,.25), 0 8px 24px -8px rgba(20,32,28,.15);

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;

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

  --container: 1200px;
  --container-narrow: 760px;
  --easing: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11", "cv02";
}
img, svg, picture { max-width: 100%; display: block; }
a { color: var(--forest); text-decoration: none; transition: color .2s var(--easing); }
a:hover { color: var(--terracotta-dk); }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--forest); outline-offset: 3px; border-radius: 4px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 56px 0; }
::selection { background: var(--terracotta-tint); color: var(--ink); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.1;
  color: var(--ink);
  letter-spacing: -0.022em;
  margin: 0 0 .5em;
  font-variation-settings: "opsz" 36, "SOFT" 50;
}
h1 {
  font-size: clamp(2.4rem, 5.4vw + .2rem, 4.4rem);
  font-weight: 400;
  letter-spacing: -0.034em;
  line-height: 1.02;
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
h2 {
  font-size: clamp(1.85rem, 2.4vw + .8rem, 2.9rem);
  letter-spacing: -0.026em;
  line-height: 1.08;
  font-variation-settings: "opsz" 72, "SOFT" 40;
}
h3 {
  font-size: clamp(1.3rem, 1vw + .9rem, 1.65rem);
  font-weight: 500;
  letter-spacing: -0.018em;
}
h4 { font-size: 1.1rem; font-weight: 600; font-family: var(--sans); letter-spacing: -.005em; color: var(--ink); }
p  { margin: 0 0 1.05em; }
strong { color: var(--ink); font-weight: 600; }

.lead { font-size: clamp(1.1rem, .4vw + 1rem, 1.28rem); color: var(--ink-3); line-height: 1.55; font-weight: 400; }
.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .74rem;
  font-weight: 600;
  color: var(--terracotta-dk);
  display: inline-block;
  margin-bottom: 18px;
  position: relative;
  padding-left: 24px;
}
.eyebrow::before {
  content: ""; position: absolute; left: 0; top: .68em;
  width: 16px; height: 1.5px; background: var(--terracotta);
}
.serif { font-family: var(--serif); font-weight: 400; }
.muted { color: var(--muted); }
.text-balance { text-wrap: balance; }

/* ---------- Layout ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 28px; }
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section-tight { padding: clamp(40px, 6vw, 72px) 0; }
.section.cream { background: var(--cream); }
.section.cream-2 { background: var(--cream-2); }
.section.paper { background: var(--paper); }
.section.forest {
  background: var(--forest);
  color: #f4eedd;
}
.section.forest h1, .section.forest h2, .section.forest h3 { color: #f4eedd; }
.section.forest a:not(.btn) { color: var(--cream); text-decoration: underline; text-underline-offset: 4px; }
.section.forest p { color: rgba(244, 238, 221, .82); }

.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 760px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.split-2 { display: grid; gap: clamp(40px, 6vw, 80px); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .split-2 { grid-template-columns: 1.1fr 1fr; } }
.split-2.reverse > :first-child { order: 2; }
.split-2.reverse > :nth-child(2) { order: 1; }
@media (min-width: 900px) {
  .split-2.reverse { grid-template-columns: 1fr 1.1fr; }
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--forest); color: #fff; padding: 12px 16px; z-index: 1000;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* ---------- Top utility bar ---------- */
.utilbar {
  background: var(--forest-dk);
  color: #d8dcd0;
  font-size: .82rem;
  letter-spacing: .005em;
}
.utilbar a { color: #d8dcd0; }
.utilbar a:hover { color: #fff; }
.utilbar .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap;
}
.utilbar .util-left { display: flex; gap: 24px; flex-wrap: wrap; }
.utilbar .util-right { color: rgba(216, 220, 208, .68); }
.utilbar .util-hours { color: rgba(216, 220, 208, .68); }
@media (max-width: 640px) { .utilbar .util-hours { display: none; } }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 246, 236, .88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(230, 222, 201, .8);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 0; }

/* Brand: single-line wordmark + minimalist mark */
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--ink); flex-shrink: 0;
}
.brand-icon {
  width: 34px; height: 34px; flex-shrink: 0;
  color: var(--forest);
}
.brand-wordmark {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1rem, .8vw + .85rem, 1.22rem);
  letter-spacing: -.02em;
  line-height: 1;
  white-space: nowrap;
  color: var(--ink);
  font-variation-settings: "opsz" 24, "SOFT" 40;
}
@media (max-width: 380px) {
  .brand-wordmark { font-size: .95rem; }
  .brand { gap: 9px; }
  .brand-icon { width: 28px; height: 28px; }
}

.nav-links {
  list-style: none; padding: 0; margin: 0;
  display: flex; align-items: center; gap: 2px;
}
.nav-links > li { position: relative; }
.nav-links > li > a,
.nav-links > li > button {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 13px;
  border-radius: 999px;
  background: transparent; border: 0;
  font-size: .92rem; font-weight: 500; color: var(--ink-2);
  white-space: nowrap;
  transition: background .18s var(--easing), color .18s var(--easing);
}
.nav-links > li > a:hover,
.nav-links > li > a.active,
.nav-links > li > button:hover,
.nav-links > li.has-menu:hover > button { background: rgba(20, 32, 28, .06); color: var(--ink); }
.nav-links .has-menu > button::after {
  content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px); margin-left: 2px;
}
.nav-cta {
  margin-left: 6px;
  padding: 9px 18px !important;
  background: var(--forest) !important; color: var(--cream) !important;
  border-radius: 999px;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--forest-dk) !important; }

/* Dropdown */
.nav-menu {
  position: absolute; top: calc(100% + 8px); left: -8px;
  min-width: 300px; padding: 10px;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-2);
  list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s var(--easing), transform .18s var(--easing), visibility .18s;
}
.nav-links > li.has-menu:hover .nav-menu,
.nav-links > li.has-menu:focus-within .nav-menu,
.nav-links > li.has-menu.open .nav-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-menu li a {
  display: block; padding: 10px 14px;
  border-radius: 8px; color: var(--ink-2); font-size: .92rem;
  transition: background .15s var(--easing), color .15s var(--easing);
}
.nav-menu li a:hover { background: var(--forest-tint); color: var(--forest-dk); }

/* Mobile nav toggle */
.nav-toggle {
  display: none; background: transparent; border: 1px solid var(--line);
  width: 42px; height: 42px; border-radius: 10px;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 18px; height: 1.6px; background: var(--ink); position: relative;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after  { position: absolute; top: 6px; }

@media (max-width: 1140px) {
  .nav-links { display: none; flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-toggle { display: inline-flex; }
  .nav.open .nav-links {
    display: flex; position: absolute; top: 100%; right: 28px; left: 28px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 16px; box-shadow: var(--shadow-2); margin-top: 6px;
    max-height: calc(100vh - 200px); overflow: auto;
  }
  .nav-links > li > a, .nav-links > li > button { width: 100%; justify-content: space-between; padding: 12px 14px; }
  .nav-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; padding: 4px 8px 8px 18px;
    background: transparent; max-height: 0; overflow: hidden;
    transition: max-height .25s var(--easing);
  }
  .nav-links .has-menu.open .nav-menu { max-height: 600px; }
  .nav-cta { width: 100%; text-align: center; justify-content: center; }
}

/* ---------- Buttons ---------- */
.btn, button.btn, a.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600; font-size: .95rem;
  border: 1px solid transparent;
  letter-spacing: -.005em;
  transition: background .2s var(--easing), color .2s var(--easing), border-color .2s var(--easing), transform .12s var(--easing);
  white-space: nowrap;
}
.btn-primary { background: var(--forest); color: var(--cream); }
.btn-primary:hover { background: var(--forest-dk); color: var(--cream); }
.btn-secondary { background: transparent; color: var(--forest); border-color: var(--forest); }
.btn-secondary:hover { background: var(--forest-tint); }
.btn-terra { background: var(--terracotta); color: #fff; }
.btn-terra:hover { background: var(--terracotta-dk); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--cream); }
.btn:active { transform: translateY(1px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn .arrow-r { transition: transform .2s var(--easing); }
.btn:hover .arrow-r { transform: translateX(3px); }

/* ---------- Hero ---------- */
.hero {
  position: relative; padding: clamp(64px, 9vw, 120px) 0 clamp(56px, 7vw, 88px);
  background:
    radial-gradient(60% 70% at 80% 0%, var(--terracotta-tint) 0%, transparent 60%),
    linear-gradient(180deg, var(--paper) 0%, var(--cream) 100%);
  overflow: hidden;
}
.hero h1 { margin-bottom: 22px; }
.hero h1 em {
  font-style: italic; font-variation-settings: "opsz" 144, "SOFT" 100;
  color: var(--forest);
}
.hero .lead { max-width: 56ch; margin-bottom: 32px; }
.hero-image { position: relative; }
.hero-image img {
  width: 100%; height: auto; aspect-ratio: 5/4; object-fit: cover;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-img);
}
.hero-image::after {
  content: ""; position: absolute; inset: auto -28px -28px auto;
  width: 140px; height: 140px; border-radius: 50%;
  background: var(--forest-tint);
  z-index: -1;
}
.hero-image::before {
  content: ""; position: absolute; inset: -20px -20px auto auto;
  width: 90px; height: 90px; border-radius: 50%;
  background: var(--sand); opacity: .35;
  z-index: -1;
}

/* Page hero (interior) */
.page-hero {
  background:
    radial-gradient(80% 60% at 50% 0%, var(--cream) 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--line);
  padding: clamp(56px, 7vw, 96px) 0 clamp(40px, 5vw, 64px);
  position: relative;
}
.page-hero h1 { max-width: 22ch; }
.page-hero .lead { max-width: 52ch; margin-bottom: 0; }
.breadcrumb {
  font-size: .82rem; color: var(--muted); margin-bottom: 18px; letter-spacing: .01em;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--forest); }

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex; flex-direction: column;
  transition: transform .25s var(--easing), box-shadow .25s var(--easing), border-color .25s var(--easing);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-1); border-color: var(--line-2); }
.card-img { margin: -28px -28px 22px; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; aspect-ratio: 3/2; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--easing); }
.card:hover .card-img img { transform: scale(1.04); }
.card h3 { margin-bottom: 10px; font-size: 1.3rem; }
.card p { color: var(--muted); margin-bottom: 16px; flex: 1; line-height: 1.55; font-size: .98rem; }
.card .arrow {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--forest); font-weight: 600; font-size: .9rem;
  letter-spacing: -.005em;
}
.card .arrow::after { content: "→"; transition: transform .2s var(--easing); }
.card:hover .arrow::after { transform: translateX(4px); }

/* Trust band — refined */
.trust-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 24px;
  transition: border-color .2s var(--easing);
}
.trust-card:hover { border-color: var(--forest); }
.trust-card .icon {
  width: 44px; height: 44px;
  color: var(--forest);
  margin-bottom: 16px;
}
.trust-card .icon svg { width: 100%; height: 100%; }
.trust-card h4 { margin-bottom: 6px; font-family: var(--serif); font-weight: 500; font-size: 1.08rem; line-height: 1.3; }
.trust-card p { color: var(--muted); font-size: .92rem; margin: 0; line-height: 1.55; }

/* Stat band */
.stat {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.stat .num {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2rem, 3vw + 1rem, 3rem);
  line-height: 1; color: var(--forest);
  display: block; margin-bottom: 8px;
  letter-spacing: -.03em;
}
.stat .label { color: var(--muted); font-size: .92rem; }

/* Steps */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 64px; margin-bottom: 32px; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 0;
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 1rem; font-weight: 500;
  color: var(--forest);
  border: 1px solid var(--forest);
  border-radius: 50%;
}
.step:last-child { margin-bottom: 0; }
.step h4 { margin: 0 0 6px; font-family: var(--serif); font-weight: 500; font-size: 1.2rem; line-height: 1.3; }
.step p { color: var(--muted); margin: 0; line-height: 1.65; }

/* ---------- Testimonials — compact carousel ---------- */
.testimonial-strip {
  position: relative;
  margin: 0 -28px;
}
.testimonial-track {
  display: flex; gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 28px 24px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
}
.testimonial-track::-webkit-scrollbar { height: 6px; }
.testimonial-track::-webkit-scrollbar-track { background: transparent; }
.testimonial-track::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 3px; }
.testimonial {
  flex: 0 0 auto;
  width: min(380px, 86vw);
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px 22px;
  position: relative;
  display: flex; flex-direction: column;
}
.testimonial::before {
  content: "“";
  font-family: var(--serif); font-size: 3.2rem; line-height: .8;
  color: var(--terracotta); position: absolute; top: 14px; right: 22px;
  opacity: .3;
}
.testimonial .quote {
  font-family: var(--serif); font-size: 1.04rem; line-height: 1.55; color: var(--ink);
  margin: 0 0 16px; font-weight: 400;
  font-variation-settings: "opsz" 18, "SOFT" 80;
}
.testimonial cite { display: block; font-style: normal; color: var(--muted); font-size: .82rem; }
.testimonial cite strong { color: var(--ink-2); font-weight: 600; }

.testimonial-controls {
  display: flex; gap: 10px; justify-content: center; margin-top: 8px;
}
.testimonial-controls button {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line-2); background: #fff;
  color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s var(--easing), color .15s var(--easing), border-color .15s var(--easing);
}
.testimonial-controls button:hover { background: var(--forest); color: var(--cream); border-color: var(--forest); }

/* Pull-quote */
.pullquote {
  font-family: var(--serif); font-size: clamp(1.4rem, 1vw + 1rem, 1.7rem); line-height: 1.35;
  color: var(--forest-dk); font-weight: 400;
  border-left: 3px solid var(--terracotta);
  padding: 6px 0 6px 26px;
  margin: 36px 0;
  font-variation-settings: "opsz" 36, "SOFT" 60;
  letter-spacing: -.01em;
}

/* ---------- Lists ---------- */
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li {
  position: relative; padding-left: 36px; margin-bottom: 16px; color: var(--ink-2);
  line-height: 1.55;
}
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 5px;
  width: 22px; height: 22px;
  background: var(--forest-tint);
  border-radius: 50%;
}
.checklist li::after {
  content: ""; position: absolute; left: 6px; top: 11px;
  width: 10px; height: 5px;
  border-left: 1.8px solid var(--forest);
  border-bottom: 1.8px solid var(--forest);
  transform: rotate(-45deg);
}
.dotlist { list-style: none; padding: 0; margin: 0; }
.dotlist li { position: relative; padding-left: 22px; margin-bottom: 11px; color: var(--ink-2); line-height: 1.55; }
.dotlist li::before { content: "•"; position: absolute; left: 4px; top: 0; color: var(--terracotta); font-weight: 700; font-size: 1.2em; }

/* ---------- Forms ---------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 6px; font-size: .92rem; letter-spacing: -.005em; }
.field .hint { color: var(--muted); font-size: .82rem; margin-top: 4px; }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="number"],
.field input[type="date"],
.field select,
.field textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--line-2); border-radius: 10px;
  background: #fff; font: inherit; color: var(--ink);
  transition: border-color .18s var(--easing), box-shadow .18s var(--easing);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px rgba(31,61,44,.15);
}
.field-row { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .field-row { grid-template-columns: 1fr 1fr; } }
.checkbox-grid { display: grid; gap: 8px 18px; grid-template-columns: 1fr; margin: 6px 0 4px; }
@media (min-width: 600px) { .checkbox-grid { grid-template-columns: 1fr 1fr; } }
.checkbox-grid label { display: flex; gap: 8px; font-weight: 400; color: var(--ink-2); margin: 0; align-items: flex-start; line-height: 1.4; }
.form-disclaimer {
  background: var(--forest-tint); border: 1px solid rgba(31,61,44,.18);
  border-left: 3px solid var(--forest);
  padding: 14px 18px; border-radius: 10px;
  font-size: .92rem; color: var(--ink-2); margin-bottom: 22px; line-height: 1.55;
}
.form-status { padding: 14px 18px; border-radius: 10px; margin-top: 14px; font-size: .96rem; }
.form-status.success { background: var(--forest-tint); color: var(--forest-dk); border: 1px solid var(--forest); }
.form-status.error { background: var(--terracotta-tint); color: var(--terracotta-dk); border: 1px solid var(--terracotta); }
.form-status[hidden] { display: none; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #b9c0bb;
  padding: 72px 0 28px;
  margin-top: 100px;
}
.site-footer h4 { color: #f4eedd; font-family: var(--serif); font-weight: 500; font-size: 1.05rem; margin-bottom: 16px; }
.site-footer a { color: #b9c0bb; transition: color .15s var(--easing); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: 9px; font-size: .92rem; }
.footer-meta { font-size: .88rem; color: #8c948f; line-height: 1.7; }
.footer-meta strong { color: #d3d8d3; font-weight: 600; }
.footer-bottom {
  border-top: 1px solid #283631;
  margin-top: 48px; padding-top: 24px;
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between;
  font-size: .82rem; color: #767e79;
}
.footer-bottom a { color: #767e79; }
.footer-bottom .legal-links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.crisis-note {
  background: rgba(184,90,63,.10); border-left: 3px solid var(--terracotta);
  padding: 14px 18px; border-radius: 6px;
  font-size: .82rem; color: #d3c0b3;
  margin-top: 18px; line-height: 1.65;
}
.crisis-note strong { color: #f0d4c0; }
.crisis-note a { color: #f0d4c0; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
  padding: 22px 24px; z-index: 100;
  max-width: 720px; margin: 0 auto;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner h4 { margin: 0 0 6px; font-family: var(--serif); font-weight: 500; font-size: 1.1rem; }
.cookie-banner p { margin: 0 0 14px; color: var(--muted); font-size: .92rem; line-height: 1.55; }
.cookie-banner .btn-row { gap: 10px; }
.cookie-banner .btn { padding: 10px 18px; font-size: .9rem; }
.cookie-modal {
  position: fixed; inset: 0; background: rgba(20,32,28,.6);
  display: flex; align-items: center; justify-content: center;
  padding: 16px; z-index: 200;
}
.cookie-modal[hidden] { display: none; }
.cookie-modal .panel {
  background: #fff; border-radius: var(--radius);
  max-width: 560px; width: 100%; max-height: 90vh; overflow: auto;
  padding: 32px;
}
.cookie-cat { padding: 14px 0; border-bottom: 1px solid var(--line); }
.cookie-cat:last-child { border-bottom: 0; }
.cookie-cat .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cookie-cat h5 { margin: 0; font-size: 1rem; font-family: var(--serif); font-weight: 500; }
.cookie-cat p { color: var(--muted); font-size: .88rem; margin: 4px 0 0; line-height: 1.55; }
.toggle { position: relative; display: inline-block; width: 42px; height: 24px; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle .slider {
  position: absolute; inset: 0; background: var(--line-2);
  border-radius: 999px; transition: background .2s var(--easing); cursor: pointer;
}
.toggle .slider::before {
  content: ""; position: absolute; height: 18px; width: 18px;
  left: 3px; top: 3px; background: #fff;
  border-radius: 50%; transition: transform .2s var(--easing);
}
.toggle input:checked + .slider { background: var(--forest); }
.toggle input:checked + .slider::before { transform: translateX(18px); }
.toggle input:disabled + .slider { opacity: .55; cursor: not-allowed; }

/* ---------- Article (legal & blog) ---------- */
.article {
  max-width: var(--container-narrow); margin: 0 auto; padding: 0 28px;
  font-size: 1.03rem; line-height: 1.78;
}
.article h2 { margin-top: 2.2em; font-size: 1.65rem; }
.article h3 { margin-top: 1.8em; font-size: 1.25rem; }
.article p, .article ul, .article ol { color: var(--ink-2); }
.article ul, .article ol { padding-left: 22px; }
.article li { margin-bottom: 6px; }
.article .legal-banner {
  background: var(--terracotta-tint); border: 1px solid var(--terracotta);
  border-radius: var(--radius); padding: 18px 22px;
  margin-bottom: 32px; font-size: .96rem;
}
.article .legal-banner strong { color: var(--terracotta-dk); }
.article .meta { color: var(--muted); font-size: .9rem; margin-bottom: 24px; }
.article a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; text-decoration-color: rgba(31,61,44,.35); }
.article a:hover { text-decoration-color: currentColor; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.faq summary {
  cursor: pointer; font-weight: 500; font-size: 1.06rem;
  list-style: none; display: flex; justify-content: space-between; align-items: flex-start;
  gap: 16px; color: var(--ink); font-family: var(--serif);
  font-variation-settings: "opsz" 24;
  letter-spacing: -.012em; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.5rem; line-height: 1; color: var(--terracotta); flex-shrink: 0;
  width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-2); border-radius: 50%;
  transition: transform .2s var(--easing), background .2s var(--easing);
}
.faq details[open] summary::after { content: "−"; background: var(--terracotta-tint); border-color: var(--terracotta); }
.faq details > p, .faq details > ul { margin-top: 12px; color: var(--muted); }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 40px; }
.mt-3 { margin-top: 24px; }
.divider { display: inline-block; width: 40px; height: 1.5px; background: var(--terracotta); margin: 0 0 16px; }
.tag {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  background: var(--forest-tint); color: var(--forest-dk);
  font-size: .76rem; font-weight: 600; letter-spacing: .04em;
}

/* Image with frame */
.framed-img {
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-img);
  position: relative;
}
.framed-img img { width: 100%; height: auto; display: block; }

/* Section header centerpiece */
.section-head { text-align: center; max-width: 56ch; margin: 0 auto 48px; }
.section-head .eyebrow { padding-left: 0; }
.section-head .eyebrow::before { display: none; }

/* Inline media (article) */
.article figure { margin: 28px 0; }
.article figure img { width: 100%; border-radius: var(--radius); }
.article figcaption { font-size: .86rem; color: var(--muted); margin-top: 8px; }

/* "Doesn't fit a section" filler — Visual decoration */
.deco-line {
  width: 100%; height: 1px; background: var(--line);
  margin: 24px 0;
}

/* ==========================================================================
   Editorial components (Conditions + Approach pages)
   ========================================================================== */

/* ---------- Fact strip — sits between page-hero and main content ---------- */
.fact-strip {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  padding: 28px 32px;
  display: grid; gap: 24px 36px;
  grid-template-columns: 1fr;
  position: relative;
  margin: -36px auto 0;
  z-index: 2;
}
@media (min-width: 720px) { .fact-strip { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .fact-strip { grid-template-columns: repeat(4, 1fr); padding: 30px 36px; } }
.fact-strip .fact { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fact-strip .fact-label {
  font-family: var(--sans); text-transform: uppercase;
  letter-spacing: .14em; font-size: .68rem; font-weight: 600;
  color: var(--terracotta-dk);
}
.fact-strip .fact-value {
  font-family: var(--serif); font-weight: 500;
  font-size: 1.05rem; color: var(--ink);
  line-height: 1.35; letter-spacing: -.012em;
  font-variation-settings: "opsz" 24, "SOFT" 50;
}
.fact-strip .fact-value small {
  display: block; font-family: var(--sans); font-size: .8rem;
  color: var(--muted); font-weight: 400; margin-top: 2px; line-height: 1.4;
}

/* ---------- Numbered section heading ---------- */
.num-h {
  position: relative;
  display: flex; align-items: flex-start; gap: 24px;
  margin-bottom: 32px;
}
.num-h .num-marker {
  font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 400; line-height: 1; color: var(--terracotta);
  flex-shrink: 0; letter-spacing: -.03em;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  opacity: .85;
  font-feature-settings: "lnum";
}
.num-h .num-title { flex: 1; min-width: 0; }
.num-h .num-title h2 { margin: 4px 0 0; }
.num-h .num-title .eyebrow { padding-left: 0; margin-bottom: 4px; }
.num-h .num-title .eyebrow::before { display: none; }
@media (max-width: 640px) {
  .num-h { gap: 14px; }
  .num-h .num-marker { font-size: 2.2rem; }
}

/* ---------- Article spread with drop-cap (used on Conditions intros) ---------- */
.spread-intro p:first-child::first-letter {
  font-family: var(--serif);
  font-size: 4em;
  float: left;
  line-height: .82;
  margin: .04em .12em -.04em 0;
  color: var(--forest);
  font-weight: 400;
  letter-spacing: -.04em;
  font-variation-settings: "opsz" 144, "SOFT" 50;
}
.spread-intro p { font-size: 1.06rem; line-height: 1.72; }

/* ---------- Feature quote — full-width quote interlude between sections ---------- */
.feature-quote {
  background:
    radial-gradient(60% 100% at 80% 50%, rgba(184,90,63,.08), transparent 60%),
    var(--cream);
  padding: clamp(64px, 8vw, 96px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.feature-quote .quote-body {
  max-width: 32ch; margin: 0 auto;
  text-align: center; position: relative;
}
.feature-quote .quote-body::before {
  content: ""; display: inline-block;
  width: 36px; height: 1.5px; background: var(--terracotta);
  margin: 0 auto 24px;
}
.feature-quote .quote-body blockquote {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.4vw + .4rem, 2.4rem);
  line-height: 1.22; letter-spacing: -.022em;
  font-weight: 400; color: var(--forest-dk);
  font-variation-settings: "opsz" 96, "SOFT" 40;
}
.feature-quote .quote-body cite {
  font-style: normal; color: var(--muted); font-size: .88rem;
  letter-spacing: .03em;
}

/* ---------- Inline mid-page CTA ---------- */
.inline-cta {
  margin: 8px 0;
  padding: 28px 32px;
  background: var(--forest-tint);
  border-radius: var(--radius);
  display: flex; flex-direction: column; gap: 16px;
  align-items: flex-start;
  border-left: 3px solid var(--forest);
}
@media (min-width: 720px) {
  .inline-cta { flex-direction: row; align-items: center; justify-content: space-between; gap: 32px; }
  .inline-cta .inline-cta-copy { flex: 1; }
}
.inline-cta h4 {
  font-family: var(--serif); font-weight: 500; font-size: 1.2rem;
  margin: 0 0 4px; color: var(--forest-dk);
  font-variation-settings: "opsz" 36, "SOFT" 50;
}
.inline-cta p { margin: 0; color: var(--ink-3); font-size: .96rem; line-height: 1.55; }
.inline-cta .btn { flex-shrink: 0; }

/* ---------- "Is this you?" matcher box ---------- */
.matcher {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 32px; margin: 32px 0;
}
.matcher h4 {
  font-family: var(--serif); font-weight: 500; font-size: 1.12rem;
  margin: 0 0 14px; color: var(--ink);
  font-variation-settings: "opsz" 24;
}
.matcher .matcher-list { list-style: none; padding: 0; margin: 0; }
.matcher .matcher-list li {
  position: relative; padding-left: 28px; margin-bottom: 10px; color: var(--ink-2);
  line-height: 1.55; font-size: .98rem;
}
.matcher .matcher-list li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 14px; height: 6px;
  border-left: 1.6px solid var(--terracotta);
  border-bottom: 1.6px solid var(--terracotta);
  transform: rotate(-45deg);
}

/* ---------- "What to expect" stepper (Approach pages) ---------- */
.expect-flow {
  display: grid; gap: 20px;
  grid-template-columns: 1fr;
  margin: 24px 0;
}
@media (min-width: 760px) {
  .expect-flow { grid-template-columns: repeat(3, 1fr); position: relative; }
  .expect-flow::before {
    content: ""; position: absolute; top: 24px; left: 12%; right: 12%;
    height: 1px; background: var(--line-2); z-index: 0;
  }
}
.expect-flow .step-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
  position: relative; z-index: 1;
}
.expect-flow .step-card .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: #fff; border: 1px solid var(--forest); color: var(--forest);
  font-family: var(--serif); font-weight: 500; font-size: 1rem;
  margin-bottom: 14px;
}
.expect-flow .step-card h5 {
  margin: 0 0 6px; font-family: var(--serif); font-weight: 500;
  font-size: 1.08rem; line-height: 1.3;
}
.expect-flow .step-card p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.6; }

/* ---------- Mini info card / "At a glance" sidecar ---------- */
.glance {
  background: var(--cream); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 26px;
  margin: 24px 0;
}
.glance dl { margin: 0; }
.glance dt {
  text-transform: uppercase; letter-spacing: .14em; font-size: .68rem;
  font-weight: 600; color: var(--terracotta-dk);
  margin: 14px 0 4px;
}
.glance dt:first-child { margin-top: 0; }
.glance dd {
  margin: 0; font-family: var(--serif); font-weight: 500;
  font-size: 1.02rem; color: var(--ink); line-height: 1.4;
  font-variation-settings: "opsz" 18;
}
.glance dd small { display: block; font-family: var(--sans); font-size: .8rem; color: var(--muted); font-weight: 400; margin-top: 2px; }

/* ---------- Article kicker (decorative section divider) ---------- */
.kicker {
  display: flex; align-items: center; gap: 16px;
  font-size: .82rem; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 600; color: var(--muted);
  margin: 56px 0 24px;
}
.kicker::before, .kicker::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}

/* ---------- Refined related cards (asymmetric / magazine grid) ---------- */
.related-grid {
  display: grid; gap: 22px;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .related-grid { grid-template-columns: repeat(3, 1fr); }
}
.related-grid .card {
  padding: 22px 24px;
}
.related-grid .card h3 {
  font-size: 1.15rem; line-height: 1.3; margin-bottom: 8px;
}
.related-grid .card p { font-size: .92rem; }


/* ==========================================================================
   v3 refinements: reading progress, mini-TOC, modality chips, pagination,
   2-col feels list, scroll reveal, fleuron dividers
   ========================================================================== */

/* ---------- Reading progress bar (top of viewport) ---------- */
.read-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 2px; z-index: 60;
  background: transparent;
  pointer-events: none;
}
.read-progress .bar {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--terracotta) 0%, var(--forest) 100%);
  transition: width .12s linear;
}

/* ---------- Page position indicator + reading time (page-hero badge row) ---------- */
.meta-row {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-bottom: 18px;
  font-size: .8rem; letter-spacing: .04em;
  color: var(--muted);
}
.meta-row .meta-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.6);
  font-weight: 500;
  color: var(--ink-3);
}
.meta-row .meta-pill svg { width: 13px; height: 13px; opacity: .8; }
.meta-row .meta-pill strong { color: var(--ink); font-weight: 600; }
.meta-row .meta-divider { width: 4px; height: 4px; background: var(--line-2); border-radius: 50%; }

/* ---------- Floating mini-TOC (visible on wide screens, persists down the page) ---------- */
.mini-toc {
  display: none;
}
@media (min-width: 1320px) {
  .mini-toc {
    display: block;
    position: fixed;
    top: 50%;
    right: max(24px, calc((100vw - var(--container)) / 2 - 240px));
    transform: translateY(-50%);
    width: 200px;
    z-index: 6;
    background: rgba(250, 246, 236, .85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px 18px;
  }
}
.mini-toc .toc-label {
  font-size: .66rem; text-transform: uppercase; letter-spacing: .14em;
  font-weight: 600; color: var(--terracotta-dk); margin-bottom: 12px;
}
.mini-toc ol {
  list-style: none; padding: 0; margin: 0;
  border-left: 1px solid var(--line);
}
.mini-toc ol li { margin: 0; }
.mini-toc ol li a {
  display: flex; gap: 10px; align-items: baseline;
  padding: 7px 12px; border-left: 2px solid transparent;
  margin-left: -1px;
  font-size: .84rem; color: var(--muted);
  line-height: 1.35;
  transition: color .15s var(--easing), border-color .15s var(--easing);
}
.mini-toc ol li a:hover { color: var(--ink); }
.mini-toc ol li a .toc-num {
  font-family: var(--serif); font-size: .8rem; color: var(--terracotta);
  font-variation-settings: "opsz" 18;
  flex-shrink: 0; min-width: 22px;
}
.mini-toc ol li a.active {
  color: var(--ink); border-left-color: var(--forest); font-weight: 500;
}
.mini-toc ol li a.active .toc-num { color: var(--forest); }
/* .with-toc kept as a no-op wrapper so the existing template structure remains valid */
.with-toc { display: block; }
.with-toc > .article-body { width: 100%; }

/* ---------- Modality chips (inline pill for CBT/ACT/IFS/etc.) ---------- */
.chip {
  display: inline-block;
  padding: 3px 10px; margin: 2px 0;
  border-radius: 999px;
  font-size: .82rem; font-weight: 500; letter-spacing: -.005em;
  background: var(--forest-tint);
  color: var(--forest-dk);
  border: 1px solid rgba(31,61,44,.12);
  white-space: nowrap;
  vertical-align: baseline;
}
.chip.terra {
  background: var(--terracotta-tint);
  color: var(--terracotta-dk);
  border-color: rgba(184,90,63,.18);
}

/* ---------- 2-column "feels like" list at desktop ---------- */
@media (min-width: 760px) {
  .checklist.cols-2 {
    column-count: 2; column-gap: 40px;
  }
  .checklist.cols-2 li {
    break-inside: avoid;
  }
}

/* ---------- Pagination (prev/next condition or approach) ---------- */
.page-pagination {
  display: grid; gap: 16px;
  grid-template-columns: 1fr;
  margin-top: 56px; padding-top: 32px;
  border-top: 1px solid var(--line);
}
@media (min-width: 720px) {
  .page-pagination { grid-template-columns: 1fr 1fr; }
}
.page-pagination .pag-link {
  display: flex; flex-direction: column; gap: 8px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color .2s var(--easing), transform .2s var(--easing);
}
.page-pagination .pag-link:hover {
  border-color: var(--forest); transform: translateY(-2px);
}
.page-pagination .pag-link.next { text-align: right; }
.page-pagination .pag-direction {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .14em;
  font-weight: 600; color: var(--terracotta-dk);
  display: inline-flex; align-items: center; gap: 8px;
}
.page-pagination .pag-link.next .pag-direction { justify-content: flex-end; }
.page-pagination .pag-title {
  font-family: var(--serif); font-weight: 500;
  font-size: 1.18rem; line-height: 1.3; color: var(--ink);
  letter-spacing: -.018em;
  font-variation-settings: "opsz" 24;
}

/* ---------- Fleuron / dot divider between sections ---------- */
.section-divider {
  display: flex; justify-content: center; align-items: center;
  padding: 24px 0;
  gap: 6px;
  background: inherit;
}
.section-divider .dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--line-2);
}
.section-divider .dot:nth-child(2) { background: var(--terracotta); }

/* ---------- Scroll-reveal (subtle fade-up) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s var(--easing), transform .6s var(--easing);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Hanging quote refinement ---------- */
.feature-quote .quote-body blockquote::before {
  content: "“"; position: absolute; left: -16px; top: -.1em;
  font-family: var(--serif); font-size: 1.2em; color: var(--terracotta);
  opacity: .6;
}
.feature-quote .quote-body blockquote::after {
  content: "”"; margin-left: .12em; color: var(--terracotta); opacity: .6;
}
.feature-quote .quote-body blockquote { position: relative; padding: 0 .25em; }

/* ---------- Refined image frame ---------- */
.framed-img {
  position: relative;
}
.framed-img::after {
  content: ""; position: absolute; inset: 12px -12px -12px 12px;
  border: 1px solid var(--terracotta);
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: .35;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0s !important; transition-duration: 0s !important; }
  html { scroll-behavior: auto; }
}

/* Print */
@media print {
  .site-header, .site-footer, .cookie-banner, .cookie-modal, .nav-toggle, .lang-switcher { display: none !important; }
  body { background: #fff; color: #000; }
  .article { max-width: 100%; }
  .testimonial-track { overflow: visible; flex-wrap: wrap; }
}

/* ---------- Language switcher (utility bar) ---------- */
.utilbar .util-right {
  display: flex; align-items: center; gap: 18px;
}
.lang-switcher { position: relative; display: inline-flex; }
.lang-switcher .lang-trigger {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; border: 1px solid rgba(216, 220, 208, .22);
  color: #e6e9de; font: inherit; font-size: .82rem; letter-spacing: .005em;
  padding: 4px 10px; border-radius: 999px; cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.lang-switcher .lang-trigger:hover,
.lang-switcher .lang-trigger[aria-expanded="true"] {
  background: rgba(255,255,255,.06);
  border-color: rgba(216, 220, 208, .45);
  color: #fff;
}
.lang-switcher .lang-trigger .globe {
  width: 14px; height: 14px; display: inline-block; opacity: .9;
}
.lang-switcher .lang-trigger .flag {
  font-size: 1rem; line-height: 1; display: inline-block;
}
.lang-switcher .lang-trigger .label {
  font-weight: 600; letter-spacing: .04em;
}
.lang-switcher .lang-trigger .chev {
  width: 10px; height: 10px; opacity: .8; margin-left: 1px;
}
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 200px; max-height: 60vh; overflow-y: auto;
  background: #fbf8f1; color: #2a2f29;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,.18);
  padding: 6px; z-index: 60;
}
.lang-menu[hidden] { display: none; }
.lang-menu button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  background: transparent; border: 0; text-align: left;
  padding: 9px 12px; border-radius: 8px; cursor: pointer;
  font: inherit; font-size: .9rem; color: inherit; letter-spacing: 0;
}
.lang-menu button:hover, .lang-menu button:focus-visible {
  background: rgba(47, 77, 58, .08); outline: none;
}
.lang-menu button.active {
  background: rgba(47, 77, 58, .12); font-weight: 600;
}
.lang-menu button .flag { font-size: 1.15rem; line-height: 1; }
.lang-menu button .label { flex: 1; }

