/* Law Offices of Eric H. Hintz
   Type: Libre Caslon (headings) + Public Sans (text)
   Palette: Capitol navy, oxblood, granite */

@font-face { font-family: "Libre Caslon Display"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/caslon-display.woff2") format("woff2"); }
@font-face { font-family: "Libre Caslon Text"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/caslon-text.woff2") format("woff2"); }
@font-face { font-family: "Libre Caslon Text"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/caslon-text-italic.woff2") format("woff2"); }
@font-face { font-family: "Libre Caslon Text"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/caslon-text-bold.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/public-sans.woff2") format("woff2"); }

:root {
  --navy: #102446;
  --navy-deep: #0a1a33;
  --navy-soft: #1c3561;
  --red: #9b1c24;
  --red-dark: #7e151c;
  --paper: #ffffff;
  --granite: #eef1f5;
  --rule: #d6dce4;
  --ink: #1b2333;
  --muted: #4f596b;
  --on-navy: #ffffff;
  --on-navy-muted: #bac5d7;
  --focus: var(--navy);

  --font-display: "Libre Caslon Display", "Libre Caslon Text", Georgia, serif;
  --font-serif: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --font-sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5625rem;
  --step-3: clamp(1.75rem, 1.3rem + 1.6vw, 2.4rem);
  --step-4: clamp(2.2rem, 1.4rem + 3vw, 3.4rem);
  --step-5: clamp(2.6rem, 1.5rem + 4.2vw, 4.4rem);

  --wrap: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4rem, 8vw, 7.5rem);
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.15;
  color: var(--navy);
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-family: var(--font-display); font-size: var(--step-5); letter-spacing: -0.01em; }
h2 { font-size: var(--step-4); letter-spacing: -0.005em; }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p { margin: 0 0 1.1em; }
p, li { text-wrap: pretty; }

a { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--red-dark); text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

.dark { --focus: #ffffff; background: var(--navy); color: var(--on-navy); }
.dark h1, .dark h2, .dark h3, .dark h4 { color: var(--on-navy); }
.dark a:not(.btn) { color: var(--on-navy); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.measure { max-width: 68ch; }
.section { padding-block: var(--section); }
.section--granite { background: var(--granite); }

.visually-hidden {
  position: absolute !important; 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: 1rem; top: -100px; z-index: 100;
  background: var(--navy); color: #fff; padding: 0.75rem 1rem; border-radius: 4px;
}
.skip-link:focus { top: 1rem; color: #fff; }

.icon { width: 1.15em; height: 1.15em; flex: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 48px; padding: 0.75rem 1.4rem;
  font: 600 1rem/1.2 var(--font-sans); letter-spacing: 0.01em;
  text-decoration: none; border-radius: 3px; border: 1px solid transparent;
  cursor: pointer; transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-dark); color: #fff; }
.btn--ghost { border-color: currentColor; color: var(--navy); background: transparent; }
.btn--ghost:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.dark .btn--ghost { color: #fff; }
.dark .btn--ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(255, 255, 255, 0.9); backdrop-filter: saturate(1.4) blur(10px); }
}
.site-header.is-scrolled { border-bottom-color: var(--rule); box-shadow: 0 6px 24px -18px rgba(10, 26, 51, 0.5); }
.site-header__inner { display: flex; align-items: center; gap: 0.75rem; min-height: var(--header-h); }

.brand { min-width: 0; display: inline-flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--navy); margin-right: auto; }
.brand:hover { color: var(--navy); }
.brand__mark { width: 42px; height: 42px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--font-serif); font-size: 1.3rem; white-space: nowrap; }
.brand__sub { font-size: 0.8125rem; color: var(--muted); letter-spacing: 0.02em; }

.nav { display: none; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.25rem; }
.nav a {
  display: block; padding: 0.6rem 0.7rem; color: var(--ink); text-decoration: none;
  font-size: 0.9688rem; font-weight: 500; border-radius: 3px; white-space: nowrap;
}
.nav a:hover { color: var(--red); }
.nav a[aria-current="page"] { color: var(--red); box-shadow: inset 0 -2px 0 var(--red); border-radius: 0; }

.header-call { display: none; }
.header-call__label { font-weight: 400; opacity: 0.85; }

.menu-toggle {
  flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; padding: 0; background: none; border: 1px solid var(--rule);
  border-radius: 3px; color: var(--navy); cursor: pointer;
}
.call-compact {
  flex: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  min-height: 48px; padding: 0 1rem; background: var(--red); color: #fff;
  border-radius: 3px; text-decoration: none; font-weight: 600; font-size: 0.95rem;
}
.call-compact:hover { background: var(--red-dark); color: #fff; }

.mobile-nav {
  border-top: 1px solid var(--rule); background: var(--paper);
  max-height: calc(100vh - var(--header-h)); overflow-y: auto;
}
.mobile-nav[hidden] { display: none; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0.5rem 0 1rem; }
.mobile-nav ul a {
  display: block; padding: 0.85rem 0; color: var(--navy); text-decoration: none;
  font-family: var(--font-serif); font-size: 1.25rem; border-bottom: 1px solid var(--granite);
}
.mobile-nav ul a[aria-current="page"] { color: var(--red); }
.mobile-nav__contact { padding: 0 0 1.5rem; display: grid; gap: 0.75rem; }

@media (min-width: 560px) {
  .call-compact .call-compact__num { display: inline; }
}
.call-compact__num { display: none; }

@media (min-width: 1180px) {
  .site-header__inner { gap: 1.5rem; }
  .nav { display: block; }
  .menu-toggle, .call-compact, .mobile-nav { display: none !important; }
  .header-call { display: inline-flex; }
}

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--navy); }
.hero__grid { display: grid; gap: 2.5rem; padding-top: clamp(3rem, 7vw, 6rem); }
.hero__copy { padding-bottom: 1rem; }
.hero h1 { max-width: 14ch; margin-bottom: 0.5em; }
.hero__lede { font-size: var(--step-1); line-height: 1.55; color: var(--on-navy-muted); max-width: 40ch; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: center; }
.hero__alt { color: var(--on-navy-muted); font-size: 0.975rem; line-height: 1.45; }
.hero__alt a { font-weight: 600; white-space: nowrap; }
.hero__portrait { position: relative; align-self: end; justify-self: start; width: min(88%, 340px); }
@media (min-width: 880px) { .hero__portrait { width: min(100%, 420px); } }
.hero__portrait img { width: 100%; aspect-ratio: 5 / 7; object-fit: cover; }
.hero__portrait::before {
  content: ""; position: absolute; inset: 1.25rem -1.25rem auto auto; width: 100%; height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.28); pointer-events: none;
}
.hero__caption {
  position: absolute; left: 0; bottom: 0; right: 0; padding: 2.5rem 1.25rem 1rem;
  background: linear-gradient(to top, rgba(10, 26, 51, 0.92), rgba(10, 26, 51, 0));
  font-size: 0.875rem; color: var(--on-navy-muted); line-height: 1.4;
}
.hero__caption strong { display: block; color: #fff; font-family: var(--font-serif); font-weight: 400; font-size: 1.15rem; }

@media (min-width: 880px) {
  .hero__grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); align-items: end; gap: 4rem; }
  .hero__copy { padding-bottom: clamp(3rem, 7vw, 6rem); }
  .hero__portrait { justify-self: end; }
}

