/* =============================================================================
   KIDOS Website — Global Styles
   ============================================================================= */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', sans-serif;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* --- Colors --- */
:root {
  --blue: #1a73e8;
  --blue-dark: #0d47a1;
  --blue-light: #e3f2fd;
  --orange: #f5a623;
  --orange-hover: #e6951a;
  --white: #ffffff;
  --gray-light: #f8f9fa;
  --gray: #6b7280;
  --text: #333333;
}

/* --- Typography --- */
h1, h2, h3, h4 { font-weight: 700; color: var(--blue-dark); }
h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; margin-bottom: 1rem; }
h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; color: var(--gray); }
.cursive { font-family: 'Dancing Script', cursive; }

/* --- Layout --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
section {
  padding: 80px 0;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}
.btn-orange {
  background: var(--orange);
  color: var(--white);
}
.btn-orange:hover {
  background: var(--orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(245, 166, 35, 0.4);
}
.btn-blue {
  background: var(--blue);
  color: var(--white);
}
.btn-blue:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--blue);
  color: var(--blue);
}
.btn-outline:hover {
  background: var(--blue);
  color: var(--white);
}

/* =============================================================================
   HEADER / NAVIGATION
   ============================================================================= */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo img {
  height: 40px;
}
.logo span {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blue-dark);
}
nav ul {
  display: flex;
  gap: 30px;
  align-items: center;
}
nav a {
  font-weight: 500;
  color: var(--text);
  transition: color 0.3s;
  font-size: 0.95rem;
}
nav a:hover, nav a.active {
  color: var(--blue);
}
nav .btn {
  padding: 10px 24px;
  font-size: 0.9rem;
}
.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--blue-dark);
}

/* =============================================================================
   HERO SECTION
   ============================================================================= */
.hero {
  position: relative;
  background: url('../images/hero-bg.jpg') center/cover no-repeat;
  color: var(--white);
  padding: 160px 0 120px;
  text-align: center;
  overflow: hidden;
}
/* Blue overlay */
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(26, 115, 232, 0.82) 0%, rgba(13, 71, 161, 0.88) 100%);
  z-index: 1;
}
/* Decorative KIDOS elements on top */
.hero .hero-decor {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.4;
}
.hero .hero-decor img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Wave bottom */
.hero::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 80px;
  background: var(--white);
  clip-path: ellipse(55% 100% at 50% 100%);
  z-index: 3;
}
.hero .container {
  position: relative;
  z-index: 4;
}
.hero h1 {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 2.8rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.hero p {
  color: rgba(255,255,255,0.9);
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 2rem;
}

/* =============================================================================
   WAVE SEPARATOR
   ============================================================================= */
.wave-separator {
  position: relative;
  height: 80px;
  overflow: hidden;
}
.wave-separator.blue {
  background: var(--white);
}
.wave-separator.blue svg { fill: var(--blue); }
.wave-separator.white {
  background: var(--blue);
}
.wave-separator.white svg { fill: var(--white); }
.wave-separator svg {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 80px;
}

/* =============================================================================
   FEATURE CARDS
   ============================================================================= */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}
.feature-card {
  background: var(--white);
  border-radius: 16px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}
.feature-card .icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.feature-card h3 { color: var(--blue-dark); }
.feature-card p { font-size: 0.95rem; }

/* =============================================================================
   PROFILE SECTIONS
   ============================================================================= */
.profile-section {
  display: flex;
  align-items: center;
  gap: 60px;
  margin-bottom: 60px;
}
.profile-section.reverse { flex-direction: row-reverse; }
.profile-content { flex: 1; }
.profile-image { flex: 1; }
.profile-image img { border-radius: 16px; }
.profile-content ul { margin-top: 1rem; }
.profile-content ul li {
  padding: 8px 0;
  padding-left: 28px;
  position: relative;
  color: var(--gray);
}
.profile-content ul li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 700;
}

/* =============================================================================
   SECTION WITH BLUE BACKGROUND
   ============================================================================= */
.bg-blue {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: var(--white);
}
.bg-blue h2 { color: var(--white); }
.bg-blue p { color: rgba(255,255,255,0.85); }
.bg-light { background: var(--gray-light); }

/* =============================================================================
   FAQ
   ============================================================================= */
.faq-list { max-width: 800px; margin: 40px auto 0; }
.faq-item {
  background: var(--white);
  border-radius: 12px;
  margin-bottom: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  overflow: hidden;
}
.faq-question {
  padding: 20px 24px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s;
}
.faq-question:hover { background: var(--blue-light); }
.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--blue);
  transition: transform 0.3s;
}
.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 24px 20px;
}

/* =============================================================================
   CONTACT FORM
   ============================================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 40px;
}
.contact-form .form-group {
  margin-bottom: 20px;
}
.contact-form label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.3s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-info { padding-top: 20px; }
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}
.contact-info-item .icon {
  font-size: 1.5rem;
  color: var(--blue);
}
.contact-info-item h4 { font-size: 1rem; margin-bottom: 4px; }
.contact-info-item p { margin-bottom: 0; font-size: 0.95rem; }

/* =============================================================================
   FOOTER
   ============================================================================= */
