
:root {
  --denard-green: #63c51c;
  --denard-green-dark: #378d00;
  --denard-black: #090b0c;
  --denard-charcoal: #15191c;
  --denard-white: #ffffff;
  --denard-silver: #d6dce1;
}

.denard-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  width: 100%;
  background: rgba(8, 10, 11, 0.96);
  border-bottom: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 8px 30px rgba(0,0,0,.22);
  backdrop-filter: blur(12px);
}

.denard-header__inner {
  width: min(1220px, calc(100% - 32px));
  min-height: 84px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.denard-header__brand {
  display: inline-flex;
  align-items: center;
  max-width: 180px;
}

.denard-header__brand img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 62px;
  object-fit: contain;
}

.denard-header__nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(14px, 1.7vw, 26px);
}

.denard-header__nav a {
  position: relative;
  color: var(--denard-white) !important;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: color .2s ease;
}

.denard-header__nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -8px;
  height: 2px;
  background: var(--denard-green);
  transition: right .2s ease;
}

.denard-header__nav a:hover {
  color: var(--denard-green) !important;
}

.denard-header__nav a:hover::after {
  right: 0;
}

.denard-header__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 8px;
  color: #061000 !important;
  background: linear-gradient(135deg, #7fe52f, var(--denard-green));
  text-decoration: none !important;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(99,197,28,.20);
  transition: transform .2s ease, box-shadow .2s ease;
}

.denard-header__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(99,197,28,.28);
}

.denard-header__toggle {
  display: none;
  justify-self: end;
  width: 44px;
  height: 44px;
  padding: 9px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.denard-header__toggle span:not(.screen-reader-text) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--denard-white);
}

@media (max-width: 1040px) {
  .denard-header__inner {
    grid-template-columns: auto auto;
  }

  .denard-header__toggle {
    display: block;
  }

  .denard-header__nav,
  .denard-header__cta {
    display: none;
  }

  .denard-header.is-open .denard-header__nav {
    display: flex;
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 18px;
  }

  .denard-header.is-open .denard-header__nav a {
    padding: 14px 8px;
    border-top: 1px solid rgba(255,255,255,.08);
  }

  .denard-header.is-open .denard-header__cta {
    display: inline-flex;
    grid-column: 1 / -1;
    margin-bottom: 18px;
  }
}

@media (max-width: 560px) {
  .denard-header__inner {
    width: min(100% - 20px, 1220px);
    min-height: 72px;
  }

  .denard-header__brand {
    max-width: 150px;
  }
}


/* Divi wrapper spacing fixes */
.et_pb_section:has(.denard-header),
.et_pb_row:has(.denard-header),
.et_pb_column:has(.denard-header),
.et_pb_code:has(.denard-header),
.et_pb_code_inner:has(.denard-header) {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 0 !important;
  height: auto !important;
}

.et_pb_section:has(.denard-header) {
  background: transparent !important;
}
