/* ========================================================================
   PCG Design System — typography + layout primitives (Phase 9.0)
   Loaded after pcg-custom.css. Fonts loaded in HTML <head>:
     Fraunces (variable serif) — display + headings
     Inter (sans) — body
   ======================================================================== */

:root {
  /* Type families */
  --font-display: "Fraunces", "Source Serif 4", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  /* Fluid type scale (clamp(min, preferred-vw, max)) */
  --fs-h1: clamp(2rem, 1.4rem + 3.4vw, 4rem);          /* 32 → 64 */
  --fs-h2: clamp(1.5rem, 1.15rem + 1.8vw, 2.5rem);     /* 24 → 40 */
  --fs-h3: clamp(1.25rem, 1.1rem + 0.9vw, 1.625rem);   /* 20 → 26 */
  --fs-h4: clamp(1.125rem, 1.05rem + 0.4vw, 1.25rem);  /* 18 → 20 */
  --fs-body: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);  /* 16 → 18 */
  --fs-lead: clamp(1.125rem, 1rem + 0.6vw, 1.375rem);  /* 18 → 22 */
  --fs-small: clamp(0.875rem, 0.85rem + 0.15vw, 0.95rem);
  --fs-kicker: clamp(0.7rem, 0.68rem + 0.12vw, 0.78rem);

  /* Spacing & rhythm */
  --space-section: clamp(80px, 6vw, 140px);
  --space-section-mobile: 64px;
  --content-measure: 65ch;

  /* Couples-counseling palette extension (existing tokens kept in pcg-custom.css) */
  --pcg-terracotta: #c47b66;
  --pcg-ink-deep: #1a2f37;
  --pcg-cream: #fbf7f1;
  --pcg-mist-deep: #d6e8e3;
  --pcg-line: rgba(39, 70, 80, 0.14);
  --pcg-focus: #4f8c7a;
}

/* ----- Reset legacy template sidebar layout that scoped #main + body overflow ----- */
/* The bundled style.css applies width:80% / margin-left:20% / float:right to
   any element with id="main" (intended only for .de-sidebar pages). That rule
   floats <main id="main"> and lets the dark-themed <footer> slip behind it,
   producing a full-page dark/teal wash on every page. We restore the default
   block flow here. Body overflow:hidden in style.css is also overridden so
   the page can scroll normally. */
#main {
  width: auto !important;
  margin-left: 0 !important;
  float: none !important;
}
html, body { overflow: visible; }

/* ----- Base typography ---------------------------------------------------- */

html {
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  font-feature-settings: "kern", "liga", "calt", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  letter-spacing: -0.012em;
  color: var(--pcg-ink-deep);
}

h1, .h1 {
  font-size: var(--fs-h1);
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: -0.018em;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  margin-bottom: 0.5em;
}

h2, .h2 {
  font-size: var(--fs-h2);
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -0.012em;
  font-variation-settings: "opsz" 96, "SOFT" 30;
  margin-bottom: 0.6em;
}

h3, .h3 {
  font-size: var(--fs-h3);
  line-height: 1.25;
  font-weight: 600;
  font-variation-settings: "opsz" 36, "SOFT" 50;
  margin-bottom: 0.5em;
}

h4 { font-size: var(--fs-h4); line-height: 1.3; font-weight: 600; }

p, li {
  font-size: var(--fs-body);
  line-height: 1.65;
}

.lead, p.lead {
  font-size: var(--fs-lead);
  line-height: 1.5;
  font-weight: 400;
  color: var(--pcg-ink);
}

.prose,
.prose p,
article p {
  max-width: var(--content-measure);
}

.numerals-tabular { font-variant-numeric: tabular-nums; }

/* Pull-quote / editorial pull-out */
.pcg-pullquote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.25rem);
  line-height: 1.25;
  font-style: italic;
  font-weight: 400;
  color: var(--pcg-ink-deep);
  border-left: 3px solid var(--pcg-terracotta);
  padding: 4px 0 4px 24px;
  margin: 32px 0;
  max-width: 28ch;
}

