/* =========================================================================
   RESPONSIVE OVERRIDES
   Mobile-first Bootstrap grid is used throughout; this file fine-tunes
   spacing, typography and layout switches at each breakpoint.
   ========================================================================= */

/* ---- Large desktop (>=1400px): a little extra breathing room ---- */
@media (min-width: 1400px) {
  .container { max-width: 1320px; }
}

/* ---- Tablet and below (<992px): collapse to stacked layouts ---- */
@media (max-width: 991.98px) {
  :root { --navbar-h: 72px; }

  .top-bar__item--address span { max-width: 180px; }

  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }

  .stats-strip__grid { grid-template-columns: repeat(3, 1fr); gap: 2rem 1rem; }
  .stat-item:nth-child(4), .stat-item:nth-child(5) { grid-column: span 1; }

  .showcase__row, .showcase--alt .showcase__row { flex-direction: column-reverse; }
  .showcase__media { min-height: 300px; }
  .showcase__content { padding: 2rem 1.25rem; }

  .about-split__badge { left: 1rem; bottom: -1.25rem; padding: 0.9rem 1.15rem; }
  .about-split__badge strong { font-size: 1.4rem; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item--wide { grid-column: span 2; }

  .contact-map iframe { height: 320px; }
}

/* ---- Mobile (<768px) ---- */
@media (max-width: 767.98px) {
  :root { --navbar-h: 68px; }

  body { font-size: 0.97rem; }

  /* Top bar becomes compact: hide address text, keep tappable icons */
  .top-bar { height: auto; padding: 0.4rem 0; }
  .top-bar__inner { flex-wrap: nowrap; }
  .top-bar__contacts { gap: 0.9rem; }
  .top-bar__item span { display: none; }
  .top-bar__item--email { display: none; } /* keep bar compact on phones */
  .top-bar__social { display: none; }

  .navbar-brand__text { font-size: 1.05rem; }
  .navbar-brand img { width: 34px; }

  .hero-carousel, .hero-carousel .carousel-inner, .hero-carousel .carousel-item {
    height: 86vh; min-height: 480px;
  }
  .hero-slide__content { max-width: 100%; padding-top: calc(var(--navbar-h) + 0.5rem); }
  .hero-slide__actions .btn-golden, .hero-slide__actions .btn-outline-light { width: 100%; }
  .hero-slide__actions { flex-direction: column; }
  .hero-carousel .carousel-control-prev, .hero-carousel .carousel-control-next { display: none; }

  .about-split .row { flex-direction: column; }
  .about-split__media { margin-bottom: 2.5rem; }
  .about-split__badge { position: static; margin-top: 1rem; display: inline-block; }

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

  .facility-card { padding: 1.75rem 1.35rem; }

  .why-choose .row { flex-direction: column-reverse; }
  .why-choose__image { margin-top: 2rem; }

  .cta-strip__inner { flex-direction: column; align-items: flex-start; text-align: left; }
  .cta-strip__actions { width: 100%; }
  .cta-strip__actions .btn-golden, .cta-strip__actions .btn-outline-light { flex: 1; }

  .contact-preview__map iframe { min-height: 260px; }

  .footer__grid { grid-template-columns: 1fr; gap: 2rem; text-align: left; }
  .footer__bottom-inner { flex-direction: column; text-align: center; }

  .floating-actions { right: 0.9rem; bottom: 0.9rem; gap: 0.65rem; }
  .floating-btn { width: 50px; height: 50px; font-size: 1.3rem; }

  .page-hero { min-height: 34vh; }
  .page-hero__content { padding-bottom: 2rem; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .gallery-item--wide { grid-column: span 2; }
  .gallery-filters { gap: 0.4rem; }
  .gallery-filter { padding: 0.5rem 1rem; font-size: 0.82rem; }

  .contact-info-panel { margin-bottom: 1.5rem; }
  .contact-map iframe { height: 280px; }
}

/* ---- Small phones (<400px) ---- */
@media (max-width: 399.98px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .stats-strip__grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 0.75rem; }
  .navbar-brand__text { font-size: 0.95rem; }
  .btn-golden, .btn-outline-gold, .btn-outline-light { padding: 0.75rem 1.35rem; font-size: 0.88rem; }
}

/* Ensure no element ever forces horizontal scroll */
html, body { max-width: 100%; overflow-x: hidden; }
