/* Desktop navigation, scoped to leave the mobile menu unchanged. */
@media (min-width: 1101px) {
  header nav { font-size: 18px; font-weight: 600; flex-shrink: 0; }
  header nav a { display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; }
}
@media (min-width: 1101px) and (max-width: 1280px) {
  header { gap: 16px; }
  header .brand { max-width: 220px; }
  header nav { gap: 18px; }
}

/* Mobile width safeguards and iPhone-specific typography. */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  width: 100%;
  overflow-x: clip;
}
body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}
main, header, footer, section, article, aside, form,
.section > *, .section-heading > *, .hero-copy, .practice-list,
.practice-item > *, .form-row > *, .footer-main > * {
  min-width: 0;
}
main, header, footer, .section {
  width: 100%;
  max-inline-size: 100%;
}
.section { max-width: 1600px; }
img { max-width: 100%; }
h1, h2, h3, p, blockquote, .area-name, .breadcrumbs li,
.contact-email, .legal, .form-disclaimer, #form-status, #chat-status {
  overflow-wrap: break-word;
}
.hero { contain: inline-size; }
.hero .hero-photo { contain: layout paint; }
.hero .hero-photo > img { max-width: none; }

@media (max-width: 800px) {
  html { scroll-padding-top: 175px; }
  .topline { display: none; }
  header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 12px;
    padding: 12px 16px;
    min-height: 0;
    width: 100%;
  }
  header .brand {
    grid-column: 1;
    order: initial;
    width: 100%;
    max-width: 285px;
    min-width: 0;
  }
  header .brand img { width: 100%; height: auto; }
  header .menu-toggle {
    grid-column: 2;
    order: initial;
    margin: 0;
    min-height: 44px;
    min-width: 60px;
    padding: 8px;
    white-space: nowrap;
    font-size: 12px;
  }
  header .menu-toggle span { margin-left: 5px; }
  header .header-call {
    grid-column: 1 / -1;
    order: initial;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 10px 12px;
    text-align: center;
  }
  header .header-call strong {
    font-size: clamp(23px, 7vw, 30px);
    line-height: 1.2;
    letter-spacing: -.5px;
  }
  header .header-call small { font-size: 8px; letter-spacing: .9px; }
  header .header-call strong span { font-size: 22px; }
  header nav {
    grid-column: 1 / -1;
    order: initial;
    width: 100%;
    padding: 10px 0;
  }
  header nav a { min-height: 36px; display: flex; align-items: center; }
  .section, .page-hero, footer {
    padding-left: 20px;
    padding-right: 20px;
  }
  .section { padding-top: 48px; padding-bottom: 48px; }
  .approach, .results, .next, .contact, .reviews,
  .practice-detail, .profile, .service-guide {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .practice-cards, .results-page-grid, .form-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .section-heading { width: 100%; gap: 16px; margin-bottom: 26px; }
  .section-heading > p, .approach-copy, .results-intro > p,
  .contact-copy > p, .review-heading, .review-carousel {
    width: 100%;
    max-width: 100%;
  }
  h2, .section h2, .page-hero h2 {
    font-size: clamp(28px, 7.8vw, 36px);
    line-height: 1.2;
    letter-spacing: -.8px;
  }
  .section p, .approach-copy p, .results-intro > p:not(.eyebrow) {
    font-size: 14px;
    line-height: 1.8;
  }
  .section .eyebrow, .hero .eyebrow {
    font-size: 9px;
    letter-spacing: 1.2px;
    line-height: 1.6;
  }
  .hero {
    width: 100%;
    min-height: 0;
    padding: clamp(230px, 67vw, 390px) 20px 46px;
  }
  .hero .hero-copy { width: 100%; max-width: 100%; }
  .hero h1, .page-hero h1 {
    font-size: clamp(32px, 9.3vw, 43px);
    line-height: 1.13;
    letter-spacing: -1px;
    max-width: 100%;
  }
  .hero h1 br { display: none; }
  .hero .intro { font-size: 14px; line-height: 1.8; max-width: 100%; }
  .hero .actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .hero .actions > a { width: 100%; max-width: 100%; }
  .hero .hero-phone { padding: 15px 16px; }
  .hero .hero-phone strong { font-size: clamp(23px, 7vw, 30px); }
  .hero .hero-phone small { font-size: 8px; letter-spacing: 1px; }
  .hero .hero-benefits { max-width: 100%; font-size: 10px; }
  .hero .hero-photo figcaption {
    left: 20px;
    right: 20px;
    bottom: 9px;
    max-width: calc(100% - 40px);
    font-size: 7px;
    line-height: 1.4;
    text-align: right;
  }
  .practice-list .practice-item {
    grid-template-columns: 23px minmax(0, 1fr) 18px;
    gap: 10px;
    width: 100%;
    padding: 20px 0;
  }
  .practice-list .area-name {
    font-size: clamp(18px, 5.2vw, 22px);
    line-height: 1.35;
    white-space: normal;
  }
  .practice-list .area-summary { display: none; }
  .practice-list .area-arrow { font-size: 19px; }
  .settlement-carousel, .settlement-slides, .settlement-slide { width: 100%; max-width: 100%; }
  .settlement-slide > strong, .results-page .settlement-slide > strong {
    font-size: clamp(34px, 10.8vw, 48px);
    letter-spacing: -1px;
    max-width: 100%;
  }
  .settlement-slide { min-height: 0; padding: 24px 0; }
  .settlement-slide h3 { font-size: 24px; line-height: 1.3; }
  .settlement-controls { gap: 9px; }
  .settlement-controls > button { width: 38px; height: 38px; }
  .settlement-count { margin-left: 0; }
  .results-page > .settlement-carousel { padding: 24px 18px; }
  .results-page-grid article:first-child { grid-column: auto; }
  .button { max-width: 100%; min-height: 44px; white-space: normal; }
  .big-phone, .page-phone { font-size: clamp(23px, 7vw, 31px); letter-spacing: -.6px; }
  .contact form, .contact form .form-row { width: 100%; max-width: 100%; }
  form { min-width: 0; padding: 22px 18px; }
  input, select, textarea { min-width: 0; max-width: 100%; font-size: 16px; }
  .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .footer-main > div:first-child { grid-column: 1 / -1; grid-row: auto; }
  .footer-main > div:last-child { grid-column: auto; grid-row: auto; }
  footer { padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px)); }
  .mobile-contact {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    max-width: 100%;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    min-height: 58px;
    background: var(--navy);
  }
  .mobile-contact a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: 58px;
    padding: 10px 8px;
    font-size: clamp(10px, 2.9vw, 12px);
    line-height: 1.4;
  }
  .chat-launcher {
    right: 12px;
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    max-width: calc(100% - 24px);
    padding: 6px 12px 6px 6px;
    font-size: 11px;
    min-height: 44px;
  }
  .chat-launcher .chat-avatar { width: 32px; height: 32px; }
  .chat-panel {
    left: 12px;
    right: 12px;
    bottom: calc(128px + env(safe-area-inset-bottom, 0px));
    width: auto;
    max-width: calc(100% - 24px);
    max-height: calc(100dvh - 170px - env(safe-area-inset-bottom, 0px));
  }
  .chat-panel .chat-header > div { min-width: 0; }
  .breadcrumbs { padding: 14px 20px; }
  .breadcrumbs li { overflow-wrap: anywhere; }
  .practice-card h2, .related-services h2 { font-size: 26px; }
}

