/* ==========================================================================
   FAYZ MEDICAL HOUSE - RESPONSIVE STYLES
   ========================================================================== */

/* Large Tablets and Smaller Desktops (max-width: 1200px) */
@media (max-width: 1200px) {
  .hero-title {
    font-size: 2.8rem;
  }
  
  .hero-image-frame img {
    height: 420px;
  }
  
  .guarantees-grid,
  .services-grid,
  .doctors-grid,
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .stages-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
  
  .map-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .map-frame-container {
    height: 380px;
  }
}

/* Screen width up to 1150px - Enable Mobile Navigation Drawer */
@media (max-width: 1150px) {
  .mobile-menu-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--bg-card, #ffffff);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 1.5rem;
    gap: 1.25rem;
    transform: translateX(-100%);
    transition: transform var(--transition-normal), background-color 0.2s ease;
    box-shadow: var(--shadow-xl);
    overflow-y: auto;
    z-index: 1000;
  }
  
  [data-theme="night"] .nav-menu, [data-theme="dark"] .nav-menu {
    background: #0a182d;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-menu.open {
    transform: translateX(0);
  }
  
  .nav-link {
    font-size: 1.15rem;
    width: 100%;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-subtle, var(--slate-100));
  }
  
  .nav-cta-group .btn-secondary {
    display: none;
  }
}

/* Tablets & Small Laptops (max-width: 992px) */
@media (max-width: 992px) {
  .topbar {
    display: none; /* Hide topbar on mobile/tablets for cleaner UX, phone links will be prominent */
  }
  
  .navbar-wrapper {
    height: 70px;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .hero-content {
    max-width: 100%;
    text-align: center;
  }
  
  .hero-title {
    font-size: 2.4rem;
  }
  
  .hero-cta-buttons {
    justify-content: center;
  }
  
  .hero-trust-badges {
    grid-template-columns: repeat(2, 1fr);
    text-align: left;
  }
  
  .hero-floating-card-1 {
    top: 15px;
    left: 10px;
  }
  
  .hero-floating-card-2 {
    bottom: 15px;
    right: 10px;
  }
  
  .emergency-bar-wrapper {
    flex-direction: column;
    text-align: center;
  }
  
  .emergency-info {
    flex-direction: column;
    text-align: center;
  }
  
  .calc-card-wrapper {
    grid-template-columns: 1fr;
  }
  
  .calc-form-pane, .calc-result-pane {
    padding: 2rem;
  }
  
  .facility-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile Devices (max-width: 768px) */
@media (max-width: 768px) {
  .section-padding {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }
  
  .section-title {
    font-size: 1.85rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-description {
    font-size: 1.05rem;
  }
  
  .hero-cta-buttons .btn {
    width: 100%;
  }
  
  .hero-image-frame img {
    height: 320px;
  }
  
  .hero-floating-card-1,
  .hero-floating-card-2 {
    position: static;
    margin-top: 1rem;
  }
  
  .guarantees-grid,
  .services-grid,
  .doctors-grid,
  .reviews-grid,
  .stages-grid,
  .facility-grid,
  .calc-options-grid,
  .stats-metrics-grid,
  .treatment-bars-grid,
  .doctor-leaderboard-grid,
  .financial-cards-grid,
  .quarterly-cards-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  
  .yearly-chart-grid {
    gap: 0.5rem;
    height: 220px;
  }
  
  .analytics-dashboard-card {
    padding: 1.5rem 1rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .reviews-header-stats {
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .modal-box {
    padding: 1.75rem 1.25rem;
  }
  
  .floating-contact-panel {
    bottom: 15px;
    right: 15px;
  }
  
  .float-btn {
    width: 50px;
    height: 50px;
  }
}

/* Very Small Screens (max-width: 480px) */
@media (max-width: 480px) {
  .hero-trust-badges {
    grid-template-columns: 1fr;
  }
  
  .brand-logo-title {
    font-size: 1.1rem;
  }
  
  .brand-logo-subtitle {
    font-size: 0.65rem;
  }
  
  .brand-logo-img {
    height: 40px;
  }
  
  .service-tab-btn {
    width: 100%;
    justify-content: center;
  }
  
  .emergency-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .emergency-actions .btn {
    width: 100%;
  }
  
  .analytics-nav-btns {
    flex-direction: column;
    width: 100%;
  }
  
  .analytics-nav-btn {
    width: 100%;
    text-align: center;
  }
}
