/* Shared navigation: desktop mega panels, mobile disclosures, and full footer. */
.nav { gap: 24px; }
.navlinks { position: static; height: 100%; gap: 27px; }
.nav-dropdown { position: static; height: 100%; border: 0; }
.nav-dropdown > .nav-trigger {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 100%;
  padding: 0;
  color: var(--paper);
  font: 600 14px/1.5 Manrope, Arial, sans-serif;
  white-space: nowrap;
}
.nav-dropdown > .nav-trigger::after { content: none; }
.nav-trigger:hover,
.nav-dropdown[open] > .nav-trigger,
.nav-dropdown.is-current-section > .nav-trigger { color: var(--orange); }
.nav-chevron { flex-shrink: 0; transition: transform .18s ease; }
.nav-dropdown[open] .nav-chevron { transform: rotate(180deg); }
.mega-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: calc(100vh - 98px);
  max-height: calc(100dvh - 98px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #191c1d;
  border-top: 1px solid var(--line);
  border-bottom: 2px solid var(--orange);
  box-shadow: 0 24px 40px #0006;
}
.mega-inner {
  display: grid;
  grid-template-columns: minmax(210px, .78fr) minmax(0, 2.22fr);
  gap: 55px;
  width: min(calc(100% - 112px), var(--max));
  margin-inline: auto;
  padding-block: 32px;
}
.mega-intro { padding: 12px 28px 12px 0; border-right: 1px solid var(--line); }
.mega-intro .eyebrow { margin-bottom: 17px; }
.mega-intro .mega-title {
  color: var(--paper);
  font: 600 clamp(1.6rem, 2.4vw, 2.2rem)/1.12 Archivo, Arial, sans-serif;
  letter-spacing: -.035em;
  padding: 0;
  margin: 0 0 17px;
}
.mega-intro > p:not(.mega-title) { padding: 0; font-size: 14px; line-height: 1.7; }
.navlinks .mega-intro .textlink {
  margin-top: 24px;
  padding: 0 0 7px;
  gap: 18px;
  font-size: 14px;
  line-height: 1.5;
}
.mega-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px 24px; padding: 0; margin: 0; list-style: none; }
.mega-links > li { min-width: 0; }
.navlinks .mega-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 84px;
  padding: 15px 14px;
  border: 1px solid transparent;
  transition: background .15s, border-color .15s;
}
.mega-link-copy { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mega-link-name { font-size: 16px; font-weight: 650; line-height: 1.45; }
.mega-caption { font-size: 14px; font-weight: 400; line-height: 1.55; color: var(--muted); }
.mega-link-arrow { color: #9ca59f; font-size: 20px; font-weight: 400; flex-shrink: 0; }
.navlinks .mega-links a:hover,
.navlinks .mega-links a:focus-visible,
.navlinks .mega-links a[aria-current="page"] { background: #242829; border-color: #414846; color: var(--orange); }
.mega-bottom {
  width: min(calc(100% - 112px), var(--max));
  margin-inline: auto;
  border-top: 1px solid var(--line);
  padding-block: 19px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 14px;
}
.mega-bottom > span { color: var(--muted); font-weight: 400; }
.navlinks .mega-bottom a { padding: 0; display: inline-flex; gap: 25px; }
.nav-estimate { flex-shrink: 0; }
.nav-estimate .button { gap: 24px; }
.nav .brand { flex-shrink: 0; }
.mobile-nav-caption { display: none; }
.menu-toggle, .nav-trigger { -webkit-tap-highlight-color: transparent; }
.menu-icon { width: 19px; height: 16px; position: relative; display: block; }
.menu-icon i { position: absolute; left: 0; width: 19px; height: 2px; background: currentColor; transition: transform .18s, top .18s; }
.menu-icon i:first-child { top: 4px; }
.menu-icon i:last-child { top: 11px; }
.menu-toggle[aria-expanded="true"] .menu-icon i:first-child { top: 8px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon i:last-child { top: 8px; transform: rotate(-45deg); }
.footer-top { display: grid; grid-template-columns: 1fr 1.65fr auto; align-items: center; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--line); margin-bottom: 40px; }
.footer-top p { max-width: 460px; font-size: 15px; }
.footer-top .textlink { justify-self: end; }
.footer-grid.footer-directory { grid-template-columns: 1.2fr 1fr 1.15fr 1fr; gap: 42px; }
.footer-column { min-width: 0; }
.footer-column h2 { font: 600 13px/1.6 Manrope, Arial, sans-serif; color: var(--orange); letter-spacing: .065em; text-transform: uppercase; margin: 0 0 18px; }
.footer-column li { margin: 0; }
.footer-column li a { display: inline-block; padding-block: 7px; font-size: 14px; line-height: 1.6; }
.footer-column li:last-child a { margin-top: 3px; }
.footer-bottom { margin-top: 40px; }
@media (min-width: 1181px) {
  .menu-toggle { display: none; }
  .navlinks .nav-direct { white-space: nowrap; }
}
@media (min-width: 1181px) and (max-width: 1250px) {
  .navlinks { gap: 19px; }
  .nav { gap: 20px; }
  .nav-estimate .button { padding-inline: 16px; gap: 16px; }
  .mega-inner, .mega-bottom { width: calc(100% - 64px); }
  .mega-inner { gap: 30px; }
  .mega-links { gap: 3px 12px; }
}
@media (max-width: 1180px) {
  .masthead { backdrop-filter: none; }
  .nav { min-height: 80px; height: auto; flex-wrap: wrap; padding-block: 17px; }
  .menu-toggle { display: none; }
  .nav-ready .nav { height: 80px; flex-wrap: nowrap; padding-block: 0; }
  .nav-ready .menu-toggle { display: flex; align-items: center; justify-content: center; gap: 10px; min-width: 90px; min-height: 44px; padding: 10px 12px; border-color: #646b67; font-size: 14px; }
  .navlinks { position: static; display: flex; flex-direction: column; flex-basis: 100%; height: auto; padding: 10px 0; border: 0; align-items: stretch; gap: 0; background: var(--ink); }
  .nav-ready .navlinks { display: none; }
  .nav-ready .navlinks.is-open {
    display: flex;
    position: fixed;
    inset: 80px 0 0;
    width: 100%;
    height: auto;
    max-height: calc(100vh - 80px);
    max-height: calc(100dvh - 80px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 14px 32px calc(28px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
  }
  body.nav-open { overflow: hidden; overscroll-behavior: none; }
  body.nav-open .mobile-cta { visibility: hidden; }
  .nav-dropdown { height: auto; flex-shrink: 0; border-bottom: 1px solid var(--line); }
  .nav-dropdown > .nav-trigger { justify-content: space-between; width: 100%; height: auto; min-height: 56px; padding: 15px 0; font-size: 18px; line-height: 1.45; font-weight: 600; white-space: normal; }
  .nav-chevron { width: 18px; height: 18px; }
  .mega-panel { position: static; max-height: none; overflow: visible; border: 0; box-shadow: none; background: transparent; padding-bottom: 18px; }
  .mega-inner { display: flex; flex-direction: column; width: 100%; gap: 16px; padding: 0; }
  .mega-intro { display: block; border: 0; padding: 0; }
  .mega-intro .eyebrow, .mega-intro .mega-title, .mega-intro > p:not(.mega-title) { display: none; }
  .navlinks .mega-intro .textlink { margin: 0; padding: 6px 0 8px !important; border: 0; color: var(--orange); min-height: 44px; }
  .mega-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; background: #1b1e1f; border: 1px solid var(--line); border-radius: 12px; padding: 4px 12px; }
  .navlinks .mega-links a { padding: 12px 4px !important; min-height: 48px; border: 0; border-bottom: 1px solid var(--line); background: transparent; }
  .mega-links li:last-child a { border-bottom: 0; }
  .mega-link-name { overflow-wrap: anywhere; }
  .navlinks .mega-links a:focus-visible { outline-offset: 0; border-radius: 4px; }
  .mega-caption { font-size: 14px; }
  .mega-link-name { font-size: 16px; }
  .mega-bottom { display: none; }
  .navlinks > .nav-direct { flex-shrink: 0; padding: 15px 0 !important; border-bottom: 1px solid var(--line); font-size: 18px; line-height: 1.45; min-height: 56px; }
  .nav-estimate { margin-top: 28px; padding-bottom: 12px; }
  .nav-estimate .button { display: flex; min-height: 54px; width: 100%; margin: 0; padding: 15px 20px !important; }
  .mobile-nav-caption { display: block; margin-top: 18px; text-align: center; color: var(--muted); font-size: 13px; font-weight: 400; }
  .footer-top { grid-template-columns: 1fr 1.5fr; gap: 25px 35px; }
  .footer-top .textlink { justify-self: start; }
  .footer-grid.footer-directory { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 40px; }
}
@media (max-width: 560px) {
  .nav-ready .nav { height: 76px; min-height: 76px; }
  .nav-ready .navlinks.is-open { top: 76px; max-height: calc(100vh - 76px); max-height: calc(100dvh - 76px); padding-inline: 20px; }
  .mega-links { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .navlinks .mega-links a { min-height: 48px; }
  .mega-caption { display: none; }
  .mega-inner { gap: 9px; }
  .footer-top { grid-template-columns: 1fr; gap: 24px; padding-bottom: 32px; margin-bottom: 32px; }
  .footer-top p { font-size: 14px; }
  .footer-grid.footer-directory { gap: 28px 24px; }
  .footer-column h2 { font-size: 14px; letter-spacing: .025em; margin-bottom: 12px; }
  .footer-column li a { min-height: 44px; padding-block: 10px; }
  .footer-bottom { margin-top: 32px; }
}
@media (max-width: 380px) {
  .footer-grid.footer-directory { grid-template-columns: 1fr; }
}
/* Contextual reading and the shared, crawlable page directory. */
.contextual-block { padding-block: 0 60px; }
.contextual-block .prose { max-width: 900px; }
.contextual-links { border-left: 2px solid var(--orange); padding-left: 24px; margin-block: 38px; }
.prose .contextual-links h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 0; margin-bottom: 18px; }
.contextual-links p:last-child { margin-bottom: 0; }
.sitemap-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 64px; padding-bottom: 50px; }
.sitemap-group { min-width: 0; border-top: 1px solid var(--line); padding-top: 24px; }
.sitemap-group h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 16px; }
.sitemap-group ul { list-style: none; padding: 0; margin: 0; }
.sitemap-group li { margin: 0; }
.sitemap-group a { display: flex; align-items: center; min-height: 44px; padding-block: 10px; color: #ff9977; text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere; }
.sitemap-group a:hover { color: white; }
.sitemap-format { padding-bottom: 50px; }
.service-local-links { max-width: 900px; margin-top: 32px; }
.service-local-links a { color: inherit; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 650px) {
  .sitemap-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .contextual-links { padding-left: 18px; margin-block: 28px; }
  .contextual-block { padding-bottom: 36px; }
}
/* The bottom action remains usable on larger phones and respects the home indicator. */
@media (max-width: 1180px) {
  .mobile-cta { display: flex; position: fixed; inset: auto 0 0; z-index: 19; padding: 10px max(20px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left)); background: #131515f5; border-top: 1px solid var(--line); }
  .mobile-cta .button { width: 100%; max-width: 720px; margin-inline: auto; min-height: 48px; padding-block: 11px; }
  .footer { padding-bottom: calc(112px + env(safe-area-inset-bottom)); }
  html { scroll-padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}
/* Shared content safeguards for service, area, article, tool, and legal pages. */
.content-layout > *, .detail-hero > *, .contact-grid > *, .fields > *,
.claims-feature > *, .three-cols > *, .service-item > *, .tool-result > * { min-width: 0; }
main h1 { text-wrap: balance; }
.prose, .source-note, .contextual-links, .footer-column { overflow-wrap: anywhere; }
.table-scroll { max-width: 100%; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.table-scroll:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; }
.field input, .field select { min-width: 0; font-size: 1rem; }
@media (max-width: 850px) {
  .button, .map-link, .tool-controls button { min-height: 48px; }
  .faq-list summary { min-height: 48px; }
  .checklist label { min-height: 44px; align-items: center; }
  .resource p, .service-item p, .three-cols p, .claims-callout p,
  .claims-steps p, .prose .claims-note p, .faq-list details p { font-size: 1rem; }
  .page-head h1, .detail-hero h1, .area-hero h1 { line-height: 1.1; }
  .contact-card .call-number { font-size: clamp(1.5rem, 6vw, 2.2rem); overflow-wrap: anywhere; }
}
@media (max-width: 560px) {
  .page-head h1, .detail-hero h1, .area-hero h1 { font-size: clamp(2rem, 9vw, 2.8rem); letter-spacing: -.035em; }
  .hero h1 { font-size: clamp(2.25rem, 11.5vw, 3.4rem); }
  .cta-inner h2 { font-size: clamp(2rem, 9.5vw, 2.5rem); }
  .cta-inner .button, .sidebar .button { white-space: normal; }
  .claims-callout, .claims-note, .tool-panel { padding-inline: 20px; }
  .tool-result { gap: 20px; }
  .result-number { font-size: clamp(2.2rem, 11vw, 3.1rem); overflow-wrap: anywhere; }
  .local-map, .photo-frame, .photo-surface { max-width: 100%; }
}
/* Keep long service and hero headings within a narrow phone viewport. */
@media (max-width: 380px) {
  .nav { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-chevron, .menu-icon i, .navlinks .mega-links a { transition: none; }
}
@media print {
  .mega-panel, .navlinks, .footer-directory { display: none !important; }
}