@media (max-width: 360px) {
  header { padding-left: 12px; padding-right: 12px; gap: 8px; }
  .section, .page-hero, footer { padding-left: 16px; padding-right: 16px; }
  .hero { padding-left: 16px; padding-right: 16px; }
  .hero h1, .page-hero h1 { font-size: 31px; }
  .section h2 { font-size: 28px; }
}

/* Balanced hero calls to action and prominent recovery-based fee message. */
.hero .hero-headline{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:24px}
.hero .hero-guarantee{margin:0;padding-left:22px;border-left:3px solid #83cefa;color:#fff;font-size:clamp(23px,2.1vw,31px);font-weight:600;line-height:1.28;text-shadow:0 2px 18px #0003;overflow-wrap:normal}
.hero .hero-guarantee strong{color:#9ed9fa;font-weight:800}
.hero .actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:14px}
.hero .actions>.button,.hero .actions>.hero-phone{width:100%;max-width:100%;min-width:0;min-height:96px;padding:18px 16px;justify-content:center;align-items:center;text-align:center}
.hero .actions>.button{font-size:clamp(20px,1.85vw,27px);line-height:1.2;font-weight:800;gap:10px}
.hero .actions>.hero-phone strong{font-size:clamp(20px,1.85vw,27px)}
.hero .actions>.hero-phone small{font-size:8px;letter-spacing:1px}
@media(max-width:800px){
 .hero .hero-headline{grid-template-columns:minmax(0,1fr);gap:16px}
 .hero .hero-guarantee{font-size:clamp(25px,6.5vw,32px);padding-left:16px;max-width:560px;line-height:1.3}
 .hero .actions{grid-template-columns:minmax(0,1fr);gap:12px}
 .hero .actions>.button,.hero .actions>.hero-phone{min-height:88px;padding:18px 16px}
 .hero .actions>.button,.hero .actions>.hero-phone strong{font-size:clamp(23px,7vw,30px)}
}
@media(max-width:360px){.hero .hero-guarantee{font-size:24px}.hero .actions>.button,.hero .actions>.hero-phone strong{font-size:23px}}
