/* ============================================================
   HapiFound — Style C : Bold / Uplifting / Modern
   ============================================================ */

:root {
  --cream:      #FFF8E7;
  --cream-deep: #FFF0CC;
  --coral:      #FF6B6B;
  --coral-deep: #E04E4E;
  --yellow:     #FFD93D;
  --teal:       #2A5F6F;
  --teal-deep:  #1C434F;
  --purple:     #E8E4F0;
  --ink:        #1A2E36;
  --ink-soft:   #4A5A63;

  --max: 1200px;
  --radius-lg: 32px;
  --radius-xl: 48px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 32px; }

h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--teal);
}
h1 { font-size: clamp(34px, 9vw, 120px); letter-spacing: -0.035em; }
h2 { font-size: clamp(42px, 6vw, 72px); letter-spacing: -0.03em; }
h3 { font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -0.02em; }
p  { font-size: 17px; color: var(--ink-soft); line-height: 1.65; }
p + p { margin-top: 1.1em; }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--coral-deep);
  background: var(--cream-deep);
  padding: 8px 16px;
  border-radius: 999px;
}

/* CTAs */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  padding: 18px 32px;
  border-radius: 999px;
  background: var(--coral);
  color: white;
  transition: transform 0.15s, background 0.18s, box-shadow 0.18s;
  box-shadow: 0 6px 0 var(--coral-deep);
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--coral-deep); }
.cta:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--coral-deep); }

.cta--teal { background: var(--teal); box-shadow: 0 6px 0 var(--teal-deep); }
.cta--teal:hover { box-shadow: 0 8px 0 var(--teal-deep); }

.cta--yellow { background: var(--yellow); color: var(--teal); box-shadow: 0 6px 0 #C9A82A; }
.cta--yellow:hover { box-shadow: 0 8px 0 #C9A82A; }

.cta--ghost {
  background: transparent;
  color: var(--teal);
  box-shadow: inset 0 0 0 2.5px var(--teal);
}
.cta--ghost:hover { background: var(--teal); color: white; box-shadow: inset 0 0 0 2.5px var(--teal); transform: translateY(-2px); }

.linklike {
  font-weight: 700;
  color: var(--coral-deep);
  border-bottom: 2.5px solid var(--coral-deep);
  padding-bottom: 2px;
}
.linklike:hover { color: var(--teal); border-color: var(--teal); }

/* Header ----------------------------------------------------------------- */

.site-header {
  padding: 20px 0;
  position: sticky;
  top: 16px;
  z-index: 50;
}
.site-header .container {
  background: white;
  border-radius: 999px;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 8px 30px rgba(42, 95, 111, 0.08);
}
.wordmark {
  font-family: var(--font);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--teal);
}
.wordmark span { color: var(--coral); }
.nav { display: flex; gap: 24px; font-size: 15px; font-weight: 600; align-items: center; }
.nav a { color: var(--teal); }
.nav a:hover { color: var(--coral); }
.nav .cta { padding: 10px 22px; font-size: 14px; box-shadow: 0 4px 0 var(--coral-deep); }
@media (max-width: 720px) { .nav a:not(.cta) { display: none; } }

/* Hero ------------------------------------------------------------------- */

.hero {
  padding: 60px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  background: var(--yellow);
  border-radius: 50%;
  top: -200px;
  right: -200px;
  opacity: 0.5;
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  background: var(--purple);
  border-radius: 50%;
  bottom: -150px;
  left: -100px;
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }
.hero .grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 920px) { .hero .grid { grid-template-columns: 1fr; } }
.hero .eyebrow { margin-bottom: 24px; }
.hero h1 { margin-bottom: 28px; }
.hero h1 .accent {
  background: linear-gradient(120deg, transparent 50%, var(--yellow) 50%);
  padding: 0 8px;
}
.hero p.lede { font-size: 20px; margin-bottom: 36px; max-width: 540px; }
.hero .ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-image {
  aspect-ratio: 1/1;
  border-radius: var(--radius-xl);
  background: var(--purple);
  background-size: cover;
  background-position: center;
  box-shadow: 12px 12px 0 var(--coral);
  transform: rotate(-2deg);
}

/* Quote band ------------------------------------------------------------- */

.quote-band {
  background: var(--teal);
  color: white;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.quote-band::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  background: var(--coral);
  border-radius: 50%;
  top: -100px;
  right: 10%;
  opacity: 0.18;
}
.quote-band::after {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  background: var(--yellow);
  border-radius: 50%;
  bottom: -50px;
  left: 8%;
  opacity: 0.18;
}
.quote-band .container { position: relative; z-index: 1; }
.quote-band blockquote {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
  color: white;
}
.quote-band blockquote em {
  font-style: normal;
  color: var(--yellow);
}
.quote-band cite {
  display: block;
  font-style: normal;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--coral);
  margin-top: 32px;
}

