/* ==========================================================================
   LUCKNOW PHYSIOTHERAPY CENTER - RESPONSIVE STYLESHEET
   Mobile Drawer, Responsive Grids, Breakpoints & Accessibility
   ========================================================================== */

/* --- Mobile Navigation Drawer (Shared) --- */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 360px;
  height: 100vh;
  background-color: var(--color-navy);
  color: var(--color-white);
  z-index: 2000;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.4);
  transition: right var(--transition-smooth);
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  overflow-y: auto;
}

.mobile-drawer.active {
  right: 0;
}

.mobile-drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(4, 27, 48, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1999;
}

.mobile-drawer-overlay.active {
  display: block;
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-drawer-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}

.mobile-drawer-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.mobile-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 36px;
}

.mobile-drawer-link {
  font-size: 1.15rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  padding: 8px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color var(--transition-fast);
}

.mobile-drawer-link:hover,
.mobile-drawer-link.active {
  color: var(--color-accent-blue);
}

.mobile-drawer-contact {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

.mobile-drawer-contact a {
  color: var(--color-white);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   BREAKPOINTS
   ========================================================================== */

/* --- Tablet / Small Laptop (max-width: 1024px) --- */
@media (max-width: 1024px) {
  .nav-menu {
    display: none;
  }

  .hamburger-btn {
    display: flex;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-visual-wrapper {
    max-width: 540px;
    margin: 0 auto;
  }

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

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

  .service-card.span-2 {
    grid-column: span 1;
  }

  .about-overlap-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .about-content-card {
    margin-left: 0;
  }

  .why-choose-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .why-choose-image {
    max-height: 420px;
  }

  .process-pipeline {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .process-pipeline::before {
    display: none;
  }

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

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

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

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

  .location-card-wrapper {
    grid-template-columns: 1fr;
  }

  .location-map-panel {
    min-height: 320px;
  }
}

/* --- Mobile Landscape & Small Tablet (max-width: 768px) --- */
@media (max-width: 768px) {
  body {
    padding-bottom: 64px; /* Space for mobile sticky bottom action bar */
  }

  .mobile-action-bar {
    display: block;
  }

  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .section {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .section-lg {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .top-bar {
    display: none;
  }

  .header-wrapper {
    padding: 10px 0;
  }

  .header-inner {
    padding: 8px 16px;
  }

  .header-actions .btn-book-appointment {
    display: none; /* Accessible via mobile action bar & drawer */
  }

  /* Hero Section */
  .hero-section {
    padding-top: 32px;
    padding-bottom: 64px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-benefits-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta-group .btn {
    width: 100%;
  }

  .hero-floating-card {
    left: 12px;
    right: 12px;
    bottom: -16px;
    max-width: none;
  }

  /* Trust Section */
  .trust-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .trust-pillar-card {
    padding: 24px 20px;
  }

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

  .service-card {
    min-height: 360px;
  }

  /* About Section */
  .about-content-card {
    padding: 32px 24px;
  }

  .about-metrics-row {
    flex-direction: column;
    gap: 16px;
  }

  /* Process Steps (Vertical Timeline on Mobile) */
  .process-pipeline {
    grid-template-columns: 1fr;
    gap: 32px;
    position: relative;
    padding-left: 24px;
  }

  .process-pipeline::after {
    content: '';
    position: absolute;
    top: 20px;
    bottom: 20px;
    left: 20px;
    width: 2px;
    background: var(--color-primary-blue);
    opacity: 0.4;
  }

  .process-step {
    text-align: left;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 0;
  }

  .step-number-badge {
    width: 56px;
    height: 56px;
    font-size: 1.1rem;
    margin: 0;
    flex-shrink: 0;
  }

  .step-content {
    flex: 1;
  }

  /* Reviews */
  .reviews-track {
    grid-template-columns: 1fr;
  }

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

  /* Blog */
  .blog-grid {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer {
    padding-top: 56px;
    padding-bottom: 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  /* Form & Modals */
  .form-row-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .modal-card {
    max-height: 90vh;
    overflow-y: auto;
  }

  .modal-header {
    padding: 24px 20px;
  }

  .modal-body {
    padding: 24px 20px;
  }

  .location-info-panel {
    padding: 36px 24px;
  }
}

/* --- Extra Small Mobile (max-width: 480px) --- */
@media (max-width: 480px) {
  .hero-title {
    font-size: 2.15rem;
  }

  .section-title {
    font-size: 1.85rem;
  }

  .brand-name {
    font-size: 0.9375rem;
  }

  .brand-sub {
    font-size: 0.625rem;
  }

  .hero-trust-pill {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 16px;
  }

  .filter-bar {
    gap: 6px;
  }

  .filter-btn {
    padding: 8px 14px;
    font-size: 0.8125rem;
  }

  .mobile-action-btn {
    font-size: 0.75rem;
    padding: 8px 6px;
    gap: 4px;
  }

  .lightbox-nav-btn {
    width: 40px;
    height: 40px;
  }

  .lightbox-nav-prev {
    left: 8px;
  }

  .lightbox-nav-next {
    right: 8px;
  }
}

/* --- Reduced Motion Support (Accessibility) --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
