/* ============================================================
   DONATIONS MAKE DIFFERENCE — Premium design system
   Brand: red + blue (heart-car logo) · navy / white / red
   ============================================================ */

:root {
  /* deep navy base (token names kept; values are now navy/blue) */
  --ink:          #0A1830;
  --forest-deep:  #0C2143;
  --forest:       #123461;
  --forest-soft:  #1C4D8F;
  --fern:         #1F6FD6;   /* brand blue */
  --sage:         #A9C3E6;   /* muted blue on dark */
  --sage-dim:     rgba(169, 195, 230, 0.55);

  /* cool neutrals */
  --cream:        #F2F6FC;
  --cream-2:      #E7EEF8;
  --linen:        #FFFFFF;
  --card:         #FFFFFF;

  /* accent — brand red */
  --brass:        #E03A2C;
  --brass-bright: #F1503F;
  --brass-soft:   rgba(224, 58, 44, 0.45);
  --clay:         #C13A2E;

  /* ink on light */
  --text:         #112440;
  --text-soft:    #44566F;
  --text-faint:   #7888A0;

  /* lines */
  --line-dark:    rgba(242, 246, 252, 0.14);
  --line-light:   rgba(17, 36, 64, 0.10);

  /* type */
  --display: 'Hanken Grotesk', sans-serif;
  --serif:   'Instrument Serif', serif;
  --body:    'Hanken Grotesk', sans-serif;

  /* spacing rhythm */
  --pad-x: clamp(22px, 5.5vw, 96px);
  --section-y: clamp(88px, 11vw, 168px);
  --radius: 22px;
  --maxw: 1240px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  background: var(--cream);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

/* ---------- shared atoms ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; }
.eyebrow {
  font-family: var(--display);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.serif-accent { font-family: var(--serif); font-style: italic; font-weight: 400; }

.section-num {
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--brass);
}

.btn {
  font-family: var(--display);
  font-weight: 700;
  font-size: 15.5px;
  letter-spacing: 0.005em;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 30px;
  border-radius: 999px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s, color 0.3s;
  white-space: nowrap;
}
.btn-brass { background: var(--brass); color: var(--ink); }
.btn-brass:hover { background: var(--brass-bright); transform: translateY(-2px); box-shadow: 0 16px 34px -12px rgba(224,58,44,0.5); }
.btn-cream { background: var(--cream); color: var(--ink); }
.btn-cream:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 18px 40px -14px rgba(0,0,0,0.45); }
.btn-outline-dark { background: transparent; color: var(--text); border: 1.5px solid var(--line-light); }
.btn-outline-dark:hover { border-color: var(--forest); transform: translateY(-2px); }
.btn-outline-light { background: transparent; color: var(--cream); border: 1.5px solid var(--line-dark); }
.btn-outline-light:hover { border-color: var(--brass); color: var(--brass); }
.btn .arrow {
  display: inline-grid; place-items: center;
  transition: transform 0.3s var(--ease);
}
.btn:active { transform: translateY(0) scale(0.97); transition-duration: 0.1s; }
.btn:hover .arrow { transform: translateX(4px); }

/* arrow inside circle variant */
.btn-circle .arrow {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--ink); color: var(--cream);
}
.btn-cream.btn-circle .arrow { background: var(--ink); color: var(--cream); }

/* Section reveals. Content is VISIBLE by default; the hide+rise only engages
   once JS confirms the page is painting continuously (adds html.motion after a
   double rAF). A frozen/background tab, print, or reduced-motion never hides
   anything, so content can't get stuck. */
.r { }
html.motion .r { opacity: 0; transform: translateY(28px); }
html.motion .r.in { opacity: 1; transform: translateY(0); transition: opacity 0.85s var(--ease), transform 0.85s var(--ease); }
html.motion .r.in.d1 { transition-delay: 0.07s; }
html.motion .r.in.d2 { transition-delay: 0.14s; }
html.motion .r.in.d3 { transition-delay: 0.21s; }
html.motion .r.in.d4 { transition-delay: 0.28s; }
@media print { .r { opacity: 1 !important; transform: none !important; } }

/* grain overlay helper */
.grain {
  position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.3'/%3E%3C/svg%3E");
  background-size: 220px 220px;
  mix-blend-mode: overlay;
  opacity: 0.4;
}


/* ---------- CLICK-TO-CALL POPUP ---------- */
.callout-overlay { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; background: rgba(8,20,38,0.62); backdrop-filter: blur(6px); opacity: 0; transition: opacity 0.25s; }
.callout-overlay.open { opacity: 1; }
.callout-overlay[hidden] { display: none; }
.callout-card { position: relative; width: min(380px, 100%); background: var(--linen); color: var(--text); border-radius: 22px; padding: 36px 30px 30px; text-align: center; box-shadow: 0 40px 90px -28px rgba(0,0,0,0.6); transform: translateY(12px) scale(0.98); transition: transform 0.28s var(--ease); }
.callout-overlay.open .callout-card { transform: none; }
.callout-close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line-light); background: #fff; color: var(--text-soft); font-size: 20px; line-height: 1; cursor: pointer; transition: color 0.2s, border-color 0.2s; }
.callout-close:hover { color: var(--text); border-color: var(--text-faint); }
.callout-eyebrow { font-family: var(--display); font-size: 12px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brass); }
.callout-card h3 { font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: -0.02em; margin: 8px 0 4px; }
.callout-sub { font-size: 14px; color: var(--text-soft); margin-bottom: 18px; }
.callout-number { display: inline-block; font-family: var(--display); font-weight: 800; font-size: 30px; letter-spacing: -0.02em; color: var(--fern); text-decoration: none; }
.callout-hours { font-size: 13px; color: var(--text-faint); margin: 6px 0 20px; }
.callout-qr { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px; border: 1px solid var(--line-light); border-radius: 16px; background: var(--cream); margin-bottom: 20px; }
.callout-qr img { width: 180px; height: 180px; border-radius: 8px; background: #fff; }
.callout-qr span { font-size: 12.5px; color: var(--text-soft); font-weight: 600; }
.callout-call { width: 100%; justify-content: center; }
@media (max-width: 768px) { .callout-qr { display: none; } .callout-card h3 { font-size: 22px; } }

/* ---------- GLOBAL MOBILE ---------- */
@media (max-width: 600px) {
  :root { --section-y: clamp(58px, 13vw, 92px); }
  .btn { padding: 14px 22px; font-size: 14.5px; }
}
