/* =========================================================
   Saint Home Help — styles
   Concept: "Warm hearth, open door"
   Palette: logo navy + halo gold + warm cream
   Type: Fraunces (display serif) + Nunito Sans (body)
   Signature: arched doorways
   ========================================================= */

:root {
  --navy:      #1D4E89;   /* primary — sampled from the logo mark */
  --navy-700:  #143A66;   /* hover / deeper navy */
  --navy-100:  #E7EEF7;   /* tinted surfaces */
  /* Gold comes in three tuned variants — pick by what's BEHIND it, not by taste.
     Our readers skew older, so every text pairing here clears WCAG AA (4.5:1). */
  --honey:     #F2A93B;   /* the halo gold. FILLS & BORDERS ONLY —
                             only 1.87:1 on cream, never legible as text there */
  --honey-600: #96590B;   /* gold TEXT on cream — 5.27:1 / 4.74:1 on cream-2 */
  --honey-300: #FFC46B;   /* gold TEXT on navy — 5.34:1 (plain --honey is 4.20, fails) */
  --clay:      #B9503C;   /* small warm human accent */
  --cream:     #FBF7F0;   /* page background */
  --cream-2:   #F0EBE1;   /* alt section background */
  --ink:       #24282E;   /* body text */
  --ink-soft:  #545C66;   /* secondary text */
  --white:     #FFFFFF;

  --maxw: 1140px;
  --gap: clamp(1rem, 3vw, 2rem);
  --radius: 16px;

  --shadow-sm: 0 2px 8px rgba(20, 40, 70, 0.07);
  --shadow-md: 0 14px 40px rgba(29, 78, 137, 0.14);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.125rem;      /* larger base — many readers are older */
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--navy); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  color: var(--navy);
  margin: 0 0 .5em;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2.25rem);
}

.sr-only, .skip-link {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: fixed; top: .75rem; left: .75rem;
  width: auto; height: auto; clip: auto;
  background: var(--navy); color: var(--white);
  padding: .6rem 1rem; border-radius: 8px; z-index: 200;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-pad-y: .85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  padding: var(--btn-pad-y) 1.4rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease;
}
/* Focus ring uses the darker gold: --honey is only 1.87:1 on cream,
   under the 3:1 that focus indicators need to be visible. */
.btn:focus-visible { outline: 3px solid var(--honey-600); outline-offset: 3px; }
.btn-primary { background: var(--navy); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--navy-700); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--white); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--cream) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--cream-2);
}
.header-inner {
  display: flex; align-items: center; gap: 1rem;
  padding-block: .7rem;
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--navy); }
.brand-mark {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  background: var(--navy-100); color: var(--navy);
  border-radius: 50% 50% 14px 14px;   /* little arched doorway */
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.22rem; color: var(--navy); }
.brand-tag { font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); font-weight: 700; }

.site-nav { margin-left: auto; }
.nav-list { display: flex; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.nav-list a {
  text-decoration: none; color: var(--ink);
  font-weight: 700; font-size: 1rem; padding: .3rem 0;
  border-bottom: 2px solid transparent;
}
.nav-list a:hover { border-bottom-color: var(--honey); color: var(--navy); }
.nav-toggle { display: none; }

.header-call { padding-block: .5rem; }
.btn-call {
  background: var(--honey); color: var(--navy-700);
  border-radius: 999px; text-decoration: none; font-weight: 800;
  padding: .45rem 1.1rem; display: inline-flex; align-items: center; gap: .55rem;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .2s ease;
}
.btn-call:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-call-icon { font-size: 1.15rem; }
.btn-call-text { display: flex; flex-direction: column; line-height: 1.05; }
.btn-call-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; opacity: .8; }
.btn-call-number { font-size: 1.02rem; }

