/* ============================================================
   Little Buddies Preschool - Shared Stylesheet
   Brand: Blue (#1B6FC8) + Green (#3BAA35) from LB logo
   Fonts: Fredoka (headings) + Nunito (body)
   Theme: Energetic, trustworthy, warm — for ages 2-6
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Nunito:wght@400;500;600;700;800&display=swap');

:root {
  --brand-blue:   #1B6FC8;
  --brand-green:  #3BAA35;
  --brand-dark:   #1A2B4A;
  --pink:     #F0527A;
  --orange:   #FF8C42;
  --green:    #3BAA35;
  --purple:   #7C4DCC;
  --yellow:   #FFD93D;
  --blue:     #1B6FC8;
  --teal:     #00B4AE;
  --red:      #E53E3E;
  --primary:  #1B6FC8;
  --secondary: #3BAA35;
  --bg:       #F4F8FF;
  --bg-alt:   #EFF6EE;
  --text:     #1A2B4A;
  --muted:    #5A6A7E;
  --border:   #D6E4F0;
  --white:    #ffffff;
  --shadow:   0 8px 30px rgba(27,111,200,0.12);
  --radius:   20px;
  --radius-sm:12px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.7;
}

h1, h2, h3, h4, h5 { font-family: 'Fredoka', sans-serif; font-weight: 600; line-height: 1.25; }

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

a { text-decoration: none; }

/* ── ADMISSION BANNER ── */
.admission-banner {
  background: linear-gradient(135deg, #1B6FC8, #3BAA35);
  color: #fff;
  text-align: center;
  padding: 12px 20px;
  font-weight: 700;
  font-size: 0.95rem;
  position: relative;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.admission-banner.hidden { display: none; }
.admission-banner .banner-pulse {
  display: inline-block;
  background: #fff;
  color: var(--brand-blue);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 800;
  animation: pulse-badge 1.5s infinite;
  white-space: nowrap;
}
.admission-banner a.banner-cta {
  background: #fff;
  color: var(--orange);
  padding: 6px 20px;
  border-radius: 20px;
  font-weight: 800;
  font-size: 0.9rem;
  transition: transform 0.2s;
  white-space: nowrap;
}
.admission-banner a.banner-cta:hover { transform: scale(1.05); }
.banner-close {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255,255,255,0.8);
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
}

@keyframes pulse-badge {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.08); }
}

/* ── HEADER / NAV ── */
.header {
  position: sticky;
  top: 0;
  background: #fff;
  box-shadow: 0 4px 20px rgba(255,107,157,0.15);
  z-index: 100;
  padding: 12px 0;
}

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

.nav { display: flex; justify-content: space-between; align-items: center; gap: 16px; }

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  /* PNG has transparent bg — no blending needed on light header */
  display: block;
}
.logo-text { font-family: 'Fredoka', sans-serif; font-size: 1.35rem; color: var(--brand-blue); font-weight: 700; }
.logo-sub  { font-size: 0.7rem; color: var(--muted); display: block; line-height: 1; margin-top: -2px; }