/* Editorial eyebrow / kicker (override existing) */
.pcg-kicker {
  font-family: var(--font-body);
  font-size: var(--fs-kicker);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* ----- Layout primitives -------------------------------------------------- */

.section {
  padding-top: var(--space-section);
  padding-bottom: var(--space-section);
}

@media (max-width: 768px) {
  .section {
    padding-top: var(--space-section-mobile);
    padding-bottom: var(--space-section-mobile);
  }
}

.section-warm { background: var(--pcg-cream); }
.section-mist { background: linear-gradient(180deg, #fff, var(--pcg-mist) 100%); }
.section-rule { border-top: 1px solid var(--pcg-line); }

/* Lead unit: above-the-fold visual entry on Conditions/Approach/Modality pages.
   Multiple treatments (A/B/C/D) — alternate across the build. */
.lead-unit {
  display: grid;
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  padding-top: clamp(56px, 7vw, 120px);
  padding-bottom: clamp(48px, 6vw, 96px);
}

/* Treatment A: split 40/60 text/image */
.lead-unit--split {
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
}
@media (max-width: 900px) {
  .lead-unit--split { grid-template-columns: 1fr; }
}

/* When a .lead-unit contains only a Bootstrap-style .container (rows + cols
   handle the split internally) rather than dedicated .lead-content/.lead-image
   grid children, let the container span the full section width. */
.lead-unit > .container { grid-column: 1 / -1; }

/* Treatment B: full-bleed image with overlay card */
.lead-unit--full-bleed {
  grid-template-columns: 1fr;
  position: relative;
  min-height: clamp(420px, 60vh, 640px);
  align-items: end;
}
.lead-unit--full-bleed .lead-bleed-image {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.lead-unit--full-bleed .lead-bleed-image img {
  width: 100%; height: 100%; object-fit: cover;
}
.lead-unit--full-bleed .lead-content {
  position: relative;
  z-index: 1;
  background: rgba(251, 247, 241, 0.96);
  padding: clamp(28px, 4vw, 48px);
  border-radius: 24px;
  max-width: 56ch;
  backdrop-filter: blur(4px);
}

/* Treatment C: asymmetric — image bleeds off one edge */
.lead-unit--asymmetric {
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
}
.lead-unit--asymmetric .lead-image {
  margin-left: calc(-1 * var(--bs-gutter-x, 1.5rem));
}
@media (max-width: 900px) {
  .lead-unit--asymmetric { grid-template-columns: 1fr; }
  .lead-unit--asymmetric .lead-image { margin-left: 0; }
}

/* Treatment D: image on top, text below */
.lead-unit--stacked {
  grid-template-columns: 1fr;
}

.lead-content > .pcg-kicker { margin-bottom: 14px; }
.lead-content h1 { margin-bottom: 18px; }
.lead-content .lead { margin-bottom: 24px; max-width: 38ch; }

.lead-image img,
.lead-image picture {
  width: 100%;
  border-radius: 24px;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* "What this can feel like" — 3-column lived-experience cards */
.feel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2vw, 32px);
}
@media (max-width: 980px) { .feel-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .feel-grid { grid-template-columns: 1fr; } }

.feel-card {
  background: #fff;
  padding: clamp(24px, 2.4vw, 32px);
  border: 1px solid var(--pcg-line);
  border-radius: 18px;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.feel-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(39, 70, 80, 0.08);
}
.feel-card .icon {
  width: 28px; height: 28px;
  color: var(--pcg-focus);
  margin-bottom: 14px;
}
.feel-card h3 {
  font-size: var(--fs-h4);
  margin-bottom: 10px;
}
.feel-card p { font-size: 16px; margin: 0; }

/* "How therapy can help" — 2- or 3-column body with column-spanning pull-quote */
.help-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 3vw, 56px);
}
.help-grid .help-side {
  align-self: start;
  padding: 28px;
  background: var(--pcg-cream);
  border-radius: 16px;
  font-size: 15px;
  line-height: 1.55;
}
@media (max-width: 800px) { .help-grid { grid-template-columns: 1fr; } }
.help-grid p { max-width: var(--content-measure); }

/* Specific-moments callout — wide pull-quote with editorial treatment */
.moments-callout {
  margin: clamp(48px, 5vw, 80px) 0;
  padding: clamp(36px, 4vw, 64px);
  background: linear-gradient(180deg, var(--pcg-cream), #fff);
  border-radius: 32px;
  border: 1px solid var(--pcg-line);
  text-align: left;
}
.moments-callout blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1rem + 1.6vw, 2.25rem);
  line-height: 1.3;
  font-weight: 400;
  font-style: italic;
  margin: 0 0 12px 0;
  color: var(--pcg-ink-deep);
  max-width: 28ch;
}
.moments-callout cite {
  font-style: normal;
  font-size: var(--fs-small);
  color: var(--pcg-ink-soft);
  letter-spacing: 0.04em;
}

