/* =========================================================================
   PM Patil Projects & Engineers Private Limited — Header UI
   header.css
   Design language: architectural / drafting-table blueprint, palette
   pulled directly from the logo (navy + slate grey).
   All classes are prefixed "pmp-" and are independent of any older
   theme classes — nothing here depends on or overrides old markup.
   ========================================================================= */

@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&family=IBM+Plex+Mono:wght@500&display=swap");

:root {
  /* ---- Color tokens — sampled from the PM Patil logo -------------------*/
  --pmp-navy-deep: #0a2560; /* top strip background */
  --pmp-navy: #0c2c6c; /* logo navy — headings / nav text */
  --pmp-steel: #2f4e93; /* mid-blue — hover / secondary */
  --pmp-accent: #515763; /* logo triangle slate grey — used sparingly */
  --pmp-concrete: #f4f3ef; /* light structural background */
  --pmp-white: #ffffff;
  --pmp-line: rgba(12, 44, 108, 0.14);
  --pmp-line-strong: rgba(12, 44, 108, 0.28);

  /* ---- Type tokens ------------------------------------------------------*/
  --pmp-font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --pmp-font-body: "Inter", "Segoe UI", sans-serif;
  --pmp-font-mono: "IBM Plex Mono", "Courier New", monospace;

  /* ---- Layout tokens ------------------------------------------------------*/
  --pmp-header-h: 84px;
  --pmp-header-h-sticky: 62px;
  --pmp-topbar-h: 32px;
  --pmp-gutter: clamp(16px, 4vw, 64px);
}

.pmp-header-root,
.pmp-header-root * {
  box-sizing: border-box;
}

/* =========================================================================
   TOP STRIP — only the welcome line.
   ========================================================================= */
.pmp-topbar {
  background: var(--pmp-navy-deep);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.18);
  height: var(--pmp-topbar-h);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.pmp-topbar__inner {
  width: 100%;
  max-width: 1350px;
  margin: 0 auto;
  padding: 0 var(--pmp-gutter);
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.pmp-topbar__mark {
  flex: 0 0 auto;
  width: 11px;
  height: 11px;
  position: relative;
  opacity: 0.85;
}
.pmp-topbar__mark::before,
.pmp-topbar__mark::after {
  content: "";
  position: absolute;
  background: #fff;
}
.pmp-topbar__mark::before {
  left: 0;
  top: 50%;
  width: 100%;
  height: 1.5px;
  transform: translateY(-50%);
}
.pmp-topbar__mark::after {
  top: 0;
  left: 50%;
  width: 1.5px;
  height: 100%;
  transform: translateX(-50%);
}

.pmp-topbar__label {
  flex: 1 1 auto;
  min-width: 0;
  /* font-family: var(--pmp-font-mono); */
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* =========================================================================
   MAIN HEADER
   ========================================================================= */
.pmp-header {
  position: relative;
  background: var(--pmp-white);
  border-bottom: 1px solid var(--pmp-line);
  z-index: 500;
}

.pmp-header__inner {
  max-width: 1350px;
  margin: 0 auto;
  padding: 0 var(--pmp-gutter);
  height: var(--pmp-header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: height 0.25s ease;
}

/* ---- Brand: logo only -------------------------------------------------- */
.pmp-brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  min-width: 0;
  text-decoration: none;
}

.pmp-brand__logo {
  display: block;
  height: 44px;           /* ≈160px wide with this logo */
  width: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: 2px;
  transition: height 0.25s ease;
}

.pmp-brand__name {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  color: var(--pmp-navy);   /* matches the logo navy */
  text-transform: uppercase;
  white-space: nowrap;
  transition: font-size 0.25s ease;
}

/* =========================================================================
   NAV
   ========================================================================= */
.pmp-nav {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(18px, 2.4vw, 34px);
  min-width: 0;
}

.pmp-nav__list {
  list-style: none;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(14px, 2vw, 15px);
  margin: 0;
  padding: 0;
}

/* =========================================
   Header Dropdown
========================================= */

.pmp-has-dropdown {
  position: relative;
}

.pmp-dropdown-arrow {
  display: inline-block;
  margin-left: 6px;
  font-size: 13px;
  line-height: 1;
  transition: transform 0.25s ease;
}

/* Dropdown closed */
.pmp-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;

  min-width: 245px;
  margin: 0;
  padding: 8px 0;

  list-style: none;
  background: var(--pmp-white);

  border: 1px solid var(--pmp-line);
  border-radius: 10px;

  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transform: translateX(-50%) translateY(8px);

  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s ease;

  z-index: 9999;
}

/* Dropdown open */
.pmp-has-dropdown.is-open > .pmp-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Arrow */
.pmp-has-dropdown.is-open .pmp-dropdown-arrow {
  transform: rotate(180deg);
}

/* Dropdown items */
.pmp-dropdown li {
  margin: 0;
  padding: 0;
}

.pmp-dropdown li a {
  display: block;

  width: 100%;
  padding: 11px 18px;

  color: var(--pmp-navy);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;

  text-decoration: none;
  white-space: normal;

  transition:
    background 0.2s ease,
    color 0.2s ease,
    padding-left 0.2s ease;
}

.pmp-dropdown li a:hover,
.pmp-dropdown li a:focus-visible {
  background: #f5f8f6;
  color: var(--pmp-steel);
  padding-left: 23px;
}

.pmp-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  /* font-family: var(--pmp-font-body); */
  font-size: 14px;
  font-weight: 600;
  color: var(--pmp-navy);
  text-decoration: none;
  padding: 8px 1px;
  transition: color 0.2s ease;
  white-space: nowrap;
  text-transform: uppercase;
}

