/* ============================================================
   Mikud Mortgages — מיקוד משכנתאות
   Design system: warm-cream canvas, sage-forest accent,
   editorial Frank Ruhl Libre + Assistant.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Assistant:wght@400;500;600;700&family=Frank+Ruhl+Libre:wght@500;700&display=swap');

/* -- Tokens ------------------------------------------------- */
:root {
  --canvas: #F6F1E8;
  --surface: #FBF8F1;
  --surface-alt: #EFE9DC;
  --text: #14202E;
  --text-soft: #6E6457;
  --hairline: #E2D9C6;
  --accent: #4A6B4F;
  --accent-hover: #3A5640;
  --accent-soft: #E6EDE4;
  --highlight: #B8924E;
  --inverse: #FBF8F1;

  --radius-card: 16px;
  --radius-input: 12px;
  --radius-pill: 999px;

  --shadow-base: 0 1px 2px rgba(20, 32, 46, 0.04), 0 4px 12px rgba(20, 32, 46, 0.05);
  --shadow-elev: 0 2px 4px rgba(20, 32, 46, 0.05), 0 18px 40px rgba(20, 32, 46, 0.08);
  --shadow-nav: 0 1px 0 rgba(20, 32, 46, 0.04);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --t: 220ms;

  --container: 1180px;
  --gutter-d: 48px;
  --gutter-m: 24px;

  --serif: "Frank Ruhl Libre", Georgia, "Times New Roman", serif;
  --sans: "Assistant", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* -- Reset & base ------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 17px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.7;
  font-feature-settings: "kern", "liga";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--t) var(--ease);
}

a:hover {
  color: var(--accent-hover);
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

/* -- Typography -------------------------------------------- */
h1, h2, h3, h4 {
  margin: 0 0 0.6em;
  color: var(--text);
  letter-spacing: -0.005em;
}

.h1-display,
h1.h1-display {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.h2-display,
h2.h2-display {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  line-height: 1.2;
}

.h3 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.3;
}

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 1rem;
}

.lead {
  font-size: 1.18rem;
  line-height: 1.65;
  color: var(--text);
}

.caption {
  font-weight: 500;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-soft);
}

/* -- Layout helpers ---------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter-m);
}

@media (min-width: 768px) {
  .container {
    padding-inline: var(--gutter-d);
  }
}

.section {
  padding-block: 64px;
  position: relative;
}

@media (min-width: 768px) {
  .section {
    padding-block: 96px;
  }
}

.section--alt {
  background: var(--surface-alt);
}

.section--soft {
  background: var(--accent-soft);
}

.section + .section {
  border-top: 1px solid var(--hairline);
}

.section--alt + .section,
.section + .section--alt {
  border-top: none;
}

.section-head {
  text-align: center;
  max-width: 760px;
  margin-inline: auto;
  margin-bottom: 56px;
}

.section-head .eyebrow {
  display: block;
}

/* -- Buttons ----------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background var(--t) var(--ease), color var(--t) var(--ease),
    transform var(--t) var(--ease), border-color var(--t) var(--ease);
  border: 1.5px solid transparent;
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--inverse);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--inverse);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn-secondary:hover {
  background: var(--accent-soft);
  color: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-block {
  width: 100%;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* -- Nav --------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  box-shadow: var(--shadow-nav);
  border-bottom: 1px solid var(--hairline);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 18px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.nav-brand img {
  max-height: 44px;
  width: auto;
}

.nav-brand-text {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--text);
}

.nav-list {
  display: none;
  gap: 28px;
  align-items: center;
}

.nav-link {
  font-family: var(--sans);
  font-weight: 500;
  color: var(--text);
  font-size: 0.98rem;
  position: relative;
  padding-block: 4px;
  transition: color var(--t) var(--ease);
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--accent);
}

.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -2px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.nav-cta {
  padding: 10px 22px;
  font-size: 0.9rem;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--t) var(--ease), opacity var(--t) var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 0 24px;
  border-top: 1px solid var(--hairline);
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile .nav-link {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline);
}

.nav-mobile .nav-link:last-child {
  border-bottom: none;
}

.nav-mobile .btn {
  margin-top: 12px;
  align-self: flex-start;
}

@media (min-width: 960px) {
  .nav-list {
    display: flex;
  }
  .nav-toggle {
    display: none;
  }
  .nav-mobile {
    display: none !important;
  }
}

/* Minimal nav for funnel/quote */
.nav--minimal .nav-inner {
  justify-content: center;
}

