/* ============================================
   HUMBLE BEGINNINGS LEARNING GROUP — STYLES
   ============================================ */

:root {
  --hb-purple: #4a1e9e;
  --hb-purple-deep: #2d1370;
  --hb-pink: #e91e63;
  --hb-magenta: #c2185b;
  --hb-yellow: #ffd02f;
  --hb-orange: #ff8a00;
  --hb-red: #ee2a3c;
  --hb-green: #2bb673;
  --hb-blue: #2196f3;
  --hb-sky: #e0f3ff;
  --hb-cream: #fffaf0;
  --hb-paper: #fff8e7;
  --hb-ink: #1a1240;
  --font-display: "Fredoka", system-ui, sans-serif;
  --font-script: "Caveat", cursive;
  --font-body: "Nunito", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--hb-ink);
  background: var(--hb-cream);
  overflow-x: hidden;
  line-height: 1.6;
}
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.01em; line-height: 1.1; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 250, 240, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 3px solid var(--hb-purple);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
}
.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--hb-purple-deep);
  line-height: 1.1;
}
.brand-text small {
  display: block;
  font-family: var(--font-script);
  font-weight: 600;
  font-size: 14px;
  color: var(--hb-pink);
}
.nav-links {
  display: flex;
  gap: 26px;
  font-weight: 700;
  font-size: 15px;
}
.nav-links a {
  color: var(--hb-purple-deep);
  transition: color 0.2s;
  position: relative;
  padding: 4px 0;
}
.nav-links a:hover { color: var(--hb-pink); }
.nav-links a.active {
  color: var(--hb-pink);
}
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 3px;
  background: var(--hb-pink);
  border-radius: 2px;
}
.nav-cta {
  background: var(--hb-pink);
  color: white !important;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 4px 0 var(--hb-magenta);
  transition: transform 0.15s, box-shadow 0.15s;
}
.nav-cta:hover {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--hb-magenta);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  color: var(--hb-purple-deep);
  cursor: pointer;
}

@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: white;
    flex-direction: column;
    padding: 20px 28px;
    gap: 14px;
    border-bottom: 3px solid var(--hb-pink);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
  }
  .nav.open .nav-cta {
    display: inline-flex;
    margin: 10px 28px 20px;
    align-self: flex-start;
  }
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 28px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 16px;
  font-family: var(--font-display);
  transition: transform 0.15s, box-shadow 0.15s;
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary {
  background: var(--hb-pink);
  color: white;
  box-shadow: 0 6px 0 var(--hb-magenta);
}
.btn-primary:hover { transform: translateY(3px); box-shadow: 0 3px 0 var(--hb-magenta); }
.btn-secondary {
  background: var(--hb-yellow);
  color: var(--hb-purple-deep);
  box-shadow: 0 6px 0 #d4a900;
}
.btn-secondary:hover { transform: translateY(3px); box-shadow: 0 3px 0 #d4a900; }
.btn-outline {
  background: white;
  color: var(--hb-purple-deep);
  box-shadow: 0 6px 0 var(--hb-purple);
  border: 2px solid var(--hb-purple);
}
.btn-outline:hover { transform: translateY(3px); box-shadow: 0 3px 0 var(--hb-purple); }

/* ---------- COMMON SECTION ---------- */
section { padding: 90px 28px; position: relative; }
.container { max-width: 1240px; margin: 0 auto; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-script);
  font-size: 32px;
  color: var(--hb-pink);
  transform: rotate(-3deg);
  margin-bottom: 4px;
}
.section-title {
  font-size: clamp(34px, 4.5vw, 56px);
  color: var(--hb-purple-deep);
  margin-bottom: 16px;
}
.section-lead {
  font-size: 18px;
  max-width: 720px;
  color: #443372;
  margin-bottom: 40px;
}

