.picl-global-top-strip,
.picl-global-header {
  --picl-header-navy: #111443;
  --picl-header-blue: #27346d;
  --picl-header-red: #e31b2f;
  --picl-header-red-dark: #b51223;
  --picl-header-line: #e2e8f0;
  --picl-header-soft: #f6f8fc;
  --picl-header-white: #fff;
  font-family: Inter, Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

.picl-global-top-strip *,
.picl-global-header * {
  box-sizing: border-box;
}

.picl-global-top-strip {
  position: relative;
  z-index: 101;
  color: rgba(255, 255, 255, .9);
  background: var(--picl-header-navy);
  font-size: 13px;
  font-weight: 700;
}

.picl-header-container {
  --picl-header-gutter: clamp(1.25rem, 4vw, 2.5rem);
  width: min(1280px, calc(100% - (var(--picl-header-gutter) * 2)));
  margin-inline: auto;
}

.picl-global-top-strip .picl-header-container {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.picl-global-top-strip span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.picl-global-top-strip svg {
  width: 15px;
  height: 15px;
}

.picl-global-header {
  position: sticky;
  top: 0;
  z-index: 100;
  margin: 0;
  padding: .85rem 0;
  background: transparent;
  border: 0;
  transition: padding .25s ease, background-color .25s ease, box-shadow .25s ease;
}

body:has(> main > .hero) .picl-global-header,
body:has(> main > .page-hero) .picl-global-header {
  margin-bottom: calc(-64px - 1.7rem);
}

.picl-global-header.is-scrolled {
  padding: .5rem 0;
  background: transparent;
  box-shadow: none;
}

.picl-global-header .nav {
  position: relative;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  padding: .55rem .75rem .55rem .55rem;
  background: rgba(255, 255, 255, .86);
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 1.35rem;
  box-shadow: 0 24px 70px rgba(11, 20, 32, .16), inset 0 1px 0 rgba(255, 255, 255, .82);
  backdrop-filter: blur(18px);
  transition: min-height .25s ease, padding .25s ease, box-shadow .25s ease;
}

.picl-global-header.is-scrolled .nav {
  min-height: 58px;
  padding-top: .4rem;
  padding-bottom: .4rem;
  box-shadow: 0 12px 36px rgba(11, 20, 32, .13), inset 0 1px 0 rgba(255, 255, 255, .9);
}

.picl-global-header a {
  text-decoration: none;
}

.picl-global-header .brand {
  width: auto;
  min-width: 192px;
  display: inline-flex;
  align-items: center;
  padding: 6px 8px;
  margin: 0;
  background: var(--picl-header-navy);
  border: 0;
  border-radius: 5px;
  transition: min-width .25s ease, padding .25s ease;
}

.picl-global-header .brand-logo {
  display: block;
  width: 178px;
  max-width: none;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 22px rgba(17, 20, 67, .12));
  transition: width .25s ease;
}

.picl-global-header.is-scrolled .brand {
  min-width: 176px;
}

.picl-global-header.is-scrolled .brand-logo {
  width: 162px;
}

.picl-global-header .nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1;
  margin: 0;
}

.picl-global-header .nav-links > a,
.picl-global-header .nav-menu-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 10px 13px;
  color: var(--picl-header-blue);
  background: transparent;
  border: 0;
  border-radius: 5px;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}

.picl-global-header .nav-links > a:hover,
.picl-global-header .nav-links > a:focus-visible,
.picl-global-header .nav-links > a.is-active,
.picl-global-header .nav-menu-button:hover,
.picl-global-header .nav-menu-button:focus-visible,
.picl-global-header .nav-menu-button.is-active,
.picl-global-header .nav-menu-button[aria-expanded="true"] {
  color: var(--picl-header-red);
  background: #fff1f3;
}

.picl-global-header .nav-menu {
  position: relative;
  display: inline-flex;
}

.picl-global-header .nav-menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 110;
  width: min(290px, calc(100vw - 32px));
  display: none;
  padding: 10px;
  background: var(--picl-header-white);
  border: 1px solid var(--picl-header-line);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(11, 20, 32, .2);
}

.picl-global-header .nav-menu-panel.is-open {
  display: grid;
  gap: 8px;
}

.picl-global-header .nav-menu-panel a {
  display: grid;
  gap: 3px;
  padding: 10px;
  color: var(--picl-header-navy);
  background: var(--picl-header-soft);
  border-radius: 5px;
  font-size: 14px;
  font-weight: 800;
}

.picl-global-header .nav-menu-panel a:hover,
.picl-global-header .nav-menu-panel a:focus-visible {
  color: var(--picl-header-red);
  background: #fff1f3;
}

