/* STRH 2.0 header identity, v1.9.1
   The compact scrolled heights are unchanged from v1.4 (70px desktop,
   62px mobile). The top-of-page identity is larger, and compresses visibly on scroll. The header builder's
   menu/search/button order and positions are not changed. */
.header .strh-header-identity,
#masthead .strh-header-identity {
  display: flex;
  flex-flow: column nowrap;
  align-items: flex-start;
  justify-content: center;
  gap: 9px;
  width: max-content;
  max-width: 100%;
  min-width: 0;
  padding: 5px 0;
  font-family: Outfit, system-ui, sans-serif;
  text-decoration: none !important;
  background: transparent;
  border: 0;
  box-shadow: none;
  opacity: 1;
  visibility: visible;
  transition: opacity 180ms ease, visibility 270ms ease;
}
.header .strh-header-identity:hover,
.header .strh-header-identity:focus-visible,
#masthead .strh-header-identity:hover { text-decoration: none !important; }
.header .strh-header-identity:focus-visible,
#masthead .strh-header-identity:focus-visible {
  outline: 2px solid #26663c;
  outline-offset: 3px;
  border-radius: 4px;
}
.header .strh-header-identity__lead,
#masthead .strh-header-identity__lead {
  display: block;
  color: #162b1f !important;
  font-size: 29px;
  line-height: 1.13;
  font-weight: 800;
  letter-spacing: -.03em;
  white-space: nowrap;
}
.header .strh-header-identity__values,
#masthead .strh-header-identity__values {
  display: block;
  color: #205c32 !important;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: .025em;
  text-transform: uppercase;
  white-space: nowrap;
}
.header .strh-header-identity__values span,
#masthead .strh-header-identity__values span { padding: 0 1px; }

/* The desktop motto's footprint stays reserved, so the menu never slides
   left or right when the sticky identity fades away. */
html.strh-identity-scrolled .header .header-main .strh-header-identity,
html.strh-identity-scrolled #masthead .header-main .strh-header-identity {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@media (min-width: 961px) {
  body.strh-header-has-identity .header-main .row--wrapper,
  body.strh-header-has-identity .header-main-inner {
    min-height: 180px;
    transition: min-height 340ms cubic-bezier(.2,.7,.2,1);
  }
  html.strh-identity-scrolled body.strh-header-has-identity .header-main .row--wrapper,
  html.strh-identity-scrolled body.strh-header-has-identity .header-main-inner {
    min-height: 70px;
  }
  body.strh-header-has-identity .header-main .site-logo img {
    transform-origin: left center;
    transform: scale(1.21);
    transition: transform 340ms cubic-bezier(.2,.7,.2,1);
  }
  html.strh-identity-scrolled body.strh-header-has-identity .header-main .site-logo img {
    transform: scale(.94);
  }
  /* Neve's c-left slot starts farther from the logo than ideal. This is a
     visual shift only; no builder columns or menu coordinates change. */
  .header .header-main .strh-header-identity,
  #masthead .header-main .strh-header-identity { transform: translateX(-52px); }
  .header .header-main .builder-item--custom_html,
  #masthead .header-main .builder-item--custom_html { margin-left: 9px; }

  /* A soft, borderless panel drawn behind the existing logo + motto.
     Its left/width are measured from the two real elements by identity.js. */
  body.strh-header-has-identity.strh-brand-panel-ready .header-main .row--wrapper,
  body.strh-header-has-identity.strh-brand-panel-ready .header-main-inner { position: relative; }
  body.strh-header-has-identity.strh-brand-panel-ready .header-main .row--wrapper::before,
  body.strh-header-has-identity.strh-brand-panel-ready .header-main-inner::before {
    content: "";
    position: absolute;
    left: var(--strh-brand-panel-x, 0px);
    width: var(--strh-brand-panel-width, 0px);
    top: 15px;
    bottom: 15px;
    background: #eef5e9;
    border-radius: 18px;
    pointer-events: none;
    z-index: 0;
    opacity: 1;
    transition: opacity 200ms ease;
  }
  body.strh-header-has-identity.strh-brand-panel-ready .header-main .row--wrapper > *,
  body.strh-header-has-identity.strh-brand-panel-ready .header-main-inner > * {
    position: relative;
    z-index: 1;
  }
  html.strh-identity-scrolled body.strh-header-has-identity.strh-brand-panel-ready .header-main .row--wrapper::before,
  html.strh-identity-scrolled body.strh-header-has-identity.strh-brand-panel-ready .header-main-inner::before {
    opacity: 0;
  }
}
/* Keep enough room for the untouched Neve primary navigation at medium widths. */
@media (min-width: 961px) and (max-width: 1450px) {
  .header .strh-header-identity__lead,
  #masthead .strh-header-identity__lead { font-size: 25px; }
  .header .strh-header-identity__values,
  #masthead .strh-header-identity__values { font-size: 13.5px; letter-spacing: .006em; }
  .header .header-main .strh-header-identity,
  #masthead .header-main .strh-header-identity { transform: translateX(-40px); }
}
@media (min-width: 961px) and (max-width: 1170px) {
  .header .strh-header-identity__lead,
  #masthead .strh-header-identity__lead { font-size: 21px; }
  .header .strh-header-identity__values,
  #masthead .strh-header-identity__values { font-size: 11.5px; letter-spacing: 0; }
}

