/* =========================================================
   SPL Diagnostics – Responsive Stylesheet
   ========================================================= */

/* ---- Large Desktop (>= 1400px) ---- */
@media (min-width: 1400px) {
  .hero-title { font-size: 3.2rem; }
  .hero-image-wrapper img { height: 480px; }
}

/* ---- Desktop (>= 992px) ---- */
@media (min-width: 992px) {
  .navbar-nav { gap: .25rem; }
}

/* ---- Tablet (768px – 991px) ---- */
@media (max-width: 991.98px) {
  :root { --navbar-h: 68px; }

  section { padding: 56px 0; }

  #mainNavbar .navbar-collapse {
    background: var(--white);
    border-top: 1px solid var(--border-light);
    padding: 1rem 0;
    margin-top: .5rem;
  }

  .navbar-nav .nav-link {
    padding: .6rem 1.25rem !important;
    border-radius: 0;
  }
  .navbar-nav .nav-link::after { display: none; }

  .navbar-nav .nav-link.btn-call-nav,
  .btn-call-nav {
    margin: .5rem 1.25rem;
    display: inline-flex !important;
    width: calc(100% - 2.5rem);
    justify-content: center;
    color: var(--white) !important;
  }

  .hero-section { padding-top: calc(var(--navbar-h) + 32px); padding-bottom: 56px; }
  .hero-image-wrapper { margin-top: 2rem; }
  .hero-image-wrapper img { height: 300px; }
  .hero-description { max-width: 100%; }

  .contact-form-card { padding: 1.75rem; }
}

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

  section { padding: 48px 0; }
  .section-header { margin-bottom: 32px; }

  .navbar-brand-wrapper {
    max-width: calc(100% - 54px);
    gap: .5rem;
  }
  .navbar-logo {
    height: 38px;
    flex-shrink: 0;
  }
  .brand-name {
    font-size: 0.68rem;
    line-height: 1.2;
    letter-spacing: .02em;
    white-space: normal;
  }
  .brand-sub { display: none; }

  .hero-section {
    padding-top: calc(var(--navbar-h) + 24px);
    padding-bottom: 48px;
  }
  .hero-title { font-size: clamp(1.7rem, 6vw, 2.1rem); }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn-primary-custom,
  .hero-actions .btn-secondary-custom { justify-content: center; width: 100%; }
  .hero-image-wrapper img { height: 230px; }
  .hero-badge-float { font-size: .75rem; padding: .55rem .8rem; }

  .why-card { flex-direction: column; }
  .cta-actions { flex-direction: column; align-items: center; }
  .cta-actions a { width: 100%; max-width: 280px; justify-content: center; }

  .contact-form-card { padding: 1.25rem; }

  .footer-top { padding: 40px 0 28px; }
  .footer-top [class*="col-"] + [class*="col-"] { margin-top: 2rem; }

  .page-banner { padding: calc(var(--navbar-h) + 32px) 0 40px; }

  .map-wrapper iframe { height: 260px; }
}

/* ---- Small Mobile (< 400px) ---- */
@media (max-width: 399.98px) {
  .navbar-logo { height: 32px; }
  .brand-name { font-size: 0.58rem; line-height: 1.15; }
  .hero-title { font-size: 1.6rem; }
  .btn-primary-custom,
  .btn-secondary-custom,
  .btn-teal-custom,
  .btn-outline-white { padding: .65rem 1.4rem; font-size: .88rem; }
}

/* ---- Print ---- */
@media print {
  #mainNavbar, footer, .cta-section, .hero-section::before, .hero-section::after { display: none; }
  body { font-size: 12pt; }
  a[href]::after { content: " (" attr(href) ")"; }
}