.picl-global-header .nav-menu-panel span {
  color: #59647a;
  font-size: 12px;
  font-weight: 700;
}

.picl-global-header .nav-menu-panel strong {
  color: inherit;
  font: inherit;
}

.picl-global-header .nav-menu-panel-wide {
  width: min(340px, calc(100vw - 32px));
}

.picl-global-header .nav-menu-panel-compact {
  width: min(220px, calc(100vw - 32px));
}

.picl-global-header .nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.picl-global-header .phone-link,
.picl-global-header .menu-button {
  color: var(--picl-header-navy);
  background: var(--picl-header-soft);
  border: 1px solid var(--picl-header-line);
}

.picl-global-header .phone-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.picl-global-header .phone-link svg {
  width: 16px;
  height: 16px;
  color: var(--picl-header-red);
}

.picl-global-header .picl-nav-quote {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  color: var(--picl-header-white);
  background: var(--picl-header-red);
  border: 1px solid var(--picl-header-red);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28);
  transition: background .2s ease, border-color .2s ease, transform .16s ease;
}

.picl-global-header .picl-nav-quote:hover,
.picl-global-header .picl-nav-quote:focus-visible {
  color: var(--picl-header-white);
  background: var(--picl-header-red-dark);
  border-color: var(--picl-header-red-dark);
}

.picl-global-header .picl-nav-quote:active {
  transform: translateY(1px) scale(.985);
}

.picl-global-header .menu-button {
  width: 42px;
  height: 42px;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 8px;
  cursor: pointer;
}

.picl-global-header .menu-button svg {
  width: 22px;
  height: 22px;
}

.picl-global-header .menu-icon-close,
.picl-global-header .nav.is-open .menu-icon-open {
  display: none;
}

.picl-global-header .nav.is-open .menu-icon-close {
  display: block;
}

.picl-global-header .scroll-progress {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

.picl-global-header .scroll-progress::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--picl-header-red);
  transform: scaleX(var(--picl-scroll-progress, 0));
  transform-origin: left center;
  transition: transform .1s linear;
}

.picl-global-header.is-scrolled .scroll-progress {
  opacity: 1;
}

.picl-global-header :focus-visible {
  outline: 2px solid var(--picl-header-blue);
  outline-offset: 2px;
}

@media (max-width: 1040px) {
  .picl-global-header .nav-links,
  .picl-global-header .phone-link {
    display: none;
  }

  .picl-global-header .menu-button {
    display: inline-flex;
  }

  .picl-global-header .nav.is-open .nav-links {
    position: absolute;
    right: 0;
    top: calc(100% + .75rem);
    z-index: 110;
    width: min(23rem, calc(100vw - 40px));
    max-height: calc(100svh - 8rem);
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 10px;
    overflow-y: auto;
    background: var(--picl-header-white);
    border: 1px solid var(--picl-header-line);
    border-radius: 8px;
    box-shadow: 0 24px 60px rgba(11, 20, 32, .2);
  }

  .picl-global-header .nav.is-open .nav-links > a,
  .picl-global-header .nav.is-open .nav-menu-button {
    width: 100%;
    min-height: 44px;
    justify-content: flex-start;
    padding: .7rem .8rem;
    text-align: left;
  }

  .picl-global-header .nav.is-open .nav-menu {
    display: grid;
    width: 100%;
  }

  .picl-global-header .nav.is-open .nav-menu-panel {
    position: static;
    width: 100%;
    margin-top: 4px;
  }

}

@media (max-width: 720px) {
  .picl-header-container {
    --picl-header-gutter: 1.25rem;
  }

  body:has(> main > .page-hero) main > .page-hero > .container {
    padding-top: 6rem;
  }

  body:has(> main > .hero) main > .hero > .container {
    padding-top: 4.5rem;
  }

  .picl-global-top-strip .picl-header-container {
    justify-content: center;
  }

  .picl-global-top-strip span:nth-child(2) {
    display: none;
  }

  .picl-global-header .brand {
    min-width: 0;
  }

  .picl-global-header.is-scrolled .brand {
    min-width: 0;
  }

  .picl-global-header .brand-logo,
  .picl-global-header.is-scrolled .brand-logo {
    width: 150px;
  }

  .picl-global-header .nav-actions {
    gap: .5rem;
  }

  .picl-global-header .picl-nav-quote {
    min-height: 40px;
    padding-inline: .85rem;
    font-size: 13px;
  }
}

@media (max-width: 430px) {
  .picl-global-header .nav {
    gap: .5rem;
    padding-left: .45rem;
    padding-right: .45rem;
  }

  .picl-global-header .picl-nav-quote {
    padding-inline: .7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .picl-global-header,
  .picl-global-header *,
  .picl-global-header *::before,
  .picl-global-header *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