.nav--minimal .nav-list,
.nav--minimal .nav-toggle,
.nav--minimal .nav-cta {
  display: none;
}

/* -- Hero -------------------------------------------------- */
.hero {
  position: relative;
  background-color: var(--text);
  color: var(--inverse);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero--full {
  min-height: 86vh;
  display: flex;
  align-items: center;
  padding-block: 120px;
}

.hero--compact {
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding-block: 96px;
}

.hero--mid {
  min-height: 55vh;
  display: flex;
  align-items: center;
  padding-block: 96px;
}

.hero--service {
  min-height: 40vh;
  display: flex;
  align-items: center;
  padding-block: 80px;
  background: linear-gradient(135deg, var(--canvas) 0%, var(--surface-alt) 100%);
  color: var(--text);
}

.hero--gradient {
  background: linear-gradient(135deg, var(--canvas) 0%, var(--surface-alt) 100%);
  color: var(--text);
}

.hero--parallax {
  background-attachment: fixed;
}

@media (max-width: 900px) {
  .hero--parallax {
    background-attachment: scroll;
  }
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20, 32, 46, var(--hero-overlay, 0.28));
  pointer-events: none;
}

.hero--service::before,
.hero--gradient::before {
  content: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
  align-items: center;
}

@media (min-width: 960px) {
  .hero--full .hero-inner {
    grid-template-columns: 1.4fr 1fr;
  }
}

.hero-eyebrow {
  color: var(--inverse);
  opacity: 0.85;
}

.hero--service .hero-eyebrow,
.hero--gradient .hero-eyebrow {
  color: var(--text-soft);
  opacity: 1;
}

.hero h1 {
  color: inherit;
  margin-bottom: 0.4em;
}

.hero-lead {
  font-size: 1.18rem;
  line-height: 1.65;
  max-width: 560px;
  margin-bottom: 36px;
  opacity: 0.92;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero--full .btn-secondary {
  color: var(--inverse);
  border-color: rgba(251, 248, 241, 0.55);
}

.hero--full .btn-secondary:hover {
  background: rgba(251, 248, 241, 0.1);
  border-color: var(--inverse);
  color: var(--inverse);
}

.hero-aside {
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.85;
  border-inline-start: 2px solid rgba(251, 248, 241, 0.4);
  padding-inline-start: 20px;
}

.hero--full .hero-aside {
  align-self: end;
}

.hero--service .hero-inner,
.hero--gradient .hero-inner {
  grid-template-columns: 1fr;
  text-align: start;
}

/* -- Trust strip / stats ----------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 24px;
}

@media (min-width: 768px) {
  .stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat {
  text-align: center;
}

.stat-num {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  color: var(--highlight);
  line-height: 1;
  display: block;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--text-soft);
  font-weight: 500;
}

/* -- Value props ------------------------------------------- */
.values {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 768px) {
  .values {
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
  }
}

.value {
  position: relative;
  padding-top: 24px;
}

.value-num {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 2.75rem;
  color: var(--highlight);
  line-height: 1;
  display: block;
  margin-bottom: 16px;
}

.value h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.55rem;
  margin-bottom: 12px;
}

/* -- Cards / services -------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 32px;
  box-shadow: var(--shadow-base);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-elev);
}

@media (min-width: 768px) {
  .card {
    padding: 40px;
  }
}

.card-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 20px;
  background: var(--accent-soft);
  border-radius: 12px;
}

.card-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.45rem;
  margin-bottom: 12px;
  line-height: 1.25;
}

.card p {
  color: var(--text-soft);
  margin-bottom: 20px;
  flex: 1;
}

.card-link {
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
  margin-top: auto;
}

.card-link:hover {
  color: var(--accent-hover);
}

.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .cards-grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
  .cards-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* -- Timeline / how-it-works ------------------------------- */
.timeline {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  position: relative;
}