/* ---------- Shared section bits ---------- */
.eyebrow {
  font-weight: 800; text-transform: uppercase;
  letter-spacing: .12em; font-size: .78rem;
  color: var(--honey-600); margin: 0 0 .8rem;
}
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section-head { max-width: 620px; margin-bottom: 2.6rem; }
.section-title { font-size: clamp(1.8rem, 4vw, 2.7rem); }
.section-lede { color: var(--ink-soft); font-size: 1.15rem; margin: 0; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(120% 90% at 85% 0%, rgba(242,169,59,0.20), transparent 55%),
    var(--cream);
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}
.hero-title {
  font-size: clamp(2.3rem, 5.5vw, 3.9rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: .5em;
}
.hero-lede { font-size: 1.24rem; color: var(--ink-soft); max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.8rem; }
.hero-note { font-size: .98rem; color: var(--ink-soft); margin-top: 1rem; }

.hero-art { position: relative; }
.arch-frame {
  background: var(--white);
  padding: 14px;
  border-radius: 180px 180px var(--radius) var(--radius);
  box-shadow: var(--shadow-md);
  max-width: 360px; margin-inline: auto;
}
.arch-scene { width: 100%; height: auto; border-radius: 168px 168px 6px 6px; }
/* ---------- Eligibility screener ---------- */
.screener-section { background: var(--cream-2); }
.screener {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: clamp(1.4rem, 4vw, 2.4rem);
  max-width: 760px;
}
.q-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.8rem; }
.q fieldset { border: 0; margin: 0; padding: 0; }
.q-text {
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 600;
  color: var(--navy); padding: 0; margin-bottom: .8rem;
  display: flex; align-items: baseline; gap: .6rem;
}
.q-num {
  flex: none;
  display: inline-grid; place-items: center;
  width: 1.9rem; height: 1.9rem;
  background: var(--navy-100); color: var(--navy);
  border-radius: 50%;
  font-family: var(--font-body); font-size: .9rem; font-weight: 800;
}
.q-help { margin: -.4rem 0 .8rem 2.5rem; font-size: .95rem; color: var(--ink-soft); }
.q-opts { display: flex; flex-wrap: wrap; gap: .7rem; margin-left: 2.5rem; }

/* Radio pills — the whole pill is the target (touch-target-size: min 44px) */
.opt { position: relative; }
.opt input {
  position: absolute; opacity: 0;
  width: 100%; height: 100%; left: 0; top: 0; margin: 0;
  cursor: pointer;
}
.opt span {
  display: grid; place-items: center;
  min-height: 48px; min-width: 96px;
  padding: .6rem 1.4rem;
  border: 2px solid var(--cream-2);
  border-radius: 999px;
  font-weight: 700;
  background: var(--white);
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.opt input:hover + span { border-color: var(--navy-100); }
.opt input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--white); }
.opt input:focus-visible + span { outline: 3px solid var(--honey-600); outline-offset: 3px; }

.screener-error { color: var(--clay); font-weight: 700; margin: 1.4rem 0 0; }
#screener-form .btn { margin-top: 1.8rem; }

.screener-result {
  margin-top: 2rem; padding-top: 2rem;
  border-top: 2px solid var(--cream-2);
}
.screener-result:focus { outline: none; }
.result-title { font-size: clamp(1.5rem, 3.5vw, 2rem); margin-bottom: .4rem; }
.result-body { color: var(--ink-soft); font-size: 1.1rem; margin: 0 0 1.6rem; }
.result-form { background: var(--cream); padding: 1.4rem; border-radius: var(--radius); }
.disclaimer {
  margin: 1.4rem 0 0;
  font-size: .85rem; line-height: 1.55; color: var(--ink-soft);
}
.disclaimer strong { color: var(--ink); }

/* ---------- Trust strip ---------- */
.trust { background: var(--navy); color: var(--white); }
.trust-inner {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 1.2rem 2.4rem;
  padding-block: 1.1rem; text-align: center;
}
.trust-item { font-weight: 700; font-size: 1rem; }
.trust-key { color: var(--honey-300); font-weight: 800; margin-right: .3rem; }

/* ---------- Services ---------- */
.services { background: var(--cream); }
.service-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--cream-2);
  border-radius: 120px 120px var(--radius) var(--radius); /* arched top */
  padding: 2.6rem 2rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .25s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service-arch {
  width: 74px; height: 74px; margin: 0 auto 1.1rem;
  display: grid; place-items: center;
  background: var(--navy-100); color: var(--navy);
  border-radius: 50% 50% 16px 16px;
}
.service-card h3 { font-size: 1.5rem; }
.service-card > p { color: var(--ink-soft); margin-top: 0; }
.service-list {
  list-style: none; margin: 1.2rem 0 0; padding: 0;
  text-align: left; display: inline-block;
}
.service-list li { position: relative; padding-left: 1.6rem; margin-bottom: .55rem; font-weight: 600; }
.service-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--honey-600); font-weight: 800;
}
.services-foot { text-align: center; margin-top: 2.2rem; font-size: 1.1rem; color: var(--ink-soft); }
.services-foot a { font-weight: 800; }

/* ---------- How it works ---------- */
.how { background: var(--cream-2); }
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem;
  counter-reset: none;
}
.step {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 1.8rem 1.4rem;
  border-top: 4px solid var(--honey);
}
.step-num {
  display: grid; place-items: center;
  width: 46px; height: 46px; margin-bottom: .9rem;
  background: var(--navy); color: var(--white);
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 600;
  border-radius: 50% 50% 12px 12px;
}
.step h3 { font-size: 1.28rem; }
.step p { margin: 0; color: var(--ink-soft); font-size: 1rem; }