/* Related cards row */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .related-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .related-grid { grid-template-columns: 1fr; } }

.related-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid var(--pcg-line);
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  transition: transform 320ms cubic-bezier(0.2, 0.7, 0.25, 1),
              box-shadow 320ms cubic-bezier(0.2, 0.7, 0.25, 1),
              border-color 200ms ease;
}
.related-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 36px 60px -20px rgba(39, 70, 80, 0.22);
  border-color: rgba(150, 190, 179, 0.45);
}
.related-card:focus-visible {
  outline: 3px solid var(--pcg-focus);
  outline-offset: 3px;
}
.related-card picture {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: linear-gradient(180deg, var(--pcg-mist), var(--pcg-cream));
}
.related-card picture::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(180deg, transparent, rgba(26, 47, 55, 0.18));
  opacity: 0;
  transition: opacity 320ms ease;
  pointer-events: none;
}
.related-card:hover picture::after { opacity: 1; }
.related-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 600ms cubic-bezier(0.2, 0.7, 0.25, 1);
}
.related-card:hover img { transform: scale(1.06); }

.related-card .meta {
  padding: 22px 24px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.related-card .kicker {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pcg-terracotta);
  margin-bottom: 10px;
}
.related-card h3 {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 0.95rem + 0.4vw, 1.3rem);
  line-height: 1.22;
  font-weight: 500;
  margin: 0 0 8px 0;
  color: var(--pcg-ink-deep);
  letter-spacing: -0.005em;
}
.related-card p {
  font-size: 15px;
  line-height: 1.5;
  margin: 0 0 18px 0;
  color: var(--pcg-ink-soft);
}
.related-card .arrow {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--pcg-focus);
  transition: gap 250ms ease, color 200ms ease;
}
.related-card .arrow::after {
  content: "→";
  transition: transform 250ms ease;
}
.related-card:hover .arrow { gap: 12px; color: var(--pcg-terracotta); }
.related-card:hover .arrow::after { transform: translateX(2px); }

/* Feature card — distinct treatment for image-less / spotlight cards (e.g.
   Discernment). Reads as intentional design, not as a missing thumbnail. */
.related-card--feature {
  background:
    radial-gradient(circle at 90% 12%, rgba(196, 123, 102, 0.22), transparent 55%),
    linear-gradient(155deg, #1a2f37 0%, #274650 60%, #2f5560 100%);
  color: #fff;
  border-color: transparent;
  min-height: 100%;
}
.related-card--feature:hover {
  border-color: rgba(196, 123, 102, 0.6);
  box-shadow: 0 36px 60px -20px rgba(26, 47, 55, 0.45);
}
.related-card--feature .meta {
  padding: 32px 28px 28px;
  position: relative;
  min-height: 280px;
}
.related-card--feature .meta::before {
  content: "“";
  position: absolute;
  top: -10px;
  right: 18px;
  font-family: var(--font-display);
  font-size: 200px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}
.related-card--feature .kicker {
  color: rgba(255, 255, 255, 0.78);
}
.related-card--feature h3 {
  color: #fff;
  font-size: clamp(1.4rem, 1.1rem + 0.8vw, 1.85rem);
  line-height: 1.18;
  margin-bottom: 14px;
  font-weight: 500;
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  max-width: 18ch;
}
.related-card--feature p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
  line-height: 1.55;
}
.related-card--feature .arrow {
  color: #fff;
}
.related-card--feature:hover .arrow { color: var(--pcg-terracotta); }