/* Mission ---------------------------------------------------------------- */

.mission {
  padding: 130px 0;
}
.mission .head { text-align: center; max-width: 800px; margin: 0 auto 56px; }
.mission .head .eyebrow { margin-bottom: 24px; }
.mission .body { max-width: 760px; margin: 0 auto; text-align: center; }
.mission .body p { font-size: 19px; }
.mission .body p em {
  background: var(--yellow);
  font-style: normal;
  padding: 0 6px;
  border-radius: 4px;
}

/* Programs --------------------------------------------------------------- */

.programs {
  padding: 130px 0;
  background: var(--purple);
}
.programs .head { text-align: center; margin-bottom: 64px; }
.programs .head .eyebrow { margin-bottom: 22px; background: white; }
.programs .grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
@media (max-width: 720px) { .programs .grid { grid-template-columns: 1fr; } }
.program {
  background: white;
  border-radius: var(--radius-lg);
  padding: 44px 36px;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 3px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
}
.program:hover { transform: translate(-2px, -2px); box-shadow: 10px 10px 0 var(--ink); }
.program .icon {
  width: 64px; height: 64px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin-bottom: 22px;
  background: var(--yellow);
}
.program:nth-child(2) .icon { background: var(--coral); }
.program:nth-child(3) .icon { background: var(--teal); }
.program:nth-child(4) .icon { background: var(--yellow); }
.program h3 { margin-bottom: 12px; }
.program p { margin-bottom: 22px; font-size: 16px; }

/* Stories ---------------------------------------------------------------- */

.stories { padding: 130px 0; }
.stories .head { text-align: center; margin-bottom: 70px; }
.stories .head .eyebrow { margin-bottom: 22px; }
.story-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
@media (max-width: 720px) { .story-cards { grid-template-columns: 1fr; } }
.story-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 3px solid var(--ink);
  box-shadow: 10px 10px 0 var(--coral);
}
.story-card:nth-child(2) { box-shadow: 10px 10px 0 var(--teal); }
.story-card .img {
  aspect-ratio: 16/10;
  background-size: cover;
  background-position: center;
  border-bottom: 3px solid var(--ink);
}
.story-card .body { padding: 32px; }
.story-card .tag {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--coral-deep);
  background: var(--cream-deep);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.story-card h3 { margin-bottom: 14px; }
.story-card p { margin-bottom: 12px; font-size: 16px; }

/* Get involved ---------------------------------------------------------- */

.involve {
  padding: 130px 0;
  background: var(--yellow);
}
.involve .head { text-align: center; margin-bottom: 64px; }
.involve .head .eyebrow { margin-bottom: 22px; background: white; }
.involve .head h2 { color: var(--teal); }
.involve .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 720px) { .involve .grid { grid-template-columns: 1fr; } }
.involve .cell {
  background: white;
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  text-align: center;
  border: 3px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
}
.involve .cell .emoji {
  font-size: 40px;
  margin-bottom: 18px;
  display: block;
}
.involve .cell h3 { margin-bottom: 14px; }
.involve .cell p { font-size: 15px; margin-bottom: 24px; min-height: 96px; color: var(--ink-soft); }

/* Footer ----------------------------------------------------------------- */

.site-footer {
  background: var(--teal-deep);
  color: white;
  padding: 100px 0 36px;
}
.site-footer .grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 70px;
}
@media (max-width: 720px) { .site-footer .grid { grid-template-columns: 1fr 1fr; } }
.site-footer .wordmark {
  color: white;
  font-size: 36px;
  display: block;
  margin-bottom: 16px;
}
.site-footer .wordmark span { color: var(--yellow); }
.site-footer h4 {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow);
  font-weight: 800;
  margin-bottom: 18px;
}
.site-footer p, .site-footer a, .site-footer li {
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  line-height: 1.9;
}
.site-footer ul { list-style: none; }
.site-footer a:hover { color: var(--coral); }
.site-footer .fineprint {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 28px;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}

/* === Polish: keep energetic, lift refinement === */
.hero-image { transform: rotate(-1deg); box-shadow: 14px 14px 0 var(--coral), 0 24px 60px rgba(0,0,0,0.08); }
.hero h1 .accent { background: linear-gradient(120deg, transparent 55%, var(--yellow) 55%); }
.cta { letter-spacing: 0.005em; }

/* === QA fix: mobile horizontal-overflow guard === */
html, body { overflow-x: hidden; max-width: 100%; }
h1, h2, h3 { overflow-wrap: break-word; word-break: normal; }
