/* === Mobile First Responsive Styles === */

/* Small phones (up to 480px) */
@media (max-width: 480px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .section {
    padding: 80px 0;
  }

  .flip-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    columns: 1;
  }

  .hscroll-panel {
    padding: 40px 20px;
  }
}

/* Tablets and below */
@media (max-width: 768px) {
  /* Nav */
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  /* Hero */
  .hero__headline {
    font-size: clamp(3rem, 12vw, 5rem);
  }

  .hero__sub {
    font-size: 1.1rem;
  }

  .hero__illustration {
    display: none;
  }

  .hero__quote {
    display: none;
  }

  .float-el {
    font-size: 2rem;
  }

  .float-el.cloud,
  .float-el.balloon {
    font-size: 2.5rem;
  }

  .scroll-indicator {
    display: none;
  }

  /* Horizontal scroll — revert to vertical on mobile */
  .hscroll-pin {
    flex-direction: column;
    width: 100% !important;
    transform: none !important;
  }

  .hscroll-panel {
    width: 100% !important;
    height: auto !important;
    min-height: auto;
  }

  /* Panels stack vertically here, so point the intro arrow down. */
  .hscroll-arrow {
    transform: rotate(90deg);
  }

  .hscroll-panel--half {
    width: 100% !important;
  }

  /* Cards */
  .services-grid {
    grid-template-columns: 1fr;
  }

  /* Meet section */
  .meet-section {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .meet-photo {
    max-width: 400px;
    margin: 0 auto;
  }

  /* Gallery */
  .gallery-grid {
    columns: 2;
  }

  /* Flip cards */
  .flip-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Philosophy cards */
  .philosophy-cards {
    grid-template-columns: 1fr;
  }

  /* Service detail */
  .service-detail {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .service-detail.reverse {
    direction: ltr;
  }

  .service-detail__visual {
    font-size: 4rem;
  }

  /* Enrollment steps */
  .enroll-steps {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .enroll-step {
    max-width: 300px;
  }

  .enroll-step::after {
    display: none;
  }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr;
  }

  /* Info cards */
  .info-cards {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }

  /* Age selector */
  .age-bubble {
    width: 80px;
    height: 80px;
    font-size: 0.75rem;
  }

  .age-bubble__emoji {
    font-size: 1.4rem;
  }

  /* Marquee */
  .marquee__item {
    font-size: 2.5rem;
    padding: 0 20px;
  }
}

/* Tablets */
@media (min-width: 769px) and (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .info-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    columns: 2;
  }

  .hero__illustration {
    width: 30vw;
  }

  .hero__quote {
    display: none;
  }
}

/* Hide the right-side hero review until the screen is wide enough to sit
   it beside the left-anchored headline without overlapping. */
@media (max-width: 1199px) {
  .hero__quote {
    display: none;
  }
}

/* Large screens */
@media (min-width: 1200px) {
  .hero__headline {
    font-size: clamp(5rem, 9vw, 8rem);
  }
}

/* Custom cursor - only on fine pointer devices */
@media (pointer: fine) {
  #cursor {
    position: fixed;
    width: 24px;
    height: 24px;
    pointer-events: none;
    z-index: 9999;
    font-size: 20px;
    line-height: 1;
    transition: opacity 0.3s ease;
    opacity: 0;
  }

  #cursor.visible {
    opacity: 1;
  }
}
