/* Beyond A Step site stylesheet. Calmer palette for nonprofit serving people in crisis. */
:root {
  --bg: #fafaf7;
  --bg-alt: #f3f3ee;
  --ink: #14222e;
  --ink-soft: #3a4a58;
  --brand: #0a2342;
  --brand-soft: #1a3a66;
  --accent: #b38b3f;
  --border: #d9d7cc;
  --danger: #8a2424;
  --max: 1180px;
  --radius: 4px;
  --focus: #0a2342;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  --font-head: "Fraunces", Georgia, "Iowan Old Style", Palatino, serif;
}
* { box-sizing: border-box; }
html { font-size: 17px; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); line-height: 1.65; font-weight: 400; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--brand); line-height: 1.2; letter-spacing: -0.01em; margin: 1.5em 0 0.5em; font-weight: 600; }
h1 { font-size: clamp(1.9rem, 2.4vw + 1rem, 2.8rem); margin-top: 0.3em; }
h2 { font-size: clamp(1.4rem, 1.5vw + 0.8rem, 1.85rem); }
h3 { font-size: 1.2rem; }
p { max-width: 68ch; margin: 0 0 1.1em; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-soft); }
a:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: var(--radius); }
img, svg, video { max-width: 100%; height: auto; }
main { display: block; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--brand); color: #fff; padding: 0.75rem 1rem; z-index: 999; }
.skip:focus { left: 1rem; top: 1rem; }

