/* ==========================================================================
   RESPONSIVE STYLESHEET
   Supports: 1440px+, 1280px, 1024px, 768px, 480px, 320px
   ========================================================================== */

/* Laptops & Wide Tablets Navigation Tuning (Max 1380px) */
@media (max-width: 1380px) {
  .header-container {
    gap: 0.4rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .header-logo img {
    height: 38px;
  }

  .nav-list {
    gap: 0.2rem;
  }

  .nav-link {
    font-size: 0.8rem;
    padding: 0.32rem 0.42rem;
  }

  .nav-link::after {
    left: 0.42rem;
    right: 0.42rem;
  }

  .header-actions {
    margin-left: 0.4rem;
    gap: 0.4rem;
  }

  .header-actions .btn {
    font-size: 0.8rem;
    padding: 0.48rem 0.95rem;
    white-space: nowrap;
  }

  .grid-4,
  .why-us-grid,
  .process-grid,
  .credibility-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

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

  .hero-grid {
    gap: 2rem;
  }
}

/* Medium Tablets & Below (Max 1280px) */
@media (max-width: 1280px) {
  :root {
    --header-height: 72px;
  }

  .header-nav {
    display: none; /* Collapses cleanly to drawer before any crowding */
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .header-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.6rem;
  }

  .header-actions .btn {
    display: inline-flex !important;
    font-size: 0.82rem;
    padding: 0.5rem 1rem;
    white-space: nowrap;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
    margin: 0 auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-trust-row {
    justify-content: center;
  }

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

  .floating-badge.badge-top {
    right: 0;
  }
  .floating-badge.badge-bottom {
    left: 0;
  }

  .about-grid,
  .about-grid-clean,
  .specialists-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

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

  .top-bar-right .top-hours {
    display: none;
  }
}

/* Mobile Devices (Max 768px) */
@media (max-width: 768px) {
  .section {
    padding-top: 3.75rem;
    padding-bottom: 3.75rem;
  }

  .section-sm {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .top-bar {
    display: none; /* Cleaner mobile view */
  }

  /* Show floating bottom CTA bar on mobile */
  .mobile-bottom-bar {
    display: block;
  }

  /* Add padding to body so bottom bar doesn't overlay footer */
  body {
    padding-bottom: 64px;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .services-grid,
  .methods-four-grid,
  .why-us-grid,
  .process-grid,
  .testimonials-grid,
  .credibility-grid {
    grid-template-columns: 1fr;
  }

  .methods-four-grid .service-card-media {
    height: 280px;
  }

  .ba-comparison-wrapper {
    height: 380px;
  }

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

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .ba-comparison-wrapper {
    height: 380px;
  }

  .ba-case-info-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .edu-table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .edu-table {
    min-width: 560px;
  }

  .about-features-list,
  .about-features-grid {
    grid-template-columns: 1fr;
  }

  .about-float-badge.badge-top-right {
    right: 8px;
    top: 12px;
  }
  .about-float-badge.badge-bottom-left {
    left: 8px;
    bottom: 12px;
  }
  .about-image-wrapper img {
    height: 360px;
  }

  .floating-badge {
    padding: 0.6rem 0.9rem;
    font-size: 0.8rem;
  }
  .badge-icon {
    width: 36px;
    height: 36px;
  }
  .badge-icon svg {
    width: 18px;
    height: 18px;
  }
}

/* Small Smartphone Devices (Max 480px) */
@media (max-width: 480px) {
  .container {
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }

  .header-actions .btn {
    display: inline-flex !important;
    padding: 0.42rem 0.75rem;
    font-size: 0.76rem;
    white-space: nowrap;
  }

  .header-logo img {
    height: 34px;
  }

  .mobile-menu-toggle {
    width: 38px;
    height: 38px;
  }

  .hero-image-wrapper img {
    height: 360px;
  }

  .ba-comparison-wrapper {
    height: 300px;
  }

  .methods-four-grid .service-card-media {
    height: 250px;
  }

  .ba-handle-button {
    width: 38px;
    height: 38px;
  }
  .ba-handle-button svg {
    width: 18px;
    height: 18px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .cta-banner-buttons .btn {
    width: 100%;
  }

  .about-trust-cards {
    grid-template-columns: 1fr;
  }
  .about-standards-panel {
    padding: 1.5rem 1.25rem;
    border-radius: 18px;
  }
  .about-stats-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }
  .about-stat-number {
    font-size: 1.3rem;
  }
  .about-stat-label {
    font-size: 0.68rem;
  }
  .about-actions {
    flex-direction: column;
    width: 100%;
  }
  .about-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .doctor-credentials-card {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    margin-top: 1rem;
  }

  .faq-question-btn {
    padding: 1.1rem 1.25rem;
    font-size: 1rem;
  }
  .faq-answer-inner {
    padding: 0 1.25rem 1.25rem 1.25rem;
  }

  .ba-comparison-wrapper {
    height: 310px;
  }
}

/* Accessibility: Reduced Motion */
@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;
  }
  .js-reveal-enabled .reveal-item {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
