/* =========================================================================
   Prudential Advocate, APC — design system
   Palette: deep navy ink / charcoal body / ivory ground / restrained gold
   Type: Source Serif 4 (headings) + Source Sans 3 (body/UI)
   All foreground/background pairings verified ≥ AA (gold used on navy only).
   ========================================================================= */

:root {
  /* color */
  --ink:        #0A2540;  /* deep navy — headlines, dark bands, primary text   ~14:1 on ivory */
  --ink-2:      #1C2B3A;  /* charcoal — body text on light                     ~13:1 on ivory */
  --ink-soft:   #44515f;  /* muted body / captions on light                    ~7:1  on ivory */
  --ivory:      #F8F5EF;  /* page ground */
  --ivory-2:    #F1ECE2;  /* alt band on light */
  --surface:    #FFFFFF;  /* cards */
  --line:       #E2DBCD;  /* hairline borders on light (≥3:1 against ivory)    */
  --line-2:     #D4CABA;  /* stronger hairline */
  --gold:       #C2A14D;  /* accent — ON NAVY ONLY (6.3:1 on ink)             */
  --brand-red:  #E32525;  /* logo signature only — never used for text/UI fields */
  --gold-bright:#E0C977;  /* brighter gold for focus rings / strokes on navy  */
  --gold-ink:   #6B5418;  /* gold-toned TEXT on light (6.6:1 on ivory)        */
  --green:      #14532D;  /* optional secondary accent on light (8.4:1)       */
  --error:      #B42318;  /* form errors — always paired with text + icon     */
  --error-bg:   #FDF1F0;
  --focus:      #1D4ED8;  /* focus ring on light (6.2:1 on ivory, ≥3:1)       */
  --ink-tint:   rgba(10,37,64,.06);

  /* type */
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans:  "Source Sans 3", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* metrics */
  --header-h: 78px;
  --maxw: 1200px;
  --measure: 66ch;
  --radius: 4px;
  --radius-lg: 8px;
  --shadow-sm: 0 1px 2px rgba(10,37,64,.06), 0 1px 3px rgba(10,37,64,.05);
  --shadow:    0 2px 4px rgba(10,37,64,.05), 0 8px 24px rgba(10,37,64,.07);
  --shadow-lg: 0 12px 40px rgba(10,37,64,.12);
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px); /* keep focus/anchors clear of sticky header (WCAG 2.4.11) */
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  font-size: 1.0625rem;            /* 17px desktop */
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
@media (max-width: 640px) { body { font-size: 1.125rem; } } /* 18px mobile */

img, svg, picture, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--ink); }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { padding: 0; list-style: none; }
:focus { outline: none; }

/* ---------- visible focus (context aware) ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, [tabindex]:focus-visible, summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 2px;
}
/* on dark surfaces the blue ring drops below 3:1 — use a bright ring instead */
.on-dark a:focus-visible, .on-dark button:focus-visible,
.on-dark [tabindex]:focus-visible, .on-dark input:focus-visible,
.on-dark select:focus-visible, .on-dark textarea:focus-visible {
  outline-color: #FFFFFF;
  box-shadow: 0 0 0 5px rgba(224,201,119,.55);
}

/* ---------- skip link ---------- */
.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 200;
  background: var(--ink); color: #fff;
  padding: .7rem 1.1rem; border-radius: var(--radius);
  font-weight: 600; text-decoration: none;
  transform: translateY(-160%);
  transition: transform .18s var(--ease);
}
.skip-link:focus { transform: translateY(0); outline: 3px solid #fff; outline-offset: 2px; }

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.5rem); }
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
main { display: block; }

/* ---------- type ---------- */
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; text-wrap: balance; }
.h-display { font-size: clamp(2.5rem, 5.2vw, 4rem); line-height: 1.09; font-weight: 600; }
h1 { font-size: clamp(2.1rem, 4.2vw, 3.25rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.2; }
h4 { font-size: 1.12rem; line-height: 1.3; }
p { text-wrap: pretty; }
strong { font-weight: 600; color: var(--ink); }

.eyebrow {
  font-family: var(--sans);
  font-size: .8125rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-ink);
  display: inline-flex; align-items: center; gap: .6rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; display: inline-block; }
.eyebrow--center { justify-content: center; }
.on-dark .eyebrow { color: var(--gold); }

.lede { font-size: clamp(1.18rem, 1.8vw, 1.4rem); line-height: 1.55; color: var(--ink-2); }
.muted { color: var(--ink-soft); }
.measure { max-width: var(--measure); }
.center { text-align: center; }