/* One orchestrated load sequence (hero only) */
@media (prefers-reduced-motion: no-preference) {
  .js .hero__copy > * { opacity: 0; transform: translateY(14px); animation: rise 0.8s var(--ease) forwards; }
  .js .hero__copy > :nth-child(2) { animation-delay: 0.12s; }
  .js .hero__copy > :nth-child(3) { animation-delay: 0.24s; }
  .js .hero__portrait { opacity: 0; animation: fade 1.1s var(--ease) 0.2s forwards; }
}
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes fade { to { opacity: 1; } }

/* Credentials ledger */
.ledger { background: var(--paper); border-bottom: 1px solid var(--rule); }
.ledger dl { display: grid; grid-template-columns: 1fr; margin: 0; }
.ledger dl > div { padding: 1.5rem 0; border-top: 1px solid var(--rule); }
.ledger dl > div:first-child { border-top: 0; }
.ledger dt { font-size: var(--step--1); color: var(--muted); margin-bottom: 0.25rem; }
.ledger dd { margin: 0; font-family: var(--font-serif); font-size: 1.35rem; color: var(--navy); line-height: 1.25; }
.ledger dd a { color: inherit; text-decoration: none; }
.ledger dd a:hover { color: var(--red); text-decoration: underline; }
@media (min-width: 640px) {
  .ledger dl { grid-template-columns: 1fr 1fr; }
  .ledger dl > div { padding: 1.75rem 1.5rem 1.75rem 0; }
  .ledger dl > div:nth-child(2) { border-top: 0; }
  .ledger dl > div:nth-child(even) { padding-left: 1.5rem; border-left: 1px solid var(--rule); }
}
@media (min-width: 1000px) {
  .ledger dl { grid-template-columns: repeat(4, 1fr); }
  .ledger dl > div { border-top: 0; padding: 2rem 1.5rem; border-left: 1px solid var(--rule); }
  .ledger dl > div:first-child { border-left: 0; padding-left: 0; }
}