.nav-menu  { display: flex; list-style: none; gap: 4px; }
.nav-link  {
  padding: 9px 15px; color: var(--text); text-decoration: none;
  border-radius: 20px; transition: all 0.25s; font-weight: 600; font-size: 0.9rem;
}
.nav-link:hover, .nav-link.active { background: var(--brand-blue); color: #fff; }

.btn {
  padding: 11px 26px;
  border-radius: 25px;
  font-weight: 700;
  font-family: 'Fredoka', sans-serif;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary   { background: linear-gradient(135deg, var(--brand-blue), var(--brand-green)); color: #fff; box-shadow: 0 4px 18px rgba(27,111,200,0.35); }
.btn-secondary { background: linear-gradient(135deg, var(--green), var(--blue));  color: #fff; box-shadow: 0 4px 18px rgba(0,201,167,0.4); }
.btn-orange    { background: linear-gradient(135deg, var(--orange), var(--yellow)); color: #fff; box-shadow: 0 4px 18px rgba(255,140,66,0.4); }
.btn-white     { background: #fff; color: var(--brand-blue); box-shadow: 0 4px 18px rgba(0,0,0,0.15); }
.btn:hover     { transform: translateY(-3px) scale(1.04); }
.btn-sm        { padding: 8px 18px; font-size: 0.9rem; }

/* Mobile hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 6px; }
.hamburger span { width: 24px; height: 2px; background: var(--brand-blue); border-radius: 2px; display: block; transition: all 0.3s; }

/* ── SECTION HELPERS ── */
.section          { padding: 80px 0; }
.section-alt      { background: linear-gradient(135deg, #EFF6EE 0%, #EEF4FF 100%); }
.section-header   { text-align: center; margin-bottom: 56px; }
.section-header .emoji-big { font-size: 3rem; display: block; margin-bottom: 10px; animation: bounce 2s infinite; }
.section-header h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--brand-blue); margin-bottom: 12px; }
.section-header p  { color: var(--muted); font-size: 1.05rem; max-width: 640px; margin: 0 auto; }

/* ── CARDS ── */
.card {
  background: #fff;
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: all 0.35s;
}
.card:hover { transform: translateY(-10px); box-shadow: 0 18px 45px rgba(0,0,0,0.12); }
.card-icon { font-size: 3rem; margin-bottom: 16px; display: inline-block; animation: wiggle 3s ease-in-out infinite; }

/* ── GRID LAYOUTS ── */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }

/* ── PAGE HERO ── */
.page-hero {
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-green) 100%);
  color: #fff; padding: 80px 0 60px; text-align: center; position: relative; overflow: hidden;
}
.page-hero::before { content: '🌟'; position: absolute; font-size: 8rem; opacity: 0.08; top: 10%; left: 5%; animation: float 8s ease-in-out infinite; }
.page-hero::after  { content: '🎈'; position: absolute; font-size: 6rem; opacity: 0.08; bottom: 10%; right: 8%; animation: float 10s ease-in-out infinite reverse; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 14px; position: relative; z-index: 2; }
.page-hero p  { font-size: 1.1rem; opacity: 0.9; max-width: 600px; margin: 0 auto; position: relative; z-index: 2; }
.page-hero .breadcrumb { font-size: 0.9rem; opacity: 0.8; margin-bottom: 16px; position: relative; z-index: 2; }
.page-hero .breadcrumb a { color: rgba(255,255,255,0.85); }
.page-hero .breadcrumb a:hover { color: #fff; }

/* ── PLACEHOLDER BLOCKS ── */
.placeholder-block {
  background: linear-gradient(135deg, #fff5f9, #f0f4ff);
  border: 2px dashed var(--brand-blue);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  position: relative;
}
.placeholder-block .ph-icon { font-size: 3rem; margin-bottom: 12px; opacity: 0.5; }
.placeholder-block h3 { color: var(--brand-blue); margin-bottom: 10px; }
.placeholder-block p  { color: var(--muted); font-size: 0.95rem; }
.placeholder-tag {
  display: inline-block;
  background: var(--brand-blue);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 10px;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.footer-logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
  display: block;
  /* On dark footer, use lighten so dark pixels in PNG disappear */
  mix-blend-mode: lighten;
  opacity: 0.95;
}
/* ── FOOTER ── */
.footer { background: #2D3748; color: rgba(255,255,255,0.8); padding: 64px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 40px; margin-bottom: 48px; }
.footer h3  { color: #fff; margin-bottom: 20px; font-family: 'Fredoka', sans-serif; font-size: 1.2rem; }
.footer p   { font-size: 0.95rem; line-height: 1.8; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,0.7); font-size: 0.95rem; transition: all 0.25s; display: inline-flex; align-items: center; gap: 6px; }
.footer-links a:hover { color: var(--brand-green); transform: translateX(4px); }
.footer-contact-item { display: flex; gap: 12px; margin-bottom: 14px; align-items: flex-start; font-size: 0.9rem; }
.footer-contact-item .ci-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 2px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; text-align: center; font-size: 0.9rem; }
.social-links { display: flex; gap: 10px; margin-top: 16px; }
.social-link {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-green));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1rem;
  transition: all 0.3s;
}
.social-link:hover { transform: translateY(-4px) scale(1.1); box-shadow: 0 6px 20px rgba(27,111,200,0.4); }

/* ── WHATSAPP FLOAT ── */
.whatsapp-float {
  position: fixed; bottom: 28px; right: 28px;
  width: 62px; height: 62px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.9rem;
  box-shadow: 0 6px 24px rgba(37,211,102,0.5);
  z-index: 999;
  animation: pulse 2.5s infinite;
}

/* ── ANIMATIONS ── */
@keyframes bounce   { 0%,100%{ transform:translateY(0) } 50%{ transform:translateY(-14px) } }
@keyframes float    { 0%,100%{ transform:translateY(0) rotate(0deg) } 50%{ transform:translateY(-18px) rotate(5deg) } }
@keyframes wiggle   { 0%,100%{ transform:rotate(0deg) } 25%{ transform:rotate(-6deg) } 75%{ transform:rotate(6deg) } }
@keyframes spin     { from{ transform:rotate(0deg) } to{ transform:rotate(360deg) } }
@keyframes pulse    { 0%,100%{ transform:scale(1) } 50%{ transform:scale(1.07) } }
@keyframes fadeUp   { from{ opacity:0; transform:translateY(30px) } to{ opacity:1; transform:translateY(0) } }
@keyframes popIn    { 0%{ transform:scale(0.8); opacity:0 } 80%{ transform:scale(1.05) } 100%{ transform:scale(1); opacity:1 } }

/* Scroll-reveal helper */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-menu { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; padding: 16px 24px; gap: 4px; box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
  .nav-menu.open { display: flex; }
  .nav-link { border-radius: 12px; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .section { padding: 60px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .btn { padding: 10px 20px; font-size: 0.9rem; }
  .admission-banner { font-size: 0.82rem; padding: 10px 40px 10px 16px; }
}
