/* ============================================================
   Heart to Heart — "Handmade Warmth"
   The org runs on kids making handmade get-well cards. The design
   borrows that world: warm paper, photo-print tiles pinned at a
   tilt, hand-written accents, soft hearts. Disciplined, not childish.
   ============================================================ */

:root {
  /* paper + ink */
  --paper:    #FFF8F1;
  --paper-2:  #FFEFE3;   /* alternating warm band */
  --ink:      #2B2420;   /* warm near-black, never #000 */
  --ink-soft: #7C6A60;

  /* warm lead */
  --red:    #E63946;     /* brand heart-red, the anchor */
  --coral:  #FF6B5A;     /* friendly primary */
  --coral-d:#E8543F;
  --peach:  #FFD9C7;
  --peach-2:#FFE8DC;

  /* friendly secondary + pop */
  --teal:   #149C8E;
  --teal-soft:#D6F0EC;
  --gold:   #F4B740;

  --card:  #FFFFFF;
  --line:  #F2E1D5;

  --r-sm: 10px; --r-md: 18px; --r-lg: 28px; --r-xl: 42px; --pill: 999px;

  --shadow-sm: 0 6px 18px -10px rgba(124,72,60,.35);
  --shadow:    0 18px 40px -20px rgba(230,57,70,.28);
  --shadow-lg: 0 30px 60px -28px rgba(124,72,60,.40);

  --font-display: 'Bricolage Grotesque', 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body:    'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-hand:    'Caveat', 'Bricolage Grotesque', cursive;

  --maxw: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff;
  padding: .6rem 1rem; border-radius: 0 0 var(--r-sm) 0; z-index: 200;
}
.skip-link:focus { left: 0; }

/* ---------- type ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; line-height: 1.08; color: var(--ink); margin: 0; letter-spacing: -.01em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.1rem); }
.section-title { font-size: clamp(1.9rem, 4vw, 2.9rem); }
.lead { font-size: 1.18rem; color: #4a3c34; max-width: 52ch; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

/* handwritten eyebrow — the marker-on-a-card signature */
.eyebrow {
  font-family: var(--font-hand);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--coral);
  margin: 0 0 .35rem;
  line-height: 1;
  transform: rotate(-1.5deg);
  display: inline-block;
}
.eyebrow + h1, .eyebrow + .section-title { margin-top: .5rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  padding: .85rem 1.5rem; border-radius: var(--pill); border: 2px solid transparent;
  cursor: pointer; transition: transform .16s ease-out, box-shadow .16s ease-out, background .16s;
  line-height: 1; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px) scale(1.03); }
