/* ==========================================================================
   Diane Wootton Physiotherapy - Responsive Stylesheet
   Google Mobile-Friendly Standards & Breakpoints
   ========================================================================== */

/* --------------------------------------------------------------------------
   Desktop & Tablet Large (max-width: 1024px)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-image-wrap {
    order: -1;
    max-width: 600px;
    margin: 0 auto;
  }

  .about-grid,
  .contact-grid,
  .two-col-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

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

  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }

  .services-grid > .service-card {
    grid-column: auto !important;
  }
}

/* --------------------------------------------------------------------------
   Tablet & Mobile Menu Drawer (max-width: 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.65rem; }
  h3 { font-size: 1.3rem; }

  .header-inner {
    height: 70px;
  }

  .logo-title {
    font-size: 1.15rem;
  }

  .logo-subtitle {
    font-size: 0.7rem;
  }

  .btn-header-call {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
  }

  /* Mobile Navigation Drawer */
  .main-nav {
    position: fixed;
    top: 70px;
    right: 0;
    left: auto;
    width: 100%;
    max-width: 100vw;
    height: calc(100vh - 70px);
    height: calc(100dvh - 70px);
    background-color: var(--bg-primary);
    padding: 2rem 1.5rem;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, visibility 0.3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-top: 1px solid var(--border-color);
    z-index: 999;
  }

  .main-nav.is-open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .main-nav a {
    font-size: 1.05rem;
    display: block;
    width: 100%;
    padding: 0.5rem 0;
  }

  .nav-dropdown {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }

  .dropdown-menu {
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    box-shadow: none !important;
    border: none !important;
    border-left: 2px solid var(--medical-teal) !important;
    border-radius: 0 !important;
    padding: 0.25rem 0 0.25rem 1rem !important;
    margin: 0.25rem 0 0.5rem 0 !important;
    min-width: 100% !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    background-color: transparent !important;
  }

  .dropdown-menu a {
    font-size: 0.95rem !important;
    padding: 0.4rem 0.5rem !important;
    border: none !important;
  }

  .hero-section {
    padding: 3rem 0 2.5rem;
  }

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

  .hero-credentials-card {
    position: relative;
    bottom: 0;
    left: 0;
    margin-top: 1rem;
    max-width: 100%;
  }

  .clinic-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .map-container {
    height: 260px;
  }

  .contact-grid,
  .two-col-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .services-grid > .service-card {
    grid-column: auto !important;
  }

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

  .site-footer {
    padding-bottom: 5.5rem; /* Room for mobile sticky bar */
  }

  /* Show Floating Mobile Contact Bar */
  .mobile-sticky-bar {
    display: block;
  }

  /* Touch-Swipeable Horizontal Filter Bar */
  .symptom-chips-container {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding: 0.5rem 1rem 0.75rem;
    margin: 0 -1.25rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .symptom-chips-container::-webkit-scrollbar {
    display: none;
  }

  .symptom-chip {
    flex-shrink: 0;
    scroll-snap-align: start;
  }
}

/* --------------------------------------------------------------------------
   Small Mobile Devices (max-width: 480px)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  .site-logo img {
    height: 38px;
  }

  .hero-image {
    max-height: 260px;
    object-fit: cover;
  }

  .trust-bar-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .container {
    padding: 0 1.1rem;
  }

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

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }

  .btn-primary, .btn-secondary {
    width: 100%;
  }

  .contact-form-wrap {
    padding: 1.5rem 1.25rem;
  }

  .captcha-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .captcha-input {
    width: 100%;
  }
}