@media (min-width: 768px) {
  .timeline {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
  .timeline--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.tl-step {
  position: relative;
  padding-top: 12px;
}

.tl-num {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 2.5rem;
  color: var(--highlight);
  line-height: 1;
  display: block;
  margin-bottom: 16px;
}

.tl-step h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.tl-step p {
  color: var(--text-soft);
  font-size: 1rem;
}

/* -- Pull-quote / testimonial ------------------------------ */
.pullquote {
  max-width: 880px;
  margin-inline: auto;
  text-align: center;
  position: relative;
  padding-top: 48px;
}

.pullquote::before {
  content: "\201E";
  font-family: var(--serif);
  font-size: 7rem;
  color: var(--highlight);
  line-height: 0.6;
  position: absolute;
  inset-inline-start: 50%;
  top: 0;
  transform: translateX(-50%);
}

.pullquote blockquote {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  line-height: 1.4;
  color: var(--text);
  margin: 0 0 24px;
}

.pullquote cite {
  font-style: normal;
  font-weight: 600;
  color: var(--text-soft);
  letter-spacing: 0.04em;
  font-size: 0.95rem;
}

.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 32px;
  box-shadow: var(--shadow-base);
}

.testimonial-card .quote {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--text);
  margin-bottom: 20px;
}

.testimonial-card cite {
  font-style: normal;
  font-weight: 600;
  color: var(--text-soft);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}

/* -- Inline contact band ----------------------------------- */
.split {
  display: grid;
  gap: 48px;
  grid-template-columns: 1fr;
  align-items: start;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}

.split--reverse {
  direction: ltr;
}

.split--reverse > * {
  direction: rtl;
}

/* -- Forms ------------------------------------------------- */
.form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 640px) {
  .form-row--2 {
    grid-template-columns: 1fr 1fr;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
}

.field input,
.field select,
.field textarea {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-input);
  padding: 14px 18px;
  font-size: 1rem;
  color: var(--text);
  font-family: var(--sans);
  width: 100%;
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
  appearance: none;
  -webkit-appearance: none;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.5;
}

.field select {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8' fill='none' stroke='%234A6B4F' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M1 1l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: left 18px center;
  padding-inline-start: 18px;
  padding-inline-end: 44px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(74, 107, 79, 0.3);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-soft);
  opacity: 0.6;
}

.field-help {
  color: var(--text-soft);
  font-size: 0.85rem;
}

.form-microcopy {
  font-size: 0.85rem;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-microcopy svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
  flex-shrink: 0;
}

/* Form result message */
.form-result {
  margin-top: 12px;
  padding: 16px 20px;
  border-radius: var(--radius-card);
  font-size: 0.95rem;
  font-weight: 500;
  display: none;
  align-items: center;
  gap: 12px;
  border: 1px solid transparent;
}

.form-result.show {
  display: flex;
}

.form-result.success {
  background: var(--accent-soft);
  color: var(--accent-hover);
  border-color: var(--accent);
}

.form-result.error {
  background: #FCEFEA;
  color: #903820;
  border-color: #E0A998;
}

.form-result svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.7;
  fill: none;
}

/* -- Adjacent services list -------------------------------- */
.adj-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--hairline);
}

@media (min-width: 768px) {
  .adj-list {
    grid-template-columns: repeat(3, 1fr);
    border-top: none;
  }
}

.adj-list li {
  padding: 24px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 1.05rem;
  font-weight: 500;
}

@media (min-width: 768px) {
  .adj-list li {
    padding: 0 32px;
    border-bottom: none;
    border-inline-start: 1px solid var(--hairline);
  }
  .adj-list li:first-child {
    border-inline-start: none;
    padding-inline-start: 0;
  }
}

/* -- About / mission narrative ----------------------------- */
.editorial {
  max-width: 720px;
  margin-inline: auto;
  font-size: 1.1rem;
  line-height: 1.8;
}

.editorial p {
  margin-bottom: 1.4em;
}

.editorial-pullquote {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.6rem;
  line-height: 1.4;
  color: var(--text);
  border-inline-start: 3px solid var(--highlight);
  padding-inline-start: 28px;
  margin: 36px 0;
}

/* -- About team inline image ------------------------------- */
.team-image {
  max-width: 60%;
  margin: 32px auto 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-base);
}

.team-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* -- Reassurance strip ------------------------------------- */
.reassure {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 28px;
  text-align: center;
}

.reassure-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  color: var(--text-soft);
}

.reassure-item svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent);
  stroke-width: 1.7;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.reassure-line {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  text-align: center;
  color: var(--text);
}

/* -- Service page : what-it-includes ----------------------- */
.what-includes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}

@media (min-width: 900px) {
  .what-includes {
    grid-template-columns: 1.2fr 1fr;
    gap: 64px;
  }
}

.checklist {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 32px;
}

.checklist h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.25rem;
  margin-bottom: 18px;
  color: var(--text);
}

