:root {
  --global-header-primary: #006e1c;
  --global-header-primary-dark: #003c0b;
  --global-header-surface: #fcf9f8;
  --global-header-text: #3f4a3c;
  --global-header-outline: rgba(63, 74, 60, 0.12);
}

body > header:not(.global-header) {
  display: none !important;
}

.global-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  border-bottom: 1px solid var(--global-header-outline);
  background: rgba(252, 249, 248, 0.96);
  backdrop-filter: blur(12px);
}

.global-header-inner {
  width: fit-content;
  max-width: calc(100% - 64px);
  min-height: 104px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.global-header-logo {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  margin-right: clamp(38px, 3vw, 50px);
  text-decoration: none;
}

.global-header-logo img {
  width: 108px;
  height: 96px;
  object-fit: contain;
  transform: scale(1.08);
}

.global-header-brand-name {
  display: none;
  margin-left: 10px;
  color: var(--global-header-primary);
  font-family: "Playfair Display", serif;
  font-size: 1.18rem;
  font-weight: 700;
  white-space: nowrap;
}

.global-header-nav {
  flex: 0 0 auto;
  width: auto;
}

.global-header-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(26px, 2vw, 38px);
  width: auto;
  margin: 0;
  padding: 0;
  list-style: none;
}

.global-header-link,
.global-header-dropdown > a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 13px 0;
  color: var(--global-header-text);
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s ease;
}

.global-header-link:hover,
.global-header-link:focus-visible,
.global-header-dropdown > a:hover,
.global-header-dropdown > a:focus-visible {
  color: var(--global-header-primary);
}

.global-header-link.is-active::after,
.global-header-dropdown > a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 5px;
  height: 2px;
  border-radius: 99px;
  background: var(--global-header-primary);
}

.global-header-dropdown { position: relative; }
.global-header-dropdown .material-symbols-outlined { font-size: 18px; }

.global-header-panel {
  position: absolute;
  top: calc(100% - 2px);
  left: 50%;
  z-index: 110;
  display: none;
  width: 280px;
  padding: 10px;
  transform: translateX(-50%);
  border: 1px solid var(--global-header-outline);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(31, 75, 45, 0.1);
}

.global-header-dropdown:hover .global-header-panel,
.global-header-dropdown:focus-within .global-header-panel { display: grid; }

.global-header-panel a {
  display: block;
  max-width: 100%;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--global-header-text);
  font-family: "Inter", sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: break-word;
}

.global-header-panel a:hover,
.global-header-panel a:focus-visible {
  background: rgb(215, 248, 226);
  color: var(--global-header-primary);
}

.global-header-cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-left: clamp(24px, 2vw, 32px);
  padding: 9px 22px;
  border-radius: 999px;
  background: var(--global-header-primary);
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .2s ease, background .2s ease;
}

.global-header-cta:hover,
.global-header-cta:focus-visible {
  transform: translateY(-1px);
  background: var(--global-header-primary-dark);
}

.global-header-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--global-header-primary);
  cursor: pointer;
}

.global-mobile-menu { display: none; }

@media (max-width: 1199px) {
  .global-header-inner {
    width: min(100% - 32px, 960px);
    max-width: none;
    min-height: 84px;
    justify-content: flex-start;
  }
  .global-header-logo { margin-right: 0; }
  .global-header-logo img { width: 58px; height: 58px; transform: none; }
  .global-header-brand-name { display: inline-block; }
  .global-header-nav,
  .global-header-inner > .global-header-cta { display: none; }
  .global-header-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }
  .global-mobile-menu.is-open {
    display: flex;
    max-height: calc(100vh - 84px);
    overflow-y: auto;
    flex-direction: column;
    gap: 3px;
    padding: 10px max(18px, calc((100% - 928px) / 2)) 22px;
    border-top: 1px solid var(--global-header-outline);
    background: var(--global-header-surface);
  }
  .global-mobile-menu > a {
    padding: 9px 0;
    color: var(--global-header-text);
    font-family: "Inter", sans-serif;
    font-weight: 800;
    text-decoration: none;
  }
  .global-mobile-submenu {
    display: grid;
    gap: 2px;
    margin: 0 0 5px 6px;
    padding: 4px 0 4px 16px;
    border-left: 2px solid rgba(0, 110, 28, 0.2);
  }
  .global-mobile-submenu a {
    padding: 5px 0;
    color: var(--global-header-text);
    font-family: "Inter", sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
  }
  .global-mobile-menu .global-header-cta {
    display: inline-flex;
    align-self: flex-start;
    margin: 8px 0 0;
    color: #fff;
  }
}

@media (max-width: 520px) {
  .global-header-brand-name { font-size: 1.08rem; }
}
