/* ==========================================================================
   Matlin Injury Law — Landing Page Styles
   ========================================================================== */
:root {
  --navy-900: #0a142e;
  --navy-800: #0d1b3e;
  --navy-700: #142450;
  --navy-600: #1d2f61;
  --navy-line: #26386e;
  --gold: #f2c14e;
  --gold-dark: #dfa92e;
  --signal: #b84a43;
  --sky: #e7eefc;
  --ink: #17203a;
  --muted: #5c6579;
  --light: #f6f7fa;
  --white: #ffffff;
  --on-navy-muted: #aab6d4;
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius: 8px;
  --radius-lg: 14px;
  --container: 1160px;
  --shadow: 0 12px 32px rgba(10, 20, 46, 0.12);
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
  --space-section: clamp(64px, 9vw, 104px);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
section[id] {
  scroll-margin-top: 90px;
}
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
::selection {
  background: var(--gold);
  color: var(--navy-900);
}
:focus-visible {
  outline: 2px solid var(--gold-dark);
  outline-offset: 3px;
  border-radius: 2px;
}
.site-header :focus-visible,
.site-footer :focus-visible,
.hero-stage :focus-visible,
.inner-hero :focus-visible,
.locations :focus-visible,
.testimonials :focus-visible,
.contact :focus-visible,
.page-cta :focus-visible,
.mobile-cta :focus-visible {
  outline-color: var(--gold);
}
/* ---------- Shared elements ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.btn svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}
.btn-gold {
  background: var(--gold);
  color: var(--navy-900);
}
.btn-gold:hover {
  background: var(--gold-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(242, 193, 78, 0.25);
}
.btn:active {
  transform: translateY(0);
  transition-duration: 0.05s;
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.btn-small {
  padding: 10px 20px;
  font-size: 13px;
}
.btn-block {
  width: 100%;
}
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow.centered {
  text-align: center;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 600;
  text-align: center;
  color: var(--navy-800);
  letter-spacing: 0.02em;
}
h1,
h2,
.section-title {
  text-wrap: balance;
}
.section-title.light {
  color: var(--white);
}
.section-title.gold-text {
  color: var(--gold);
}
.section-title.underlined::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  background: var(--gold);
  margin: 14px auto 0;
}
.learn-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-dark);
}
.learn-more:hover {
  text-decoration: underline;
}
.learn-more span[aria-hidden] {
  display: inline-block;
  transition: transform 0.2s var(--ease);
}
.learn-more:hover span[aria-hidden],
.practice-card:hover .learn-more span[aria-hidden],
.location:hover .learn-more span[aria-hidden] {
  transform: translateX(3px);
}
.stars {
  color: var(--gold);
  letter-spacing: 2px;
}
.google-g {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}
/* ---------- Header ---------- */
.site-header {
  background: var(--navy-900);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 76px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
}
.logo-image {
  width: 188px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}
.logo-mark {
  width: 38px;
  height: 38px;
}
.logo-text {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.05;
  display: flex;
  flex-direction: column;
}
.logo-text small {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.34em;
  color: var(--white);
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: var(--font-body);
  color: var(--white);
  font-size: 13.5px;
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav-link:hover,
.nav-link[aria-current="page"],
.nav-item.is-active-section>.nav-link {
  color: var(--gold);
}
.nav-item {
  position: relative;
}
.chevron {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
  transition: transform 0.2s var(--ease);
}
.nav-item.is-open .chevron {
  transform: rotate(180deg);
}
.dropdown {
  position: absolute;
  top: 100%;
  left: -12px;
  min-width: 250px;
  padding: 8px;
  margin-top: 14px;
  background: var(--navy-800);
  border: 1px solid var(--navy-line);
  border-radius: 10px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s;
  z-index: 60;
}
.dropdown::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}
.nav-item.is-open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.dropdown a {
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--white);
  transition: background 0.15s ease, color 0.15s ease;
}
.dropdown a:hover {
  background: var(--navy-700);
  color: var(--gold);
}
.dropdown a[aria-current="page"] {
  color: var(--gold);
}
.dropdown .dropdown-all {
  border-top: 1px solid var(--navy-line);
  margin-top: 6px;
  padding-top: 12px;
  color: var(--gold);
  font-weight: 600;
}
.header-phone {
  white-space: nowrap;
  padding-left: 18px;
  padding-right: 18px;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  margin-left: auto;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
/* ---------- Hero ---------- */
/* One painted stage behind hero + cities strip + stats: the sections above it
   are transparent windows, so their colors can never drift apart. */
.hero-stage {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 620px at 12% -10%, rgba(29, 47, 97, 0.5), transparent 62%),
    var(--navy-900);
}
.hero {
  background: none;
  color: var(--white);
}
/* Film-grain dither on every navy surface: kills gradient banding and gives
   the flat navy a printed texture. Sits above backgrounds, invisible on text. */
