/*
 * Shared site header (desktop + mobile).
 * Desktop values are in the 1920px design-sheet coordinate space, so the header
 * scales proportionally with the sheet zoom and keeps the reference proportions
 * at every desktop width. The header container is the direct parent of the
 * [data-name="asdwe 1"] logo block on every page.
 */

/* Wrapper slot used by some pages: normalise it to a full-width origin. */
.design-sheet .design-slot:has(> div > [data-name="asdwe 1"]) {
  left: 0 !important;
  top: 0 !important;
  width: 1920px !important;
  height: 0 !important;
  z-index: 100;
}

/* Header container: a zero-size anchor at the horizontal centre, 39px from the top. */
.design-sheet div:has(> [data-name="asdwe 1"]) {
  position: absolute !important;
  left: 50% !important;
  top: 39px !important;
  width: 0 !important;
  height: 0 !important;
  translate: none !important;
  display: block !important;
  gap: 0 !important;
  isolation: isolate;
  z-index: 100;
}

/* Pages whose header sits inside a hero frame that is offset by a few px: re-centre on the sheet. */
.design-sheet[data-design-page="750:459"] div:has(> [data-name="asdwe 1"]) { left: calc(50% - 1px) !important; top: 39.14px !important; }
.design-sheet[data-design-page="750:1553"] div:has(> [data-name="asdwe 1"]) { left: calc(50% - 3px) !important; top: 39.375px !important; }

/* Subtle bright backdrop behind the wordmark and menu bar (homepage treatment). */
.design-sheet div:has(> [data-name="asdwe 1"])::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -800px;
  top: -39px;
  width: 1560px;
  height: 330px;
  pointer-events: none;
  background: radial-gradient(ellipse 48% 64% at 50% 24%,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, .95) 30%,
    rgba(255, 255, 255, .78) 48%,
    rgba(255, 255, 255, .52) 62%,
    rgba(255, 255, 255, .28) 75%,
    rgba(255, 255, 255, .11) 87%,
    rgba(255, 255, 255, .03) 95%,
    rgba(255, 255, 255, 0) 100%);
}

/* Homepage hero badge: shift down 14px so it clears the taller menu bar (position only). */
.design-sheet[data-design-page="675:5"] [data-node-id="675:10"] { top: 226px; }

/* Italic ProTech wordmark set slightly left of centre, with red rules either side. */
.design-sheet div:has(> [data-name="asdwe 1"]) > [data-name="asdwe 1"] {
  position: absolute;
  left: -290px;
  top: -28px;
  width: 553px;
  height: 86px;
}
.design-sheet [data-name="asdwe 1"] > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
}
.design-sheet div:has(> [data-name="asdwe 1"]) > [data-name="asdwe 1"]::before,
.design-sheet div:has(> [data-name="asdwe 1"]) > [data-name="asdwe 1"]::after {
  content: "";
  position: absolute;
  top: 47px;
  width: 168px;
  height: 7.5px;
  background: #e60812;
  pointer-events: none;
}
.design-sheet div:has(> [data-name="asdwe 1"]) > [data-name="asdwe 1"]::before { right: calc(100% + 34px); }
.design-sheet div:has(> [data-name="asdwe 1"]) > [data-name="asdwe 1"]::after { left: calc(100% + 30px); }

