:root {
  --ink: #102033;
  --muted: #637083;
  --line: #d9e3ee;
  --soft: #eef6fb;
  --ice: #f7fbfe;
  --white: #ffffff;
  --blue: #0f6fb3;
  --blue-dark: #084c81;
  --orange: #f2a13a;
  --shadow: 0 24px 70px rgba(16, 32, 51, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--ice);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px clamp(16px, 4vw, 56px);
  color: var(--white);
}
.site-header.solid {
  position: sticky;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.brand, .nav { display: flex; align-items: center; }
.brand { min-width: 0; gap: 10px; font-weight: 900; }
.brand-logo {
  width: 94px;
  height: auto;
  display: block;
  background: rgba(255, 255, 255, 0.92);
  padding: 5px 7px;
}
.nav { gap: clamp(12px, 2.4vw, 28px); font-size: 0.92rem; font-weight: 800; }
.nav a { min-height: 38px; display: inline-flex; align-items: center; }
.nav-cta { padding: 0 16px; color: var(--ink); background: var(--orange); }

.hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}
.hero-image, .hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-image { object-fit: cover; object-position: center; z-index: -2; }
.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 35, 61, 0.92) 0%, rgba(8, 35, 61, 0.72) 39%, rgba(8, 35, 61, 0.18) 82%),
    linear-gradient(0deg, rgba(8, 35, 61, 0.44), rgba(8, 35, 61, 0.04) 54%);
}
.hero-content {
  width: min(780px, calc(100% - 32px));
  margin: 0 0 clamp(48px, 9vw, 104px) clamp(16px, 6vw, 86px);
  padding-top: 112px;
  color: var(--white);
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { max-width: 12ch; margin: 0; font-size: clamp(3.6rem, 9vw, 8rem); line-height: 0.88; letter-spacing: 0; }
.hero p:not(.eyebrow) {
  max-width: 640px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.06rem, 2vw, 1.34rem);
}
.actions, .form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  padding: 0 20px;
  font-weight: 900;
  cursor: pointer;
}
.button.primary { color: var(--white); background: var(--blue); }
.button.secondary { color: var(--ink); background: var(--white); border-color: var(--line); }

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.trust-strip div {
  min-height: 108px;
  padding: 24px clamp(16px, 4vw, 56px);
  border-right: 1px solid var(--line);
}
.trust-strip div:last-child { border-right: 0; }
.trust-strip strong, .trust-strip span { display: block; }
.trust-strip strong { font-size: clamp(1.14rem, 2vw, 1.58rem); }
.trust-strip span { margin-top: 4px; color: var(--muted); }

.section { padding: clamp(64px, 10vw, 124px) clamp(16px, 5vw, 72px); }
.section-heading { max-width: 820px; margin-bottom: clamp(28px, 5vw, 52px); }
.section h2, .coverage h2, .intake-intro h1 {
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}
.service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.service-grid article, .feature-list article, .intake-form {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.service-grid article { min-height: 260px; padding: 24px; }
.card-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--white);
  background: var(--blue);
  font-weight: 950;
}
.service-grid h3, .feature-list h3 { margin: 24px 0 8px; font-size: 1.22rem; }
.service-grid p, .feature-list p, .coverage p, .intake-intro p, .small-note {
  margin: 0;
  color: var(--muted);
}
.split {
  display: grid;
  grid-template-columns: minmax(260px, 0.86fr) minmax(320px, 1.14fr);
  gap: clamp(28px, 6vw, 86px);
  align-items: start;
  background: var(--soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.feature-list { display: grid; gap: 16px; }
.feature-list article { padding: 24px; }
.feature-list h3 { margin-top: 0; }
.faq { background: var(--white); }
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.faq-grid article {
  padding: 24px;
  background: var(--ice);
  border: 1px solid var(--line);
}
.faq-grid h3 { margin: 0 0 10px; }
.faq-grid p { margin: 0; color: var(--muted); }
.coverage {
  background:
    linear-gradient(135deg, rgba(15, 111, 179, 0.1), rgba(242, 161, 58, 0.14)),
    var(--ice);
}
.coverage-panel { max-width: 850px; }
.coverage-panel p { max-width: 680px; margin-top: 18px; }
.area-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 820px;
  margin: 24px 0 28px;
  padding: 0;
  list-style: none;
}
.area-list li {
  padding: 10px 13px;
  color: var(--blue-dark);
  background: var(--white);
  border: 1px solid var(--line);
  font-weight: 850;
}
.footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  padding: 26px clamp(16px, 5vw, 72px);
  color: var(--white);
  background: var(--ink);
  font-weight: 800;
}

