/* ==========================================================================
   WBPMR — responsive.css
   Loads last. Breakpoints follow Bootstrap 5: xl 1199.98, lg 991.98,
   md 767.98, sm 575.98.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Desktop hover dropdowns (>= 1200px, where the nav is expanded)
   -------------------------------------------------------------------------- */
@media (min-width: 1200px) {
  .main-nav .nav-item.dropdown:hover > .dropdown-menu {
    display: block;
    animation: navDrop 0.24s var(--ease) both;
  }
  .main-nav .dropdown-menu { margin-top: 0; }
}

@keyframes navDrop {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   Stats dividers — 4 across on desktop, 2 across below that
   -------------------------------------------------------------------------- */
@media (min-width: 992px) {
  .stats [class*="col-"]:last-child .stat::after { content: none; }
}
@media (max-width: 991.98px) {
  .stats [class*="col-"]:nth-child(even) .stat::after { content: none; }
}

/* --------------------------------------------------------------------------
   <= 1399px
   -------------------------------------------------------------------------- */
@media (max-width: 1399.98px) {
  .main-nav .nav-link { font-size: 0.85rem; padding: 12px 10px !important; }
  .main-nav > .nav-item > .nav-link::after { left: 10px; right: 10px; }
  .brand img { height: 80px; }
  .hero__arrow--prev { left: 14px; }
  .hero__arrow--next { right: 14px; }
  .mslider__arrow--prev { left: -8px; }
  .mslider__arrow--next { right: -8px; }
}

/* --------------------------------------------------------------------------
   <= 1199px — nav collapses; carousel drops to 3 per view
   -------------------------------------------------------------------------- */
@media (max-width: 1199.98px) {
  .mslider { --per: 3; }

  .navbar-collapse {
    background: var(--paper);
    border-top: 1px solid var(--line);
    margin-top: 8px;
    padding: 12px 0 20px;
    max-height: calc(100vh - 150px);
    overflow-y: auto;
  }

  .main-nav { gap: 0; align-items: stretch; }
  .main-nav .nav-link { padding: 13px 4px !important; font-size: 0.95rem; }
  .main-nav > .nav-item { border-bottom: 1px solid var(--line-soft); }
  .main-nav > .nav-item:last-child { border-bottom: 0; }
  .main-nav > .nav-item > .nav-link::after { display: none; }

  .main-nav .dropdown-toggle::after { float: right; margin-top: 4px; }

  .main-nav .dropdown-menu {
    border: 0;
    border-left: 2px solid var(--brand-line);
    border-radius: 0;
    box-shadow: none;
    margin: 0 0 10px 6px;
    padding: 4px 0 4px 10px;
    background: transparent;
  }
  .main-nav .dropdown-item { padding: 9px 10px; }
}

/* --------------------------------------------------------------------------
   <= 991px — carousel drops to 2 per view
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
  .mslider { --per: 2; }

  .hero { min-height: 460px; }
  .hero__arrow { width: 42px; height: 42px; font-size: 1rem; }
  .hero__inner { max-width: 640px; }

  .cta__panel { flex-direction: column; align-items: flex-start; text-align: left; }
  .cta__actions { width: 100%; }

  .about__body { column-count: 1; }
  .about__lead { padding-left: 18px; }

  .contact__aside { margin-bottom: 38px; }
  .side-card { margin-top: 34px; }

  .stat { padding: 18px 8px; }

  .footer__brand { margin-bottom: 16px; }
  .footer__col + .footer__col { margin-top: 34px; }
  .footer__title { margin-bottom: 16px; }
}

/* --------------------------------------------------------------------------
   <= 767px — carousel drops to 1 per view
   -------------------------------------------------------------------------- */
@media (max-width: 767.98px) {
  :root { --section-y: 54px; }

  .mslider { --per: 1; }
  .mslider__arrow { display: none; }

  .shell { width: min(1240px, 100% - 32px); }

  .topbar__inner {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding-block: 10px;
    text-align: center;
  }

  .brand img { height: 54px; }

  .hero { min-height: 430px; }
  .hero__arrow { display: none; }
  .hero__sub { letter-spacing: 0.2em; text-indent: 0.2em; }
  .hero__title { margin: 20px 0; }
  .hero__inner { max-width: 100%; }
  .hero__dots { bottom: 20px; }
  /* portrait crops the photo hard, so the scrim tightens a little — still well
     short of a curtain, and the subjects stay readable */
  .hero::after {
    background:
      radial-gradient(ellipse 116% 108% at 50% 48%,
        rgba(1, 69, 78, 0.8) 0%,
        rgba(1, 69, 78, 0.72) 52%,
        rgba(1, 95, 107, 0.52) 100%);
  }
  .hero__slide img { object-position: 64% center; }

  .stat__icon { width: 46px; height: 46px; font-size: 1.15rem; margin-bottom: 14px; }
  .stat { padding: 6px 4px; }

  .sec-head { margin-bottom: 30px; }

  .page-hero { padding-block: 46px; }

  .cta__panel { padding: 28px 22px; }
  .cta__actions { flex-direction: column; }
  .cta__actions .btn-wb,
  .cta__actions .btn-wb-line { width: 100%; }

  .form-card { padding: 24px 20px; }

  .footer__bar { flex-direction: column; text-align: center; }

  .to-top { right: 14px; bottom: 14px; width: 42px; height: 42px; }
}

/* --------------------------------------------------------------------------
   <= 575px
   -------------------------------------------------------------------------- */
@media (max-width: 575.98px) {
  .hero__rule { width: 96px; }

  .about__lead { font-size: 1.08rem; }
  .about__marks { gap: 9px; }
  .about__mark { font-size: 0.8rem; padding: 8px 14px; }

  .wcard { padding: 28px 22px; }
  .scard { padding: 24px 12px; }
  .scard__icon { width: 54px; height: 54px; font-size: 1.35rem; }

  .mcard__ring { width: 136px; }
  .ecard__body { padding: 22px 20px 24px; }

  .mailbox { flex-direction: column; gap: 14px; }
  .side-card { padding: 26px 22px; }

  .fact-row { flex-direction: column; gap: 4px; }

  .stat__label { font-size: 0.82rem; }
}

/* --------------------------------------------------------------------------
   New inner-page components — member directory, wizard, downloads, blog,
   find-a-specialist directory
   -------------------------------------------------------------------------- */
@media (max-width: 767.98px) {
  .mfilter { flex-direction: column; align-items: stretch; }
  .mfilter__count { margin-left: 0; text-align: center; }

  .wizard__steps { gap: 0; }
  .wizard__step { font-size: 0; }
  .wizard__step::before { width: 32px; height: 32px; margin-bottom: 0; font-size: 0.85rem; }
  .wizard__step::after { top: 15px; left: calc(-50% + 16px); width: calc(100% - 32px); }

  .wreview__row { flex-direction: column; gap: 2px; }
  .wreview__v { text-align: left; }

  .drow { flex-wrap: wrap; }
  .drow__action { flex: 1 1 100%; }
  .drow__action .btn-wb, .drow__action .btn-wb-ghost { width: 100%; }

  .bfeatured { flex-direction: column; }
  .bfeatured__media { min-height: 200px; }

  .dcard__top { flex-wrap: wrap; }
  .dcard__district { margin-left: 0; }
}

@media (max-width: 575.98px) {
  .mtile { flex-wrap: wrap; }
  .mtile__badge { margin-left: 0; }

  .wizard__nav { flex-direction: column-reverse; align-items: stretch; }
  .wizard__nav .btn-wb, .wizard__nav .btn-wb-ghost { width: 100%; }

  .dtabs { justify-content: center; }
}

/* --------------------------------------------------------------------------
   Print
   -------------------------------------------------------------------------- */
@media print {
  .topbar, .site-header, .hero__dots, .hero__arrow, .mslider__arrow,
  .mslider__dots, .to-top, .cta, .form-card { display: none !important; }
  .hero, .page-hero { min-height: auto; }
  .hero::after, .page-hero::after { display: none; }
  body { color: #000; }
  .section { padding-block: 20px; }
  .mslider__track { flex-wrap: wrap; transform: none !important; }
  .mslider__slide { flex: 0 0 50%; }
}