/* Deep navy pill menu with a white outline, leaving room for the stacked action pills. */
.design-sheet div:has(> [data-name="asdwe 1"]) > :nth-child(2) {
  position: absolute !important;
  left: -881px;
  top: 83px;
  width: 1403px;
  height: 62px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  margin: 0;
  padding: 0;
  border: 2.5px solid #fff;
  border-radius: 999px;
  background: #00153d;
  box-shadow: 0 6px 18px rgba(0, 10, 35, .28);
  cursor: default;
}
.design-sheet div:has(> [data-name="asdwe 1"]) > :nth-child(2) > * {
  flex: 0 0 auto;
  justify-content: center;
  height: 100%;
  position: relative;
  gap: 12px;
  cursor: pointer;
}
/* Item widths follow the reference divider positions. */
.design-sheet div:has(> [data-name="asdwe 1"]) > :nth-child(2) > :nth-child(1) { width: 12.8%; }
.design-sheet div:has(> [data-name="asdwe 1"]) > :nth-child(2) > :nth-child(2) { width: 14.5%; }
.design-sheet div:has(> [data-name="asdwe 1"]) > :nth-child(2) > :nth-child(3) { width: 22.8%; }
.design-sheet div:has(> [data-name="asdwe 1"]) > :nth-child(2) > :nth-child(4) { width: 20.2%; }
.design-sheet div:has(> [data-name="asdwe 1"]) > :nth-child(2) > :nth-child(5) { width: 17.7%; }
.design-sheet div:has(> [data-name="asdwe 1"]) > :nth-child(2) > :nth-child(6) { width: 12%; }
/* Thin white vertical separators between menu items. */
.design-sheet div:has(> [data-name="asdwe 1"]) > :nth-child(2) > * + *::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 2px;
  height: 29px;
  translate: -1px -50%;
  background: rgba(255, 255, 255, .7);
  pointer-events: none;
}
.design-sheet div:has(> [data-name="asdwe 1"]) > :nth-child(2) :is(.fdae194969fb6, .ffc9aaa3ed7ad) {
  font-family: "Inter", Arial, sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0;
  color: #fff;
  text-transform: uppercase;
}
.design-sheet div:has(> [data-name="asdwe 1"]) > :nth-child(2) > :hover :is(.fdae194969fb6, .ffc9aaa3ed7ad),
.design-sheet div:has(> [data-name="asdwe 1"]) > :nth-child(2) > [aria-expanded="true"] :is(.fdae194969fb6, .ffc9aaa3ed7ad) {
  color: #ffd2d2;
}
.design-sheet div:has(> [data-name="asdwe 1"]) > :nth-child(2) :focus-visible {
  outline: 3px solid #ffd84d;
  outline-offset: 2px;
  border-radius: 6px;
}