/* Lifted "concern cluster" sections on /conditions/index */
.cluster-band {
  padding: clamp(56px, 5vw, 96px) 0;
}
.cluster-band + .cluster-band { padding-top: 0; }
.cluster-head {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: end;
  margin-bottom: clamp(32px, 3.5vw, 56px);
  padding-bottom: 22px;
  border-bottom: 1px solid var(--pcg-line);
}
@media (max-width: 800px) {
  .cluster-head { grid-template-columns: 1fr; }
}
.cluster-head .num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 1.8rem + 3vw, 4rem);
  line-height: 0.9;
  color: var(--pcg-terracotta);
  font-weight: 500;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
.cluster-head h2 {
  margin: 0 0 8px 0;
  max-width: 22ch;
}
.cluster-head p {
  margin: 0;
  font-size: var(--fs-body);
  color: var(--pcg-ink-soft);
  line-height: 1.55;
  max-width: 60ch;
}

/* Conditions index intro grid (copy + side panel) */
@media (max-width: 800px) {
  .conditions-intro-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Step flow (1–4 horizontal steps for Modality "What a session looks like") */
.step-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}
@media (max-width: 800px) { .step-flow { grid-template-columns: 1fr; gap: 20px; } }

.step-flow .step {
  background: #fff;
  border: 1px solid var(--pcg-line);
  border-radius: 18px;
  padding: 24px;
}
.step-flow .step .num {
  display: inline-flex;
  width: 36px; height: 36px;
  align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--pcg-mist-deep);
  color: var(--pcg-ink-deep);
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: 14px;
}
.step-flow .step h3 { font-size: var(--fs-h4); margin-bottom: 8px; }
.step-flow .step p { font-size: 15px; margin: 0; color: var(--pcg-ink-soft); }

/* CTA band */
.cta-band {
  padding: clamp(56px, 6vw, 120px) clamp(28px, 4vw, 56px);
  background: linear-gradient(120deg, var(--pcg-mist-deep), var(--pcg-cream));
  border-radius: 32px;
  text-align: center;
  margin: clamp(60px, 6vw, 100px) 0;
}
.cta-band h2 { margin-bottom: 12px; max-width: 24ch; margin-left: auto; margin-right: auto; }
.cta-band p { max-width: 50ch; margin-left: auto; margin-right: auto; margin-bottom: 24px; }

/* Trust band — homepage */
.trust-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
@media (max-width: 980px) { .trust-band { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .trust-band { grid-template-columns: 1fr; } }

.trust-card {
  background: #fff;
  border: 1px solid var(--pcg-line);
  border-radius: 18px;
  padding: 28px 24px;
}
.trust-card .icon {
  width: 32px; height: 32px;
  color: var(--pcg-focus);
  margin-bottom: 14px;
}
.trust-card h3 { font-size: var(--fs-h4); margin-bottom: 6px; }
.trust-card p { font-size: 15px; color: var(--pcg-ink-soft); margin: 0; line-height: 1.5; }

/* ========================================================================
   Mega-menu (Care ▾)
   ======================================================================== */

.pcg-megamenu-trigger {
  position: relative;
}

.pcg-megamenu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, -8px);
  width: min(1100px, 95vw);
  background: rgba(255, 255, 255, 0.98);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--pcg-line);
  border-radius: 22px;
  padding: 32px;
  box-shadow: 0 30px 80px rgba(39, 70, 80, 0.16);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease;
  z-index: 1000;
}
/* Invisible bridge between the trigger and the menu so the cursor never
   crosses dead space when moving from "Care ▾" into the panel. Without this,
   any vertical gap closes the menu mid-mouse-move and makes options
   unselectable. */
