:root {
  --cream:       #F5F0E8;
  --cream-dark:  #EDE6D6;
  --brown-deep:  #3B2A1A;
  --brown-mid:   #6B4C2A;
  --brown-light: #A07850;
  --warm-tan:    #C9A87C;
  --sage:        #7A9B6E;
  --sage-light:  #B5C9A8;
  --sage-pale:   #E8F0E4;
  --orange-warm: #D4693A;
  --orange-pale: #F5E4D8;
  --gold:        #C8963C;
  --gold-pale:   #F7EDD8;

  --font-head: 'Fredoka', sans-serif;
  --font-body: 'Nunito', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--brown-deep);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245,240,232,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1.5px solid var(--cream-dark);
  padding: 0.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
nav .logo {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brown-deep);
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
nav .logo span { color: var(--sage); }
nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  white-space: nowrap;
  padding: 0;
  margin: 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
nav ul::-webkit-scrollbar { display: none; }
nav a {
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--brown-mid);
  transition: color 0.2s;
}
nav a:hover { color: var(--orange-warm); }

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 2rem 4rem;
  position: relative;
  background: radial-gradient(ellipse at 50% 30%, #EDE6D6 0%, var(--cream) 70%);
  overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--sage-light) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.18;
  pointer-events: none;
}

.hero-mascot {
  width: 200px;
  height: 200px;
  object-fit: contain;
  margin-bottom: 2rem;
  filter: drop-shadow(0 12px 24px rgba(59,42,26,0.15));
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}
.hero-mascot-placeholder {
  width: 160px;
  height: 160px;
  background: var(--gold-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  margin: 0 auto 2rem;
  border: 3px solid var(--gold);
  animation: float 4s ease-in-out infinite;
}
h1 {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 8vw, 5.5rem);
  font-weight: 700;
  color: var(--brown-deep);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}
h1 .accent { color: var(--sage); }
.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--brown-light);
  font-weight: 400;
  margin-bottom: 2.5rem;
  max-width: 480px;
}
.hero-cta {
  display: inline-block;
  background: var(--orange-warm);
  color: #fff;
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.9rem 2.4rem;
  border-radius: 99px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(212,105,58,0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212,105,58,0.4);
}
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  font-size: 0.8rem;
  color: var(--warm-tan);
  letter-spacing: 0.1em;
  font-family: var(--font-head);
  animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}

/* ── CHARACTER SECTIONS ── */
.character-section {
  padding: 5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  max-width: 1100px;
  margin: 0 auto;
}
.character-section.reverse { flex-direction: row-reverse; }

.char-image-wrap {
  flex: 0 0 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.char-image-wrap img {
  width: 260px;
  height: 260px;
  object-fit: contain;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 16px 32px rgba(59,42,26,0.12));
  transition: transform 0.4s ease;
}
.char-image-wrap:hover img { transform: scale(1.05) rotate(-2deg); }

.char-blob {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%;
  z-index: 1;
  opacity: 0.45;
}

.char-content { flex: 1; max-width: 540px; }

.char-tag {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 99px;
  margin-bottom: 1rem;
}
h2.char-name {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 0.4rem;
}
h3.char-subtitle {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 1.2rem;
  opacity: 0.7;
}
.char-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--brown-mid);
  margin-bottom: 1.6rem;
}
.char-tips {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.char-tips li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.98rem;
  color: var(--brown-mid);
}
.char-tips li::before {
  content: '✦';
  flex-shrink: 0;
  font-size: 0.75rem;
  margin-top: 0.35rem;
}

/* ── DIVIDERS ── */
.wavy-divider {
  width: 100%;
  overflow: hidden;
  line-height: 0;
}
.wavy-divider svg { display: block; width: 100%; }

/* ── SECTION BACKGROUNDS ── */
.bg-cream    { background: var(--cream); }
.bg-sage     { background: var(--sage-pale); }
.bg-orange   { background: var(--orange-pale); }
.bg-gold     { background: var(--gold-pale); }
.bg-tan      { background: #EDE6D6; }

/* ── STATS STRIP ── */
.stats-strip {
  background: var(--brown-deep);
  color: var(--cream);
  padding: 3.5rem 2rem;
  text-align: center;
}
.stats-strip h2 {
  font-family: var(--font-head);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 500;
  margin-bottom: 2.5rem;
  opacity: 0.8;
}
.stats-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
}
.stat-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 1.6rem 2rem;
  min-width: 180px;
}
.stat-card .num {
  font-family: var(--font-head);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--warm-tan);
  line-height: 1;
}
.stat-card .label {
  font-size: 0.9rem;
  opacity: 0.65;
  margin-top: 0.4rem;
}

/* ── FOOTER ── */
footer {
  background: var(--brown-deep);
  color: var(--cream);
  text-align: center;
  padding: 2.5rem 2rem;
  font-size: 0.9rem;
  opacity: 0.9;
}
footer .logo {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
footer .logo span { color: var(--sage-light); }

.footer {
  text-align: center;
  margin-top: 0px;
  padding: 40px 0;
  color: #6f8f6f;
  border-top: 1px solid rgba(0,0,0,0.05);
}
.footer-text {
  font-size: 14px;
  margin-bottom: 10px;
  opacity: 0.8;
}
.footer .insta-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  color: #6f8f6f;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.footer .insta-link:hover {
  transform: translateY(-2px);
  opacity: 0.7;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {

  /* Nav: logo on top, links below */
  nav {
    flex-direction: column;
    align-items: center;
    padding: 0.75rem 1rem;
    gap: 6px;
  }
  nav .logo {
    text-align: center;
  }
  nav ul {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 16px;
    overflow-x: auto;
    flex-wrap: nowrap;
    max-width: 100%;
    padding-bottom: 2px;
  }
  nav a {
    white-space: nowrap;
    font-size: 14px;
  }

  body {
    overflow-x: hidden;
  }

  /* Stack character sections vertically, image on top */
  .character-section,
  .character-section.reverse {
    flex-direction: column;
    gap: 2rem;
    padding: 3.5rem 1.5rem;
    text-align: center;
  }

  .char-image-wrap {
    flex: 0 0 auto;
    width: 200px;
    height: 200px;
    margin: 0 auto;
  }
  .char-image-wrap img {
    width: 180px;
    height: 180px;
  }
  .char-blob {
    width: 200px;
    height: 200px;
  }

  .char-content {
    max-width: 100%;
  }

  .char-tips {
    text-align: left;
  }

  /* Stats: 2 columns on mobile */
  .stats-grid {
    gap: 1rem;
  }
  .stat-card {
    flex: 1 1 calc(50% - 0.5rem);
    min-width: 130px;
    padding: 1.2rem 1rem;
  }
  .stat-card .num {
    font-size: 2.2rem;
  }

  /* Hero tweaks */
  #mission {
    padding: 0 !important;
  }
  #hero {
    min-height: unset;
    padding: 2.5rem 1.5rem 1.5rem;
    justify-content: flex-start;
  }
  .hero-mascot {
    width: 150px;
    height: 150px;
  }

  h1 {
    text-align: center;
  }
  .hero-tagline {
    text-align: center;
  }

  h2.char-name,
  h3.char-subtitle {
    text-align: center;
  }

  .scroll-hint {
    position: static;
    margin-top: 1.5rem;
    display: block;
  }
}

@media (max-width: 400px) {
  .stat-card {
    flex: 1 1 100%;
  }
}