.btn:active { transform: translateY(0) scale(.99); }
.btn--primary { background: var(--coral); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--coral-d); box-shadow: var(--shadow); }
.btn--ghost { background: transparent; color: var(--ink); border-color: #e7c9bd; }
.btn--ghost:hover { border-color: var(--coral); color: var(--coral-d); }
.btn--blue { background: var(--teal); color: #fff; }
.btn--blue:hover { background: #0f8275; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--peach-2); }

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

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,248,241,.86);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--font-display); font-weight: 800; font-size: 1.18rem; }
.brand img { border-radius: 8px; }
.nav-links { display: flex; gap: 1.7rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-weight: 600; font-size: .98rem; color: #5a4a41; transition: color .15s; }
.nav-links a:hover { color: var(--coral-d); }
.nav-cta { display: flex; align-items: center; gap: .8rem; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; }

/* mobile nav */
.nav-mobile {
  position: fixed; inset: 0; z-index: 150; background: var(--paper);
  transform: translateX(100%); transition: transform .3s ease; display: flex; flex-direction: column; padding: 1.3rem 1.5rem;
}
.nav-mobile.is-open { transform: translateX(0); }
.nav-mobile-top { display: flex; align-items: center; justify-content: space-between; }
.nav-mobile-close { background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--ink); }
.nav-mobile-links { display: flex; flex-direction: column; gap: .4rem; margin-top: 2rem; }
.nav-mobile-links a { font-family: var(--font-display); font-weight: 700; font-size: 1.9rem; padding: .35rem 0; }
.nav-mobile-foot { margin-top: auto; }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem); }
.hero::before { /* soft peach blob */
  content: ""; position: absolute; top: -8%; right: -10%; width: 46vw; height: 46vw; max-width: 620px; max-height: 620px;
  background: radial-gradient(circle at 30% 30%, var(--peach) 0%, rgba(255,217,199,0) 68%);
  z-index: 0; pointer-events: none;
}
.hero::after { /* teal accent blob, lower-left */
  content: ""; position: absolute; bottom: -20%; left: -12%; width: 34vw; height: 34vw; max-width: 420px; max-height: 420px;
  background: radial-gradient(circle, var(--teal-soft) 0%, rgba(214,240,236,0) 70%);
  z-index: 0; pointer-events: none;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { margin-bottom: 1rem; }
.hero h1 .accent { color: var(--coral); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.8rem; }

/* hero photo as a pinned print */
.hero-media { position: relative; }
.hero-media img {
  width: 100%; height: auto; border-radius: var(--r-lg); border: 8px solid #fff;
  box-shadow: var(--shadow-lg); transform: rotate(1.6deg);
}
.hero-media .photo-note {
  position: absolute; bottom: -18px; left: 8%; transform: rotate(-3deg);
  font-family: var(--font-hand); font-size: 1.35rem; color: var(--ink);
  background: var(--gold); padding: .25rem 1rem; border-radius: var(--pill);
  box-shadow: var(--shadow-sm);
}

/* ---------- stats ---------- */
.stats { background: var(--ink); color: #fff; position: relative; z-index: 2; }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 2.4rem 1.5rem; }
.stat { text-align: center; padding: .3rem .6rem; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: -.5rem; top: 20%; height: 60%; width: 1px; background: rgba(255,255,255,.16); }
.stat b { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.7rem); color: var(--gold); line-height: 1; }
.stat span { display: block; margin-top: .5rem; font-size: .9rem; color: #f3e6df; line-height: 1.4; }

/* ---------- sections ---------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; position: relative; }
.section--cream { background: var(--paper-2); }
.section--blue { background: var(--teal-soft); }
.section--dark { background: var(--ink); color: #f3e6df; }
.section--dark .section-title, .section--dark h3, .section--dark h4 { color: #fff; }
.section--dark .eyebrow { color: var(--gold); }
.section--dark a { color: #fff; }
.section--dark a:hover { color: var(--gold); }

.section > .container > .section-title + p { max-width: 56ch; color: #5a4a41; margin-top: .7rem; }
.section--blue > .container > .section-title + p { color: #2c4d49; }

/* prose block (detail pages) */
.prose { max-width: 64ch; margin: 2.6rem 0 0; }
.prose h3 { font-size: 1.5rem; margin: 0 0 .6rem; }
.prose p { color: #4a3c34; }

/* membership */
.member-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
.member-why { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: .7rem; }
.member-why li { padding-left: 1.6rem; position: relative; color: #4a3c34; }
.member-why li::before { content: "\2665"; position: absolute; left: 0; top: .05rem; color: var(--coral); }
.member-why strong { color: var(--ink); }
.member-qr { display: flex; flex-direction: column; align-items: center; gap: .8rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.4rem; box-shadow: var(--shadow); transition: transform .16s ease-out, box-shadow .16s ease-out; }
.member-qr:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.member-qr img { width: 100%; max-width: 220px; height: auto; border-radius: var(--r-sm); }
.member-qr-label { font-family: var(--font-display); font-weight: 700; color: var(--coral-d); }
@media (max-width: 760px) { .member-grid { grid-template-columns: 1fr; } .member-qr { max-width: 300px; } }

/* page hero (subpages) */
.page-hero { padding: clamp(2.6rem, 6vw, 4.2rem) 0 clamp(1.4rem, 3vw, 2rem); position: relative; }
.page-hero::before {
  content: ""; position: absolute; top: -10%; right: -8%; width: 38vw; height: 38vw; max-width: 480px; max-height: 480px;
  background: radial-gradient(circle at 30% 30%, var(--peach) 0%, rgba(255,217,199,0) 68%); z-index: 0; pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: .3rem 0 .8rem; }

/* projects (Our Work) */
.projects { display: flex; flex-direction: column; gap: clamp(2.4rem, 5vw, 4rem); }
.project { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.6rem, 4vw, 3rem); align-items: center; }
.project--rev .project-media { order: 2; }
.project-media { display: flex; justify-content: center; }
/* show the WHOLE photo, scaled down to fit — never cropped or stretched */
.project-media img {
  max-width: 100%; max-height: 360px; width: auto; height: auto;
  border: 7px solid #fff; border-radius: var(--r-lg); box-shadow: var(--shadow);
}
.project-media--cover img { max-height: 440px; }
.project-body h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); margin: .6rem 0 .7rem; display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.project-body p { color: #4a3c34; }
.project-body .btn { margin-top: 1rem; }
@media (max-width: 760px) {
  .project { grid-template-columns: 1fr; }
  .project--rev .project-media { order: 0; }
}

/* why it matters */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem 2.4rem; margin-top: 1.8rem; }
.why-grid p { color: #4a3c34; font-size: 1.05rem; margin: 0; }
.why-close {
  margin: 1.8rem 0 0; max-width: 60ch; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem); line-height: 1.35; color: var(--coral-d);
}
@media (max-width: 700px) { .why-grid { grid-template-columns: 1fr; } }

/* mission split */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split p { color: #4a3c34; }
.mission-callout {
  background: linear-gradient(140deg, var(--coral) 0%, var(--red) 100%); color: #fff;
  border-radius: var(--r-xl); padding: 2.4rem 2.2rem; box-shadow: var(--shadow);
  transform: rotate(-1.2deg); position: relative; overflow: hidden;
}
.mission-callout::after { content: ""; position: absolute; right: -30px; bottom: -30px; width: 180px; height: 180px; background: radial-gradient(circle, rgba(255,255,255,.16), transparent 70%); }
.mission-callout .big { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 4.5vw, 2.9rem); line-height: 1; margin-bottom: .7rem; }
.mission-callout p { color: #ffe9e4; margin: 0; position: relative; z-index: 1; }

/* ---------- event cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 2.4rem; }
.card {
  background: var(--card); border-radius: var(--r-lg); padding: 1.7rem;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .18s ease-out, box-shadow .18s ease-out;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card h3 { font-size: 1.32rem; margin: .7rem 0 .55rem; }
.card p { color: #5a4a41; font-size: .98rem; margin: 0; }
.tag {
  display: inline-block; font-family: var(--font-body); font-weight: 700; font-size: .72rem;
  text-transform: uppercase; letter-spacing: .06em; color: var(--coral-d);
  background: var(--peach-2); padding: .32rem .7rem; border-radius: var(--pill);
}

/* involve cards w/ icon */
.involve { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 2.4rem; }
.ico {
  width: 54px; height: 54px; border-radius: var(--r-md); display: grid; place-items: center;
  background: var(--peach-2); color: var(--coral-d); margin-bottom: .4rem;
}

/* ---------- gallery slider: single 16:9 window, one photo at a time ---------- */
.slider { margin: 2.4rem auto 0; max-width: 760px; }
.slider-buttons { display: flex; justify-content: center; gap: .5rem; margin-bottom: 1.1rem; }
.slider-arrow {
  width: 42px; height: 42px; border-radius: var(--r-sm); border: 0; cursor: pointer;
  background: var(--coral); color: #fff; font-size: 1.4rem; line-height: 1; padding-bottom: 3px;
  display: grid; place-items: center; box-shadow: var(--shadow-sm);
  transition: background .15s, transform .15s;
}
.slider-arrow:hover { background: var(--coral-d); }
.slider-arrow:active { transform: scale(.93); }
.slider-track {
  display: flex; list-style: none; margin: 0; padding: 0;
  height: clamp(280px, 44vw, 430px);   /* definite height — not overridden by content */
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; -ms-overflow-style: none;
  border: 4px solid var(--coral); border-radius: var(--r-md);
  background: var(--paper-2); box-shadow: var(--shadow);
}
.slider-track::-webkit-scrollbar { display: none; }
.slide {
  flex: 0 0 100%; min-width: 0; scroll-snap-align: start; position: relative;
}
/* image fills the frame's definite box and is fully contained — never cropped, whatever its shape */
.slide img {
  position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px);
  object-fit: contain; border-radius: 6px;
}
.slider-dots { display: flex; justify-content: center; gap: .5rem; margin-top: 1rem; }
.slider-dots button {
  width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: #e7c9bd; transition: background .15s, transform .15s;
}
.slider-dots button.is-active { background: var(--coral); transform: scale(1.35); }

/* lead partners (partners page) */
.lead-partners { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.lead-partner { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.9rem; box-shadow: var(--shadow-sm); }
.lead-partner h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: .6rem 0 .6rem; }
.lead-partner p { color: #5a4a41; margin: 0; }
.lead-tag { display: inline-block; font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--teal); background: var(--teal-soft); padding: .32rem .7rem; border-radius: var(--pill); }
.logo-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem 1.4rem; margin: 2.4rem 0 0; justify-items: center; }
.logo-chip { margin: 0; text-align: center; display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 190px; }
.logo-chip img { width: 100%; max-width: 150px; height: auto; aspect-ratio: 1 / 1; object-fit: contain; background: #fff; border-radius: var(--r-md); box-shadow: var(--shadow-sm); padding: 12px; transition: transform .16s ease-out, box-shadow .16s ease-out; }
.logo-chip:hover img { transform: translateY(-4px); box-shadow: var(--shadow); }
.logo-chip figcaption { margin-top: .7rem; font-weight: 600; font-size: .85rem; color: #5a4a41; line-height: 1.3; max-width: 14ch; }
@media (max-width: 700px) { .logo-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .lead-partners { grid-template-columns: 1fr; } }

/* ---------- partners ---------- */
.partners { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 2.2rem; }
.partner {
  background: #fff; border: 1px solid var(--line); color: #3c5b57;
  padding: .6rem 1.1rem; border-radius: var(--pill); font-weight: 600; font-size: .94rem;
}
.partner--lead { background: var(--teal); color: #fff; border-color: var(--teal); }

/* coming-soon pill */
.soon-pill {
  display: inline-flex; align-items: center; font-weight: 700; font-size: .9rem;
  color: var(--ink-soft); background: var(--peach-2); border: 1px dashed #e2b6a4;
  padding: .55rem 1.1rem; border-radius: var(--pill);
}

/* ---------- blog CTA ---------- */
.blog-cta {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm); padding: clamp(2.2rem, 5vw, 3.4rem); text-align: center;
}
.blog-badge {
  display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; font-size: .85rem;
  color: var(--coral-d); background: var(--peach-2); padding: .35rem 1rem; border-radius: var(--pill);
  margin-bottom: 1rem;
}
.blog-cta .section-title { margin-bottom: .4rem; }
.blog-cta > p { color: #5a4a41; }
.blog-actions { display: flex; flex-direction: column; align-items: center; gap: .9rem; margin-top: 1.6rem; }
.blog-write { font-weight: 700; color: var(--coral-d); text-decoration: underline; text-underline-offset: 3px; }
.blog-write:hover { color: var(--red); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-grid > div:first-child p { color: #e9d8cf; }
.contact-grid a { font-weight: 700; }
form { background: #fff; color: var(--ink); padding: 1.9rem; border-radius: var(--r-lg); box-shadow: var(--shadow); }
.form-field { margin-bottom: 1rem; }
.form-field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: .35rem; }
.form-field input, .form-field textarea {
  width: 100%; padding: .8rem .9rem; border: 2px solid var(--line); border-radius: var(--r-sm);
  font-family: inherit; font-size: 1rem; background: var(--paper); color: var(--ink); transition: border-color .15s;
}
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--coral); }
.form-field textarea { resize: vertical; }
form .btn { width: 100%; justify-content: center; background: var(--coral); color: #fff; box-shadow: var(--shadow-sm); }
form .btn:hover { background: var(--coral-d); box-shadow: var(--shadow); }
#formStatus { font-weight: 600; font-size: .95rem; }

/* ---------- footer ---------- */
.site-footer { background: #211b18; color: #d8c8be; padding: 3rem 0 1.6rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2rem; }
.site-footer .brand { color: #fff; }
.footer-grid h4 { color: #fff; font-size: 1rem; margin-bottom: .9rem; }
.footer-grid a { display: block; color: #c4b4aa; padding: .25rem 0; font-size: .95rem; transition: color .15s; }
.footer-grid a:hover { color: var(--gold); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem; margin-top: 2.4rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .88rem; color: #9d8e85; }
.footer-bottom a:hover { color: var(--gold); }

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

/* ---------- responsive ---------- */
@media (max-width: 880px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: flex; }
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .hero-media { max-width: 460px; margin: 1.8rem auto 0; }
  .cards, .involve { grid-template-columns: 1fr 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; gap: 1.6rem 1rem; }
  .stat::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .mission-callout { transform: none; }
}
@media (max-width: 540px) {
  .cards, .involve { grid-template-columns: 1fr; }
  .hero-media img { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover, .gallery img:hover { transform: none; }
}
