/**
 * AHTA Wellness — Phase 01 unified header (staging / review).
 * Brand: forest #3D5244 · copper #C4785A · warm white #F4F1EA · charcoal #292929
 */
:root {
  --aht-header-forest: #3d5244;
  --aht-header-copper: #c4785a;
  --aht-header-copper-hover: #b06a4f;
  --aht-header-warm: #f4f1ea;
  --aht-header-charcoal: #292929;
  --aht-header-max: 1320px;
  --aht-utility-h: 34px;
  --aht-primary-h: 96px;
  --aht-header-total: calc(var(--aht-utility-h) + var(--aht-primary-h));
}

body.aht-phase01-nav {
  padding-top: var(--aht-header-total);
}

body.aht-phase01-nav.et_fixed_nav #page-container,
body.aht-phase01-nav #page-container {
  padding-top: 0 !important;
}

/* Legacy Divi header removed at build time; keep rule for any straggler markup */
body.aht-phase01-nav #main-header {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.aht-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100000;
  font-family: Montserrat, "Open Sans", system-ui, sans-serif;
  box-shadow: 0 1px 0 rgba(41, 41, 41, 0.08);
}

.aht-header__utility {
  background: var(--aht-header-forest);
  color: var(--aht-header-warm);
  min-height: var(--aht-utility-h);
  display: flex;
  align-items: center;
  font-size: 13px;
  line-height: 1.3;
}

.aht-header__utility-inner,
.aht-header__primary-inner {
  width: min(100% - 32px, var(--aht-header-max));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.aht-header__utility-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
}

.aht-header__utility-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.aht-header__utility a {
  color: var(--aht-header-warm);
  text-decoration: none;
}

.aht-header__utility a:hover,
.aht-header__utility a:focus-visible {
  text-decoration: underline;
}

.aht-header__utility .aht-header__loc {
  opacity: 0.92;
}

.aht-header__primary {
  background: var(--aht-header-warm);
  min-height: var(--aht-primary-h);
  display: flex;
  align-items: center;
}

.aht-header__logo img {
  display: block;
  width: auto;
  height: clamp(72px, 8vw, 90px);
  max-width: min(360px, 42vw);
  object-fit: contain;
  object-position: left center;
}

.aht-header__nav {
  display: none;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

@media (min-width: 1100px) {
  .aht-header__nav {
    display: flex;
  }
}

.aht-header__nav > li {
  list-style: none;
  position: relative;
}

/* Invisible bridge so pointer can reach dropdown across the 4px gap */
@media (min-width: 1100px) {
  .aht-header__nav > li:has(.aht-header__dropdown)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 8px;
  }
}

.aht-header__nav > li > a,
.aht-header__nav > li > button {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 12px;
  border: none;
  background: transparent;
  color: var(--aht-header-charcoal);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  border-radius: 4px;
}

.aht-header__drawer-toplink {
  display: block;
  padding: 14px 4px;
  font-size: 16px;
  font-weight: 600;
  color: var(--aht-header-charcoal);
  text-decoration: none;
}

.aht-header__nav > li > a {
  padding: 10px 12px;
  border-radius: 4px;
}

.aht-header__nav > li > a:hover,
.aht-header__nav > li > button:hover,
.aht-header__nav > li > a:focus-visible,
.aht-header__nav > li > button:focus-visible {
  color: var(--aht-header-forest);
}

.aht-header__nav > li > button .aht-chevron {
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: 0.7;
}

.aht-header__dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid rgba(61, 82, 68, 0.12);
  border-radius: 4px;
  padding: 8px 0;
  box-shadow: 0 8px 24px rgba(41, 41, 41, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  z-index: 10;
}

.aht-header__nav > li:hover .aht-header__dropdown,
.aht-header__nav > li:focus-within .aht-header__dropdown,
.aht-header__nav > li.aht-open .aht-header__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.aht-header__dropdown a {
  display: block;
  padding: 10px 16px;
  color: var(--aht-header-charcoal);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.aht-header__dropdown a:hover,
.aht-header__dropdown a:focus-visible {
  background: var(--aht-header-warm);
  color: var(--aht-header-forest);
}

.aht-header__cta {
  display: none;
  align-items: center;
  gap: 12px;
}

@media (min-width: 1100px) {
  .aht-header__cta {
    display: flex;
  }
}

.aht-header__btn-get-started {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  background: var(--aht-header-forest);
  color: var(--aht-header-warm) !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 4px;
  white-space: nowrap;
}

.aht-header__btn-get-started:hover,
.aht-header__btn-get-started:focus-visible {
  background: rgba(61, 82, 68, 0.92);
  color: #fff !important;
}

.aht-header__mobile-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

@media (min-width: 1100px) {
  .aht-header__mobile-actions {
    display: none;
  }
}

.aht-header__btn-mobile-cta {
  padding: 10px 14px;
  font-size: 13px;
}

.aht-header__menu-toggle {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(61, 82, 68, 0.2);
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.aht-header__menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--aht-header-forest);
  border-radius: 1px;
}

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

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

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

.aht-header__drawer {
  display: none;
  position: fixed;
  top: var(--aht-header-total);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--aht-header-warm);
  overflow-y: auto;
  padding: 16px 20px 32px;
  z-index: 99999;
}

.aht-header__drawer.is-open {
  display: block;
}

.aht-header__drawer-section {
  border-bottom: 1px solid rgba(61, 82, 68, 0.15);
  padding: 8px 0;
}

.aht-header__drawer-section > button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 4px;
  border: none;
  background: none;
  font-size: 16px;
  font-weight: 600;
  color: var(--aht-header-charcoal);
  text-align: left;
  cursor: pointer;
}

.aht-header__drawer-panel {
  display: none;
  padding: 4px 0 12px 12px;
}

.aht-header__drawer-panel.is-open {
  display: block;
}

.aht-header__drawer-panel a {
  display: block;
  padding: 10px 0;
  color: var(--aht-header-charcoal);
  text-decoration: none;
  font-size: 15px;
}

.aht-header__drawer-links a {
  display: block;
  padding: 14px 4px;
  font-weight: 600;
  color: var(--aht-header-forest);
  text-decoration: none;
}

.aht-header__drawer-phone {
  margin-top: 16px;
  font-size: 15px;
}

.aht-header__drawer-phone a {
  color: var(--aht-header-forest);
  font-weight: 700;
}

html.aht-drawer-open,
body.aht-drawer-open {
  overflow-x: hidden;
}