/* ============================================================
   Miami Joy Project — Design System
   Palette drawn directly from the org's own logo:
   sky blue, joy pink, sunshine yellow, warm cream, deep navy ink.
   ============================================================ */

:root {
  --blue: #4FB8E8;
  --blue-dark: #2C8FBD;
  --blue-ink: #12435F;
  --pink: #F2477B;
  --pink-dark: #D62F60;
  --yellow: #FFC933;
  --yellow-dark: #E8A800;
  --cream: #FFFBF2;
  --cream-alt: #FFF2DC;
  --ink: #16324A;
  --ink-soft: #4E6A80;
  --ink-faint: #86A0B2;
  --white: #FFFFFF;

  --font-display: 'Baloo 2', system-ui, sans-serif;
  --font-body: 'Work Sans', system-ui, sans-serif;

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;
  --shadow-soft: 0 12px 30px -12px rgba(22, 50, 74, 0.18);
  --shadow-card: 0 8px 24px -10px rgba(22, 50, 74, 0.14);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--blue-ink);
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.4rem, 4.6vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

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

.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--pink-dark);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: var(--yellow);
  display: inline-block;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.btn:focus-visible {
  outline: 3px solid var(--blue-ink);
  outline-offset: 3px;
}
.btn-primary {
  background: var(--pink);
  color: var(--white);
  box-shadow: 0 10px 22px -8px rgba(242, 71, 123, 0.55);
}
.btn-primary:hover { background: var(--pink-dark); transform: translateY(-2px); }

.btn-secondary {
  background: var(--white);
  color: var(--blue-ink);
  border-color: var(--blue);
}
.btn-secondary:hover { background: var(--blue); color: var(--white); transform: translateY(-2px); }

.btn-yellow {
  background: var(--yellow);
  color: var(--blue-ink);
  box-shadow: 0 10px 22px -8px rgba(255, 201, 51, 0.6);
}
.btn-yellow:hover { background: var(--yellow-dark); transform: translateY(-2px); }

.btn-ghost-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.55);
}
.btn-ghost-light:hover { background: rgba(255,255,255,0.14); border-color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 251, 242, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(22, 50, 74, 0.08);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand img { height: 52px; width: 52px; }
.brand-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--blue-ink);
  line-height: 1.1;
}
.brand-word span { color: var(--pink); }
.brand-word small {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 26px;
  margin: 0;
  padding: 0;
}
.main-nav a.nav-link {
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--ink);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.main-nav a.nav-link:hover,
.main-nav a.nav-link[aria-current="page"] {
  color: var(--blue-dark);
  border-bottom-color: var(--blue);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--blue-ink);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    inset: 76px 0 0 0;
    background: var(--cream);
    flex-direction: column;
    align-items: stretch;
    padding: 20px 28px 40px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    overflow-y: auto;
  }
  .main-nav.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .main-nav ul {
    flex-direction: column;
    gap: 4px;
  }
  .main-nav a.nav-link {
    display: block;
    padding: 14px 6px;
    border-bottom: 1px solid rgba(22,50,74,0.08);
  }
  .main-nav .btn { margin-top: 16px; width: 100%; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 90px;
}
.hero-confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-copy p.lead {
  font-size: 1.12rem;
  max-width: 46ch;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.hero-badges {
  display: flex;
  gap: 22px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.hero-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--blue-ink);
}
.hero-badge svg { flex-shrink: 0; }

.hero-art {
  position: relative;
}
.hero-art .blob-photo {
  position: relative;
  border-radius: 42% 58% 63% 37% / 45% 40% 60% 55%;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4 / 4.4;
}
.hero-art .blob-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-art .float-chip {
  position: absolute;
  background: var(--white);
  border-radius: 16px;
  padding: 12px 16px;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--blue-ink);
}
.hero-art .chip-1 { top: 8%; left: -8%; }
.hero-art .chip-2 { bottom: 10%; right: -6%; }

@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 420px; margin: 0 auto; }
  .hero-art .chip-1, .hero-art .chip-2 { display: none; }
}

/* ---------- Sections ---------- */
section { padding: 84px 0; }
.section-alt { background: var(--cream-alt); }
.section-navy {
  background: var(--blue-ink);
  color: var(--white);
}
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy p { color: rgba(255,255,255,0.82); }

.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head.left { margin-left: 0; text-align: left; }

/* ---------- Mission strip ---------- */
.mission-strip {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 26px;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 44px;
  box-shadow: var(--shadow-card);
}
.mission-strip .icon-badge { flex-shrink: 0; }
.mission-strip p { font-size: 1.15rem; color: var(--ink); margin: 0; }
@media (max-width: 700px) {
  .mission-strip { grid-template-columns: 1fr; text-align: center; }
  .mission-strip .icon-badge { margin: 0 auto; }
}

/* ---------- Icon badges ---------- */
.icon-badge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.icon-badge.blue { background: rgba(79, 184, 232, 0.16); }
.icon-badge.pink { background: rgba(242, 71, 123, 0.14); }
.icon-badge.yellow { background: rgba(255, 201, 51, 0.22); }