.pmp-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 1.5px;
  background-image: linear-gradient(
    90deg,
    var(--pmp-accent) 60%,
    transparent 0%
  );
  background-size: 6px 1.5px;
  background-repeat: repeat-x;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s ease;
}

.pmp-nav__link:hover,
.pmp-nav__link:focus-visible,
.pmp-nav__link.is-active {
  color: var(--pmp-steel);
}
.pmp-nav__link:hover::after,
.pmp-nav__link:focus-visible::after,
.pmp-nav__link.is-active::after {
  transform: scaleX(1);
}
.pmp-nav__link:focus-visible {
  outline: 2px solid var(--pmp-accent);
  outline-offset: 4px;
  border-radius: 2px;
}

/* ---- CTA ---------------------------------------------------------------*/
.pmp-cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  /* font-family: var(--pmp-font-body); */
  font-size: 13px;
  font-weight: 600;
  color: var(--pmp-white);
  background: var(--pmp-navy);
  padding: 11px 20px;
  border-radius: 3px;
  text-decoration: none;
  border: 1px solid var(--pmp-navy);
  transition:
    background 0.2s ease,
    transform 0.2s ease,
    border-color 0.2s ease;
  white-space: nowrap;
  text-transform: uppercase;
}
.pmp-cta:hover,
.pmp-cta:focus-visible {
  background: var(--pmp-accent);
  border-color: var(--pmp-accent);
  transform: translateY(-1px);
  color: var(--pmp-white);
}
.pmp-cta:focus-visible {
  outline: 2px solid var(--pmp-navy);
  outline-offset: 3px;
}
.pmp-cta__arrow {
  /* font-family: var(--pmp-font-mono); */
  font-size: 13px;
  transition: transform 0.2s ease;
}
.pmp-cta:hover .pmp-cta__arrow {
  transform: translateX(3px);
}

/* =========================================================================
   SIGNATURE ELEMENT — corner registration marks (desktop only)
   ========================================================================= */
