/*
Theme Name: KidyBox
Theme URI: https://kidybox.com
Author: KidyBox Team
Description: Custom KidyBox theme - no page builder required
Version: 1.0
License: Proprietary
Text Domain: kidybox
*/

/* =============================================
   CSS RESET & BASE
   ============================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --yellow: #FFD600;
  --yellow-light: #FFF9E0;
  --orange: #FF8C00;
  --blue: #1565C0;
  --blue-light: #E8F0FE;
  --purple: #7B2FBE;
  --green: #00897B;
  --text-dark: #1A1A2E;
  --text-mid: #444;
  --text-light: #777;
  --white: #FFFFFF;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 8px 32px rgba(0,0,0,0.10);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.15);
  --font-main: 'Nunito', 'Poppins', sans-serif;
  --font-heading: 'Fredoka One', 'Nunito', sans-serif;
}

html {
  scroll-behavior: smooth;
}

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

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

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

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.1rem; }
h5 { font-size: 1rem; }

p {
  font-size: 1.05rem;
  color: var(--text-mid);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  border: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-yellow {
  background: var(--yellow);
  color: var(--text-dark);
}

.btn-yellow:hover {
  background: #f5c800;
}

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--text-dark);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 14px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-store:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.btn-store img {
  width: 28px;
  height: 28px;
  display: inline-block;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  color: var(--text-dark);
}

/* =============================================
   NAVIGATION
   ============================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  padding: 16px 0;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.07);
  transition: padding 0.3s;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo img {
  height: 44px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.site-nav a {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-dark);
  transition: color 0.2s;
  position: relative;
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--yellow);
  border-radius: 2px;
  transition: width 0.25s;
}

.site-nav a:hover::after,
.site-nav a.active::after {
  width: 100%;
}

.site-nav a:hover {
  color: var(--orange);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--text-dark);
  border-radius: 3px;
  transition: all 0.3s;
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #FFF9E0 0%, #FFF3CD 40%, #E8F4FE 100%);
  padding-top: 80px;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,214,0,0.25) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -50px;
  left: -80px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(21,101,192,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 1;
  padding-top: 40px;
  padding-bottom: 80px;
}

.hero-text h1 {
  color: var(--text-dark);
  margin-bottom: 8px;
}

.hero-text h1 .highlight {
  color: var(--orange);
  display: block;
}

.hero-text h1 .highlight-blue {
  color: var(--blue);
  display: block;
}

.hero-text p {
  font-size: 1.15rem;
  color: var(--text-mid);
  margin: 24px 0 36px;
  max-width: 460px;
}

.hero-image {
  display: flex;
  justify-content: center;
  position: relative;
}

.hero-image img {
  max-width: 480px;
  width: 100%;
  animation: float 4s ease-in-out infinite;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.12));
}

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

/* =============================================
   HOW IT WORKS
   ============================================= */
.how-it-works {
  padding: 100px 0;
  background: var(--white);
}

.how-it-works .container {
  text-align: center;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 60px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 44px 32px;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--yellow), var(--orange));
  border-radius: var(--radius) var(--radius) 0 0;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 90px;
  height: 90px;
  margin: 0 auto 24px;
}

.card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.card h3 {
  margin-bottom: 14px;
  color: var(--text-dark);
}

.card p {
  font-size: 0.97rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* =============================================
   SAFETY SECTION
   ============================================= */
.safety {
  padding: 100px 0;
  background: linear-gradient(135deg, #E8F0FE 0%, #F0F7FF 100%);
  position: relative;
  overflow: hidden;
}

.safety::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: rgba(255,214,0,0.15);
  pointer-events: none;
}

.safety .section-title h2 {
  color: var(--blue);
}

.safety-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 60px;
}

