/* ============================================================
   HelpALife — application styles
   Plain CSS served through the Sprockets asset pipeline.
   ============================================================ */
:root {
  --teal-50:  #f0fdfa;
  --teal-100: #ccfbf1;
  --teal-400: #2dd4bf;
  --teal-500: #14b8a6;
  --teal-600: #0d9488;
  --teal-700: #0f766e;
  --teal-800: #115e59;
  --coral:    #ff6b6b;
  --coral-dark:#e84a4a;
  --ink:      #0f1f1d;
  --slate:    #475569;
  --slate-light:#64748b;
  --bg:       #ffffff;
  --bg-soft:  #f8fafc;
  --line:     #e2e8f0;
  --radius:   16px;
  --shadow:   0 10px 30px -12px rgba(15, 118, 110, 0.25);
  --shadow-lg:0 24px 60px -20px rgba(15, 118, 110, 0.35);
  --maxw:     1160px;
  --font:     "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p  { margin: 0 0 1rem; }
a  { color: var(--teal-700); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .14em;
  font-size: .78rem; font-weight: 700; color: var(--teal-600); margin-bottom: .75rem;
}
.muted { color: var(--slate); }
.text-center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  --pad-y: .85rem; --pad-x: 1.6rem;
  display: inline-flex; align-items: center; gap: .55rem;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 999px; font-weight: 700; font-size: 1rem; cursor: pointer;
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  text-decoration: none; white-space: nowrap; font-family: inherit;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--teal-400); outline-offset: 2px; }
.btn-primary { background: var(--coral); color: #fff; box-shadow: 0 12px 24px -10px rgba(255,107,107,.7); }
.btn-primary:hover { background: var(--coral-dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--teal-500); color: var(--teal-700); }
.btn-white { background: #fff; color: var(--teal-700); }
.btn-white:hover { background: var(--teal-50); }
.btn-lg { --pad-y: 1.05rem; --pad-x: 2rem; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  font-weight: 800; font-size: 1.25rem; color: var(--ink); letter-spacing: -.02em;
}
.brand:hover { text-decoration: none; }
.brand .logo {
  width: 38px; height: 38px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--teal-500), var(--teal-700));
  border-radius: 11px; color: #fff;
}
.brand .logo svg { width: 22px; height: 22px; }
.brand b { color: var(--teal-600); }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--slate); font-weight: 600; font-size: .96rem; }
.nav-links a:hover { color: var(--teal-700); text-decoration: none; }
.nav-cta { display: flex; align-items: center; gap: .75rem; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; border-radius: 8px; }
.nav-toggle:focus-visible { outline: 3px solid var(--teal-400); }
.nav-toggle svg { width: 26px; height: 26px; color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 85% -10%, var(--teal-100), transparent 60%),
    linear-gradient(180deg, var(--teal-50), #fff 70%);
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px;
  align-items: center; padding: clamp(56px, 8vw, 110px) 0;
}
.hero p.lead { font-size: 1.2rem; color: var(--slate); max-width: 44ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.6rem; }
.hero-trust {
  margin-top: 2.4rem; display: flex; gap: 2rem; flex-wrap: wrap;
  color: var(--slate-light); font-size: .9rem; align-items: center;
}
.hero-trust strong { color: var(--ink); font-size: 1.4rem; display: block; }
.hero-card {
  position: relative; background: #fff; border-radius: 24px;
  box-shadow: var(--shadow-lg); padding: 28px; border: 1px solid var(--line);
}
.hero-card .photo {
  border-radius: 16px; aspect-ratio: 4 / 3;
  background:
    linear-gradient(135deg, rgba(13,148,136,.85), rgba(15,94,89,.9)),
    repeating-linear-gradient(45deg, rgba(255,255,255,.06) 0 12px, transparent 12px 24px);
  display: grid; place-items: center; color: #fff; text-align: center; padding: 24px;
}
.hero-card .photo svg { width: 64px; height: 64px; opacity: .95; margin-bottom: .5rem; }
.hero-card .photo span { font-weight: 700; font-size: 1.05rem; }
.floating-stat {
  position: absolute; bottom: -22px; left: -22px;
  background: #fff; border-radius: 14px; padding: 14px 18px;
  box-shadow: var(--shadow); border: 1px solid var(--line);
  display: flex; align-items: center; gap: .7rem;
}
.floating-stat .pip { width: 40px; height: 40px; border-radius: 10px; background: var(--teal-50); display: grid; place-items: center; color: var(--teal-600); }
.floating-stat .pip svg { width: 22px; height: 22px; }
.floating-stat b { display: block; font-size: 1.15rem; }
.floating-stat small { color: var(--slate-light); }

