.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

/* Disable backdrop-filter at/below the mobile-menu breakpoint (1024px).
   backdrop-filter creates a containing block for fixed-position descendants,
   which would trap the fixed mobile panel inside the header and collapse its
   height. It must be off wherever the mobile overlay can appear. Repainting a
   blurred sticky header on every scroll is also expensive on mobile GPUs. */
@media (max-width: 1024px) {
  .site-header {
    background: #ffffff;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

.site-header__top-gradient {
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #ffb6c1 0%, #d5dbae 25%, #98fb98 50%, #a3eac2 75%, #add8e6 100%);
}

.site-header__shell {
  width: min(1290px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 1.1rem;
}

.site-header__logo-link {
  display: inline-flex;
  align-items: center;
  width: 178px;
  min-height: 70px;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}

.site-header__logo {
  width: 70px;
  height: 70px;
  object-fit: contain;
  border-radius: 0;
}

.site-header__brand-text {
  display: grid;
  align-content: center;
  gap: 1px;
  max-width: 98px;
}

.site-header__brand-title {
  display: grid;
  grid-auto-rows: min-content;
  color: #3f607c;
  font-size: 17px;
  line-height: 0.9;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
}

.site-header__brand-title-line {
  display: block;
}

.site-header__brand-subtitle {
  margin-top: 1px;
  color: #667085;
  font-size: 9px;
  line-height: 1.1;
  font-weight: 500;
  white-space: nowrap;
}

.site-header__mobile-brand {
  display: none;
  color: #0a0a0a;
  font-size: 24px;
  line-height: 32px;
  font-weight: 400;
  text-decoration: none;
}

.site-header__primary-nav {
  margin-inline: auto;
}

.site-header__nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 37px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-header__nav-list > li {
  position: relative;
}

.site-header__nav-list .menu-item-has-children > a {
  position: relative;
  padding-right: 16px;
}

.site-header__nav-list > .menu-item-has-children > a::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-60%) rotate(45deg);
  opacity: 0.8;
}

.site-header__nav-list .sub-menu .menu-item-has-children > a::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-top: 1.5px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
  opacity: 0.75;
}

.site-header__nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  color: #4a5565;
  font-size: 16px;
  line-height: 1.1;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.site-header__nav-list > li > a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  color: #4a5565;
  font-size: 16px;
  line-height: 1.1;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.site-header__nav-link.is-active {
  color: #4a5565;
}

.site-header__nav-list > li.current-menu-item > a,
.site-header__nav-list > li.current-menu-ancestor > a,
.site-header__nav-list > li.current_page_item > a,
.site-header__nav-list > li.current_page_ancestor > a {
  color: #4a5565;
}

.site-header__nav-list > li > a:hover,
.site-header__nav-list > li > a:focus-visible {
  color: #101828;
}

.site-header__nav-list .sub-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 230px;
  margin: 0;
  padding: 10px;
  list-style: none;
  border-radius: 16px;
  border: 1px solid rgba(209, 213, 220, 0.85);
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 18px 38px rgba(16, 24, 40, 0.16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px) scale(0.985);
  transform-origin: top left;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 40;
}

.site-header__nav-list .sub-menu li {
  position: relative;
}

.site-header__nav-list .sub-menu .sub-menu {
  top: -8px;
  left: 100%;
  margin-left: 8px;
  transform: translateX(6px);
}

.site-header__nav-list > li:hover > .sub-menu,
.site-header__nav-list > li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.site-header__nav-list .sub-menu li:hover > .sub-menu,
.site-header__nav-list .sub-menu li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0) scale(1);
}

.site-header__nav-list .sub-menu a {
  position: relative;
  display: block;
  padding: 10px 28px 10px 12px;
  color: #4a5565;
  font-size: 14px;
  line-height: 1.35;
  text-decoration: none;
  border-radius: 10px;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.site-header__nav-list .sub-menu a:hover,
.site-header__nav-list .sub-menu a:focus-visible {
  background: #f3f8ff;
  color: #101828;
  transform: translateX(1px);
}

.site-header__nav-list .sub-menu .current-menu-item > a,
.site-header__nav-list .sub-menu .current-page-item > a {
  background: #eff6ff;
  color: #101828;
}

.site-header__phone-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 8px 40px;
  border-radius: 999px;
  background: #ffb6c1;
  color: #0f0f0f;
  font-size: 18px;
  line-height: 1.1;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.1);
}