/* Split blocks */
.split { display: grid; gap: clamp(2rem, 5vw, 4.5rem); }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .split--wide-left { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
}
.lede { font-size: var(--step-1); line-height: 1.6; color: var(--ink); }
.muted { color: var(--muted); }

.video {
  position: relative; aspect-ratio: 16 / 9; background: var(--navy-deep); overflow: hidden;
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__poster {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.9rem; width: 100%; border: 0; cursor: pointer; color: #fff; font: 500 1rem var(--font-sans);
  background: linear-gradient(rgba(10, 26, 51, 0.55), rgba(10, 26, 51, 0.8)), url("../img/sacramento-skyline.jpg") center / cover;
}
.video__play {
  width: 72px; height: 72px; border-radius: 50%; background: var(--red);
  display: grid; place-items: center; transition: transform 0.2s var(--ease), background-color 0.2s var(--ease);
}
.video__poster:hover .video__play { background: var(--red-dark); transform: scale(1.05); }
.video__note { font-size: var(--step--1); color: var(--muted); margin-top: 0.75rem; }

/* DMV deadline notice */
.deadline {
  display: grid; gap: 1.25rem; padding: clamp(1.75rem, 4vw, 2.75rem);
  background: var(--paper); border: 1px solid var(--rule); border-left: 4px solid var(--red);
}
.deadline__days { margin: 0; font-family: var(--font-display); font-size: clamp(3.5rem, 8vw, 5.5rem); line-height: 0.9; color: var(--red); }
.deadline__days span { display: block; font-family: var(--font-sans); font-size: 0.95rem; color: var(--muted); margin-top: 0.4rem; line-height: 1.3; }
.deadline h2 { font-size: var(--step-3); margin-bottom: 0.4em; }
.deadline p:last-child { margin-bottom: 0; }
@media (min-width: 760px) {
  .deadline { grid-template-columns: auto 1fr; gap: 2.5rem; align-items: center; }
}

/* Section heading row */
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem 2rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; max-width: 46ch; color: var(--muted); }

/* Practice index */
.practice-index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.practice-index li { border-bottom: 1px solid var(--rule); }
.practice-index a {
  display: grid; gap: 0.35rem; padding: 1.5rem 0; text-decoration: none; color: var(--ink);
}
.practice-index__name {
  font-family: var(--font-serif); font-size: var(--step-2); color: var(--navy); line-height: 1.2;
  display: flex; justify-content: space-between; gap: 1rem; align-items: baseline;
}
.practice-index__name svg { width: 22px; height: 22px; color: var(--red); flex: none; transition: transform 0.2s var(--ease); }
.practice-index__desc { color: var(--muted); max-width: 70ch; }
.practice-index a:hover .practice-index__name { color: var(--red); }
.practice-index a:hover svg { transform: translateX(4px); }
@media (min-width: 900px) {
  .practice-index a { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr) 24px; align-items: baseline; gap: 2rem; padding: 1.75rem 0; }
  .practice-index__name { display: block; }
  .practice-index__name svg { display: none; }
  .practice-index__arrow { display: block !important; width: 22px; height: 22px; color: var(--red); transition: transform 0.2s var(--ease); }
  .practice-index a:hover .practice-index__arrow { transform: translateX(4px); }
}
.practice-index__arrow { display: none; }

