/* ============================================================================
   Lexwood Law — design system
   Token-driven. Light + dark. Fluid type with clamp(). Grid + Flexbox.
   No external requests (system fonts) so the page paints fast and never
   waits on a font download (helps LCP + avoids layout shift).
   ============================================================================ */

/* ----- Design tokens ----- */
:root {
  /* Brand — matches the Lexwood Law logo: navy + teal */
  --ink: #17324f;          /* logo navy — headings, brand */
  --brand: #1c3d61;        /* navy — headings, links, secondary */
  --brand-strong: #14314f;
  --accent: #b3122a;       /* brand red — header button, small accents only */
  --accent-strong: #8f0f22;
  --accent-soft: #ffffff;  /* labels/headings on the always-dark hero/footer (white, not pink) */
  --teal-bright: #e0616e;  /* brighter red for text on dark surfaces */
  --teal-deep: #9a1020;    /* darker red for small text on light surfaces */

  /* Neutral surfaces (light) — white alternating with light blue */
  --bg: #ffffff;
  --bg-tint: #e9f1fb;
  --surface: #ffffff;
  --surface-2: #eef4fc;
  --border: #dce6f2;
  --text: #182533;
  --text-muted: #566579;
  --text-invert: #ffffff;

  /* Feedback */
  --ok: #1f9d63;
  --err: #cf3b3b;

  /* Typography — fluid scale */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Noto Sans", sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;

  --fs-xs: clamp(0.82rem, 0.78rem + 0.15vw, 0.9rem);
  --fs-sm: clamp(0.95rem, 0.9rem + 0.2vw, 1.05rem);
  --fs-base: clamp(1.1rem, 1.04rem + 0.3vw, 1.22rem);
  --fs-lg: clamp(1.25rem, 1.15rem + 0.45vw, 1.45rem);
  --fs-xl: clamp(1.55rem, 1.3rem + 0.95vw, 2.05rem);
  --fs-2xl: clamp(2.05rem, 1.65rem + 1.7vw, 2.95rem);
  --fs-3xl: clamp(2.55rem, 1.9rem + 3vw, 4.2rem);

  /* Spacing scale (tightened) */
  --space-1: 0.25rem;
  --space-2: 0.45rem;
  --space-3: 0.6rem;
  --space-4: 0.85rem;
  --space-5: 1.15rem;
  --space-6: 1.5rem;
  --space-7: 2.1rem;
  --space-8: 3.1rem;
  --space-9: 4.4rem;

  /* Shape + depth */
  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(11, 31, 58, 0.06), 0 2px 6px rgba(11, 31, 58, 0.05);
  --shadow: 0 10px 30px -12px rgba(11, 31, 58, 0.22);
  --shadow-lg: 0 30px 60px -22px rgba(11, 31, 58, 0.35);

  --container: 1200px;
  --header-h: 122px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  color-scheme: light;
}

/* ----- Dark theme: automatic (system) + manual override via [data-theme] ----- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #eaf1fb;
    --brand: #2b6098;
    --brand-strong: #21507f;
    --accent: #d94452;
    --accent-strong: #b3122a;
    --accent-soft: #f0c3c8;
    --teal-deep: #e0616e;
    --bg: #0a1526;
    --bg-tint: #0e1c31;
    --surface: #10203a;
    --surface-2: #16273f;
    --border: #24374f;
    --text: #dbe6f4;
    --text-muted: #93a4bb;
    --text-invert: #0a1526;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --ink: #eaf1fb;
  --brand: #2b6098;
  --brand-strong: #21507f;
  --accent: #d94452;
  --accent-strong: #b3122a;
  --accent-soft: #ffffff;
  --teal-deep: #e0616e;
  --bg: #0a1526;
  --bg-tint: #0e1c31;
  --surface: #10203a;
  --surface-2: #16273f;
  --border: #24374f;
  --text: #dbe6f4;
  --text-muted: #93a4bb;
  --text-invert: #0a1526;
  color-scheme: dark;
}

:root[data-theme="light"] { color-scheme: light; }

/* ----- Reset / base ----- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  font-size: 17px;
}

img, video, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.15; color: var(--ink); font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-lg); }

:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 8px; }

.container { width: min(100% - 2.4rem, var(--container)); margin-inline: auto; }

/* ----- Buttons ----- */
.btn {
  --btn-bg: var(--brand);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font: inherit; font-weight: 600; line-height: 1;
  padding: 0.82em 1.4em; border-radius: 999px; border: 1.5px solid transparent;
  background: var(--btn-bg); color: var(--btn-fg); cursor: pointer;
  transition: transform 0.15s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn--primary { --btn-bg: var(--brand); box-shadow: 0 6px 18px -8px rgba(28, 61, 97, 0.55); }
.btn--primary:hover { --btn-bg: var(--brand-strong); }
.btn--accent { --btn-bg: var(--accent); box-shadow: 0 6px 18px -8px rgba(179, 18, 42, 0.6); }
.btn--accent:hover { --btn-bg: var(--accent-strong); }
.btn--light { --btn-bg: #fff; --btn-fg: var(--ink); border-color: #fff; }
.btn--light:hover { --btn-bg: transparent; --btn-fg: #fff; border-color: rgba(255,255,255,0.75); box-shadow: none; }
.btn--outline { --btn-bg: transparent; --btn-fg: #fff; border-color: rgba(255,255,255,0.6); }
.btn--outline:hover { --btn-bg: rgba(255,255,255,0.12); box-shadow: none; }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--text); border-color: var(--border); }
.btn--ghost:hover { --btn-bg: var(--surface-2); box-shadow: none; }
.btn--lg { padding: 1em 1.7em; font-size: var(--fs-lg); }
.btn--block { width: 100%; }

/* ===== Two-tier header ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg); border-bottom: 1px solid var(--border);
  transition: box-shadow 0.25s var(--ease);
}
.site-header[data-scrolled] { box-shadow: var(--shadow-sm); }
section[id], .page-hero { scroll-margin-top: 130px; }

/* Row 1: top bar */
.topbar__inner { display: flex; align-items: center; gap: var(--space-4); min-height: 78px; }
.brand { display: inline-flex; align-items: center; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand__logo { display: block; height: 54px; width: auto; }
.brand__logo--dark { display: none; }
:root[data-theme="dark"] .brand__logo--light { display: none; }
:root[data-theme="dark"] .brand__logo--dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand__logo--light { display: none; }
  :root:not([data-theme="light"]) .brand__logo--dark { display: block; }
}
.brand--footer .brand__logo { height: 70px; }

.topnav { margin-left: auto; }
.topnav__links { display: flex; align-items: center; gap: var(--space-5); list-style: none; margin: 0; padding: 0; }
.topnav__links > li > a { color: var(--text); font-weight: 600; font-size: 16.5px; padding: 6px 0; position: relative; display: inline-flex; align-items: center; gap: 6px; }
.topnav__links > li > a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--accent); transition: width 0.28s var(--ease); }
.topnav__links > li > a:hover { text-decoration: none; }
.topnav__links > li > a:hover::after { width: 100%; }
.topnav__phone svg { width: 15px; height: 15px; stroke: var(--accent); fill: none; stroke-width: 1.7; }

