.site-header *, .site-header *::before, .site-header *::after {box-sizing: border-box; margin: 0; padding: 0; list-style: none;}
[hidden] {display: none !important;}

.site-header {position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid #e1e7eb;}
.site-header button {margin: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: inherit; cursor: pointer;}
.site-header a {text-decoration: none;}
.site-header a:hover, .site-header a:focus {color: #166ab0; text-decoration: none;}
.site-header svg {display: block;}

/* utility nav */
.utility-nav-extra {display: none; height: 40px; align-items: center; justify-content: flex-end; padding: 0 56px;}
.utility-nav {display: flex; align-items: center; gap: 24px; margin: 0; padding: 0; list-style: none;}
.utility-nav a {font-size: 14px; color: #003a63;}
.utility-nav a:hover, .utility-nav a:focus {color: #166ab0;}
.utility-nav-open-globe a, .utility-nav-open-search a {display: flex;}
.open-globe-icon-white {display: none;}

/* main nav */
.header-bar {display: flex; height: 80px; align-items: center; justify-content: space-between; padding: 0 16px;}
.logo svg {width: 170px; height: auto;}
.desktop-nav {display: none; align-self: stretch; margin: 0 auto;}

/* mobile toggle */
.menu-toggle {display: block; padding: 8px; color: #003a63;}
.menu-toggle .icon-close, .menu-toggle[aria-expanded="true"] .icon-open {display: none;}
.menu-toggle[aria-expanded="true"] .icon-close {display: block;}

.mobile-menu {border-top: 1px solid #e1e7eb; background: #fff; max-height: calc(100dvh - 80px); overflow-y: auto; overscroll-behavior: contain;}

.nav-item {position: relative; display: flex; margin: 0; padding: 0; list-style: none;}

.nav-trigger, 
.no-nav-trigger {
  position: relative; display: flex; align-items: center; gap: 8px; padding: 0 10px; color: #003a63; font-size: 16px; text-decoration: none; font-weight: 500;
}

.nav-trigger[aria-expanded="true"], 
.no-nav-trigger[aria-expanded="true"] {color: #166ab0;}

.nav-trigger[aria-expanded="true"]::after, 
.no-nav-trigger[aria-expanded="true"]::after {content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: #166ab0;}

/* chevron child page indicator */
.chev {flex-shrink: 0; transition: transform 0.15s ease;}
[aria-expanded="true"] > .chev {transform: rotate(180deg);}

.panel {
  display: none; position: absolute; top: 100%; left: 0; z-index: 50; flex-direction: column; border: 1px solid #e1e7eb; background: #fff;
  box-shadow: 0 10px 24px 0 rgba(0, 42, 72, 0.1); padding: 12px 0;
}

.nav-item.is-open > .panel {display: flex;}

/* if dropdowns run into right edge of browser */
.panel.panel-align-end {left: auto; right: 0;}

.panel-link,
.panel a {
  display: flex; min-height: 36px; align-items: center; padding: 4px 20px; font-size: 14px; font-weight: 400; line-height: 18px; white-space: nowrap; color: #003a63;
}

.panel-link:hover, .panel-link:focus,
.panel a:hover, .panel a:focus {background: #f4f6f7; color: #166ab0;}

/* mega / 2-col dropdown */
.panel-plants {flex-direction: row; left: 0; width: auto;}

.plants-groups {display: flex; flex-direction: column; align-self: stretch; width: 220px; padding: 8px 0; border-right: 1px solid #e1e7eb;}
.sub-trigger {display: flex; flex-shrink: 0; height: 44px; align-items: center; justify-content: space-between;
  padding: 10px 16px 10px 20px; font-size: 14px; color: #003a63; text-decoration: none;
}
.sub-trigger.is-active {background: #f4f6f7; color: #166ab0;}
.sub-trigger.is-active .sub-chev {color: #166ab0;}
.sub-chev {flex-shrink: 0;}

.plants-list {display: none; flex-direction: column; gap: 4px; width: 260px; padding: 16px 20px 20px; margin: 0; list-style: none;}
.plants-list.is-active {display: flex;}
.plants-link {display: flex; min-height: 36px; align-items: center; padding: 6px 0; font-size: 14px; font-weight: 400; line-height: 20px; color: #003a63; white-space: normal !important;}
.plants-link:hover, .plants-link:focus {color: #166ab0;}

/* mobile search */
.m-search {display: flex; align-items: center; gap: 8px; margin: 20px 16px; padding: 0 12px; height: 44px; border: 1px solid #e1e7eb; background: #fff;}
.m-search-input {flex: 1; min-width: 0; border: 0; outline: none; background: transparent; color: #003a63; font-size: 16px;}
.m-search-submit {display: flex; padding: 0; color: #213569;}

.m-item {border-bottom: 1px solid #e1e7eb;}

/* mobile utility */
.m-util {display: flex; flex-direction: column; align-items: flex-start; gap: 15px; padding: 24px 16px;}
.m-util a {font-size: 14px; font-weight: 400; color: #213569; text-decoration: none;}

.m-toggle {display: flex; width: 100%; height: 56px; align-items: center; justify-content: space-between; padding: 0 16px; font-size: 16px; color: #003a63;}
.m-toggle[aria-expanded="true"] {color: #166ab0;}

.m-row {display: flex; align-items: center;}

.m-root-link,
.mobile-nav a.m-root-link {
  display: flex; flex: 1; align-items: center; height: 56px; padding: 0 16px; font-size: 16px; color: #003a63; text-decoration: none; font-weight: 500;
}

.m-chev-toggle,
.site-header button.m-chev-toggle {display: flex; align-items: center; height: 56px; padding: 0 16px; color: #003a63;}

.m-chev-toggle[aria-expanded="true"] {color: #166ab0;}

.m-panel {
  padding-bottom: 8px; background: #f4f6f7;
}

.m-sub-toggle {display: flex; width: 100%; height: 44px; align-items: center; justify-content: space-between; padding: 0 24px; font-size: 14px; color: #003a63;}
.m-sub-toggle[aria-expanded="true"] {color: #166ab0;}

.m-sub-link {display: flex; flex: 1; align-items: center; height: 44px; padding: 0 24px; font-size: 14px; color: #003a63; text-decoration: none;}

.m-sub-chev,
.site-header button.m-sub-chev {display: flex; align-items: center; height: 44px; padding: 0 16px; color: #003a63;}
.m-sub-chev[aria-expanded="true"] {color: #166ab0;}
.m-link {display: block; padding: 10px 16px 10px 24px; font-size: 14px; font-weight: 400; line-height: 20px; color: #003a63;}
.m-sub-panel .m-link {padding-left: 40px;}
.m-link:hover {color: #166ab0;}

@media (min-width: 1024px) {
  .utility-nav-extra {display: flex;}
  .header-bar {height: 100px; justify-content: flex-start; padding: 0 32px;  }
  .logo svg {width: 180px;}
  .desktop-nav {display: flex;}
  .menu-toggle,
  .mobile-menu {display: none;}
}
@media (min-width: 1200px) {
  .plants-list {width: 300px;}
}
@media (min-width: 1280px) {
  .header-bar {padding: 0 56px;}
  .logo svg {width: 223px;}
  .desktop-nav {gap: 12px;}
}

/* MOBILE -------------------------------------------------- */
.search-form {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  border-bottom: 2px solid rgb(255 255 255 / 0.3);
}

.search-form input {
  flex: 1;
  min-width: 0;
  height: 70px;
  padding: 0 8px;
  border: 0;
  border-radius: 0;
  background: none;
  color: #fff;
  font-family: Gotham, Montserrat, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  font-size: clamp(28px, 6vw, 48px);
  font-weight: 300;
  outline: 0;
  -webkit-appearance: none;
  appearance: none;
}

.search-form input::placeholder {
  color: #fff;
  opacity: 1;
}

.search-form input::-webkit-search-cancel-button {
  display: none;
}

.search-form button {
  display: flex;
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  padding: 0;
  border: 0;
  background: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* HOME ---------------------------------------------------- */
.home-hero.site-header {
  position: fixed; left: 0; right: 0; background: transparent; border-bottom-color: transparent; transition: background-color 0.2s ease, border-color 0.2s ease;
}
.home-hero.site-header.is-solid {background: #fff; border-bottom-color: #e1e7eb;}

.home-hero.utility-nav-extra {background: transparent;}
.home-hero.site-header.is-solid .utility-nav-extra {background: #fff;}

.home-hero.site-header:not(.is-solid) .utility-nav a,
.home-hero.site-header:not(.is-solid) .nav-trigger,
.home-hero.site-header:not(.is-solid) .no-nav-trigger,
.home-hero.site-header:not(.is-solid) .menu-toggle {color: #fff;}
.home-hero.site-header:not(.is-solid) .utility-nav a:hover {text-decoration: underline;}

.home-hero.site-header:not(.is-solid) .nav-trigger[aria-expanded="true"], 
.home-hero.site-header:not(.is-solid) .no-nav-trigger[aria-expanded="true"] {color: #fff;}

.home-hero.site-header:not(.is-solid) .nav-trigger[aria-expanded="true"]::after, 
.home-hero.site-header:not(.is-solid) .no-nav-trigger[aria-expanded="true"]::after {background: #fff;}

.home-hero.site-header:not(.is-solid) .logo path {fill: #fff;}

.home-hero.site-header:not(.is-solid) .open-globe-icon-blue {display: none;}
.home-hero.site-header:not(.is-solid) .open-globe-icon-white {display: block;}

.home-hero.site-header:not(.is-solid) .open-search-spyglass circle,
.home-hero.site-header:not(.is-solid) .open-search-spyglass path {stroke: #fff;}
