/* =============================================
   KIDS LANGUAGE NEST - Main Stylesheet
   ============================================= */

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

/* ---- CSS Variables ---- */
:root {
  --primary:    #FF6B35;
  --secondary:  #4ECDC4;
  --accent:     #FFE66D;
  --purple:     #A855F7;
  --blue:       #3B82F6;
  --green:      #22C55E;
  --pink:       #EC4899;
  --dark:       #1E293B;
  --text:       #374151;
  --light-bg:   #FFF8F3;
  --white:      #FFFFFF;
  --shadow:     0 4px 24px rgba(0,0,0,0.10);
  --radius:     18px;
  --radius-sm:  10px;
  --font-main:  'Nunito', sans-serif;
  --font-head:  'Baloo 2', cursive;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ---- Utility Classes ---- */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section-pad { padding: 80px 0; }
.text-center { text-align: center; }

.badge {
  display: inline-block;
  background: var(--accent);
  color: var(--dark);
  font-weight: 800;
  font-size: 13px;
  border-radius: 50px;
  padding: 4px 16px;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 12px;
}
.section-title span { color: var(--primary); }

.section-sub {
  font-size: 1.1rem;
  color: #6B7280;
  max-width: 600px;
  margin: 0 auto 40px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-main);
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  text-decoration: none;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(255,107,53,0.35);
}
.btn-primary:hover { background: #e85520; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(255,107,53,0.40); }

.btn-secondary {
  background: var(--secondary);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(78,205,196,0.35);
}
.btn-secondary:hover { background: #36b5ac; transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2.5px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: var(--white); transform: translateY(-2px); }

.btn-white {
  background: var(--white);
  color: var(--primary);
  box-shadow: var(--shadow);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,0.15); }

/* ---- Navigation ---- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid #FFF0E8;
  box-shadow: 0 2px 20px rgba(0,0,0,0.07);
  transition: all 0.3s;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1160px;
  margin: 0 auto;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  display: block;
  border-radius: 6px;
}
.nav-logo .logo-icon {
  width: 46px; height: 46px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.nav-logo .logo-text {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--dark);
  line-height: 1.1;
}
.nav-logo .logo-text span { color: var(--primary); }
.nav-logo .logo-sub { font-size: 11px; color: #9CA3AF; font-weight: 600; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links li a {
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text);
  transition: all 0.2s;
}
.nav-links li a:hover,
.nav-links li a.active { background: #FFF0E8; color: var(--primary); }

.nav-links .dropdown { position: relative; }
.nav-links .dropdown > a::after { content: ' ▾'; font-size: 10px; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: 110%;
  left: 0;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  min-width: 200px;
  padding: 8px;
  border: 1px solid #FFE8D6;
  z-index: 999;
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
  transition: all 0.2s;
}
.dropdown-menu li a:hover { background: #FFF0E8; color: var(--primary); }

.nav-cta { display: flex; gap: 10px; align-items: center; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 26px; height: 3px;
  background: var(--dark);
  border-radius: 3px;
  transition: all 0.3s;
}

/* Mobile nav */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid #FFE8D6;
  padding: 16px 24px;
  gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 700;
  color: var(--text);
  transition: all 0.2s;
}
.mobile-menu a:hover { background: #FFF0E8; color: var(--primary); }
.mobile-menu .mob-section-label {
  font-size: 11px;
  font-weight: 800;
  color: #9CA3AF;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 8px 16px 2px;
}

/* ---- Page Header (for inner pages) ---- */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #FF9A5C 50%, var(--accent) 100%);
  padding: 140px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.10) 0%, transparent 40%);
}
.page-hero .page-hero-content { position: relative; z-index: 1; }
.page-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 12px;
}
.page-hero p { font-size: 1.15rem; color: rgba(255,255,255,0.9); max-width: 600px; margin: 0 auto; }
.breadcrumb {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; margin-bottom: 16px;
  font-size: 0.88rem; color: rgba(255,255,255,0.8); font-weight: 600;
}
.breadcrumb a { color: rgba(255,255,255,0.8); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { color: var(--white); }

/* ---- Footer ---- */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.85);
  padding: 64px 0 0;
}
.footer-logo-img {
  height: 56px;
  width: auto;
  object-fit: contain;
  display: block;
  margin-bottom: 14px;
  border-radius: 8px;
  /* brighten on dark bg */
  filter: brightness(1.1) drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand .logo-text { color: var(--white); font-family: var(--font-head); font-size: 1.4rem; font-weight: 800; }
.footer-brand .logo-text span { color: var(--accent); }
.footer-brand p { margin-top: 12px; font-size: 0.93rem; color: rgba(255,255,255,0.6); line-height: 1.7; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--white);
  transition: all 0.2s;
}
.footer-social a:hover { background: var(--primary); transform: translateY(-2px); }
.footer-col h4 { font-family: var(--font-head); font-weight: 800; color: var(--white); margin-bottom: 16px; font-size: 1rem; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: rgba(255,255,255,0.6); font-size: 0.9rem; transition: all 0.2s; }
.footer-col ul li a:hover { color: var(--accent); padding-left: 4px; }
.footer-contact-item { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; font-size: 0.9rem; color: rgba(255,255,255,0.6); }
.footer-contact-item i { color: var(--secondary); margin-top: 2px; flex-shrink: 0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}

/* ---- Cards ---- */
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,0.13); }

/* ---- Floating shapes ---- */
.float-shapes { position: absolute; width: 100%; height: 100%; top: 0; left: 0; pointer-events: none; overflow: hidden; }
.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.12;
  animation: floatAnim 6s ease-in-out infinite;
}
@keyframes floatAnim {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(10deg); }
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .section-pad { padding: 60px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
@media (max-width: 480px) {
  .btn { padding: 12px 24px; font-size: 0.9rem; }
}