.topbar__actions { display: flex; align-items: center; gap: var(--space-4); }
.topbar__book { padding: 0.72em 1.25em; font-size: var(--fs-sm); }
.topbar__phone { display: inline-flex; align-items: center; gap: 7px; font-size: 16px; font-weight: 600; color: var(--text); white-space: nowrap; }
.topbar__phone:hover { color: var(--accent); text-decoration: none; }
.topbar__phone svg { width: 15px; height: 15px; stroke: var(--accent); fill: none; stroke-width: 1.7; }

.theme-toggle {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text);
  cursor: pointer; transition: background 0.2s var(--ease);
}
.theme-toggle:hover { background: var(--surface-2); }
.theme-toggle__moon { display: none; }
:root[data-theme="dark"] .theme-toggle__sun { display: none; }
:root[data-theme="dark"] .theme-toggle__moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle__sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle__moon { display: block; }
}

/* Row 2: practice bar (navy strip) */
.practicebar { background: var(--ink); }
:root[data-theme="dark"] .practicebar { background: #060e1c; border-top: 1px solid var(--border); }
.practicenav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem clamp(0.75rem, 2.2vw, 2rem); justify-content: space-between; padding: 11px 0; }
.practicenav a { color: rgba(255,255,255,0.82); font-size: 15px; font-weight: 600; letter-spacing: 0.02em; white-space: nowrap; position: relative; padding: 3px 0; }
.practicenav a:hover { color: #fff; text-decoration: none; }
.practicenav a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--accent); transition: width 0.28s var(--ease); }
.practicenav a:hover::after { width: 100%; }

.nav-toggle { display: none; }

/* Desktop: hide the mobile-only menu extras */
@media (min-width: 1025px) { .topnav__practice-m, .topnav__book-m, .topnav__phone-m { display: none; } }

/* Desktop: centre the main nav. Giving the logo and the actions equal flex makes the
   nav sit at true centre regardless of how wide either side is. */
@media (min-width: 1025px) {
  .topnav { flex: 0 1 auto; margin: 0; display: flex; justify-content: center; }
  .brand { flex: 1 1 0; justify-content: flex-start; }
  .topbar__actions { flex: 1 1 0; justify-content: flex-end; }
}

/* Mobile: collapse both tiers into a slide-down menu */
@media (max-width: 1024px) {
  .topbar__inner { min-height: 64px; }
  .brand__logo { height: 46px; }
  .practicebar { display: none; }
  .topbar__book, .topbar__phone { display: none; }
  .nav-toggle {
    display: inline-grid; place-items: center; width: 42px; height: 42px;
    border: 1px solid var(--border); border-radius: 10px; background: var(--surface); cursor: pointer;
    position: relative; z-index: 120; margin-left: auto; order: 3;
  }
  .nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after {
    content: ""; display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px;
    transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
  }
  .nav-toggle__bar::before { transform: translateY(-6px); }
  .nav-toggle__bar::after { transform: translateY(4px); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { transform: rotate(-45deg); }

  .topbar__actions { order: 2; }
  .topnav { margin: 0; order: 4; }
  .topnav__links {
    position: fixed; inset: 64px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
    padding: var(--space-3) 1.2rem var(--space-6); max-height: calc(100vh - 64px); overflow-y: auto;
    transform: translateY(-145%); transition: transform 0.3s var(--ease);
  }
  .topnav__links[data-open] { transform: translateY(0); }
  .topnav__links > li { border-bottom: 1px solid var(--border); }
  .topnav__links > li > a { display: block; padding: 0.85rem 0; font-size: 16px; }
  .topnav__links > li > a::after { display: none; }
  .topnav__practice-m ul { list-style: none; padding: 0.2rem 0 0.6rem 0.8rem; margin: 0; }
  .topnav__practice-m > .topnav__label { display: block; padding-top: 0.85rem; font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); font-weight: 700; }
  .topnav__practice-m ul a { display: block; padding: 0.5rem 0; font-size: 15px; color: var(--text); }
  .topnav__book-m { border-bottom: 0 !important; padding-top: var(--space-4); }
  .topnav__book-m a.btn { display: flex; justify-content: center; }
}

/* ----- Hero ----- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(300px, 44vh, 420px);
  display: flex; align-items: center;
  padding-block: clamp(1.25rem, 1rem + 2vw, 2.25rem);
  color: #fff;
  /* Dusk gradient base in case the skyline image fails — prevents an empty box (no CLS). */
  background: linear-gradient(180deg, #081a34 0%, #0e2a4c 55%, #16466b 100%);
}
.hero__media {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: -2; opacity: 0.72;
  animation: kenburns 34s ease-in-out infinite alternate;
}
@keyframes kenburns {
  from { transform: scale(1.05); }
  to   { transform: scale(1.14) translate(-1.5%, -1%); }
}
@media (prefers-reduced-motion: reduce) { .hero__media { animation: none; } }
.hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(6,15,30,0.55) 0%, rgba(6,15,30,0.6) 55%, rgba(6,15,30,0.82) 100%);
}
.hero__inner { width: 100%; }
.hero__kicker {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: var(--fs-sm); font-weight: 600; color: var(--accent-soft);
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16);
  padding: 0.35rem 0.85rem; border-radius: 999px;
}
.hero__title { font-size: clamp(1.15rem, 0.95rem + 1.2vw, 1.6rem); color: #fff; margin-top: var(--space-2); max-width: 30ch; font-weight: 600; }

.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: var(--fs-sm); font-weight: 600; letter-spacing: 0.02em;
  color: var(--accent-soft);
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16);
  padding: 0.4rem 0.9rem; border-radius: 999px; margin-bottom: var(--space-5);
}
.pulse-dot {
  width: 9px; height: 9px; border-radius: 50%; background: #59d98a; flex: none;
  box-shadow: 0 0 0 0 rgba(89, 217, 138, 0.7); animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(89,217,138,0.6); }
  70% { box-shadow: 0 0 0 10px rgba(89,217,138,0); }
  100% { box-shadow: 0 0 0 0 rgba(89,217,138,0); }
}

