:root {
  --ink: #111820;
  --navy: #12364a;
  --stone: #efe8dc;
  --water: #2d8fb7;
  --brick: #c9b38d;
  --copper: #a8663f;
  --paper: #fbf7ef;
  --line: rgba(17, 24, 32, 0.16);
  --muted: #59636a;
  --white: #ffffff;
  --radius: 6px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Instrument Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

/* ─── Header ─────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(251, 247, 239, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  line-height: 1;
}

.brand-name {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.brand-sub {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 5px;
}


.nav {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

.nav a {
  text-decoration: none;
}

/* ─── Hero ───────────────────────────────────────────────── */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  gap: clamp(28px, 6vw, 84px);
  align-items: start;
  padding: clamp(72px, 10vw, 120px) clamp(18px, 5vw, 72px) clamp(64px, 8vw, 108px);
  background:
    linear-gradient(90deg, rgba(18, 54, 74, 0.08), transparent 45%),
    var(--paper);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--copper);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: 'Instrument Sans', sans-serif;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: 'Fraunces', Georgia, serif;
}

h1 {
  max-width: 870px;
  margin-bottom: 22px;
  font-size: clamp(46px, 7.5vw, 90px);
  line-height: 0.97;
  letter-spacing: -0.01em;
  font-weight: 800;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(32px, 4.5vw, 54px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  font-weight: 700;
}

h3 {
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 600;
}

.lede {
  max-width: 670px;
  color: var(--muted);
  font-size: clamp(17px, 1.8vw, 20px);
}

.hero-actions,
.inline-control {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 32px;
}

/* ─── Buttons ────────────────────────────────────────────── */

.button {
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  cursor: pointer;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.15s, background 0.15s;
}

.button.primary {
  background: var(--ink);
  color: var(--stone);
}

.button.primary:hover {
  opacity: 0.85;
}

.button.secondary {
  background: transparent;
  color: var(--ink);
}

.button.secondary:hover {
  background: rgba(17, 24, 32, 0.06);
}

.button.wide {
  width: 100%;
}

/* ─── Hero Panel ─────────────────────────────────────────── */

.hero-panel {
  padding: 28px;
  background: var(--navy);
  color: var(--stone);
  border-radius: 10px;
  box-shadow: 16px 16px 0 var(--brick);
  position: sticky;
  top: 88px;
}

.panel-label {
  margin-bottom: 10px;
  color: rgba(239, 232, 220, 0.65);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.panel-intro {
  color: rgba(239, 232, 220, 0.82);
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 22px;
}

.hero-address-control {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.hero-address-input {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(239, 232, 220, 0.25);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  color: var(--stone);
  font: inherit;
  font-size: 15px;
  padding: 10px 14px;
  outline: none;
  transition: background 0.15s, border-color 0.15s;
}

.hero-address-input::placeholder {
  color: rgba(239, 232, 220, 0.4);
}

.hero-address-input:focus {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(239, 232, 220, 0.5);
}

.hero-cta-btn {
  background: var(--stone);
  color: var(--navy);
  border-color: var(--stone);
  font-weight: 700;
  justify-content: center;
  width: 100%;
  min-height: 52px;
}

.hero-cta-btn:hover {
  background: var(--white);
  border-color: var(--white);
  opacity: 1;
}

.mini-grid,
.trust-strip,
.form-grid,
.founders {
  display: grid;
  gap: 14px;
}

.mini-grid {
  grid-template-columns: repeat(3, 1fr);
}

.mini-grid span {
  padding: 12px 10px;
  background: rgba(239, 232, 220, 0.1);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  color: rgba(239, 232, 220, 0.9);
}

/* ─── Trust Strip ────────────────────────────────────────── */

.trust-strip {
  grid-template-columns: repeat(3, 1fr);
  padding: 24px clamp(18px, 5vw, 72px);
  background: var(--ink);
  color: var(--stone);
}

.trust-strip div {
  border-left: 1px solid rgba(239, 232, 220, 0.2);
  padding-left: 20px;
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip strong {
  font-weight: 700;
  margin-bottom: 2px;
}

.trust-strip span {
  color: rgba(239, 232, 220, 0.65);
  font-size: 14px;
}

/* ─── Sections ───────────────────────────────────────────── */

.section,
.offer-section {
  padding: clamp(56px, 8vw, 112px) clamp(18px, 5vw, 72px);
}

.split,
.about {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(28px, 6vw, 80px);
}

/* ─── Steps ──────────────────────────────────────────────── */

.steps {
  display: grid;
  gap: 16px;
}

.steps article,
.founder-card,
.faq-item,
.estimator,
.result {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.48);
}

.steps article {
  padding: 22px;
}

.steps span {
  display: inline-block;
  color: var(--copper);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

/* ─── About / Founders ───────────────────────────────────── */

.about {
  background: var(--stone);
}

.about-copy p:not(.eyebrow) {
  max-width: 680px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.founders {
  grid-template-columns: repeat(2, 1fr);
}

.founder-card {
  padding: 18px;
}

.founder-photo {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
  margin-bottom: 16px;
  border-radius: 6px;
  background: var(--stone);
}

/* ─── Offer Section ──────────────────────────────────────── */

.offer-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(26px, 5vw, 64px);
  align-items: start;
  background: var(--navy);
  color: var(--stone);
}

.offer-intro p:not(.eyebrow) {
  color: rgba(239, 232, 220, 0.76);
  font-size: 17px;
  line-height: 1.65;
}

.estimator,
.result {
  padding: clamp(18px, 4vw, 30px);
  background: var(--paper);
  color: var(--ink);
}

/* ─── Form Progress ──────────────────────────────────────── */

.form-progress {
  display: flex;
  gap: 0;
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.progress-step {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.38;
  transition: opacity 0.25s;
}

.progress-step.active {
  opacity: 1;
  color: var(--ink);
}

.progress-step.complete {
  opacity: 0.65;
  color: var(--copper);
}

.progress-step > span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  background: rgba(17, 24, 32, 0.1);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 900;
  color: var(--muted);
  flex-shrink: 0;
  transition: background 0.25s, color 0.25s;
}

.progress-step.active > span {
  background: var(--ink);
  color: var(--stone);
}

.progress-step.complete > span {
  background: var(--copper);
  color: var(--white);
}

/* ─── Form Steps ─────────────────────────────────────────── */

.form-step {
  margin-bottom: 22px;
}

.form-step-panel {
  margin-top: 26px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.form-step-panel.hidden {
  display: none;
}

@keyframes step-reveal {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.form-step-panel:not(.hidden) {
  animation: step-reveal 0.3s ease forwards;
}

.step-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.step-heading > span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  background: var(--ink);
  color: var(--stone);
  border-radius: 4px;
  font-weight: 900;
  font-size: 14px;
  flex-shrink: 0;
}

.step-continue-btn {
  margin-top: 8px;
}

/* ─── Form Fields ────────────────────────────────────────── */

label,
legend {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

input,
select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  padding: 10px 12px;
  transition: border-color 0.15s;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--navy);
}

.inline-control input {
  flex: 1 1 280px;
}

.address-control {
  position: relative;
}

.address-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  box-shadow: 0 18px 42px rgba(17, 24, 32, 0.16);
}

.address-suggestion {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  padding: 12px 14px;
  text-align: left;
}

.address-suggestion:hover,
.address-suggestion:focus {
  background: var(--stone);
  outline: none;
}

.address-suggestion strong,
.address-suggestion span {
  display: block;
}

.address-suggestion span {
  color: var(--muted);
  font-size: 13px;
}

.suggestions-credit {
  padding: 8px 14px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}

.condition-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0 0 26px;
  padding: 0;
  border: 0;
}

.condition-group legend {
  grid-column: 1 / -1;
}

.condition-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--ink);
  letter-spacing: 0;
  text-transform: none;
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.condition-group label:hover {
  border-color: var(--navy);
  background: rgba(18, 54, 74, 0.04);
}

.condition-group input {
  width: auto;
  min-height: auto;
}

.property-preview {
  display: grid;
  grid-template-columns: minmax(140px, 0.55fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin: 0 0 22px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.property-preview img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 5px;
  background: var(--stone);
}

.form-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.turnstile-slot {
  margin-top: 14px;
}

.result {
  grid-column: 2;
  margin-top: 18px;
}

.result strong {
  display: block;
  margin: 8px 0 16px;
  color: var(--navy);
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1;
}

.range-note {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 0;
}

/* ─── Offer Confidence Badge ─────────────────────────────── */

.confidence-badge {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.5;
  margin-top: 4px;
}

.confidence-badge__label {
  font-weight: 700;
  white-space: nowrap;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.confidence-badge__copy {
  color: inherit;
  opacity: 0.85;
}

.confidence-badge--high {
  background: color-mix(in srgb, #2d7a5f 12%, transparent);
  color: #1a5c45;
  border-left: 3px solid #2d7a5f;
}

.confidence-badge--medium {
  background: color-mix(in srgb, #b07d2e 10%, transparent);
  color: #7a5520;
  border-left: 3px solid #b07d2e;
}

.confidence-badge--low {
  background: color-mix(in srgb, var(--copper) 10%, transparent);
  color: var(--brick);
  border-left: 3px solid var(--copper);
}

/* ─── Lead Capture (inside result) ──────────────────────── */

.lead-capture {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.lead-intro {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 22px;
}

.lead-form .form-grid {
  margin-bottom: 16px;
}

.lead-confirmed {
  padding: 18px 20px;
  background: rgba(18, 54, 74, 0.06);
  border-radius: var(--radius);
  border-left: 3px solid var(--copper);
}

.lead-confirmed p {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
}

.result-manual {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  margin-top: 8px;
}

/* ─── FAQ ────────────────────────────────────────────────── */

.faq-header {
  margin-bottom: 36px;
}

.faq-header h2 {
  margin-bottom: 0;
}

.faq-list {
  display: grid;
  gap: 8px;
  max-width: 860px;
}

.faq-item {
  padding: 0;
  border-radius: 8px;
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  user-select: none;
  gap: 16px;
  transition: background 0.15s;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 22px;
  font-weight: 400;
  color: var(--copper);
  flex-shrink: 0;
  line-height: 1;
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  content: '\2212';
}

.faq-item summary:hover {
  background: rgba(255, 255, 255, 0.8);
}

.faq-item[open] summary {
  border-bottom: 1px solid var(--line);
}

.faq-item p {
  margin: 0;
  padding: 18px 24px 22px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 15px;
}

/* ─── Hero Input Wrap (autocomplete positioning in dark panel) ── */

.hero-input-wrap {
  position: relative;
}

.hero-input-wrap .address-suggestions {
  /* Override default white bg — dark panel context still looks fine,
     the suggestions box is white which creates clear contrast */
  top: calc(100% + 6px);
}

/* ─── Contact Section ────────────────────────────────────── */

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
  padding: clamp(56px, 8vw, 112px) clamp(18px, 5vw, 72px);
  background: var(--stone);
}

.contact-text p:not(.eyebrow) {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
  max-width: 480px;
}

.contact-text h2 {
  margin-bottom: 14px;
}

.quick-contact {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.quick-fields {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.quick-fields input,
.quick-fields textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  padding: 12px 14px;
  transition: border-color 0.15s;
  resize: vertical;
}

.quick-fields textarea {
  min-height: 100px;
  line-height: 1.55;
}

.quick-fields input:focus,
.quick-fields textarea:focus {
  outline: none;
  border-color: var(--navy);
}

.quick-fields input::placeholder,
.quick-fields textarea::placeholder {
  color: rgba(17, 24, 32, 0.35);
}

/* ─── Footer ─────────────────────────────────────────────── */

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 5vw, 72px);
  background: var(--ink);
  color: var(--stone);
  font-size: 14px;
}

.site-footer strong {
  font-weight: 700;
}

.site-footer span {
  color: rgba(239, 232, 220, 0.6);
}

/* ─── Utilities ──────────────────────────────────────────── */

.hidden {
  display: none;
}

/* ─── Responsive ─────────────────────────────────────────── */

@media (max-width: 900px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
  }

  .hero,
  .split,
  .about,
  .offer-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    position: static;
    /* Remove the right shadow offset — causes horizontal overflow on mobile */
    box-shadow: 0 12px 0 var(--brick);
  }

  .trust-strip,
  .founders,
  .form-grid,
  .condition-group,
  .mini-grid {
    grid-template-columns: 1fr;
  }

  .result {
    grid-column: auto;
  }

  .faq-list {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: clamp(40px, 8vw, 64px) clamp(16px, 5vw, 24px) clamp(40px, 8vw, 64px);
    gap: 32px;
  }

  h1 {
    font-size: clamp(38px, 10vw, 56px);
  }

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

  .hero-actions .button {
    width: 100%;
    justify-content: center;
  }

  .nav a {
    font-size: 12px;
  }

  .confidence-badge {
    flex-direction: column;
    gap: 4px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}