/* Stacked action pills: red Schedule Service over a slightly narrower navy phone pill. */
.design-sheet div:has(> [data-name="asdwe 1"]) > :nth-child(3) {
  position: absolute !important;
  left: 509px;
  top: -12px;
  width: 423px;
  height: 160px;
  display: block !important;
}
.design-sheet div:has(> [data-name="asdwe 1"]) > :nth-child(3) > a {
  position: absolute;
  left: 0;
  top: 0;
  width: 420px;
  height: 71px;
  margin: 0 !important;
  display: block;
  border-radius: 999px;
  background: linear-gradient(180deg, #f2171e 0%, #c9050c 100%);
  box-shadow: 0 6px 16px rgba(80, 0, 0, .3);
}
.design-sheet div:has(> [data-name="asdwe 1"]) > :nth-child(3) > a:hover { filter: brightness(1.08); }
.design-sheet div:has(> [data-name="asdwe 1"]) > :nth-child(3) > a > [data-name="Button"] {
  width: 100%;
  height: 100%;
  min-height: 0;
  box-sizing: border-box;
  padding: 0;
  gap: 18px;
  border: 3px solid #fff;
  border-radius: 999px;
}
.design-sheet div:has(> [data-name="asdwe 1"]) > :nth-child(3) > a [data-name="Symbol"] { width: 35px; height: 39px; }
.design-sheet div:has(> [data-name="asdwe 1"]) > :nth-child(3) > a p {
  font-family: "Inter", Arial, sans-serif;
  font-weight: 800;
  font-size: 31px;
  line-height: 1;
  letter-spacing: 0;
  color: #fff;
}
.design-sheet div:has(> [data-name="asdwe 1"]) > :nth-child(3) > div {
  position: absolute;
  left: 35px;
  top: 90px;
  width: 389px;
  height: 69px;
  margin: 0 !important;
  box-sizing: border-box;
  gap: 18px;
  border: 3px solid #fff;
  border-radius: 999px;
  background: #051739;
  box-shadow: 0 6px 16px rgba(0, 10, 35, .32);
}
.design-sheet div:has(> [data-name="asdwe 1"]) > :nth-child(3) > div > div:first-child {
  width: 36px;
  height: 36px;
  filter: brightness(0) invert(1);
}
.design-sheet div:has(> [data-name="asdwe 1"]) > :nth-child(3) > div p {
  font-family: "Inter", Arial, sans-serif;
  font-weight: 800;
  font-size: 34px;
  letter-spacing: .1px;
  color: #fff;
}
.design-sheet div:has(> [data-name="asdwe 1"]) > :nth-child(3) :focus-visible {
  outline: 3px solid #ffd84d;
  outline-offset: 3px;
}

/* Text pages render the header in a short strip: let the menu bar extend below it. */
.document-header.design-shell { overflow: visible; }

/* Narrow desktop/tablet: the sheet scales down, so enlarge menu text slightly for legibility. */
@media (min-width: 761px) and (max-width: 1100px) {
  .design-sheet div:has(> [data-name="asdwe 1"]) > :nth-child(2) :is(.fdae194969fb6, .ffc9aaa3ed7ad) { font-size: 24px; letter-spacing: -.2px; }
  .design-sheet div:has(> [data-name="asdwe 1"]) > :nth-child(2) > * { gap: 9px; }
}

/* ---------- Mobile header (≤760px) ---------- */
@media (max-width: 760px) {
  .mobile-navigation {
    background:
      radial-gradient(ellipse 75% 70% at 50% 28%, #fff 0%, #f5f7fb 55%, #e7ecf4 100%);
    color: #00153d;
    padding: 14px 14px 16px;
    box-shadow: 0 6px 18px rgba(0, 10, 35, .18);
    border-bottom: 3px solid #e60812;
  }
  .mobile-navigation > div {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 10px !important;
  }
  .mobile-navigation .mobile-brand {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
  }
  .mobile-navigation .mobile-brand::before,
  .mobile-navigation .mobile-brand::after {
    content: "";
    flex: 0 1 46px;
    height: 4px;
    background: #e60812;
  }
  .mobile-navigation .mobile-brand img { width: min(200px, 54vw); height: auto; }
  .mobile-navigation .mobile-schedule,
  .mobile-navigation .mobile-call {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 42px;
    padding: 0 10px;
    border-radius: 999px;
    font: 800 clamp(12px, 3.6vw, 15px)/1 Inter, Arial, sans-serif;
    white-space: nowrap;
  }
  .mobile-navigation .mobile-schedule {
    background: #db060b;
    color: #fff;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(80, 0, 0, .25);
  }
  .mobile-navigation .mobile-call {
    background: #fff;
    color: #0a1b40;
    border: 2.5px solid #0a1b40;
  }
  .mobile-navigation .mobile-schedule img,
  .mobile-navigation .mobile-call img { width: 14px; height: 15px; flex: none; }
  .mobile-navigation .mobile-call img { filter: brightness(.42) saturate(1.3); }
  .mobile-navigation > details {
    margin: 12px 0 0;
    background: #00153d;
    color: #fff;
    border: 1.5px solid #fff;
    border-radius: 24px;
    box-shadow: 0 4px 14px rgba(0, 10, 35, .25);
    padding: 0 18px;
  }
  .mobile-navigation > details > summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0;
    list-style: none;
    font: 800 15px/1 Inter, Arial, sans-serif;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #fff;
    background: none;
  }
  .mobile-navigation > details > summary::-webkit-details-marker { display: none; }
  .mobile-navigation > details > summary::after {
    content: "";
    width: 8px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: translateY(-2px) rotate(45deg);
    transition: transform .2s;
  }
  .mobile-navigation > details[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
  .mobile-navigation > details > nav { padding-bottom: 12px; }
  .mobile-navigation > details > nav details {
    margin: 0;
    padding: 0;
    background: none;
    color: #fff;
    border: 0;
    border-top: 1px solid #ffffff30;
    border-radius: 0;
    text-align: left;
  }
  .mobile-navigation > details > nav,
  .mobile-navigation > details > nav a,
  .mobile-navigation > details > nav summary {
    color: #fff;
    font-family: Inter, Arial, sans-serif;
    font-weight: 800;
    text-transform: uppercase;
  }
  .mobile-navigation > details > nav > a,
  .mobile-navigation > details > nav > details > summary { font-size: 14px; letter-spacing: .03em; }
}