.pcg-megamenu::before {
  content: "";
  position: absolute;
  top: -18px;
  left: 0;
  right: 0;
  height: 18px;
  background: transparent;
}
.pcg-megamenu-trigger:hover .pcg-megamenu,
.pcg-megamenu-trigger:focus-within .pcg-megamenu,
.pcg-megamenu[data-open="true"] {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.pcg-megamenu-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

.pcg-megamenu-col h4 {
  font-family: var(--font-body);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--pcg-ink-soft);
  margin-bottom: 14px;
  font-weight: 600;
}

/* Neutralize vendor template rules in style.css that target the megamenu's
   nested <ul> / <li> as if they were a traditional hover-dropdown:
   - `#mainmenu ul { height: 30px }`            — clipped the column list
   - `#mainmenu li { float: left }`             — broke vertical stacking
   - `#mainmenu li ul { visibility: hidden;
                        opacity: 0;
                        position: absolute;
                        width: 190px; left: 0 }` — hid the lists entirely
   Our override has higher specificity but only wins for properties it
   actually declares — so we must restate every property the vendor sets,
   not just the ones we care about. */
#mainmenu .pcg-megamenu-col ul {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
  height: auto;
  background: transparent;
  border: 0;
  visibility: visible;
  opacity: 1;
  position: static;
  width: auto;
  left: auto;
}
#mainmenu .pcg-megamenu-col li {
  margin: 0 0 10px 0;
  padding: 0;
  float: none;
  display: list-item;
  width: auto;
  position: static;
}

/* Bumped to #mainmenu .pcg-megamenu-col a (1,1,1) to beat the vendor's
   `#mainmenu li li a` (1,0,2), which would otherwise force grey color,
   15px horizontal padding, and a primary-color hover background that
   doesn't match the design. */
#mainmenu .pcg-megamenu-col a {
  display: block;
  text-decoration: none;
  color: var(--pcg-ink-deep);
  font-size: 15px;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  text-align: left;
  width: auto;
  transition: color 150ms ease, border-color 150ms ease;
}
#mainmenu .pcg-megamenu-col a:hover,
#mainmenu .pcg-megamenu-col a:focus-visible {
  color: var(--pcg-focus);
  border-bottom-color: var(--pcg-focus);
  background: transparent;
}

.pcg-megamenu-col .col-teaser {
  font-size: 14px;
  color: var(--pcg-ink-soft);
  line-height: 1.5;
  margin-bottom: 12px;
}

.pcg-megamenu-col .col-cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--pcg-terracotta);
  text-decoration: none;
  letter-spacing: 0.04em;
}
.pcg-megamenu-col .col-cta::after { content: " →"; }

/* Mega-menu mobile (collapsed inside hamburger) */
@media (max-width: 992px) {
  .pcg-megamenu {
    position: static;
    transform: none;
    width: auto;
    padding: 16px 0;
    background: transparent;
    backdrop-filter: none;
    border: 0;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    display: none;
  }
  .pcg-megamenu[data-open="true"] { display: block; }
  .pcg-megamenu-cols {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ========================================================================
   FAQ tabs (/faq)
   ======================================================================== */

.faq-shell {
  max-width: 980px;
  margin: 0 auto;
}

.faq-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--pcg-line);
  border-radius: 999px;
  padding: 4px 8px 4px 20px;
  margin-bottom: 24px;
}
.faq-search input {
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 16px;
  padding: 12px 0;
  font-family: var(--font-body);
}

.faq-tablist {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--pcg-line);
  padding-bottom: 0;
  overflow-x: auto;
  scrollbar-width: thin;
}

