/* ── Foreclosure Decoded — Homepage ──────────────────────────────────────────
   Page-specific styles. Global vars, resets, and footer live in styles.css.
   ─────────────────────────────────────────────────────────────────────────── */

/* Page-scoped color tokens */
:root {
  --brand-success:      #10b981;
  --brand-success-bg:   #ecfdf5;
  --brand-warning:      #f59e0b;
  --brand-warning-bg:   #fffbeb;
  --brand-warning-text: #b45309;
  --brand-info:         #3b82f6;
}

/* ── Homepage nav overrides (index.css only loads on /) ──────────────────── */
/* Spacer scrolls away so the sticky nav height stays identical to internal pages */
.home-nav-spacer {
  background: var(--navy);
  height: 22px;
}
#fd-nav .nav-brand img {
  height: 36px;
}

/* ── 1. Hero ──────────────────────────────────────────────────────────────── */
.hero-center-stack {
  background-color: var(--navy);
  color: #fff;
  padding: 11rem 24px 15rem;
  min-height: 75vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
}
.hero-wrapper {
  max-width: 850px;
  margin: 0 auto;
}
.hero-badge {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  color: #cbd5e1;
  font-size: 0.64rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 16px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 2rem;
}
.hero-center-stack h1 {
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 1.5rem;
  letter-spacing: -1.5px;
  color: #fff;
}
.hero-center-stack h1 span { color: var(--brand-warning); }
.hero-center-stack p {
  font-size: 1.15rem;
  line-height: 1.65;
  color: #cbd5e1;
  margin: 0 auto 3.5rem;
  max-width: 660px;
}
.hero-cta-row {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.btn-hero-primary {
  background: #fff;
  color: var(--navy);
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 4px 14px rgba(0,0,0,.2);
  transition: background 0.15s, transform 0.15s;
  display: inline-block;
}
.btn-hero-primary:hover { background: #f1f5f9; transform: translateY(-1px); }
.btn-hero-secondary {
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.15s;
  display: inline-block;
}
.btn-hero-secondary:hover { text-decoration: underline; color: #cbd5e1; }

/* ── 2. Features ──────────────────────────────────────────────────────────── */
.features-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 40px 4rem;
}
.section-tag {
  background: rgba(31,122,114,.1);
  color: var(--teal);
  font-size: 0.64rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 0.75rem;
}
.features-section h2 {
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 3.5rem;
  letter-spacing: -0.5px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s, box-shadow 0.15s;
}
.feature-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.08); }

.feature-card__preview {
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border-light);
  padding: 18px;
  height: 130px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.feature-card__body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.feature-card__badge {
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 2px 6px;
  border-radius: 3px;
  align-self: flex-start;
  margin-bottom: 0.5rem;
}
.badge-free    { background: var(--brand-success-bg); color: var(--teal); }
.badge-premium { background: var(--navy); color: #fff; }
.badge-bundle  { background: var(--brand-warning-bg); color: var(--brand-warning-text); }
.badge-strategy { background: #eff6ff; color: var(--brand-info); }

.feature-card h3 {
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 6px;
}
.feature-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

/* ── Micro-previews ───────────────────────────────────────────────────────── */
.micro-preview-row {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 7px 12px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--navy);
}
.micro-preview-row:last-child { margin-bottom: 0; }
.micro-preview-row .row-label { display: flex; align-items: center; gap: 6px; }
.micro-preview-row .row-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.micro-preview-row .row-meta { font-size: 0.58rem; color: var(--text-muted); font-weight: 500; }

.micro-calc-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-size: 0.72rem;
  margin-bottom: 10px;
}
.micro-calc-box div {
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 4px;
  display: flex;
  justify-content: space-between;
}
.micro-calc-box label { color: var(--text-muted); }
.micro-calc-box span { font-weight: 700; color: var(--navy); }
.micro-calc-verdict {
  background: var(--brand-success-bg);
  border-left: 3px solid var(--teal);
  padding: 8px 12px;
  border-radius: 0 4px 4px 0;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--teal);
}

.micro-pipe-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 6px 12px;
  margin-bottom: 6px;
  font-size: 0.7rem;
}
.micro-pipe-row:last-child { margin-bottom: 0; }
.micro-pipe-row .pipe-step { font-weight: 700; color: var(--navy); }
.micro-pipe-row .pipe-badge {
  font-size: 0.55rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 1px 6px;
  border-radius: 3px;
}
.micro-pipe-row .pipe-badge.done    { background: var(--brand-success-bg); color: var(--teal); }
.micro-pipe-row .pipe-badge.current { background: var(--brand-warning-bg); color: var(--brand-warning-text); }

.micro-doc-box {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 12px;
}
.micro-doc-title { font-weight: 700; margin-bottom: 6px; font-size: 0.6rem; color: var(--navy); font-family: monospace; }
.micro-doc-line  { height: 4px; background: #e2e8f0; margin-bottom: 6px; border-radius: 2px; }
.micro-doc-line.short { width: 40%; }
.micro-doc-line.mid   { width: 75%; }
.micro-doc-line:last-child { margin-bottom: 0; }

.micro-schedule-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 8px 12px;
  margin-bottom: 6px;
  font-size: 0.7rem;
}
.micro-schedule-row:last-child { margin-bottom: 0; }
.micro-schedule-row .sched-date { font-weight: 700; color: var(--navy); }
.micro-schedule-row .sched-avail { font-size: 0.6rem; font-weight: 700; color: var(--brand-info); text-transform: uppercase; }

/* ── 3. Bottom CTA ────────────────────────────────────────────────────────── */
.bottom-cta-wrap {
  max-width: 1200px;
  margin: 2rem auto 5rem;
  padding: 0 40px;
  box-sizing: border-box;
}
.bottom-cta-card {
  background-color: var(--navy);
  border-radius: var(--radius-lg);
  padding: 3rem 3.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 12px 30px rgba(30,43,74,.15);
  gap: 2rem;
}
.bottom-cta-card h3 {
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 6px;
  letter-spacing: -0.5px;
}
.bottom-cta-card p { margin: 0; font-size: 0.88rem; color: #cbd5e1; }
.bottom-cta-actions { display: flex; gap: 1rem; align-items: center; flex-shrink: 0; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .features-section { padding: 5rem 24px 3rem; }
}
@media (max-width: 768px) {
  .hero-center-stack { padding: 8rem 20px 10rem; min-height: auto; }
  .hero-center-stack h1 { font-size: 2.5rem; letter-spacing: -0.5px; }
  .hero-center-stack p  { font-size: 1rem; margin-bottom: 2.5rem; }
}
@media (max-width: 640px) {
  .features-section { padding: 3.5rem 16px 2rem; }
  .features-grid { grid-template-columns: 1fr; }
  .features-section h2 { font-size: 1.65rem; margin-bottom: 2rem; }
  .bottom-cta-wrap { padding: 0 16px; margin-bottom: 3rem; }
  .bottom-cta-card { flex-direction: column; text-align: center; padding: 2.5rem 2rem; }
  .bottom-cta-actions { flex-direction: column; width: 100%; justify-content: center; }
  .bottom-cta-actions a { width: 100%; text-align: center; box-sizing: border-box; }
}
@media (max-width: 480px) {
  .hero-center-stack { padding: 6rem 16px 8rem; }
  .hero-cta-row { flex-direction: column; }
  .features-grid { grid-template-columns: 1fr; }
}
