/* ==========================================================================
   RESPONSIVE LAYOUT & MEDIA QUERIES
   Shree Samarth J.J. Children & Heart Hospital
   ========================================================================== */

/* --- Desktop Large (<= 1200px) --- */
@media (max-width: 1200px) {
  .hero-title {
    font-size: 2.8rem;
  }
  .hero-image-wrapper img {
    height: 420px;
  }
  .hero-stats-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
  }
  .quick-action-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .departments-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .doctors-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .facilities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

/* --- Tablets & Medium Screens (<= 992px) --- */
@media (max-width: 992px) {
  :root {
    --header-height: 72px;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 1.5rem;
    gap: 1.2rem;
    box-shadow: 0 15px 30px rgba(11, 37, 69, 0.12);
    border-bottom: 1px solid var(--border-light);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    font-size: 1.1rem;
    width: 100%;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border-light);
  }

  .mobile-nav-toggle {
    display: block;
  }

  .nav-actions .btn-primary {
    display: none;
  }

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

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

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

  .why-us-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .why-us-visual {
    max-width: 550px;
    margin: 0 auto;
  }

  .booking-card {
    grid-template-columns: 1fr;
  }

  .booking-sidebar {
    padding: 2.5rem 2rem;
  }

  .booking-form-wrap {
    padding: 2.5rem 2rem;
  }

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

/* --- Mobile Phones (<= 768px) --- */
@media (max-width: 768px) {
  .section {
    padding: 4rem 0;
  }

  .top-bar-left {
    display: none;
  }

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

  .hero-title {
    font-size: 2.3rem;
    letter-spacing: -0.8px;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta-group .btn {
    width: 100%;
  }

  .hero-stats-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
  }

  .hero-stat-item .stat-number {
    font-size: 1.65rem;
  }

  .quick-action-grid {
    grid-template-columns: 1fr;
  }

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

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

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

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

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

  .section-title {
    font-size: 1.95rem;
  }

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

  .floating-card {
    display: none; /* prevent overlapping on small phones */
  }

  .floating-emergency-btn {
    bottom: 1.2rem;
    right: 1.2rem;
    padding: 0.75rem 1.15rem;
    font-size: 0.86rem;
  }

  .triage-box {
    padding: 1.8rem 1.4rem;
  }

  .symptom-selector {
    grid-template-columns: 1fr;
  }

  .triage-tabs {
    flex-direction: column;
    gap: 0.5rem;
  }

  .triage-tab-btn {
    text-align: center;
    width: 100%;
  }
}

/* --- Small Mobile (<= 480px) --- */
@media (max-width: 480px) {
  .site-logo {
    max-width: 250px;
  }
  .site-logo img {
    height: 42px;
  }
  .hero-title {
    font-size: 1.95rem;
  }
  .hero-image-wrapper img {
    height: 280px;
  }
}
