/* ===== Design tokens ===== */
:root {
  /* Core brand */
  --brand:        #0ca678;   /* vivid teal-green */
  --brand-dark:   #087f5b;

  /* Vibrant accent palette */
  --c-coral:      #ff6b6b;
  --c-orange:     #ff922b;
  --c-yellow:     #ffd43b;
  --c-green:      #51cf66;
  --c-cyan:       #22b8cf;
  --c-blue:       #4dabf7;
  --c-purple:     #9775fa;
  --c-pink:       #f06595;

  --ink:          #1f2933;
  --muted:        #5b6b73;
  --bg:           #ffffff;
  --bg-alt:       #fff7f0;   /* warm off-white */
  --border:       #eee3da;
  --radius:       16px;
  --shadow:       0 10px 35px rgba(20, 40, 60, 0.10);
  --shadow-color: 0 12px 30px rgba(255, 107, 107, 0.25);
  --maxw:         1080px;
  --font:         system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Reusable gradients */
  --grad-warm:  linear-gradient(135deg, #ff6b6b, #ff922b);
  --grad-cool:  linear-gradient(135deg, #22b8cf, #4dabf7);
  --grad-fun:   linear-gradient(135deg, #9775fa, #f06595);
  --grad-brand: linear-gradient(135deg, #0ca678, #22b8cf);
  --grad-rainbow: linear-gradient(120deg, #ff6b6b, #ff922b, #ffd43b, #51cf66, #22b8cf, #9775fa);
}

/* ===== Reset / base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); margin-bottom: .75em; }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1rem; }
a  { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 720px; }
.center { text-align: center; }
.muted  { color: var(--muted); }
.small  { font-size: .9rem; }

/* Gradient text accent */
.accent {
  background: var(--grad-warm);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--c-coral); /* fallback */
}

/* Colorful underline under section headings */
.section h2.center, .cta h2, #mission h2 { position: relative; }
.section h2.center::after {
  content: "";
  display: block;
  width: 72px; height: 5px;
  margin: .6rem auto 0;
  border-radius: 999px;
  background: var(--grad-rainbow);
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  background: var(--grad-warm);
  color: #fff;
  padding: .8rem 1.7rem;
  border-radius: 999px;
  font-weight: 700;
  border: 0;
  box-shadow: var(--shadow-color);
  transition: transform .12s ease, box-shadow .2s ease, filter .2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); filter: brightness(1.05); box-shadow: 0 16px 34px rgba(255,107,107,.35); }
.btn-ghost { background: #fff; color: var(--brand-dark); border: 2px solid var(--brand); box-shadow: none; }
.btn-ghost:hover { background: var(--grad-brand); color: #fff; border-color: transparent; }
.btn-small { padding: .55rem 1.2rem; font-size: .95rem; box-shadow: none; }
.btn-large { padding: 1rem 2.5rem; font-size: 1.1rem; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: .5rem; font-weight: 800; font-size: 1.15rem; color: var(--ink); }
.logo:hover { text-decoration: none; }
.logo-mark {
  font-size: 1.3rem;
  background: var(--grad-fun);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--c-pink);
}
.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav a { color: var(--ink); font-weight: 500; }
.nav a:hover { color: var(--brand); text-decoration: none; }
.nav a.btn { color: #fff; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    url("images/community.svg") bottom center / min(1200px, 130%) auto no-repeat,
    linear-gradient(135deg, #845ef7 0%, #5c7cfa 30%, #22b8cf 65%, #0ca678 100%);
  padding: clamp(3.5rem, 9vw, 6.5rem) 0;
}
/* soft glow blobs for extra color depth */
.hero::before, .hero::after {
  content: "";
  position: absolute;
  width: 420px; height: 420px;
  border-radius: 50%;
  filter: blur(40px);
  opacity: .45;
  pointer-events: none;
}
.hero::before { background: var(--c-pink);   top: -120px; right: -80px; }
.hero::after  { background: var(--c-yellow); bottom: -160px; left: -100px; opacity: .35; }
.hero-inner { position: relative; z-index: 1; max-width: 760px; }
.hero h1 { color: #fff; }
.hero .accent { -webkit-text-fill-color: #ffd43b; color: #ffd43b; background: none; }
.eyebrow {
  display: inline-block;
  text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700;
  color: #fff;
  background: rgba(255,255,255,.18);
  padding: .35rem .9rem; border-radius: 999px;
  margin-bottom: 1.1rem;
}
.lead { font-size: 1.2rem; color: rgba(255,255,255,.92); max-width: 600px; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.75rem; }
.hero .btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.7); }
.hero .btn-ghost:hover { background: #fff; color: var(--brand-dark); }

/* ===== Sections ===== */
.section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section.alt { background: var(--bg-alt); }

/* ===== Cards ===== */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; margin-top: 2.5rem; }
.card {
  position: relative;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem 1.75rem; box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .15s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(20,40,60,.14); }
/* colored top stripe per card */
.card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px; }
.card:nth-child(1)::before { background: var(--grad-warm); }
.card:nth-child(2)::before { background: var(--grad-cool); }
.card:nth-child(3)::before { background: var(--grad-fun); }
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 18px;
  font-size: 2rem; margin-bottom: 1rem;
}
.card:nth-child(1) .card-icon { background: #fff0f0; }
.card:nth-child(2) .card-icon { background: #e7f9fb; }
.card:nth-child(3) .card-icon { background: #f5f0ff; }
.card p { color: var(--muted); margin: 0; }

/* ===== Stats ===== */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1.25rem; margin-top: 2.5rem; text-align: center; }
.stat {
  padding: 1.5rem 1rem;
  border-radius: var(--radius);
  color: #fff;
}
.stat:nth-child(1) { background: var(--grad-warm); }
.stat:nth-child(2) { background: var(--grad-cool); }
.stat:nth-child(3) { background: var(--grad-fun); }
.stat:nth-child(4) { background: var(--grad-brand); }
.stat-num { display: block; font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; color: #fff; }
.stat-label { color: rgba(255,255,255,.92); font-weight: 600; }

/* ===== CTA ===== */
.cta {
  position: relative; overflow: hidden;
  background: var(--grad-rainbow);
  background-size: 200% 200%;
  color: #fff; padding: clamp(3rem, 7vw, 5rem) 0;
}
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.95); }
.cta .btn { background: #fff; color: #e8590c; box-shadow: 0 12px 30px rgba(0,0,0,.18); }
.cta .btn:hover { background: #fff; color: #d9480f; }
.fine { font-size: .85rem; color: rgba(255,255,255,.85); margin-top: 1rem; }

/* ===== Upcoming Event ===== */
.section-eyebrow {
  text-transform: uppercase; letter-spacing: .12em; font-weight: 700;
  font-size: .8rem; color: var(--c-purple); margin: 0 0 .3rem;
}
.event-card {
  display: flex; align-items: stretch;
  max-width: 860px; margin: 2.5rem auto 0;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.event-date {
  flex: 0 0 140px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--grad-cool); color: #fff; text-align: center;
}
.event-month { text-transform: uppercase; letter-spacing: .1em; font-weight: 700; font-size: 1.1rem; }
.event-day { font-size: 3.4rem; font-weight: 800; line-height: 1; }
.event-body { padding: 1.9rem; }
.event-body h3 { font-size: 1.45rem; margin-bottom: .2rem; }
.event-host { color: var(--muted); margin-bottom: 1rem; }
.event-host strong { color: var(--brand-dark); }
.event-meta { list-style: none; padding: 0; margin: 0 0 1.1rem; display: grid; gap: .45rem; }
.event-meta li { display: flex; gap: .55rem; align-items: center; font-weight: 500; }
.event-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.25rem; }

@media (max-width: 640px) {
  .event-card { flex-direction: column; }
  .event-date { flex-basis: auto; flex-direction: row; gap: .6rem; padding: 1rem; }
  .event-day { font-size: 2rem; }
}

/* Event flyer image */
.event-flyer { max-width: 480px; margin: 2.5rem auto 0; text-align: center; }
.event-flyer img {
  width: 100%; height: auto; border-radius: var(--radius);
  border: 1px solid var(--border); box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .2s ease;
}
.event-flyer a:hover img { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(20,40,60,.18); }
.event-flyer figcaption { margin-top: .6rem; }

/* ===== Footer ===== */
.site-footer { background: var(--ink); color: #cdd8d3; padding: 2.5rem 0; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; align-items: flex-start; }
.site-footer .logo { color: #fff; }
.site-footer a { color: var(--c-yellow); }
.footer-contact { text-align: right; }
@media (max-width: 600px) { .footer-contact { text-align: left; } }

/* ===== Mobile nav ===== */
@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: .5rem 1.25rem 1rem;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: .75rem 0; border-bottom: 1px solid var(--border); }
  .nav a.btn { text-align: center; margin-top: .75rem; }
}
