/* ==========================================================================
   Devi Blood Bank — Stylesheet
   Theme: clean white & caring red
   ========================================================================== */

:root {
  --red-900: #8a0b2e;
  --red-700: #b00d38;
  --red-600: #d31145;
  --red-500: #e8204f;
  --red-100: #ffe6ec;
  --red-50:  #fff5f7;

  --ink-900: #1a1a1f;
  --ink-700: #3a3a44;
  --ink-500: #666673;
  --ink-400: #8b8b96;

  --white: #ffffff;
  --paper: #fbfbfc;
  --line: #ececf0;
  --line-strong: #e0e0e6;

  --ok: #0f9d58;
  --warn: #e8a300;
  --low: #e83b3b;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-sm: 0 2px 8px rgba(26, 26, 31, .06);
  --shadow: 0 12px 30px rgba(26, 26, 31, .10);
  --shadow-red: 0 14px 34px rgba(211, 17, 69, .28);

  --font-head: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --container: 1180px;
  --header-h: 76px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink-700);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--red-600); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink-900); line-height: 1.2; font-weight: 700; }

:focus-visible {
  outline: 3px solid var(--red-500);
  outline-offset: 2px;
  border-radius: 4px;
}

.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;
}
.muted { color: var(--ink-400); font-weight: 400; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 2000;
  background: var(--red-600); color: #fff; padding: 10px 16px;
  border-radius: 8px; transition: top .2s;
}
.skip-link:focus { top: 12px; text-decoration: none; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.section { padding: 88px 0; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin-bottom: 12px; }
.section-head p { color: var(--ink-500); font-size: 1.03rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: .82rem;
  letter-spacing: .06em; text-transform: uppercase; color: var(--red-600);
  background: var(--red-50); border: 1px solid var(--red-100);
  padding: 7px 14px; border-radius: 999px; margin-bottom: 18px;
}
.eyebrow svg { color: var(--red-600); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--red-600);
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  padding: 12px 22px; border-radius: 999px; border: 2px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-lg { padding: 15px 30px; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--btn-bg); color: #fff; box-shadow: var(--shadow-red); }
.btn-primary:hover { background: var(--red-700); }

.btn-outline { background: #fff; color: var(--red-600); border-color: var(--red-100); }
.btn-outline:hover { border-color: var(--red-500); background: var(--red-50); }

.btn-ghost { background: transparent; color: var(--ink-700); }
.btn-ghost:hover { background: var(--red-50); color: var(--red-600); }

.btn-white { background: #fff; color: var(--red-600); }
.btn-white:hover { background: #fff; box-shadow: 0 10px 26px rgba(0,0,0,.22); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-outline-light:hover { background: rgba(255,255,255,.14); border-color: #fff; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s, border-color .3s, background .3s;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); border-color: var(--line); }

.nav-wrap { display: flex; align-items: center; gap: 24px; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark {
  display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 13px; color: #fff;
  background: linear-gradient(140deg, var(--red-500), var(--red-700));
  box-shadow: var(--shadow-red);
}
.brand-text {
  font-family: var(--font-head); font-weight: 700; color: var(--ink-900);
  line-height: 1.1; font-size: 1.08rem; display: flex; flex-direction: column;
}
.brand-text strong { color: var(--red-600); }
.brand-text small {
  font-family: var(--font-body); font-weight: 500; font-size: .68rem;
  letter-spacing: .04em; color: var(--ink-400); text-transform: uppercase; margin-top: 3px;
}

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 6px; }
.main-nav a {
  font-family: var(--font-head); font-weight: 500; font-size: .94rem;
  color: var(--ink-700); padding: 9px 14px; border-radius: 999px;
  transition: color .2s, background .2s; text-decoration: none;
}
.main-nav a:hover, .main-nav a.active { color: var(--red-600); background: var(--red-50); text-decoration: none; }

.nav-actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; padding: 0 11px;
}
.nav-toggle span {
  display: block; height: 2px; background: var(--ink-900); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; overflow: hidden; padding: 66px 0 96px; background: var(--red-50); }
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 80% at 88% 8%, rgba(232, 32, 79, .16), transparent 60%),
    radial-gradient(50% 60% at 4% 90%, rgba(211, 17, 69, .10), transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--red-50) 100%);
}
.hero-grid {
  position: relative; display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 54px; align-items: center;
}
.hero-copy h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); letter-spacing: -.02em; margin-bottom: 20px; }
.hero-copy h1 .hl {
  color: var(--red-600); position: relative; white-space: nowrap;
}
.hero-copy .lead { font-size: 1.12rem; color: var(--ink-500); max-width: 540px; }
.hero-copy .lead strong { color: var(--red-600); }

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 40px; }

