/* ===================================================================
   Custom site header (B2, 26/07/2026)
   Replaces the Elementor header document. Scoped under .db-header so it
   cannot touch the Elementor header while both exist during rollout.
   =================================================================== */

:root {
  --db-green: #7dd2af;
  --db-ink: #21201e;
  --db-header-h: 96px;
}

.db-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 999;
  color: #fff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 100%);
}

.db-header.is-stuck {
  position: fixed;
  background: rgba(20, 19, 18, 0.96);
  backdrop-filter: saturate(140%) blur(8px);
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.25);
}

.db-header__bar {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 18px 40px;
}

.db-header__logo {
  flex: 0 0 auto;
  line-height: 0;
}

.db-header__logo img {
  width: auto;
  height: 34px;
  display: block;
}

/* ---------- desktop nav ---------- */

.db-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.db-nav__list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.db-nav__list li {
  position: relative;
}

.db-nav__list a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  line-height: 1.2;
  padding: 10px 0;
  white-space: nowrap;
}

.db-nav__list a:hover,
.db-nav__list a:focus-visible {
  color: var(--db-green);
}

/* caret on items that have children */
.db-nav__list > li.menu-item-has-children > a::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.2s ease;
}

.db-nav__list > li.menu-item-has-children:hover > a::after,
.db-nav__list > li.menu-item-has-children.is-open > a::after {
  transform: translateY(1px) rotate(-135deg);
}

/* dropdowns */
.db-nav__list .sub-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 250px;
  margin: 0;
  padding: 12px 0;
  list-style: none;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

.db-nav__list li:hover > .sub-menu,
.db-nav__list li:focus-within > .sub-menu,
.db-nav__list li.is-open > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.db-nav__list .sub-menu a {
  display: block;
  color: var(--db-ink);
  padding: 9px 22px;
  font-size: 14px;
  white-space: normal;
}

.db-nav__list .sub-menu a:hover,
.db-nav__list .sub-menu a:focus-visible {
  background: #f3f6f4;
  color: var(--db-ink);
}

/* 24/08/2026 — caret on sub-menu items that open a third level. The caret
   rule above is scoped to `> li`, so only top-level items ever showed one:
   "Treatments", "Problems we solve" and the five state groups under
   Locations opened another panel with nothing to say so. */
.db-nav__list .sub-menu > li.menu-item-has-children > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.db-nav__list .sub-menu > li.menu-item-has-children > a::after {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}

/* third level opens to the side */
.db-nav__list .sub-menu .sub-menu {
  top: 0;
  left: 100%;
  transform: translateX(6px);
}

.db-nav__list .sub-menu li:hover > .sub-menu,
.db-nav__list .sub-menu li:focus-within > .sub-menu {
  transform: translateX(0);
}

/* ---------- actions ---------- */

.db-header__actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.db-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.db-btn--primary {
  background: var(--db-green);
  color: var(--db-ink);
}

.db-btn--primary:hover {
  background: #6cc9a2;
  color: var(--db-ink);
}

.db-btn--light {
  background: #fff;
  color: var(--db-ink);
  border-color: #fff;
}

.db-btn--light:hover {
  background: transparent;
  color: #fff;
}

.db-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  cursor: pointer;
}

.db-icon-btn:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

/* ---------- search ---------- */

