/* =========================================================
   SWASTHYA CLINIC — RESPONSIVE STYLESHEET
   Breakpoints: Laptop (1200px) / Tablet (960px) / Mobile (680px) / Small Mobile (420px)
   ========================================================= */

/* ---------- LAPTOP (<=1200px) ---------- */
@media (max-width: 1200px) {
  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-masonry {
    columns: 3 200px;
  }
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
  .footer-col--contact {
    grid-column: 1 / -1;
  }
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- TABLET (<=960px) ---------- */
@media (max-width: 960px) {
  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(320px, 80vw);
    background: #fff;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.1);
    padding: 5.5rem 2rem 2rem;
    transform: translateX(100%);
    transition: transform var(--transition);
    z-index: 600;
  }
  .main-nav.is-open {
    transform: translateX(0);
  }
  .main-nav ul {
    flex-direction: column;
    gap: 1.4rem;
  }
  .nav-toggle {
    display: flex;
    z-index: 601;
  }

  .header-phone span {
    display: none;
  }
  .header-phone {
    padding: 0.5rem;
  }

  .hero__inner,
  .promise__inner,
  .about-preview__inner,
  .facilities__inner,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .hero__image {
    order: -1;
    max-width: 480px;
    margin: 0 auto;
  }
  .promise__image,
  .about-preview__image {
    max-width: 480px;
    margin: 0 auto;
  }

  .dept-panel,
  .dept-panel--reverse,
  .doctor-row,
  .doctor-row--reverse,
  .service-block,
  .service-block--reverse,
  .doctor-profile {
    grid-template-columns: 1fr;
  }
  .dept-panel--reverse .dept-panel__image,
  .doctor-row--reverse .doctor-row__image,
  .service-block--reverse .service-block__image {
    order: -1;
  }
  .dept-panel__image,
  .doctor-row__image,
  .service-block__image,
  .doctor-profile__image {
    max-width: 520px;
    margin: 0 auto;
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
  }
  .gallery-masonry {
    columns: 2 200px;
  }
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- MOBILE (<=680px) ---------- */
@media (max-width: 680px) {
  section {
    padding: var(--space-lg) 0;
  }
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero__actions .btn {
    width: 100%;
  }
  .header-phone {
    display: none;
  }
  .header-btn {
    display: none !important;
  }
  .cta-banner__actions {
    flex-direction: column;
  }
  .cta-banner__actions .btn {
    width: 100%;
  }
  .gallery-masonry {
    columns: 2 160px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .footer-bottom__inner {
    flex-direction: column;
    text-align: center;
  }
  .site-header__actions .btn-sm span {
    display: none;
  }
  .values-grid {
    grid-template-columns: 1fr;
  }
  .doctor-profile__facts {
    grid-template-columns: 1fr;
  }
}

/* ---------- SMALL MOBILE (<=420px) ---------- */
@media (max-width: 420px) {
  .container {
    /* padding: 0 1rem; */
  }
  .logo__tagline {
    display: none;
  }
  .btn {
    padding: 0.8rem 1.4rem;
    font-size: 0.9rem;
  }
  .gallery-masonry {
    columns: 1 100%;
  }
  .cta-banner {
    padding: var(--space-md);
  }
}

/* Prevent horizontal scroll globally */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}