.pmp-corner {
  position: absolute;
  width: 14px;
  height: 14px;
  pointer-events: none;
  opacity: 0.5;
}
.pmp-corner::before,
.pmp-corner::after {
  content: "";
  position: absolute;
  background: var(--pmp-accent);
}
.pmp-corner--tl {
  top: 8px;
  left: 6px;
}
.pmp-corner--tr {
  top: 8px;
  right: 6px;
}
.pmp-corner--bl {
  bottom: 8px;
  left: 6px;
}
.pmp-corner--br {
  bottom: 8px;
  right: 6px;
}

.pmp-corner--tl::before,
.pmp-corner--tr::before,
.pmp-corner--bl::before,
.pmp-corner--br::before {
  width: 100%;
  height: 1.5px;
  top: 0;
}
.pmp-corner--tl::after,
.pmp-corner--tr::after,
.pmp-corner--bl::after,
.pmp-corner--br::after {
  width: 1.5px;
  height: 100%;
  left: 0;
}
.pmp-corner--bl::before,
.pmp-corner--br::before {
  top: auto;
  bottom: 0;
}
.pmp-corner--tr::after,
.pmp-corner--br::after {
  left: auto;
  right: 0;
}

/* =========================================================================
   MOBILE TOGGLE
   ========================================================================= */
.pmp-toggle {
  display: none;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border: 1px solid var(--pmp-line-strong);
  border-radius: 3px;
  background: transparent;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  position: relative; /* NEW */
  z-index: 460; /* NEW — above .pmp-nav's 450 */
}
.pmp-toggle__box {
  width: 20px;
  height: 14px;
  position: relative;
}
.pmp-toggle__bar {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--pmp-navy);
  border-radius: 1px;
  transition:
    transform 0.25s ease,
    opacity 0.2s ease,
    top 0.25s ease;
}
.pmp-toggle__bar:nth-child(1) {
  top: 0;
}
.pmp-toggle__bar:nth-child(2) {
  top: 6px;
}
.pmp-toggle__bar:nth-child(3) {
  top: 12px;
}

.pmp-toggle.is-open .pmp-toggle__bar:nth-child(1) {
  top: 6px;
  transform: rotate(45deg);
}
.pmp-toggle.is-open .pmp-toggle__bar:nth-child(2) {
  opacity: 0;
}
.pmp-toggle.is-open .pmp-toggle__bar:nth-child(3) {
  top: 6px;
  transform: rotate(-45deg);
}

/* =========================================================================
   STICKY STATE (JS adds .is-sticky on scroll)
   ========================================================================= */
.pmp-header-root.is-sticky .pmp-topbar {
  margin-top: calc(-1 * var(--pmp-topbar-h));
}
.pmp-header-root.is-sticky .pmp-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  box-shadow: 0 8px 24px rgba(12, 44, 108, 0.12);
}
.pmp-header-root.is-sticky .pmp-header__inner {
  height: var(--pmp-header-h-sticky);
}
.pmp-header-root.is-sticky .pmp-brand__logo {
  height: 38px;
}
.pmp-header-spacer {
  display: none;
}
.pmp-header-root.is-sticky + .pmp-header-spacer {
  display: block;
  height: var(--pmp-header-h-sticky);
}

/* =========================================================================
   RESPONSIVE
   Same UI — only dimensions/layout adapt to screen size
   ========================================================================= */

/* ============================================================
   LARGE LAPTOP / SMALL DESKTOP
   1200px - 1350px
   ============================================================ */
@media (max-width: 1350px) {
  .pmp-header__inner {
    padding-left: 32px;
    padding-right: 32px;
    gap: 12px;
  }

  .pmp-topbar__inner {
    padding-left: 32px;
    padding-right: 32px;
  }

  .pmp-nav {
    gap: clamp(12px, 1.5vw, 24px);
  }

  .pmp-nav__list {
    gap: clamp(10px, 1.3vw, 16px);
  }

  .pmp-nav__link {
    font-size: 13px;
  }

  .pmp-cta {
    padding: 10px 16px;
    font-size: 12px;
  }
}