footer {
  background: linear-gradient(135deg, var(--blue-dark) 0%, #0a2f6e 100%);
  color: var(--white);
  padding: 60px 0 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand p { color: rgba(255,255,255,0.7); font-size: 0.9rem; margin-top: 12px; }
.footer-links h4, .footer-contact h4 {
  color: var(--white);
  margin-bottom: 16px;
  font-size: 1.1rem;
}
.footer-links a {
  display: block;
  color: rgba(255,255,255,0.7);
  padding: 4px 0;
  transition: color 0.3s;
  font-size: 0.9rem;
}
.footer-links a:hover { color: var(--orange); }
.footer-contact p {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  margin-bottom: 8px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}
.footer-bottom a {
  color: rgba(255,255,255,0.7);
  margin: 0 10px;
}
.footer-bottom a:hover { color: var(--orange); }
.social-links { display: flex; gap: 12px; margin-top: 16px; }
.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  transition: background 0.3s;
  font-size: 1rem;
}
.social-links a:hover { background: var(--orange); }

/* =============================================================================
   LEGAL PAGES
   ============================================================================= */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding-top: 40px;
}
.legal-content h2 { font-size: 1.6rem; margin-top: 2rem; }
.legal-content h3 { font-size: 1.2rem; margin-top: 1.5rem; color: var(--gray); }
.legal-content p, .legal-content li {
  font-size: 0.95rem;
  line-height: 1.8;
}
.legal-content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 1rem;
}
.legal-content ul li { margin-bottom: 6px; color: var(--gray); }
.legal-intro {
  background: var(--blue-light);
  border-left: 4px solid var(--blue);
  padding: 24px 28px;
  border-radius: 0 12px 12px 0;
  margin-bottom: 2rem;
}
.legal-intro p {
  color: var(--text);
  margin-bottom: 0.5rem;
}
.legal-intro p:last-child { margin-bottom: 0; }

/* =============================================================================
   HERO SPLIT LAYOUT (homepage)
   ============================================================================= */
.hero-split {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
}
.hero-text { flex: 1; }
.hero-text .hero-subtitle {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 0.5rem;
}
.hero-phones {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 20px;
  align-items: flex-end;
}
.phone-mockup {
  background: var(--white);
  border-radius: 24px;
  padding: 8px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  max-width: 200px;
}
.phone-mockup img {
  border-radius: 18px;
  width: 100%;
}
.phone-mockup.phone-2 {
  margin-top: 40px;
}

/* =============================================================================
   WHY GRID (homepage)
   ============================================================================= */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 40px;
}
.why-card { text-align: center; }
.why-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.why-card h3 { color: var(--blue-dark); }
.why-card p { font-size: 0.95rem; }

/* =============================================================================
   SECTION LABEL
   ============================================================================= */
.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--orange);
  margin-bottom: 0.5rem;
}

/* =============================================================================
   TILTED IMAGE
   ============================================================================= */
.profile-image.tilted {
  position: relative;
}
.profile-image.tilted img {
  transform: rotate(3deg);
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  border-radius: 16px;
}

/* =============================================================================
   PHONES INLINE (for parents section)
   ============================================================================= */
.phones-inline {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: flex-start;
}
.phones-inline .phone-mockup {
  max-width: 180px;
}
.phones-inline .phone-mockup:nth-child(2) {
  margin-top: 30px;
}

/* =============================================================================
   TESTIMONIAL
   ============================================================================= */
.testimonial {
  background: linear-gradient(135deg, var(--blue-dark) 0%, #0a2f6e 100%);
  color: var(--white);
  padding: 80px 0;
}
.testimonial-quote {
  font-family: 'Dancing Script', cursive;
  font-size: 6rem;
  line-height: 1;
  color: rgba(255,255,255,0.2);
  margin-bottom: -30px;
}
.testimonial blockquote p {
  font-size: 1.2rem;
  font-style: italic;
  color: rgba(255,255,255,0.9);
  max-width: 700px;
  margin: 0 auto 1.5rem;
  line-height: 1.8;
}
.testimonial-author {
  color: var(--orange);
  font-weight: 600;
}

/* =============================================================================
   BLOG GRID
   ============================================================================= */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
  text-align: left;
}
.blog-featured {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}
.blog-featured img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blog-overlay {
  position: absolute;
  bottom: 20px;
  left: 20px;
}
.blog-tag {
  background: var(--orange);
  color: var(--white);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.blog-item {
  padding: 20px;
  border-radius: 12px;
  background: var(--gray-light);
  transition: transform 0.3s;
}
.blog-item:hover { transform: translateX(5px); }
.blog-item h4 {
  color: var(--blue-dark);
  margin-bottom: 6px;
  font-size: 1rem;
}
.blog-item p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* =============================================================================
   TEXT ALIGN HELPERS
   ============================================================================= */
.text-center { text-align: center; }

/* =============================================================================
   RESPONSIVE
   ============================================================================= */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  section { padding: 50px 0; }

  nav ul { display: none; }
  nav ul.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    gap: 15px;
  }
  .menu-toggle { display: block; }

  .hero { padding: 130px 0 80px; }
  .hero h1 { font-size: 2rem; }

  .profile-section,
  .profile-section.reverse {
    flex-direction: column;
    gap: 30px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .hero-split {
    flex-direction: column;
    text-align: center;
  }
  .hero-phones { margin-top: 30px; }
  .phone-mockup { max-width: 150px; }
  .why-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .phones-inline .phone-mockup { max-width: 140px; }
}
