/*
 * HomePath Options — Design System
 * Editorial-style typography (Source Serif 4 + Inter) + warm trust palette.
 * Built for distressed homeowner audience: high readability, calm authority,
 * no flashy tech-startup cues, no scammy cash-buyer cues.
 */

@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:opsz,wght@8..60,400;8..60,500;8..60,600;8..60,700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Brand palette — deep navy-teal trust + warm cream + amber action */
  --ink: #0F1A24;
  --ink-soft: #2D3A47;
  --ink-muted: #5A6772;
  --ink-faint: #8B95A0;

  --paper: #FAF6EF;
  --paper-warm: #F4ECDE;
  --surface: #FFFFFF;

  --navy: #14384F;
  --navy-deep: #0B2435;
  --navy-tint: #E8EEF3;

  --amber: #B5651D;
  --amber-deep: #8F4E13;
  --amber-tint: #FAEFE0;

  --sage: #4A7159;
  --sage-tint: #E6EEE8;

  --border: #E5DDD0;
  --border-strong: #D4C8B5;
  --hairline: rgba(15, 26, 36, 0.08);

  --error: #B23A2A;
  --success: #2D6A4F;

  --max-width: 1180px;
  --max-text: 720px;
  --radius: 6px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(15, 26, 36, 0.06);
  --shadow: 0 4px 16px rgba(15, 26, 36, 0.08), 0 1px 2px rgba(15, 26, 36, 0.04);
  --shadow-lg: 0 20px 50px rgba(15, 26, 36, 0.12), 0 4px 12px rgba(15, 26, 36, 0.06);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'ss01', 'cv11';
}

/* === TYPOGRAPHY === */

h1, h2, h3, h4 {
  font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.018em;
  font-feature-settings: 'liga', 'kern';
}

h5, h6 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  letter-spacing: -0.01em;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

h4 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

h5 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  h1 { font-size: 3.5rem; }
  h2 { font-size: 2.5rem; }
  h3 { font-size: 1.5rem; }
}

@media (min-width: 1024px) {
  h1 { font-size: 4rem; line-height: 1.05; }
  h2 { font-size: 2.75rem; }
}

p {
  margin-bottom: 1.1rem;
  color: var(--ink-soft);
}

p.lead {
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--ink);
  max-width: 640px;
}

@media (min-width: 768px) {
  p.lead { font-size: 1.32rem; }
}

a {
  color: var(--navy);
  text-decoration: none;
  transition: color 0.15s ease;
}

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

a.text-link {
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}

strong, b {
  font-weight: 600;
  color: var(--ink);
}

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

::selection {
  background: var(--amber-tint);
  color: var(--ink);
}

/* === LAYOUT === */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container-narrow {
  max-width: 840px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 768px) {
  .container, .container-narrow { padding: 0 2rem; }
}

.section {
  padding: 4rem 0;
}

.section-tight {
  padding: 2.5rem 0;
}

.section-wide {
  padding: 5.5rem 0;
}

@media (min-width: 768px) {
  .section { padding: 5.5rem 0; }
  .section-wide { padding: 7rem 0; }
}

.alt-bg {
  background: var(--paper-warm);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.navy-bg {
  background: var(--navy-deep);
  color: var(--paper);
}
.navy-bg h1, .navy-bg h2, .navy-bg h3, .navy-bg h4 { color: var(--paper); }
.navy-bg p { color: rgba(250, 246, 239, 0.85); }
.navy-bg a { color: #E8B872; }
.navy-bg a:hover { color: #FAEFE0; }

.text-center { text-align: center; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 1.5rem; }
.mb-3 { margin-bottom: 2.5rem; }
.mb-4 { margin-bottom: 3.5rem; }
.mt-2 { margin-top: 1.5rem; }
.mt-3 { margin-top: 2.5rem; }

/* === HEADER === */

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--hairline);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: saturate(180%) blur(8px);
  background: rgba(250, 246, 239, 0.92);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.logo {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.015em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo:hover { color: var(--navy); }

.logo-mark {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav a {
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
}

.nav a:hover { color: var(--ink); }

.nav .btn { font-size: 0.9rem; padding: 0.55rem 1.1rem; }

@media (min-width: 768px) {
  .nav { display: flex; }
}

/* === BUTTONS === */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.75rem;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  text-decoration: none;
  letter-spacing: -0.005em;
  line-height: 1.1;
}

.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.btn-primary:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--paper);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-accent {
  background: var(--amber);
  color: white;
  border-color: var(--amber);
}

.btn-accent:hover {
  background: var(--amber-deep);
  border-color: var(--amber-deep);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(181, 101, 29, 0.25);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--border-strong);
}

.btn-outline:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.btn-large {
  padding: 1.1rem 2rem;
  font-size: 1.05rem;
}

.btn-arrow::after {
  content: '→';
  font-size: 1.05em;
  transition: transform 0.18s ease;
}
.btn-arrow:hover::after { transform: translateX(3px); }

/* === HERO === */

.hero {
  padding: 4.5rem 0 5rem;
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-warm) 100%);
  border-bottom: 1px solid var(--hairline);
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero { padding: 7rem 0 7.5rem; }
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
  letter-spacing: 0.005em;
}

.hero-eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  flex-shrink: 0;
}

.hero h1 {
  max-width: 18ch;
  margin-bottom: 1.5rem;
}

.hero p.lead {
  margin-bottom: 2rem;
  max-width: 580px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  margin-top: 1.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--hairline);
  font-size: 0.92rem;
  color: var(--ink-muted);
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-trust-item svg {
  width: 18px;
  height: 18px;
  color: var(--sage);
  flex-shrink: 0;
}

/* === FEATURE GRID (replaces card-grid for modern look) === */

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

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

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

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  transition: all 0.2s ease;
}