.db-search {
  background: rgba(20, 19, 18, 0.96);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.db-search__form {
  display: flex;
  gap: 10px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 40px 20px;
}

.db-search__input {
  flex: 1 1 auto;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-radius: 999px;
  padding: 12px 20px;
  font-size: 15px;
}

.db-search__input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.db-search__input:focus {
  outline: 2px solid var(--db-green);
  outline-offset: 2px;
}

/* ---------- burger + drawer ---------- */

/* Scoped with .db-header so it outranks the theme's generic button styling,
   which was painting the burger with a #e9e9e9 background and a 3px radius. */
.db-header .db-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: none;
  background-color: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

/* The search toggle needs (0,2,0) here, not the (0,1,0) of .db-icon-btn above,
   because two inherited rules outrank a single class and between them they made
   the icon invisible:

   1. post-7.css (Elementor's kit) has `.elementor-kit-7 button { color: #21201e }`
      at (0,1,1). currentColor in the SVG resolved to near-black on a dark hero,
      so .db-icon-btn's own `color: #fff` never applied. Same rule family as three
      other items in this amendment round.
   2. theme.css has `button { padding: 0.5rem 1rem }`. With box-sizing: border-box
      on a 40px button that leaves 40 - 2 border - 32 padding = 6px of content, so
      the 20px icon was squashed to a 6x20 sliver. Measured before this change.

   The burger next door was already safe: it is scoped .db-header .db-burger, sets
   its own padding and paints its bars #fff rather than with currentColor. */
.db-header .db-icon-btn {
  background-color: transparent;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
  color: #fff;
  padding: 0;
}

.db-header .db-icon-btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.db-burger span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.db-burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.db-burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.db-burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.db-drawer {
  display: none;
}

.db-drawer__list,
.db-drawer__list .sub-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ---------- responsive ---------- */

@media (max-width: 1200px) {
  .db-nav {
    display: none;
  }

  .db-header .db-burger {
    display: flex;
  }

  .db-header__bar {
    gap: 12px;
    padding: 14px 20px;
  }

  .db-header__phone {
    display: none;
  }

  .db-header__cta {
    padding: 11px 16px;
    font-size: 13px;
  }

  .db-drawer {
    display: block;
    max-height: calc(100vh - var(--db-header-h));
    overflow-y: auto;
    background: rgba(20, 19, 18, 0.98);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 8px 20px 28px;
  }

  .db-drawer[hidden] {
    display: none;
  }

  .db-drawer__list a {
    display: block;
    color: #fff;
    text-decoration: none;
    padding: 13px 0;
    font-size: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .db-drawer__list .sub-menu {
    display: none;
    padding-left: 16px;
  }

  .db-drawer__list li.is-open > .sub-menu {
    display: block;
  }

  .db-drawer__list .sub-menu a {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.82);
  }

  .db-drawer__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
  }

  /* tap target for opening a submenu; the toggle is a sibling of the link,
     positioned against the li so the link itself stays fully tappable */
  .db-drawer__list li.menu-item-has-children {
    position: relative;
  }

  .db-drawer__list li.menu-item-has-children > a {
    padding-right: 52px;
  }

  .db-drawer__toggle {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: transparent;
    border: 0;
    color: #fff;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
  }
}

/* Label swap: full label on wide screens, short label once the bar gets tight. */
.db-cta--short {
  display: none;
}

@media (max-width: 800px) {
  .db-cta--full {
    display: none;
  }

  .db-cta--short {
    display: inline;
  }

  .db-header__logo img {
    height: 28px;
  }

  .db-header__bar {
    gap: 8px;
    padding: 12px 16px;
  }
}

@media (max-width: 480px) {
  .db-header__logo img {
    height: 24px;
  }

  .db-search__form {
    padding: 12px 20px 16px;
    flex-wrap: wrap;
  }
}

/* ===================================================================
   Footer (B2b, 27/07/2026)
   =================================================================== */

.db-footer {
  background: #141312;
  color: rgba(255, 255, 255, 0.82);
  padding: 64px 40px 0;
}

.db-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  max-width: 1400px;
  margin: 0 auto;
}

.db-footer__brand {
  flex: 1 1 320px;
  min-width: 280px;
}

.db-footer__logo img {
  width: auto;
  height: 38px;
  margin-bottom: 28px;
}

.db-footer h3 {
  color: #fff;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.db-footer p {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.65;
}

.db-footer__hours {
  color: rgba(255, 255, 255, 0.6);
}

.db-footer a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

.db-footer a:hover,
.db-footer a:focus-visible {
  color: var(--db-green);
  text-decoration: underline;
}

.db-footer__social {
  margin-top: 28px;
}

.db-footer__social ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
}

.db-footer__cols {
  flex: 2 1 560px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
}

.db-footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.db-footer__col li {
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.4;
}

.db-footer__bottom {
  max-width: 1400px;
  margin: 48px auto 0;
  padding: 22px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.db-footer__bottom p {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 800px) {
  .db-footer {
    padding: 48px 20px 0;
  }

  .db-footer__inner {
    gap: 36px;
  }
}
