:root {
  --pm-mobile-header-offset: 112px;
}

html.pm-menu-open,
html.pm-menu-open body {
  overflow: hidden;
}

@media (max-width: 1023px) {
  header img[alt="Pillar Mechanical"] {
    height: 56px !important;
    width: auto !important;
    transform: none !important;
  }

  header .py-4,
  header .lg\:py-6 {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
  }

  header button[aria-label="Toggle menu"] {
    min-width: 44px;
    min-height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.16);
  }

  main > section:first-of-type,
  body > section:first-of-type {
    padding-top: max(var(--pm-mobile-header-offset), 6rem) !important;
  }

  main > section:first-of-type h1,
  body > section:first-of-type h1 {
    font-size: clamp(2rem, 9vw, 2.75rem) !important;
    line-height: 1.08 !important;
    overflow-wrap: break-word;
  }

  main > section:first-of-type h2,
  body > section:first-of-type h2 {
    font-size: clamp(1.15rem, 5.6vw, 1.5rem) !important;
    line-height: 1.22 !important;
  }

  main > section:first-of-type p,
  body > section:first-of-type p {
    line-height: 1.55 !important;
  }

  div[aria-label="Emergency service availability"] {
    top: var(--pm-mobile-banner-top, 72px) !important;
    margin-top: 0 !important;
  }

  #floating-assessment-btn {
    display: none !important;
  }
}

.pm-mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: none;
}

.pm-mobile-menu[data-open="true"] {
  display: block;
}

.pm-mobile-menu__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 16, 38, 0.62);
}

.pm-mobile-menu__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(88vw, 360px);
  height: 100%;
  overflow-y: auto;
  background: #0f1729;
  color: #fff;
  box-shadow: -20px 0 50px rgba(0, 0, 0, 0.28);
  padding: 1rem;
}

.pm-mobile-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.pm-mobile-menu__title {
  font-weight: 800;
  font-size: 1rem;
}

.pm-mobile-menu__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
}

.pm-mobile-menu__links {
  display: grid;
  gap: 0.5rem;
  padding: 1rem 0;
}

.pm-mobile-menu__links a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0.8rem 0.9rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.pm-mobile-menu__links a:hover,
.pm-mobile-menu__links a:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  outline: none;
}

.pm-mobile-menu__cta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.pm-mobile-menu__cta a {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  color: #0f1729;
  background: #f5b642;
  text-decoration: none;
  font-weight: 800;
}

.pm-mobile-menu__cta a:first-child {
  background: #fff;
}