.also-handles { margin-top: 2.5rem; color: var(--muted); }
.also-handles strong { color: var(--ink); font-weight: 600; }
.tag-list { list-style: none; padding: 0; margin: 0.75rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag-list li { padding: 0.35rem 0.8rem; border: 1px solid var(--rule); border-radius: 999px; font-size: 0.9375rem; color: var(--ink); background: var(--paper); }

/* Docket (case results) */
.docket { list-style: none; margin: 0; padding: 0; }
.docket__item { padding: 2rem 0; border-top: 1px solid var(--rule); }
.docket__item:last-child { border-bottom: 1px solid var(--rule); }
.docket__item { display: grid; gap: 0.75rem; align-content: start; }
.docket__body { max-width: 68ch; }
@media (min-width: 900px) {
  .docket:not(.docket--grid) .docket__item { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 3rem; padding: 2.25rem 0; }
}
.docket__meta { margin: 0 0 0.35rem; font-size: var(--step--1); font-weight: 600; color: var(--muted); }
.docket__title { font-size: var(--step-2); margin: 0 0 0.4rem; }
.docket__body p { margin-bottom: 0.6rem; }
.docket__body p:last-child { margin-bottom: 0; }
.docket__outcome { display: inline-block; font-weight: 600; color: var(--red); }
@media (min-width: 900px) {
  .docket--grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 2.5rem; border-top: 1px solid var(--rule); }
  .docket--grid .docket__item { border-top: 0; border-bottom: 0; padding: 2rem 0 0; }
}
.disclaimer { font-size: var(--step--1); color: var(--muted); margin-top: 1.5rem; max-width: 70ch; }

/* Quotes */
.pullquote { margin: 0; max-width: 52rem; }
.pullquote blockquote { margin: 0; }
.pullquote p {
  font-family: var(--font-serif); font-style: italic; font-size: var(--step-3); line-height: 1.4; color: var(--navy);
}
.pullquote figcaption { font-size: 1rem; color: var(--muted); }
.pullquote figcaption::before { content: ""; display: inline-block; width: 2rem; height: 1px; background: var(--red); vertical-align: middle; margin-right: 0.75rem; }
.dark .pullquote p { color: #fff; }
.dark .pullquote figcaption { color: var(--on-navy-muted); }

.testimonials { display: grid; gap: 0; }
.testimonial { padding: 2.5rem 0; border-top: 1px solid var(--rule); }
.testimonial:last-child { border-bottom: 1px solid var(--rule); }

/* Page header (interior) */
.page-header { background: var(--navy); padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2.5rem, 6vw, 4.5rem); }
.page-header h1 { font-size: var(--step-5); max-width: 20ch; margin-bottom: 0.3em; }
.page-header p { color: var(--on-navy-muted); font-size: var(--step-1); max-width: 52ch; margin: 0; }
.breadcrumb { font-size: var(--step--1); margin-bottom: 1.5rem; color: var(--on-navy-muted); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 0.4rem; opacity: 0.6; }
.dark .breadcrumb a { color: var(--on-navy-muted); }
.dark .breadcrumb a:hover { color: #fff; }

/* Article layout with sidebar */
.layout { display: grid; gap: 3.5rem; }
@media (min-width: 980px) {
  .layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 5rem; }
}
.prose { max-width: 68ch; }
.prose h2 { font-size: var(--step-3); margin-top: 2.2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.25rem; margin: 0 0 1.25em; }
.prose li { margin-bottom: 0.45em; }
.prose li::marker { color: var(--red); }
.prose .lede { margin-bottom: 1.5em; }