.site-header { background: var(--bg); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 40; }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 1.25rem; max-width: var(--max); margin: 0 auto; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--brand); font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; }
.brand img { width: 40px; height: auto; }
nav.primary { display: flex; gap: 1.1rem; align-items: center; flex-wrap: wrap; }
nav.primary a { color: var(--ink); text-decoration: none; font-size: 0.95rem; padding: 0.3rem 0.1rem; border-bottom: 2px solid transparent; }
nav.primary a:hover { color: var(--brand); border-bottom-color: var(--accent); }
nav.primary a.cta { background: var(--brand); color: #fff; padding: 0.55rem 1rem; border-radius: var(--radius); border-bottom: none; font-weight: 500; }
nav.primary a.cta:hover { background: var(--brand-soft); border-bottom: none; }

.hero { padding: 3.5rem 0 2.5rem; background: radial-gradient(1200px 500px at 20% 0%, rgba(10,35,66,0.06), transparent 60%), linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%); border-bottom: 1px solid var(--border); }
.hero .container { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; }
@media (min-width: 800px) { .hero .container { grid-template-columns: 1.3fr 1fr; } }
.hero h1 { margin-top: 0; }
.hero img.hero-logo { width: 100%; max-width: 380px; margin: 0 auto; display: block; }
.answer-capsule { border-left: 3px solid var(--accent); background: #fff; padding: 1rem 1.25rem; margin: 1.2em 0; border-radius: 0 var(--radius) var(--radius) 0; color: var(--ink); box-shadow: 0 1px 2px rgba(10,35,66,0.04); }
.answer-capsule p { margin: 0; }
.cta-row { display: flex; gap: 0.75rem; flex-wrap: wrap; margin: 1.4rem 0 0; }
.btn { display: inline-block; padding: 0.75rem 1.35rem; border-radius: var(--radius); text-decoration: none; font-weight: 500; font-size: 1rem; transition: background 0.2s ease, transform 0.15s ease; }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.btn-primary { background: var(--brand); color: #fff; border: 1px solid var(--brand); }
.btn-primary:hover { background: var(--brand-soft); color: #fff; }
.btn-secondary { background: transparent; color: var(--brand); border: 1px solid var(--brand); }
.btn-secondary:hover { background: var(--brand); color: #fff; }

section.prose { padding: 2.5rem 0; }
section.prose + section.prose { border-top: 1px solid var(--border); }
section.accent { background: var(--brand); color: #f4f1e8; padding: 2.5rem 0; }
section.accent h2, section.accent h3 { color: #fff; }
section.accent a { color: #f2d9a3; }
section.accent .answer-capsule { background: rgba(255,255,255,0.08); border-left-color: var(--accent); color: #f4f1e8; }

.blocks { display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin: 1.5rem 0; }
@media (min-width: 760px) { .blocks { grid-template-columns: repeat(3, 1fr); } }
.block { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem 1.25rem 1.4rem; }
.block h3 { margin-top: 0; color: var(--brand); }
.block p { margin-bottom: 0; }

.tiers { display: grid; gap: 0.75rem; grid-template-columns: 1fr; margin: 1.5rem 0; }
@media (min-width: 640px) { .tiers { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .tiers { grid-template-columns: repeat(3, 1fr); } }
.tier { border: 1px solid var(--border); background: #fff; border-radius: var(--radius); padding: 1.1rem 1.2rem; display: flex; flex-direction: column; justify-content: space-between; gap: 0.6rem; }
.tier.featured { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(10,35,66,0.1); }
.tier h3 { margin: 0; }
.tier .amount { font-family: var(--font-head); font-size: 1.8rem; color: var(--brand); font-weight: 600; }
.tier p { color: var(--ink-soft); font-size: 0.95rem; }

form.site-form { display: grid; gap: 1rem; margin: 1.5rem 0; max-width: 640px; }
form.site-form label { font-weight: 500; font-size: 0.95rem; display: block; }
form.site-form input[type=text], form.site-form input[type=email], form.site-form input[type=tel], form.site-form textarea, form.site-form select { width: 100%; font: inherit; padding: 0.6rem 0.75rem; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; color: var(--ink); }
form.site-form input:focus, form.site-form textarea:focus, form.site-form select:focus { outline: 3px solid var(--accent); outline-offset: 2px; border-color: var(--brand); }
form.site-form textarea { min-height: 140px; resize: vertical; }
form.site-form .honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
form.site-form .consent { font-size: 0.9rem; color: var(--ink-soft); }
form.site-form button { background: var(--brand); color: #fff; border: 0; padding: 0.8rem 1.4rem; border-radius: var(--radius); font-weight: 500; cursor: pointer; font-size: 1rem; }
form.site-form button:hover { background: var(--brand-soft); }
form.site-form .status { font-size: 0.95rem; padding: 0.6rem 0.8rem; border-radius: var(--radius); display: none; }
form.site-form .status.ok { display: block; background: #e4efdc; color: #2d5016; }
form.site-form .status.err { display: block; background: #f5dcd7; color: var(--danger); }

.crisis { background: #0a2342; color: #fff; padding: 1.25rem 1.3rem; border-radius: var(--radius); margin: 1.2rem 0 2rem; }
.crisis h2 { color: #fff; margin: 0 0 0.5rem; font-size: 1.3rem; }
.crisis ul { margin: 0; padding-left: 1.2rem; }
.crisis li { margin: 0.3rem 0; }
.crisis a { color: #f2d9a3; }

.site-footer { border-top: 1px solid var(--border); margin-top: 4rem; background: #fff; }
.site-footer .container { padding: 2rem 1.25rem; display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 760px) { .site-footer .container { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer h4 { margin: 0 0 0.6rem; font-family: var(--font-head); font-size: 1rem; color: var(--brand); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0.25rem 0; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--brand); text-decoration: underline; }
.credit { grid-column: 1 / -1; border-top: 1px solid var(--border); padding-top: 1rem; font-size: 0.9rem; color: var(--ink-soft); text-align: center; }

#cookie-consent { display: none; position: fixed; left: 0; right: 0; bottom: 0; background: #14222e; color: #f4f1e8; padding: 0.9rem 1.25rem; z-index: 999; box-shadow: 0 -2px 10px rgba(10,35,66,0.2); }
#cookie-consent .inner { max-width: var(--max); margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; justify-content: space-between; }
#cookie-consent p { margin: 0; font-size: 0.92rem; flex: 1; min-width: 220px; }
#cookie-consent button { background: var(--accent); border: 0; color: #14222e; font-weight: 600; padding: 0.5rem 1rem; border-radius: var(--radius); cursor: pointer; }
#cookie-consent .decline { background: transparent; color: #f2d9a3; border: 1px solid rgba(242,217,163,0.4); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
