/* ==========================================================================
   RESPONSIVE DESIGN STYLES - ELEMENTS4KIDS
   ========================================================================== */

/* Tablet & Smaller Layouts (max-width: 1024px) */
@media screen and (max-width: 1024px) {
  h1 { font-size: 2.4rem; }
  h2 { font-size: 1.9rem; }
  
  .section {
    padding: 6rem 0;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .hero-content {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-image-wrapper {
    max-width: 500px;
    margin: 0 auto;
  }

  /* Specific mobile reordering for Index Hero section */
  .hero .hero-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
  }

  .hero .hero-content {
    display: contents;
  }

  .hero-tagline {
    order: 1;
    margin-bottom: 0;
  }

  .hero .hero-image-wrapper {
    order: 2;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
  }

  .hero .hero-content > h1 {
    order: 3;
    margin-bottom: 1rem;
  }

  .hero .hero-content > .hero-subtitle {
    order: 4;
    margin-bottom: 1.5rem;
  }

  .hero .hero-buttons {
    order: 5;
  }

  .organic-row {
    flex-direction: column !important;
    gap: 3rem;
    margin-bottom: 6rem;
  }
  
  .organic-img-panel img {
    height: 380px;
  }
  
  .organic-text-panel {
    max-width: 100%;
  }

  .organic-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .why-features {
    grid-template-columns: repeat(3, 1fr);
  }

  .locations-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .location-img {
    height: 280px;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .contact-card {
    padding: 2.5rem 2rem;
  }

  .cta-wrapper {
    flex-direction: column;
    padding: 4rem;
    text-align: center;
    gap: 2.5rem;
  }
  
  .cta-content {
    max-width: 100%;
  }
  
  .cta-actions {
    justify-content: center;
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
}

/* Mobile Layouts (max-width: 768px) */
@media screen and (max-width: 768px) {
  /* Sticky Navbar for Mobile hamburger menu */
  .hamburger {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--bg-primary);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.05);
    flex-direction: column;
    align-items: flex-start;
    padding: 6rem 2.5rem 2.5rem 2.5rem;
    gap: 2rem;
    transition: right var(--transition-smooth);
    z-index: 999;
    overflow-y: auto;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    font-size: 1.15rem;
    width: 100%;
    display: block;
  }

  .nav-actions {
    display: none; /* Hide action button in small navbar, can be added into the drawer */
  }

  .nav-links .mobile-only {
    display: block !important;
    margin-top: 1.5rem;
    width: 100%;
  }
  
  /* Breadcrumbs on Mobile */
  .breadcrumbs-section {
    padding-top: 8rem;
  }

  .organic-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .why-features {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
  
  .footer-legal-links {
    justify-content: center;
  }
}

/* Small Mobile Layouts (max-width: 480px) */
@media screen and (max-width: 480px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  
  .section {
    padding: 5rem 0;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
  }
  
  .hero-buttons .btn {
    width: 100%;
  }

  .organic-img-panel img {
    height: 280px;
  }

  .bubble-card {
    padding: 2.5rem 1.5rem;
  }

  .location-body {
    padding: 2rem;
  }
  
  .location-body h3 {
    font-size: 1.6rem;
  }

  .why-features {
    grid-template-columns: 1fr;
  }

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

  .contact-form .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .contact-form .form-row .form-group {
    margin-bottom: 1.5rem;
  }
  
  .contact-card {
    padding: 2rem 1.5rem;
  }

  .cta-wrapper {
    padding: 3rem 1.5rem;
  }
  
  .cta-content h2 {
    font-size: 1.8rem;
  }
  
  .cta-actions {
    flex-direction: column;
    gap: 1rem;
  }
  
  .cta-actions .btn {
    width: 100%;
  }
  
  .testimonial-text {
    font-size: 1.25rem;
  }
}
