/* ============================================================
   DonateAWell.org  —  faithful static rebuild
   Palette lifted from the original Squarespace theme:
     accent blue  hsl(209.8, 72.7%, 44.5%)  ≈ #1f71c4
     light green  hsl(120, 42.7%, 61%)      ≈ #71c671
   Typeface: Poppins (as on the original)
   ============================================================ */

:root {
  --blue:  #1f72c4;              /* rgb(31,114,196) — matches the original exactly */
  --blue-dark: #185a9c;
  --green: #71c671;
  --ink:   #1c1c1c;
  --muted: #4a4a4a;
  --bg:    #ffffff;
  --tint:  #f4f7fb;
  --line:  #e6ebf1;
  --maxw:  1234px;
  --narrow: 1038px;              /* text column ≈ 994px, as on the original */
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  font-weight: 300;              /* original body text is Poppins Light */
  color: #000;                    /* pure black, as on the original */
  background: var(--bg);
  line-height: 1.8;               /* 28.8px / 16px on the original */
  font-size: 16px;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.narrow { max-width: var(--narrow); }
.center { text-align: center; }

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

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-block; font-weight: 500; text-transform: uppercase;
  letter-spacing: .02em; line-height: 1.2; padding: 14px 30px;
  border-radius: 0; transition: background-color .15s ease, transform .05s ease;
  cursor: pointer; border: none;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-primary:active { transform: translateY(1px); }
.btn-lg { font-size: 1.05rem; padding: 16px 40px; }
.cta-row { margin: 34px 0 4px; text-align: center; }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 37px; padding-bottom: 37px; }
.header-logo { display: block; line-height: 0; }
.header-logo img { width: auto; height: 150px; }   /* matches the original's ~224px tall header */
.header-cta { flex: none; font-size: .875rem; padding: 18px 32px; }

/* ---------------- Sections ---------------- */
.section { padding: 62px 0; }
.section--flush { padding: 0; }
.band-tint { background: transparent; }   /* original sections are all white */

.section-title {
  font-weight: 500; text-transform: uppercase; letter-spacing: normal;
  line-height: 1.3; color: var(--blue);     /* original section headings are blue */
  font-size: clamp(1.7rem, 4.2vw, 2.8rem); margin: 0 0 26px;
}
.lede { font-size: 1rem; font-weight: 300; color: #000; margin: 0 auto 14px; max-width: 900px; }
.section p { margin: 0 0 18px; }

/* ---------------- Photo reel (hero) — mirrors the original gallery reel ----------------
   Full-viewport-width strip, 75vh tall, images at natural aspect filling the
   height. A JS transform centers the active image; neighbors flow in on both
   sides. Side arrow controls sit in a gutter, matching Squarespace. */
.hero-reel { position: relative; height: 75vh; min-height: 340px; overflow: hidden; background: #fff; user-select: none; }
.reel-viewport { position: absolute; top: 0; bottom: 0; left: 59px; right: 59px; overflow: hidden; }
.reel-track { position: absolute; top: 0; left: 0; height: 100%; display: flex; gap: 8px; transition: transform .6s cubic-bezier(.4,0,.2,1); will-change: transform; }
.reel-item { position: relative; height: 100%; flex: 0 0 auto; }
.reel-item img { height: 100%; width: auto; max-width: none; display: block; object-fit: cover; cursor: pointer; }

.reel-controls { position: absolute; inset: 0; display: flex; justify-content: space-between; align-items: center; pointer-events: none; }
.reel-arrow {
  pointer-events: all; position: relative; z-index: 3;
  width: 44px; height: 44px; margin: 0 8px; padding: 9px; border: none; cursor: pointer;
  background: #fff; color: #000; border-radius: .15em; opacity: .78;
  box-shadow: 0 1px 8px rgba(0,0,0,.18); transition: opacity .3s ease;
  display: flex; align-items: center; justify-content: center;
}
.reel-arrow:hover, .reel-arrow:focus-visible { opacity: 1; }
.reel-arrow svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------------- Graphics (baked-text PNGs) ---------------- */
.graphic { display: block; width: 100%; height: auto; margin: 0 auto; }
.graphic--wide { max-width: 820px; margin-bottom: 26px; }
.graphic--header { max-width: 560px; margin: 0 auto 34px; }

/* Impact stats — two columns (matches the original) */
.impact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 34px 56px;
  align-items: center; justify-items: center; max-width: 1060px; margin: 0 auto;
}
.impact-grid .graphic { max-width: 480px; }
.impact-cta { display: block; width: 100%; text-align: center; }
.impact-cta .graphic { max-width: 420px; transition: transform .12s ease; }
.impact-cta:hover .graphic { transform: translateY(-2px); }

/* Statistics — multi-item carousel (matches the original) */
.stats-carousel { position: relative; max-width: 1234px; margin: 0 auto; }
.scar-viewport { overflow: hidden; }
.scar-track { display: flex; gap: 30px; transition: transform .5s cubic-bezier(.4,0,.2,1); will-change: transform; }
.scar-item { flex: 0 0 calc((100% - 60px) / 3); }   /* 3 across, two 30px gaps */
.scar-item img { width: 100%; height: auto; display: block; }
.scar-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
  width: 52px; height: 52px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--blue); color: #fff; opacity: .9; padding: 14px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.18); transition: opacity .2s ease;
}
.scar-arrow:hover, .scar-arrow:focus-visible { opacity: 1; }
.scar-arrow svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.scar-prev { left: 4px; }
.scar-next { right: 4px; }

