.header-dd-site-header {
  width: 100%;
  background: var(--dovetail-white);
  padding: 12px 20px;
  position: sticky;
  top: 0;
  left: 0;
  z-index: 9999;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

.header-dd-header-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-dd-logo img {
  width: 150px;
  display: block;
  transition: filter 0.3s ease;
}

/* ── Header actions: CTA + menu button ── */
.header-dd-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* "Book a Consultation" — filled forest green */
.header-dd-header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 22px;
  border-radius: 0;
  background: var(--green);
  color: var(--dovetail-white) !important;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
  text-decoration: none !important;
  transition: background 0.25s ease;
}

.header-dd-header-cta:hover {
  background: var(--green-soft);
}

.header-dd-header-cta:focus-visible {
  outline-offset: 2px;
}

/* ── Menu button: boxed "MENU" + icon ── */
.header-dd-menu-open {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 10px !important;
  width: auto !important;
  height: 42px;
  background: transparent !important;
  border: 1px solid var(--dovetail-dark-300) !important;
  border-radius: 0 !important;
  color: var(--dovetail-dark) !important;
  padding: 0 16px !important;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.header-dd-menu-icon {
  display: block;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.header-dd-menu-label {
  display: inline-block;
  white-space: nowrap;
}

/* Hover: fill dark, icon + text flip white via currentColor */
.header-dd-menu-open:hover {
  background: var(--dovetail-dark) !important;
  border-color: var(--dovetail-dark) !important;
  color: var(--dovetail-white) !important;
}

.header-dd-menu-open:focus-visible {
  outline: 2px solid var(--dovetail-accent);
  outline-offset: 2px;
}

.header-dd-fullscreen-menu {
  position: fixed !important;
  inset: 0;
  background: var(--green-soft); /* brand warm dark, not pure black */
  color: var(--dovetail-white);
  z-index: 999999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  overflow-y: auto;
  transition: opacity .85s cubic-bezier(.22,1,.36,1), visibility .85s;
}

.header-dd-fullscreen-menu.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.header-dd-menu-inner {
  width: 100%;
  max-width: 1400px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 14px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.header-dd-menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-dd-menu-logo img {
  width: 190px;
  filter: brightness(0) invert(1);
  display: block;
}

/* Close button — outlined twin of the menu button, on the dark overlay */
.header-dd-menu-close {
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  border-radius: 0px;
  color: var(--dovetail-white) !important;
  padding: 11px 24px !important;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.header-dd-menu-close:hover {
  background: var(--dovetail-white) !important;
  border-color: var(--dovetail-white) !important;
  color: var(--dovetail-dark) !important;
}

.header-dd-menu-close:focus-visible {
  outline: 2px solid var(--dovetail-green-200);
  outline-offset: 2px;
}

.header-dd-menu-layout {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.header-dd-nav-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 80px 0 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 18px !important;
}

.header-dd-nav-list li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.header-dd-nav-list a {
  color: var(--dovetail-white) !important;
  text-decoration: none !important;
  font-size: clamp(30px, 3.2vw, 54px) !important;
  font-weight: 700 !important;
  line-height: 1.05 !important;
  display: inline-block !important;
}

.header-dd-nav-list a:hover {
  opacity: .65;
}

.header-dd-menu-info {
  margin-top: 70px;
}

.header-dd-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 34px;
}

.header-dd-contact a {
  color: var(--dovetail-white) !important;
  text-decoration: none !important;
  font-size: 18px !important;
  line-height: 1.4;
}

.header-dd-consultation-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 260px;
  padding: 18px 24px;
  border: 1px solid var(--dovetail-white);
  color: var(--dovetail-white) !important;
  text-decoration: none !important;
  font-size: 16px;
}

.header-dd-consultation-btn:hover {
  background: var(--dovetail-white);
  color: var(--dovetail-dark) !important;
}

.header-dd-social-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 36px;
  margin-top: auto;
  margin-bottom: 15px;
}

.header-dd-social-row a {
  color: var(--dovetail-white) !important;
  text-decoration: none !important;
  font-size: 16px;
}

body.header-dd-menu-opened {
  overflow: hidden;
}

@media (max-width: 767px) {
  .header-dd-site-header {
    padding: 12px;
  }

  /* CTA shows on desktop + tablet only — menu button alone on mobile */
  .header-dd-header-cta {
    display: none;
  }

  .header-dd-menu-inner {
    padding: 18px;
  }

  .header-dd-logo img,
  .header-dd-menu-logo img {
    width: 145px;
  }

  .header-dd-nav-list {
    margin-top: 60px !important;
    gap: 16px !important;
  }

  .header-dd-nav-list a {
    font-size: 30px !important;
  }

  .header-dd-menu-info {
    margin-top: 50px;
  }

  .header-dd-consultation-btn {
    width: 100%;
  }

  .header-dd-social-row {
    flex-wrap: wrap;
    margin-top: 50px;
  }
}


.header-dd-menu-top,
.header-dd-nav-list li,
.header-dd-menu-info,
.header-dd-social-row {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.header-dd-fullscreen-menu.active .header-dd-menu-top {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.18s;
}

.header-dd-fullscreen-menu.active .header-dd-nav-list li:nth-child(1) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.28s;
}

.header-dd-fullscreen-menu.active .header-dd-nav-list li:nth-child(2) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.36s;
}