.site-header__menu-button {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: #0a0a0a;
  cursor: pointer;
}

.site-header__menu-icon,
.site-header__menu-icon::before,
.site-header__menu-icon::after {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
  content: "";
}

.site-header__menu-icon {
  position: relative;
}

.site-header__menu-icon::before {
  position: absolute;
  top: -8px;
  left: 0;
}

.site-header__menu-icon::after {
  position: absolute;
  top: 8px;
  left: 0;
}

.site-header.is-menu-open .site-header__menu-icon {
  background: transparent;
}

.site-header.is-menu-open .site-header__menu-icon::before {
  transform: translateY(8px) rotate(45deg);
}

.site-header.is-menu-open .site-header__menu-icon::after {
  transform: translateY(-8px) rotate(-45deg);
}

.site-header__mobile-panel {
  position: fixed;
  inset: 0;
  z-index: 58;
  display: none;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  background: #ffffff;
  /* Header (z-index 60) paints over the top of this overlay; padding-top
     clears it. Using a full-viewport overlay (not a measured `top`) means
     the panel height can never collapse during a resize. */
  padding: calc(var(--mobile-menu-top, 80px) + 0.25rem) 1.5rem max(2.5rem, env(safe-area-inset-bottom));
  box-sizing: border-box;
}

.site-header__mobile-panel-top {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 1rem;
}

