/* Foreclosure Support — shared styles for all pages.
   Single CSS file used by index.html, about.html, how-it-works.html,
   privacy.html, disclaimer.html, contact.html, and any per-province
   landing pages added later. */

:root {
  --green:    #2a7d4f;
  --green-dk: #1f5a3a;
  --green-bg: #ecf6ef;
  --gold:     #c4953d;
  --ink:      #1a2632;
  --muted:    #4a5663;
  --faint:    #8a96a3;
  --bg:       #f7f9f7;
  --surface:  #ffffff;
  --border:   #e5e9ec;
  --warn-bg:  #fff8e8;
  --warn-bd:  #e8c879;
  --dark:     #182028;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: 16px;
}
a { color: var(--green-dk); }
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* Header */
header.site {
  padding: 18px 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 17px;
  text-decoration: none; color: var(--ink);
}
.brand-mark {
  width: 28px; height: 28px; border-radius: 6px;
  background: var(--green);
  display: inline-flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 15px;
  font-family: 'Playfair Display', serif;
}
.header-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 18px;
}
.nav-links {
  display: flex; gap: 24px;
}
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: 14.5px;
  font-weight: 500;
}
.nav-links a:hover { color: var(--ink); }
.header-phone a {
  font-weight: 600; color: var(--green-dk); text-decoration: none;
  font-size: 15px;
}
@media (max-width: 720px) {
  .nav-links { display: none; }
}

/* Hero */
.hero { padding: 56px 0 36px; }
.hero-grid {
  display: grid; gap: 40px;
  grid-template-columns: 1.1fr 1fr;
  align-items: start;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.hero-eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 600; letter-spacing: 1.2px;
  color: var(--green-dk); margin-bottom: 14px;
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 44px; line-height: 1.12; font-weight: 700;
  letter-spacing: -0.5px;
}
@media (max-width: 640px) { .hero h1 { font-size: 32px; } }
.hero-sub {
  font-size: 18px; color: var(--muted); margin-top: 18px;
  max-width: 540px;
}
.pills {
  display: flex; gap: 8px; margin-top: 22px; flex-wrap: wrap;
}
.pill {
  font-size: 12.5px; padding: 6px 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--muted); font-weight: 500;
}

/* Hero form */
.form-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 26px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}
.form-card h2 {
  font-size: 20px; font-weight: 600; margin-bottom: 4px;
}
.form-card .lead {
  color: var(--muted); font-size: 14px; margin-bottom: 18px;
}
.field { margin-bottom: 12px; }
.field label {
  display: block; font-size: 13px; font-weight: 500;
  color: var(--ink); margin-bottom: 6px;
}
.field input, .field textarea {
  width: 100%; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: 8px;
  font-family: inherit; font-size: 15px; color: var(--ink);
  background: var(--bg);
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(42, 125, 79, 0.15);
}
.field-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
@media (max-width: 540px) { .field-row { grid-template-columns: 1fr; } }
.submit {
  width: 100%; padding: 14px; border: 0; border-radius: 8px;
  background: var(--green); color: white; font-weight: 600;
  font-size: 16px; cursor: pointer; font-family: inherit;
  transition: background .15s;
}
.submit:hover { background: var(--green-dk); }
.submit:disabled { opacity: 0.6; cursor: not-allowed; }
.consent {
  font-size: 11.5px; color: var(--muted); margin-top: 12px;
  line-height: 1.5;
}
.form-success {
  padding: 18px; background: var(--green-bg); border: 1px solid var(--green);
  border-radius: 10px; color: var(--green-dk); font-weight: 500;
  display: none;
}
.form-success.active { display: block; }
.form-error {
  padding: 12px; background: #fdecec; border: 1px solid #d44848;
  border-radius: 8px; color: #832020; font-size: 14px;
  margin-bottom: 12px; display: none;
}
.form-error.active { display: block; }

/* Section headers (used across pages) */
.section-h2 {
  font-family: 'Playfair Display', serif;
  font-size: 28px; line-height: 1.2; font-weight: 700;
  margin-bottom: 10px;
}
.section-intro {
  color: var(--muted); margin-bottom: 24px; max-width: 700px;
  font-size: 16px;
}

/* Common Situations cards */
.situations { padding: 56px 0; background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.card-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.info-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 10px; padding: 22px;
}
.info-card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 8px;
  background: var(--green-bg); color: var(--green-dk);
  font-size: 22px; margin-bottom: 12px;
}
.info-card h3 {
  font-size: 16px; font-weight: 600; margin-bottom: 6px;
}
.info-card p { font-size: 14px; color: var(--muted); }