.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong {
  font-family: var(--font-head); font-weight: 800; font-size: 1.9rem;
  color: var(--ink-900); line-height: 1;
}
.hero-stats strong::after { content: "+"; color: var(--red-600); }
.hero-stats li:last-child strong::after { content: "/7"; }
.hero-stats span { font-size: .85rem; color: var(--ink-400); margin-top: 6px; }

.hero-media { position: relative; }
.hero-card {
  border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: 0 30px 60px rgba(139, 11, 46, .22);
  border: 6px solid #fff; transform: rotate(1.5deg);
}
.hero-card img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }

.float-pill {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  background: #fff; padding: 12px 18px; border-radius: 999px;
  font-family: var(--font-head); font-weight: 600; font-size: .86rem; color: var(--ink-700);
  box-shadow: var(--shadow); animation: floaty 4s ease-in-out infinite;
}
.float-pill .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(15,157,88,.16); }
.float-pill--a { top: 8%; left: -26px; }
.float-pill--b { bottom: 13%; right: -22px; color: var(--red-600); animation-delay: 1.4s; }
.float-pill--b svg { color: var(--ok); }

@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.hero-wave {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 70px;
  background: #fff;
  clip-path: ellipse(75% 100% at 50% 100%);
}

/* ==========================================================================
   Trust strip
   ========================================================================== */
.trust { padding: 26px 0 12px; }
.trust-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px 26px; background: var(--paper);
}
.trust-item { text-align: center; padding: 6px 10px; }
.trust-item .ti-icon {
  font-size: 1.7rem; width: 58px; height: 58px; margin: 0 auto 12px;
  display: grid; place-items: center; border-radius: 16px;
  background: #fff; box-shadow: var(--shadow-sm); border: 1px solid var(--line);
}
.trust-item h3 { font-size: 1.02rem; margin-bottom: 6px; }
.trust-item p { font-size: .9rem; color: var(--ink-500); }

/* ==========================================================================
   Availability
   ========================================================================== */
.availability { background: var(--white); }
.avail-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.avail-card {
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px; background: #fff;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.avail-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--red-100); }
.avail-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
  background: var(--ok);
}
.avail-card[data-level="low"]::before { background: var(--low); }
.avail-card[data-level="medium"]::before { background: var(--warn); }

