/* 🦷 Modern Dentist & Clinic Template - Responsive Media Queries */

/* --- LARGE SCREENS (Max 1200px) --- */
@media (max-width: 1200px) {
  :root {
    --max-width: 960px;
  }
  
  .quick-booking {
    margin-top: -40px;
    padding: 0 1rem;
  }
  
  .quick-booking-card {
    padding: 2rem;
  }
  
  .quick-booking-form {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .quick-booking-form .btn {
    grid-column: span 2;
    margin-top: 1rem;
  }

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

/* --- TABLET LAYOUTS (Max 992px) --- */
@media (max-width: 992px) {
  :root {
    --header-height: 70px;
  }

  .grid-2 {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Navbar adjustments */
  .menu-toggle {
    display: block;
    z-index: 1001;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background-color: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 2.5rem 2.5rem 2.5rem;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    transition: var(--transition-normal);
    z-index: 1000;
    gap: 1.5rem;
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-link {
    font-size: 1.15rem;
    width: 100%;
  }
  
  .nav-actions {
    display: none; /* Handled in responsive drawer or simplified */
  }

  /* Hero Section */
  .hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 6rem;
  }
  
  .hero-content {
    text-align: center;
  }
  
  .hero-btns {
    justify-content: center;
  }
  
  .hero-image-wrapper {
    margin-top: 3rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-floating-card.card-1 {
    left: -5%;
  }

  /* About Layout */
  .about-image-grid {
    max-width: 500px;
    margin: 3rem auto 0 auto;
  }
  
  .about-stats {
    justify-content: center;
  }

  /* Treatments */
  .treatments-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Booking section */
  .booking-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  /* Hours & Location */
  .hours-location-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- SMALL DEVICES & MOBILE (Max 768px) --- */
@media (max-width: 768px) {
  .section {
    padding: 3.5rem 0;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }

  /* Grid Reductions */
  .grid-3, .grid-4, .treatments-grid, .why-grid, .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .about-features {
    grid-template-columns: 1fr;
  }

  /* Hero */
  .hero-btns {
    flex-direction: column;
    gap: 1rem;
  }
  
  .hero-btns .btn {
    width: 100%;
  }

  /* Quick booking */
  .quick-booking-form {
    grid-template-columns: 1fr;
  }
  
  .quick-booking-form .btn {
    grid-column: span 1;
  }

  /* Booking form */
  .booking-form-grid {
    grid-template-columns: 1fr;
  }
  
  .booking-form-grid .full-width {
    grid-column: span 1;
  }
  
  .booking-form-wrapper {
    padding: 2rem 1.5rem;
  }

  /* Testimonials styling */
  .testimonial-card {
    padding: 2rem 1.5rem;
  }

  /* Lightbox buttons positioning */
  .lightbox-prev {
    left: -40px;
    font-size: 1.5rem;
    width: 35px;
    height: 35px;
  }

  .lightbox-next {
    right: -40px;
    font-size: 1.5rem;
    width: 35px;
    height: 35px;
  }

  /* Footer bottom layout */
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-bottom-links {
    justify-content: center;
  }
}

/* --- ULTRA SMALL DEVICES (Max 480px) --- */
@media (max-width: 480px) {
  body {
    font-size: 15px;
  }

  .logo {
    font-size: 1.25rem;
  }
  
  .logo i {
    font-size: 1.5rem;
  }

  .quick-booking-card {
    padding: 1.5rem 1rem;
  }

  .about-stats {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
  }

  .hours-card {
    padding: 2rem 1.5rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 1.8rem;
  }
  
  .back-to-top {
    bottom: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}
