.site-header {
  width: 100%;
  display: flex;
  justify-content: center;
  background: rgba(243, 244, 246, 0.9);
  box-sizing: border-box;
  position: sticky;
  top: 0;
  z-index: 3000;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow: visible;
}

.site-header__row {
  display: flex;
  padding: 10px 0 5px 0;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 24px;
}

.admin-bar .site-header {
  top: 32px;
}

.site-header__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 1440px;
  padding: 10px clamp(20px, 6vw, 120px);
  box-sizing: border-box;
}

.site-header__logo {
  display: flex;
  width: 39px;
  height: 38px;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  aspect-ratio: 39 / 38;
  flex-shrink: 0;
}

.site-header__logo-img img {
  width: 39px;
  height: 38px;
  flex-shrink: 0;
  aspect-ratio: 39 / 38;
}

.site-header__right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 136px;
  flex: 1;
  min-width: 0;
  margin-left: auto;
}

.site-header__nav {
  display: flex;
  align-items: center;
}

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

.site-header__nav-item--dropdown {
  display: flex;
  width: auto;
  min-height: 44px;
  justify-content: center;
  align-items: center;
  position: relative;
}

.site-header__nav-toggle {
  display: flex;
  width: auto;
  padding: 10px 14px;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-shrink: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.site-header__dropdown {
  position: absolute;
  left: 0;
  top: 100%;
  margin-top: 8px;
  list-style: none;
  padding: 8px 0;
  min-width: 200px;
  background: #fff;
  border: 1px solid #d0d7de;
  border-radius: 4px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 10;
}

.site-header__dropdown-item {
  margin: 0;
}

.site-header__dropdown-link {
  display: block;
  padding: 8px 16px;
  color: #395935;
  font-family: "Teachers", var(--wp--preset--font-family--inter, Inter, sans-serif);
  font-size: 16px;
  font-weight: 400;
  text-decoration: none;
  white-space: nowrap;
}

.site-header__dropdown-link:hover,
.site-header__dropdown-link:focus-visible {
  background: rgba(79, 165, 80, 0.1);
}

.site-header__nav-item--dropdown:hover .site-header__dropdown,
.site-header__nav-item--dropdown:focus-within .site-header__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.site-header__nav-text,
.site-header__nav-link {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  align-self: stretch;
  color: var(--Main-Green, #395935);
  font-family: "Teachers", var(--wp--preset--font-family--inter, Inter, sans-serif);
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  text-transform: uppercase;
  text-decoration: none;
}

.site-header__nav-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.site-header__nav-item:not(.site-header__nav-item--dropdown) .site-header__nav-link {
  display: flex;
  padding: 10px;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.site-header__actions--mobile {
  display: none;
}

.site-header__btn {
  display: inline-flex;
  height: 44px;
  min-width: 0;
  padding: 8px 20px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  white-space: nowrap;
  text-decoration: none;
  font-family: "Teachers", var(--wp--preset--font-family--inter, Inter, sans-serif);
  font-size: 18px;
  font-weight: 700;
  line-height: normal;
  text-transform: uppercase;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.site-header__btn--primary {
  background: #4fa550;
  color: #fff;
  border: 0;
}

.site-header__btn--primary:hover,
.site-header__btn--primary:focus-visible {
  background: #63bb64;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.site-header__btn--secondary {
  border: 4px solid var(--Secondary-Light-Green, #4fa550);
  color: var(--Main-Green, #395935);
  background: transparent;
}

.site-header__btn--secondary:hover,
.site-header__btn--secondary:focus-visible {
  background: rgba(79, 165, 80, 0.15);
  color: #395935;
  border-color: #63bb64;
  transform: translateY(-1px);
}

/* Hide drawer by default on desktop */
.site-header__drawer {
  display: none;
}
.site-header__drawer-ctas {
  display: none;
}

@media (max-width: 960px) {
  .site-header__right {
    gap: 32px;
  }
  .site-header__nav-list {
    gap: 16px;
  }
}

@media (max-width: 720px) {
  :root {
    --mobile-header-height: 72px;
  }

  /* Reserve space for fixed mobile header */
  body {
    padding-top: calc(var(--mobile-header-height) + env(safe-area-inset-top, 0));
  }

  .site-header {
    position: fixed;
    top: env(safe-area-inset-top, 0);
    left: 0;
    right: 0;
    z-index: 6000;
    background: rgba(243, 244, 246, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    min-height: var(--mobile-header-height);
  }

  .site-header__drawer {
    display: block;
    inset: 0;
    z-index: 7000;
  }
  .site-header__drawer-ctas {
    display: flex;
  }
  .site-header__inner {
    width: 100%;
    max-width: 100%;
    padding: 12px clamp(20px, 6vw, 120px);
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .site-header__row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 0 6px 0;
  }
  .site-header__right {
    width: 100%;
    justify-content: flex-end;
    gap: 36px;
    flex-wrap: nowrap;
    align-items: center;
  }
  .site-header__actions {
    display: none;
  }
  .site-header__actions--mobile {
    display: flex;
    height: 44px;
    width: auto;
    gap: 24px;
    align-items: center;
  }
  .site-header__nav {
    width: 100%;
    display: none;
  }
  .site-header__nav-list {
    flex-wrap: wrap;
    gap: 12px 16px;
  }
  .site-header__nav-item,
  .site-header__nav-item--dropdown {
    height: auto;
  }
  .site-header__nav-toggle,
  .site-header__nav-link {
    padding: 10px 12px;
  }
  .site-header__btn {
    flex: 0 0 auto;
    width: auto;
    text-align: center;
    align-items: center;
  }
  .site-header__burger {
    display: flex;
    align-items: center;
    gap: 4px;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    width: 44px;
    height: 44px;
    justify-content: center;
  }
  .site-header__burger svg {
    display: flex;
    width: 44px;
    height: 44px;
    padding: 12.375px 7.792px;
    justify-content: center;
    align-items: center;
    aspect-ratio: 1 / 1;
  }
  .site-header__actions--mobile .site-header__btn + .site-header__burger {
    gap: 4px;
  }
  .site-header__logo {
    width: 39px;
    height: 38px;
    gap: 10px;
  }
  .site-header__drawer {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 5000;
  }
  .site-header__drawer-inner {
    position: absolute;
    inset: 0;
    background: #f2f3f5;
    padding: calc(var(--mobile-header-height) + env(safe-area-inset-top, 0)) clamp(20px, 6vw, 120px) 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    box-sizing: border-box;
    overflow-y: auto;
    height: 100vh;
  }
  .site-header__drawer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .site-header__drawer-ctas {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
  }
  .site-header__drawer-close {
    background: transparent;
    border: 0;
    padding: 8px;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .site-header__drawer-close svg {
    width: 20px;
    height: 20px;
  }
  .site-header__drawer-panel {
    display: block;
  }
  .site-header__drawer-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
  }
  .site-header__drawer-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }
  .site-header__drawer-item.is-parent {
    flex-direction: column;
    align-items: stretch;
  }
  .site-header__drawer-link,
  .site-header__drawer-parent {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    background: transparent;
    border: 0;
    padding: 0;
    text-decoration: none;
    color: #395935;
    font-family: "Teachers", var(--wp--preset--font-family--inter, Inter, sans-serif);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.2;
    text-transform: uppercase;
    cursor: pointer;
  }
  .site-header__drawer-link:hover,
  .site-header__drawer-link:focus-visible,
  .site-header__drawer-parent:hover,
  .site-header__drawer-parent:focus-visible {
    background: transparent;
    color: #2e3b2f;
  }
.site-header__drawer-arrow {
  font-size: 20px;
  line-height: 1;
  opacity: 0;
  transition: opacity 0.15s ease, transform 0.2s ease;
  transform-origin: center;
  transform: rotate(0deg);
}
  .site-header__drawer-item:hover .site-header__drawer-arrow,
  .site-header__drawer-item:focus-within .site-header__drawer-arrow {
    opacity: 1;
  }
/* Keep parent arrow visible to indicate nested links */
.site-header__drawer-item.is-parent .site-header__drawer-arrow {
  opacity: 1;
  transform: rotate(0deg);
}
.site-header__drawer-item.is-parent.is-open .site-header__drawer-arrow {
  transform: rotate(90deg);
}
  .site-header__drawer-item.is-parent .site-header__drawer-parent {
    font-weight: 600;
  }
  .site-header__drawer-sublist {
    margin-top: 10px;
    padding-left: 12px;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .site-header__drawer-child-header {
    margin-bottom: 8px;
  }
  .site-header__drawer-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 0;
    padding: 0;
    font-family: "Teachers", var(--wp--preset--font-family--inter, Inter, sans-serif);
    font-size: 18px;
    font-weight: 600;
    color: #2e3b2f;
    cursor: pointer;
  }
  .site-header.is-open .site-header__drawer {
    opacity: 1;
    visibility: visible;
  }
  .site-header__drawer-panel--child[hidden] {
    display: none;
  }
  .site-header__drawer-sublist[hidden] {
    display: none;
  }
.site-header__drawer-ctas {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
}

/* Lock body scroll when drawer is open */
body.site-header-drawer-open {
  overflow: hidden;
  touch-action: none;
}

/* Hide embedded contact blocks inside the mobile drawer to avoid duplication */
.site-header__drawer .wp-block-acf-contact-hero,
.site-header__drawer .wp-block-acf-contact-modal,
.site-header__drawer .contact-hero,
.site-header__drawer .contact-modal,
.site-header__drawer [class*="contact-hero"],
.site-header__drawer [class*="contact-modal"] {
  display: none !important;
}
}
