/* =========================================================
   HnH Kids — Main Stylesheet
   Brand palette: Yellow #FFB800 · Blue #2176C7 · Purple #8B3FC9
   ========================================================= */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --yellow:   #FFB800;
  --yellow-lt:#FFF0B3;
  --yellow-dk:#E5A500;
  --blue:     #2176C7;
  --blue-lt:  #D6EAFF;
  --purple:   #8B3FC9;
  --purple-lt:#EFD9FF;
  --orange:   #FF7B2B;
  --orange-lt:#FFE8D6;
  --green:    #27AE60;
  --green-lt: #D5F5E3;
  --dark:     #1A1A2E;
  --text:     #3D3D5C;
  --white:    #FFFFFF;
  --bg:       #FFF7E6;

  --radius:   18px;
  --shadow:   0 6px 24px rgba(0,0,0,.12);
  --shadow-lg:0 12px 40px rgba(0,0,0,.18);

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  white-space: nowrap;
}
.btn:hover  { transform: translateY(-3px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0);    box-shadow: none; }

.btn-subscribe {
  background: var(--blue);
  color: var(--white);
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 800;
  font-size: .95rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform .18s, box-shadow .18s;
}
.btn-subscribe:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(33,118,199,.4); }

.btn-youtube {
  background: #FF0000;
  color: var(--white);
}
.btn-youtube:hover { filter: brightness(1.1); box-shadow: 0 6px 20px rgba(255,0,0,.4); }

.btn-primary {
  background: var(--yellow);
  color: var(--dark);
}
.btn-primary:hover { box-shadow: 0 6px 20px rgba(255,184,0,.5); }

.btn-lg  { font-size: 1.15rem; padding: 14px 36px; }
.btn-xl  { font-size: 1.3rem;  padding: 16px 44px; }

.yt-icon { font-size: .85em; }

/* ---------- Section headings ---------- */
.section-heading {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--dark);
  margin-bottom: 12px;
}
.section-heading.centered { text-align: center; }
.section-sub {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 48px;
}
.section-sub.centered { text-align: center; }
.highlight { color: var(--blue); }

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,.1);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}
.logo-text {
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--blue);
  letter-spacing: .5px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}
.nav-link {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  position: relative;
  padding-bottom: 2px;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--yellow);
  border-radius: 2px;
  transition: width .2s ease;
}
.nav-link:hover::after { width: 100%; }
.nav-link:hover { color: var(--blue); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--dark);
  border-radius: 3px;
  transition: transform .2s, opacity .2s;
}

/* ===== HERO / BANNER ===== */
.hero { position: relative; background: var(--yellow); }
.banner-wrap { position: relative; width: 100%; }
.banner-img {
  width: 100%;
  height: clamp(200px, 35vw, 440px);
  object-fit: cover;
  object-position: center;
  display: block;
}
.banner-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.stars {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.star {
  position: absolute;
  color: rgba(255,255,255,.6);
  font-size: 1.6rem;
  animation: twinkle 2s ease-in-out infinite alternate;
}
.s1 { top: 12%; left: 5%;  animation-delay: 0s;   }
.s2 { top: 20%; right: 8%; animation-delay: .5s;  }
.s3 { bottom:15%; left: 12%; animation-delay: 1s; }
.s4 { bottom:10%; right:15%; animation-delay: .3s;}
.s5 { top: 50%; right: 3%; animation-delay: .8s; }

@keyframes twinkle {
  from { opacity: .4; transform: scale(.9); }
  to   { opacity: 1;  transform: scale(1.2); }
}

/* ===== TAGLINE ===== */
.tagline-section {
  position: relative;
  background: var(--yellow);
  text-align: center;
  padding: 56px 24px 80px;
}
.tagline-inner { position: relative; z-index: 1; }
.tagline-heading {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 4.5vw, 3rem);
  color: var(--dark);
  margin-bottom: 12px;
  text-shadow: 2px 2px 0 rgba(255,255,255,.4);
}
.tagline-sub {
  font-size: clamp(.9rem, 2vw, 1.15rem);
  font-weight: 700;
  color: rgba(26,26,46,.75);
  margin-bottom: 32px;
  letter-spacing: .5px;
}
.wave { position: absolute; bottom: 0; left: 0; right: 0; line-height: 0; }
.wave svg { width: 100%; height: 60px; }

/* ===== ABOUT ===== */
.about-section {
  background: var(--white);
  padding: 80px 0;
}
.about-inner {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 64px;
  align-items: center;
}
.about-img-wrap {
  display: flex;
  justify-content: center;
}
.about-logo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
  border: 6px solid var(--yellow);
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0%,100% { transform: translateY(0);    }
  50%      { transform: translateY(-12px);}
}
.about-text p {
  font-size: 1.05rem;
  margin-bottom: 28px;
  line-height: 1.75;
}

/* ===== CATEGORIES ===== */
.categories-section {
  padding: 80px 0;
  background: var(--bg);
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}
.card {
  border-radius: var(--radius);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow);
  transition: transform .22s ease, box-shadow .22s ease;
  cursor: pointer;
}
.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-lg);
}
.card-yellow { background: var(--yellow-lt); border-top: 5px solid var(--yellow); }
.card-blue   { background: var(--blue-lt);   border-top: 5px solid var(--blue);   }
.card-purple { background: var(--purple-lt); border-top: 5px solid var(--purple); }
.card-orange { background: var(--orange-lt); border-top: 5px solid var(--orange); }

.card-icon  { font-size: 2.8rem; line-height: 1; }
.card-title {
  font-family: var(--font-head);
  font-size: 1.4rem;
  color: var(--dark);
}
.card-desc  { font-size: .97rem; color: var(--text); flex: 1; }
.card-cta   { font-weight: 800; font-size: .9rem; color: var(--blue); margin-top: 8px; }

/* ===== SUBSCRIBE ===== */
.subscribe-section { padding: 0; }
.subscribe-bg {
  background: linear-gradient(135deg, var(--blue) 0%, var(--purple) 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.subscribe-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(255,255,255,.08) 0%, transparent 60%),
                    radial-gradient(circle at 80% 20%, rgba(255,255,255,.06) 0%, transparent 50%);
}
.subscribe-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  position: relative;
  z-index: 1;
}
.subscribe-content {
  text-align: center;
  color: var(--white);
  max-width: 540px;
}
.subscribe-content h2 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 16px;
}
.subscribe-content p {
  font-size: 1.05rem;
  opacity: .9;
  margin-bottom: 32px;
  line-height: 1.7;
}
.subscribe-deco {
  font-size: 2rem;
  display: flex;
  flex-direction: column;
  gap: 16px;
  opacity: .6;
  animation: float 3s ease-in-out infinite;
}
.subscribe-deco.right { animation-delay: 1s; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,.75);
  padding: 36px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 1.25rem;
  color: var(--white);
}
.footer-logo-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.footer-copy { font-size: .9rem; }
.footer-links a {
  color: var(--yellow);
  font-weight: 700;
  transition: opacity .15s;
}
.footer-links a:hover { opacity: .75; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .main-nav, .btn-subscribe { display: none; }

  .hamburger { display: flex; }

  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--white);
    align-items: center;
    justify-content: center;
    gap: 32px;
    z-index: 200;
  }
  .main-nav.open .nav-link { font-size: 1.5rem; }
  .main-nav.open .btn-subscribe { display: inline-flex; }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }
  .about-img-wrap { justify-content: center; }

  .subscribe-deco { display: none; }

  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .tagline-heading { font-size: 1.5rem; }
  .btn-xl { font-size: 1.1rem; padding: 14px 28px; }
}