.faq-tab {
  background: transparent;
  border: 0;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--pcg-ink-soft);
  padding: 12px 16px;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: color 150ms ease, border-color 150ms ease;
}
.faq-tab:hover { color: var(--pcg-ink-deep); }
.faq-tab[aria-selected="true"] {
  color: var(--pcg-ink-deep);
  border-bottom-color: var(--pcg-terracotta);
}

@media (max-width: 760px) {
  .faq-tablist { flex-direction: column; border-bottom: 0; }
  .faq-tab { border: 1px solid var(--pcg-line); border-radius: 12px; text-align: left; }
  .faq-tab[aria-selected="true"] { border-color: var(--pcg-terracotta); background: var(--pcg-cream); }
}

.faq-panel { display: none; }
.faq-panel[data-active="true"] { display: block; }

.faq-q {
  border-bottom: 1px solid var(--pcg-line);
}
.faq-q summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 36px 18px 4px;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.2rem);
  font-weight: 500;
  color: var(--pcg-ink-deep);
  position: relative;
  line-height: 1.35;
}
.faq-q summary::-webkit-details-marker { display: none; }
.faq-q summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: var(--pcg-ink-soft);
  transition: transform 200ms ease;
}
.faq-q[open] summary::after { content: "−"; }
.faq-q .answer {
  padding: 0 4px 22px 4px;
  font-size: 16px;
  line-height: 1.65;
  max-width: 70ch;
  color: var(--pcg-ink-soft);
}

/* ========================================================================
   Cookie consent banner + preferences modal
   ======================================================================== */

.pcg-cookie-banner {
  position: fixed;
  inset: auto 16px 16px 16px;
  background: #fff;
  border: 1px solid var(--pcg-line);
  border-radius: 18px;
  padding: 22px 24px;
  box-shadow: 0 30px 80px rgba(39, 70, 80, 0.18);
  z-index: 9999;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  display: none;
}
.pcg-cookie-banner[data-visible="true"] { display: block; }
.pcg-cookie-banner h3 {
  font-size: 18px;
  margin-bottom: 6px;
}
.pcg-cookie-banner p {
  font-size: 14px;
  color: var(--pcg-ink-soft);
  margin: 0 0 14px 0;
  line-height: 1.55;
}
.pcg-cookie-banner .pcg-cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.pcg-cookie-banner .pcg-cookie-actions button {
  flex: 1 1 auto;
  min-width: 130px;
  padding: 12px 18px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--pcg-line);
  background: #fff;
  color: var(--pcg-ink-deep);
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease;
}
.pcg-cookie-banner .pcg-cookie-actions button:hover { background: var(--pcg-cream); }
.pcg-cookie-banner .pcg-cookie-actions button[data-action="accept"] {
  background: var(--pcg-ink-deep);
  color: #fff;
  border-color: var(--pcg-ink-deep);
}
.pcg-cookie-banner .pcg-cookie-actions button[data-action="reject"] {
  border-color: var(--pcg-ink-deep);
}