/* ============================================================
   TABLET / SMALL LAPTOP
   1100px and below
   ============================================================ */
@media (max-width: 1100px) {
  .pmp-corner {
    display: none;
  }

  .pmp-toggle {
    display: inline-flex;
  }

  .pmp-header__inner {
    height: 68px;
    padding-left: 24px;
    padding-right: 24px;
  }

  .pmp-header-root.is-sticky .pmp-header__inner {
    height: 58px;
  }

  .pmp-brand__logo {
    height: 42px;
    max-width: min(280px, 65vw);
  }

  .pmp-header-root.is-sticky .pmp-brand__logo {
    height: 34px;
  }

  .pmp-has-dropdown {
    width: 100%;
  }

  .pmp-has-dropdown > .pmp-nav__link {
    cursor: pointer;
  }

  .pmp-dropdown {
    position: static;

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;

    border: 0;
    border-radius: 0;
    box-shadow: none;

    background: #f8f9fb;

    transform: none;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    max-height: 0;
    overflow: hidden;

    transition:
      max-height 0.25s ease,
      opacity 0.2s ease,
      visibility 0.2s ease;
  }

  .pmp-has-dropdown.is-open > .pmp-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform: none;

    max-height: 500px;
  }

  /* Remove desktop arrow decoration */
  .pmp-dropdown::before {
    display: none;
  }

  .pmp-dropdown li a {
    padding: 11px 14px 11px 18px;

    font-size: 14px;
    border-bottom: 1px solid var(--pmp-line);
  }

  .pmp-dropdown li a:hover,
  .pmp-dropdown li a:focus-visible {
    padding-left: 23px;
  }

  .pmp-has-dropdown.is-open > .pmp-nav__link {
    color: var(--pmp-steel);
  }

  /* Off-canvas navigation */
  .pmp-nav {
    position: fixed;
    top: var(--pmp-topbar-h);
    right: 0;
    bottom: 0;

    width: min(340px, 82vw);

    background: var(--pmp-white);
    border-left: 1px solid var(--pmp-line);
    box-shadow: -12px 0 32px rgba(12, 44, 108, 0.14);

    transform: translateX(100%);
    transition: transform 0.3s ease;

    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;

    gap: 0;

    padding: 28px 28px;

    overflow-y: auto;
    overflow-x: hidden;

    z-index: 450;
  }

  .pmp-header-root.is-sticky .pmp-nav {
    top: 0;
  }

  .pmp-nav.is-open {
    transform: translateX(0);
  }

  .pmp-nav__list {
    flex-direction: column;
    align-items: flex-start;
    flex-wrap: nowrap;
    gap: 0;
    width: 100%;
  }

  .pmp-nav__link {
    width: 100%;
    padding: 14px 2px;
    font-size: 16px;
    border-bottom: 1px solid var(--pmp-line);
  }

  .pmp-nav__link::after {
    display: none;
  }

  .pmp-cta {
    margin-top: 18px;
    width: 100%;
    justify-content: center;
  }

  .pmp-nav__backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 37, 96, 0.4);
    z-index: 400;
  }

  .pmp-nav__backdrop.is-open {
    display: block;
  }
}

/* ============================================================
   TABLETS
   768px - 991px
   ============================================================ */
@media (max-width: 991px) {
  .pmp-topbar {
    height: 30px;
  }

  .pmp-topbar__inner {
    padding-left: 22px;
    padding-right: 22px;
  }

  .pmp-topbar__label {
    font-size: 10px;
  }

  .pmp-header__inner {
    height: 66px;
    padding-left: 22px;
    padding-right: 22px;
  }

  .pmp-brand__logo {
    height: 40px;
  }

  .pmp-toggle {
    width: 40px;
    height: 40px;
  }

  .pmp-nav {
    width: min(350px, 80vw);
  }
}