.hero__heading { font-size: var(--fs-3xl); color: #fff; margin-bottom: var(--space-4); }
.hero__heading-accent { color: var(--teal-bright); }
.hero__sub { font-size: var(--fs-lg); color: rgba(255,255,255,0.85); max-width: 60ch; margin-bottom: var(--space-5); }

/* Practice-area slideshow (the banner carousel) */
.slider {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "prev view next" "dots dots dots";
  align-items: center; column-gap: var(--space-3); row-gap: var(--space-3);
  margin-top: var(--space-4);
}
.slider__viewport { grid-area: view; overflow: hidden; }
.slide { display: grid; grid-template-columns: 1fr; gap: var(--space-4); align-items: center; transition: opacity 0.4s var(--ease); }
@media (min-width: 760px) { .slide { grid-template-columns: 1fr 0.82fr; gap: var(--space-6); } }
.slide.is-swapping { opacity: 0; }
.slide__eyebrow { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.16em; color: var(--accent-soft); font-weight: 700; margin-bottom: 0.25rem; }
.slide__title { font-family: var(--font-serif); font-size: clamp(1.4rem, 1.1rem + 1.5vw, 2rem); color: #fff; margin-bottom: 0.4rem; }
.slide__desc { color: rgba(255,255,255,0.86); font-size: var(--fs-base); max-width: 48ch; margin-bottom: var(--space-3); }
.slide__media { order: -1; }
@media (min-width: 760px) { .slide__media { order: 0; } }
.slide__media img {
  width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover;
  max-height: clamp(180px, 30vh, 300px);
  border-radius: var(--radius-lg); border: 1px solid rgba(255,255,255,0.16); box-shadow: var(--shadow-lg); background: #0e2c4a;
}
@media (min-width: 760px) { .slide__media img { margin-left: auto; } }
.slider__arrow {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.25);
  background: rgba(6,15,30,0.45); color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center; transition: background 0.2s var(--ease);
}
.slider__arrow:hover { background: rgba(6,15,30,0.72); }
.slider__arrow--prev { grid-area: prev; }
.slider__arrow--next { grid-area: next; }
.slider__dots { grid-area: dots; display: flex; gap: 0.4rem; justify-content: center; flex-wrap: wrap; }
.slider__dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,0.35); cursor: pointer; transition: width 0.25s var(--ease), background 0.25s var(--ease); }
.slider__dots button:hover { background: rgba(255,255,255,0.6); }
.slider__dots button.is-active { background: var(--accent); width: 22px; border-radius: 5px; }
@media (max-width: 640px) { .slider { grid-template-columns: 1fr; grid-template-areas: "view" "dots"; } .slider__arrow { display: none; } }

.hero__cta { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-bottom: var(--space-6); }

.hero__trust { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-5); font-size: var(--fs-sm); color: rgba(255,255,255,0.82); }
.hero__trust li { padding-left: 1.4rem; position: relative; }
.hero__trust li::before { content: "✓"; position: absolute; left: 0; color: var(--teal-bright); font-weight: 700; }
.hero__trust strong { color: #fff; }

/* ===== Full-bleed video banner ===== */
.vbanner {
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  min-height: clamp(460px, 72vh, 660px);
  display: flex; align-items: center; background: #0c2547;
}
.vbanner__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -3; transition: opacity 0.6s var(--ease); }
.vbanner__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: 0; transition: opacity 0.6s var(--ease); }
.vbanner__video.is-shown { opacity: 1; }
.vbanner__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(8,20,40,0.88) 0%, rgba(8,20,40,0.55) 46%, rgba(8,20,40,0.22) 100%),
    linear-gradient(0deg, rgba(8,20,40,0.5) 0%, rgba(8,20,40,0.1) 55%);
}
.vbanner.is-swapping .vbanner__bg { opacity: 0.45; }
.vbanner__content { max-width: 720px; padding-block: var(--space-7); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.vbanner.is-swapping .vbanner__content { opacity: 0; transform: translateY(10px); }
.vbanner__eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: var(--fs-sm); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-soft); background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16);
  padding: 0.35rem 0.85rem; border-radius: 999px;
}
.vbanner__title { font-family: var(--font-serif); font-size: clamp(2.3rem, 1.5rem + 4vw, 4.4rem); line-height: 1.05; color: #fff; margin: var(--space-4) 0 var(--space-3); }
.vbanner__desc { font-size: var(--fs-lg); color: rgba(255,255,255,0.9); max-width: 52ch; margin-bottom: var(--space-5); }
.vbanner__cta { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.vbanner__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.35);
  background: rgba(8,20,40,0.4); color: #fff; font-size: 1.6rem; line-height: 1;
  display: grid; place-items: center; cursor: pointer; transition: background 0.2s var(--ease);
}
.vbanner__arrow:hover { background: rgba(8,20,40,0.72); }
.vbanner__arrow--prev { left: 18px; }
.vbanner__arrow--next { right: 18px; }
.vbanner__dots { position: absolute; left: 0; right: 0; bottom: 20px; z-index: 3; display: flex; gap: 0.25rem; justify-content: center; flex-wrap: wrap; }
/* The visible dot stays 10px, but a transparent border widens the tappable
   area to 24x24 (the WCAG minimum) — fingers need more than a 10px target. */
.vbanner__dots button {
  width: 24px; height: 24px; padding: 0; border: 7px solid transparent; border-radius: 50%;
  background: rgba(255,255,255,0.4); background-clip: padding-box; cursor: pointer;
  transition: width 0.25s var(--ease), background 0.25s var(--ease);
}
.vbanner__dots button.is-active { background: var(--accent); background-clip: padding-box; width: 40px; border-radius: 12px; }
@media (max-width: 640px) {
  .vbanner__arrow { display: none; }
  .vbanner { min-height: clamp(380px, 58vh, 460px); }
  .vbanner__content { padding-block: var(--space-5); }
  .vbanner__title { font-size: clamp(2rem, 1.4rem + 5vw, 2.6rem); }
  .vbanner__desc { font-size: var(--fs-base); }
  .vbanner__dots { bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) { .vbanner__bg, .vbanner__video, .vbanner__content { transition: none; } }

/* ----- Section scaffolding ----- */
.section { padding-block: clamp(2.25rem, 1.5rem + 3.5vw, 4rem); }
.section--tint { background: var(--bg-tint); }

.section-head { max-width: 64ch; margin-bottom: var(--space-6); }
.section-head__eyebrow {
  display: inline-block; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent); margin-bottom: var(--space-3);
}
.section-head__title { margin-bottom: var(--space-3); }
.section-head__lead { font-size: var(--fs-lg); color: var(--text-muted); }

/* Reveal-on-scroll (progressive: content is visible even if JS/observer never runs) */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ----- Section heads that are centred ----- */
.section-head--center { max-width: 60ch; margin-inline: auto; text-align: center; }
.section-head--center .section-head__lead { max-width: 52ch; margin-inline: auto; }

/* ----- Practice areas grid (photo tiles) ----- */
.pa-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.pa-tile {
  position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: var(--radius); background: #12335a; color: #fff;
  box-shadow: var(--shadow-sm); transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.pa-tile:hover { text-decoration: none; box-shadow: var(--shadow); transform: translateY(-3px); }
.pa-tile__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.pa-tile:hover .pa-tile__img { transform: scale(1.06); }
.pa-tile__scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(11,26,48,0.30) 0%, rgba(11,26,48,0.12) 42%, rgba(11,26,48,0.82) 100%);
  transition: background 0.3s var(--ease);
}
.pa-tile:hover .pa-tile__scrim { background: linear-gradient(180deg, rgba(11,26,48,0.42) 0%, rgba(179,18,42,0.26) 55%, rgba(11,26,48,0.88) 100%); }
.pa-tile__icon { position: absolute; top: 16px; left: 18px; z-index: 2; color: #fff; opacity: 0.95; }
.pa-tile__title {
  position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 2; margin: 0;
  color: #fff; font-size: clamp(1.1rem, 0.9rem + 0.8vw, 1.45rem); font-weight: 700; line-height: 1.15;
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}
.pa-tile__title::after {
  content: ""; display: block; width: 34px; height: 3px; margin-top: 8px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease);
}
.pa-tile:hover .pa-tile__title::after { transform: scaleX(1); }