/* Interview video (click-to-play, custom poster) */
.interview-video { max-width: 1000px; margin: 64px auto 40px; }
.video-facade { position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: pointer; background: #000; border-radius: 6px; overflow: hidden; aspect-ratio: 16 / 9; box-shadow: 0 4px 18px rgba(0,0,0,.12); }
.video-facade img { width: 100%; height: 100%; object-fit: cover; display: block; }
.play-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 88px; height: 62px; border-radius: 14px; background: rgba(20,20,20,.6); transition: background .2s ease; }
.video-facade:hover .play-btn { background: #cc1f1f; }
.play-btn::after { content: ""; position: absolute; top: 50%; left: 53%; transform: translate(-50%,-50%); border-style: solid; border-width: 13px 0 13px 22px; border-color: transparent transparent transparent #fff; }

/* Three steps */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; max-width: 1080px; margin: 10px auto 0; }
.steps-grid .step { width: 100%; }

/* ---------------- Mission photos (two columns, large) ---------------- */
.mission-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 38px; }
.mission-photos img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; }

/* ---------------- Videos ---------------- */
.video-embed { position: relative; width: 100%; padding-top: 56.25%; border-radius: 6px; overflow: hidden; background: #000; box-shadow: 0 4px 18px rgba(0,0,0,.12); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Staggered "brick wall" two-column layout (matches the original):
   col A = 3 videos, col B = 2 videos + a button, offset down. */
.video-columns { display: flex; gap: 28px; max-width: 1000px; margin: 0 auto; align-items: flex-start; }
.video-col { flex: 1; display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.video-col--stagger { margin-top: 13%; }   /* ≈ half a video, for the brick offset */
.video-col-btn { align-self: center; margin-top: 6px; }

/* ---------------- Testimonials (centered, matches the original) ---------------- */
.testimonials { display: flex; flex-direction: column; margin-top: 10px; }
.quote { margin: 0; padding: 34px 0; text-align: center; border-top: 1px solid var(--line); }
.quote:first-child { border-top: none; padding-top: 6px; }
.quote blockquote { margin: 0 0 18px; font-size: 1rem; font-weight: 300; line-height: 1.8; color: #000; }
.quote figcaption { font-weight: 500; color: var(--blue); text-align: right; font-size: 1.2rem; }

/* ---------------- Footer (left-aligned, as on the original) ---------------- */
.site-footer { background: #fff; padding: 60px 0 56px; color: #000; font-size: 1rem; font-weight: 300; text-align: left; }
.footer-tm { font-weight: 500; color: var(--blue); margin: 0 0 6px; font-size: 1.35rem; }
.site-footer p { margin: 0 0 6px; }
.footer-copy { margin-top: 16px; }
.footer-copy a, .site-footer a { color: var(--blue); }

/* ---------------- Lightbox ---------------- */
.lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,.92); display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox-img { max-width: 90vw; max-height: 86vh; width: auto; height: auto; border-radius: 4px; }
.lightbox-close { position: absolute; top: 18px; right: 22px; background: none; border: none; color: #fff; font-size: 40px; line-height: 1; cursor: pointer; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.14); border: none; color: #fff; width: 56px; height: 56px; border-radius: 50%; font-size: 30px; cursor: pointer; }
.lightbox-nav:hover { background: rgba(255,255,255,.28); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
  .steps-grid { grid-template-columns: 1fr; max-width: 520px; }
  .video-columns { flex-direction: column; gap: 24px; max-width: 560px; }
  .video-col { gap: 24px; }
  .video-col--stagger { margin-top: 0; }
  .scar-item { flex: 0 0 calc((100% - 30px) / 2); }   /* 2 across on tablet */
  .impact-grid { grid-template-columns: 1fr; gap: 30px; }
  .impact-grid .graphic { max-width: 540px; }
  .impact-cta .graphic { max-width: 460px; }
  .reel-viewport { left: 40px; right: 40px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .section { padding: 46px 0; }
  .header-inner { padding-top: 18px; padding-bottom: 18px; }
  .header-logo img { height: 66px; }
  .header-cta { padding: 11px 18px; font-size: .82rem; letter-spacing: .04em; }
  .btn-lg { padding: 14px 28px; font-size: 1rem; }
  .mission-photos { grid-template-columns: 1fr; }
  .scar-item { flex: 0 0 100%; }                       /* 1 across on mobile */
  .scar-arrow { width: 42px; height: 42px; padding: 11px; }
  .hero-reel { height: 58vh; min-height: 300px; }
  .reel-viewport { left: 12px; right: 12px; }
  .reel-arrow { width: 38px; height: 38px; margin: 0 4px; padding: 8px; }
  .lightbox-nav { width: 44px; height: 44px; font-size: 24px; }
  .lightbox-prev { left: 8px; } .lightbox-next { right: 8px; }
}
