:root {
  --paper: #f8fafc;
  --bg: var(--paper);
  --surface: #eef4fa;
  --tint: #dceaf7;
  --ink: #132a43;
  --muted: #405770;
  --accent: #0050a0;
  --accent-hover: #003d7b;
  --highlight: #c4def5;
  --line: #d6e2ef;
  --line-strong: #788da6;
  --display: Georgia, 'Times New Roman', serif;
  --heading-size: clamp(2.15rem, 2.4vw + 1rem, 4rem);
  --section-space: clamp(54px, 6vw, 104px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

html { scroll-behavior: auto; scroll-padding-top: 86px; }
body { background: var(--paper); color: var(--ink); }
p { color: var(--muted); }
.container {
  width: min(1240px, calc(100% - clamp(40px, 10vw, 144px)));
}

main :is(h1, h2) {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -.042em;
  text-wrap: balance;
}

main h1 { font-size: clamp(2.6rem, 3.2vw + 1rem, 5.2rem); }
main h2 { font-size: var(--heading-size); }
main h3 { line-height: 1.18; letter-spacing: -.025em; }

main :is(.subhero, .courier-hero, .contact-hero, .insurance-landing, .quote-hero, .legal) h1 {
  max-width: 20ch;
}

.nav-row { height: 74px; gap: clamp(16px, 2vw, 28px); }
.brand { min-height: 44px; }
.brand img { display: block; flex-shrink: 0; }
.brand-symbol { width: 35px; height: 35px; }
.brand-wordmark { width: 111px; height: auto; }
.nav-row .brand { flex: 0 0 auto; }
.nav-row .desktop-nav { display: none; }
.nav-row .nav-directions { margin-inline-start: auto; gap: 8px; padding: 10px 14px; color: var(--accent); font-size: 13px; }
.nav-directions svg { width: 18px; height: 18px; }
.nav-row .nav-cta { min-height: 44px; margin-inline-start: 0; }
.button { min-height: 46px; border-radius: 2px; }
.button span[aria-hidden] { font-size: 1.12em; }
.menu-toggle { display: block; flex: 0 0 44px; width: 44px; min-height: 44px; }
.mobile-nav:not([hidden]) { max-height: calc(100dvh - 76px); overflow-y: auto; }
.mobile-nav a[aria-current] { color: var(--accent); font-weight: 700; }
.skip-link:focus { position: absolute; left: 0; }
.nav-row { position: relative; }
.closing { background: var(--paper); border-top: 1px solid var(--line); }
.footer-bottom, .footer-bottom a { color: var(--muted); }

.local-cover-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: center;
  gap: 24px;
  min-height: calc(100svh - 75px);
  padding-block: 48px;
}

.local-cover-copy { grid-column: span 5; padding-inline-end: 20px; }
.local-cover-photo { grid-column: 6 / -1; }

.local-kicker {
  margin-bottom: 20px;
  color: var(--accent);
  font-size: .75rem;
  letter-spacing: .12em;
  font-weight: 700;
}

.local-cover h1 { text-wrap: initial; }
.local-cover h1 > span { color: var(--accent); }
.local-lead {
  max-width: 36ch;
  margin-top: 23px;
  font-size: clamp(1rem, .45vw + .94rem, 1.19rem);
  line-height: 1.55;
}

.local-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 27px; }
.local-cover-photo, .local-visit-photo { margin: 0; background: var(--surface); }
.local-cover-photo img, .local-visit-photo img { display: block; width: 100%; height: auto; }

.local-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--accent);
  font-size: .94rem;
  font-weight: 700;
  text-underline-offset: .22em;
}

.local-link:hover { text-decoration: underline; }
.local-services, .local-quick { padding-block: var(--section-space); background: var(--surface); }
.local-section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; }
.local-services-grid, .local-quick-list { padding: 0; list-style-type: none; }
.local-services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: clamp(24px, 4vw, 54px) 0 0;
}

.local-services-grid .card { border-top: 2px solid var(--accent); }
.local-services-grid a { display: block; height: 100%; padding: 18px 0 12px; }
.local-services-grid h3 { display: flex; gap: 10px; align-items: start; justify-content: space-between; font: 400 clamp(1.45rem, 2.2vw, 2.2rem)/1.08 var(--display); }
.local-services-grid h3 span { color: var(--accent); font: 700 1rem/1.5 Arial, sans-serif; }
.local-services-grid a:hover h3 { color: var(--accent); }
.local-services-grid p { margin-top: 10px; line-height: 1.5; }

.local-visit-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
  gap: 24px;
  padding-block: var(--section-space);
}

.local-visit-copy, .local-hours { grid-column: 1 / span 5; }
.local-visit-photo { grid-column: 6 / -1; grid-row: 1 / span 2; }
.local-visit .mo-wh__text {
  font: 400 var(--heading-size)/1.04 var(--display);
  letter-spacing: -.042em;
}