/* ============================================================
   LARGE PHONES
   576px - 767px
   ============================================================ */
@media (max-width: 767px) {
  .pmp-topbar {
    height: 30px;
  }

  .pmp-topbar__inner {
    padding-left: 18px;
    padding-right: 18px;
    gap: 8px;
  }

  .pmp-topbar__label {
    font-size: 9px;
    letter-spacing: 0.045em;
  }

  .pmp-header__inner {
    height: 62px;
    padding-left: 18px;
    padding-right: 18px;
  }

  .pmp-brand__logo {
    height: 36px;
    max-width: 72vw;
  }

  .pmp-header-root.is-sticky .pmp-header__inner {
    height: 56px;
  }

  .pmp-header-root.is-sticky .pmp-brand__logo {
    height: 31px;
  }

  .pmp-nav {
    width: min(340px, 86vw);
    padding: 24px 22px;
  }

  .pmp-nav__link {
    padding: 13px 2px;
    font-size: 15px;
  }

  .pmp-cta {
    font-size: 12px;
    padding: 11px 16px;
  }
}

/* ============================================================
   SMALL PHONES
   ≤575px
   ============================================================ */
@media (max-width: 575px) {
  .pmp-topbar {
    height: 28px;
  }

  .pmp-topbar__inner {
    padding-left: 14px;
    padding-right: 14px;
    gap: 7px;
  }

  .pmp-topbar__mark {
    width: 9px;
    height: 9px;
  }

  .pmp-topbar__label {
    font-size: 8.5px;
    letter-spacing: 0.035em;
  }

  .pmp-header__inner {
    height: 58px;
    padding-left: 14px;
    padding-right: 14px;
    gap: 10px;
  }

  .pmp-brand__logo {
    height: 33px;
    max-width: 72vw;
  }

  .pmp-toggle {
    width: 38px;
    height: 38px;
  }

  .pmp-toggle__box {
    width: 19px;
  }

  .pmp-nav {
    width: 88vw;
    max-width: 340px;
    padding: 22px 20px;
  }

  .pmp-nav__link {
    padding: 12px 2px;
    font-size: 14px;
  }

  .pmp-cta {
    margin-top: 16px;
    padding: 10px 15px;
    font-size: 11px;
  }

  .pmp-header-root.is-sticky .pmp-header__inner {
    height: 52px;
  }

  .pmp-header-root.is-sticky .pmp-brand__logo {
    height: 28px;
  }
}

/* ============================================================
   EXTRA SMALL PHONES
   ≤360px
   ============================================================ */
@media (max-width: 360px) {
  .pmp-topbar {
    height: 26px;
  }

  .pmp-topbar__inner {
    padding-left: 11px;
    padding-right: 11px;
  }

  .pmp-topbar__label {
    font-size: 7.5px;
    letter-spacing: 0.025em;
  }

  .pmp-header__inner {
    height: 54px;
    padding-left: 11px;
    padding-right: 11px;
  }

  .pmp-brand__logo {
    height: 29px;
    max-width: 70vw;
  }

  .pmp-toggle {
    width: 36px;
    height: 36px;
  }

  .pmp-nav {
    width: 91vw;
    padding: 20px 18px;
  }

  .pmp-nav__link {
    font-size: 14px;
    padding: 11px 2px;
  }

  .pmp-header-root.is-sticky .pmp-header__inner {
    height: 50px;
  }

  .pmp-header-root.is-sticky .pmp-brand__logo {
    height: 26px;
  }
}

/* ============================================================
   LANDSCAPE PHONES
   Prevent menu from becoming too tall
   ============================================================ */