/* Options section */
.options-section { padding: 56px 0; }
.opt-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.opt {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 24px;
}
.opt h3 {
  font-size: 17px; font-weight: 600; margin-bottom: 10px;
  display: flex; align-items: center; gap: 12px;
}
.opt-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--green); color: white; font-size: 13px;
  font-weight: 700;
}
.opt p { font-size: 14.5px; color: var(--muted); margin-bottom: 10px; }
.opt-when { font-size: 13px; color: var(--ink); }
.opt-when strong { color: var(--green-dk); }

/* 4-step process */
.process { padding: 56px 0; background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.step-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 8px;
}
.step {
  padding: 22px; background: var(--bg);
  border: 1px solid var(--border); border-radius: 10px;
}
.step-num {
  font-family: 'Playfair Display', serif;
  font-size: 28px; color: var(--gold); font-weight: 900;
  margin-bottom: 10px;
}
.step h3 {
  font-size: 16px; font-weight: 600; margin-bottom: 6px;
}
.step p { font-size: 14px; color: var(--muted); }

/* Trust */
.trust { padding: 32px 0; }
.trust-row {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.trust-item {
  padding: 22px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 10px;
}
.trust-item h4 {
  font-size: 15px; font-weight: 600; margin-bottom: 8px;
}
.trust-item p { font-size: 14px; color: var(--muted); }

/* FAQ */
.faq { padding: 56px 0; background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.faq-list { max-width: 760px; margin-top: 10px; }
.faq-list details {
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.faq-list summary {
  font-size: 16px; font-weight: 600; cursor: pointer;
  list-style: none; padding: 4px 0;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-list summary::after {
  content: "+"; font-size: 22px; color: var(--green-dk); font-weight: 400;
}
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p {
  margin-top: 10px; color: var(--muted); font-size: 15px;
  line-height: 1.6;
}

/* CTA strip */
.cta-strip {
  background: var(--dark); color: var(--surface);
  padding: 48px 0; text-align: center; margin-top: 8px;
}
.cta-strip h2 {
  font-family: 'Playfair Display', serif;
  font-size: 30px; font-weight: 700; margin-bottom: 10px;
}
.cta-strip p { color: #c0cad3; margin-bottom: 22px; font-size: 16px; }
.cta-button {
  display: inline-block; padding: 14px 28px;
  background: var(--gold); color: var(--dark); font-weight: 700;
  border-radius: 8px; text-decoration: none; font-size: 15px;
  transition: opacity .15s;
}
.cta-button:hover { opacity: 0.9; }

/* Disclaimer block */
.disclaimer {
  margin: 36px 0 18px;
  padding: 20px 24px;
  background: var(--warn-bg);
  border: 1px solid var(--warn-bd);
  border-radius: 10px;
  font-size: 13.5px; line-height: 1.65; color: #5c4514;
}
.disclaimer strong { color: #3d2e0c; }

/* Footer */
footer.site {
  background: #efeee9;
  border-top: 1px solid var(--border);
  padding: 36px 0 30px;
  margin-top: 8px;
  font-size: 14px; color: var(--muted);
}
footer .footer-grid {
  display: grid; gap: 18px;
  grid-template-columns: 2fr 1fr 1fr;
}
@media (max-width: 720px) { footer .footer-grid { grid-template-columns: 1fr; } }
footer h5 {
  font-size: 13px; font-weight: 600; color: var(--ink);
  margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.5px;
}
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--ink); }
footer ul { list-style: none; }
footer li { margin-bottom: 5px; }

/* Static content pages (privacy, disclaimer, etc.) */
.content-page {
  max-width: 760px; margin: 40px auto 60px; padding: 0 24px;
}
.content-page h1 {
  font-family: 'Playfair Display', serif;
  font-size: 34px; line-height: 1.2; margin-bottom: 12px;
}
.content-page .updated {
  font-size: 13px; color: var(--muted); margin-bottom: 28px;
}
.content-page h2 {
  font-size: 19px; font-weight: 600; margin: 28px 0 10px;
  color: var(--ink);
}
.content-page p, .content-page li {
  font-size: 15px; line-height: 1.65; color: var(--muted);
  margin-bottom: 12px;
}
.content-page ul, .content-page ol {
  margin-left: 22px; margin-bottom: 16px;
}