.blog-page, .intake-page { background: var(--ice); }
.blog-hero {
  padding: clamp(86px, 12vw, 138px) clamp(16px, 5vw, 72px) clamp(42px, 7vw, 72px);
  background:
    linear-gradient(135deg, rgba(15, 111, 179, 0.14), rgba(242, 161, 58, 0.16)),
    var(--white);
  border-bottom: 1px solid var(--line);
}
.blog-hero h1 { max-width: 13ch; }
.blog-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1.04rem, 2vw, 1.28rem);
}
.blog-index { display: grid; gap: 18px; padding: clamp(38px, 6vw, 72px) clamp(16px, 5vw, 72px); }
.blog-article {
  max-width: 980px;
  padding: clamp(24px, 4vw, 42px);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.article-meta { color: var(--blue-dark); font-size: 0.8rem; font-weight: 950; text-transform: uppercase; }
.blog-article h2, .blog-cta h2 { margin: 10px 0 18px; font-size: clamp(1.75rem, 3vw, 3rem); line-height: 1.04; }
.blog-article p { max-width: 840px; margin: 0 0 16px; color: var(--muted); }
.blog-article p:last-child { margin-bottom: 0; }
.blog-cta {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: clamp(42px, 7vw, 76px) clamp(16px, 5vw, 72px);
  background: var(--ink);
  color: var(--white);
}
.blog-cta .eyebrow { color: var(--orange); }
.blog-cta h2 { margin-bottom: 0; }

.intake-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(360px, 1.22fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: start;
  padding: clamp(42px, 7vw, 86px) clamp(16px, 5vw, 72px);
}
.intake-intro { position: sticky; top: 96px; }
.intake-intro h1 { max-width: 10ch; }
.intake-intro p { max-width: 460px; margin-top: 20px; }
.progress-card {
  max-width: 420px;
  margin-top: 28px;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
}
.progress-card span { font-weight: 900; }
.progress-track { height: 10px; margin-top: 12px; overflow: hidden; background: var(--soft); }
#progressBar { width: 25%; height: 100%; background: var(--blue); transition: width 180ms ease; }
.intake-form { min-height: 560px; padding: clamp(22px, 4vw, 38px); }
.form-step { display: none; }
.form-step.active { display: block; }
.form-step h2 { margin: 0 0 24px; font-size: clamp(1.7rem, 3vw, 2.7rem); line-height: 1.04; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
.choice-grid label {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--ice);
  font-weight: 800;
}
.choice-grid.compact label { min-height: 62px; }
input[type="radio"], input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
  flex: 0 0 auto;
}
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { display: grid; gap: 8px; margin-bottom: 18px; font-weight: 850; }
.field span { color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--white);
  padding: 14px;
  color: var(--ink);
}
.field textarea { resize: vertical; }
.photo-upload-group {
  margin: 0 0 18px;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--ice);
}
.photo-upload-group .field input[type="file"] {
  background: var(--white);
  cursor: pointer;
}
.small-note { font-size: 0.92rem; }
.summary-box {
  display: grid;
  gap: 10px;
  margin: 0 0 24px;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--ice);
}
.summary-box p { margin: 0; }
.summary-box strong { color: var(--blue-dark); }
#backBtn[disabled] { opacity: 0.42; cursor: not-allowed; }

@media (max-width: 980px) {
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .faq-grid, .blog-cta, .intake-shell { grid-template-columns: 1fr; }
  .intake-intro { position: static; }
}
@media (max-width: 760px) {
  .site-header { position: absolute; align-items: flex-start; padding: 14px; }
  .site-header.solid { position: sticky; }
  .nav { justify-content: flex-end; flex-wrap: wrap; row-gap: 4px; }
  .nav a:not(.nav-cta) { display: none; }
  .hero { min-height: 86svh; }
  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(8, 35, 61, 0.95) 0%, rgba(8, 35, 61, 0.78) 64%, rgba(8, 35, 61, 0.32) 100%),
      linear-gradient(0deg, rgba(8, 35, 61, 0.5), rgba(8, 35, 61, 0.08) 54%);
  }
  .hero-image { object-position: 64% center; }
  .hero-content { margin-left: 16px; margin-bottom: 44px; }
  .trust-strip, .field-row, .choice-grid, .footer { grid-template-columns: 1fr; }
  .trust-strip div { min-height: 86px; border-right: 0; border-bottom: 1px solid var(--line); }
  .trust-strip div:last-child { border-bottom: 0; }
  .footer { display: grid; }
}
@media (max-width: 540px) {
  .brand span:last-child { max-width: 140px; line-height: 1.04; }
  h1 { font-size: clamp(3rem, 17vw, 4.9rem); }
  .service-grid { grid-template-columns: 1fr; }
  .actions, .form-actions, .button { width: 100%; }
  .intake-form { min-height: auto; }
}