@media (max-height: 500px) and (max-width: 1100px) {
  .pmp-nav {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .pmp-nav__link {
    padding-top: 9px;
    padding-bottom: 9px;
  }

  .pmp-cta {
    margin-top: 12px;
    padding-top: 9px;
    padding-bottom: 9px;
  }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .pmp-nav,
  .pmp-toggle__bar,
  .pmp-nav__link::after,
  .pmp-cta,
  .pmp-brand__logo {
    transition: none !important;
  }
}

/* ---- Desktop: open dropdowns on hover / keyboard focus ---------------- */
@media (min-width: 1101px) and (hover: hover) {
  .pmp-has-dropdown:hover > .pmp-dropdown,
  .pmp-has-dropdown:focus-within > .pmp-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }

  .pmp-has-dropdown:hover .pmp-dropdown-arrow,
  .pmp-has-dropdown:focus-within .pmp-dropdown-arrow {
    transform: rotate(180deg);
  }

  /* Invisible bridge over the 12px gap so the menu doesn't close mid-move */
  .pmp-dropdown::before {
    content: "";
    position: absolute;
    top: -14px;
    left: 0;
    right: 0;
    height: 14px;
  }
}

/* ---- Brand name: sticky + responsive sizes ----------------------------- */
.pmp-header-root.is-sticky .pmp-brand__logo {
  height: 32px;
}
.pmp-header-root.is-sticky .pmp-brand__name {
  font-size: 8px;
}

@media (max-width: 1100px) {
  .pmp-brand__logo {
    height: 36px;
  }
  .pmp-brand__name {
    font-size: 9px;
  }
  .pmp-header-root.is-sticky .pmp-brand__logo {
    height: 28px;
  }
}

@media (max-width: 575px) {
  .pmp-brand__logo {
    height: 30px;
  }
  .pmp-brand__name {
    font-size: 7.5px;
    letter-spacing: 0.03em;
  }
  .pmp-header-root.is-sticky .pmp-brand__logo {
    height: 24px;
  }
  .pmp-header-root.is-sticky .pmp-brand__name {
    font-size: 7px;
  }
}

@media (max-width: 360px) {
  .pmp-brand__name {
    font-size: 6.5px;
    letter-spacing: 0.02em;
  }
}

/* =========================================================================
   SERVICES → OnSite Services side menu
   ========================================================================= */
.pmp-dropdown__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 18px;
  color: var(--pmp-navy);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  cursor: default;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.pmp-dropdown__caret {
  font-size: 18px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.pmp-has-sub {
  position: relative;
}

.pmp-submenu {
  position: absolute;
  top: -8px;
  left: calc(100% + 6px);
  min-width: 320px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: var(--pmp-white);
  border: 1px solid var(--pmp-line);
  border-radius: 10px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(6px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s ease;
}

/* invisible bridge across the 6px gap */
.pmp-submenu::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -10px;
  width: 10px;
}

.pmp-submenu li a {
  font-size: 13.5px;
}

@media (min-width: 1101px) {
  .pmp-has-sub:hover > .pmp-dropdown__label,
  .pmp-has-sub:focus-within > .pmp-dropdown__label {
    background: #f5f8f6;
    color: var(--pmp-steel);
  }

  .pmp-has-sub:hover > .pmp-submenu,
  .pmp-has-sub:focus-within > .pmp-submenu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
  }
}

/* Mobile menu: show the OnSite list indented below its label */
@media (max-width: 1100px) {
  .pmp-has-dropdown.is-open > .pmp-dropdown {
    max-height: 1000px;
  }

  .pmp-dropdown__label {
    padding: 11px 14px 11px 18px;
    border-bottom: 1px solid var(--pmp-line);
  }

  .pmp-dropdown__caret {
    transform: rotate(90deg);
  }

  .pmp-submenu {
    position: static;
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    opacity: 1;
    visibility: inherit;
    pointer-events: auto;
    transform: none;
  }

  .pmp-submenu::before {
    display: none;
  }

  .pmp-submenu li a {
    padding-left: 32px;
    font-size: 13px;
  }

  .pmp-submenu li a:hover,
  .pmp-submenu li a:focus-visible {
    padding-left: 36px;
  }
}