/* A real *single visual entity* on mobile:
   JS relocates the mobile motto into the existing logo builder item, in
   a common panel. The original Neve nav icon stays in its existing slot. */
@media (max-width: 960px) {
  body.strh-header-has-identity .header-main .row--wrapper,
  body.strh-header-has-identity .header-main-inner {
    min-height: 112px;
    transition: min-height 340ms cubic-bezier(.2,.7,.2,1);
  }
  html.strh-identity-scrolled body.strh-header-has-identity .header-main .row--wrapper,
  html.strh-identity-scrolled body.strh-header-has-identity .header-main-inner {
    min-height: 62px;
  }
  /* Fallback: if JS can't group the mobile logo + motto, show a legible
     light motto panel in Neve's original bottom row. */
  body.strh-header-has-identity .header-bottom {
    max-height: 190px;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    transition: max-height 340ms ease, opacity 180ms ease, visibility 340ms ease;
  }
  html.strh-identity-scrolled body.strh-header-has-identity .header-bottom {
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
  .header .header-bottom .strh-header-identity,
  #masthead .header-bottom .strh-header-identity {
    width: calc(100% - 20px);
    max-width: 690px;
    box-sizing: border-box;
    align-items: center;
    text-align: center;
    white-space: normal;
    margin: 3px auto 10px;
    padding: 15px 14px;
    gap: 7px;
    background: #eef5e9 !important;
    border-radius: 13px;
  }
  .header .strh-header-identity__lead,
  #masthead .strh-header-identity__lead {
    font-size: 23px;
    line-height: 1.18;
    font-weight: 800;
    white-space: normal;
    text-wrap: balance;
  }
  .header .strh-header-identity__values,
  #masthead .strh-header-identity__values {
    font-size: 13.5px;
    line-height: 1.35;
    font-weight: 800;
    letter-spacing: .017em;
    white-space: normal;
    text-wrap: balance;
  }

  body.strh-header-has-identity.strh-mobile-identity-ready .header-main .hfg-slot.left {
    min-width: 0;
    flex: 1 1 auto;
  }
  body.strh-header-has-identity.strh-mobile-identity-ready .header-main .hfg-slot.right {
    flex: 0 0 auto;
  }
  body.strh-header-has-identity.strh-mobile-identity-ready .header-bottom { display: none !important; }
  body.strh-header-has-identity .strh-mobile-brand {
    box-sizing: border-box;
    width: 100%;
    max-width: 650px;
    min-width: 0;
    display: flex;
    flex-flow: column nowrap;
    align-items: flex-start;
    justify-content: center;
    gap: 13px;
    margin: 9px 0;
    padding: 20px 18px;
    background: #eef5e9;
    border-radius: 14px;
    transition: background-color 220ms ease, padding 260ms ease, gap 260ms ease, margin 260ms ease;
  }
  body.strh-header-has-identity .strh-mobile-brand .builder-item--logo {
    margin: 0 !important;
    padding: 0 !important;
  }
  body.strh-header-has-identity .strh-mobile-brand .strh-header-identity {
    align-items: flex-start;
    display: flex !important;
    text-align: left;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
    gap: 5px;
    overflow: hidden;
    background: transparent !important;
    border-radius: 0;
    max-height: 180px;
    transition: max-height 260ms ease, opacity 180ms ease, visibility 260ms ease;
  }
  body.strh-header-has-identity .strh-mobile-brand .site-logo img {
    transform-origin: left center;
    transform: scale(1.13);
    transition: transform 340ms cubic-bezier(.2,.7,.2,1);
  }
  html.strh-identity-scrolled body.strh-header-has-identity .strh-mobile-brand {
    background: transparent;
    padding: 0;
    gap: 0;
    margin: 0;
  }
  html.strh-identity-scrolled body.strh-header-has-identity .strh-mobile-brand .strh-header-identity {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    max-height: 0;
  }
  html.strh-identity-scrolled body.strh-header-has-identity .strh-mobile-brand .site-logo img {
    transform: none;
  }
}
@media (min-width: 630px) and (max-width: 960px) {
  body.strh-header-has-identity .strh-mobile-brand { flex-direction: row; align-items: center; gap: 17px; }
  body.strh-header-has-identity .strh-mobile-brand .builder-item--logo { flex: 0 0 auto; }
  body.strh-header-has-identity .strh-mobile-brand .strh-header-identity { flex: 1 1 auto; }
}
@media (max-width: 379px) {
  .header .strh-header-identity__lead,
  #masthead .strh-header-identity__lead { font-size: 20.5px; }
  .header .strh-header-identity__values,
  #masthead .strh-header-identity__values { font-size: 12.25px; }
  body.strh-header-has-identity .strh-mobile-brand { padding: 17px 13px; }
}
@media (prefers-reduced-motion: reduce) {
  body.strh-header-has-identity .header-main .row--wrapper,
  body.strh-header-has-identity .header-main-inner,
  body.strh-header-has-identity .header-main .site-logo img,
  body.strh-header-has-identity .header-bottom,
  body.strh-header-has-identity .strh-mobile-brand,
  .header .strh-header-identity,
  #masthead .strh-header-identity { transition: none !important; }
}


