:root {
  --cta-gold: #f4c85d;
  --cta-gold-strong: #e9ae31;
  --cta-gold-pale: #fff4d1;
  --ui-card-radius: 22px;
  --ui-panel-radius: 30px;
  --ui-section-space: clamp(72px, 7vw, 104px);
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.hero-grid > *,
.why-showcase-grid > *,
.split-grid > *,
.pricing-grid > *,
.visit-grid > * {
  min-width: 0;
}

.container,
.page-shell {
  width: min(calc(100% - 48px), 1200px);
  margin-inline: auto;
}

main h1 {
  font-size: clamp(3rem, 5.2vw, 5.6rem);
  line-height: .99;
  letter-spacing: -.055em;
}

main h2 {
  font-size: clamp(2.05rem, 3vw, 3.25rem);
  line-height: 1.04;
  letter-spacing: -.045em;
}

main h3 {
  font-size: clamp(1.08rem, 1.6vw, 1.38rem);
  line-height: 1.2;
  letter-spacing: -.025em;
}

.section {
  padding-block: var(--ui-section-space);
}

:is(
  .service-card,
  .sign-card,
  .pay-card,
  .details-card,
  .region-card,
  .price-card,
  .promise-card,
  .tax-card,
  .coverage-photo-card,
  .map-card,
  .cta-card,
  .fix-card,
  .application-form,
  .quote-aside,
  .price-panel,
  .included-table,
  .hero-note-card,
  .hero-standard-card,
  .hero-gutter-card,
  .benefit,
  .rules-grid article,
  .requirements-grid article,
  .answer-cards article,
  .consequence-cards article,
  .faq-grid details,
  .about-faq-list details,
  .role-card,
  .state-link,
  .table-note,
  .training-strip,
  .proof-strip,
  .timing-note
) {
  border-radius: var(--ui-card-radius);
}

:is(.cta-band, .finder-card) {
  border-radius: var(--ui-panel-radius);
}

.statewide-service-section {
  background: #fffdf8;
}

.statewide-service-card {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--ui-panel-radius);
  box-shadow: 0 24px 70px rgba(8, 47, 80, .14);
}

.statewide-service-card > img {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.statewide-service-card::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(5, 35, 59, .92) 0%, rgba(5, 35, 59, .76) 42%, rgba(5, 35, 59, .12) 76%);
}

.statewide-service-copy {
  width: min(600px, 58%);
  min-height: 520px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  padding: clamp(38px, 6vw, 78px);
  color: #fff;
}

.statewide-service-copy .eyebrow {
  color: #b8dbf4;
}

.statewide-service-copy h2 {
  margin: 8px 0 18px;
  color: #fff;
}

.statewide-service-copy p:not(.eyebrow) {
  max-width: 520px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, .82);
}

.cta-button.cta-button {
  color: #082f50;
  background: linear-gradient(135deg, var(--cta-gold) 0%, #f7d778 100%);
  border-color: rgba(123, 79, 0, .08);
  box-shadow: 0 12px 26px rgba(191, 132, 22, .2);
}

.cta-button.cta-button:hover {
  color: #082f50;
  background: linear-gradient(135deg, #f7d678 0%, var(--cta-gold) 100%);
}

.mobile-action-bar {
  display: none;
}

.quote-modal {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(4, 27, 46, .72);
  backdrop-filter: blur(10px);
}

.quote-modal[hidden] {
  display: none;
}

.quote-dialog {
  position: relative;
  width: min(100%, 720px);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 40px;
  color: #102f49;
  background: #fffdf8;
  border: 1px solid rgba(8, 47, 80, .12);
  border-radius: 28px;
  box-shadow: 0 30px 90px rgba(2, 23, 40, .34);
}

.quote-dialog-header {
  padding-right: 44px;
}

.quote-dialog-header .quote-kicker {
  margin: 0 0 10px;
  color: #164f7d;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.quote-dialog-header h2 {
  margin: 0 0 10px;
  color: #082f50;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.02;
  letter-spacing: -.045em;
}

.quote-dialog-header > p:last-child {
  margin: 0 0 26px;
  color: #65798b;
}

.quote-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #082f50;
  background: #f1f5f7;
  border: 1px solid rgba(8, 47, 80, .1);
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
}

.quote-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.quote-field {
  display: grid;
  gap: 7px;
  color: #082f50;
  font-size: .78rem;
  font-weight: 800;
}

.quote-field-wide {
  grid-column: 1 / -1;
}

.quote-field input,
.quote-field select {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  color: #102f49;
  background: #fff;
  border: 1px solid rgba(8, 47, 80, .16);
  border-radius: 13px;
  outline: none;
}

.quote-field input:focus,
.quote-field select:focus {
  border-color: #164f7d;
  box-shadow: 0 0 0 3px rgba(22, 79, 125, .11);
}

.sms-consent {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 11px;
  margin-top: 4px;
  color: #526b7f;
  font-size: .72rem;
  line-height: 1.48;
}

.sms-consent input {
  width: 19px;
  height: 19px;
  margin: 2px 0 0;
  accent-color: #082f50;
}

.sms-consent a {
  color: #164f7d;
  font-weight: 800;
  text-decoration: underline;
}

.quote-modal-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 5px;
}