.site-header__mobile-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 182, 193, 0.42);
  border-radius: 50%;
  background: linear-gradient(180deg, #fff8fa 0%, #fff1f4 100%);
  color: #4a5565;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.site-header__mobile-close:hover,
.site-header__mobile-close:focus-visible {
  color: #101828;
  border-color: rgba(255, 159, 179, 0.58);
  background: linear-gradient(180deg, #fff6f8 0%, #ffe8ee 100%);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
  transform: translateY(-1px);
}

.site-header__mobile-close svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.site-header__mobile-close:focus-visible {
  outline: 2px solid rgba(255, 159, 179, 0.48);
  outline-offset: 2px;
}

body.site-menu-open {
  overflow: hidden;
}

.site-header__mobile-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-header__mobile-link {
  display: block;
  padding: 0.875rem 0;
  color: #1a1a1a;
  font-size: 1.0625rem;
  line-height: 1.3;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid #f3f4f6;
}

/* Top-level nav items */
.site-header__mobile-list > li > a {
  display: block;
  padding: 0.875rem 0;
  color: #1a1a1a;
  font-size: 1.0625rem;
  line-height: 1.3;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid #f3f4f6;
}

/* 2nd-level items — teal, indented, left accent border */
.site-header__mobile-list .sub-menu {
  margin: 0 0 0.25rem 0;
  padding: 0.125rem 0 0.25rem 1rem;
  list-style: none;
  border-left: 2px solid #a8d8e2;
  background: #f0f9fb;
  border-radius: 0 6px 6px 0;
  /* Collapsed by default — JS adds .is-open to the parent <li> */
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.site-header__mobile-list li.is-open > .sub-menu {
  max-height: 800px;
}

.site-header__mobile-list .sub-menu a {
  display: block;
  padding: 0.5rem 0;
  color: #007893;
  font-size: 0.9375rem;
  line-height: 1.35;
  font-weight: 500;
  text-decoration: none;
  border-bottom: none;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.site-header__mobile-list .sub-menu a:hover,
.site-header__mobile-list .sub-menu a:focus-visible {
  color: #005a6e;
  text-decoration: underline;
  text-decoration-color: rgba(0, 90, 110, 0.4);
  text-underline-offset: 2px;
}

/* 3rd-level items — sage green, deeper indent, matching border */
.site-header__mobile-list .sub-menu .sub-menu {
  margin: 0 0 0.125rem 0;
  padding: 0.125rem 0 0.125rem 0.875rem;
  border-left: 2px solid #b3d9bc;
  background: #f0f7f2;
  border-radius: 0 4px 4px 0;
}

.site-header__mobile-list .sub-menu .sub-menu a {
  padding: 0.35rem 0;
  font-size: 0.875rem;
  color: #3d7a52;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.site-header__mobile-list .sub-menu .sub-menu a:hover,
.site-header__mobile-list .sub-menu .sub-menu a:focus-visible {
  color: #2a5c3b;
  text-decoration: underline;
  text-decoration-color: rgba(42, 92, 59, 0.4);
  text-underline-offset: 2px;
}

.site-header__mobile-list .menu-item-has-children > a {
  font-weight: 600;
}

/* Row wrapper injected by JS around parent link + toggle button */
.mobile-item-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 44px; /* generous tap target */
  cursor: pointer; /* tapping anywhere on the row toggles the sub-menu */
}

.mobile-item-row > a {
  /* Only the text itself is the link — do NOT stretch to fill the row */
  flex: 0 0 auto;
  cursor: pointer;
}

.mobile-toggle {
  flex-shrink: 0;
  margin-left: auto; /* push chevron to far right regardless of link text length */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.15s ease;
}

.mobile-toggle:hover {
  opacity: 1;
}

.mobile-toggle svg {
  transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.mobile-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

/* Active / current page indicators */
.site-header__mobile-list > li.current-menu-item > .mobile-item-row > a,
.site-header__mobile-list > li.current_page_item > .mobile-item-row > a,
.site-header__mobile-list > li.current-menu-item > a,
.site-header__mobile-list > li.current_page_item > a {
  color: #007893;
}

.site-header__mobile-list .sub-menu .current-menu-item > a,
.site-header__mobile-list .sub-menu .current-menu-item > .mobile-item-row > a,
.site-header__mobile-list .sub-menu .current_page_item > a {
  color: #007893;
  font-weight: 600;
}

/* Ancestor (open parent) gets a subtle tint */
.site-header__mobile-list > li.current-menu-ancestor > .mobile-item-row > a,
.site-header__mobile-list > li.current_page_ancestor > .mobile-item-row > a,
.site-header__mobile-list > li.current-menu-ancestor > a,
.site-header__mobile-list > li.current_page_ancestor > a {
  color: #007893;
}

.site-header__mobile-list .current-menu-item > a,
.site-header__mobile-list .current-menu-ancestor > a,
.site-header__mobile-list .current_page_item > a,
.site-header__mobile-list .current_page_ancestor > a {
  color: #4a5565;
}

.site-header__mobile-link.is-active {
  color: #4a5565;
}

.site-header__mobile-list a:hover,
.site-header__mobile-list a:focus-visible {
  color: #101828;
}

.site-header__mobile-item--phone {
  margin-top: 0.45rem;
}

.site-header__phone-link--mobile {
  min-width: 0;
  width: 100%;
  max-width: 18rem;
  min-height: 40px;
  font-size: 0.95rem;
  padding: 0.65rem 1rem;
  white-space: normal;
  text-align: center;
}

@media (max-width: 1240px) {
  .site-header__shell {
    width: calc(100% - 48px);
  }

  /* Tighten the desktop nav so all 7 items + CTA still fit down to 1024px
     before collapsing to the mobile menu. */
  .site-header__nav-list {
    gap: 14px;
  }

  .site-header__nav-link,
  .site-header__nav-list > li > a {
    font-size: 14px;
  }

  .site-header__phone-link {
    padding: 8px 18px;
    font-size: 15px;
  }
}

@media (max-width: 1024px) {
  .site-header__shell {
    width: calc(100% - 48px);
  }

  .site-header__bar {
    min-height: 80px;
  }

  .site-header {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 1px 2px -1px rgba(0, 0, 0, 0.1), 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  }

  .site-header__primary-nav,
  .site-header__phone-link {
    display: none;
  }

  .site-header__logo-link,
  .site-header__menu-button {
    display: inline-flex;
  }

  .site-header__mobile-brand {
    display: none;
  }

  .site-header__logo-link {
    width: auto;
    min-height: 56px;
    gap: 8px;
  }

  .site-header__logo {
    width: 56px;
    height: 56px;
  }

  .site-header__brand-title {
    font-size: 15px;
    line-height: 0.95;
  }

  .site-header__brand-subtitle {
    font-size: 8px;
  }

  .site-header__mobile-panel {
    display: none;
  }

  .site-header.is-menu-open .site-header__mobile-panel {
    display: block;
  }
}

@media (max-width: 560px) {
  .site-header__bar {
    min-height: 79px;
  }

  .site-header__mobile-brand {
    font-size: clamp(2rem, 7vw, 2.25rem);
    line-height: 1.15;
  }
}
