/* ===================================================
   UKG STAR KIDS - DESIGN SYSTEM & STYLES
   Candy-coated, playful, modern & accessible
   =================================================== */

:root {
  /* Brand Candy Palette */
  --coral: #FF6B6B;
  --coral-light: #FFEAEA;
  --teal: #4ECDC4;
  --teal-light: #E0F7F6;
  --yellow: #FFD166;
  --yellow-light: #FFF8E7;
  --purple: #6C5CE7;
  --purple-light: #EFEBFF;
  --mint: #00B894;
  --mint-light: #E6F8F4;
  --sky: #74B9FF;
  --sky-light: #EBF5FF;
  --orange: #FFA07A;
  
  /* Neutrals & Surfaces */
  --bg-cream: #FFFDF9;
  --surface-card: #FFFFFF;
  --surface-card-subtle: #FBF9F4;
  --text-dark: #2D3436;
  --text-muted: #636E72;
  --text-light: #A0AAB0;
  --border-subtle: rgba(45, 52, 54, 0.08);
  --border-active: rgba(255, 107, 107, 0.3);

  /* Shadows & Glassmorphism */
  --shadow-sm: 0 4px 12px rgba(45, 52, 54, 0.05);
  --shadow-md: 0 10px 30px rgba(45, 52, 54, 0.08);
  --shadow-lg: 0 20px 45px rgba(45, 52, 54, 0.12);
  --shadow-candy: 0 14px 28px rgba(255, 107, 107, 0.25);
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-blur: blur(12px);

  /* Layout & Fonts */
  --font-display: 'Fredoka', cursive, sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 32px;
  --radius-full: 9999px;
  --container-max: 1200px;
  --transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-cream);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(255, 209, 102, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 90% 10%, rgba(78, 205, 196, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(108, 92, 231, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 20% 90%, rgba(255, 107, 107, 0.1) 0%, transparent 45%);
  background-attachment: fixed;
}

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

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  font-family: inherit;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography Helpers */
h1, h2, h3, h4, .font-fun {
  font-family: var(--font-display);
  color: var(--text-dark);
  line-height: 1.25;
}

.text-coral { color: var(--coral); }
.text-teal { color: var(--teal); }
.text-purple { color: var(--purple); }
.text-yellow { color: #E5A800; }

/* ===================================================
   NAVIGATION BAR
   =================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-subtle);
  padding: 14px 0;
  transition: var(--transition);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
  font-size: 1.35rem;
  text-decoration: none;
}

.nav-logo {
  width: 46px;
  height: 46px;
  min-width: 46px;
  max-width: 46px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.25);
  object-fit: cover;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-brand:hover .nav-logo {
  transform: scale(1.08) rotate(3deg);
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
}

.brand-main {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.5px;
  color: var(--coral);
}

.brand-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: var(--transition);
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--coral);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--coral);
  border-radius: 3px;
}

.btn-nav-download {
  background: var(--coral);
  color: white;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 8px 20px rgba(255, 107, 107, 0.25);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  text-decoration: none;
}

.btn-nav-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(255, 107, 107, 0.35);
}

.mobile-toggle {
  display: none;
  background: none;
  font-size: 1.6rem;
  color: var(--text-dark);
}

/* ===================================================
   HERO SECTION
   =================================================== */
.hero {
  padding: 60px 0 80px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--yellow-light);
  color: #B27B00;
  border: 1px solid rgba(255, 209, 102, 0.5);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}

.hero-title {
  font-size: 3.2rem;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.hero-title span {
  background: linear-gradient(135deg, var(--coral), #FF9234);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 36px;
}

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 26px;
  border-radius: var(--radius-md);
  font-weight: 700;
  transition: var(--transition);
  text-decoration: none;
}

.btn-indus {
  background: linear-gradient(135deg, #1B5E20, #2E7D32);
  color: #FFFFFF;
  box-shadow: 0 10px 24px rgba(46, 125, 50, 0.3);
}

.btn-indus:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(46, 125, 50, 0.4);
}

.btn-indus .store-tag {
  font-size: 0.72rem;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-indus .store-name {
  font-size: 1.15rem;
  font-family: var(--font-display);
}

.btn-secondary-web {
  background: var(--surface-card);
  color: var(--text-dark);
  border: 2px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.btn-secondary-web:hover {
  border-color: var(--coral);
  color: var(--coral);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* Feature Highlights Pill Bar */
.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--border-subtle);
}

.pill-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

.pill-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
}

/* Hero Media Display */
.hero-visual-wrap {
  position: relative;
}

.hero-tablet-card {
  background: var(--surface-card);
  padding: 14px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 4px solid white;
  transition: transform 0.4s ease;
}

.hero-tablet-card:hover {
  transform: translateY(-6px);
}

.hero-tablet-card img {
  border-radius: calc(var(--radius-lg) - 10px);
  width: 100%;
}

.floating-badge {
  position: absolute;
  background: var(--surface-card);
  padding: 12px 18px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.92rem;
  animation: float 4s ease-in-out infinite;
}

.badge-top-right {
  top: -16px;
  right: -16px;
  border: 2px solid var(--yellow);
}

.badge-bottom-left {
  bottom: -20px;
  left: -20px;
  border: 2px solid var(--teal);
  animation-delay: 2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ===================================================
   CURRICULUM STUDIOS SECTION
   =================================================== */
.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 50px;
}

.section-badge {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
}

.studios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}

.studio-card {
  background: var(--surface-card);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.studio-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-active);
}