.avail-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.avail-group {
  font-family: var(--font-head); font-weight: 800; font-size: 1.9rem; color: var(--red-600);
  line-height: 1;
}
.avail-group sup { font-size: .55em; }
.avail-badge {
  font-family: var(--font-head); font-weight: 600; font-size: .72rem;
  padding: 5px 11px; border-radius: 999px; letter-spacing: .03em; text-transform: uppercase;
}
.avail-badge.ok { color: #0a7a43; background: rgba(15,157,88,.12); }
.avail-badge.medium { color: #9a6d00; background: rgba(232,163,0,.14); }
.avail-badge.low { color: #b71c1c; background: rgba(232,59,59,.12); }

.avail-units { display: flex; align-items: baseline; gap: 6px; margin-bottom: 14px; }
.avail-units b { font-family: var(--font-head); font-size: 1.35rem; color: var(--ink-900); }
.avail-units span { font-size: .82rem; color: var(--ink-400); }

.avail-bar { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.avail-bar i { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--red-500), var(--red-700)); transition: width 1.2s var(--ease); }
.avail-card[data-level="ok"] .avail-bar i { background: linear-gradient(90deg, #34c77b, var(--ok)); }
.avail-card[data-level="medium"] .avail-bar i { background: linear-gradient(90deg, #f4c04e, var(--warn)); }

.avail-note {
  display: flex; gap: 14px; align-items: flex-start;
  margin-top: 30px; padding: 18px 22px;
  background: var(--red-50); border: 1px solid var(--red-100);
  border-radius: var(--radius); color: var(--ink-700); font-size: .95rem;
}
.avail-note svg { color: var(--red-600); flex: none; margin-top: 2px; }

/* ==========================================================================
   Blood groups
   ========================================================================== */
.groups { background: var(--paper); border-block: 1px solid var(--line); }
.groups-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: start; }
.groups-copy h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin-bottom: 14px; }
.groups-copy > p { color: var(--ink-500); margin-bottom: 26px; }

.compat-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.compat-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-sm);
}
.compat-card .tag {
  font-family: var(--font-head); font-weight: 800; font-size: 1.7rem;
  color: var(--red-600); margin: 6px 0 10px;
}
.compat-card h3 { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-400); }
.compat-card p:last-child { font-size: .92rem; color: var(--ink-500); }

.groups-table {
  width: 100%; border-collapse: collapse; background: #fff;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  font-size: .92rem;
}
.groups-table th, .groups-table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.groups-table thead th {
  background: var(--red-600); color: #fff; font-family: var(--font-head);
  font-weight: 600; font-size: .82rem; letter-spacing: .03em; text-transform: uppercase;
}
.groups-table tbody th {
  font-family: var(--font-head); font-weight: 700; color: var(--red-600); font-size: 1rem;
}
.groups-table tbody tr:last-child th, .groups-table tbody tr:last-child td { border-bottom: 0; }
.groups-table tbody tr:hover { background: var(--red-50); }

/* ==========================================================================
   Emotional message
   ========================================================================== */
.message { position: relative; overflow: hidden; color: #fff; }
.message-media {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(120deg, rgba(138,11,46,.94) 0%, rgba(211,17,69,.86) 55%, rgba(232,32,79,.82) 100%),
    url("https://images.unsplash.com/photo-1615461066159-fea0960485d5?auto=format&fit=crop&w=1600&q=80") center/cover no-repeat;
}
.message-inner { position: relative; z-index: 1; padding: 92px 0; }
.message-card { max-width: 720px; }
.message-card .quote { color: rgba(255,255,255,.5); margin-bottom: 18px; }
.message-lead { font-family: var(--font-head); font-weight: 600; font-size: clamp(1.25rem, 2.8vw, 1.8rem); line-height: 1.4; margin-bottom: 18px; }
.message-card p:not(.message-lead) { color: rgba(255,255,255,.86); font-size: 1.05rem; margin-bottom: 30px; }
.message-card .btn-primary { background: #fff; color: var(--red-600); box-shadow: 0 14px 34px rgba(0,0,0,.24); }
.message-card .btn-primary:hover { background: #fff5f7; }

/* ==========================================================================
   Donate / register
   ========================================================================== */
.donate { background: #fff; }
.donate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.donate-copy h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); margin-bottom: 14px; }
.donate-copy > p { color: var(--ink-500); margin-bottom: 24px; }

.checklist { display: grid; gap: 12px; margin-bottom: 28px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-700); font-size: .97rem; }
.checklist li span {
  flex: none; display: grid; place-items: center; width: 24px; height: 24px;
  background: rgba(15,157,88,.14); color: var(--ok); border-radius: 50%;
  font-size: .8rem; font-weight: 700; margin-top: 1px;
}
.donate-side img { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; }

.donate-form {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow);
}
.donate-form h3 { font-size: 1.35rem; margin-bottom: 22px; }
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label {
  display: block; font-family: var(--font-head); font-weight: 500; font-size: .9rem;
  color: var(--ink-900); margin-bottom: 7px;
}
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm); background: #fff; color: var(--ink-900);
  font-family: var(--font-body); font-size: .96rem; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--red-500);
  box-shadow: 0 0 0 4px rgba(232,32,79,.14);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-400); }
.field.invalid input, .field.invalid select { border-color: var(--low); }
.error { display: block; color: var(--low); font-size: .8rem; margin-top: 6px; min-height: 1em; }