.checklist ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.6;
}

.checklist li::before {
  content: "";
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 2px;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%234A6B4F' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='20 6 9 17 4 12'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: center;
}

/* -- Service inline house image ---------------------------- */
.service-inline-img {
  max-width: 70%;
  margin: 40px auto 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-base);
}

.service-inline-img img {
  width: 100%;
  height: auto;
  display: block;
}

/* -- House illustration block (for service-3 / 4) ---------- */
.house-illu {
  max-width: 380px;
  margin: 40px auto 0;
  background: var(--accent-soft);
  border-radius: var(--radius-card);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.house-illu svg {
  width: 100%;
  height: auto;
  max-width: 220px;
  stroke: var(--accent);
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* -- FAQ accordion ----------------------------------------- */
.faq-group {
  margin-bottom: 56px;
}

.faq-group h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.85rem;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hairline);
}

.accordion {
  display: flex;
  flex-direction: column;
}

.accordion-item {
  border-bottom: 1px solid var(--hairline);
}

.accordion-item:first-child {
  border-top: 1px solid var(--hairline);
}

.accordion-trigger {
  width: 100%;
  background: transparent;
  border: none;
  padding: 22px 0;
  text-align: start;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  line-height: 1.4;
}

.accordion-trigger:hover {
  color: var(--accent);
}

.accordion-chevron {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  stroke: var(--accent);
  stroke-width: 1.7;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--t) var(--ease);
}

.accordion-item.open .accordion-chevron {
  transform: rotate(180deg);
}

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 320ms var(--ease);
}

.accordion-item.open .accordion-panel {
  max-height: 500px;
}

.accordion-content {
  padding-bottom: 24px;
  color: var(--text-soft);
  line-height: 1.7;
  font-size: 1rem;
  max-width: 760px;
}

/* -- Multi-step (funnel / quote) --------------------------- */
.funnel-page,
.quote-step {
  display: none;
}

.funnel-page.active,
.quote-step.active {
  display: block;
  animation: stepFade 320ms var(--ease) both;
}

@keyframes stepFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.progress-dots {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
}

.progress-dots .dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface);
  border: 1.5px solid var(--hairline);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-soft);
  font-family: var(--serif);
  transition: all var(--t) var(--ease);
}

.progress-dots .dot.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--inverse);
}

.progress-dots .dot.done {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-hover);
}

.progress-line {
  flex: 0 0 28px;
  height: 1px;
  background: var(--hairline);
}

.step-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
}

.radio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 600px) {
  .radio-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.radio-card {
  display: block;
  background: var(--surface);
  border: 1.5px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 20px 24px;
  cursor: pointer;
  transition: border-color var(--t) var(--ease), background var(--t) var(--ease),
    transform var(--t) var(--ease);
}

.radio-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-card .rc-title {
  display: block;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.radio-card .rc-desc {
  display: block;
  font-size: 0.92rem;
  color: var(--text-soft);
  line-height: 1.5;
}

.radio-card:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.radio-card:hover {
  border-color: var(--accent);
}

/* -- Quote form layout ------------------------------------- */
.quote-layout {
  display: grid;
  gap: 48px;
  grid-template-columns: 1fr;
  align-items: start;
}

@media (min-width: 1000px) {
  .quote-layout {
    grid-template-columns: 1.6fr 1fr;
  }
}

.quote-section {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 32px;
  margin-bottom: 24px;
}

.quote-section h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.45rem;
  margin-bottom: 8px;
}

.quote-section .qs-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--highlight);
  font-weight: 600;
  margin-bottom: 4px;
  display: block;
}

.quote-section p {
  color: var(--text-soft);
  margin-bottom: 24px;
}

.quote-summary {
  position: sticky;
  top: 96px;
  background: var(--surface-alt);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 28px;
}

.quote-summary h4 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.summary-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.summary-list li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--hairline);
  font-size: 0.92rem;
}

.summary-list li:last-child {
  border-bottom: none;
}

.summary-list .sl-label {
  color: var(--text-soft);
}

.summary-list .sl-value {
  color: var(--text);
  font-weight: 600;
  text-align: end;
  word-break: break-word;
}

.summary-list .sl-value.pending {
  color: var(--text-soft);
  font-weight: 400;
  font-style: italic;
}

/* -- Contact details block --------------------------------- */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--hairline);
}

.contact-detail:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.contact-detail-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  background: var(--accent-soft);
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.contact-detail-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent);
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-detail .label {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-soft);
  display: block;
  margin-bottom: 4px;
}

