/* ==========================================================================
   Bilal Hospital — Responsive Styles
   Mobile-first breakpoints: 320px, 375px, tablet, laptop, desktop
   ========================================================================== */

/* --------------------------------------------------------------------------
   Base mobile (320px+)
   -------------------------------------------------------------------------- */

@media (max-width: 575.98px) {
  .top-header {
    font-size: 0.75rem;
  }

  .top-header__item span:not(.top-header__badge) {
    display: none;
  }

  .top-header__emergency span {
    display: inline !important;
  }

  .hero {
    min-height: auto;
    padding: 2.5rem 0;
    text-align: center;
  }

  .hero__text {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero__trust-badges {
    justify-content: center;
  }

  .hero__trust-badge {
    font-size: 0.72rem;
  }

  .navbar-brand__logo {
    height: 48px;
    max-width: 180px;
  }

  .footer-brand__logo {
    height: 64px;
  }

  .hero__visual-stats {
    display: none !important;
  }

  .quick-actions {
    margin-top: -0.5rem;
  }

  .quick-action-card {
    min-height: 95px;
    padding: 1rem 0.75rem;
    font-size: 0.78rem;
  }

  .stats-showcase {
    padding: 2rem 0;
  }

  .stats-showcase__number {
    font-size: 1.75rem;
  }

  .testimonial-carousel {
    padding: 0 2.75rem 2.75rem;
  }

  .testimonial-carousel .carousel-inner,
  .testimonial-carousel .carousel-item {
    min-height: 320px;
  }

  .testimonial-carousel .testimonial-card {
    padding: 1.75rem 1.25rem;
    min-height: 300px;
  }

  .testimonial-carousel .carousel-control-prev {
    left: 0.25rem;
  }

  .testimonial-carousel .carousel-control-next {
    right: 0.25rem;
  }

  .stories-split .testimonial-carousel {
    padding: 0 2.25rem 2.25rem;
  }

  .stories-split .testimonial-carousel .carousel-inner,
  .stories-split .testimonial-carousel .carousel-item {
    min-height: 280px;
  }

  .stories-split .testimonial-carousel .testimonial-card {
    min-height: 260px;
  }

  .stories-split .video-review-carousel .carousel-inner,
  .stories-split .video-review-carousel .carousel-item {
    min-height: 0;
  }

  .stories-split__panel {
    padding: 1rem;
  }

  .trust-strip {
    padding: 1.5rem 0;
  }

  .trust-strip__item {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
  }

  .trust-strip .col-md-6:last-child .trust-strip__item,
  .trust-strip .col-lg-3:last-child .trust-strip__item {
    border-bottom: none;
  }

  .fab-group {
    bottom: 1rem;
    right: 1rem;
  }

  .fab {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
  }

  .hero__floating-card {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    transform: none;
    margin: 1rem auto 0;
    justify-content: center;
    max-width: min(100%, 280px);
    padding: 0.75rem 1rem;
    border-right: none;
    border-left: 4px solid var(--color-gold);
  }

  .hero__floating-card-logo {
    width: 64px;
    height: 64px;
  }

  .section {
    padding: 3rem 0;
  }

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

  .card-custom {
    padding: 1.5rem;
  }

  .stats-bar {
    margin-top: -2rem;
    padding: 1.25rem;
  }

  .stat-item__number {
    font-size: 1.75rem;
  }

  .cta-section {
    padding: 2.5rem 1.5rem;
    border-radius: var(--radius-lg);
  }

  .page-header {
    padding: 3rem 0 2.5rem;
  }

  .contact-form {
    padding: 1.5rem;
  }

  .mission-card {
    padding: 1.75rem;
  }

  .feature-item {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .btn-appointment {
    width: 100%;
    text-align: center;
    margin-top: 0.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    font-size: 0.8rem;
  }

  .footer-bottom__copy,
  .footer-credit {
    text-align: center;
    white-space: normal;
  }
}

/* --------------------------------------------------------------------------
   Small mobile (375px+)
   -------------------------------------------------------------------------- */

@media (min-width: 375px) and (max-width: 575.98px) {
  .top-header__item .d-none.d-sm-inline {
    display: inline !important;
  }
}

/* --------------------------------------------------------------------------
   Tablet (768px)
   -------------------------------------------------------------------------- */

@media (min-width: 430px) and (max-width: 575.98px) {
  .hero__actions .btn {
    width: auto;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .hero {
    min-height: auto;
    padding: 3rem 0 2rem;
  }

  .section {
    padding: 4rem 0;
  }

  .navbar-brand__logo {
    height: 48px;
  }
}

/* --------------------------------------------------------------------------
   Navbar collapse mobile
   -------------------------------------------------------------------------- */

@media (max-width: 991.98px) {
  .site-navbar .navbar-collapse {
    background: var(--color-white);
    padding: 1rem;
    margin-top: 0.75rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
  }

  .navbar-nav .nav-link {
    padding: 0.75rem 1rem !important;
  }

  .navbar-nav .nav-item {
    border-bottom: 1px solid var(--color-border);
  }

  .navbar-nav .nav-item:last-child {
    border-bottom: none;
  }
}

/* --------------------------------------------------------------------------
   Laptop (992px+)
   -------------------------------------------------------------------------- */

@media (min-width: 992px) {
  .hero__image-wrap {
    padding-left: 1rem;
  }

  .navbar-brand__logo {
    height: 66px;
    max-width: 260px;
  }

  .footer-brand__logo {
    height: 88px;
  }
}

/* --------------------------------------------------------------------------
   Large desktop (1200px+)
   -------------------------------------------------------------------------- */

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }

  .hero {
    min-height: 88vh;
  }

  .section {
    padding: 6rem 0;
  }
}

/* --------------------------------------------------------------------------
   Extra large (1400px+)
   -------------------------------------------------------------------------- */

@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

@media (max-width: 767.98px) {
  .doctor-card--scroll {
    width: 260px;
    flex-basis: 260px;
    height: 410px;
  }

  .doctors-marquee__track {
    animation-duration: 80s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .doctors-marquee {
    -webkit-mask-image: none;
    mask-image: none;
    overflow: visible;
  }

  .doctors-marquee__track {
    animation: none !important;
    flex-wrap: wrap;
    justify-content: center;
    width: 100% !important;
    gap: 1rem;
  }
}

/* --------------------------------------------------------------------------
   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;
  }
}

/* --------------------------------------------------------------------------
   Print
   -------------------------------------------------------------------------- */

@media print {
  .top-header,
  .site-navbar,
  .site-footer,
  .cta-section,
  .btn-appointment,
  .fab-group {
    display: none !important;
  }

  .section {
    padding: 1rem 0;
  }

  body {
    color: #000;
  }
}