/* ---------- Why us ---------- */
.why { background: var(--cream); }
/* Single column now that the (fabricated) testimonial is gone —
   restore a two-column grid here if a real one ever lands. */
.why-inner { max-width: 760px; }
.why-list { list-style: none; margin: 1.6rem 0 0; padding: 0; }
.why-list li {
  position: relative; padding-left: 2rem; margin-bottom: 1.1rem; font-size: 1.1rem;
}
.why-list li::before {
  content: ""; position: absolute; left: 0; top: .45rem;
  width: 12px; height: 12px; background: var(--honey);
  border-radius: 50% 50% 3px 3px;
}
.why-list strong { color: var(--navy); }
.why-copy .btn { margin-top: 1.4rem; }

/* ---------- Contact ---------- */
.contact { background: var(--cream-2); }
.contact-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}
.contact-phone {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 600; color: var(--navy); text-decoration: none;
  margin: .5rem 0 1.4rem;
}
.contact-phone:hover { color: var(--honey-600); }
.contact-details { margin: 0; display: grid; gap: 1rem; }
.contact-details dt { font-weight: 800; color: var(--navy); font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; }
.contact-details dd { margin: .1rem 0 0; color: var(--ink-soft); }
/* Pad the inline email link up to a 44px tap target (touch-target-size) */
.contact-details dd a { display: inline-block; padding: .55rem 0; font-weight: 700; }

.contact-form {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--cream-2);
}
.form-intro { margin: 0 0 1.3rem; font-weight: 700; color: var(--navy); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 700; margin-bottom: .35rem; font-size: .98rem; }
.field .opt-tag { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem;
  padding: .75rem .85rem;
  border: 2px solid var(--cream-2);
  border-radius: 10px; background: var(--cream);
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(36,70,59,0.15);
}
.form-note { font-size: .82rem; color: var(--ink-soft); margin: .9rem 0 0; }

/* Submit feedback — never colour-only (a11y: color-not-only) */
.form-status { margin: .9rem 0 0; font-weight: 700; font-size: .95rem; }
.form-status.is-success { color: #1B6B4A; }
.form-status.is-success::before { content: "✓ "; }
.form-status.is-error { color: #A3341F; }
.form-status.is-error::before { content: "! "; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-700); color: #DDE5EF; }
.footer-inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem;
  padding-block: 3rem 2rem;
}
.footer-brand .brand-name { color: var(--white); font-size: 1.4rem; }
.footer-brand p { color: #AFBDD0; max-width: 34ch; margin: .6rem 0 0; }
.footer-col h4 { color: var(--honey-300); font-family: var(--font-body); font-weight: 800; font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 .9rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: .55rem; }
.footer-col a, .footer-col li { color: #C6D2E2; text-decoration: none; }
.footer-col a:hover { color: var(--white); text-decoration: underline; }
.footer-legal {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-block: 1.2rem; font-size: .85rem; color: #A3B2C6;
}
.footer-legal p { margin: 0; }

/* ---------- Sticky mobile call bar ---------- */
.mobile-call-bar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 120;
  background: var(--honey); color: var(--navy-700);
  text-align: center; font-weight: 800; text-decoration: none;
  padding: .9rem 1rem;
  box-shadow: 0 -4px 20px rgba(44,38,34,0.18);
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 940px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-lede { max-width: none; }
  .why-inner { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  body { font-size: 1.06rem; }
  .header-call .btn-call-text { display: none; }
  .header-call { padding: .55rem .75rem; }

  /* mobile nav */
  .nav-toggle {
    display: inline-grid; place-items: center;
    width: 44px; height: 44px; margin-left: auto;
    background: var(--navy-100); border: none; border-radius: 10px; cursor: pointer;
  }
  .nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
    content: ""; display: block; width: 22px; height: 2.5px;
    background: var(--navy); border-radius: 2px; position: relative;
  }
  .nav-toggle-bar::before { position: absolute; top: -7px; }
  .nav-toggle-bar::after  { position: absolute; top: 7px; }
  .site-nav { margin-left: 0; }
  .nav-list {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--cream-2);
    padding: .5rem 1.25rem 1rem;
  }
  .nav-list.is-open { display: flex; }
  .nav-list a { padding: .8rem 0; border-bottom: 1px solid var(--cream-2); }
  .header-inner { position: relative; flex-wrap: wrap; }

  .service-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.6rem; }

  .mobile-call-bar { display: block; }
  /* Reserve room for the fixed call bar on the BODY, not on main — the footer
     sits after main, so padding main left the legal/MDHHS line hidden behind
     the bar at the bottom of the page. (layout: fixed-element-offset) */
  body { padding-bottom: 5.5rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .service-card, .btn-call { transition: none; }
}