.quote-modal-actions .cta-button {
  min-height: 54px;
  padding: 14px 24px;
  border: 1px solid rgba(123, 79, 0, .08);
  border-radius: 999px;
  font: 800 .86rem/1 Inter, ui-sans-serif, sans-serif;
  cursor: pointer;
}

.quote-modal-actions a {
  color: #082f50;
  font-size: .82rem;
  font-weight: 800;
}

.quote-form-status {
  grid-column: 1 / -1;
  margin: 0;
  padding: 12px 14px;
  color: #0a4b3d;
  background: #eaf7f2;
  border-radius: 12px;
  font-size: .78rem;
}

.quote-modal-open {
  overflow: hidden;
}

.quote-modal-open .mobile-action-bar {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 820px) {
  :root {
    --ui-section-space: 76px;
  }

  main h1 {
    font-size: clamp(2.9rem, 8vw, 4.2rem);
  }

  main h2 {
    font-size: clamp(2rem, 5vw, 2.8rem);
  }
}

@media (max-width: 620px) {
  :root {
    --ui-card-radius: 18px;
    --ui-panel-radius: 24px;
    --ui-section-space: 60px;
  }

  body {
    padding-bottom: calc(78px + env(safe-area-inset-bottom));
  }

  .container,
  .page-shell {
    width: min(calc(100% - 28px), 1200px);
  }

  .statewide-service-card,
  .statewide-service-copy {
    min-height: 500px;
  }

  .statewide-service-card::after {
    background: linear-gradient(0deg, rgba(5, 35, 59, .96) 0%, rgba(5, 35, 59, .82) 48%, rgba(5, 35, 59, .08) 82%);
  }

  .statewide-service-card > img {
    object-position: 58% center;
  }

  .statewide-service-copy {
    width: 100%;
    justify-content: flex-end;
    padding: 30px 24px;
  }

  main h1 {
    font-size: 2.75rem;
  }

  main h2 {
    font-size: 2rem;
  }

  main h3 {
    font-size: 1.1rem;
  }

  .quote-modal {
    align-items: end;
    padding: 10px;
  }

  .quote-dialog {
    width: 100%;
    max-height: calc(100vh - 20px);
    padding: 30px 20px 24px;
    border-radius: 22px;
  }

  .quote-modal-close {
    top: 13px;
    right: 13px;
    width: 38px;
    height: 38px;
  }

  .quote-dialog-header {
    padding-right: 34px;
  }

  .quote-dialog-header h2 {
    font-size: 2rem;
  }

  .quote-dialog-header > p:last-child {
    margin-bottom: 20px;
    font-size: .86rem;
  }

  .quote-form-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .quote-field-wide,
  .sms-consent,
  .quote-modal-actions,
  .quote-form-status {
    grid-column: auto;
  }

  .sms-consent {
    font-size: .67rem;
  }

  .quote-modal-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .quote-modal-actions .cta-button,
  .quote-modal-actions a {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .mobile-action-bar {
    position: fixed;
    z-index: 100;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: .82fr 1.18fr;
    gap: 8px;
    padding: 9px 10px calc(9px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .94);
    border-top: 1px solid rgba(8, 47, 80, .12);
    box-shadow: 0 -12px 30px rgba(8, 47, 80, .14);
    backdrop-filter: blur(16px);
  }

  .mobile-action-bar a {
    min-width: 0;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 8px;
    color: #082f50;
    border-radius: 15px;
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: .7rem;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
  }

  .mobile-action-quote {
    background: var(--cta-gold-pale);
    border: 1px solid rgba(186, 128, 18, .22);
  }

  .mobile-action-call {
    background: linear-gradient(135deg, var(--cta-gold-strong) 0%, #ffd86b 100%);
    box-shadow: 0 8px 18px rgba(189, 124, 10, .25);
  }

  .mobile-action-call span {
    font-size: .92rem;
  }
}

@media (max-width: 390px) {
  main h1 {
    font-size: 2.45rem;
  }

  .mobile-action-bar {
    grid-template-columns: .76fr 1.24fr;
    gap: 6px;
    padding-inline: 8px;
  }

  .mobile-action-bar a {
    gap: 5px;
    padding-inline: 6px;
    font-size: .65rem;
  }

  .mobile-action-call span {
    font-size: .84rem;
  }
}
