/* ========================================================
   Responsive & Mobile Fixes for Little Sprout Academy
   ======================================================== */

/* Ensure viewport never scrolls horizontally on any mobile device */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  box-sizing: border-box !important;
  -webkit-overflow-scrolling: touch;
}

*, *::before, *::after {
  box-sizing: border-box;
}

/* ========================================================
   Instant Image & Card Visibility (Mobile & Performance)
   ======================================================== */

/* Ensure all cards, teacher profiles, and image wrappers appear instantly */
[data-framer-name="Teacher Card"],
[data-framer-name="Image Content"],
[data-framer-name="Program  Card Details"],
[data-framer-name="Card Content Wrapper"],
[data-framer-name="Image Wrapper"],
.framer-16lm8xn,
.framer-5mqi4w,
.framer-1k1v9p2,
.framer-1n28dgt,
.framer-1tpjked,
.framer-1kiiwo2,
.framer-tzv65n,
.framer-ip34v5 {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Fix mobile transforms causing elements to be stuck offscreen (e.g. translateY(60px)) */
@media (max-width: 809px) {
  [data-framer-name="Teacher Card"],
  [data-framer-name="Image Content"],
  [data-framer-name="Program  Card Details"],
  .framer-1tpjked,
  .framer-vtq6j0 {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
    will-change: auto !important;
  }
}

/* Ensure all card images render crisply, fill their mask containers, and load immediately */
.framer-16lm8xn img,
.framer-5mqi4w img,
.framer-1k1v9p2 img,
.framer-1n28dgt img,
.framer-1tpjked img,
.framer-1kiiwo2 img,
[data-framer-name="Teacher Card"] img,
[data-framer-name="Image Wrapper"] img,
.framer-b9nfxh-container img,
.framer-1u8ya1w-container img,
.framer-mxqrly-container img,
.framer-e28vkd-container img,
.framer-vm5668-container img,
.framer-6k6pwf-container img,
.framer-19zuc6q-container img,
.framer-18ztwko-container img {
  opacity: 1 !important;
  display: block !important;
  object-fit: cover !important;
  width: 100% !important;
  height: 100% !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
}

/* Hide or suppress WebGL canvas inside blob image containers to eliminate mobile context crashes */
.framer-16lm8xn canvas,
[data-framer-name="Teacher Card"] canvas,
.framer-5mqi4w canvas,
.framer-1k1v9p2 canvas,
.framer-1n28dgt canvas,
.framer-1tpjked canvas,
.framer-1kiiwo2 canvas,
.framer-b9nfxh-container canvas,
.framer-1u8ya1w-container canvas,
.framer-mxqrly-container canvas,
.framer-e28vkd-container canvas,
.framer-vm5668-container canvas,
.framer-6k6pwf-container canvas,
.framer-19zuc6q-container canvas,
.framer-18ztwko-container canvas {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Prevent excessive layer promotion on mobile to keep 60fps scroll smoothness */
@media (max-width: 809px) {
  * {
    -webkit-backface-visibility: hidden;
  }
  
  [data-framer-name] {
    will-change: auto !important;
  }
}

/* Contact Page Tab & Form Responsiveness */
@media (max-width: 640px) {
  .framer-JWzdh.framer-14314wp {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 24px 16px !important;
  }

  .framer-JWzdh .framer-1le3lpu {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    padding: 6px !important;
    border-radius: 20px !important;
    align-items: stretch !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0 auto !important;
  }

  .framer-JWzdh .framer-18u4g0v,
  .framer-JWzdh .framer-64ypw7 {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 12px 14px !important;
    border-radius: 14px !important;
    cursor: pointer !important;
    text-align: center !important;
    transition: background-color 0.2s ease, color 0.2s ease !important;
    z-index: 2 !important;
  }

  .framer-JWzdh .framer-1pycinx,
  .framer-JWzdh .framer-kjne8b {
    white-space: normal !important;
    text-align: center !important;
    width: 100% !important;
  }

  .framer-JWzdh .framer-1pycinx p,
  .framer-JWzdh .framer-kjne8b p {
    white-space: normal !important;
    text-align: center !important;
    font-size: 14px !important;
    line-height: 1.3 !important;
    font-weight: 600 !important;
  }

  /* Hide the absolute sliding pill on mobile stack to prevent awkward jumps/overlaps */
  .framer-JWzdh .framer-1x26en6 {
    display: none !important;
  }

  /* When Tab 1 ("Connect with LittleSprout") is active */
  .framer-JWzdh:not(.framer-v-m4lnvz):not(.framer-v-1j4p6s2) .framer-18u4g0v {
    background-color: rgb(0, 0, 0) !important;
  }
  .framer-JWzdh:not(.framer-v-m4lnvz):not(.framer-v-1j4p6s2) .framer-18u4g0v * {
    color: rgb(255, 255, 255) !important;
    --extracted-r6o4lv: rgb(255, 255, 255) !important;
    --framer-text-color: rgb(255, 255, 255) !important;
  }
  .framer-JWzdh:not(.framer-v-m4lnvz):not(.framer-v-1j4p6s2) .framer-64ypw7 {
    background-color: transparent !important;
  }
  .framer-JWzdh:not(.framer-v-m4lnvz):not(.framer-v-1j4p6s2) .framer-64ypw7 * {
    color: rgb(0, 0, 0) !important;
    --extracted-r6o4lv: rgb(0, 0, 0) !important;
    --framer-text-color: rgb(0, 0, 0) !important;
  }

  /* When Tab 2 ("Schedule a Personalized Visit") is active */
  .framer-JWzdh.framer-v-m4lnvz .framer-64ypw7,
  .framer-JWzdh.framer-v-1j4p6s2 .framer-64ypw7 {
    background-color: rgb(0, 0, 0) !important;
  }
  .framer-JWzdh.framer-v-m4lnvz .framer-64ypw7 *,
  .framer-JWzdh.framer-v-1j4p6s2 .framer-64ypw7 * {
    color: rgb(255, 255, 255) !important;
    --extracted-r6o4lv: rgb(255, 255, 255) !important;
    --framer-text-color: rgb(255, 255, 255) !important;
  }
  .framer-JWzdh.framer-v-m4lnvz .framer-18u4g0v,
  .framer-JWzdh.framer-v-1j4p6s2 .framer-18u4g0v {
    background-color: transparent !important;
  }
  .framer-JWzdh.framer-v-m4lnvz .framer-18u4g0v *,
  .framer-JWzdh.framer-v-1j4p6s2 .framer-18u4g0v * {
    color: rgb(0, 0, 0) !important;
    --extracted-r6o4lv: rgb(0, 0, 0) !important;
    --framer-text-color: rgb(0, 0, 0) !important;
  }
}

/* Hide footer email addresses */
.framer-13j9a7a, .framer-7lke7k .framer-13j9a7a,
.framer-p647mi {
  display: none !important;
}

/* Performance & Accessibility Enhancements */
@font-face {
  font-display: swap;
}

/* Accessibility: Enhanced Color Contrast for WCAG AAA Compliance */
:root {
  --token-164ebb64-97d1-4305-928d-d5c727094187: rgb(105, 103, 99) !important;
}

p.framer-text {
  text-rendering: optimizeLegibility;
}

/* Hero section & LCP Instant Paint */
.framer-1twhhlg,
.framer-1twhhlg img,
.framer-19aiaap,
.framer-19aiaap img,
.framer-mkkbob,
.framer-1kutgum,
.framer-1kutgum * {
  opacity: 1 !important;
  visibility: visible !important;
  content-visibility: visible !important;
  transform: none !important;
  will-change: auto !important;
}

/* Remove unwanted third-party promo button */
.framer-15zq3cb-container,
[data-framer-name="Remove This"],
[name="Remove This"] {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

/* Decorative non-functional social icons */
.framer-10cth00,
.framer-10cth00 *,
.framer-xzh89d-container,
.framer-xzh89d-container *,
.framer-1oip9ah-container,
.framer-1oip9ah-container *,
.framer-ta9y62-container,
.framer-ta9y62-container *,
.framer-hDkyi,
.framer-j3urr3,
.framer-ag1dry {
  pointer-events: none !important;
  cursor: default !important;
  user-select: none !important;
  -webkit-user-drag: none !important;
  touch-action: none !important;
}



/* Hero section immediate visibility for 0ms visual delay, instant Speed Index & LCP */
#header-scroll,
#header-scroll [data-framer-name="Title"],
#header-scroll [data-framer-name="Container"],
.framer-lnomnm {
  opacity: 1 !important;
  transform: none !important;
}