.contact-detail a,
.contact-detail .value {
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--text);
  display: block;
}

.contact-detail a:hover {
  color: var(--accent);
}

.contact-detail .sub {
  font-size: 0.92rem;
  color: var(--text-soft);
  font-weight: 400;
  margin-top: 2px;
  display: block;
}

/* -- CTA band ---------------------------------------------- */
.cta-band {
  text-align: center;
}

.cta-band h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.85rem, 3.2vw, 2.5rem);
  line-height: 1.25;
  margin-bottom: 24px;
  max-width: 720px;
  margin-inline: auto;
}

.cta-band p {
  color: var(--text-soft);
  max-width: 560px;
  margin: 0 auto 28px;
  font-size: 1.05rem;
}

.cta-band .cta-row {
  justify-content: center;
}

/* -- Page header (alt band) -------------------------------- */
.page-header {
  background: var(--surface-alt);
  padding-block: 80px;
  border-bottom: 1px solid var(--hairline);
}

.page-header-inner {
  max-width: 760px;
}

.page-header h1 {
  margin-bottom: 16px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 1.18;
}

.page-header .lead {
  color: var(--text-soft);
}

/* -- Long-form (privacy) ----------------------------------- */
.longform {
  max-width: 720px;
  margin-inline: auto;
}

.longform h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.6rem;
  margin: 36px 0 12px;
  color: var(--text);
}

.longform h2:first-child {
  margin-top: 0;
}

.longform p,
.longform li {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 1em;
}

.longform ul {
  list-style: disc;
  padding-inline-start: 22px;
  margin-bottom: 1.4em;
}

.longform ul li {
  margin-bottom: 0.4em;
}

.legal-meta {
  font-size: 0.85rem;
  color: var(--text-soft);
  margin-top: 12px;
}

/* -- Footer ------------------------------------------------ */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--hairline);
  padding-top: 64px;
  padding-bottom: 24px;
  color: var(--text);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  margin-bottom: 48px;
}

@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 36px;
  }
}

.footer-brand-logo {
  max-height: 52px;
  width: auto;
  margin-bottom: 16px;
}

.footer-tagline {
  color: var(--text-soft);
  font-size: 0.95rem;
  max-width: 280px;
  line-height: 1.6;
}

.footer-col h4 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 16px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col li a,
.footer-col li {
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 500;
}

.footer-col li a:hover {
  color: var(--accent);
}

.footer-meta {
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid var(--hairline);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-soft);
}

.footer-signature {
  font-size: 0.75rem;
  text-align: center;
  color: var(--text-soft);
  opacity: 0.6;
  margin: 0;
}

.footer-signature a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-signature a:hover {
  color: var(--accent);
}

.footer--compact {
  padding: 28px 0;
}

.footer--compact .footer-compact-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  text-align: center;
}

.footer--compact .footer-compact-row a {
  color: var(--text);
  font-weight: 600;
}

/* -- Reveal animation -------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
  will-change: opacity, transform;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.reveal.stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}

.reveal.stagger.in > * {
  opacity: 1;
  transform: translateY(0);
}

.reveal.stagger.in > *:nth-child(1) { transition-delay: 0ms; }
.reveal.stagger.in > *:nth-child(2) { transition-delay: 80ms; }
.reveal.stagger.in > *:nth-child(3) { transition-delay: 160ms; }
.reveal.stagger.in > *:nth-child(4) { transition-delay: 240ms; }
.reveal.stagger.in > *:nth-child(5) { transition-delay: 320ms; }
.reveal.stagger.in > *:nth-child(6) { transition-delay: 400ms; }

/* -- Misc utility ------------------------------------------ */
.text-center {
  text-align: center;
}

.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 32px; }

.muted {
  color: var(--text-soft);
}

.divider {
  height: 1px;
  background: var(--hairline);
  border: none;
  margin: 32px 0;
}

/* Compact nav for funnel/quote */
.nav--minimal .nav-brand {
  margin-inline: auto;
}

/* Responsive container override for hero on mobile */
@media (max-width: 600px) {
  .hero--full {
    min-height: auto;
    padding-block: 80px;
  }
  .hero-aside {
    border-inline-start: none;
    border-top: 2px solid rgba(251, 248, 241, 0.4);
    padding-inline-start: 0;
    padding-top: 16px;
    margin-top: 16px;
  }
}