/* ----- Expertise page grid ----- */
.ex-grid { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.ex-card { display: flex; flex-direction: column; gap: var(--space-2); background: var(--surface); border: 1px solid var(--border); border-top: 3px solid var(--accent); border-radius: var(--radius); padding: var(--space-5); box-shadow: var(--shadow-sm); color: var(--text); transition: transform 0.2s var(--ease), box-shadow 0.25s var(--ease); }
.ex-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); text-decoration: none; }
.ex-card__icon { display: inline-grid; place-items: center; width: 50px; height: 50px; border-radius: 12px; background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); margin-bottom: var(--space-1); }
.ex-card h2 { font-size: var(--fs-lg); color: var(--ink); }
.ex-card p { color: var(--text-muted); font-size: var(--fs-sm); flex: 1; }
.ex-card__more { margin-top: var(--space-2); font-weight: 700; font-size: var(--fs-sm); color: var(--accent); }

/* ----- Knowledge Hub grid ----- */
.kh-grid { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.kh-card { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-5); box-shadow: var(--shadow-sm); color: var(--text); transition: transform 0.2s var(--ease), box-shadow 0.25s var(--ease); }
.kh-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); text-decoration: none; }
.kh-card__tag { display: inline-block; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: var(--space-2); }
.kh-card h2 { font-size: var(--fs-lg); color: var(--ink); margin-bottom: var(--space-2); line-height: 1.25; }
.kh-card p { color: var(--text-muted); font-size: var(--fs-sm); }
/* topic cards on the Knowledge Hub landing */
.kh-card--topic { display: flex; flex-direction: column; gap: var(--space-2); border-top: 3px solid var(--accent); }
.kh-card__icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); margin-bottom: var(--space-1); }
.kh-card__count { margin-top: auto; padding-top: var(--space-2); font-weight: 700; font-size: var(--fs-sm); color: var(--accent); }

/* ----- Knowledge Hub disclaimer box ----- */
.kb-disclaimer { display: flex; gap: var(--space-2); align-items: flex-start; background: #fff7ed; border: 1px solid #f4d6ac; border-left: 3px solid #d98a1f; border-radius: var(--radius-sm); padding: var(--space-3) var(--space-4); margin-bottom: var(--space-4); }
.kb-disclaimer__badge { flex: none; display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; background: #d98a1f; color: #fff; font-weight: 800; font-size: 12px; margin-top: 1px; }
.kb-disclaimer p { margin: 0; font-size: var(--fs-xs); color: #7a4a12; line-height: 1.5; }
:root[data-theme="dark"] .kb-disclaimer { background: rgba(217,138,31,0.12); border-color: rgba(217,138,31,0.4); }
:root[data-theme="dark"] .kb-disclaimer p { color: #e8c99a; }

/* ----- Knowledge Hub article body ----- */
.kb-article { max-width: 72ch; }
.kb-article h2 { font-size: var(--fs-xl); margin-top: var(--space-6); margin-bottom: var(--space-3); }
.kb-article p { margin-bottom: var(--space-3); }
.kb-article ul { margin: 0 0 var(--space-4) 1.2rem; display: grid; gap: var(--space-2); }
.kb-article li { color: var(--text); }
.kb-article em { color: var(--brand); font-style: italic; }
.kb-article__img { display: block; width: 100%; height: auto; border-radius: var(--radius); margin: var(--space-4) 0 var(--space-5); box-shadow: var(--shadow-sm); }
.page-figure { margin: var(--space-4) 0 var(--space-5); }
.page-figure .kb-article__img { margin: 0; }
.page-figure figcaption { text-align: right; font-size: var(--fs-xs); color: var(--text-muted); margin-top: var(--space-1); }

/* ----- Stats ----- */
/* A thin strip, not a full section: much less vertical padding than .section,
   and a slightly smaller number so the band reads as a quick glance, not a hero. */
.stats { padding-block: clamp(1.1rem, 0.8rem + 1vw, 1.7rem); }
.stats__grid {
  list-style: none; padding: 0;
  display: grid; gap: var(--space-4);
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); text-align: center;
}
.stat__value { display: block; font-family: var(--font-serif); font-size: var(--fs-2xl); font-weight: 700; color: var(--brand); line-height: 1; }
.stat__label { display: block; margin-top: var(--space-1); color: var(--text-muted); font-size: var(--fs-sm); }

/* ----- Why us ----- */
.why { display: grid; gap: var(--space-7); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .why { grid-template-columns: 1fr 1.15fr; gap: var(--space-8); } }
.why__intro .btn { margin-top: var(--space-4); }
.why__list { list-style: none; padding: 0; display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.why__item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-5); box-shadow: var(--shadow-sm); }
.why__item-title { color: var(--ink); margin-bottom: var(--space-2); }
.why__item p { color: var(--text-muted); font-size: var(--fs-sm); }

/* ----- Results / testimonials ----- */
.results { display: grid; gap: var(--space-6); grid-template-columns: 1fr; }
@media (min-width: 960px) { .results { grid-template-columns: 1.6fr 1fr; align-items: start; } }
.testimonials { list-style: none; padding: 0; display: grid; gap: var(--space-4); }
.testimonial {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: var(--space-5); box-shadow: var(--shadow-sm); position: relative;
}
.testimonial::before {
  content: "\201C"; font-family: var(--font-serif); font-size: 3.4rem; line-height: 1;
  color: var(--accent); opacity: 0.5; position: absolute; top: 0.4rem; right: 1rem;
}
.testimonial__quote { font-size: var(--fs-lg); color: var(--text); margin-bottom: var(--space-3); }
.testimonial__author { font-size: var(--fs-sm); color: var(--text-muted); }
.results__metrics { background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: var(--space-6); box-shadow: var(--shadow); }
:root[data-theme="dark"] .results__metrics { background: var(--surface-2); border: 1px solid var(--border); }
.results__metrics-title { color: #fff; margin-bottom: var(--space-4); }
.results__metrics-list { display: grid; gap: var(--space-4); }
.results__metrics-list div { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); border-bottom: 1px solid rgba(255,255,255,0.14); padding-bottom: var(--space-3); }
.results__metrics-list dt { color: rgba(255,255,255,0.8); font-size: var(--fs-sm); }
.results__metrics-list dd { font-family: var(--font-serif); font-size: var(--fs-xl); font-weight: 700; color: var(--teal-bright); }
.results__disclaimer { margin-top: var(--space-4); font-size: var(--fs-xs); color: rgba(255,255,255,0.55); }

/* ----- Contact / lead form ----- */
.contact { display: grid; gap: var(--space-7); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 940px) { .contact { grid-template-columns: 1fr 1fr; gap: var(--space-8); } }

.availability {
  display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 600; font-size: var(--fs-sm);
  color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--ok) 30%, transparent);
  padding: 0.45rem 0.9rem; border-radius: 999px; margin-block: var(--space-4);
}
.availability__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 60%, transparent); animation: pulse 2.4s infinite; }

