:root {
  --navy: #082f49;
  --navy-deep: #052238;
  --ink: #102433;
  --teal: #0e9f9a;
  --teal-dark: #087b78;
  --sky: #dff7f6;
  --cream: #fffaf0;
  --line: #d7e1e6;
  --muted: #5e6e78;
  --white: #ffffff;
  --yellow: #f3cf57;
  --error: #a93333;
  --shadow: 0 24px 70px rgba(8, 47, 73, .16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: "DM Sans", system-ui, sans-serif; }
a { color: inherit; }
button, input, select { font: inherit; }

.site-header {
  min-height: 74px;
  padding: 12px clamp(20px, 5vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
  border-bottom: 1px solid rgba(8, 47, 73, .11);
}
.brand { display: block; line-height: 0; }
.brand img { display: block; width: 212px; height: auto; }
.header-call { display: flex; align-items: baseline; gap: 10px; color: var(--muted); font-size: 14px; }
.header-call a { color: var(--navy); font-size: 18px; font-weight: 800; text-decoration: none; }

.hero {
  min-height: 760px;
  padding: clamp(36px, 5vw, 72px) clamp(20px, 5vw, 72px) 64px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(430px, .8fr);
  grid-template-areas: "copy form" "proof form";
  grid-template-rows: auto 1fr;
  gap: clamp(44px, 6vw, 96px);
  align-items: start;
  row-gap: 24px;
  background: linear-gradient(120deg, #f3fbfa 0%, var(--cream) 72%);
}
.hero-copy { max-width: 740px; grid-area: copy; }
.hero-proof { grid-area: proof; min-width: 0; }
.quote-card { grid-area: form; scroll-margin-top: 16px; }
.hero-actions { margin-top: 22px; }
.hero-actions p { margin: 9px 0 0; color: var(--muted); font-size: 13px; }
.quote-button { display: inline-flex; justify-content: center; align-items: center; gap: 14px; min-height: 52px; padding: 12px 24px; border-radius: 11px; background: var(--teal-dark); color: white; text-decoration: none; font-weight: 800; text-align: center; }
.quote-button:hover { background: #076a68; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--navy); outline-offset: 4px; }
.scope-card { padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: white; }
.scope-card h2 { margin-top: 0; }
.scope-card p { line-height: 1.6; color: var(--muted); }
.eyebrow, .step-label {
  margin: 0 0 14px;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
h1, h2 { font-family: "Manrope", system-ui, sans-serif; letter-spacing: -.035em; }
h1 { margin: 0; color: var(--navy); font-size: clamp(46px, 5.5vw, 78px); line-height: .99; }
h1 span { color: var(--teal-dark); }
.hero-lede { max-width: 650px; margin: 24px 0 0; color: #3f5665; font-size: clamp(18px, 1.7vw, 22px); line-height: 1.55; }
.trust-row { margin: 30px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--line); }
.trust-row div { padding: 15px 16px; display: flex; flex-direction: column; background: rgba(255,255,255,.82); }
.trust-row strong { color: var(--navy); font: 800 17px "Manrope", sans-serif; }
.trust-row span { margin-top: 3px; color: var(--muted); font-size: 12px; }
.hero-photo { position: relative; margin: 0; overflow: hidden; min-height: 245px; border-radius: 22px; background: var(--sky); }
.hero-photo img { width: 100%; height: 310px; display: block; object-fit: cover; object-position: center 38%; }
.hero-photo figcaption { position: absolute; left: 16px; bottom: 16px; padding: 9px 12px; border-radius: 999px; background: rgba(5,34,56,.88); color: white; font-size: 13px; font-weight: 700; }

.form-card { position: sticky; top: 18px; padding: 30px; border: 1px solid rgba(8,47,73,.12); border-radius: 24px; background: var(--white); box-shadow: var(--shadow); }
.form-intro h2 { margin: 0; color: var(--navy); font-size: 30px; line-height: 1.1; }
.form-intro > p:not(.step-label) { margin: 9px 0 24px; color: var(--muted); }
.offer-card { margin: -10px 0 24px; padding: 13px 14px; display: grid; gap: 3px; border: 1px solid #dfbf43; border-radius: 12px; background: #fff8d8; color: var(--navy); }
.offer-card[hidden] { display: none; }
.offer-card strong { font: 800 15px "Manrope", sans-serif; }
.offer-card span { color: #5c563d; font-size: 11px; line-height: 1.45; }
form { display: grid; gap: 15px; }
form[hidden], .form-intro[hidden] { display: none; }
label { display: grid; gap: 6px; }
label > span, legend { color: #304855; font-size: 13px; font-weight: 700; }
input, select { width: 100%; min-height: 48px; padding: 0 13px; border: 1px solid #c9d7de; border-radius: 10px; background: #fff; color: var(--ink); outline: none; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(14,159,154,.13); }
input::placeholder { color: #85939a; }
.field-grid { display: grid; gap: 12px; }
.field-grid.two { grid-template-columns: 1fr 1fr; }
.field-grid.address { grid-template-columns: minmax(0, 1fr) 110px; }
fieldset { margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: 14px; display: grid; gap: 12px; }
legend { padding: 0 5px; }
#places-autocomplete-host { min-height: 70px; }
#places-autocomplete-host[hidden] { display: none; }
#manual-address-fields[hidden] { display: none; }
.address-autocomplete { position: relative; }
.address-options { position: absolute; z-index: 30; top: calc(100% + 5px); left: 0; right: 0; overflow: hidden; border: 1px solid #b9cbd3; border-radius: 11px; background: white; box-shadow: 0 14px 30px rgba(8,47,73,.18); }
.address-options[hidden] { display: none; }
.address-option { width: 100%; min-height: 46px; padding: 10px 13px; justify-content: flex-start; border: 0; border-bottom: 1px solid #e3eaed; border-radius: 0; background: white; box-shadow: none; color: var(--ink); font-size: 13px; font-weight: 600; line-height: 1.35; text-align: left; }
.address-option:last-child { border-bottom: 0; }
.address-option:hover, .address-option[aria-selected="true"] { background: var(--sky); color: var(--navy); }
.manual-address-toggle { width: fit-content; min-height: 0; padding: 0; justify-self: start; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: var(--teal-dark); font-size: 12px; font-weight: 700; text-decoration: underline; }
.manual-address-toggle[hidden] { display: none; }
.manual-address-toggle:hover { background: transparent; color: var(--navy); }
.address-message { min-height: 0; margin: -5px 2px 0; color: var(--error); font-size: 12px; font-weight: 700; }
.address-message:empty { display: none; }
.address-message.is-success { color: var(--teal-dark); }
.website-field { position: absolute; left: -9999px; }
button, .secondary-button { min-height: 54px; border: 0; border-radius: 11px; background: var(--teal-dark); color: var(--white); font-weight: 800; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 12px; box-shadow: 0 10px 22px rgba(8,123,120,.22); }
button:hover, .secondary-button:hover { background: #076a68; }
button:disabled { opacity: .62; cursor: wait; }
.consent-copy { margin: -4px 8px 0; color: var(--muted); font-size: 11px; line-height: 1.45; text-align: center; }
.secure-note { margin: -4px 0 0; color: var(--muted); font-size: 11px; text-align: center; }
.form-message { min-height: 18px; margin: 0; color: var(--error); font-size: 13px; font-weight: 700; text-align: center; }
.success-panel { padding: 56px 10px 32px; text-align: center; }
.success-panel[hidden] { display: none; }
.success-icon { width: 58px; height: 58px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 50%; background: var(--sky); color: var(--teal-dark); font-size: 28px; font-weight: 900; }
.success-panel h2 { margin: 0; color: var(--navy); font-size: 34px; }
.success-panel p { margin: 12px auto 24px; max-width: 360px; color: var(--muted); line-height: 1.6; }
.success-panel .success-rush { margin-top: -10px; color: var(--navy); font-weight: 700; }
.success-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.secondary-button { padding: 0 22px; }
.text-button { background: var(--navy); box-shadow: 0 10px 22px rgba(5,34,56,.18); }
.text-button:hover { background: var(--navy-deep); }

.proof-strip { padding: 28px clamp(20px, 5vw, 72px); display: flex; align-items: center; justify-content: space-between; gap: 24px; background: var(--navy); color: white; }
.proof-strip p { margin: 0; font: 700 clamp(18px, 2vw, 26px) "Manrope", sans-serif; }
.proof-strip ul { display: flex; gap: 24px; margin: 0; padding: 0; list-style: none; color: #cfe8ee; font-size: 14px; }
.proof-strip li::before { content: "✓"; margin-right: 7px; color: var(--yellow); font-weight: 900; }
.how-it-works { padding: 72px clamp(20px, 8vw, 120px) 86px; display: grid; grid-template-columns: .85fr 1.15fr; gap: 72px; background: white; }
.how-it-works h2 { max-width: 540px; margin: 0; color: var(--navy); font-size: clamp(32px, 4vw, 50px); line-height: 1.08; }
.how-it-works ol { margin: 0; padding: 0; display: grid; gap: 14px; list-style: none; }
.how-it-works li { padding: 19px 20px; display: grid; grid-template-columns: 46px 1fr; gap: 14px; border: 1px solid var(--line); border-radius: 15px; }
.how-it-works li > span { color: var(--teal-dark); font: 800 15px "Manrope", sans-serif; }
.how-it-works strong { color: var(--navy); font-family: "Manrope", sans-serif; }
.how-it-works li p { margin: 3px 0 0; color: var(--muted); font-size: 14px; }
footer { padding: 25px clamp(20px, 5vw, 72px) 90px; display: flex; justify-content: space-between; gap: 20px; background: var(--navy-deep); color: #bcd0d9; font-size: 12px; }
footer p { margin: 0; }
footer div { display: flex; gap: 18px; }
.mobile-actions { display: none; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; grid-template-areas: "copy" "form" "proof"; grid-template-rows: auto; }
  .form-card { position: static; max-width: 720px; width: 100%; }
  .proof-strip { align-items: flex-start; flex-direction: column; }
  .how-it-works { grid-template-columns: 1fr; gap: 34px; }
}

@media (max-width: 620px) {
  .site-header { min-height: 64px; padding: 11px 18px; }
  .brand img { width: 142px; }
  .header-call span { display: none; }
  .header-call a { font-size: 14px; }
  .hero { min-height: 0; padding: 20px 16px 30px; gap: 22px; }
  .eyebrow { font-size: 11px; letter-spacing: .08em; margin-bottom: 12px; }
  h1 { font-size: clamp(30px, 8.5vw, 38px); line-height: 1.08; }
  .hero-lede { margin-top: 14px; font-size: 16px; line-height: 1.45; }
  .hero-actions { margin-top: 16px; }
  .hero-actions .quote-button { width: 100%; }
  .hero-actions p { text-align: center; font-size: 12px; }
  input, select { font-size: 16px; scroll-margin-bottom: 100px; }
  .trust-row { margin: 22px 0; grid-template-columns: 1fr; }
  .trust-row div { padding: 11px 14px; display: grid; grid-template-columns: 120px 1fr; align-items: center; }
  .trust-row span { margin: 0; }
  .hero-photo img { height: 230px; }
  .form-card { padding: 22px 18px; border-radius: 19px; }
  .form-intro h2 { font-size: 27px; }
  .field-grid.two { grid-template-columns: 1fr; }
  .field-grid.address { grid-template-columns: 1fr 108px; }
  .proof-strip ul { flex-direction: column; gap: 8px; }
  .how-it-works { padding: 52px 18px 64px; }
  footer { padding: 24px 18px calc(100px + env(safe-area-inset-bottom, 0px)); flex-direction: column; }
  .mobile-actions { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 10px; border-top: 1px solid var(--line); background: white; box-shadow: 0 -6px 24px rgba(5,34,56,.12); }
  .mobile-actions .quote-button { font-size: 15px; padding: 10px 12px; }
  .mobile-call { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 10px; border-radius: 11px; border: 1px solid var(--navy); color: var(--navy); background: white; text-decoration: none; font-weight: 800; }
  .call-digits { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .mobile-actions[hidden], body:has(#lead-form :focus) .mobile-actions { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