.callout {
  margin: 2rem 0; padding: 1.5rem 1.75rem; background: var(--granite); border-left: 4px solid var(--red);
}
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--navy); }

.sidebar { display: grid; gap: 2rem; align-content: start; }
@media (min-width: 980px) { .sidebar { position: sticky; top: calc(var(--header-h) + 1.5rem); } }
.side-nav h2, .side-card h2 { font-size: 1.25rem; margin-bottom: 0.75rem; }
.side-nav ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.side-nav a {
  display: block; padding: 0.8rem 0; border-bottom: 1px solid var(--rule);
  color: var(--ink); text-decoration: none; font-weight: 500;
}
.side-nav a:hover { color: var(--red); }
.side-nav a[aria-current="page"] { color: var(--red); font-weight: 600; }
.side-card { padding: 1.75rem; }
.side-card p { color: var(--on-navy-muted); font-size: 0.975rem; }
.side-card .btn { width: 100%; margin-top: 0.5rem; }
.side-card__line { display: flex; flex-direction: column; margin-bottom: 0.75rem; }
.side-card__line span { font-size: var(--step--1); color: var(--on-navy-muted); }
.side-card__line a { font-family: var(--font-serif); font-size: 1.35rem; text-decoration: none; }
.side-card__line a:hover { text-decoration: underline; }

/* Portrait figure in prose */
.figure { margin: 0 0 2rem; }
.figure img { width: 100%; }
.figure figcaption { font-size: var(--step--1); color: var(--muted); margin-top: 0.6rem; }

