/* ==========================================================================
   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 {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

/* --------------------------------------------------------------------------
   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;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--bg-primary);
    padding: 2rem 1.5rem;
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    border-top: 1px solid var(--border-color);
  }

  .main-nav.is-open {
    transform: translateX(0);
  }

  .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;
  }

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

  .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;
  }
}

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

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

  .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%;
  }
}
