/* Radiant Warmth Solutions — shared styles */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --ember:    #c45e1a;
  --ember-lt: #f0a96a;
  --cream:    #fdf6ee;
  --charcoal: #1e1a16;
  --charcoal-2: #262019;
  --border:   rgba(196, 94, 26, 0.18);
  --muted:    rgba(253, 246, 238, 0.65);
  --muted-2:  rgba(253, 246, 238, 0.4);
  --maxw:     1080px;
}

html { scroll-behavior: smooth; }

body, html {
  margin: 0;
  min-height: 100%;
  font-family: 'DM Sans', sans-serif;
  background-color: var(--charcoal);
  color: var(--cream);
  line-height: 1.6;
}

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

a { color: var(--ember-lt); }

h1, h2, h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--cream);
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(30, 26, 22, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 68px;
}
.site-header .logo img { width: 170px; height: auto; display: block; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a {
  color: var(--muted); text-decoration: none; font-size: 0.95rem;
  font-weight: 500; transition: color 0.2s;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--cream); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 100px;
  font-family: 'DM Sans', sans-serif; font-size: 0.95rem; font-weight: 500;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.1s;
}
.btn-primary { background: var(--ember); color: #fff; }
.btn-primary:hover { background: #d96b22; }
.btn-primary:active { transform: scale(0.98); }
.btn-ghost { background: rgba(196,94,26,0.08); border-color: var(--border); color: var(--cream); }
.btn-ghost:hover { background: rgba(196,94,26,0.22); border-color: rgba(196,94,26,0.5); }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn:focus-visible { outline: 2px solid var(--ember-lt); outline-offset: 3px; }

.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(196,94,26,0.22) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 85% 110%, rgba(196,94,26,0.10) 0%, transparent 60%);
  pointer-events: none;
}
.hero .container { position: relative; padding-top: 88px; padding-bottom: 88px; text-align: center; }
.eyebrow {
  display: inline-block; background: rgba(196,94,26,0.18); color: var(--ember-lt);
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 100px; border: 1px solid rgba(196,94,26,0.3); margin-bottom: 22px;
}
.hero h1 { font-size: clamp(2.3rem, 6vw, 3.6rem); margin: 0 auto 20px; max-width: 720px; }
.hero h1 span { color: var(--ember-lt); }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 600px; margin: 0 auto 32px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin: 0 0 14px; }
.section-head p { color: var(--muted); margin: 0; }
.alt { background: var(--charcoal-2); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.card {
  background: rgba(253,246,238,0.04); border: 1px solid var(--border);
  border-radius: 16px; padding: 28px; text-decoration: none; color: var(--cream);
  display: flex; flex-direction: column; gap: 10px; transition: border-color 0.2s, background 0.2s, transform 0.15s;
}
.card:hover { border-color: rgba(196,94,26,0.5); background: rgba(196,94,26,0.07); transform: translateY(-2px); }
.card h3 { font-size: 1.25rem; margin: 0; }
.card p { color: var(--muted); margin: 0; font-size: 0.95rem; }
.card .more { color: var(--ember-lt); font-weight: 500; font-size: 0.9rem; margin-top: auto; }

/* ---------- Areas list ---------- */
.areas-list { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 0 0 28px; padding: 0; list-style: none; }
.areas-list li {
  font-size: 0.9rem; padding: 7px 16px; border-radius: 100px;
  border: 1px solid var(--border); background: rgba(253,246,238,0.04); color: var(--muted);
}

/* ---------- Info / grant note ---------- */
.note {
  max-width: 720px; margin: 0 auto; padding: 24px 28px;
  border: 1px solid var(--border); border-radius: 16px; background: rgba(196,94,26,0.06);
}
.note p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.note strong { color: var(--cream); }

/* ---------- FAQ definition list ---------- */
.faq-list { max-width: 640px; margin: 24px auto 0; padding: 0; }
.faq-list dt { font-weight: 600; color: var(--cream); margin-top: 1.25rem; }
.faq-list dd { color: var(--muted); font-size: 0.95rem; margin: 0.25rem 0 0; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin: 0 0 14px; }
.cta-band p { color: var(--muted); margin: 0 0 28px; }
.contact-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--charcoal-2); padding: 48px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer-grid h4 { font-family: 'DM Sans', sans-serif; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); margin: 0 0 14px; }
.footer-grid a { color: var(--muted); text-decoration: none; font-size: 0.92rem; }
.footer-grid a:hover { color: var(--cream); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 20px; font-size: 0.8rem; color: var(--muted-2); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-bottom a { color: var(--muted-2); text-decoration: none; }
.footer-bottom a:hover { text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .nav.open { display: flex; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--charcoal-2); border-bottom: 1px solid var(--border); padding: 8px 24px 16px; }
  .nav.open a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav-toggle { display: inline-flex; background: none; border: 1px solid var(--border); border-radius: 8px; color: var(--cream); padding: 8px 10px; cursor: pointer; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
}

/* ---------- Grant pill + reassurance strip ---------- */
.grant-pill {
  display: inline-block;
  background: rgba(196, 94, 26, 0.15);
  border: 1px solid var(--ember, #c45e1a);
  color: var(--cream);
  font-weight: 600;
  font-size: 1rem;
  padding: 10px 20px;
  border-radius: 100px;
  text-decoration: none;
  margin: 20px 0 16px;
  transition: background 0.2s, border-color 0.2s;
}
.grant-pill:hover {
  background: rgba(196, 94, 26, 0.3);
  border-color: var(--ember-lt, #d9733a);
}
.reassurance-strip {
  display: flex;
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 12px auto 0;
  font-size: 0.85rem;
  color: var(--muted);
  flex-wrap: wrap;
  justify-content: center;
}
.reassurance-strip li::before {
  content: '·  ';
  color: var(--ember-lt, #d9733a);
}
.reassurance-strip li:first-child::before {
  content: '';
}


/* ---------- 3-column grid ---------- */
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 767px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* ── Grant checker ── */
.checker-wrap {
  max-width: 560px;
  margin: 0 auto;
}
.checker-screen {
  text-align: center;
  padding: 8px 0 24px;
}
.checker-progress {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0 0 16px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.checker-question,
.checker-result-heading {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 24px;
  color: var(--cream);
}
.checker-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 16px;
}
.checker-btn {
  min-width: 120px;
}
.checker-back,
.checker-skip {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.85rem;
  padding: 8px;
  display: block;
  margin: 8px auto 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.checker-back:hover,
.checker-skip:hover { color: var(--cream); }
.checker-restart {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.85rem;
  padding: 8px;
  margin: 16px auto 0;
  display: block;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.checker-restart:hover { color: var(--cream); }
.checker-disclaimer {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 20px auto 0;
  max-width: 400px;
}
.checker-fail-reason {
  color: var(--muted);
  margin-bottom: 20px;
}
.checker-cost {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
}
.checker-note {
  margin-bottom: 16px;
  font-size: 0.95rem;
}
.checker-input {
  display: block;
  width: 100%;
  max-width: 220px;
  margin: 0 auto;
  padding: 10px 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--cream);
  font-size: 1rem;
  font-family: inherit;
  text-transform: uppercase;
}
.checker-input:focus {
  outline: 2px solid var(--ember);
  outline-offset: 2px;
}

/* ---------- 2×2 grid (4 cards, 2 per row) ---------- */
.grid-2x2 {
  grid-template-columns: repeat(2, 1fr);
}

/* ---------- 4×2 areas grid ---------- */
.grid-areas {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 1024px) {
  .grid-areas {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 540px) {
  .grid-areas {
    grid-template-columns: 1fr;
  }
}

/* ---------- Qualifications / what we can help with grid ---------- */
.qual-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  list-style: none;
  padding: 0;
  max-width: 640px;
  margin: 0 auto;
}
.qual-grid li {
  padding: 0;
  border: none;
  background: none;
}
.qual-item {
  background: rgba(253,246,238,0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 0.9rem;
  color: var(--cream);
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
  width: 100%;
  box-sizing: border-box;
}
.qual-item:hover {
  border-color: rgba(196,94,26,0.5);
  background: rgba(196,94,26,0.07);
}
.qual-item::before {
  content: '→';
  color: var(--ember-lt, #d9733a);
  flex-shrink: 0;
  font-weight: 700;
}
@media (max-width: 540px) {
  .grid-2x2 {
    grid-template-columns: 1fr;
  }
  .qual-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Prose layout — used by /privacy/ */
.prose {
  color: var(--cream);
  line-height: 1.8;
}
.prose h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--cream);
  margin: 2rem 0 0.75rem;
}
.prose p, .prose ul {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 1rem;
}
.prose ul {
  padding-left: 1.4em;
}
.prose li {
  margin-bottom: 0.4rem;
}
.prose a {
  color: var(--ember-lt, #d9733a);
  text-decoration: underline;
  text-underline-offset: 3px;
}