/* v1.8: desktop navigation moves into a proper accessible hamburger menu.
   Only hide native links AFTER the new control has been initialized successfully. */
@media (min-width: 961px) {
  html.strh-desktop-menu-ready .header-main .builder-item--primary-menu {
    display: none !important;
  }
  html.strh-desktop-menu-ready .header-main .hfg-slot.left {
    flex: 0 0 auto !important;
    min-width: 0;
  }
  html.strh-desktop-menu-ready .header-main .hfg-slot.c-left {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: none !important;
  }
  html.strh-desktop-menu-ready .header-main .hfg-slot.right {
    display: flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    justify-content: flex-end;
    flex-wrap: nowrap !important;
    gap: clamp(5px, .8vw, 12px);
    white-space: nowrap;
  }
  html.strh-desktop-menu-ready .header-main .hfg-slot.right > * {
    flex-shrink: 0;
  }
  html.strh-desktop-menu-ready .header-main .builder-item--custom_html {
    margin-left: clamp(12px, 1.9vw, 28px) !important;
    margin-right: 8px;
    min-width: 0;
  }
  html.strh-desktop-menu-ready .header-main .strh-header-identity {
    transform: none !important;
    max-width: 100%;
    min-width: 0;
  }
  html.strh-desktop-menu-ready .header-main .strh-header-identity__lead {
    font-size: clamp(22px, 2.2vw, 32px);
    letter-spacing: -.035em;
    white-space: nowrap;
  }
  html.strh-desktop-menu-ready .header-main .strh-header-identity__values {
    font-size: clamp(11px, 1.04vw, 15px);
    letter-spacing: .015em;
    white-space: nowrap;
  }
  html.strh-desktop-menu-ready .header-main .strh-desktop-menu-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 46px;
    min-width: 46px;
    height: 46px;
    margin: 0;
    padding: 11px;
    color: #173e27;
    background: #eaf3e5;
    border: none;
    border-radius: 9px;
    box-shadow: none;
    cursor: pointer;
    order: -1;
    transition: background-color 140ms ease;
  }
  html.strh-desktop-menu-ready .header-main .strh-desktop-menu-toggle:hover,
  html.strh-desktop-menu-ready .header-main .strh-desktop-menu-toggle[aria-expanded="true"] {
    background: #eaf3e5;
  }
  html.strh-desktop-menu-ready .header-main .strh-desktop-menu-toggle:focus-visible {
    outline: 3px solid #397b4a;
    outline-offset: 2px;
  }
  html.strh-desktop-menu-ready .header-main .strh-desktop-menu-toggle svg {
    display: block;
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
  }
}
.strh-desktop-menu-toggle { display: none; }
.strh-desktop-nav-popup[hidden] { display: none !important; }
.strh-desktop-nav-popup {
  position: fixed;
  z-index: 2147482000;
  box-sizing: border-box;
  width: min(350px, calc(100vw - 28px));
  max-height: min(76vh, 640px);
  overflow-y: auto;
  padding: 17px 18px 22px;
  border-radius: 14px;
  background: #f9fbf7;
  color: #162c1e;
  box-shadow: 0 14px 48px rgba(19, 35, 25, .22);
  overscroll-behavior: contain;
  font-family: Outfit, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.3;
}
.strh-desktop-nav-popup__title {
  margin: 0 0 12px;
  padding: 0 0 12px;
  border-bottom: 1px solid rgba(35, 84, 47, .12);
  color: #205c32;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.strh-desktop-nav-popup .strh-nav-list {
  display: block !important;
  position: static !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  width: auto !important;
  min-width: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.strh-desktop-nav-popup .strh-nav-list li {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  list-style: none !important;
}
.strh-desktop-nav-popup .strh-nav-list > li + li {
  margin-top: 5px !important;
}
.strh-desktop-nav-popup .strh-nav-list a,
.strh-desktop-nav-popup .strh-nav-group {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 9px 11px;
  border-radius: 8px;
  color: #1c3826 !important;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none !important;
  line-height: 1.35;
}
.strh-desktop-nav-popup .strh-nav-list a:hover,
.strh-desktop-nav-popup .strh-nav-list a:focus-visible {
  color: #205c32 !important;
  background: #e7f0e1;
  outline-offset: 1px;
}
.strh-desktop-nav-popup .strh-nav-group { color: #245a35 !important; }
.strh-desktop-nav-popup .strh-nav-list .strh-nav-list {
  margin: 0 0 8px 13px !important;
  border-left: 2px solid #cddfc5 !important;
  padding-left: 8px !important;
}
.strh-desktop-nav-popup .strh-nav-list .strh-nav-list a {
  padding: 7px 10px;
  font-size: 14px;
  font-weight: 500;
}
@media (prefers-reduced-motion: reduce) {
  html.strh-desktop-menu-ready .header-main .strh-desktop-menu-toggle { transition: none !important; }
}


/* v1.9: The expanded masthead is one full-width brand surface.
   No left-only highlight or visual division between brand and actions. */
@media (min-width: 961px) {
  html:not(.strh-identity-scrolled) body.strh-header-has-identity .header .header-main,
  html:not(.strh-identity-scrolled) body.strh-header-has-identity #masthead .header-main,
  html:not(.strh-identity-scrolled) body.strh-header-has-identity .header .header-main-inner,
  html:not(.strh-identity-scrolled) body.strh-header-has-identity #masthead .header-main-inner,
  html:not(.strh-identity-scrolled) body.strh-header-has-identity .header .header-main .row--wrapper,
  html:not(.strh-identity-scrolled) body.strh-header-has-identity #masthead .header-main .row--wrapper {
    background-color: #eef5e9 !important;
    background-image: none !important;
  }
}
@media (max-width: 960px) {
  html:not(.strh-identity-scrolled) body.strh-header-has-identity .header .header-main,
  html:not(.strh-identity-scrolled) body.strh-header-has-identity #masthead .header-main,
  html:not(.strh-identity-scrolled) body.strh-header-has-identity .header .header-main-inner,
  html:not(.strh-identity-scrolled) body.strh-header-has-identity #masthead .header-main-inner,
  html:not(.strh-identity-scrolled) body.strh-header-has-identity .header .header-main .row--wrapper,
  html:not(.strh-identity-scrolled) body.strh-header-has-identity #masthead .header-main .row--wrapper,
  html:not(.strh-identity-scrolled) body.strh-header-has-identity .header .header-bottom,
  html:not(.strh-identity-scrolled) body.strh-header-has-identity #masthead .header-bottom {
    background-color: #eef5e9 !important;
    background-image: none !important;
  }
  /* Mobile grouping should feel like one masthead, not a card placed
     on a differently coloured bar. The motto stays readable at page top. */
  html:not(.strh-identity-scrolled) body.strh-header-has-identity .strh-mobile-brand,
  html:not(.strh-identity-scrolled) body.strh-header-has-identity .header-bottom .strh-header-identity {
    background-color: transparent !important;
  }
}
/* Retire the old calculated left-hand panel at both breakpoints. */
body.strh-header-has-identity.strh-brand-panel-ready .header-main .row--wrapper::before,
body.strh-header-has-identity.strh-brand-panel-ready .header-main-inner::before {
  content: none !important;
  display: none !important;
}
/* Keep the original motto in its fallback row until the visible mobile
   brand unit exists; only then hide the fallback row. */
@media (max-width: 960px) {
  body.strh-header-has-identity.strh-mobile-identity-ready .header-bottom { display: none !important; }
}


/* v1.9.1: Align the mobile hamburger with the LOGO, not the bottom motto.
   JS measures the actual logo/nav centres per viewport width. Desktop and
   compact scrolled navigation are unchanged. */
@media (max-width: 960px) {
  html:not(.strh-identity-scrolled) body.strh-header-has-identity.strh-mobile-identity-ready
  .header-main .hfg-slot.right {
    transform: translateY(var(--strh-mobile-nav-align, 0px)) !important;
  }
  html.strh-identity-scrolled body.strh-header-has-identity.strh-mobile-identity-ready
  .header-main .hfg-slot.right {
    transform: none !important;
  }
}