/* ---------- Crisis banner ---------- */
.crisis-banner { background: var(--ink); color: #fff; text-align: center; font-size: .92rem; padding: .65rem 16px; }
.crisis-banner a { color: var(--teal-400); font-weight: 700; }

/* ---------- Section scaffolding ---------- */
section { padding: clamp(64px, 9vw, 110px) 0; }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head p { color: var(--slate); font-size: 1.08rem; }

/* ---------- Flash messages ---------- */
.flash { max-width: var(--maxw); margin: 16px auto 0; padding: 0 24px; }
.flash > div {
  border-radius: 12px; padding: 14px 18px; font-weight: 600;
  display: flex; align-items: center; gap: .6rem;
}
.flash-notice { background: var(--teal-50); color: var(--teal-800); border: 1px solid var(--teal-100); }
.flash-alert  { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* ---------- Impact stats ---------- */
.impact { background: var(--teal-700); color: #fff; }
.impact .stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.impact .num { font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -.03em; }
.impact .lbl { color: var(--teal-100); font-weight: 600; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--teal-100); }
.card .icon { width: 56px; height: 56px; border-radius: 14px; background: var(--teal-50); color: var(--teal-600); display: grid; place-items: center; margin-bottom: 18px; }
.card .icon svg { width: 28px; height: 28px; }
.card p { color: var(--slate); margin-bottom: 0; }

/* ---------- How to help ---------- */
.help { background: var(--bg-soft); }
.help-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.help-card {
  background: #fff; border-radius: var(--radius); border: 1px solid var(--line);
  padding: 34px 30px; text-align: center; display: flex; flex-direction: column;
}
.help-card .big-icon {
  width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 999px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--teal-400), var(--teal-700)); color: #fff;
}
.help-card .big-icon svg { width: 34px; height: 34px; }
.help-card p { color: var(--slate); flex: 1; }
.help-card .btn { align-self: center; margin-top: 14px; }