.local-visit-copy > p { max-width: 43ch; margin-top: 18px; }
.local-hours { border-top: 2px solid var(--accent); padding-top: 18px; }
.local-hours h3 { font: 400 1.85rem/1.1 var(--display); }
.local-hours dl { margin: 16px 0 0; }
.local-hours dl > div { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.local-hours dd { margin: 0; white-space: nowrap; font-variant-numeric: tabular-nums; }

.local-quick .container { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.local-quick-intro { grid-column: span 5; }
.local-quick-intro .button { margin-top: 22px; }
.local-quick-list { grid-column: 6 / -1; }
.local-quick-list { margin: 0; border-top: 1px solid var(--line); }
.local-quick-list a { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 48px; padding-block: 8px; border-bottom: 1px solid var(--line); font-weight: 700; }
.local-quick-list span, .local-quick-list a:hover { color: var(--accent); }

.vo-hero .vo-hero-grid { align-items: center; }
.vo-hero-copy .vo-actions > a { color: var(--accent); min-height: 44px; }
.vo-hero-copy .vo-starting-price { margin-top: 20px; color: var(--ink); font-size: .94rem; }
.vo-nav { flex-wrap: wrap; }
.vo-address-wordmark {
  display: block;
  width: 113px;
  height: auto;
  padding: 3px 7px;
  border-radius: 2px;
  background: var(--paper);
}
.local-contact-photo figure { margin: 0 0 22px; background: var(--surface); }
.local-contact-photo img { display: block; width: 100%; height: auto; }
.local-contact-photo p { margin-block: 12px 4px; max-width: 46ch; }
.contact-directions { margin-block: 16px 2px; }
.mobile-directions-bar { display: none; }

@media (max-width: 760px), (max-width: 1000px) and (max-height: 500px) and (pointer: coarse) {
  :root {
    --mobile-directions-target: max(54px, calc(2.5rem + 16px));
    --mobile-directions-space: calc(var(--mobile-directions-target) + 17px + env(safe-area-inset-bottom, 0px));
  }
  html { scroll-padding-bottom: var(--mobile-directions-space); }
  .nav-row .nav-directions { display: none; }
  .nav-row .nav-cta { margin-inline-start: auto; }
  .mobile-nav:not([hidden]) { max-height: calc(100dvh - 76px - var(--mobile-directions-space)); }
  .contact-directions { display: none; }
  .closing { padding-bottom: var(--mobile-directions-space); }
  .mobile-directions-bar {
    position: fixed;
    inset: auto 0 0;
    z-index: 29;
    display: block;
    padding-block: 8px calc(8px + env(safe-area-inset-bottom, 0px));
    padding-inline: max(12px, env(safe-area-inset-left, 0px)) max(12px, env(safe-area-inset-right, 0px));
    border-block-start: 1px solid var(--line);
    background: var(--paper);
  }

  .mobile-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: var(--mobile-directions-target);
    padding: 8px 12px;
    border-radius: 2px;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.25;
    text-align: center;
  }

  .mobile-contact svg { width: 20px; height: 20px; }
  .mobile-contact:focus-visible { outline: 2px solid #fff; outline-offset: -5px; }
  .mobile-contact:active { background: var(--accent-hover); }
  .modal-open .mobile-directions-bar { visibility: hidden; }
}

@media (max-width: 960px) {
  .local-services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .container { width: calc(100% - 40px); }
  html { scroll-padding-top: 76px; }
  .nav-row { height: 64px; gap: 10px; }
  .nav-row .brand { gap: 7px; }
  .nav-row .brand-symbol { width: 31px; height: 31px; }
  .nav-row .brand-wordmark { width: 99px; }
  .nav-row .nav-cta { min-height: 44px; padding: 8px 10px; }
  .nav-cta svg { display: none; }
  .local-cover-grid, .local-visit-grid, .local-quick .container { grid-template-columns: minmax(0, 1fr); }
  .local-cover-grid { gap: 26px; min-height: auto; padding-block: 36px 0; }
  .local-cover-grid > *, .local-quick .container > * { grid-column: 1; }
  .local-visit-grid > * { grid-column: 1; grid-row: auto; }
  .local-cover-copy { padding-inline-end: 0; }
  .local-cover-photo { margin-inline: -20px; }
  .local-cover h1 { font-size: clamp(2.75rem, 9.5vw + .6rem, 4.25rem); }
  .local-kicker, .local-lead { margin-top: 0; margin-bottom: 14px; }
  .local-lead { margin-top: 17px; }
  .local-actions { margin-top: 18px; }
  .local-services-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .local-services-grid .card { border-top: 1px solid var(--line); }
  .local-services-grid a { padding-block: 14px 18px; }
  .local-services-grid p { margin-top: 6px; }
  .local-section-head > a { min-height: 44px; }
  .footer-top a:not(.brand), .footer-bottom a { min-height: 44px; display: inline-flex; align-items: center; }
  .footer-top > div > a:not(.brand) { display: flex; width: fit-content; }
}

@media (max-width: 350px) {
  .nav-row { gap: 5px; }
  .nav-row .brand-wordmark { width: 92px; }
  .local-cover h1 { font-size: 2.57rem; }
}