.header-dd-fullscreen-menu.active .header-dd-nav-list li:nth-child(3) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.44s;
}

.header-dd-fullscreen-menu.active .header-dd-nav-list li:nth-child(4) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.52s;
}

.header-dd-fullscreen-menu.active .header-dd-nav-list li:nth-child(5) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.6s;
}

.header-dd-fullscreen-menu.active .header-dd-nav-list li:nth-child(6) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.68s;
}

.header-dd-fullscreen-menu.active .header-dd-menu-info {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.78s;
}

.header-dd-fullscreen-menu.active .header-dd-social-row {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.9s;
}


/* ════════════════════════════════════════════════════
   Transparent overlay header (hero pages)

   functions.php adds `dd-transparent-header` to the <body>
   on pages with a full-bleed hero. There the header is fixed
   and transparent so the hero/background shows behind it, then
   header.js adds `.is-solid` once the page is scrolled, fading
   the bar to solid white.

   `dd-header-on-light` is added on pages whose hero directly
   behind the header is light (e.g. About's cream panel) so the
   logo + menu button keep their dark colours while transparent.

   Pages without these classes are untouched: the header stays
   the solid, sticky white bar defined at the top of this file.
════════════════════════════════════════════════════ */
body.dd-transparent-header .header-dd-site-header {
  position: fixed;
  background: transparent;
  box-shadow: none;
}

/* Scrolled → solid white bar */
body.dd-transparent-header .header-dd-site-header.is-solid {
  background: var(--dovetail-white);
  box-shadow: 0 1px 0 rgba(31, 30, 27, 0.06), 0 10px 30px rgba(31, 30, 27, 0.06);
}

/* ── Transparent state on dark heroes → LIGHT foreground ── */
body.dd-transparent-header:not(.dd-header-on-light)
  .header-dd-site-header:not(.is-solid) .header-dd-logo img {
  filter: brightness(0) invert(1); /* white logo */
}

body.dd-transparent-header:not(.dd-header-on-light)
  .header-dd-site-header:not(.is-solid) .header-dd-menu-open {
  border-color: rgba(255, 255, 255, 0.5) !important;
  color: var(--dovetail-white) !important;
}

body.dd-transparent-header:not(.dd-header-on-light)
  .header-dd-site-header:not(.is-solid) .header-dd-menu-open:hover {
  background: var(--dovetail-white) !important;
  border-color: var(--dovetail-white) !important;
  color: var(--dovetail-dark) !important;
}

/* On light heroes (dd-header-on-light) the transparent state keeps the
   base dark logo + dark menu button — no overrides needed. Once scrolled
   (.is-solid) every page shares the same dark-on-white look above. */