.hero-stage::after,
.inner-hero::after,
.locations::after,
.testimonials::after,
.contact::after,
.page-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  background-size: 180px 180px;
  opacity: 0.04;
  pointer-events: none;
  z-index: 3;
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: end;
  gap: 40px;
  padding-top: 64px;
}
.hero-copy {
  padding-bottom: 72px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.4vw, 58px);
  font-weight: 600;
  line-height: 1.12;
  margin: 18px 0 20px;
}
.hero h1 .accent {
  color: var(--gold);
  font-style: italic;
}
.hero-sub {
  max-width: 46ch;
  color: var(--on-navy-muted);
  font-size: 17px;
  margin-bottom: 32px;
}
.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.hero-proof span {
  color: var(--white);
  font-size: 12.5px;
  font-weight: 700;
  padding: 7px 10px;
  border: 1px solid rgba(242, 193, 78, 0.28);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.hero-photo {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  align-self: end;
}
/* Signature arch: a courthouse-doorway line the figure breaks out of.
   The top edge crosses behind the shoulders so head + shoulders rise above it. */
.hero-photo::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(112%, 448px);
  height: 66%;
  border: 1px solid rgba(242, 193, 78, 0.38);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg,
      rgba(20, 36, 80, 0) 0%,
      rgba(20, 36, 80, 0.5) 55%,
      rgba(29, 47, 97, 0.75) 100%);
  outline: 1px solid rgba(242, 193, 78, 0.12);
  outline-offset: 14px;
}
/* Single light source at the arch base; overshoots the hero's bottom edge so
   it dissipates inside the cities strip instead of stopping at a seam. */
