/* Compact, touch-friendly navigation and responsive product content. */
/* Keep the expanded six-category rehabilitation portfolio inside the existing
   flyout so the third navigation level never runs beyond the viewport. */
.solutions-cascade .portfolio-nav > .nav-flyout {
  position: static;
  width: 100%;
  max-height: none;
  margin: 5px 0 7px;
  padding: 4px 0 4px 10px;
  overflow: visible;
  background: #f4f9fc;
  border: 0;
  border-left: 2px solid #54c9e9;
  border-radius: 0;
  box-shadow: none;
}
.solutions-cascade .portfolio-nav > .nav-flyout a {
  padding: 8px 10px;
  font-size: 13px;
}
@media (max-width: 1080px) {
  html, body { max-width: 100%; overflow-x: clip; }
  .wrap, header .wrap { width: min(100% - 32px, 720px); }
  .nav { height: 56px; min-height: 56px; padding: 0; flex-wrap: nowrap; }
  .logo { width: 145px; flex: 0 0 auto; }
  .mobile-toggle { display: inline-flex !important; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid #ffffff70; border-radius: 8px; color: #fff; background: transparent; font-size: 23px; cursor: pointer; }
  .links { display: none !important; position: absolute; left: 0; right: 0; top: 100%; width: 100%; max-height: calc(100dvh - 56px); overflow-y: auto !important; overscroll-behavior: contain; background: #092d4d; padding: 10px 16px 22px; box-shadow: 0 16px 25px #092d4d36; flex-direction: column; align-items: stretch; gap: 0; }
  .links.mobile-open { display: flex !important; }
  .links > a, .links > .nav-dropdown > summary { display: flex; align-items: center; min-height: 46px; width: 100%; padding: 10px 6px; font-size: 15px; font-weight: 500; color: #fff; border-bottom: 1px solid #ffffff24; }
  .links > .nav-dropdown > summary { justify-content: space-between; }
  .dropdown-panel, .dropdown-panel.solutions-cascade, .dropdown-panel.solutions-mega { position: static; left: auto; top: auto !important; width: 100%; max-height: none; overflow: visible; box-shadow: none; margin: 3px 0 8px; padding: 6px; }
  .solutions-cascade .nav-flyout, .solutions-cascade .product-flyout, .nav-flyout, .product-flyout { position: static; width: auto; max-height: none; overflow: visible; box-shadow: none; border: 0; border-left: 1px solid #d9e6ef; margin-left: 10px; padding: 3px 0 3px 8px; }
  .nav-level > summary, .nav-dropdown[open] .solutions-cascade .nav-level > summary { min-height: 44px; display: flex; align-items: center; font-size: 14px; }
  .nav-category > summary, .nav-dropdown[open] .solutions-cascade .nav-category > summary { min-height: 44px; font-size: 14px; }
  .nav-flyout > a, .solutions-cascade .nav-flyout > a, .dropdown-panel > a { min-height: 44px; display: flex; flex-direction: column; justify-content: center; font-size: 14px; line-height: 1.4; }
  .rehab-nav { top: 56px; }
  .rehab-nav .wrap { padding: 12px 0; }
  .inner-hero[id], .content-section[id], .catalog-card { scroll-margin-top: 115px; }
  img, video, iframe { max-width: 100%; }
  .contact-options { max-width: calc(100vw - 32px); }
}
@media (max-width: 600px) {
  .hero { min-height: 430px; background-size: auto 850px; background-position: 55% top; }
  .hero-inner { min-height: 430px; }
  .hero-copy { padding: 42px 0; }
  .hero h1 { font-size: clamp(37px, 10vw, 50px); line-height: 1.08; letter-spacing: -1.8px; }
  .hero p { font-size: 16px; }
  .featured, .product-row, .traction-feature { gap: 20px; }
  .partner-box { padding: 32px 24px; }
  .cta, .action { min-height: 44px; }
  .feature-mini { align-items: flex-start; gap: 12px; padding: 14px; }
  .feature-mini img { width: 85px; height: 82px; flex: 0 0 auto; }
  .feature-mini strong { font-size: 17px; }
  .contact-band h2 { font-size: 27px; }
}