.feature:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--navy-tint);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--navy);
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-icon.amber {
  background: var(--amber-tint);
  color: var(--amber-deep);
}

.feature-icon.sage {
  background: var(--sage-tint);
  color: var(--sage);
}

.feature h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.feature p {
  font-size: 0.97rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.feature .feature-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.feature .feature-link:hover { color: var(--amber); }

/* === STATS BAND === */

.stats-band {
  background: var(--navy-deep);
  color: var(--paper);
  padding: 3rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  text-align: center;
}

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

.stat {
  padding: 0 0.5rem;
}

.stat-number {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 2.5rem;
  font-weight: 600;
  color: #E8B872;
  line-height: 1;
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .stat-number { font-size: 3rem; }
}

.stat-label {
  font-size: 0.92rem;
  color: rgba(250, 246, 239, 0.75);
  line-height: 1.4;
}

/* === STEPS === */

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
  counter-reset: step;
}

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

.step {
  position: relative;
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.step-num {
  font-family: 'Source Serif 4', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--amber);
  margin-bottom: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.step h3 {
  font-size: 1.3rem;
  margin-bottom: 0.65rem;
}

.step p {
  font-size: 0.97rem;
  margin-bottom: 0;
}

/* === TESTIMONIALS === */

.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

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

.testimonial {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
}

.testimonial-quote {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: 1.5rem;
  flex-grow: 1;
  letter-spacing: -0.005em;
}

.testimonial-quote::before {
  content: '"';
  font-size: 1.5rem;
  color: var(--amber);
  margin-right: 0.1rem;
}
.testimonial-quote::after {
  content: '"';
  font-size: 1.5rem;
  color: var(--amber);
  margin-left: 0.1rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--hairline);
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--paper-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Source Serif 4', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  flex-shrink: 0;
}

.testimonial-name {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
  line-height: 1.2;
}

.testimonial-meta {
  font-size: 0.82rem;
  color: var(--ink-muted);
}

/* === LEGACY CARDS — kept for state/county pages compatibility === */

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}

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

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all 0.2s ease;
}

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

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.65rem;
}

.card p {
  font-size: 0.97rem;
  line-height: 1.6;
  margin-bottom: 0.85rem;
}

.card-icon {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  display: none;
}

/* === FORM === */

.lead-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  max-width: 640px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}

@media (min-width: 768px) {
  .lead-form { padding: 3rem 2.5rem; }
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.45rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
  letter-spacing: -0.005em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235A6772' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--navy);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(20, 56, 79, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 110px;
  font-family: 'Inter', sans-serif;
}

.lead-form .btn {
  width: 100%;
  padding: 1.1rem;
  font-size: 1.05rem;
}

.form-disclaimer {
  font-size: 0.85rem;
  color: var(--ink-muted);
  text-align: center;
  margin-top: 1.25rem;
  line-height: 1.5;
}

.form-disclaimer a {
  color: var(--navy);
  border-bottom: 1px solid var(--hairline);
}

/* === CONTENT PAGE (for FAQ, about, terms, etc) === */

.content-page {
  max-width: var(--max-text);
  margin: 0 auto;
}

.content-page h1 {
  margin-bottom: 1rem;
}

.content-page h2 {
  margin-top: 3rem;
  margin-bottom: 1rem;
  font-size: 1.75rem;
}

.content-page h3 {
  margin-top: 2rem;
  font-size: 1.25rem;
}

.content-page p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink-soft);
}

.content-page ul, .content-page ol {
  margin: 1rem 0 1.25rem 1.5rem;
}

.content-page li {
  margin-bottom: 0.5rem;
  color: var(--ink-soft);
  line-height: 1.65;
}

.content-page blockquote {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  background: var(--paper-warm);
  border-left: 3px solid var(--amber);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
}

/* === CTA BANNER === */

.cta-banner {
  background: var(--navy-deep);
  color: var(--paper);
  padding: 4rem 0;
  text-align: center;
}

.cta-banner h2 {
  color: var(--paper);
  margin-bottom: 1rem;
  max-width: 22ch;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner p {
  color: rgba(250, 246, 239, 0.85);
  max-width: 540px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
}

/* === FOOTER === */

.footer {
  background: var(--ink);
  color: rgba(250, 246, 239, 0.7);
  padding: 4rem 0 2.5rem;
  font-size: 0.92rem;
}

.footer .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .footer .container {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 3rem;
  }
}

.footer .logo {
  color: var(--paper);
  margin-bottom: 0.75rem;
}

.footer .logo:hover { color: #E8B872; }

.footer h4 {
  color: var(--paper);
  margin-bottom: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: 'Inter', sans-serif;
}

.footer a {
  color: rgba(250, 246, 239, 0.7);
  display: block;
  padding: 0.3rem 0;
  font-size: 0.92rem;
}

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

.footer-tagline {
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(250, 246, 239, 0.6);
  margin-bottom: 0;
  max-width: 320px;
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(250, 246, 239, 0.1);
  font-size: 0.85rem;
  color: rgba(250, 246, 239, 0.5);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
}

/* === MISC === */

.divider {
  height: 1px;
  background: var(--hairline);
  margin: 3rem 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  background: var(--sage-tint);
  color: var(--sage);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-amber {
  background: var(--amber-tint);
  color: var(--amber-deep);
}

.checkmark-list {
  list-style: none;
  margin: 1.25rem 0;
}

.checkmark-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.65rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

.checkmark-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.4rem;
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%234A7159' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* Section header pattern */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-header h5 {
  color: var(--amber);
  margin-bottom: 0.75rem;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--ink-muted);
}

/* Print */
@media print {
  .site-header, .footer, .cta-banner { display: none; }
}