.studio-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.studio-icon-box {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  font-size: 1.9rem;
}

.icon-coral { background: var(--coral-light); }
.icon-teal { background: var(--teal-light); }
.icon-yellow { background: var(--yellow-light); }
.icon-purple { background: var(--purple-light); }
.icon-mint { background: var(--mint-light); }
.icon-sky { background: var(--sky-light); }

.studio-title {
  font-size: 1.35rem;
}

.studio-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

.studio-features {
  list-style: none;
  margin-bottom: 22px;
}

.studio-features li {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.studio-badge-pill {
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
}

/* ===================================================
   INTERACTIVE MASCOT BAR
   =================================================== */
.mascot-banner {
  background: linear-gradient(135deg, #FFF3E0, #FFE0B2);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  margin: 50px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  box-shadow: var(--shadow-sm);
  border: 2px solid rgba(255, 160, 122, 0.3);
}

.mascot-info {
  display: flex;
  align-items: center;
  gap: 22px;
}

.mascot-avatar {
  font-size: 4rem;
  line-height: 1;
  animation: wiggle 2s infinite ease-in-out;
}

@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-8deg); }
  75% { transform: rotate(8deg); }
}

.mascot-text h3 {
  font-size: 1.5rem;
  margin-bottom: 6px;
  color: #D35400;
}

.mascot-text p {
  color: #795548;
  font-size: 0.98rem;
}

.btn-high-five {
  background: #FF9800;
  color: white;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 1rem;
  box-shadow: 0 10px 20px rgba(255, 152, 0, 0.3);
  transition: var(--transition);
  white-space: nowrap;
}

.btn-high-five:hover {
  transform: scale(1.05);
  background: #F57C00;
}

/* ===================================================
   SAFETY & PARENTAL GATE SECTION
   =================================================== */
.safety-section {
  background: white;
  border-radius: var(--radius-lg);
  padding: 70px 40px;
  box-shadow: var(--shadow-sm);
  margin: 60px 0;
}

.safety-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.safety-card {
  text-align: center;
  padding: 24px;
}

.safety-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 2rem;
}

.safety-title {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.safety-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* ===================================================
   FAQ SECTION
   =================================================== */
.faq-wrap {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--surface-card);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  transition: var(--transition);
}

.faq-question {
  width: 100%;
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 1.18rem;
  text-align: left;
  background: none;
  color: var(--text-dark);
}

.faq-question:hover {
  color: var(--coral);
}