.contact__points { list-style: none; padding: 0; display: grid; gap: var(--space-2); margin-bottom: var(--space-4); }
.contact__points li { padding-left: 1.6rem; position: relative; color: var(--text-muted); }
.contact__points li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 700; }
.contact__direct { color: var(--text-muted); font-size: var(--fs-sm); }

.lead-form {
  position: relative;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 1rem + 2vw, 2.4rem); box-shadow: var(--shadow);
}
.lead-form__progress { display: flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-5); }
.lead-form__step {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--surface-2); color: var(--text-muted); font-weight: 700; font-size: var(--fs-sm);
  border: 1.5px solid var(--border); transition: all 0.25s var(--ease); flex: none;
}
.lead-form__step.is-active { background: var(--brand); color: #fff; border-color: var(--brand); }
.lead-form__step.is-done { background: var(--ok); color: #fff; border-color: var(--ok); }
.lead-form__progress-line { flex: 1; height: 2px; background: var(--border); border-radius: 2px; }

.lead-form__panel { border: 0; padding: 0; margin: 0; display: none; }
.lead-form__panel.is-active { display: block; animation: panelIn 0.35s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
.lead-form__legend { font-weight: 700; color: var(--ink); font-size: var(--fs-lg); margin-bottom: var(--space-4); padding: 0; }

.field { margin-bottom: var(--space-4); }
.field label { display: block; font-weight: 600; font-size: var(--fs-sm); margin-bottom: var(--space-2); color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--bg);
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: 0.72em 0.9em; transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); outline: none;
}
.field textarea { resize: vertical; min-height: 96px; }
.field--check { display: flex; align-items: flex-start; gap: 0.6rem; }
.field--check input { width: auto; margin-top: 0.25rem; flex: none; }
.field--check span { font-weight: 400; font-size: var(--fs-sm); color: var(--text-muted); }
.field.has-error input, .field.has-error select { border-color: var(--err); }
.field__error { color: var(--err); font-size: var(--fs-xs); margin-top: var(--space-1); min-height: 1em; }

.lead-form__actions { display: flex; gap: var(--space-3); justify-content: space-between; align-items: center; }

.lead-form__success { text-align: center; padding: var(--space-5) 0; color: var(--text); }
.lead-form__success svg { color: var(--ok); margin: 0 auto var(--space-3); }
.lead-form__success h3 { color: var(--ink); margin-bottom: var(--space-2); }
.lead-form__success p { color: var(--text-muted); }

/* ----- Footer ----- */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.78); padding-top: var(--space-8); margin-top: var(--space-4); }
:root[data-theme="dark"] .site-footer { background: #060e1c; border-top: 1px solid var(--border); }
.site-footer__inner { display: grid; gap: var(--space-6); grid-template-columns: 1fr; padding-bottom: var(--space-7); }
@media (min-width: 720px) { .site-footer__inner { grid-template-columns: 1.5fr 1fr 1.1fr; } }
/* Keep the three footer groups visually distinct — without dividers the city names
   and the practice-area links read as one long run of text. */
@media (min-width: 720px) {
  .site-footer__nav--practice, .site-footer__contact {
    border-left: 1px solid rgba(255,255,255,0.14); padding-left: var(--space-6);
  }
}
.site-footer__brand p { margin-top: var(--space-3); font-size: var(--fs-sm); max-width: 34ch; }
.site-footer__nav h2, .site-footer__contact h2 { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent-soft); margin-bottom: var(--space-3); }
.site-footer__nav ul { list-style: none; padding: 0; display: grid; gap: var(--space-2); }
/* Areas We Serve: plain text names flowed into narrow columns, not a link grid. */
.site-footer__nav--areas ul { display: block; column-width: 105px; column-gap: var(--space-5); }
.site-footer__nav--areas li { font-size: var(--fs-sm); padding: 3px 0; break-inside: avoid; }
/* Practice areas: two tight columns so the links sit close together, not spread wide. */
.site-footer__nav--practice ul { display: block; column-width: 135px; column-gap: var(--space-4); }
.site-footer__nav--practice li { padding: 3px 0; break-inside: avoid; }
.site-footer__nav--areas h2, .site-footer__nav--practice h2 { text-align: center; }
.site-footer__nav a, .site-footer__contact a { color: rgba(255,255,255,0.78); font-size: var(--fs-sm); }
.site-footer__nav a:hover, .site-footer__contact a:hover { color: #fff; }
.site-footer__contact address { font-style: normal; font-size: var(--fs-sm); line-height: 1.9; }
.site-footer__legal {
  border-top: 1px solid rgba(255,255,255,0.12); padding-block: var(--space-5);
  display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-6); justify-content: space-between;
  font-size: var(--fs-xs); color: rgba(255,255,255,0.55);
}
.site-footer__disclaimer { max-width: 60ch; }

/* ============================================================================
   Responsive: mobile nav
   ============================================================================ */
