/* The Housing Counselors — landing page
   Built from Figma: HC Landing Page (node 1009:789) */

:root {
  --green-900: #071c10;
  --green-800: #0b6336;
  --green-700: #108e4d;
  --green-600: #15944e;
  --green-500: #48cf7c;
  --green-ink: #082a18;
  --green-check: #073b20;
  --green-100: #daf4e3;
  --green-50: #e9f8ee;
  --mint: #bff3d1;
  --star: #7ee7a3;

  --ink: #12231a;
  --ink-2: #30443a;
  --ink-3: #31483b;
  --body: #3d5146;
  --muted: #5d6b63;
  --muted-2: #7a887f;
  --placeholder: #757575;

  --border: #dce9e1;
  --border-input: #ccdcd2;
  --divider: #edf2ee;
  --tint: #f6faf7;
  --white: #ffffff;

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

  --shadow-btn: 0 10px 28px rgba(72, 207, 124, 0.28);
  --shadow-card: 0 12px 32px rgba(21, 91, 50, 0.06);
  --shadow-form: 0 20px 60px rgba(14, 67, 38, 0.14);

  --gutter: 140px;
  --maxw: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
img { display: block; }

.container {
  width: 100%;
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border-radius: var(--radius-pill);
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.55;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--green-800); outline-offset: 2px; }
.btn-primary { background: var(--green-500); color: var(--green-ink); box-shadow: var(--shadow-btn); }
.btn-primary:hover { background: #3fc271; }
.btn-white { background: var(--white); color: var(--green-800); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.45); }
.btn-outline:hover { background: rgba(255, 255, 255, 0.08); }
.btn-block { width: 100%; }

.eyebrow {
  display: inline-block;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  background: var(--green-100);
  color: var(--green-800);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.52px;
  text-transform: uppercase;
  line-height: 1.55;
}

/* ---------- Header ---------- */
.announcement {
  background: var(--green-800);
  color: var(--white);
  text-align: center;
  font-size: 14px;
  padding: 8px 16px;
}
.announcement a { color: var(--mint); text-decoration: none; }
.announcement a:hover { text-decoration: underline; }

.page-header { position: relative; z-index: 2; }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 79px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  max-width: none;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo { width: 62px; height: 62px; border-radius: 12px; object-fit: cover; }
.brand-name {
  color: var(--green-800);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.9px;
  line-height: 0.94;
}
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-phone { color: var(--green-800); font-weight: 800; text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #f9fcfa 0%, #eef8f1 62%, #e6f6ec 100%);
  padding: 72px 0 78px;
}
.hero-ring {
  position: absolute;
  left: calc(50% + 209px);
  top: -110px;
  width: 620px;
  height: 620px;
  border: 80px solid rgba(72, 207, 124, 0.09);
  border-radius: 70px;
  transform: rotate(18deg);
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  left: 0; top: 0;
  width: 720px; height: 600px;
  background: radial-gradient(ellipse 388.8px 384px at 201.6px 210px, rgba(72, 207, 124, 0.18), rgba(72, 207, 124, 0) 100%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 58px;
}
.hero-intro { flex: 0 1 578px; min-width: 0; }
.hero-title {
  padding: 18px 0 20px;
  font-size: 69px;
  font-weight: 700;
  letter-spacing: -3.105px;
  line-height: 1.01;
  color: var(--ink);
}
.hero-title .accent { color: var(--green-600); }
.hero-copy { font-size: 20px; color: var(--body); }
.assurances {
  list-style: none;
  margin: 0;
  padding: 28px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  max-width: 400px;
}
.assurances li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-3);
}
.check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--green-500);
  color: var(--green-check);
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