.safety-item {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.safety-feature {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.safety-feature-img {
  width: 80px;
  flex-shrink: 0;
}

.safety-feature-img img {
  width: 100%;
  object-fit: contain;
}

.safety-feature-text h3 {
  margin-bottom: 10px;
  color: var(--text-dark);
}

.safety-feature-text p {
  font-size: 0.97rem;
  color: var(--text-mid);
  line-height: 1.7;
}

.safety-image-col {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.safety-image-col img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
}

/* =============================================
   SCREENSHOTS / GALLERY
   ============================================= */
.screenshots {
  padding: 100px 0;
  background: var(--white);
}

.screenshots .section-title h2 {
  color: var(--text-dark);
}

.screenshot-slider {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 20px 0 40px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.screenshot-slider::-webkit-scrollbar {
  display: none;
}

.screenshot-slide {
  flex: 0 0 auto;
  width: 560px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  scroll-snap-align: start;
  transition: transform 0.3s;
}

.screenshot-slide:hover {
  transform: scale(1.02);
}

.screenshot-slide img {
  width: 100%;
  height: auto;
  display: block;
}

/* =============================================
   DOWNLOAD / CTA
   ============================================= */
.download {
  padding: 100px 0;
  background: linear-gradient(135deg, #1A1A2E 0%, #16213E 60%, #0F3460 100%);
  position: relative;
  overflow: hidden;
}

.download::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,214,0,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.download .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 1;
}

.download-text h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.download-text p {
  color: rgba(255,255,255,0.75);
  font-size: 1.05rem;
  margin-bottom: 36px;
}

.store-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.download-image {
  display: flex;
  justify-content: center;
}

.download-image img {
  max-width: 340px;
  width: 100%;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.4));
  animation: float 4s ease-in-out infinite;
}

/* =============================================
   TESTIMONIALS
   ============================================= */
.testimonials {
  padding: 100px 0;
  background: var(--yellow-light);
}

.testimonials .section-title h2 {
  color: var(--text-dark);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 60px;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.testimonial-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 16px;
  border: 3px solid var(--yellow);
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-stars {
  margin-bottom: 8px;
}

.testimonial-stars img {
  height: 20px;
  display: inline-block;
  margin: 0 auto;
}

.testimonial-card h3 {
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.testimonial-card p {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.7;
}

/* =============================================
   FAQ
   ============================================= */
.faq {
  padding: 100px 0;
  background: var(--white);
}

.faq .section-title h2 {
  color: var(--text-dark);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 2px solid #F0F0F0;
  padding: 28px 0;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  gap: 16px;
}

.faq-question h3 {
  font-size: 1.1rem;
  color: var(--text-dark);
  font-weight: 700;
  flex: 1;
}

.faq-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s, background 0.3s;
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--text-dark);
  line-height: 1;
  user-select: none;
}

.faq-item.open .faq-toggle {
  transform: rotate(45deg);
  background: var(--orange);
  color: var(--white);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s;
}

.faq-item.open .faq-answer {
  max-height: 400px;
  padding-top: 16px;
}

.faq-answer p,
.faq-answer h5 {
  color: var(--text-mid);
  font-size: 0.97rem;
  line-height: 1.7;
}

.faq-answer ul {
  padding-left: 20px;
  margin-top: 8px;
}

.faq-answer ul li {
  color: var(--text-mid);
  font-size: 0.97rem;
  line-height: 1.8;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: #1A1A2E;
  color: var(--white);
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 2.5fr !important;
  gap: 48px;
  padding-bottom: 60px;
}

.footer-brand .footer-logo {
  height: 50px;
  width: auto;
  margin-bottom: 20px;
}

.footer-brand p {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 280px;
}

.footer-col h5 {
  color: var(--yellow);
  font-family: var(--font-heading);
  font-size: 1rem;
  margin-bottom: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links li a {
  color: rgba(255,255,255,0.7);
  font-size: 0.92rem;
  transition: color 0.2s;
}

.footer-links li a:hover {
  color: var(--yellow);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.footer-contact-item img {
  width: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-contact-item p,
.footer-contact-item a {
  color: rgba(255,255,255,0.7);
  font-size: 0.88rem;
  line-height: 1.6;
}

.footer-contact-item a:hover {
  color: var(--yellow);
}

.footer-social {
  display: flex;
  gap: 14px;
  margin-top: 24px;
}

.footer-social a img {
  width: 36px;
  height: 36px;
  transition: transform 0.2s, opacity 0.2s;
  opacity: 0.85;
}

.footer-social a:hover img {
  transform: translateY(-3px);
  opacity: 1;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 24px 0;
}

.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  color: rgba(255,255,255,0.5);
  font-size: 0.88rem;
}

.footer-bottom-links {
  display: flex;
  gap: 16px;
  align-items: center;
}

.footer-bottom-links a,
.footer-bottom-links span {
  color: rgba(255,255,255,0.5);
  font-size: 0.88rem;
  transition: color 0.2s;
}

.footer-bottom-links a:hover {
  color: var(--yellow);
}

/* =============================================
   MOBILE MENU
   ============================================= */
.mobile-menu {
  display: none;
  position: fixed;
  top: 76px;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  padding: 24px;
  z-index: 998;
  flex-direction: column;
  gap: 20px;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-dark);
  padding: 10px 0;
  border-bottom: 1px solid #F0F0F0;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .cards-grid {
    grid-template-columns: 1fr 1fr;
  }
  .testimonials-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid {
    grid-template-columns: 2fr 1.5fr !important; /* was 1fr 1fr */
  }
}

@media (max-width: 768px) {
  .site-nav {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero-text p {
    max-width: 100%;
  }
  .hero-image img {
    max-width: 280px;
  }
  .cards-grid {
    grid-template-columns: 1fr;
  }
  .safety-grid {
    grid-template-columns: 1fr;
  }
  .download .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .store-buttons {
    justify-content: center;
  }
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .footer-bottom .container {
    flex-direction: column;
    text-align: center;
  }
  .screenshot-slide {
    width: 320px;
  }
}

/* =============================================
   LEGAL PAGES (Terms & Privacy)
   ============================================= */
.legal-page {
  padding-top: 76px;
}

.legal-hero {
  background: linear-gradient(135deg, #FFF9E0 0%, #FFF3CD 50%, #E8F4FE 100%);
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.legal-hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,214,0,0.2);
  pointer-events: none;
}

.legal-hero--privacy {
  background: linear-gradient(135deg, #E8F0FE 0%, #F0F7FF 50%, #FFF9E0 100%);
}

.legal-badge {
  display: inline-block;
  background: var(--yellow);
  color: var(--text-dark);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.legal-hero h1 {
  color: var(--text-dark);
  margin-bottom: 12px;
}

.legal-hero p {
  color: var(--text-light);
  font-size: 1rem;
}

.legal-body {
  max-width: 860px;
  padding-top: 60px;
  padding-bottom: 100px;
}

.legal-intro-box {
  background: linear-gradient(135deg, #E8F0FE, #F0F7FF);
  border-left: 5px solid var(--blue);
  border-radius: var(--radius-sm);
  padding: 28px 32px;
  font-size: 1.05rem;
  color: var(--text-dark);
  font-weight: 600;
  line-height: 1.7;
  margin-bottom: 48px;
}

.legal-section {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 36px 0;
  border-bottom: 2px solid #F5F5F5;
}

.legal-section:last-of-type {
  border-bottom: none;
}

.legal-section-icon {
  font-size: 2rem;
  width: 56px;
  height: 56px;
  background: var(--yellow-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
}

.legal-section-content {
  flex: 1;
}

.legal-section-content h2 {
  font-size: 1.4rem;
  color: var(--text-dark);
  margin-bottom: 14px;
}

.legal-section-content p {
  color: var(--text-mid);
  font-size: 0.97rem;
  line-height: 1.8;
  margin-bottom: 10px;
}

.legal-section-content ul {
  padding-left: 20px;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.legal-section-content ul li {
  color: var(--text-mid);
  font-size: 0.97rem;
  line-height: 1.7;
}

.legal-section-content a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: underline;
}

.legal-cta {
  margin-top: 60px;
  text-align: center;
  background: linear-gradient(135deg, #1A1A2E, #16213E);
  border-radius: var(--radius);
  padding: 48px 32px;
}

.legal-cta p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  margin-bottom: 24px;
}

@media (max-width: 600px) {
  .legal-section {
    flex-direction: column;
    gap: 16px;
  }
  .legal-intro-box {
    padding: 20px;
  }
}

/* =============================================
   FOOTER STORE BUTTONS & QR
   ============================================= */
.footer-store-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-store-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
  width: fit-content;
}

.footer-store-btn:hover {
  background: rgba(255,214,0,0.15);
  border-color: var(--yellow);
  transform: translateY(-2px);
}

.footer-store-btn svg {
  flex-shrink: 0;
}

.footer-store-btn .store-sub {
  display: block;
  font-size: 0.65rem;
  opacity: 0.65;
  line-height: 1;
  margin-bottom: 2px;
}

.footer-store-btn .store-name {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
}

.footer-qr {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.footer-qr img {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  object-fit: contain;
  background: white;
  padding: 4px;
  flex-shrink: 0;
}

.footer-qr span {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.4;
}