.pcg-cookie-modal {
  position: fixed;
  inset: 0;
  background: rgba(26, 47, 55, 0.6);
  backdrop-filter: blur(6px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.pcg-cookie-modal[data-visible="true"] { display: flex; }
.pcg-cookie-modal .modal-card {
  background: #fff;
  border-radius: 22px;
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
}
.pcg-cookie-modal h3 { margin-bottom: 8px; }
.pcg-cookie-modal .cat {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--pcg-line);
}
.pcg-cookie-modal .cat:first-of-type { border-top: 0; }
.pcg-cookie-modal .cat-text { flex: 1; }
.pcg-cookie-modal .cat-text h4 { font-size: 16px; margin-bottom: 4px; }
.pcg-cookie-modal .cat-text p { font-size: 14px; color: var(--pcg-ink-soft); margin: 0; line-height: 1.5; }
.pcg-cookie-modal .cat-actions { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.pcg-cookie-modal .cat-actions button {
  padding: 12px 18px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  border: 1px solid var(--pcg-line);
  background: #fff;
  cursor: pointer;
}
.pcg-cookie-modal .cat-actions button[data-action="save"] {
  background: var(--pcg-ink-deep);
  color: #fff;
  border-color: var(--pcg-ink-deep);
}

/* Cookie toggle */
.pcg-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.pcg-toggle input { opacity: 0; width: 0; height: 0; }
.pcg-toggle .slider {
  position: absolute;
  inset: 0;
  background: #d6d6d6;
  border-radius: 999px;
  cursor: pointer;
  transition: background 150ms ease;
}
.pcg-toggle .slider::before {
  content: "";
  position: absolute;
  width: 18px; height: 18px;
  left: 3px; top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 150ms ease;
}
.pcg-toggle input:checked + .slider { background: var(--pcg-focus); }
.pcg-toggle input:checked + .slider::before { transform: translateX(20px); }
.pcg-toggle input:disabled + .slider { opacity: 0.6; cursor: not-allowed; }

/* ========================================================================
   Language toggle (EN | ES) in header
   ======================================================================== */

.pcg-lang-toggle {
  display: inline-flex;
  align-items: center;
  background: var(--pcg-cream);
  border: 1px solid var(--pcg-line);
  border-radius: 999px;
  padding: 4px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-body);
  margin-left: 12px;
}
.pcg-lang-toggle a {
  padding: 6px 12px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--pcg-ink-soft);
  transition: all 150ms ease;
}
.pcg-lang-toggle a[aria-current="true"] {
  background: var(--pcg-ink-deep);
  color: #fff;
}

/* ========================================================================
   Skip-to-content + focus styles (accessibility)
   ======================================================================== */

.skip-link {
  position: absolute;
  left: 8px;
  top: 8px;
  padding: 10px 14px;
  background: var(--pcg-ink-deep);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  z-index: 100000;
  transform: translateY(-200%);
  transition: transform 150ms ease;
}
.skip-link:focus-visible {
  transform: translateY(0);
  color: #fff;
}

*:focus-visible {
  outline: 3px solid var(--pcg-focus);
  outline-offset: 3px;
}

/* ========================================================================
   FAQ legal-page Spanish summary box
   ======================================================================== */

.legal-spanish-summary {
  background: var(--pcg-mist);
  border-left: 4px solid var(--pcg-focus);
  padding: 20px 24px;
  margin-bottom: 28px;
  border-radius: 12px;
  font-size: 15px;
  line-height: 1.6;
}
.legal-spanish-summary h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

/* ========================================================================
   Forms
   ======================================================================== */

.pcg-form { max-width: 720px; }
.pcg-form .field { margin-bottom: 18px; }
.pcg-form label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--pcg-ink-deep);
}
.pcg-form input,
.pcg-form textarea,
.pcg-form select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--pcg-line);
  background: #fff;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.4;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
/* The rules above use bare `input` and would otherwise style checkboxes
   and radios as full-width text fields (giant white rounded boxes), which
   destroys the checkbox grid in the practicum application. Restore native
   rendering for these input types. Specificity (0,2,1) also beats
   `.pcg-form-card input` (0,1,1) in pcg-custom.css. */
.pcg-form input[type="checkbox"],
.pcg-form input[type="radio"] {
  width: auto;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: inherit;
  line-height: inherit;
  flex: 0 0 auto;
  accent-color: var(--pcg-focus);
}
.pcg-form input:focus,
.pcg-form textarea:focus,
.pcg-form select:focus {
  border-color: var(--pcg-focus);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(79, 140, 122, 0.15);
}
.pcg-form input[type="checkbox"]:focus,
.pcg-form input[type="radio"]:focus {
  outline: 2px solid var(--pcg-focus);
  outline-offset: 2px;
  box-shadow: none;
}
.pcg-form .checkbox-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 16px;
}
.pcg-form .checkbox-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  font-size: 14px;
  cursor: pointer;
}
.pcg-form .form-status {
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 15px;
  display: none;
}
.pcg-form .form-status[data-state="success"] {
  display: block;
  background: #e7f3ee;
  color: #1d6b4d;
}
.pcg-form .form-status[data-state="error"] {
  display: block;
  background: #fdecea;
  color: #a4332a;
}
.pcg-form .submit-row {
  margin-top: 20px;
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.pcg-form .disclaimer {
  background: #fef3e6;
  border: 1px solid #f3d3a3;
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 24px;
}

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

.footer-legal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 16px;
}
@media (max-width: 700px) { .footer-legal-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .footer-legal-grid { grid-template-columns: 1fr; } }