.hero-photo::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -14%;
  transform: translateX(-50%);
  width: 140%;
  height: 58%;
  background: radial-gradient(closest-side, rgba(242, 193, 78, 0.16), transparent 70%);
  pointer-events: none;
}
.hero-portrait {
  position: relative;
  width: min(100%, 400px);
  aspect-ratio: 8 / 13;
  z-index: 1;
}
.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.35));
}
.hero-attorney {
  position: absolute;
  left: -14px;
  bottom: 68px;
  z-index: 2;
  background: rgba(10, 20, 46, 0.82);
  border-left: 3px solid var(--gold);
  padding: 11px 18px 11px 15px;
  border-radius: 0 8px 8px 0;
  backdrop-filter: blur(6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}
.hero-attorney strong {
  display: block;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-attorney span {
  font-size: 12.5px;
  color: var(--on-navy-muted);
}
.hero-cities {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.cities-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.city-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--white);
  transition: color 0.2s ease;
}
.city-pill svg {
  width: 14px;
  height: 14px;
  color: var(--gold);
}
.city-pill:hover {
  color: var(--gold);
}
/* ---------- Stats bar ---------- */
.stats {
  position: relative;
  background: linear-gradient(180deg, transparent 90px, var(--white) 90px);
}
.stats-card {
  position: relative;
  z-index: 4;
  background: var(--white);
  border: 1px solid #e6e9f0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 30px 16px;
}
.stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 2px;
  padding: 6px 20px;
}
.stat+.stat {
  border-left: 1px solid #e6e9f0;
}
.stat-google {
  flex-direction: row;
  gap: 14px;
  text-align: left;
}
.stat-google>div {
  display: flex;
  flex-direction: column;
}
.stat-title {
  font-size: 21px;
  font-weight: 700;
  color: var(--navy-800);
  line-height: 1.25;
}
.stat-sub {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.4;
}
/* ---------- Practice areas ---------- */
.practice {
  padding: var(--space-section) 0;
  background: var(--white);
}
.practice-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-top: 44px;
}
.practice-grid-car {
  grid-template-columns: repeat(4, 1fr);
}
.practice-card {
  background: var(--white);
  border: 1px solid #e6e9f0;
  border-radius: var(--radius);
  padding: 30px 18px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.practice-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
  border-color: var(--gold);
}
.practice-icon {
  width: 52px;
  height: 52px;
  color: var(--navy-700);
  transition: color 0.2s ease;
}
.practice-card:hover .practice-icon {
  color: var(--gold-dark);
}
.practice-card h3 {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--navy-800);
  line-height: 1.3;
}
.practice-card p {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
}
.practice-card .learn-more {
  margin-top: auto;
}
/* ---------- Practice areas page ---------- */
.practice-areas {
  padding: var(--space-section) 0;
  background: #f4f6fa;
}
.practice-areas .section-title {
  text-align: center;
}
.pa-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 44px;
}
.pa-card {
  background: var(--white);
  border: 1px solid #e6e9f0;
  border-radius: var(--radius);
  padding: 24px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.pa-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
  border-color: var(--gold);
}
.pa-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pa-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  color: var(--gold-dark);
  background: rgba(242, 193, 78, 0.16);
  border-radius: 50%;
  padding: 8px;
}
.pa-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy-800);
  line-height: 1.3;
}
.pa-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.pa-list li {
  position: relative;
  padding-left: 16px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
}
.pa-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}
/* ---------- Locations ---------- */
.locations {
  position: relative;
  background:
    radial-gradient(ellipse 100% 70% at 50% 115%, rgba(242, 193, 78, 0.08), transparent 60%),
    var(--navy-800);
  padding: var(--space-section) 0;
}
.locations .section-title {
  margin-top: 10px;
}
.locations-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 26px;
  margin-top: 48px;
}
.locations-grid-featured {
  grid-template-columns: repeat(4, 1fr);
}
.location h3 {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
}
.location h3 svg {
  width: 15px;
  height: 15px;
  color: var(--gold);
  flex-shrink: 0;
}
.location p {
  font-size: 13px;
  color: var(--on-navy-muted);
  margin-bottom: 12px;
}
.location .learn-more {
  color: var(--gold);
}
.locations-hours-note {
  text-align: center;
  color: var(--on-navy-muted);
  font-size: 16px;
  max-width: 620px;
  margin: 14px auto 0;
}
.offices-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 48px;
}
.office {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}
.office-map {
  position: relative;
  aspect-ratio: 4 / 3;
  background: rgba(255, 255, 255, 0.06);
}
.office-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  pointer-events: none;
}
.office-map-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.office-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 22px;
}
.office h3 {
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
}
.office address {
  font-style: normal;
  font-size: 15px;
  line-height: 1.6;
  color: var(--on-navy-muted);
}
@media (max-width: 720px) {
  .offices-grid {
    grid-template-columns: 1fr;
  }
}
/* ---------- Why choose ---------- */
.why {
  padding: var(--space-section) 0;
  background: var(--white);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 48px;
}
.why-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  padding: 10px 28px;
}
.why-item+.why-item {
  border-left: 1px dashed #d8dce6;
}
.why-icon {
  width: 56px;
  height: 56px;
  color: var(--navy-700);
}
.why-item h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy-800);
  line-height: 1.45;
}
/* ---------- Testimonials ---------- */
.testimonials {
  position: relative;
  background: var(--navy-800);
  padding: 64px 0 56px;
}
.testimonials-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  margin-top: 42px;
  align-items: stretch;
}
.rating-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
}
.rating-score {
  font-size: 34px;
  font-weight: 700;
  color: var(--navy-800);
  line-height: 1;
  margin-top: 6px;
}
.rating-card .stars {
  font-size: 18px;
}
.rating-count {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 10px;
}
.testimonial-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--navy-700);
  border: 1px solid var(--navy-line);
  border-radius: var(--radius);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.quote-mark {
  width: 26px;
  height: 20px;
  color: var(--gold);
  opacity: 0.9;
}
.testimonial-card p {
  color: #dbe2f2;
  font-size: 14.5px;
  flex-grow: 1;
}
.testimonial-card cite {
  font-style: normal;
  font-weight: 600;
  font-size: 13.5px;
  color: var(--gold);
}
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}
.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.dot.is-active {
  background: var(--gold);
  transform: scale(1.2);
}
/* ---------- Contact CTA ---------- */
.contact {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  background: var(--navy-900);
  color: var(--white);
}
.contact-photo {
  position: relative;
  min-height: 320px;
}
.contact-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.contact-body {
  padding: 64px 48px;
  align-items: center;
}
.contact .contact-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.8vw, 34px);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 14px;
  color: var(--white);
}
/* Contact block embedded inside an article column (contact page) stacks */
.article-main .contact {
  grid-template-columns: 1fr;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 26px;
}
.article-main .contact-photo {
  min-height: 220px;
}
.article-main .contact-body {
  grid-template-columns: 1fr;
  gap: 32px;
  padding: 40px 32px;
}
.contact-copy>p {
  color: var(--on-navy-muted);
  font-size: 15px;
  margin-bottom: 26px;
}
.contact-details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-details li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  font-weight: 600;
}
.contact-details svg {
  width: 19px;
  height: 19px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-details a:hover {
  color: var(--gold);
}
.contact-copy .btn {
  margin-top: 32px;
  margin-bottom: 20px;
}
.contact-note {
  margin-top: 0;
  font-size: 12.5px;
  color: var(--on-navy-muted);
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--white);
  background: var(--navy-700);
  border: 1px solid var(--navy-line);
  border-radius: 6px;
  padding: 14px 16px;
  transition: border-color 0.2s ease;
  resize: vertical;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #8b98bd;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--gold);
}
.contact-form input:focus:not(:focus-visible),
.contact-form textarea:focus:not(:focus-visible) {
  outline: none;
}
.contact-form .btn {
  border-radius: 6px;
  margin-top: 4px;
}
.form-note {
  text-align: center;
  font-size: 12.5px;
  color: var(--on-navy-muted);
}
/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--on-navy-muted);
}
.footer-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 28px 0;
}
.footer-bar .logo {
  justify-self: start;
}
.footer-copyright {
  justify-self: center;
  text-align: center;
  font-size: 12.5px;
  margin: 0;
}
.footer-social {
  display: flex;
  gap: 14px;
  justify-self: end;
}
.footer-social a {
  color: var(--white);
  transition: color 0.2s ease;
}
.footer-social a:hover {
  color: var(--gold);
}
.footer-social svg {
  width: 24px;
  height: 24px;
}
/* ---------- Car-focused homepage section ---------- */
.car-focus {
  background: linear-gradient(180deg, #fbfcff 0%, var(--sky) 100%);
  padding: var(--space-section) 0;
}
.split-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 56px;
  align-items: start;
}
.split-feature h2 {
  font-family: var(--font-display);
  font-size: clamp(29px, 3.7vw, 44px);
  line-height: 1.15;
  font-weight: 600;
  color: var(--navy-800);
  margin-top: 12px;
}
.focus-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.focus-grid>div {
  background: var(--white);
  border: 1px solid #dce3f3;
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 10px 26px rgba(10, 20, 46, 0.08);
}
.focus-grid h3 {
  color: var(--navy-800);
  font-size: 15px;
  margin-bottom: 8px;
}
.focus-grid p {
  color: var(--muted);
  font-size: 14px;
}
/* ---------- Internal pages ---------- */
.inner-hero {
  position: relative;
  background:
    radial-gradient(ellipse 90% 70% at 90% 10%, rgba(242, 193, 78, 0.14), transparent 58%),
    var(--navy-900);
  color: var(--white);
  padding: 54px 0 62px;
  overflow: hidden;
}
.inner-hero-alert {
  background:
    radial-gradient(ellipse 85% 60% at 88% 10%, rgba(184, 74, 67, 0.22), transparent 58%),
    var(--navy-900);
}
.inner-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.96fr);
  gap: 44px;
  align-items: center;
}
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 28px;
  color: var(--on-navy-muted);
  font-size: 13px;
}
.breadcrumbs a {
  color: var(--white);
  transition: color 0.2s ease;
}
.breadcrumbs a:hover {
  color: var(--gold);
}
.breadcrumbs a::after {
  content: "/";
  color: rgba(255, 255, 255, 0.38);
  margin-left: 8px;
}
.inner-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.8vw, 56px);
  font-weight: 600;
  line-height: 1.12;
  max-width: 12.5em;
  margin: 16px 0 18px;
}
.inner-hero p {
  color: #d6def2;
  font-size: 17px;
  max-width: 58ch;
  margin-bottom: 20px;
}
.inner-hero-media {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.25);
}
.inner-hero-media img {
  width: 100%;
  height: 100%;
  min-height: 330px;
  object-fit: cover;
}
.content-section {
  background: var(--white);
  padding: var(--space-section) 0;
}
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 54px;
  align-items: start;
}
.article-main {
  max-width: 760px;
}
.article-main .lead {
  font-size: 19px;
  line-height: 1.7;
  color: var(--ink);
  padding-bottom: 30px;
  border-bottom: 1px solid #e6e9f0;
  margin-bottom: 34px;
}
.article-main h2 {
  font-family: var(--font-display);
  color: var(--navy-800);
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.2;
  font-weight: 600;
  margin: 38px 0 14px;
}
.article-main h3 {
  color: var(--navy-800);
  font-size: 17px;
  font-weight: 700;
  margin: 26px 0 10px;
}
.article-main p {
  color: var(--muted);
  margin-bottom: 17px;
}
.process-grid,
.feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0 30px;
}
.process-grid div,
.feature-list div {
  border: 1px solid #e0e5f0;
  background: #fbfcff;
  border-radius: var(--radius);
  padding: 20px;
}
.process-grid strong,
.feature-list strong {
  display: block;
  color: var(--navy-800);
  font-size: 14.5px;
  margin-bottom: 8px;
}
.process-grid span,
.feature-list span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.check-list {
  list-style: none;
  display: grid;
  gap: 12px;
  margin: 20px 0 30px;
}
.check-list li {
  position: relative;
  padding-left: 30px;
  color: var(--ink);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: inset 0 0 0 5px var(--white), 0 0 0 1px var(--gold);
}
.related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 18px 0 34px;
}
.related-grid a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 14px 16px;
  border: 1px solid #dfe5f0;
  border-radius: var(--radius);
  color: var(--navy-800);
  font-weight: 700;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.related-grid a::after {
  content: "\2192";
  color: var(--gold-dark);
  transition: transform 0.2s var(--ease);
}
.related-grid a:hover::after {
  transform: translateX(3px);
}
.related-grid a:hover {
  border-color: var(--gold);
  box-shadow: 0 10px 24px rgba(10, 20, 46, 0.08);
  transform: translateY(-2px);
}
.faq-block {
  margin-top: 44px;
}
.faq-block details {
  border: 1px solid #e0e5f0;
  border-radius: var(--radius);
  background: #fbfcff;
  padding: 0 18px;
  margin-bottom: 12px;
}
.faq-block summary {
  cursor: pointer;
  color: var(--navy-800);
  font-weight: 800;
  padding: 18px 0;
}
.faq-block details[open] summary {
  color: var(--gold-dark);
}
.faq-block details p {
  padding-bottom: 18px;
  margin-bottom: 0;
}
.page-sidebar {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 18px;
}
.sidebar-card {
  background: var(--navy-800);
  color: var(--white);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.sidebar-kicker {
  display: inline-block;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.sidebar-card h2,
.sidebar-card h3 {
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 10px;
}
.sidebar-card h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
}
.sidebar-card p {
  color: var(--on-navy-muted);
  font-size: 14px;
  margin-bottom: 18px;
}
.sidebar-card ul {
  list-style: none;
  display: grid;
  gap: 9px;
  color: var(--ink);
  font-size: 14px;
}
.sidebar-card li {
  padding-left: 18px;
  position: relative;
}
.sidebar-card li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  position: absolute;
  left: 0;
  top: 9px;
}
.muted-card {
  background: var(--light);
  color: var(--ink);
  border: 1px solid #e1e5ef;
  box-shadow: none;
}
.muted-card h3 {
  color: var(--navy-800);
}
.page-cta {
  position: relative;
  background:
    radial-gradient(900px 420px at 85% 120%, rgba(29, 47, 97, 0.85), transparent 65%),
    var(--navy-900);
  color: var(--white);
  padding: 48px 0;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cta-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 38px);
  line-height: 1.15;
  font-weight: 600;
  max-width: 760px;
}
/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
/* ---------- Sticky mobile call bar ---------- */
.mobile-cta {
  display: none;
}
@media (max-width: 767px) {
  .mobile-cta {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 10px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(10, 20, 46, 0.92);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(242, 193, 78, 0.25);
  }
  .mobile-cta .btn {
    padding: 12px 10px;
    font-size: 14px;
  }
  body {
    padding-bottom: calc(64px + env(safe-area-inset-bottom));
  }
}
/* ---------- Numbered steps (guide pages) ---------- */
.steps-list {
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 16px;
  margin: 24px 0 30px;
}
.steps-list li {
  counter-increment: step;
  position: relative;
  padding: 20px 20px 20px 66px;
  border: 1px solid #e0e5f0;
  background: #fbfcff;
  border-radius: var(--radius);
}
.steps-list li::before {
  content: counter(step);
  position: absolute;
  left: 20px;
  top: 21px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-900);
  font-weight: 800;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps-list strong {
  display: block;
  color: var(--navy-800);
  font-size: 15px;
  margin-bottom: 6px;
}
.steps-list li p,
.steps-list li span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}
/* ---------- Case results ---------- */
.results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 30px 0;
}
.result-card {
  border: 1px solid #e6e9f0;
  border-radius: var(--radius-lg);
  padding: 38px 28px 32px;
  text-align: center;
  background: #fbfcff;
  box-shadow: var(--shadow);
}
.result-amount {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 54px);
  font-weight: 600;
  color: var(--navy-800);
  line-height: 1.1;
}
.result-label {
  display: block;
  color: var(--muted);
  font-size: 14.5px;
  margin-top: 8px;
}
.legal-note {
  border-left: 3px solid var(--gold);
  background: var(--light);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  font-size: 13.5px;
  color: var(--muted);
  margin: 26px 0;
}
/* ---------- Compact city pills (homepage + hubs) ---------- */
.pill-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}
.pill-grid span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--white);
}
.pill-grid svg {
  width: 13px;
  height: 13px;
  color: var(--gold);
  flex-shrink: 0;
}
.locations-actions {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}
/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1020px) {
  .practice-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .practice-grid-car {
    grid-template-columns: repeat(2, 1fr);
  }
  .pa-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .locations-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .locations-grid-featured {
    grid-template-columns: repeat(2, 1fr);
  }
  .testimonials-layout {
    grid-template-columns: 1fr;
  }
  .rating-card {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px 18px;
    padding: 20px 24px;
  }
  .contact-body {
    padding: 48px 32px;
  }
  .split-feature,
  .article-layout,
  .inner-hero-grid {
    grid-template-columns: 1fr;
  }
  .page-sidebar {
    position: static;
  }
  .article-main {
    max-width: none;
  }
}
@media (max-width: 1080px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-900);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: none;
    max-height: calc(100vh - 76px);
    overflow-y: auto;
  }
  .main-nav.is-open {
    display: flex;
  }
  .main-nav .nav-link {
    width: 100%;
    justify-content: space-between;
    text-align: left;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 15px;
  }
  .nav-item {
    position: static;
  }
  /* Dropdowns collapse into an accordion inside the panel */
  .dropdown {
    position: static;
    min-width: 0;
    margin: 0;
    padding: 4px 0 8px 14px;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
    display: none;
  }
  .dropdown::before {
    display: none;
  }
  .nav-item.is-open .dropdown {
    display: block;
  }
  .dropdown a {
    padding: 9px 0;
    font-size: 14px;
    border-radius: 0;
  }
  .dropdown a:hover {
    background: none;
  }
  .dropdown .dropdown-all {
    border-top: 0;
    margin-top: 0;
    padding-top: 9px;
  }
  .nav-toggle {
    display: flex;
  }
  .header-phone {
    display: none;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    padding-top: 48px;
  }
  .hero-copy {
    padding-bottom: 0;
    text-align: center;
  }
  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-photo {
    margin: 44px auto 0;
  }
  .hero-portrait {
    width: min(78vw, 320px);
  }
  .hero-attorney {
    left: -8px;
    bottom: 40px;
    padding: 9px 14px;
  }
  .cities-row {
    justify-content: center;
  }
  .stats {
    background: linear-gradient(180deg, transparent 60px, var(--white) 60px);
  }
  .stats-card {
    grid-template-columns: 1fr 1fr;
    gap: 18px 0;
    padding: 26px 12px;
  }
  .stat:nth-child(3) {
    border-left: 0;
  }
  .stat-google {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
  .stat-google>div {
    align-items: center;
  }
  .why-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 0;
  }
  .why-item:nth-child(3) {
    border-left: 0;
  }
  .contact {
    grid-template-columns: 1fr;
  }
  .contact-photo {
    min-height: 260px;
  }
  /* Testimonials become a swipeable carousel */
  .testimonial-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .testimonial-track::-webkit-scrollbar {
    display: none;
  }
  .testimonial-card {
    flex: 0 0 100%;
    scroll-snap-align: center;
  }
}
@media (max-width: 640px) {
  .practice-grid {
    grid-template-columns: 1fr 1fr;
  }
  .practice-grid-car,
  .process-grid,
  .feature-list,
  .related-grid,
  .focus-grid,
  .pa-grid {
    grid-template-columns: 1fr;
  }
  .practice-card:last-child {
    grid-column: auto;
  }
  .locations-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px 18px;
  }
  .locations-grid-featured {
    grid-template-columns: 1fr;
  }
  .stats-card {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .stat+.stat {
    border-left: 0;
    border-top: 1px solid #e6e9f0;
    padding-top: 20px;
  }
  .why-grid {
    grid-template-columns: 1fr;
  }
  .why-item+.why-item {
    border-left: 0;
    border-top: 1px dashed #d8dce6;
    padding-top: 28px;
  }
  .why-item {
    padding-bottom: 4px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .contact-body {
    padding: 48px 24px;
  }
  .inner-hero {
    padding: 42px 0 48px;
  }
  .inner-hero h1 {
    font-size: clamp(31px, 12vw, 40px);
  }
  .inner-hero p,
  .hero-sub {
    font-size: 16px;
  }
  .content-section {
    padding: 52px 0 60px;
  }
  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-bar {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 20px;
    padding: 32px 0;
    text-align: center;
  }
  .footer-bar .logo,
  .footer-social {
    justify-self: center;
  }
  .results-grid {
    grid-template-columns: 1fr;
  }
}