/* ---------- Card grid ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 900px) {
  .card-grid { grid-template-columns: 1fr; }
}
.program-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 34px 30px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.program-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.program-card .icon-badge { margin-bottom: 20px; }
.program-card h3 { margin-bottom: 10px; }
.program-card p { margin-bottom: 0; font-size: 0.98rem; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: 1fr; }
}
.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: var(--white);
}
.gallery-item .photo-wrap { aspect-ratio: 4/5; overflow: hidden; }
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-caption { padding: 18px 20px 22px; }
.gallery-caption .tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pink-dark);
  margin-bottom: 6px;
}
.gallery-caption p { margin: 0; font-size: 0.92rem; }

/* ---------- 5K banner ---------- */
.event-banner {
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #12435F 0%, #1B5B80 100%);
  color: var(--white);
  padding: 54px;
  display: grid;
  grid-template-columns: 1.2fr auto;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.event-banner::after {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,201,51,0.25), transparent 70%);
  top: -120px;
  right: -80px;
}
.event-banner h2 { color: var(--white); }
.event-banner p { color: rgba(255,255,255,0.88); }
.event-banner .event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin: 18px 0 26px;
}
.event-meta-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 0.95rem;
}
.event-banner .qr-card {
  background: var(--white);
  border-radius: 20px;
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  position: relative;
  z-index: 1;
}
.event-banner .qr-card img { width: 168px; height: 168px; margin: 0 auto; }
.event-banner .qr-card span {
  display: block;
  margin-top: 10px;
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--blue-ink);
  letter-spacing: 0.02em;
}
@media (max-width: 860px) {
  .event-banner { grid-template-columns: 1fr; padding: 38px 26px; text-align: center; }
  .event-banner .event-meta { justify-content: center; }
  .event-banner .qr-card { justify-self: center; }
}

/* ---------- Get involved cards ---------- */
.involve-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
@media (max-width: 900px) { .involve-grid { grid-template-columns: 1fr; } }
.involve-card {
  border-radius: var(--radius-md);
  padding: 36px 30px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.involve-card.bg-blue { background: var(--blue); color: var(--white); }
.involve-card.bg-pink { background: var(--pink); color: var(--white); }
.involve-card.bg-yellow { background: var(--yellow); color: var(--blue-ink); }
.involve-card h3 { color: inherit; }
.involve-card p { color: inherit; opacity: 0.92; }
.involve-card .btn { align-self: flex-start; margin-top: auto; }

/* ---------- Stats / values ---------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .values-grid { grid-template-columns: 1fr; } }
.value-item { text-align: left; }
.value-item .icon-badge { margin-bottom: 16px; }
.value-item h3 { font-size: 1.1rem; margin-bottom: 6px; }
.value-item p { font-size: 0.92rem; margin: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  text-align: center;
  padding: 70px 0;
}
.cta-band h2 { margin-bottom: 14px; }
.cta-band p { max-width: 52ch; margin: 0 auto 30px; font-size: 1.05rem; }
.cta-band .btn-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--blue-ink);
  color: rgba(255,255,255,0.85);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}
.footer-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.footer-brand img { height: 46px; width: 46px; }
.footer-brand span {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--white);
  font-size: 1rem;
}
.site-footer p { color: rgba(255,255,255,0.72); font-size: 0.92rem; }
.footer-col h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.footer-col a { color: rgba(255,255,255,0.82); font-size: 0.95rem; transition: color 0.15s ease; }
.footer-col a:hover { color: var(--yellow); }
.footer-social { display: flex; gap: 12px; margin-top: 6px; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s ease;
}
.footer-social a:hover { background: var(--pink); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 26px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

/* ---------- Page header (interior pages) ---------- */
.page-header {
  padding: 56px 0 60px;
  position: relative;
  overflow: hidden;
}
.page-header .container { position: relative; z-index: 1; max-width: 780px; }
.page-header p.lead { font-size: 1.08rem; max-width: 60ch; }
.breadcrumb {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-faint);
  margin-bottom: 14px;
}
.breadcrumb a:hover { color: var(--blue-dark); }

/* ---------- Content blocks (About page etc.) ---------- */
.content-block { max-width: 760px; }
.content-block h2 { margin-top: 1.4em; }
.content-block p { font-size: 1.02rem; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 860px) {
  .two-col { grid-template-columns: 1fr; }
}
.two-col .photo-frame {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
@media (max-width: 780px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 34px;
  box-shadow: var(--shadow-card);
}
.contact-card h3 { margin-bottom: 8px; }
.contact-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  font-weight: 700;
  color: var(--blue-ink);
}

/* ---------- Steps (5K page) ---------- */
.steps-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 860px) { .steps-list { grid-template-columns: 1fr; } }
.step-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-card);
}
.step-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--pink);
  margin-bottom: 8px;
}

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.stack-gap > * + * { margin-top: 14px; }