/* About facts */
.facts { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--rule); }
.facts div { display: grid; gap: 0.2rem; padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.facts dt { font-size: var(--step--1); color: var(--muted); }
.facts dd { margin: 0; }
@media (min-width: 640px) { .facts div { grid-template-columns: 170px 1fr; gap: 1.5rem; } }

.link-list { list-style: none; padding: 0; margin: 0; }
.link-list li { padding: 0.6rem 0; border-bottom: 1px solid var(--rule); }

/* FAQ accordions */
.faq-group + .faq-group { margin-top: 3.5rem; }
.faq-group > h2 { font-size: var(--step-3); }
.faq-group > p { color: var(--muted); max-width: 68ch; }
.accordion { border-top: 1px solid var(--rule); }
.accordion details { border-bottom: 1px solid var(--rule); }
.accordion summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 1.25rem 0; cursor: pointer; list-style: none;
  font-family: var(--font-serif); font-size: 1.2rem; color: var(--navy); line-height: 1.35;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary:hover { color: var(--red); }
.accordion__icon {
  position: relative; width: 18px; height: 18px; flex: none; color: var(--red);
}
.accordion__icon::before, .accordion__icon::after {
  content: ""; position: absolute; left: 0; top: 8px; width: 18px; height: 2px; background: currentColor;
  transition: transform 0.25s var(--ease);
}
.accordion__icon::after { transform: rotate(90deg); }
.accordion details[open] .accordion__icon::after { transform: rotate(0deg); }
.accordion__body { padding: 0 0 1.5rem; max-width: 68ch; }
.accordion__body ul { padding-left: 1.25rem; }
.accordion__body li::marker { color: var(--red); }
@media (prefers-reduced-motion: no-preference) {
  .accordion details[open] .accordion__body { animation: reveal 0.3s var(--ease); }
}
@keyframes reveal { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.faq-tools { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2.5rem; }
.faq-tools a { padding: 0.5rem 1rem; border: 1px solid var(--rule); border-radius: 999px; text-decoration: none; color: var(--ink); font-size: 0.95rem; }
.faq-tools a:hover { border-color: var(--navy); color: var(--navy); }

/* Contact */
.contact-grid { display: grid; gap: 3rem; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 5rem; } }

.form { display: grid; gap: 1.25rem; }
.form__row { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.4rem; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field label span { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: 0.75rem 0.9rem; font: inherit; color: var(--ink);
  background: #fff; border: 1px solid #7a8496; border-radius: 3px;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--navy); outline-offset: 1px; border-color: var(--navy); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--red); }
.field__error { color: var(--red); font-size: 0.9rem; min-height: 0; }
.field__error:empty { display: none; }
.form__note {
  padding: 1rem 1.15rem; border: 1px dashed var(--red); background: #fbf3f3; font-size: 0.9375rem; color: var(--ink);
}
.form__note strong { color: var(--red); }
.form__fine { font-size: var(--step--1); color: var(--muted); margin: 0; }
.form__status { padding: 1rem 1.15rem; background: var(--granite); border-left: 4px solid var(--navy); }
.form__status[hidden] { display: none; }

.dark .field input, .dark .field textarea { border-color: transparent; }
.dark .field label span { color: var(--on-navy-muted); }
.dark .field__error { color: #ffb3b8; }
.dark .form__note { background: rgba(255,255,255,0.06); border-color: #e48a90; color: #fff; }
.dark .form__note strong { color: #ffb3b8; }
.dark .form__fine { color: var(--on-navy-muted); }
.dark .form__status { background: rgba(255,255,255,0.08); color: #fff; border-left-color: #fff; }
.dark .field input:focus-visible, .dark .field textarea:focus-visible { outline-color: #fff; }

.contact-lines { display: grid; gap: 1.5rem; margin-bottom: 2rem; }
.contact-line { display: grid; grid-template-columns: 24px 1fr; gap: 0.9rem; align-items: start; }
.contact-line svg { width: 22px; height: 22px; color: var(--red); margin-top: 0.2rem; }
.contact-line span { display: block; font-size: var(--step--1); color: var(--muted); }
.contact-line a, .contact-line address { font-family: var(--font-serif); font-size: 1.3rem; font-style: normal; color: var(--navy); text-decoration: none; line-height: 1.35; }
.contact-line a:hover { color: var(--red); text-decoration: underline; }

.map { aspect-ratio: 4 / 3; background: var(--granite); border: 1px solid var(--rule); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-links { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; }

/* Office band */
.office-band { display: grid; background: var(--navy); color: #fff; --focus: #fff; }
.office-band__img { display: block; min-height: 280px; position: relative; }
.office-band__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.office-band__copy { padding: clamp(2.5rem, 6vw, 5rem) var(--gutter); max-width: 640px; }
.office-band h2 { color: #fff; font-size: var(--step-4); }
.office-band p { color: var(--on-navy-muted); }
.office-band address { font-style: normal; font-family: var(--font-serif); font-size: 1.4rem; line-height: 1.45; margin-bottom: 1.5rem; color: #fff; }
.office-band__phones { display: grid; gap: 0.25rem; margin-bottom: 2rem; }
.office-band__phones a { color: #fff; font-weight: 600; }
.office-band__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
@media (min-width: 900px) {
  .office-band { grid-template-columns: 1fr 1fr; }
  .office-band__img { min-height: 100%; }
  .office-band__copy { padding-left: clamp(2.5rem, 5vw, 5rem); }
}

/* Footer */
.site-footer { background: var(--navy-deep); color: var(--on-navy-muted); font-size: 0.95rem; --focus: #fff; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-grid { display: grid; gap: 2.5rem; padding-block: clamp(3rem, 6vw, 4.5rem); }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand .brand { color: #fff; margin-bottom: 1rem; }
.footer-brand .brand__sub { color: var(--on-navy-muted); }
.footer-brand p { max-width: 36ch; }
.site-footer h2 { font-family: var(--font-sans); font-size: 0.95rem; font-weight: 600; color: #fff; margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.site-footer address { font-style: normal; margin-bottom: 1rem; }
.social { display: flex; gap: 0.6rem; margin-top: 1.25rem; }
.social a {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3); transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.social a:hover { background: var(--red); border-color: var(--red); }
.social svg { width: 18px; height: 18px; }
.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.12); padding-block: 1.5rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem; font-size: 0.875rem;
}
.footer-legal ul { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.footer-legal p { margin: 0; }
.footer-disclaimer { font-size: 0.8125rem; max-width: 90ch; padding-bottom: 2rem; margin: 0; opacity: 0.85; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media (max-width: 360px) {
  .brand__mark { width: 36px; height: 36px; }
  .brand__name { font-size: 1.1rem; }
  .call-compact { padding: 0 0.75rem; }
}

/* Facts list stacks when it sits in the narrow sidebar */
.sidebar .facts div { grid-template-columns: 1fr; gap: 0.2rem; }
.prose .link-list { padding-left: 0; }

/* Long-form pages: one body style throughout (no oversized first paragraph) */
.prose .lede { font-size: inherit; line-height: inherit; color: inherit; margin-bottom: 1.1em; }
.prose > ul:not(.link-list) li { margin-bottom: 0.45em; }
.facts dd { color: var(--ink); }
.facts dd a { color: inherit; text-decoration: none; }
.facts dd a:hover { color: var(--red); text-decoration: underline; }
.prose img[src*="awards"], .prose img[src^="data:image/png"] { margin: 0.5rem 0 1rem; }


/* ---------- UI round 2 ---------- */

/* Page transitions (multi-page, supporting browsers) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.22s; }

/* Practice cards */
.practice-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .practice-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .practice-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.practice-card a {
  display: flex; flex-direction: column; height: 100%; padding: 1.75rem; gap: 0.6rem;
  background: var(--paper); border: 1px solid var(--rule); border-radius: 4px;
  color: var(--ink); text-decoration: none;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s var(--ease);
}
.practice-card a:hover { transform: translateY(-4px); border-color: #c3cbd6; box-shadow: 0 18px 36px -22px rgba(10, 26, 51, 0.45); color: var(--ink); }
.practice-card__icon { width: 44px; height: 44px; color: var(--red); margin-bottom: 0.4rem; }
.practice-card__name { font-size: 1.4rem; margin: 0; line-height: 1.25; }
.practice-card a:hover .practice-card__name { color: var(--red); }
.practice-card__desc { color: var(--muted); margin: 0; flex: 1; }
.practice-card__more { margin-top: 0.5rem; font-weight: 600; color: var(--red); font-size: 0.95rem; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }

/* Steps (a real sequence, so numbered) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1050px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.5rem; } }
.step { border-top: 2px solid var(--navy); padding-top: 1.25rem; }
.step__num { display: block; font-family: var(--font-display); font-size: 2.75rem; line-height: 1; color: var(--red); margin-bottom: 0.9rem; }
.step h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.step p { color: var(--muted); margin: 0; }

/* Testimonial rotator */
.quotes { max-width: 56rem; }
.quote { margin: 0; }
.quote blockquote { margin: 0; }
.quote p { font-family: var(--font-serif); font-style: italic; font-size: var(--step-3); line-height: 1.4; color: var(--navy); margin-bottom: 1.25rem; }
.quote figcaption { color: var(--muted); }
.quote figcaption::before { content: ""; display: inline-block; width: 2rem; height: 1px; background: var(--red); vertical-align: middle; margin-right: 0.75rem; }
.js .quotes__slides { display: grid; }
.js .quote { grid-area: 1 / 1; }
.js .quote:not(.is-active) { visibility: hidden; }
@media (prefers-reduced-motion: no-preference) { .js .quote.is-entering { animation: fade 0.45s var(--ease); } }
.quotes__controls { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 0.75rem; margin-top: 2rem; }
html:not(.js) .quotes__btn, html:not(.js) .quotes__count { display: none; }
.quotes__btn {
  width: 44px; height: 44px; display: inline-grid; place-items: center; padding: 0; cursor: pointer;
  border: 1px solid var(--rule); border-radius: 50%; background: var(--paper); color: var(--navy);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.quotes__btn:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.quotes__btn svg { width: 18px; height: 18px; }
.quotes__count { min-width: 3.5rem; text-align: center; font-size: 0.95rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.quotes__all { margin-left: auto; font-weight: 600; }

/* Testimonials page: pull quote + full text */
.testimonial { display: grid; gap: 1.25rem; padding: 2.5rem 0; }
.testimonial__pull { font-family: var(--font-serif); font-style: italic; font-size: var(--step-3); line-height: 1.3; color: var(--navy); margin: 0 0 0.75rem; }
.testimonial__who { margin: 0; font-weight: 600; color: var(--ink); }
.testimonial__who::before { content: ""; display: inline-block; width: 2rem; height: 1px; background: var(--red); vertical-align: middle; margin-right: 0.75rem; }
.testimonial__full { margin: 0; max-width: 68ch; }
.testimonial__full p { margin-bottom: 1em; }
.testimonial__full p:last-child { margin-bottom: 0; }
@media (min-width: 900px) { .testimonial { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 3.5rem; } }

/* Closing band */
.cta-band { background: var(--granite); border-top: 1px solid var(--rule); padding-block: clamp(3rem, 6vw, 4.5rem); }
.cta-band__inner { display: grid; gap: 1.5rem; align-items: center; }
.cta-band h2 { font-size: var(--step-4); margin-bottom: 0.3em; }
.cta-band p { margin: 0; color: var(--muted); max-width: 46ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
@media (min-width: 900px) { .cta-band__inner { grid-template-columns: 1fr auto; gap: 3rem; } }

/* Office band buttons sit on navy */
.office-band .btn--ghost { color: #fff; }
.office-band .btn--ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }

/* Badges */
.badges { display: flex; flex-wrap: wrap; gap: 1rem; margin: 0.5rem 0 1.5rem; }
.badge {
  display: inline-flex; align-items: center; gap: 1rem; padding: 0.85rem 1.25rem 0.85rem 0.85rem;
  border: 1px solid var(--rule); border-radius: 4px; background: var(--paper); color: var(--ink); text-decoration: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.badge:hover { color: var(--ink); border-color: #c3cbd6; box-shadow: 0 12px 26px -20px rgba(10, 26, 51, 0.5); }
.badge img { width: 64px; height: auto; margin: 0 !important; }
.badge strong { display: block; font-weight: 600; line-height: 1.3; }
.badge span span { display: block; font-size: 0.9rem; color: var(--muted); line-height: 1.3; }
.badge__score {
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 4px;
  background: var(--navy); color: #fff; font-family: var(--font-display); font-size: 1.7rem; line-height: 1;
}

/* Office details placeholder (contact) */
.office-details { margin: 2rem 0; }
.office-details h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }
.office-details__note { font-size: 0.9375rem; padding: 0.75rem 1rem; border: 1px dashed var(--red); background: #fbf3f3; }
.office-details__note strong { color: var(--red); }
.office-details dl { margin: 0; border-top: 1px solid var(--rule); }
.office-details dl div { display: grid; grid-template-columns: 160px 1fr; gap: 1rem; padding: 0.75rem 0; border-bottom: 1px solid var(--rule); }
.office-details dt { color: var(--muted); font-size: 0.95rem; }
.office-details dd { margin: 0; }
.placeholder { color: var(--muted); font-style: italic; }

/* Mobile call/text bar */
.action-bar { display: none; }
@media (max-width: 759px) {
  .action-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: 1fr 1fr;
    background: var(--navy); box-shadow: 0 -8px 24px -12px rgba(10, 26, 51, 0.45);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .action-bar a {
    display: flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 56px;
    color: #fff; font-weight: 600; text-decoration: none;
  }
  .action-bar__call { background: var(--red); }
  .action-bar a:focus-visible { outline-color: #fff; outline-offset: -4px; }
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
  body.menu-open .action-bar { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  .practice-card a:hover { transform: none; }
}

/* Phone numbers never break mid-number */
a[href^="tel:"], a[href^="sms:"] { white-space: nowrap; }

/* The bottom bar handles calls on phones */
@media (max-width: 759px) { .call-compact { display: none; } }

.deadline__days .deadline__num { display: inline; font: inherit; color: inherit; margin: 0; }

/* Spam trap: hidden from people, visible to bots */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
