/* ============================================================
   MediUS Healthcare — Responsive Stylesheet
   Breakpoints: 1024 (tablet-l), 900 (tablet), 640 (mobile)
   ============================================================ */

@media (max-width: 1080px) {
  .primary-nav a { padding: 10px 10px; font-size: .78rem; }
  .ready h2 { font-size: 2.1rem; }
}

/* ---------- Tablet & mobile navigation ---------- */
@media (max-width: 960px) {
  .nav-toggle { display: block; }

  .primary-nav {
    position: fixed;
    top: 0; right: -100%;
    width: 300px; max-width: 85vw; height: 100vh;
    background: var(--navy);
    padding: 90px 0 30px;
    overflow-y: auto;
    transition: right .35s ease;
    box-shadow: -6px 0 24px rgba(0,0,0,.3);
  }
  .primary-nav.open { right: 0; }
  .primary-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .primary-nav > ul > li { border-bottom: 1px solid rgba(255,255,255,.08); }
  .primary-nav a { padding: 14px 26px; justify-content: space-between; width: 100%; }
  .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; background: rgba(0,0,0,.2); border-top: 0;
    max-height: 0; overflow: hidden; padding: 0;
    transition: max-height .3s ease;
  }
  .primary-nav .has-dropdown.open .dropdown { max-height: 360px; padding: 4px 0; }
  .dropdown li a { color: #dfe2ea; padding: 12px 40px; }
  .dropdown li a:hover { background: rgba(255,255,255,.06); color: #fff; }

  .nav-backdrop {
    position: fixed; inset: 0; background: rgba(0,0,0,.5);
    opacity: 0; visibility: hidden; transition: .3s; z-index: 999;
  }
  .nav-backdrop.show { opacity: 1; visibility: visible; }
}

/* ---------- Grid collapses ---------- */
@media (max-width: 900px) {
  .section { padding: 56px 0; }
  .better .grid,
  .ready .grid,
  .national .grid,
  .about-intro .grid,
  .benefits .grid,
  .clients-intro .grid,
  .joint-section .grid,
  .contact-section .grid,
  .testimonials .grid,
  .stats .grid,
  .faq-grid,
  .blog-grid { grid-template-columns: 1fr; }

  .national__box { margin-left: 0; margin-top: -30px; }
  .national__img img { border-radius: 30px 6px 6px 6px; }
  .stats .grid { gap: 34px; }
  .contact-section .grid { gap: 30px; }
  .joint-section .grid { text-align: center; }
  .joint-seal img { margin-bottom: 20px; }
  .joint-links { justify-content: center; }
  .ready h2 { font-size: 2.2rem; }
  .cta-band h2 { font-size: 1.4rem; text-align: center; }
  .framed-img { display: block; }
}

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  body { font-size: 15px; }
  .section { padding: 44px 0; }
  .section-title, .testimonials h2 { font-size: 1.6rem; }
  .ready h2 { font-size: 1.9rem; }
  .stats__num { font-size: 2.8rem; }
  .blog-hero h1 { font-size: 2rem; }
  .blog-detail h1 { font-size: 1.6rem; }
  .form-row { grid-template-columns: 1fr; }
  .faq-card { flex-direction: column; }
  .faq-card__img { flex: none; }
  .faq-card__img img { width: 100%; height: 180px; }
  .refer-card, .clients-form-wrap { padding-left: 18px; padding-right: 18px; }
  .refer-card { padding: 30px 22px; }
  .top-bar__msg { display: none; }
  .top-bar .container { justify-content: flex-end; }
  .cta-band .container { gap: 20px; }
  .national__box { padding: 32px 26px; }
}

@media (max-width: 380px) {
  .top-bar__right { gap: 10px; }
  .logo__word { font-size: 1.45rem; }
}

/* ---- Clients banner keeps room for the caption on small screens ---- */
@media (max-width: 900px) {
  .clients-hero { min-height: 320px; }
  .clients-hero img { height: 320px; object-fit: cover; }
}
@media (max-width: 640px) {
  .clients-hero { min-height: 280px; }
  .clients-hero img { height: 280px; }
  .clients-hero__caption p { margin-bottom: 18px; }
}

/* ---- Video hero responsive ---- */
@media (max-width: 900px) {
  .home-hero { height: auto; min-height: 480px; max-height: none; }
  .home-hero__content h1 { font-size: 2.1rem; }
}
@media (max-width: 640px) {
  .home-hero { min-height: 460px; }
  .home-hero__content { padding-top: 80px; }
  .home-hero__content h1 { font-size: 1.65rem; }
  .home-hero__content p { font-size: .92rem; }
  .map-embed iframe { height: 240px; }
  .blog-detail article h2 { font-size: 1.2rem; }
}