.footer-crisis {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  padding: 14px 18px;
  margin-top: 20px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
}
.footer-crisis strong { color: #fff; }

/* ========================================================================
   Homepage hero (split) — image right, text left
   ======================================================================== */

.pcg-home-hero {
  padding-top: clamp(80px, 8vw, 140px);
  padding-bottom: clamp(56px, 6vw, 100px);
  background: linear-gradient(180deg, #fbf7f1 0%, #ffffff 100%);
}
.pcg-home-hero h1 {
  max-width: 18ch;
}
.pcg-home-hero .lead {
  max-width: 42ch;
}
.pcg-home-hero-img {
  display: block;
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(39, 70, 80, 0.16);
}
.pcg-home-hero-img img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  object-position: center 30%;
}
@media (max-width: 991px) {
  .pcg-home-hero-img img { aspect-ratio: 16 / 10; }
}

/* Team photo (About + Career) — keep natural aspect ratio, prevent the
   flex/grid container from stretching the picture vertically. The vendor
   template's column flexbox can otherwise force height to fill, distorting
   the image when adjacent text columns are taller. */
.pcg-team-photo {
  display: block;
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(39, 70, 80, 0.14);
}
.pcg-team-photo img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
}

/* ========================================================================
   Homepage "We already know you" — three-column upgrade (kicker / quote / copy)
   ======================================================================== */

.pcg-knowyou {
  position: relative;
  padding: clamp(72px, 7vw, 120px) 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(150, 190, 179, 0.12), transparent 42%),
    linear-gradient(180deg, #ffffff 0%, #fbf7f1 100%);
}
.pcg-knowyou-grid {
  display: grid;
  grid-template-columns: minmax(0, 4.2fr) minmax(0, 7.8fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: stretch;
}
@media (max-width: 900px) {
  .pcg-knowyou-grid { grid-template-columns: 1fr; }
}
.pcg-knowyou-quote {
  background: linear-gradient(150deg, #1a2f37 0%, #274650 100%);
  color: #fff;
  border-radius: 28px;
  padding: clamp(32px, 3vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(26, 47, 55, 0.22);
}
.pcg-knowyou-quote::before {
  content: "“";
  position: absolute;
  top: -34px;
  left: 18px;
  font-family: var(--font-display);
  font-size: 240px;
  line-height: 1;
  color: rgba(196, 123, 102, 0.22);
  font-weight: 500;
}
.pcg-knowyou-quote blockquote {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1rem + 1vw, 1.85rem);
  line-height: 1.3;
  font-style: italic;
  font-weight: 400;
  margin: 0 0 18px 0;
  color: #fff;
}
.pcg-knowyou-quote cite {
  position: relative;
  z-index: 1;
  font-style: normal;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 16px;
  margin-top: auto;
}
.pcg-knowyou-copy {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-content: center;
}
.pcg-knowyou-copy h2 {
  margin-bottom: 4px;
}
.pcg-knowyou-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 22px;
}
@media (max-width: 720px) {
  .pcg-knowyou-points { grid-template-columns: 1fr; }
}
.pcg-knowyou-point {
  background: #fff;
  border: 1px solid var(--pcg-line);
  border-radius: 16px;
  padding: 18px 20px;
}
.pcg-knowyou-point .label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pcg-terracotta);
  display: block;
  margin-bottom: 6px;
}
.pcg-knowyou-point p {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  color: var(--pcg-ink-deep);
}

/* ========================================================================
   Reduced motion respect
   ======================================================================== */

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