/* ---------- Donation tiers ---------- */
.donate { background: linear-gradient(160deg, var(--teal-50), #fff); }
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 32px; }
.tier {
  border: 2px solid var(--line); background: #fff; border-radius: var(--radius);
  padding: 26px 20px; text-align: center; cursor: pointer;
  transition: border-color .15s ease, transform .15s ease, box-shadow .2s ease;
}
.tier:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tier.selected { border-color: var(--teal-500); box-shadow: var(--shadow); }
.tier .amt { font-size: 1.8rem; font-weight: 800; color: var(--teal-700); }
.tier .impact-note { color: var(--slate); font-size: .9rem; margin-top: .4rem; }
.tier.popular { position: relative; }
.tier.popular::after {
  content: "Most popular"; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--coral); color: #fff; font-size: .72rem; font-weight: 700;
  padding: 3px 12px; border-radius: 999px; text-transform: uppercase; letter-spacing: .06em;
}
.donate-cta { text-align: center; }
.donate-cta .muted { font-size: .9rem; }
.freq-toggle { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin-bottom: 28px; }
.freq-toggle label { padding: .5rem 1.2rem; border-radius: 999px; font-weight: 700; color: var(--slate); cursor: pointer; }
.freq-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.freq-toggle input:checked + label { background: var(--teal-600); color: #fff; }

/* ---------- Stories ---------- */
.stories-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.story { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); margin: 0; }
.story .quote { font-size: 1.05rem; color: var(--ink); margin-bottom: 1.4rem; }
.story .quote::before { content: "“"; color: var(--teal-400); font-size: 2.4rem; line-height: 0; vertical-align: -0.4em; margin-right: .15rem; }
.story .who { display: flex; align-items: center; gap: .8rem; }
.story .avatar { width: 46px; height: 46px; border-radius: 999px; background: linear-gradient(135deg, var(--teal-400), var(--teal-700)); color: #fff; display: grid; place-items: center; font-weight: 700; }
.story .who b { display: block; }
.story .who small { color: var(--slate-light); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--ink); color: #fff; border-radius: 28px;
  padding: clamp(40px, 6vw, 72px); text-align: center; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 240px at 20% 0%, rgba(20,184,166,.4), transparent 70%); pointer-events: none;
}
.cta-band h2, .cta-band p, .cta-band .hero-actions { position: relative; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #cbd5e1; max-width: 52ch; margin-left: auto; margin-right: auto; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- Get help ---------- */
.gethelp-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.resource-list { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 14px; }
.resource-list li { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.resource-list .pip { color: var(--teal-600); flex: none; margin-top: 2px; }
.resource-list .pip svg { width: 22px; height: 22px; }
.resource-list b { display: block; }
.resource-list a { font-weight: 700; }
.gethelp-aside { background: var(--teal-700); color: #fff; border-radius: var(--radius); padding: 36px; }
.gethelp-aside h3 { color: #fff; }
.gethelp-aside .hotline { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; display: block; margin: .4rem 0 .2rem; }
.gethelp-aside a { color: #fff; }
.gethelp-aside .small { color: var(--teal-100); font-size: .9rem; }

/* ---------- Forms ---------- */
.newsletter { background: var(--bg-soft); }
.news-form { display: flex; gap: 12px; max-width: 480px; margin: 1.4rem auto 0; flex-wrap: wrap; }
.news-form input[type="email"] { flex: 1 1 240px; padding: .95rem 1.1rem; border-radius: 999px; border: 1px solid var(--line); font-size: 1rem; font-family: inherit; }
.news-form input:focus-visible { outline: 3px solid var(--teal-400); border-color: var(--teal-500); }
.news-note { text-align: center; color: var(--slate-light); font-size: .85rem; margin-top: .9rem; }
.form-msg { text-align: center; color: var(--teal-700); font-weight: 600; margin-top: 1rem; min-height: 1.4em; }
.form-msg.error { color: var(--coral-dark); }

.form-card { max-width: 560px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: .85rem 1rem; border-radius: 12px; border: 1px solid var(--line);
  font-size: 1rem; font-family: inherit; background: #fff;
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--teal-400); border-color: var(--teal-500); }
.field textarea { min-height: 120px; resize: vertical; }
.error-explanation { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; border-radius: 12px; padding: 14px 18px; margin-bottom: 20px; }
.error-explanation ul { margin: .4rem 0 0; padding-left: 1.2rem; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { background: linear-gradient(180deg, var(--teal-50), #fff); padding: clamp(48px, 7vw, 88px) 0 0; text-align: center; }
.page-hero .container { max-width: 760px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cbd5e1; padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: #fff; }
.footer-brand .brand { color: #fff; margin-bottom: 1rem; }
.footer-brand p { color: #94a3b8; max-width: 32ch; }
.socials { display: flex; gap: 12px; margin-top: 1rem; }
.socials a { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.08); display: grid; place-items: center; color: #fff; }
.socials a:hover { background: var(--teal-600); }
.socials svg { width: 20px; height: 20px; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: #94a3b8; }

.skip-link { position: absolute; left: -9999px; top: 0; background: #fff; color: var(--ink); padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 12px; top: 12px; }

/* Honeypot: kept in the DOM for bots but removed from view and the tab order. */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* ---------- Mobile menu ---------- */
.mobile-menu { display: none; border-bottom: 1px solid var(--line); background: #fff; }
.mobile-menu.open { display: block; }
.mobile-menu ul { list-style: none; margin: 0; padding: 12px 24px 20px; display: grid; gap: 4px; }
.mobile-menu a { display: block; padding: 12px 8px; color: var(--ink); font-weight: 600; border-radius: 8px; }
.mobile-menu a:hover { background: var(--teal-50); text-decoration: none; }
.mobile-menu .btn { width: 100%; justify-content: center; margin-top: 8px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .impact .stats { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .cards, .help-grid, .stories-grid { grid-template-columns: repeat(2, 1fr); }
  .tiers { grid-template-columns: repeat(2, 1fr); }
  .gethelp-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: inline-flex; }
  .cards, .help-grid, .stories-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero-trust { gap: 1.4rem; }
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */
