/* ==========================================================================
   HARMONY HOSPITAL — RESPONSIVE STYLES
   Breakpoints: 1200px, 992px, 768px, 576px, 400px
   ========================================================================== */

/* Large Tablets & Small Desktops (<= 1200px) */
@media (max-width: 1200px) {
  /* Logo & Nav Tuning between 993px and 1200px */
  .nav-brand img,
  .nav-brand .site-logo {
    height: 48px;
    max-width: 190px;
  }

  .nav-menu {
    gap: 0.15rem;
  }

  .nav-link {
    padding: 0.5rem 0.65rem;
    font-size: 0.86rem;
  }

  .nav-actions .btn-sm {
    padding: 0.5rem 0.95rem;
    font-size: 0.82rem;
  }

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

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

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

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

  .footer-col:last-child {
    grid-column: span 3;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
}

/* Tablets (<= 992px) */
@media (max-width: 992px) {
  .navbar {
    height: 74px;
  }

  .nav-brand img,
  .nav-brand .site-logo {
    height: 48px;
    max-width: 200px;
  }

  .mobile-drawer-header img,
  .mobile-drawer-header .drawer-logo {
    height: 46px;
    max-width: 185px;
  }

  /* Navigation switch to drawer */
  .nav-menu,
  .nav-actions .btn-appointment {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  /* Hero Section */
  .hero-section {
    padding-top: 3rem;
    padding-bottom: 4rem;
  }

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

  .hero-main-card img {
    height: 420px;
  }

  .floating-stat-badge {
    padding: 0.85rem 1.15rem;
  }

  .floating-badge-top {
    top: -15px;
    right: 10px;
  }

  .floating-badge-bottom {
    bottom: -15px;
    left: 10px;
  }

  /* Intro Section */
  .intro-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .intro-images-asymmetric {
    padding-right: 0;
    padding-bottom: 30px;
    max-width: 580px;
    margin: 0 auto;
  }

  /* Emergency Banner */
  .emergency-banner-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .emergency-banner-content p {
    margin: 0 auto;
  }

  /* Forms */
  .form-row, .form-row-3 {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-card {
    padding: 2rem 1.5rem;
  }

  /* Top Bar */
  .top-bar-left .top-bar-item:not(.top-bar-emergency) {
    display: none;
  }
}

/* Small Tablets & Large Phones (<= 768px) */
@media (max-width: 768px) {
  .section {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .section-lg {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }

  .departments-grid,
  .doctors-grid,
  .facilities-grid,
  .why-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-trust-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

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

  .footer-col:last-child {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }

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

  .intro-img-secondary {
    width: 65%;
    height: 220px;
  }

  .intro-exp-box {
    top: 10px;
    left: 10px;
    padding: 0.85rem 1.15rem;
  }

  .intro-exp-num {
    font-size: 1.8rem;
  }
}

/* Mobile Phones (<= 576px) */
@media (max-width: 576px) {
  .navbar {
    height: 68px;
  }

  .nav-brand img,
  .nav-brand .site-logo {
    height: 42px;
    max-width: 175px;
  }

  .mobile-drawer-header img,
  .mobile-drawer-header .drawer-logo {
    height: 42px;
    max-width: 175px;
  }

  .footer-brand img,
  .footer-brand .footer-logo {
    height: 48px;
    max-width: 200px;
  }

  .container {
    padding-left: 1.2rem;
    padding-right: 1.2rem;
  }

  .hero-headline {
    font-size: 2.2rem;
  }

  .hero-lead {
    font-size: 1.05rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

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

  .hero-main-card img {
    height: 320px;
  }

  .floating-stat-badge {
    position: static;
    margin-top: 1rem;
    max-width: 100%;
    animation: none;
  }

  .floating-badge-top, .floating-badge-bottom {
    display: none; /* Hide floating badges on very small screens to avoid clutter */
  }

  .emergency-dial-btn {
    font-size: 1.2rem;
    padding: 0.95rem 1.25rem;
  }

  .top-bar-right {
    display: none; /* Clean mobile header */
  }

  .top-bar-inner {
    justify-content: center;
  }
}

/* Very Small Mobile Screens (<= 380px) */
@media (max-width: 380px) {
  .navbar {
    height: 62px;
  }

  .nav-brand img,
  .nav-brand .site-logo {
    height: 38px;
    max-width: 150px;
  }

  .mobile-drawer-header img,
  .mobile-drawer-header .drawer-logo {
    height: 38px;
    max-width: 150px;
  }

  .footer-brand img,
  .footer-brand .footer-logo {
    height: 44px;
    max-width: 175px;
  }
}

/* Touch Devices (Cursor suppression) */
@media (hover: none) and (pointer: coarse) {
  .custom-cursor {
    display: none !important;
  }
}