/* ---------- Form ---------- */
.consult-form {
  flex: 1 1 0;
  min-width: 0;
  background: var(--white);
  border: 1px solid rgba(72, 207, 124, 0.24);
  border-radius: 26px;
  box-shadow: var(--shadow-form);
  padding: 30px;
  scroll-margin-top: 24px;
}
.form-title { font-size: 28px; font-weight: 700; letter-spacing: -0.7px; line-height: 1.55; }
.form-intro { padding: 6px 0 22px; font-size: 15px; color: var(--muted); }
.fields { display: flex; flex-direction: column; gap: 14px; }
.field-row { display: flex; gap: 14px; }
.field { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 7px; padding-bottom: 7px; }
.field-label { font-size: 13px; font-weight: 800; color: var(--ink-2); }
.field input,
.field select {
  width: 100%;
  font: inherit;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--border-input);
  border-radius: var(--radius-input);
  padding: 12px 14px;
  appearance: none;
  -webkit-appearance: none;
}
.field input::placeholder { color: var(--placeholder); opacity: 1; }
.field select {
  padding-right: 40px;
  background: var(--white) url("assets/select-indicator.svg") no-repeat right 14px center;
  cursor: pointer;
}
.field input:focus,
.field select:focus { outline: none; border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(72, 207, 124, 0.25); }
.field input[aria-invalid="true"],
.field select[aria-invalid="true"] { border-color: #c0392b; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.turnstile-slot { padding-top: 14px; }
.submit-row { padding-top: 17px; }
.form-status { font-size: 14px; font-weight: 700; text-align: center; color: var(--green-800); }
.form-status:empty { display: none; }
.form-status.is-error { color: #b03a2e; }
.form-status:not(:empty) { padding-top: 12px; }
.next-steps { padding-top: 11px; font-size: 13px; text-align: center; color: var(--ink-3); }
.consent { padding: 12px 0 16px; font-size: 12px; line-height: 1.5; text-align: center; color: var(--muted); }
.call-option { padding-top: 16px; border-top: 1px solid var(--border); font-size: 14px; text-align: center; color: var(--muted); }
.call-option a { color: var(--green-800); font-weight: 900; text-decoration: none; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-tint { background: var(--tint); }
.section-heading {
  max-width: 750px;
  margin: 0 auto;
  padding-bottom: 42px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.section-title {
  padding: 12px 0;
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -1.68px;
  line-height: 1.08;
}
.section-desc { font-size: 18px; color: var(--muted); }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}

/* Benefits */
.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.benefit { padding: 26px; box-shadow: var(--shadow-card); min-height: 373px; }
.benefit h3 { padding: 20px 0 10px; font-size: 19px; font-weight: 700; }
.benefit p { font-size: 16px; color: var(--muted); }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { position: relative; padding: 39px 26px 26px; display: flex; flex-direction: column; gap: 8px; min-height: 203px; }
.step-number {
  position: absolute;
  left: 23px; top: -20px;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--green-800);
  color: var(--white);
  box-shadow: 0 8px 18px rgba(11, 99, 54, 0.23);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 900;
}
.step h3 { font-size: 18.72px; font-weight: 700; }
.step p { font-size: 16px; color: var(--muted); }

/* Results */
.results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.result { border: 1px solid var(--border); border-radius: var(--radius-card); overflow: hidden; background: var(--white); }
.result-head { background: var(--green-800); color: var(--white); padding: 22px 24px; }
.result-head span { display: block; font-size: 13px; font-weight: 800; letter-spacing: 1.04px; text-transform: uppercase; color: rgba(255, 255, 255, 0.8); }
.result-head h3 { font-size: 24px; font-weight: 700; }
.result-body { margin: 0; padding: 22px 24px 0; }
.result-body div { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--divider); font-size: 14px; }
.result-body dt { color: var(--muted); }
.result-body dd { margin: 0; font-weight: 700; color: var(--ink); }
.savings {
  margin: 14px 24px 25px;
  padding: 13px;
  border-radius: var(--radius-input);
  background: var(--green-50);
  color: var(--green-800);
  font-size: 16px;
  font-weight: 900;
  text-align: center;
}
.disclaimer { padding: 18px 0 12px; font-size: 12px; color: var(--muted-2); text-align: center; }

/* Solutions */
.solutions { display: flex; align-items: flex-start; gap: 52px; }
.solutions-intro { flex: 0 0 471px; }
.solutions-title { padding: 13px 0 16px; font-size: 45px; font-weight: 700; letter-spacing: -1.8px; line-height: 1.08; }
.solutions-desc { padding: 18px 0; font-size: 18px; color: var(--muted); }
.accordion { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.accordion details { background: var(--white); border: 1px solid var(--border); border-radius: 16px; padding: 0 20px; }
.accordion summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64.8px;
  padding: 20px 0;
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  cursor: pointer;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "+";
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
  color: var(--green-600);
}
.accordion details[open] summary::after { content: "–"; }
.accordion summary:focus-visible { outline: 3px solid var(--green-800); outline-offset: 4px; border-radius: 4px; }
.accordion details p { padding-bottom: 20px; font-size: 16px; color: var(--muted); }

/* Testimonials */
.testimonials { display: grid; grid-template-columns: 655.5fr 484.5fr; gap: 20px; }
.testimonial { margin: 16px 40px; padding: 34px; border-radius: var(--radius-card); min-height: 343px; }
.testimonial-dark { background: var(--green-800); color: var(--white); }
.testimonial-light { background: #eff8f2; color: var(--ink); }
.stars { color: var(--star); font-size: 16px; letter-spacing: 1.92px; }
.testimonial blockquote { margin: 0; padding: 19px 0; font-size: 19px; line-height: 1.65; }
.testimonial figcaption { font-size: 16px; font-weight: 800; }

/* CTA + Footer */
.cta { background: linear-gradient(180deg, var(--green-800), var(--green-700)); color: var(--white); padding: 56px 0; }
.cta-inner { display: flex; align-items: center; gap: 32px; }
.cta-copy { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.cta-copy h2 { font-size: 38px; font-weight: 700; letter-spacing: -1.14px; line-height: 1.55; max-width: 640px; }
.cta-copy p { font-size: 16px; color: #d7f4e1; }
.cta-actions { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; width: 353px; }

.footer { background: var(--green-900); color: #c9d7cf; padding: 34px 0 100px; font-size: 14px; }
.footer-top { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-top a { color: var(--white); font-weight: 800; text-decoration: none; }
.footer-top a:hover { text-decoration: underline; }
.footer-disclosure {
  max-width: 980px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 12px;
  line-height: 1.6;
  color: #a9bcb0;
}

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  :root { --gutter: 64px; }
  .hero-title { font-size: 58px; letter-spacing: -2.4px; }
  .benefits { grid-template-columns: repeat(2, 1fr); }
  .benefit { min-height: 0; }
  .testimonial { margin: 16px 0; }
}
@media (max-width: 1024px) {
  :root { --gutter: 40px; }
  .hero-inner { flex-direction: column; align-items: stretch; }
  .hero-intro { flex: none; }
  .solutions { flex-direction: column; }
  .solutions-intro { flex: none; }
  .testimonials { grid-template-columns: 1fr; }
  .steps, .results { grid-template-columns: 1fr; gap: 36px 0; }
  .results { gap: 20px; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .cta-actions { width: auto; flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .nav { min-height: 72px; }
  .nav-phone { display: none; }
  .brand-logo { width: 48px; height: 48px; }
  .hero { padding: 48px 0 56px; }
  .hero-title { font-size: 44px; letter-spacing: -1.6px; }
  .hero-copy { font-size: 18px; }
  .consult-form { padding: 22px; }
  .form-title { font-size: 24px; line-height: 1.3; }
  .field-row { flex-direction: column; gap: 14px; }
  .section { padding: 64px 0; }
  .section-title { font-size: 34px; letter-spacing: -1px; }
  .solutions-title { font-size: 34px; letter-spacing: -1px; }
  .benefits { grid-template-columns: 1fr; }
  .testimonial { padding: 26px; }
  .cta-copy h2 { font-size: 30px; line-height: 1.25; }
  .btn { white-space: normal; text-align: center; }
  .nav .btn { white-space: nowrap; padding: 10px 14px; font-size: 14px; }
  .brand-name { font-size: 13px; }
}