@media (max-width: 860px) {
  .site-header__phone { display: none; }
  .nav-toggle {
    display: inline-grid; place-items: center; width: 42px; height: 42px;
    border: 1px solid var(--border); border-radius: 10px; background: var(--surface); cursor: pointer;
    position: relative; z-index: 120;
  }
  .nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after {
    content: ""; display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px;
    transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
  }
  .nav-toggle__bar::before { transform: translateY(-6px); }
  .nav-toggle__bar::after { transform: translateY(4px); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { transform: rotate(-45deg); }

  .site-nav { margin-left: auto; }
  .nav-menu {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: var(--space-3) 1.2rem var(--space-5);
    box-shadow: var(--shadow); transform: translateY(-140%); transition: transform 0.3s var(--ease);
  }
  .nav-menu[data-open] { transform: translateY(0); }
  .nav-menu li { border-bottom: 1px solid var(--border); }
  .nav-menu a { display: block; padding: 0.9rem 0; }
  .nav-menu a::after { display: none; }
}

/* ============================================================================
   Footer hours + directions
   ============================================================================ */
.site-footer__hours-title { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent-soft); margin-top: var(--space-4); margin-bottom: var(--space-2); }
.site-footer__hours { list-style: none; padding: 0; display: grid; gap: 0.3rem; font-size: var(--fs-sm); max-width: 260px; }
.site-footer__hours li { display: flex; justify-content: space-between; gap: var(--space-4); color: rgba(255,255,255,0.78); }
.site-footer__hours li span:last-child { color: #fff; }
.site-footer__directions { display: inline-block; margin-top: var(--space-4); color: var(--accent-soft); font-weight: 600; font-size: var(--fs-sm); }

/* ============================================================================
   Visit / map section
   ============================================================================ */
.visit { display: grid; gap: var(--space-6); grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 860px) { .visit { grid-template-columns: 1fr 1.15fr; gap: var(--space-7); } }
.visit address { font-style: normal; line-height: 1.9; color: var(--text); margin-bottom: var(--space-4); }
.visit__hours { list-style: none; padding: 0; display: grid; gap: 0.35rem; margin-bottom: var(--space-4); max-width: 320px; }
.visit__hours li { display: flex; justify-content: space-between; gap: var(--space-4); color: var(--text-muted); }
.visit__hours li span:last-child { color: var(--text); font-weight: 600; }
.map-embed { width: 100%; aspect-ratio: 4 / 3; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; background: var(--surface-2); }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (min-width: 860px) { .map-embed { aspect-ratio: auto; height: 100%; min-height: 380px; } }

/* ============================================================================
   Practice-area sub-pages
   ============================================================================ */
.page-hero { position: relative; color: #fff; padding-block: clamp(2.5rem, 2rem + 4vw, 4.5rem);
  background-color: #0c2547;
  background-image: linear-gradient(105deg, rgba(10,23,44,0.9) 0%, rgba(10,23,44,0.78) 50%, rgba(10,23,44,0.62) 100%), var(--hero-photo, none);
  background-size: cover; background-position: center; }
.breadcrumb { font-size: var(--fs-sm); margin-bottom: var(--space-4); color: rgba(255,255,255,0.6); }
.breadcrumb a { color: var(--accent-soft); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb [aria-current] { color: #fff; }
.page-hero__icon { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 15px;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.22); color: #fff; margin-bottom: var(--space-3); }
.page-hero h1 { color: #fff; font-size: var(--fs-2xl); }
.page-hero__tagline { font-size: var(--fs-lg); color: rgba(255,255,255,0.85); max-width: 62ch; margin-top: var(--space-2); }
.page-hero__cta { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-5); }

.page-body { display: grid; gap: var(--space-7); grid-template-columns: 1fr; align-items: start;
  padding-block: clamp(2.5rem, 2rem + 4vw, 5rem); }
@media (min-width: 900px) { .page-body { grid-template-columns: 1fr 340px; gap: var(--space-8); } }
.page-article h2 { font-size: var(--fs-xl); margin-top: var(--space-6); margin-bottom: var(--space-3); }
.page-article h2:first-child { margin-top: 0; }
.page-article p { color: var(--text); margin-bottom: var(--space-3); max-width: 72ch; }

.check-list { list-style: none; padding: 0; display: grid; gap: var(--space-2); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.check-list li { position: relative; padding-left: 1.6rem; color: var(--text); }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* ----- Help grid: title+body cards used by "How we help" on area pages and
   by the About/Careers/Meet-lawyer content sections. ----- */
.helpgrid { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-bottom: var(--space-5); }
.helpitem { background: var(--surface); border: 1px solid var(--border); border-top: 3px solid var(--brand); border-radius: var(--radius); padding: var(--space-4) var(--space-5); box-shadow: var(--shadow-sm); }
.helpitem h3 { font-size: var(--fs-base); color: var(--ink); margin-bottom: var(--space-2); }
.helpitem p { color: var(--text-muted); font-size: var(--fs-sm); margin: 0; }
/* Card thumbnail: full-bleed to the card's top edge (offsets the padding),
   fixed height so rows stay aligned; width/height attrs prevent layout shift. */
.helpitem__img { display: block; width: calc(100% + 2 * var(--space-5)); margin: calc(-1 * var(--space-4)) calc(-1 * var(--space-5)) var(--space-3); height: 150px; object-fit: cover; border-radius: 0 0 var(--radius-sm) var(--radius-sm); }

/* ----- Services at a glance (homepage overview of all nine areas) -----
   Each card takes its colour from a single --svc custom property, set per
   practice area below; the icon, title, ticks, top bar and hover shadow all
   derive from it, so recolouring an area is a one-line change. */
.section--services {
  background: linear-gradient(180deg, var(--bg) 0%, var(--surface-2) 55%, var(--bg-tint) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-block: clamp(1.9rem, 1.3rem + 2.4vw, 3rem);
}
/* Scoped to this band only — the shared section heading stays full size elsewhere. */
.section--services .section-head { margin-bottom: var(--space-4); max-width: 62ch; }
.section--services .section-head__lead { font-size: var(--fs-sm); }
.svc-grid { list-style: none; padding: 0; margin: var(--space-5) 0 0; display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr)); }
.svc-card {
  /* Cards are filled with the brand navy; --svc is the gold accent that reads
     on that dark ground (navy + gold, not red, which would be too low-contrast). */
  --svc: #e2b866;
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  background: var(--ink); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: var(--radius-sm);
  padding: var(--space-4); box-shadow: var(--shadow-sm);
  transition: box-shadow 0.28s var(--ease), transform 0.28s var(--ease), border-color 0.28s var(--ease);
}
.svc-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--svc); }
.svc-card:hover { transform: translateY(-4px); border-color: var(--svc); box-shadow: 0 14px 26px -14px rgba(9, 21, 38, 0.75); }
.svc-card__head { display: flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-3); }
.svc-card__icon {
  flex: none; display: grid; place-items: center; width: 32px; height: 32px;
  border-radius: 9px; color: var(--svc);
  background: color-mix(in srgb, var(--svc) 18%, transparent);
  transition: transform 0.28s var(--ease);
}
.svc-card:hover .svc-card__icon { transform: scale(1.08) rotate(-4deg); }
.svc-card__icon svg { width: 18px; height: 18px; }
.svc-card__title { font-size: 1.02rem; line-height: 1.25; color: #ffffff; margin: 0; }
.svc-card__title a { color: inherit; }
.svc-card__title a:hover { text-decoration: none; color: var(--svc); }
.svc-card__list { list-style: none; padding: 0; margin: 0 0 var(--space-4); display: grid; gap: 0.32rem; }
.svc-card__list li { position: relative; padding-left: 1.15rem; font-size: 0.86rem; color: rgba(255, 255, 255, 0.82); line-height: 1.42; }
.svc-card__list li::before {
  content: ""; position: absolute; left: 0.15rem; top: 0.3em;
  width: 0.32rem; height: 0.58rem; border: solid var(--svc);
  border-width: 0 1.7px 1.7px 0; transform: rotate(45deg);
}
.svc-card__more { margin-top: auto; font-size: 0.84rem; font-weight: 700; color: var(--svc); }
.svc-card__more:hover { text-decoration: none; opacity: 0.82; }
.svc-card__more span { display: inline-block; transition: transform 0.25s var(--ease); }
.svc-card:hover .svc-card__more span { transform: translateX(5px); }

/* ----- Meet our lawyer card ----- */
.lawyer-card { display: grid; grid-template-columns: 1fr; align-items: start; background: var(--ink); color: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); margin-top: var(--space-6); }
@media (min-width: 860px) { .lawyer-card { grid-template-columns: 1.35fr 0.85fr; } }
.lawyer-card__body { padding: clamp(1.5rem, 1rem + 3vw, 3rem); }
.lawyer-card__name { color: #fff; font-size: var(--fs-2xl); margin: 0; }
.lawyer-card__role { color: rgba(255,255,255,0.7); font-size: var(--fs-md); margin: 0.25rem 0 0; }
.lawyer-card__facts { list-style: none; padding: 0; margin: var(--space-5) 0 0; display: grid; gap: var(--space-3); }
.lawyer-card__facts li { display: flex; align-items: center; gap: 0.7rem; color: rgba(255,255,255,0.92); }
.lawyer-card__facts svg { flex: none; width: 19px; height: 19px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.lawyer-card__facts a { color: #fff; }
.lawyer-card__facts a:hover { color: var(--accent); text-decoration: none; }
.lawyer-card__bio { margin-top: var(--space-5); }
.lawyer-card__bio p { color: rgba(255,255,255,0.82); line-height: 1.65; margin: 0 0 var(--space-3); }
.lawyer-card__label { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.14em; color: rgba(255,255,255,0.55); font-weight: 700; margin: var(--space-5) 0 var(--space-3); }
.lawyer-card__text { color: rgba(255,255,255,0.9); margin: 0; }
.lawyer-card__chips { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.6rem; }
.lawyer-card__chips li { border: 1px solid rgba(255,255,255,0.22); background: rgba(255,255,255,0.05); border-radius: 8px; padding: 0.55rem 0.9rem; font-size: var(--fs-sm); font-weight: 600; text-align: center; }
.lawyer-card__social { display: flex; gap: 0.6rem; margin-top: var(--space-6); }
.lawyer-card__social-btn { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid rgba(255,255,255,0.25); border-radius: 10px; color: #fff; transition: background 0.2s var(--ease), border-color 0.2s var(--ease); }
.lawyer-card__social-btn:hover { background: var(--accent); border-color: var(--accent); }
.lawyer-card__social-btn svg { width: 22px; height: 22px; fill: currentColor; }
.lawyer-card__photo { background: #eef1f5; }
.lawyer-card__photo img { display: block; width: 100%; height: auto; }

/* ----- Navy band (used by the No Win, No Fee section) ----- */
.section--navy { background: var(--ink); color: #fff; }
.section--navy .section-head__title, .section--navy h2 { color: #fff; }
.section--navy p { color: rgba(255,255,255,0.9); max-width: 70ch; }
.section--navy p + p { margin-top: var(--space-4); }

.step-list { list-style: none; padding: 0; display: grid; gap: var(--space-4); }
.step-list li { display: flex; gap: var(--space-3); align-items: flex-start; }
.step__n { flex: none; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; }
.step-list h3 { font-size: var(--fs-base); color: var(--ink); margin-bottom: 2px; }
.step-list p { color: var(--text-muted); font-size: var(--fs-sm); margin: 0; }

.faqs { display: grid; gap: var(--space-2); }
.faq { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); padding: 0 var(--space-4); }
.faq summary { cursor: pointer; font-weight: 600; color: var(--ink); padding: var(--space-3) 1.6rem var(--space-3) 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
/* Plus/minus drawn as two bars rather than "+"/"-" glyphs, so the vertical bar
   can rotate away smoothly on open instead of the character snapping. */
.faq summary::before,
.faq summary::after {
  content: ""; position: absolute; right: 1px; top: 50%;
  width: 13px; height: 2px; border-radius: 2px; background: var(--accent);
  transition: transform 0.3s var(--ease);
}
.faq summary::before { transform: translateY(-50%); }
.faq summary::after  { transform: translateY(-50%) rotate(90deg); }
.faq[open] summary::after { transform: translateY(-50%) rotate(0deg); }
.faq { transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.faq:hover { border-color: var(--brand); }
.faq[open] { border-color: var(--brand); box-shadow: var(--shadow-sm); }
.faq summary { transition: color 0.2s var(--ease); }
.faq summary:hover { color: var(--accent); }
.faq p { color: var(--text-muted); font-size: var(--fs-sm); padding-bottom: var(--space-4); margin: 0; }

.page-note { margin-top: var(--space-6); padding: var(--space-4); background: var(--bg-tint); border-left: 3px solid var(--accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: var(--fs-sm); color: var(--text-muted); }

.page-aside { display: grid; gap: var(--space-4); position: sticky; top: calc(var(--header-h) + 12px); }
@media (max-width: 899px) { .page-aside { position: static; } }
.aside-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-5); box-shadow: var(--shadow-sm); }
.aside-card h2 { font-size: var(--fs-lg); margin-bottom: var(--space-2); }
.aside-card p { color: var(--text-muted); font-size: var(--fs-sm); margin-bottom: var(--space-3); }
.aside-card--cta { background: linear-gradient(155deg, #17324f, #0f2742); color: #fff; border-color: transparent; }
.aside-card--cta h2 { color: #fff; }
.aside-card--cta p { color: rgba(255,255,255,0.82); }
.aside-card__contact { margin-top: var(--space-3); margin-bottom: 0; }
.aside-card--cta .aside-card__contact a { color: var(--accent-soft); }
.related-list { list-style: none; padding: 0; display: grid; gap: var(--space-2); }
.related-list a { color: var(--brand); font-weight: 600; }

/* ============================================================================
   Booking page (calendar + slots)
   ============================================================================ */
.page-hero--book .availability { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.22); color: #fff; }
.booking { margin-block: clamp(2rem, 1.5rem + 3vw, 4rem); }
.booking__grid { display: grid; gap: var(--space-6); grid-template-columns: 1fr; }
@media (min-width: 820px) { .booking__grid { grid-template-columns: 1fr 1fr; gap: var(--space-7); } }
.booking__calendar, .booking__slots { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-5); box-shadow: var(--shadow-sm); }
.cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-4); }
.cal__title { font-size: var(--fs-lg); }
.cal__nav { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); color: var(--text); cursor: pointer; font-size: 1.1rem; }
.cal__nav:hover:not(:disabled) { background: var(--surface-2); }
.cal__nav:disabled { opacity: 0.35; cursor: not-allowed; }
.cal__dow { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 6px; }
.cal__dow span { text-align: center; font-size: var(--fs-xs); color: var(--text-muted); font-weight: 600; }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal__cell { aspect-ratio: 1; display: grid; place-items: center; border: 0; background: transparent; border-radius: 9px; font: inherit; font-weight: 600; color: var(--text); cursor: pointer; }
.cal__cell:hover:not(:disabled) { background: var(--surface-2); }
.cal__cell:disabled { color: var(--text-muted); opacity: 0.32; cursor: not-allowed; }
.cal__cell.is-empty { visibility: hidden; }
.cal__cell.is-selected { background: var(--brand); color: #fff; }
.cal__cell.is-today { box-shadow: inset 0 0 0 1.5px var(--accent); }
.cal__legend { margin-top: var(--space-4); font-size: var(--fs-xs); color: var(--text-muted); }
.booking__slots-title { font-size: var(--fs-lg); margin-bottom: var(--space-4); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: var(--space-2); }
.slots button { padding: 0.6rem 0.4rem; border: 1.5px solid var(--border); border-radius: var(--radius-sm); background: var(--bg); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
.slots button:hover { border-color: var(--brand); }
.slots button.is-selected { background: var(--brand); color: #fff; border-color: var(--brand); }
.slots button.is-taken { color: var(--text-muted); background: var(--surface-2); border-color: var(--border); border-style: dashed; text-decoration: line-through; cursor: not-allowed; opacity: 0.65; }
.slots button.is-taken:hover { border-color: var(--border); }

/* ----- Calculator tool (land transfer tax, etc.) ----- */
.calc { display: grid; gap: var(--space-6); grid-template-columns: 1fr; margin-top: var(--space-6); }
@media (min-width: 800px) { .calc { grid-template-columns: 1fr 1fr; align-items: start; } }
.calc__panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-6); box-shadow: var(--shadow-sm); }
.calc__field { margin-bottom: var(--space-4); }
.calc__field label { display: block; font-weight: 600; margin-bottom: var(--space-2); }
.calc__price { display: flex; align-items: center; border: 1.5px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.calc__price span { padding: 0 0.7rem; color: var(--text-muted); font-weight: 700; background: var(--surface-2); align-self: stretch; display: flex; align-items: center; }
.calc__price input { border: 0; padding: 0.7rem; font: inherit; font-weight: 600; width: 100%; background: var(--surface); color: var(--text); }
.calc__price input:focus { outline: none; }
.calc__check { display: flex; align-items: flex-start; gap: 0.6rem; margin-bottom: var(--space-3); font-weight: 500; cursor: pointer; }
.calc__check input { margin-top: 0.25rem; width: 18px; height: 18px; flex: none; accent-color: var(--accent); }
.calc__result { background: var(--brand); color: #fff; border-radius: var(--radius); padding: var(--space-6); }
.calc__result h3 { color: #fff; margin: 0 0 var(--space-4); font-size: var(--fs-md); }
.calc__rows { list-style: none; margin: 0; padding: 0; }
.calc__rows li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0; border-bottom: 1px solid rgba(255,255,255,0.14); }
.calc__rows li span:last-child { font-weight: 700; white-space: nowrap; }
.calc__rows li.calc__rebate span:last-child { color: #86efac; }
.calc__total { display: flex; justify-content: space-between; gap: 1rem; margin-top: var(--space-4); padding-top: var(--space-4); border-top: 2px solid rgba(255,255,255,0.35); font-size: var(--fs-lg); font-weight: 800; }
.calc__note { font-size: var(--fs-xs); color: rgba(255,255,255,0.8); margin: var(--space-4) 0 0; }
.calc__disclaimer { font-size: var(--fs-sm); color: var(--text-muted); margin-top: var(--space-4); }
.slots__empty { color: var(--text-muted); font-size: var(--fs-sm); grid-column: 1 / -1; }
.booking__details { border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(1.4rem, 1rem + 2vw, 2.2rem); margin-top: var(--space-6); box-shadow: var(--shadow-sm); }
.booking__details legend { font-weight: 700; color: var(--ink); font-size: var(--fs-lg); padding: 0 var(--space-2); }
.booking__chosen { color: var(--brand); font-weight: 600; margin-bottom: var(--space-4); }
.booking__fields { display: grid; gap: var(--space-3) var(--space-4); grid-template-columns: 1fr; }
@media (min-width: 620px) { .booking__fields { grid-template-columns: 1fr 1fr; } }
.booking__success { text-align: center; padding: var(--space-6); }
.booking__success svg { color: var(--ok); margin: 0 auto var(--space-3); }
.booking__success h2 { color: var(--ink); margin-bottom: var(--space-2); }
.booking__success p { color: var(--text-muted); margin-bottom: var(--space-3); }

/* ============================================================================
   Practice Areas dropdown (header nav)
   ============================================================================ */
.has-dropdown { position: relative; }
.nav-menu__toggle {
  font: inherit; font-weight: 600; font-size: 16.5px; color: var(--text); background: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 0.35rem; padding: 6px 0;
}
.nav-menu__toggle:hover { color: var(--accent); }
/* Below the desktop breakpoint the slide-down menu already lists the practice
   areas (.topnav__practice-m), so the Expertise dropdown would duplicate it. */
@media (max-width: 1024px) { .has-dropdown { display: none; } }
.nav-menu__toggle .caret { font-size: 0.7em; transition: transform 0.2s var(--ease); }
.has-dropdown:hover .nav-menu__toggle .caret,
.has-dropdown[data-open] .nav-menu__toggle .caret { transform: rotate(180deg); }
.dropdown {
  list-style: none; margin: 0; padding: 0.4rem; min-width: 224px;
  position: absolute; top: calc(100% + 10px); left: 0; z-index: 130;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s;
}
.has-dropdown:hover .dropdown,
.has-dropdown[data-open] .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 0.55rem 0.8rem; border-radius: var(--radius-sm); color: var(--text); font-weight: 500; }
.dropdown a::after { display: none; }
.dropdown a:hover { background: var(--surface-2); text-decoration: none; }

@media (max-width: 860px) {
  /* On mobile the dropdown becomes an inline accordion inside the slide-down menu */
  .nav-menu__toggle { width: 100%; justify-content: space-between; padding: 0.9rem 0; }
  .has-dropdown .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; background: transparent; min-width: 0;
    padding: 0 0 0.4rem 0.8rem; display: none;
  }
  .has-dropdown[data-open] .dropdown { display: block; }
  .dropdown a { padding: 0.7rem 0; }
}

/* ============================================================================
   Header book button + short site overview + footer map + small legal
   ============================================================================ */
.site-overview { background: var(--bg-tint); border-bottom: 1px solid var(--border); padding-block: clamp(1.25rem, 1rem + 1.5vw, 2rem); }
.site-overview p { max-width: 80ch; margin-inline: auto; text-align: center; color: var(--text-muted); font-size: var(--fs-base); }
.site-overview strong { color: var(--ink); }
.site-overview a { color: var(--brand); font-weight: 600; }

.site-footer__map { padding-bottom: var(--space-6); }
.site-footer__map iframe { width: 100%; height: clamp(200px, 22vw, 280px); border: 0; display: block; border-radius: var(--radius); box-shadow: var(--shadow); }

/* Short, small footer legal line (overrides the earlier two-column layout) */
.site-footer__legal { padding-block: var(--space-3); justify-content: center; text-align: center; }
.site-footer__legal p { font-size: 11px; color: rgba(255,255,255,0.42); max-width: none; }

/* ============================================================================
   Site-wide interaction layer
   Both elements below are injected by js/main.js, so every page gets them
   without touching 79 files of markup. Purely decorative: if JS never runs,
   nothing is missing from the page.
   ============================================================================ */

/* Reading-progress bar across the top of every page */
.scroll-progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 300;
  transform: scaleX(0); transform-origin: 0 50%; pointer-events: none;
  background: linear-gradient(90deg, var(--brand) 0%, var(--accent) 100%);
}

/* Back-to-top button, revealed once the visitor scrolls past a screenful */
.to-top {
  position: fixed; right: clamp(1rem, 2vw, 2rem); bottom: clamp(1rem, 2vw, 2rem);
  width: 46px; height: 46px; border: 0; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; z-index: 210;
  background: var(--brand); color: #fff; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease),
              visibility 0.3s var(--ease), background 0.2s var(--ease);
}
.to-top[data-visible] { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--accent); transform: translateY(-3px); }
.to-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Anchor targets clear the sticky header when jumped to */
html { scroll-padding-top: 6rem; }

/* Cards lift consistently across the site */
.aside-card, .kb-card, .related-list a {
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.aside-card:hover, .kb-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

@media (prefers-reduced-motion: reduce) {
  .scroll-progress { display: none; }
  .to-top, .svc-card, .svc-card__icon, .svc-card__more span,
  .faq summary::before, .faq summary::after { transition: none; }
  .svc-card:hover, .aside-card:hover, .kb-card:hover, .to-top:hover { transform: none; }
}
