/* ============================================================
   Just Little Kidz — Shared Stylesheet (assets/css/styles.css)
   Loaded by all pages. Page-specific CSS stays in each file.
   ============================================================ */

/* ── Reset + Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Quicksand', sans-serif; background: #FFF8F4; color: #3A3A3A; overflow-x: hidden; }
h1, h2, h3, h4, h5 { font-family: 'Baloo 2', sans-serif; }

/* ── Logo crop — hides "CHILDCARE" text at bottom of PNG ── */
.logo-crop { width: 160px; height: 38px; overflow: hidden; display: block; flex-shrink: 0; }
.logo-crop img { width: 160px; display: block; }

/* ── Buttons ── */
@keyframes btn-bounce { 0%,100%{transform:translateY(0)} 40%{transform:translateY(-6px)} 70%{transform:translateY(-3px)} }

.btn-coral {
  display: inline-block; background: #E8735A; color: #fff;
  font-family: 'Baloo 2', sans-serif; font-weight: 700;
  padding: 0.75rem 1.75rem; border-radius: 50px;
  text-decoration: none; border: none; cursor: pointer;
  box-shadow: 0 4px 18px rgba(232,115,90,0.35);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  animation: btn-bounce 3.5s ease-in-out 3 2s;
}
.btn-coral:hover  { background: #D15F47; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(232,115,90,0.4); animation: none; }
.btn-coral:active { transform: translateY(0); }
.btn-coral:focus-visible { outline: 3px solid #FAD55A; outline-offset: 3px; }

.btn-outline {
  display: inline-block; background: transparent; color: #2D5A3D;
  font-family: 'Baloo 2', sans-serif; font-weight: 700;
  padding: 0.7rem 1.75rem; border-radius: 50px;
  border: 2px solid #2D5A3D; text-decoration: none;
  transition: all 0.2s;
}
.btn-outline:hover { background: #2D5A3D; color: #fff; transform: translateY(-2px); }
.btn-outline:focus-visible { outline: 3px solid #FAD55A; outline-offset: 3px; }

/* ── Navigation ── */
#main-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: #fff; transition: box-shadow 0.3s; }
#main-nav.scrolled { box-shadow: 0 2px 20px rgba(45,90,61,0.12); }
#mobile-menu { display: none; }
#mobile-menu.open { display: block; }

/* ── Trust badge ── */
.trust-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: #fff; border-radius: 50px; padding: 0.4rem 1rem;
  font-family: 'Quicksand', sans-serif; font-weight: 600; font-size: 0.8rem;
  color: #2D5A3D; box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

/* ── Utility ── */
.hidden { display: none !important; }

/* ── Scroll progress bar ── */
#scroll-progress { position: fixed; top: 0; left: 0; height: 3px; background: linear-gradient(90deg,#E8735A,#FAD55A); z-index: 100; width: 0%; transition: width 0.1s; }

/* ── Scroll reveal ── */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* ── Stagger reveal ── */
.stagger > * { opacity: 0; translate: 0 30px; transition: opacity 0.6s ease, translate 0.6s ease; }
.stagger.visible > *:nth-child(1) { opacity: 1; translate: 0 0; transition-delay: 0s; }
.stagger.visible > *:nth-child(2) { opacity: 1; translate: 0 0; transition-delay: 0.12s; }
.stagger.visible > *:nth-child(3) { opacity: 1; translate: 0 0; transition-delay: 0.24s; }
.stagger.visible > *:nth-child(4) { opacity: 1; translate: 0 0; transition-delay: 0.36s; }
.stagger.visible > *:nth-child(5) { opacity: 1; translate: 0 0; transition-delay: 0.48s; }

/* ── Card tilt ── */
.tilt { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.tilt:hover { transform: perspective(600px) rotateY(-4deg) rotateX(2deg) translateY(-6px); }

/* ── Skip link ── */
.skip-link { position: absolute; left: -100%; top: 1rem; background: #2D5A3D; color: #fff; padding: 0.5rem 1rem; border-radius: 0 0 6px 0; font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 0.875rem; text-decoration: none; z-index: 9999; }
.skip-link:focus { left: 0; }

/* ── Keyboard focus states ── */
a:focus-visible, button:focus-visible { outline: 3px solid #FAD55A; outline-offset: 3px; border-radius: 4px; }

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ── Sticky mobile CTA bar ── */
.mobile-cta-bar { display: none; }
@media (max-width: 768px) {
  .mobile-cta-bar {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 998;
    background: #fff; padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom,0px));
    gap: 0.625rem; box-shadow: 0 -4px 20px rgba(0,0,0,0.12); border-top: 1px solid #F0E8E0;
  }
  .mobile-cta-bar a {
    flex: 1; display: flex; align-items: center; justify-content: center;
    gap: 0.4rem; font-family: 'Baloo 2', sans-serif; font-weight: 700;
    font-size: 0.85rem; padding: 0.7rem 0.5rem; border-radius: 50px; text-decoration: none;
  }
  body { padding-bottom: 72px; }
}

/* ── Mobile nav ── */
@media (max-width: 768px) {
  .desktop-nav { display: none !important; }
  #hamburger { display: block !important; }
}

/* ── WhatsApp floating button ── */
#jlk-wa-wrap { position: fixed; bottom: 5.5rem; right: 1.5rem; z-index: 999; display: flex; align-items: center; gap: 0.6rem; }
#jlk-wa-label {
  background: #fff; color: #25D366; font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 0.8rem;
  padding: 0.4rem 0.9rem; border-radius: 50px; box-shadow: 0 4px 16px rgba(37,211,102,0.18);
  white-space: nowrap; cursor: pointer; border: 2px solid #b7f0cc;
  transition: background 0.2s, color 0.2s; text-decoration: none; display: inline-block;
}
#jlk-wa-label:hover { background: #25D366; color: #fff; border-color: #25D366; }
#jlk-wa-btn {
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, #25D366, #1DA851);
  box-shadow: 0 6px 24px rgba(37,211,102,0.4);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s; flex-shrink: 0; text-decoration: none;
}
#jlk-wa-btn:hover { transform: scale(1.1); box-shadow: 0 10px 30px rgba(37,211,102,0.55); }

/* ── Chat widget ── */
#jlk-chat-wrap { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 999; display: flex; align-items: center; gap: 0.6rem; }
#jlk-chat-label {
  background: #fff; color: #2D5A3D; font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 0.8rem;
  padding: 0.4rem 0.9rem; border-radius: 50px; box-shadow: 0 4px 16px rgba(45,90,61,0.15);
  white-space: nowrap; cursor: pointer; border: 2px solid #FBCAB5; transition: background 0.2s, color 0.2s;
}
#jlk-chat-label:hover { background: #E8735A; color: #fff; border-color: #E8735A; }
#jlk-chat-btn {
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, #E8735A, #D15F47);
  box-shadow: 0 6px 24px rgba(232,115,90,0.45);
  border: none; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s;
  animation: chat-pulse 2.5s ease-in-out 3;
  flex-shrink: 0;
}
#jlk-chat-btn:hover { transform: scale(1.1); box-shadow: 0 10px 30px rgba(232,115,90,0.55); }
@keyframes chat-pulse {
  0%,100% { box-shadow: 0 6px 24px rgba(232,115,90,0.45); }
  50%      { box-shadow: 0 6px 32px rgba(232,115,90,0.7), 0 0 0 8px rgba(232,115,90,0.1); }
}
#jlk-chat-panel {
  position: fixed; bottom: 5.5rem; right: 1.5rem; z-index: 998;
  width: 340px; max-width: calc(100vw - 2rem);
  height: 480px; max-height: calc(100vh - 8rem);
  background: #fff; border-radius: 20px;
  box-shadow: 0 12px 50px rgba(45,90,61,0.18), 0 2px 8px rgba(0,0,0,0.08);
  display: none; flex-direction: column; overflow: hidden;
}
#jlk-chat-header {
  background: linear-gradient(135deg, #2D5A3D, #3D7A55);
  padding: 1rem 1.2rem; display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0;
}
#jlk-chat-msgs { flex: 1; overflow-y: auto; padding: 1rem; scroll-behavior: smooth; }
#jlk-questions {
  padding: 0.75rem 1rem 1rem; border-top: 1px solid #F0EDE8;
  display: flex; flex-direction: column; gap: 0.4rem; flex-shrink: 0; max-height: 210px; overflow-y: auto;
}
.jlk-q-btn {
  background: #FFF8F4; border: 1.5px solid #FBCAB5; color: #3A3A3A;
  font-family: 'Quicksand', sans-serif; font-weight: 600; font-size: 0.8rem;
  padding: 0.5rem 0.9rem; border-radius: 50px; cursor: pointer;
  text-align: left; transition: background 0.15s, border-color 0.15s; line-height: 1.3;
}
.jlk-q-btn:hover { background: #FBCAB5; border-color: #E8735A; }