.form-feedback { margin-top: 14px; font-weight: 600; font-size: .95rem; min-height: 1.2em; }
.form-feedback.ok { color: var(--ok); }
.form-feedback.err { color: var(--low); }
.form-note { margin-top: 12px; font-size: .88rem; color: var(--ink-400); text-align: center; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact { background: var(--paper); border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 34px; align-items: stretch; }
.contact-cards { display: grid; gap: 14px; }

.contact-card {
  display: flex; align-items: center; gap: 16px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; text-decoration: none; color: var(--ink-700);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.contact-card:hover { text-decoration: none; transform: translateX(4px); box-shadow: var(--shadow); border-color: var(--red-100); }
.cc-icon {
  flex: none; display: grid; place-items: center; width: 48px; height: 48px;
  border-radius: 13px; background: var(--red-50); font-size: 1.3rem; color: var(--red-600);
}
.cc-icon--wa { background: #e7f9ee; color: #25d366; }
.cc-body { display: flex; flex-direction: column; }
.cc-body strong { font-family: var(--font-head); color: var(--ink-900); font-size: 1rem; }
.cc-body span { font-size: .9rem; color: var(--ink-500); word-break: break-word; }
.cc-arrow { margin-left: auto; font-size: 1.6rem; color: var(--red-400, var(--red-500)); line-height: 1; }
.contact-card--address { cursor: default; }
.contact-card--address:hover { transform: none; }

.map-wrap {
  position: relative; min-height: 380px; border-radius: var(--radius-lg);
  overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #eaeaea;
}
.map-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-cta { position: absolute; left: 16px; bottom: 16px; z-index: 2; box-shadow: var(--shadow-red); }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band {
  background: linear-gradient(120deg, var(--red-700), var(--red-500));
  color: #fff; padding: 58px 0;
}
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,.85); }
.cta-band-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--ink-900); color: rgba(255,255,255,.72); padding: 64px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.4fr 1fr; gap: 34px; }
.footer-brand .brand-text { color: #fff; }
.footer-brand .brand-text small { color: rgba(255,255,255,.5); }
.footer-brand p { margin-top: 16px; font-size: .94rem; max-width: 300px; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer-col ul { display: grid; gap: 11px; font-size: .93rem; }
.site-footer a { color: rgba(255,255,255,.78); }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  margin-top: 46px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12);
  font-size: .86rem;
}
.heart { color: var(--red-500); }

/* ==========================================================================
   Floating WhatsApp + to-top
   ========================================================================== */
.whatsapp-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 1200;
  display: inline-flex; align-items: center; gap: 10px;
  background: #25d366; color: #fff; padding: 14px; border-radius: 999px;
  box-shadow: 0 12px 30px rgba(37,211,102,.44);
  transition: transform .25s var(--ease), padding .25s var(--ease);
}
.whatsapp-float:hover { text-decoration: none; transform: translateY(-3px); padding-right: 22px; }
.whatsapp-float-label {
  max-width: 0; overflow: hidden; white-space: nowrap; font-family: var(--font-head);
  font-weight: 600; font-size: .92rem; transition: max-width .3s var(--ease), opacity .3s;
  opacity: 0;
}
.whatsapp-float:hover .whatsapp-float-label { max-width: 130px; opacity: 1; }
.whatsapp-float::after {
  content: ""; position: absolute; inset: 0; border-radius: 999px;
  box-shadow: 0 0 0 0 rgba(37,211,102,.5); animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); }
  70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

.to-top {
  position: fixed; right: 22px; bottom: 92px; z-index: 1190;
  width: 46px; height: 46px; border-radius: 50%; border: none;
  background: var(--ink-900); color: #fff; font-size: 1.2rem;
  box-shadow: var(--shadow); transition: transform .25s var(--ease), opacity .25s;
}
.to-top:hover { transform: translateY(-3px); background: var(--red-600); }

/* ==========================================================================
   Reveal animations
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-media { max-width: 460px; }
  .groups-grid { grid-template-columns: 1fr; gap: 34px; }
  .donate-grid { grid-template-columns: 1fr; gap: 34px; }
  .contact-grid { grid-template-columns: 1fr; }
  .avail-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; margin: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); padding: 12px 20px 20px;
    transform: translateY(-130%); transition: transform .35s var(--ease);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .main-nav a { display: block; padding: 13px 14px; font-size: 1rem; }
  .nav-toggle { display: flex; margin-left: auto; }
  .nav-actions .btn-ghost { display: none; }
  .nav-actions .btn span { display: none; }
  .nav-actions .btn { padding: 11px; }
}

@media (max-width: 620px) {
  .section { padding: 62px 0; }
  .trust-grid { grid-template-columns: 1fr 1fr; padding: 22px 18px; }
  .avail-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .avail-card { padding: 18px 16px; }
  .avail-group { font-size: 1.55rem; }
  .field-row { grid-template-columns: 1fr; }
  .donate-form { padding: 24px 20px; }
  .compat-cards { grid-template-columns: 1fr; }
  .cta-band-inner { flex-direction: column; text-align: center; }
  .cta-band-actions { width: 100%; }
  .cta-band-actions .btn { flex: 1; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { justify-content: center; text-align: center; }
  .float-pill--a { left: -10px; } .float-pill--b { right: -8px; }
  .whatsapp-float-label { display: none; }
  .whatsapp-float:hover { padding-right: 14px; }
}

@media (max-width: 400px) {
  .avail-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