/* prose / reading column */
.prose { max-width: var(--measure); }
.prose p + p { margin-top: 1.15em; }
.prose p, .prose li { color: var(--ink-2); line-height: 1.7; }
.prose h2 { margin-top: 2.2em; margin-bottom: .5em; }
.prose h3 { margin-top: 1.8em; margin-bottom: .4em; }
.prose > :first-child { margin-top: 0; }
.prose a { color: var(--gold-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.prose a:hover { color: var(--ink); }
.prose ul { margin: 1.1em 0; }
.prose ul li { position: relative; padding-left: 1.5rem; margin-bottom: .55em; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; background: var(--gold-ink); transform: rotate(45deg); }
.prose strong { color: var(--ink); }

/* ---------- buttons ---------- */
.btn {
  --btn-pad-y: .8rem; --btn-pad-x: 1.4rem;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--sans); font-weight: 600; font-size: 1rem; line-height: 1.1;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  min-height: 48px; border-radius: var(--radius);
  text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), transform .12s var(--ease), box-shadow .18s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn .ic { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: #0c2e4f; box-shadow: var(--shadow); }
.btn--gold { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.btn--gold:hover { background: var(--gold-bright); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--outline:hover { border-color: var(--ink); background: var(--ink-tint); }
.on-dark .btn--outline, .btn--outline.on-dark { color: #fff; border-color: rgba(255,255,255,.4); }
.on-dark .btn--outline:hover, .btn--outline.on-dark:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn--lg { font-size: 1.06rem; --btn-pad-y: .95rem; --btn-pad-x: 1.7rem; min-height: 54px; }
.btn--block { width: 100%; }

/* text link with arrow */
.tlink {
  display: inline-flex; align-items: center; gap: .45rem;
  font-weight: 600; color: var(--gold-ink); text-decoration: none;
  min-height: 24px;
}
.tlink span { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; text-decoration-color: rgba(107,84,24,.4); }
.tlink:hover span { text-decoration-color: currentColor; }
.tlink .ic { width: 17px; height: 17px; transition: transform .18s var(--ease); }
.tlink:hover .ic { transform: translateX(3px); }
.on-dark .tlink { color: var(--gold); }
.on-dark .tlink span { text-decoration-color: rgba(194,161,77,.5); }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(248,245,239,.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  height: var(--header-h);
  display: flex; align-items: center; gap: 1.5rem;
}
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); flex: none; }
.brand__mark { width: auto; height: 38px; flex: none; display: inline-flex; align-items: center; color: var(--brand-red); }
.brand__mark svg { height: 100%; width: auto; display: block; }
.brand__name { font-family: var(--serif); font-weight: 600; font-size: 1.18rem; line-height: 1; letter-spacing: -.01em; white-space: nowrap; }
.brand__sub { display: block; font-family: var(--sans); font-weight: 600; font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); margin-top: 0; }

.nav__primary { display: flex; align-items: center; gap: .35rem; margin-left: auto; }
.nav__link {
  display: inline-flex; align-items: center; gap: .3rem;
  font-weight: 600; font-size: .98rem; color: var(--ink-2); text-decoration: none;
  padding: .55rem .7rem; border-radius: var(--radius); min-height: 40px;
  position: relative; white-space: nowrap;
}
.nav__link:hover { color: var(--ink); background: var(--ink-tint); }
.nav__link[aria-current="page"] { color: var(--ink); }
.nav__link[aria-current="page"]::after {
  content: ""; position: absolute; left: .7rem; right: .7rem; bottom: 6px; height: 2px; background: var(--gold-ink);
}

/* services disclosure */
.nav__has-menu { position: relative; }
.nav__disc { background: none; border: 0; cursor: pointer; }
.nav__disc .chev { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.nav__disc[aria-expanded="true"] .chev { transform: rotate(180deg); }
.nav__menu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 300px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: .5rem; display: none; z-index: 120;
}
.nav__menu[data-open="true"] { display: block; animation: pop .16s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.nav__menu a {
  display: flex; flex-direction: column; gap: 1px;
  padding: .6rem .75rem; border-radius: var(--radius); text-decoration: none; color: var(--ink);
}
.nav__menu a:hover, .nav__menu a:focus-visible { background: var(--ivory-2); }
.nav__menu a .mi-t { font-weight: 600; font-size: .98rem; }
.nav__menu a .mi-d { font-size: .82rem; color: var(--ink-soft); }
.nav__menu .menu-foot { border-top: 1px solid var(--line); margin-top: .35rem; padding-top: .35rem; }

.nav__utility { display: flex; align-items: center; gap: 1rem; flex: none; }
.callbtn { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--ink); text-decoration: none; padding: .5rem .4rem; min-height: 44px; }
.callbtn .ic { width: 18px; height: 18px; color: var(--gold-ink); }
.callbtn .lbl { display: flex; flex-direction: column; line-height: 1.05; }
.callbtn .lbl small { font-weight: 600; font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.callbtn:hover { color: var(--gold-ink); }

.nav__toggle { display: none; }

/* mobile nav */
.mnav { display: none; }
@media (max-width: 980px) {
  .nav__primary, .nav__utility .callbtn .lbl, .nav__utility .btn { display: none; }
  .nav__utility { gap: .4rem; margin-left: auto; }
  .nav__toggle {
    display: inline-grid; place-items: center; width: 48px; height: 48px;
    background: var(--ink); color: #fff; border: 0; border-radius: var(--radius); cursor: pointer;
  }
  .nav__toggle .ic { width: 24px; height: 24px; }
  .mnav { display: block; }
}
@media (max-width: 600px) {
  :root { --header-h: 64px; }
  .brand__sub { display: none; }
  .brand__name { font-size: 1.06rem; }
  .brand__mark { height: 32px; }
}
.mnav__panel {
  position: fixed; inset: 0; z-index: 150;
  background: var(--ink); color: #fff;
  display: flex; flex-direction: column;
  padding: 1.2rem clamp(1.1rem,5vw,2rem) 2rem;
  transform: translateX(100%); transition: transform .28s var(--ease);
  overflow-y: auto;
}
.mnav__panel[data-open="true"] { transform: none; }
.mnav__top { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.mnav__close { width: 48px; height: 48px; display: grid; place-items: center; background: rgba(255,255,255,.1); border: 0; color: #fff; border-radius: var(--radius); cursor: pointer; }
.mnav__close .ic { width: 24px; height: 24px; }
.mnav__list { margin-top: 1rem; display: flex; flex-direction: column; }
.mnav__list a { color: #fff; text-decoration: none; font-family: var(--serif); font-size: 1.4rem; padding: .75rem 0; border-bottom: 1px solid rgba(255,255,255,.12); min-height: 56px; display: flex; align-items: center; }
.mnav__list .sub a { font-family: var(--sans); font-size: 1.05rem; padding-left: 1rem; color: rgba(255,255,255,.85); }
.mnav__group-label { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 1.2rem 0 .25rem; font-weight: 700; }
.mnav__cta { margin-top: 1.6rem; display: flex; flex-direction: column; gap: .8rem; }
.mnav__call { display: inline-flex; align-items: center; gap: .6rem; color: #fff; font-weight: 700; font-size: 1.2rem; text-decoration: none; }
.mnav__call .ic { width: 22px; height: 22px; color: var(--gold); }
.scroll-lock { overflow: hidden; }

/* ---------- hero ---------- */
.hero { position: relative; background: var(--ivory); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem,4vw,3.5rem); align-items: center; }
.hero__content { padding-block: clamp(2.5rem,6vw,4.5rem); max-width: 36rem; }
.hero h1 { margin-top: 1.1rem; }
.hero__sub { margin-top: 1.4rem; font-size: clamp(1.08rem,1.5vw,1.22rem); line-height: 1.6; color: var(--ink-2); max-width: 34rem; }
.hero__cta { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .9rem; }
.hero__media { position: relative; align-self: stretch; min-height: 420px; }
.hero__media image-slot, .media-slot { width: 100%; height: 100%; }
.hero__badge {
  position: absolute; left: -18px; bottom: 28px; z-index: 3;
  background: var(--ink); color: #fff; padding: 1rem 1.25rem; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); max-width: 230px;
}
.hero__badge strong { color: var(--gold); display: block; font-family: var(--serif); font-size: 1.5rem; }
.hero__badge span { font-size: .86rem; color: rgba(255,255,255,.8); }
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { min-height: 300px; order: -1; }
  .hero__badge { left: 12px; }
}

/* image placeholder styling for slots */
image-slot { background: repeating-linear-gradient(135deg, #ece6da 0 14px, #e6dfd1 14px 28px); border: 1px solid var(--line-2); color: var(--ink-soft); }
.slot-cap { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .72rem; letter-spacing: .02em; }

/* ---------- bands ---------- */
.band-ivory2 { background: var(--ivory-2); }
.band-navy { background: var(--ink); color: #fff; }
.band-navy h1, .band-navy h2, .band-navy h3 { color: #fff; }
.band-navy p { color: rgba(255,255,255,.84); }
.band-navy .lede { color: rgba(255,255,255,.9); }
/* bold text inside dark bands must stay light (avoid navy-on-navy) */
.band-navy strong, .pagehead strong, .on-dark strong { color: #fff; }

/* ---------- section heading block ---------- */
.shead { max-width: 46rem; }
.shead--center { margin-inline: auto; text-align: center; }
.shead h2 { margin-top: .9rem; }
.shead p { margin-top: 1rem; color: var(--ink-soft); }
.band-navy .shead p { color: rgba(255,255,255,.8); }
.shead__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }

/* ---------- service cards ---------- */
.cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .cards { grid-template-columns: 1fr; } }
.scard {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.6rem 1.5rem 1.5rem;
  display: flex; flex-direction: column; min-height: 230px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.scard:hover { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-3px); }
.scard__num { font-family: var(--serif); font-size: 1rem; font-weight: 700; color: var(--gold-ink); letter-spacing: .04em; }
.scard__num::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--gold-ink); transform: rotate(45deg); margin-right: .55rem; vertical-align: middle; }
.scard h3 { margin-top: .9rem; }
.scard p:not(.scard__num) { margin-top: .55rem; color: var(--ink-soft); font-size: .98rem; flex: 1; }
.scard .tlink { margin-top: 1.1rem; }
.scard__link { position: absolute; inset: 0; border-radius: var(--radius-lg); }
.scard__link span.vh { position: absolute; }

/* alternating (checkerboard) treatment — home services grid */
.cards--alt .scard:nth-child(2n) { background: var(--ink); border-color: var(--ink); }
.cards--alt .scard:nth-child(2n):hover { background: #0c2e4f; border-color: #0c2e4f; }
.cards--alt .scard:nth-child(2n) h3 { color: #fff; }
.cards--alt .scard:nth-child(2n) p { color: rgba(255,255,255,.82); }
.cards--alt .scard:nth-child(2n) .scard__num { color: var(--gold); }
.cards--alt .scard:nth-child(2n) .scard__num::before { background: var(--gold); }
.cards--alt .scard:nth-child(2n) .tlink { color: var(--gold); }
.cards--alt .scard:nth-child(2n) .tlink span { text-decoration-color: rgba(194,161,77,.5); }
.cards--alt .scard:nth-child(2n) .tlink:hover span { text-decoration-color: var(--gold); }

/* ---------- two-column feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem,4vw,3.5rem); align-items: center; }
.split--fill { align-items: stretch; }
.split--fill .split__media, .split--fill .split__media image-slot { height: 100%; }
.split--media-left .split__media { order: -1; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } .split--media-left .split__media { order: 0; } }
.split__media image-slot, .split__media { min-height: 340px; }
.feature-list { margin-top: 1.6rem; display: grid; gap: 1rem; }
.feature-list li { display: flex; gap: .8rem; align-items: flex-start; }
.feature-list .ic { width: 22px; height: 22px; color: var(--green); flex: none; margin-top: 2px; }
.feature-list b { color: var(--ink); }

/* ---------- stat / credibility strip ---------- */
.cred { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
@media (max-width: 760px) { .cred { grid-template-columns: repeat(2,1fr); } }
.cred__cell { background: var(--surface); padding: 1.4rem 1.3rem; }
.cred__cell .k { font-family: var(--serif); font-size: 1.6rem; color: var(--ink); font-weight: 600; }
.cred__cell .v { font-size: .92rem; color: var(--ink-soft); margin-top: .2rem; }
.band-navy .cred { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.14); }
.band-navy .cred__cell { background: var(--ink); }
.band-navy .cred__cell .k { color: var(--gold); }
.band-navy .cred__cell .v { color: rgba(255,255,255,.78); }

/* ---------- team cards ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.25rem; }
@media (max-width: 1040px) { .team-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 760px) { .team-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 460px) { .team-grid { grid-template-columns: 1fr; } }
.tcard { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow .2s var(--ease), transform .2s var(--ease); }
.tcard:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.tcard__photo { aspect-ratio: 4/5; width: 100%; }
.tcard__photo image-slot { width: 100%; height: 100%; }
.tcard__body { padding: 1rem 1.1rem 1.2rem; }
.tcard__name { font-family: var(--serif); font-size: 1.18rem; color: var(--ink); font-weight: 600; }
.tcard__role { margin-top: .15rem; font-weight: 700; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; color: var(--gold-ink); }
.tcard__role[data-attorney="true"] { color: var(--green); }
.tcard .tlink { margin-top: .8rem; font-size: .95rem; }
.tcard__link { position: absolute; inset: 0; }

/* ---------- bio page ---------- */
.bio { display: grid; grid-template-columns: 320px 1fr; gap: clamp(1.5rem,4vw,3.5rem); align-items: start; }
@media (max-width: 860px) { .bio { grid-template-columns: 1fr; } }
.bio__aside { position: sticky; top: calc(var(--header-h) + 1.5rem); display: grid; gap: 1.25rem; }
@media (max-width: 860px) { .bio__aside { position: static; } }
.bio__photo { width: 100%; aspect-ratio: 4/5; border-radius: var(--radius-lg); overflow: hidden; }
.bio__photo image-slot { width: 100%; height: 100%; }
.bio__contact { display: grid; gap: .6rem; }
.bio__contact a { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); text-decoration: none; font-weight: 600; min-height: 28px; }
.bio__contact a:hover { color: var(--gold-ink); }
.bio__contact .ic { width: 18px; height: 18px; color: var(--gold-ink); flex: none; }
.bio__contact .placeholder { color: var(--ink-soft); font-weight: 500; }

.sidebar { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.3rem 1.4rem; }
.sidebar h2 { font-size: 1.05rem; font-family: var(--sans); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); padding-bottom: .7rem; border-bottom: 1px solid var(--line); }
.sidebar dl { margin-top: .9rem; display: grid; gap: 1rem; }
.sidebar dt { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--gold-ink); }
.sidebar dd { margin-top: .25rem; font-size: .96rem; color: var(--ink-2); line-height: 1.5; }
.sidebar dd ul li { padding-left: 1rem; position: relative; margin-bottom: .25rem; }
.sidebar dd ul li::before { content: ""; position: absolute; left: 0; top: .6em; width: 5px; height: 5px; background: var(--gold-ink); transform: rotate(45deg); }
.placeholder-flag { color: var(--ink-soft); font-style: italic; font-size: .9rem; }

.bio__role-note { display: inline-flex; align-items: center; gap: .5rem; font-size: .86rem; color: var(--ink-soft); background: var(--ivory-2); border: 1px solid var(--line); border-radius: var(--radius); padding: .55rem .8rem; }
.bio__role-note .ic { width: 16px; height: 16px; color: var(--gold-ink); }

.titlechip { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; font-size: .82rem; color: var(--gold-ink); }
.titlechip[data-attorney="true"] { color: var(--green); }
.titlechip::before { content: ""; width: 8px; height: 8px; background: currentColor; transform: rotate(45deg); }

/* draft / placeholder banner */
.notice { display: flex; gap: .7rem; align-items: flex-start; background: #FBF6EA; border: 1px solid #E7D9B0; border-radius: var(--radius); padding: .85rem 1rem; font-size: .92rem; color: #5b4a1e; }
.notice .ic { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--gold-ink); }

/* ---------- breadcrumb ---------- */
.crumbs { font-size: .9rem; color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.crumbs [aria-current="page"] { color: var(--ink-2); font-weight: 600; }
.crumbs .sep { color: var(--line-2); }
.on-dark .crumbs, .on-dark .crumbs a { color: rgba(255,255,255,.7); }
.on-dark .crumbs [aria-current="page"] { color: #fff; }

/* page header band */
.pagehead { background: var(--ink); color: #fff; }
.pagehead .container { padding-block: clamp(2.4rem,5vw,3.6rem); }
.pagehead h1 { color: #fff; margin-top: .9rem; max-width: 20ch; }
.pagehead p { color: rgba(255,255,255,.88); margin-top: 1rem; max-width: 52ch; }
/* banner is a dark context — lift breadcrumb + eyebrow to readable light tones */
.pagehead .crumbs, .pagehead .crumbs a { color: rgba(255,255,255,.78); }
.pagehead .crumbs a:hover { color: #fff; }
.pagehead .crumbs [aria-current="page"] { color: #fff; }
.pagehead .crumbs .sep { color: rgba(255,255,255,.45); }
.pagehead .eyebrow { color: var(--gold); }

/* ---------- office cards ---------- */
.offices { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 720px) { .offices { grid-template-columns: 1fr; } }
.office { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.office__media { aspect-ratio: 16/10; }
.office__media image-slot { width: 100%; height: 100%; }
.office__body { padding: 1.3rem 1.4rem 1.5rem; }
.office__body h3 { font-size: 1.25rem; }
.office__row { display: flex; gap: .6rem; align-items: flex-start; margin-top: .8rem; color: var(--ink-2); }
.office__row .ic { width: 18px; height: 18px; color: var(--gold-ink); flex: none; margin-top: 3px; }
.office__row a { color: var(--ink); text-decoration: none; font-weight: 600; }
.office__row a:hover { color: var(--gold-ink); text-decoration: underline; }
.band-navy .office { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.14); }
.band-navy .office__body h3 { color: #fff; }
.band-navy .office__row { color: rgba(255,255,255,.82); }
.band-navy .office__row a { color: #fff; }
.band-navy .office__row .ic { color: var(--gold); }

/* ---------- form ---------- */
.form-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.4rem,3vw,2.2rem); box-shadow: var(--shadow-sm); }
.form-intro { margin-bottom: 1.4rem; }
.field { display: grid; gap: .4rem; margin-bottom: 1.2rem; }
.field > label, .legend-txt { font-weight: 600; color: var(--ink); font-size: .98rem; }
.req { color: var(--error); font-weight: 700; }
.opt { color: var(--ink-soft); font-weight: 500; font-size: .86rem; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field select, .field textarea {
  width: 100%; background: var(--ivory); border: 1.5px solid var(--line-2); border-radius: var(--radius);
  padding: .75rem .85rem; min-height: 48px; color: var(--ink-2); transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.field textarea { min-height: 130px; resize: vertical; line-height: 1.5; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-soft); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(29,78,216,.16); outline: none; }
.field-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 540px) { .field-2 { grid-template-columns: 1fr; gap: 0; } }
.hint { font-size: .86rem; color: var(--ink-soft); }
.field[aria-invalid] input, .input-invalid { border-color: var(--error) !important; }
.err-msg { display: none; align-items: center; gap: .4rem; color: var(--error); font-size: .88rem; font-weight: 600; margin-top: .15rem; }
.err-msg .ic { width: 15px; height: 15px; flex: none; }
.has-error > .err-msg, .has-error .err-msg { display: flex; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--error); }
.field.has-error input:focus, .field.has-error select:focus, .field.has-error textarea:focus { box-shadow: 0 0 0 3px rgba(180,35,24,.18); }

fieldset { border: 0; padding: 0; margin: 0 0 1.2rem; }
fieldset legend { padding: 0; margin-bottom: .6rem; }
.radio-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: .5rem; }
@media (max-width: 540px) { .radio-grid { grid-template-columns: 1fr; } }
.opt-card { display: flex; align-items: center; gap: .65rem; padding: .7rem .85rem; border: 1.5px solid var(--line-2); border-radius: var(--radius); cursor: pointer; min-height: 48px; background: var(--ivory); transition: border-color .15s, background .15s; }
.opt-card:hover { border-color: var(--ink-soft); }
.opt-card input { width: 20px; height: 20px; accent-color: var(--ink); flex: none; }
.opt-card:has(input:checked) { border-color: var(--ink); background: #fff; box-shadow: inset 0 0 0 1px var(--ink); }
.opt-card span { font-size: .96rem; font-weight: 500; }

.consent { display: flex; gap: .75rem; align-items: flex-start; background: var(--ivory-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; margin-bottom: 1.2rem; }
.consent input { width: 22px; height: 22px; accent-color: var(--ink); flex: none; margin-top: 2px; }
.consent label { font-size: .92rem; line-height: 1.5; color: var(--ink-2); }
.consent a { color: var(--gold-ink); text-decoration: underline; text-underline-offset: 2px; }
.consent.has-error { border-color: var(--error); background: var(--error-bg); }

.honeypot { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.error-summary { display: none; background: var(--error-bg); border: 1.5px solid var(--error); border-left-width: 5px; border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: 1.5rem; }
.error-summary[data-show="true"] { display: block; }
.error-summary h2 { color: var(--error); font-family: var(--sans); font-size: 1.05rem; display: flex; align-items: center; gap: .5rem; }
.error-summary .ic { width: 20px; height: 20px; }
.error-summary ul { margin-top: .6rem; display: grid; gap: .3rem; }
.error-summary a { color: var(--error); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

.form-success { display: none; background: #EEF6F0; border: 1.5px solid var(--green); border-left-width: 5px; border-radius: var(--radius-lg); padding: 1.6rem 1.6rem; }
.form-success[data-show="true"] { display: block; }
.form-success h2 { color: var(--green); display: flex; align-items: center; gap: .6rem; }
.form-success .ic { width: 26px; height: 26px; flex: none; }
.form-success p { margin-top: .6rem; color: var(--ink-2); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.78); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-block: clamp(3rem,6vw,4.5rem); }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand .brand__name { color: #fff; }
.footer-brand .brand__mark { color: #fff; height: 42px; }
.footer-resp { margin-top: 1.1rem; font-size: .92rem; line-height: 1.6; }
.footer-resp strong { color: #fff; }
.footer-offices { margin-top: 1.3rem; display: grid; gap: 1rem; }
.footer-office { font-size: .9rem; line-height: 1.55; }
.footer-office .ofc-name { color: var(--gold); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: .76rem; }
.footer-office a { color: rgba(255,255,255,.85); text-decoration: none; }
.footer-office a:hover { color: #fff; text-decoration: underline; }
.footer-col h2 { font-family: var(--sans); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 1rem; }
.footer-col ul { display: grid; gap: .6rem; }
.footer-col a { color: rgba(255,255,255,.8); text-decoration: none; font-size: .96rem; display: inline-flex; min-height: 28px; align-items: center; }
.footer-col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); padding-block: 1.8rem 2.4rem; display: grid; gap: 1rem; text-align: center; }
.footer-disclaimer { font-size: .82rem; line-height: 1.6; color: rgba(255,255,255,.62); max-width: 75ch; margin-inline: auto; }
.footer-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; align-items: center; justify-content: center; font-size: .84rem; color: rgba(255,255,255,.7); }
.footer-meta .adv { color: var(--gold); font-weight: 600; }

/* ---------- reveal animation ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal[data-d="1"] { transition-delay: .08s; }
.js .reveal[data-d="2"] { transition-delay: .16s; }
.js .reveal[data-d="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .reveal.is-visible { opacity: 1 !important; transform: none !important; transition: none !important; }
  .nav__menu[data-open="true"], .mnav__panel { animation: none !important; }
}

/* ---------- visually hidden ---------- */
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- misc helpers ---------- */
.stack-sm > * + * { margin-top: .8rem; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem,4vw,3rem); }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }
.divider { height: 1px; background: var(--line); border: 0; }
.related-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
@media (max-width: 760px) { .related-grid { grid-template-columns: 1fr; } }
.rel-card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.2rem 1.3rem; text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s; }
.rel-card:hover { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-2px); }
.rel-card .rc-num { font-family: var(--serif); color: var(--gold-ink); font-weight: 700; font-size: .9rem; }
.rel-card h3 { font-size: 1.12rem; margin-top: .4rem; }
.rel-card .rc-arrow { margin-top: .7rem; color: var(--gold-ink); font-weight: 600; font-size: .92rem; display: inline-flex; align-items: center; gap: .35rem; }
@media (prefers-reduced-motion: no-preference) {
  .rel-card .rc-arrow svg, .rel-card:hover .rc-arrow svg { transition: transform .25s var(--ease); }
  .rel-card:hover .rc-arrow svg { transform: translateX(3px); }
}

/* ================= interaction & motion enhancements =================
   Every animated effect below is gated on (prefers-reduced-motion: no-preference)
   so reduced-motion users get the calm, static layout with no movement. */

/* sticky header gains a soft shadow once the page is scrolled */
.site-header { transition: box-shadow .3s var(--ease), background-color .3s var(--ease); }
.site-header.is-scrolled { background: rgba(248,245,239,.97); box-shadow: 0 10px 30px -14px rgba(10,37,64,.22); }

/* animated underline for primary nav links (current page stays underlined statically) */
.nav__link::after { content: ""; position: absolute; left: .7rem; right: .7rem; bottom: 6px; height: 2px; background: var(--gold-ink); transform: scaleX(0); transform-origin: left center; }
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

/* photo containers clip their image so a hover zoom stays inside the frame */
.tcard__photo, .office__media { overflow: hidden; }

@media (prefers-reduced-motion: no-preference) {
  .nav__link::after { transition: transform .28s var(--ease); }
  .nav__link:hover::after { transform: scaleX(1); }

  .tcard__photo img, .office__media img { transition: transform .55s var(--ease); }
  .tcard:hover .tcard__photo img, .office:hover .office__media img { transform: scale(1.045); }

  /* staggered hero entrance on load */
  .js .hero__content > * { animation: heroIn .7s var(--ease) both; }
  .js .hero__content > *:nth-child(1) { animation-delay: .04s; }
  .js .hero__content > *:nth-child(2) { animation-delay: .12s; }
  .js .hero__content > *:nth-child(3) { animation-delay: .20s; }
  .js .hero__content > *:nth-child(4) { animation-delay: .28s; }

  /* the small eyebrow rule draws itself in when its section scrolls into view */
  .reveal .eyebrow::before { transform: scaleX(0); transform-origin: left center; transition: transform .6s var(--ease) .12s; }
  .reveal.is-visible .eyebrow::before { transform: scaleX(1); }
}
@keyframes heroIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* office cards lift on hover (contact page) */
.office { transition: box-shadow .2s var(--ease), transform .2s var(--ease), border-color .2s var(--ease); }
.office:hover { box-shadow: var(--shadow); border-color: var(--line-2); }

@media (prefers-reduced-motion: no-preference) {
  .office:hover { transform: translateY(-3px); }

  /* mobile menu: items cascade in when the panel opens */
  .mnav__panel[data-open="true"] .mnav__list a,
  .mnav__panel[data-open="true"] .mnav__group-label,
  .mnav__panel[data-open="true"] .mnav__cta > * { animation: mnavIn .42s var(--ease) both; }
  .mnav__panel[data-open="true"] .mnav__list a:nth-child(1) { animation-delay: .06s; }
  .mnav__panel[data-open="true"] .mnav__list a:nth-child(2) { animation-delay: .10s; }
  .mnav__panel[data-open="true"] .mnav__list a:nth-child(3) { animation-delay: .14s; }
  .mnav__panel[data-open="true"] .mnav__list a:nth-child(4) { animation-delay: .18s; }
  .mnav__panel[data-open="true"] .mnav__list a:nth-child(5) { animation-delay: .22s; }
  .mnav__panel[data-open="true"] .mnav__list a:nth-child(6) { animation-delay: .26s; }
  .mnav__panel[data-open="true"] .mnav__list a:nth-child(7) { animation-delay: .30s; }
  .mnav__panel[data-open="true"] .mnav__cta > *:nth-child(2) { animation-delay: .34s; }
}
@keyframes mnavIn { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }

/* ===================== print ===================== */
@media print {
  *, *::before, *::after { box-shadow: none !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body { background: #fff; color: #1a1a1a; font-size: 11.5pt; }
  .skip-link, .nav__toggle, .mnav, .hero__cta, .scard__link, .tcard__link,
  .error-summary, .honeypot, .nav__menu { display: none !important; }
  .site-header { position: static; background: #fff; border-bottom: 1px solid #bbb; backdrop-filter: none; }
  .nav__primary, .nav__utility .btn { display: none !important; }
  a { color: #1a1a1a; text-decoration: underline; }
  .band-navy, .pagehead, .site-footer, .cards--alt .scard:nth-child(2n) { background: #fff !important; color: #1a1a1a !important; }
  .band-navy *, .pagehead *, .site-footer *, .cards--alt .scard:nth-child(2n) * { color: #1a1a1a !important; }
  .brand__mark { color: var(--brand-red) !important; }
  .scard, .office, .sidebar, .form-wrap, .tcard, .rel-card, .cred { border: 1px solid #cfcfcf !important; break-inside: avoid; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .hero__content > * { animation: none !important; }
  .section, .section--tight { padding-block: 1.1rem !important; }
  img { max-height: 320px; width: auto; }
  h1, h2, h3 { break-after: avoid; }
  .pagehead .eyebrow { color: var(--gold-ink) !important; }
}

/* =====================================================================
   AUDIT ENHANCEMENTS
   Real imagery · brand motif · accessibility view modes ·
   language + accessibility controls · demo page.
   ===================================================================== */

/* ---------- real imagery (replaces empty image slots) ---------- */
.media-img, .hero__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.hero__media .hero__img { min-height: 420px; }
.hero__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: var(--radius-lg);
  box-shadow: inset 0 0 0 1px rgba(10,37,64,.10);
  background: linear-gradient(180deg, rgba(10,37,64,0) 52%, rgba(10,37,64,.30));
}
.split__media { border-radius: var(--radius-lg); overflow: hidden; }
.split__media .media-img { min-height: 340px; }
.office__media .media-img { min-height: 0; }
@media (prefers-reduced-motion: no-preference) {
  .split__media .media-img { transition: transform .6s var(--ease); }
  .split:hover .split__media .media-img { transform: scale(1.04); }
}

/* ---------- brand motif (where no photo exists) ---------- */
.motif { position: relative; overflow: hidden; border-radius: var(--radius-lg); display: grid; place-items: center; min-height: 300px; }
.motif--dark  { background: radial-gradient(130% 130% at 0% 0%, #123a63 0%, var(--ink) 62%); color: #fff; }
.motif--light { background: linear-gradient(160deg, var(--ivory-2), #fff 70%); border: 1px solid var(--line); }
.motif__icon { width: 84px; height: 84px; z-index: 1; }
.motif--dark .motif__icon  { color: var(--gold); }
.motif--light .motif__icon { color: var(--gold-ink); }
.motif__wm { position: absolute; right: -36px; bottom: -48px; width: 250px; height: 250px; opacity: .09; color: currentColor; }
.motif--light .motif__wm { color: var(--ink); }
.motif__label { position: absolute; left: 1.2rem; bottom: 1.05rem; font-family: var(--serif); font-size: 1.05rem; z-index: 1; }
.motif--dark .motif__label  { color: #fff; }
.motif--light .motif__label { color: var(--ink); }
.motif__label small { display: block; font-family: var(--sans); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }
.motif--dark .motif__label small  { color: var(--gold); }
.motif--light .motif__label small { color: var(--gold-ink); }
/* illustrated skyline (place card where no photo exists) */
.office-place .place-skyline { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 64%; color: var(--gold); }
.office-place .motif__label { z-index: 2; }

/* service page: centered article column, full-width image band in the middle,
   and a "how we help / talk to an attorney" band below. */
.svc-article { max-width: none; }   /* match the full-width image band */
.svc-article p, .svc-article li { color: var(--ink-2); line-height: 1.7; }
.svc-article p + p { margin-top: 1.15em; }
.svc-article > :first-child { margin-top: 0; }
.svc-banner { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); height: clamp(260px, 34vw, 440px); }
.svc-banner img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.svc-help { display: grid; grid-template-columns: 1.25fr 1fr; gap: 1.25rem; align-items: start; max-width: 1000px; margin-inline: auto; }
@media (max-width: 760px) { .svc-help { grid-template-columns: 1fr; } }

/* =====================================================================
   ACCESSIBILITY VIEW MODES (user-toggleable, persisted)
   ===================================================================== */
/* larger text — scales every rem-based size */
html.pa-textlarge { font-size: 115%; }

/* always underline content links (not nav/buttons/card overlays) */
html.pa-underline a:not(.btn):not(.nav__link):not(.nav__disc):not(.brand):not(.callbtn):not(.scard__link):not(.tcard__link):not(.pa-lang button):not(.pa-fab) {
  text-decoration: underline !important; text-underline-offset: 2px;
}

/* reduce motion on demand (mirrors prefers-reduced-motion) */
html.pa-reduce-motion *, html.pa-reduce-motion *::before, html.pa-reduce-motion *::after {
  animation-duration: .001ms !important; animation-iteration-count: 1 !important;
  transition-duration: .001ms !important; scroll-behavior: auto !important;
}
html.pa-reduce-motion .reveal { opacity: 1 !important; transform: none !important; }

/* high-contrast theme */
html.pa-contrast {
  --ink: #000000; --ink-2: #000000; --ink-soft: #1a1a1a;
  --ivory: #ffffff; --ivory-2: #ffffff; --surface: #ffffff;
  --line: #000000; --line-2: #000000; --ink-tint: rgba(0,0,0,.08);
  --gold-ink: #000000; --gold: #ffd400; --gold-bright: #ffe14d;
  --green: #0a4a25; --focus: #0033cc;
}
html.pa-contrast body { background: #fff; color: #000; }
html.pa-contrast a:not(.btn):not(.brand):not(.scard__link):not(.tcard__link) { color: #0033cc; text-decoration: underline; text-underline-offset: 2px; }
html.pa-contrast .btn--primary, html.pa-contrast .btn--gold { background: #000; color: #fff; border-color: #000; }
html.pa-contrast .btn--outline { color: #000; border-color: #000; border-width: 2px; }
html.pa-contrast .scard, html.pa-contrast .tcard, html.pa-contrast .office, html.pa-contrast .sidebar,
html.pa-contrast .form-wrap, html.pa-contrast .rel-card, html.pa-contrast .cred, html.pa-contrast .cred__cell,
html.pa-contrast .opt-card, html.pa-contrast .motif, html.pa-contrast .pa-panel,
html.pa-contrast .field input, html.pa-contrast .field select, html.pa-contrast .field textarea { border: 2px solid #000 !important; }
html.pa-contrast .site-header { background: #fff; border-bottom: 2px solid #000; }
html.pa-contrast .nav__link, html.pa-contrast .callbtn, html.pa-contrast .brand { color: #000 !important; }
/* dark bands → pure black with high-contrast accents */
html.pa-contrast .band-navy, html.pa-contrast .pagehead, html.pa-contrast .site-footer,
html.pa-contrast .mnav__panel, html.pa-contrast .motif--dark,
html.pa-contrast .cards--alt .scard:nth-child(2n), html.pa-contrast .pa-fab { background: #000 !important; }
html.pa-contrast .band-navy *, html.pa-contrast .pagehead *, html.pa-contrast .site-footer *,
html.pa-contrast .mnav__panel *, html.pa-contrast .cards--alt .scard:nth-child(2n) * { color: #fff !important; }
html.pa-contrast .on-dark a, html.pa-contrast .band-navy a, html.pa-contrast .site-footer a,
html.pa-contrast .pagehead a, html.pa-contrast .mnav__panel a { color: #ffe14d !important; }
html.pa-contrast .hero__media::after { background: none; }
html.pa-contrast .eyebrow::before, html.pa-contrast .scard__num::before, html.pa-contrast .prose ul li::before { background: currentColor !important; }

/* =====================================================================
   FLOATING ACCESSIBILITY + LANGUAGE CONTROLS
   ===================================================================== */
.pa-fab {
  position: fixed; left: 18px; bottom: 18px; z-index: 160;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--ink); color: #fff; border: 2px solid #fff;
  box-shadow: var(--shadow-lg); cursor: pointer; display: grid; place-items: center;
  transition: background .18s var(--ease), transform .12s var(--ease);
}
.pa-fab:hover { background: #0c2e4f; }
.pa-fab:active { transform: translateY(1px); }
.pa-fab svg { width: 26px; height: 26px; }
@media (max-width: 600px) { .pa-fab { width: 48px; height: 48px; left: 12px; bottom: 12px; } }

.pa-panel {
  position: fixed; left: 18px; bottom: 84px; z-index: 161;
  width: 330px; max-width: calc(100vw - 36px);
  background: var(--surface); color: var(--ink-2);
  border: 1px solid var(--line-2); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 1.15rem 1.2rem 1.3rem; display: none;
}
.pa-panel[data-open="true"] { display: block; }
@media (max-width: 600px) { .pa-panel { left: 12px; bottom: 70px; } }
.pa-panel__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .5rem; }
.pa-panel__head h2 { font-family: var(--sans); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.pa-panel__close { width: 34px; height: 34px; display: grid; place-items: center; background: none; border: 0; cursor: pointer; color: var(--ink-soft); border-radius: var(--radius); }
.pa-panel__close:hover { background: var(--ivory-2); color: var(--ink); }
.pa-panel__close svg { width: 20px; height: 20px; }
.pa-panel__reset { margin-top: .9rem; font: inherit; font-size: .85rem; font-weight: 600; color: var(--gold-ink); background: none; border: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; padding: .3rem 0; }

.pa-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.pa-row:last-of-type { border-bottom: 0; }
.pa-row__label { font-weight: 600; color: var(--ink); font-size: .95rem; }
.pa-row__label small { display: block; font-weight: 500; color: var(--ink-soft); font-size: .79rem; }

/* toggle switch */
.pa-switch { position: relative; flex: none; width: 46px; height: 26px; }
.pa-switch input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.pa-switch .track { position: absolute; inset: 0; background: var(--line-2); border-radius: 999px; transition: background .18s var(--ease); }
.pa-switch .thumb { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; background: #fff; border-radius: 50%; box-shadow: var(--shadow-sm); transition: transform .18s var(--ease); }
.pa-switch input:checked ~ .track { background: var(--green); }
.pa-switch input:checked ~ .thumb { transform: translateX(20px); }
.pa-switch input:focus-visible ~ .track { outline: 3px solid var(--focus); outline-offset: 2px; }

/* language segmented control */
.pa-lang { display: inline-flex; border: 1.5px solid var(--line-2); border-radius: 999px; overflow: hidden; background: var(--surface); }
.pa-lang button { appearance: none; border: 0; background: none; cursor: pointer; font: inherit; font-weight: 700; font-size: .8rem; letter-spacing: .03em; padding: .3rem .72rem; color: var(--ink-soft); min-height: 36px; }
.pa-lang button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.pa-lang button:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.nav__utility .pa-lang { margin-right: .1rem; }
@media (max-width: 980px) { .nav__utility .pa-lang { display: none; } }
.on-dark .pa-lang { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.06); }
.on-dark .pa-lang button { color: rgba(255,255,255,.85); }
.on-dark .pa-lang button[aria-pressed="true"] { background: var(--gold); color: var(--ink); }
.mnav__lang { margin-top: 1.4rem; display: flex; align-items: center; gap: .8rem; }
.mnav__lang .pa-lang { }

/* =====================================================================
   DEMO / BENEFITS PAGE
   ===================================================================== */
.demo-toolbar { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 1.3rem 1.4rem 1.4rem; }
.demo-toolbar__grid { display: grid; grid-template-columns: 1fr 1fr; gap: .2rem 2rem; }
@media (max-width: 680px) { .demo-toolbar__grid { grid-template-columns: 1fr; } }
.demo-chip { display: inline-flex; align-items: center; gap: .5rem; background: var(--ivory-2); border: 1px solid var(--line); border-radius: 999px; padding: .35rem .85rem; font-size: .82rem; font-weight: 600; color: var(--ink); }
.demo-chip .ic { width: 16px; height: 16px; color: var(--green); }

.pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
@media (max-width: 800px) { .pillars { grid-template-columns: 1fr; } }
.pillar { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem 1.6rem; }
.pillar__ic { width: 30px; height: 30px; color: var(--gold-ink); }
.pillar h3 { margin-top: .9rem; }
.pillar p { margin-top: .5rem; color: var(--ink-soft); font-size: .98rem; }
.pillar ul { margin-top: .9rem; display: grid; gap: .55rem; }
.pillar ul li { display: flex; gap: .55rem; align-items: flex-start; font-size: .94rem; color: var(--ink-2); }
.pillar ul .ic { width: 18px; height: 18px; color: var(--green); flex: none; margin-top: 3px; }

.roi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 760px) { .roi { grid-template-columns: 1fr; } }
.roi__card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; }
.roi__k { font-family: var(--serif); font-size: 2rem; color: var(--ink); font-weight: 600; line-height: 1.05; }
.roi__t { font-weight: 700; color: var(--ink); margin-top: .5rem; }
.roi__d { color: var(--ink-soft); font-size: .92rem; margin-top: .3rem; }
.band-navy .roi__card { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.16); }
.band-navy .roi__k { color: var(--gold); }
.band-navy .roi__t { color: #fff; }
.band-navy .roi__d { color: rgba(255,255,255,.78); }

.compare { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.compare caption { text-align: left; }
.compare th, .compare td { text-align: left; padding: .85rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; font-size: .95rem; }
.compare thead th { background: var(--ivory-2); font-family: var(--sans); font-weight: 700; color: var(--ink); font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare td.feat { font-weight: 600; color: var(--ink); }
.compare td.old { color: var(--ink-soft); }
.compare td.new { color: var(--ink-2); }
.compare .row-ic { display: inline-flex; width: 18px; height: 18px; margin-right: .45rem; vertical-align: -3px; }
.compare .x { color: var(--error); }
.compare .ok { color: var(--green); }
@media (max-width: 680px) {
  .compare, .compare tbody, .compare tr, .compare td { display: block; width: 100%; }
  .compare thead { display: none; }
  .compare tr { border-bottom: 1px solid var(--line-2); padding: .4rem 0; }
  .compare td { border: 0; padding: .3rem 1rem; }
  .compare td.feat { padding-top: .8rem; }
  .compare td.old::before { content: "Before (Wix): "; font-weight: 700; color: var(--error); }
  .compare td.new::before { content: "Now: "; font-weight: 700; color: var(--green); }
}
