/* Final responsive layer: shared by the home and service pages. */
html {
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 0;
}

.wrap {
  width: min(100%, 1200px);
}

.detail-wrap,
.detail-copy,
.detail-side,
.feature-list li > div {
  min-width: 0;
}

.detail-wrap {
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: clamp(32px, 5vw, 56px);
}

#siteHeader,
#siteHeader .nav {
  overflow: visible;
}

#siteHeader .nav {
  position: relative;
  width: 100%;
}

#navToggle {
  display: none;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--brand-dark);
  box-shadow: none;
  cursor: pointer;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
}

#navToggle span {
  display: block;
  width: 30px;
  height: 3px;
  margin: 4px 0;
  border-radius: 2px;
  background: currentColor !important;
}

#navToggle svg {
  display: block;
  width: 30px;
  height: 30px;
  stroke: var(--brand-dark) !important;
}

@media (max-width: 960px) {
  #siteHeader .wrap.nav {
    min-height: 60px;
    gap: 12px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .logo {
    min-width: 0;
  }

  .logo-img {
    width: auto;
    height: 58px !important;
    max-width: min(48vw, 210px);
  }

  .header-ndis-logo {
    display: block !important;
    flex: 0 0 auto !important;
    min-width: 70px;
    max-width: min(25vw, 110px) !important;
    max-height: 32px !important;
  }

  .nav-cta {
    margin-left: auto;
  }

  .nav-phone {
    display: none !important;
  }

  #navToggle {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  #navLinks,
  #navLinks.open {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    z-index: 110;
    width: auto;
    margin: 0;
    padding: 12px 16px 16px;
    border: 1px solid var(--line);
    border-top: 0;
    border-radius: 0 0 14px 14px;
    background: var(--paper);
    box-shadow: 0 16px 30px rgba(17, 38, 33, 0.16);
  }

  #navLinks {
    display: none !important;
  }

  #navLinks.open {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  #navLinks a,
  #navLinks.open .mobile-call-link {
    display: flex;
    width: 100%;
    min-height: 44px;
    align-items: center;
    padding: 10px 4px;
  }

  #navLinks .mobile-call-link {
    margin: 4px 0 8px;
    padding: 11px 14px;
    border-radius: 10px;
    background: var(--accent);
    color: var(--brand-dark);
  }

  .detail-wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .detail-side {
    width: 100%;
  }
}

@media (max-width: 640px) {
  #siteHeader .nav .logo > .logo-img {
    width: 54px !important;
    height: 54px !important;
    max-width: none !important;
  }

  .wrap {
    padding-right: 18px;
    padding-left: 18px;
  }

  #siteHeader .wrap.nav {
    gap: 8px;
  }

  .logo-img {
    height: 72px !important;
    max-width: 48vw;
  }

  .header-ndis-logo {
    min-width: 58px;
    max-width: 21vw !important;
    max-height: 26px !important;
  }

  .page-hero {
    padding: 48px 0 56px;
  }

  .page-hero h1 {
    font-size: clamp(30px, 9vw, 38px);
  }

  .page-hero-sub {
    font-size: 16px;
  }

  .page-hero-actions .btn {
    width: 100%;
    white-space: normal;
  }

  .detail-copy h2 {
    margin-top: 34px;
    font-size: clamp(24px, 7vw, 30px);
  }

  .detail-copy p {
    font-size: 15.5px;
  }

  .feature-list {
    gap: 12px;
  }

  .feature-list li {
    gap: 12px;
    padding: 16px;
  }

  .side-card,
  .side-list {
    padding: 22px;
  }
}

@media (max-width: 380px) {
  #siteHeader .nav .logo > .logo-img {
    width: 50px !important;
    height: 50px !important;
  }

  .wrap {
    padding-right: 14px;
    padding-left: 14px;
  }

  .header-ndis-logo {
    display: block !important;
    min-width: 58px;
    max-width: 21vw !important;
    max-height: 24px !important;
  }

  .logo-img {
    height: 64px !important;
    max-width: 50vw;
  }
}