.faq-arrow {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-arrow {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  padding: 0 26px;
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  padding-bottom: 22px;
  max-height: 300px;
}

/* ===================================================
   FOOTER
   =================================================== */
.footer {
  background: linear-gradient(180deg, #1E293B 0%, #0F172A 100%);
  color: #94A3B8;
  padding: 60px 0 32px;
  margin-top: 80px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-content,
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1.2fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
  align-items: start;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.footer-logo {
  width: 58px !important;
  height: 58px !important;
  min-width: 58px !important;
  max-width: 58px !important;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.15);
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}

.footer-brand h4 {
  color: #FFFFFF;
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 6px;
  font-family: var(--font-display);
}

.footer-brand p {
  color: #94A3B8;
  font-size: 0.92rem;
  line-height: 1.5;
  margin: 0;
}

.footer-contact h5,
.footer-links h5,
.footer-col h5 {
  color: #FFFFFF;
  font-size: 1.05rem;
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-weight: 700;
}

.footer-contact p {
  color: #CBD5E1;
  font-size: 0.92rem;
  margin-bottom: 8px;
  line-height: 1.5;
}

.footer-contact a {
  color: #38BDF8;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-contact a:hover {
  color: #7DD3FC;
  text-decoration: underline;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0;
}

.footer-links a {
  color: #CBD5E1;
  font-size: 0.92rem;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
  width: fit-content;
}

.footer-links a:hover {
  color: #FDCB6E;
  transform: translateX(3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  color: #64748B;
  flex-wrap: wrap;
  gap: 16px;
}

/* ===================================================
   PRIVACY POLICY SPECIFIC STYLES
   =================================================== */
.privacy-page {
  padding: 50px 0 80px;
}

.privacy-header {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-sm);
  border-left: 6px solid var(--mint);
}

.privacy-badge {
  background: var(--mint-light);
  color: var(--mint);
  font-weight: 800;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  display: inline-block;
  margin-bottom: 12px;
}

.privacy-header h1 {
  font-size: 2.4rem;
  margin-bottom: 10px;
}

.privacy-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.privacy-layout,
.privacy-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: flex-start;
}

.privacy-sidebar,
.privacy-nav .card {
  background: var(--surface-card);
  padding: 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 90px;
}

.privacy-sidebar h4,
.privacy-nav h3 {
  font-size: 1.05rem;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.privacy-nav,
.privacy-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.privacy-nav li,
.privacy-toc-list li {
  margin-bottom: 8px;
}

.privacy-nav a,
.privacy-toc-list a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
  text-decoration: none;
}

.privacy-nav a:hover,
.privacy-nav a.active,
.privacy-toc-list a:hover,
.privacy-toc-list a.active {
  background: var(--coral-light);
  color: var(--coral);
}

.privacy-content {
  background: var(--surface-card);
  padding: 46px 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.privacy-content h2 {
  font-size: 1.65rem;
  margin: 32px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border-subtle);
  color: var(--text-dark);
}

.privacy-content h2:first-of-type {
  margin-top: 0;
}

.privacy-content p {
  color: #4A5568;
  font-size: 1.02rem;
  line-height: 1.75;
  margin-bottom: 18px;
}

.privacy-content ul {
  margin: 14px 0 20px 24px;
  color: #4A5568;
}

.privacy-content li {
  margin-bottom: 10px;
  font-size: 1rem;
  line-height: 1.6;
}

.callout-box {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: var(--radius-sm);
  padding: 20px;
  margin: 22px 0;
  color: #166534;
}

.callout-box strong {
  color: #15803D;
  display: block;
  margin-bottom: 6px;
}

/* ===================================================
   RESPONSIVE DESIGN
   =================================================== */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-title {
    font-size: 2.6rem;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .hero-pills {
    justify-content: center;
  }

  .privacy-layout,
  .privacy-grid {
    grid-template-columns: 1fr;
  }

  .privacy-sidebar,
  .privacy-nav {
    display: none;
  }

  .footer-grid,
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
    background: transparent;
    border: none;
    font-size: 1.8rem;
    color: var(--text-dark);
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 28px;
    gap: 16px;
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    z-index: 999;
  }

  .nav-links.nav-active {
    display: flex;
    animation: navSlideDown 0.25s ease forwards;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-link {
    display: block;
    padding: 6px 0;
    font-size: 1.05rem;
  }

  .btn-nav-download {
    width: 100%;
    justify-content: center;
    margin-top: 8px;
    padding: 12px 20px;
  }

  .hero-title {
    font-size: 2.1rem;
  }

  .mascot-banner {
    flex-direction: column;
    text-align: center;
    padding: 26px 20px;
  }

  .mascot-info {
    flex-direction: column;
  }

  .footer-grid,
  .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-brand {
    align-items: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
}

@keyframes navSlideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