/* ---------- PAGE HEADER (sub-pages) ---------- */
.page-header {
  background:
    radial-gradient(ellipse at 80% 0%, #fff2a8 0%, transparent 50%),
    radial-gradient(ellipse at 0% 100%, #ffd6e8 0%, transparent 50%),
    linear-gradient(180deg, #fff8e7 0%, #fff3d6 100%);
  padding: 70px 28px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -80px;
  width: 380px; height: 380px;
  background: radial-gradient(circle, #ffd02f 0%, #ff8a00 50%, transparent 70%);
  border-radius: 50%;
  opacity: 0.4;
}
.page-header .container { position: relative; z-index: 2; }
.page-header h1 {
  font-size: clamp(36px, 5vw, 64px);
  color: var(--hb-purple-deep);
  margin-bottom: 14px;
}
.page-header h1 .rainbow {
  background: linear-gradient(90deg, var(--hb-red), var(--hb-orange), var(--hb-yellow), var(--hb-green), var(--hb-blue), var(--hb-purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
  font-family: var(--font-script);
  font-size: 1.15em;
}
.page-header p {
  font-size: 19px;
  color: #443372;
  max-width: 660px;
  margin: 0 auto;
}
.crumbs {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--hb-purple);
  background: white;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
  box-shadow: 0 4px 14px rgba(74,30,158,0.12);
}
.crumbs a { color: var(--hb-pink); }
.crumbs .sep { color: var(--hb-purple); opacity: 0.5; }

/* ---------- TICKER ---------- */
.ticker {
  background: var(--hb-purple-deep);
  color: white;
  padding: 14px 0;
  overflow: hidden;
  white-space: nowrap;
  border-top: 4px solid var(--hb-yellow);
  border-bottom: 4px solid var(--hb-pink);
}
.ticker-track {
  display: inline-block;
  animation: marquee 28s linear infinite;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.04em;
}
.ticker-track span { margin: 0 28px; }
.ticker-track .heart { color: var(--hb-pink); }
.ticker-track .twinkle { color: var(--hb-yellow); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- CTA STRIP ---------- */
.cta-strip {
  background: linear-gradient(90deg, var(--hb-pink), var(--hb-orange), var(--hb-yellow));
  padding: 50px 28px;
  text-align: center;
}
.cta-strip h3 {
  font-size: clamp(28px, 4vw, 42px);
  color: white;
  text-shadow: 2px 2px 0 rgba(0,0,0,0.12);
  margin-bottom: 18px;
}
.cta-strip a {
  background: var(--hb-purple-deep);
  color: white;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  box-shadow: 0 8px 0 rgba(0,0,0,0.15);
  transition: transform 0.15s;
}
.cta-strip a:hover { transform: translateY(3px); box-shadow: 0 5px 0 rgba(0,0,0,0.15); }

/* ---------- FOOTER ---------- */
footer {
  background: var(--hb-purple-deep);
  color: #d9caff;
  padding: 60px 28px 30px;
}
.foot-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.foot-grid h4 {
  color: var(--hb-yellow);
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.foot-grid p, .foot-grid a, .foot-grid li {
  color: #c8b8ed;
  font-size: 14px;
  line-height: 1.7;
}
.foot-grid ul { list-style: none; }
.foot-grid a:hover { color: white; }
.foot-brand {
  font-family: var(--font-display);
  font-size: 24px;
  color: white;
  font-weight: 700;
  margin-bottom: 6px;
}
.foot-tag {
  font-family: var(--font-script);
  font-size: 22px;
  color: var(--hb-pink);
  margin-bottom: 14px;
}
.foot-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 22px;
  max-width: 1240px;
  margin: 0 auto;
  text-align: center;
  font-size: 13px;
  color: #9b8ec9;
}
.foot-bottom .motto {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.foot-bottom .motto span { font-weight: 700; }
@media (max-width: 880px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- REVEAL ANIMATIONS ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- FORM ---------- */
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-weight: 800;
  font-size: 13px;
  color: var(--hb-purple-deep);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 2px solid #e6d8ff;
  background: white;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--hb-ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--hb-pink);
  box-shadow: 0 0 0 4px rgba(233, 30, 99, 0.12);
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 720px) { .field-row { grid-template-columns: 1fr; } }
