/* =============================================
   ACOS HEADER STYLES
   Add to: theme's style.css or a separate
   header.css enqueued in functions.php
============================================= */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@300;400;500;600&display=swap');

:root {
  --acos-navy:      var(--acos-color-primary);
  --acos-teal:      var(--acos-color-secondary);
  --acos-gold:      var(--acos-color-gold);
  --acos-white:     var(--acos-color-white);
  --acos-light-bg:  var(--acos-color-light-bg);
  --acos-border:    var(--acos-color-rule);
  --acos-header-h:  127px;
  --acos-header-pt: 12px;
  --acos-topbar-h:  auto;
  --acos-navbar-h:  auto;
  --acos-logo-w:    104px;
  --acos-logo-h:    115px;
  --acos-logo-w-scrolled: 90px;
  --acos-logo-h-scrolled: 100px;
  --acos-logo-space-below: 10px;
  --acos-header-menu-gap: 14px;
  --acos-header-logo-gap: 32px;
  --acos-max-w:     var(--acos-container-max);
  --acos-font:      var(--acos-font-heading);
  --acos-admin-bar-offset: 0px;
}

/* WordPress admin bar — keep header + mobile menu directly below #wpadminbar */
html.admin-bar,
body.admin-bar {
  --acos-admin-bar-offset: 32px;
  --acos-admin-bar-offset: var(--wp-admin--admin-bar--height, 32px);
}

@media screen and (max-width: 782px) {
  html.admin-bar,
  body.admin-bar {
    --acos-admin-bar-offset: 46px;
    --acos-admin-bar-offset: var(--wp-admin--admin-bar--height, 46px);
  }
}

/* ── RESET ── */
#acos-header *,
#acos-header *::before,
#acos-header *::after,
.acos-mobile-overlay *,
.acos-mobile-overlay *::before,
.acos-mobile-overlay *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── HEADER WRAPPER ── */
html body #acos-header {
  width: 100%;
  height: auto;
  min-height: var(--acos-header-h);
  display: block !important;
  background: transparent !important;
  box-shadow: none !important;
  position: absolute !important;
  top: var(--acos-admin-bar-offset) !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 1000 !important;
  isolation: isolate;
  transition: box-shadow 0.35s ease;
  padding-top: var(--acos-header-pt);
  box-sizing: border-box;
}

html body #acos-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    var(--acos-color-off-white) 0%,
    rgba(252, 250, 245, 0.72) 62%,
    rgba(252, 250, 245, 0) 100%
  );
  transition: background 0.35s ease;
}

html body #acos-header .acos-top-bar,
html body #acos-header .acos-nav-bar {
  position: relative;
  z-index: 1;
}

html body #acos-header.scrolled {
  position: fixed !important;
  top: var(--acos-admin-bar-offset) !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  box-shadow: 0 2px 12px rgba(27, 58, 107, 0.10) !important;
}

html body #acos-header.scrolled::before {
  background: linear-gradient(
    180deg,
    var(--acos-color-off-white) 0%,
    var(--acos-color-off-white) 88%,
    rgba(252, 250, 245, 0) 100%
  );
}

/* Sticky header — slightly smaller logo + space beneath (desktop) */
@media (min-width: 901px) {
  html body #acos-header.scrolled {
    padding-bottom: 8px;
  }

  html body #acos-header.scrolled .acos-header-grid {
    grid-template-columns: var(--acos-logo-w-scrolled) 1fr;
  }

  html body #acos-header.scrolled .acos-logo {
    width: var(--acos-logo-w-scrolled);
    height: auto;
    padding-bottom: var(--acos-logo-space-below);
    box-sizing: content-box;
  }

  html body #acos-header.scrolled .acos-logo .custom-logo-link,
  html body #acos-header.scrolled .acos-logo .custom-logo-link img,
  html body #acos-header.scrolled .acos-logo img {
    width: var(--acos-logo-w-scrolled) !important;
    height: var(--acos-logo-h-scrolled) !important;
    max-width: var(--acos-logo-w-scrolled) !important;
  }
}

/* Logged-in: explicit offset so utility bar is not hidden under #wpadminbar */
html.admin-bar body #acos-header,
body.admin-bar #acos-header {
  top: 32px !important;
  top: var(--acos-admin-bar-offset) !important;
}

html.admin-bar body #acos-header.scrolled,
body.admin-bar #acos-header.scrolled {
  top: 32px !important;
  top: var(--acos-admin-bar-offset) !important;
}

@media screen and (max-width: 782px) {
  html.admin-bar body #acos-header,
  body.admin-bar #acos-header,
  html.admin-bar body #acos-header.scrolled,
  body.admin-bar #acos-header.scrolled {
    top: 46px !important;
    top: var(--acos-admin-bar-offset) !important;
  }

  html.admin-bar .acos-mobile-overlay {
    top: 46px !important;
    top: var(--acos-admin-bar-offset) !important;
  }
}

html body #acos-header .acos-inner {
  width: 100%;
  max-width: var(--acos-max-w);
  margin: 0 auto;
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
}

/* ── Desktop header grid (Figma: logo left, menus right) ── */
html body #acos-header .acos-header-grid {
  display: grid;
  grid-template-columns: var(--acos-logo-w) 1fr;
  grid-template-rows: auto auto;
  grid-template-areas:
    "logo topbar"
    "logo navbar";
  column-gap: var(--acos-header-logo-gap);
  row-gap: var(--acos-header-menu-gap);
  align-items: start;
}

/* ── TOP BAR ── */
html body #acos-header .acos-top-bar {
  grid-area: topbar;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  width: 100%;
  min-height: 32px;
  border-bottom: none;
}

html body #acos-header .acos-utility-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none !important;
}

html body #acos-header .acos-utility-nav a {
  font-family: var(--acos-font) !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  color: var(--acos-navy) !important;
  text-decoration: none !important;
  letter-spacing: 0.03em !important;
  transition: color 0.2s;
}

html body #acos-header .acos-utility-nav a:hover { color: var(--acos-teal) !important; }

html body #acos-header .acos-icon-link {
  display: flex !important;
  align-items: center;
  text-decoration: none !important;
}

html body #acos-header .acos-icon-link svg {
  width: 17px;
  height: 17px;
  display: block;
}

html body #acos-header .acos-top-btns {
  display: flex !important;
  gap: 8px;
  flex-shrink: 0;
}

html body #acos-header .acos-btn-login,
html body #acos-header .acos-btn-donate {
  font-family: var(--acos-font) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  letter-spacing: 0.07em !important;
  text-transform: uppercase !important;
  padding: 6px 18px !important;
  border: none !important;
  cursor: pointer;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center;
  transition: opacity 0.2s, transform 0.15s;
  line-height: 1 !important;
  border-radius: var(--acos-btn-radius) !important;
  background: var(--acos-teal) !important;
  color: var(--acos-white) !important;
}

html body #acos-header .acos-btn-login:hover,
html body #acos-header .acos-btn-donate:hover { opacity: 0.85; transform: translateY(-1px); color: var(--acos-white) !important; }

/* ── NAV BAR ── */
html body #acos-header .acos-nav-bar {
  grid-area: navbar;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  width: 100%;
  min-height: 0;
}

/* ── LOGO (Figma: 104×115, top aligned with utility menu) ── */
html body #acos-header .acos-logo {
  grid-area: logo;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  flex-shrink: 0;
  width: var(--acos-logo-w);
  height: var(--acos-logo-h);
  align-self: start;
}

html body #acos-header .acos-logo a {
  display: flex;
  align-items: flex-start;
  width: 100%;
  height: 100%;
  text-decoration: none !important;
  border: none !important;
  box-shadow: none !important;
}

/* WordPress custom logo sizing */
html body #acos-header .acos-logo .custom-logo-link,
html body #acos-header .acos-logo .custom-logo-link img,
html body #acos-header .acos-logo img {
  position: relative;
  z-index: 2;
  display: block !important;
  width: var(--acos-logo-w) !important;
  height: var(--acos-logo-h) !important;
  max-width: var(--acos-logo-w) !important;
  object-fit: contain;
  object-position: top left;
  transition: width 0.3s ease, height 0.3s ease;
}

.acos-logo-text {
  font-family: var(--acos-font);
  font-size: 18px;
  font-weight: 600;
  color: var(--acos-navy);
  letter-spacing: 0.05em;
}

/* ── DESKTOP MAIN NAV ── */
html body #acos-header .acos-desktop-nav {
  display: flex;
  align-items: flex-end;
  height: auto;
}

html body #acos-header .acos-main-nav {
  display: flex;
  align-items: flex-start;
  list-style: none !important;
  height: auto;
  gap: 0;
  margin: 0 !important;
  padding: 0 !important;
}

html body #acos-header .acos-main-nav > li {
  display: flex;
  align-items: stretch;
  position: relative;
  list-style: none !important;
  height: auto;
}

html body #acos-header .acos-main-nav > li > a {
  font-family: var(--acos-font) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  color: var(--acos-navy) !important;
  text-decoration: none !important;
  padding: 6px 16px !important;
  height: auto;
  display: flex !important;
  align-items: center;
  position: relative;
  white-space: nowrap;
  transition: color 0.2s;
  box-shadow: none !important;
  border: none !important;
  background: none !important;
  line-height: 1.2 !important;
}

/* Small hover bridge — keeps dropdown open without a full-height hit area */
html body #acos-header .has-dropdown::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 6px;
  z-index: 1999;
}

html body #acos-header .acos-main-nav > li:hover > a,
html body #acos-header .acos-main-nav > li.current-menu-item > a {
  color: var(--acos-color-accent) !important;
}

/* ── DROPDOWN PANELS (mega + simple) ── */
html body #acos-header .acos-dropdown-panel {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0;
  transform: none;
  background: var(--acos-color-light-bg) !important;
  border: none;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 10px 32px rgba(27, 58, 107, 0.14);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 2000;
}

html body #acos-header .acos-dropdown-panel.acos-mega-menu {
  width: 528px !important;
  max-width: min(528px, calc(100vw - 48px)) !important;
  padding: 30px 42px !important;
  background: #E1E7F0 !important;
  border-radius: 0 0 20px 20px !important;
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25) !important;
  align-items: start;
}

html body #acos-header .has-dropdown:hover > .acos-dropdown-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

/* Applied via JS to nav items near the right edge of the header, where a
   left-aligned panel would otherwise run off the page — flips it to hang
   from the right edge of the nav item instead. */
html body #acos-header .acos-dropdown-panel.acos-dropdown-flip {
  left: auto;
  right: 0;
}

/* ── MEGA MENU (Figma dropdown-v2) ── */
html body #acos-header .acos-mega-menu {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

html body #acos-header .acos-mega-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
  min-width: 0;
}

/* Vertical divider */
html body #acos-header .acos-mega-col + .acos-mega-col {
  border-left: none;
  position: relative;
  padding-left: 20px;
}

html body #acos-header .acos-mega-col + .acos-mega-col::before {
  content: '';
  position: absolute;
  left: 0;
  top: 23px;
  bottom: 26px;
  width: 1px;
  background: #0E8880;
}

/* Level 1 headings — menu/level 1 */
html body #acos-header .acos-mega-menu .acos-mega-title {
  font-family: var(--acos-font) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 26px !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  color: var(--acos-color-primary) !important;
  text-decoration: none !important;
  padding: 0 !important;
  border: none !important;
  margin: 0 !important;
  display: block !important;
  transition: color 0.18s;
  background: none !important;
  box-shadow: none !important;
}

html body #acos-header .acos-mega-menu .acos-mega-group > .acos-mega-title {
  margin-bottom: 8px !important;
}

html body #acos-header .acos-mega-menu .acos-mega-group > a.acos-mega-title:only-child {
  margin-bottom: 0 !important;
}

html body #acos-header .acos-mega-menu .acos-mega-col > a.acos-mega-title {
  margin-bottom: 8px !important;
}

html body #acos-header .acos-mega-menu a.acos-mega-title:hover {
  color: #3588C0 !important;
}

/* Level 2 links — menu/level 2 */
html body #acos-header .acos-mega-menu a:not(.acos-mega-title) {
  font-family: var(--acos-font) !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 24px !important;
  letter-spacing: 0.04em !important;
  text-transform: none !important;
  color: var(--acos-color-primary) !important;
  text-decoration: none !important;
  padding: 0 0 0 10px !important;
  margin: 0 !important;
  display: block !important;
  transition: color 0.18s;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

html body #acos-header .acos-mega-menu .acos-mega-col > a:not(.acos-mega-title):not(:last-child) {
  margin-bottom: 12px !important;
}

html body #acos-header .acos-mega-menu a:not(.acos-mega-title):hover,
html body #acos-header .acos-mega-menu a.acos-highlight,
html body #acos-header .acos-mega-menu a.acos-highlight:hover {
  color: #3588C0 !important;
}

html body #acos-header .acos-mega-menu .acos-mega-col + .acos-mega-col a:not(.acos-mega-title) {
  padding-left: 10px !important;
}

/* ── MEGA MENU GROUPS ── */
html body #acos-header .acos-mega-group {
  display: flex;
  flex-direction: column;
  gap: 0;
}

html body #acos-header .acos-mega-group + .acos-mega-group {
  margin-top: 20px;
}

html body #acos-header .acos-mega-sub-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

html body #acos-header .acos-mega-sub-group a {
  padding: 0 0 0 10px !important;
  margin: 0 !important;
}

/* ── SIMPLE DROPDOWN (styled to match the mega menu panel) ── */
html body #acos-header .acos-simple-dropdown {
  min-width: 240px;
  max-width: min(320px, calc(100vw - 48px));
  padding: 24px 28px !important;
  background: #E1E7F0 !important;
  border-radius: 0 0 20px 20px !important;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25) !important;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

html body #acos-header .acos-simple-dropdown .acos-dropdown-link {
  font-family: var(--acos-font) !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 24px !important;
  letter-spacing: 0.04em !important;
  text-transform: none !important;
  color: var(--acos-color-primary) !important;
  text-decoration: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: block !important;
  transition: color 0.18s;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

html body #acos-header .acos-simple-dropdown .acos-dropdown-link:hover,
html body #acos-header .acos-simple-dropdown .acos-dropdown-link.acos-highlight {
  color: #3588C0 !important;
}

/* ── HAMBURGER ── */
.acos-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none !important;
  border: none !important;
  cursor: pointer;
  padding: 4px;
  z-index: 3001;
}

.acos-hamburger:hover,
.acos-hamburger:focus,
.acos-hamburger:active {
  background: none !important;
  background-color: transparent !important;
}

.acos-hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--acos-navy);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.acos-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.acos-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.acos-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ══════════════════════════════
   MOBILE OVERLAY — full screen
══════════════════════════════ */
.acos-mobile-overlay {
	position: fixed;
	top: var(--acos-admin-bar-offset);
	left: 0;
	right: 0;
	bottom: 0;
	height: auto;
	max-height: none;
	background: var(--acos-light-bg);
	border-radius: 0;
	box-shadow: none;
	z-index: 3000;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	font-family: var(--acos-font);
	transform: translateY(-100%);
	visibility: hidden;
	transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1),
		visibility 0.38s;
	padding: 25px;
}

.acos-mobile-overlay.open {
  transform: translateY(0);
  visibility: visible;
}

/* Dim backdrop behind the drawer */
.acos-overlay-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(27, 58, 107, 0.3);
  z-index: 2999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.38s ease, visibility 0.38s ease;
}

.acos-overlay-backdrop.open {
  opacity: 1;
  visibility: visible;
}

/* ── Overlay header row — matches mobile nav bar height ── */
.acos-overlay-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 72px;
  flex-shrink: 0;
  box-sizing: border-box;
  padding-left: 0;
  padding-right: 0;
}

.acos-overlay-back {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--acos-font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--acos-color-primary) !important;
  background: none !important;
  border: none !important;
  cursor: pointer;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, color 0.15s;
}

.acos-overlay-back svg { width: 15px; height: 15px; flex-shrink: 0; }
.acos-overlay-back:hover,
.acos-overlay-back:focus,
.acos-overlay-back:active {
  background: none !important;
  background-color: transparent !important;
}
.acos-overlay-back:hover,
.acos-overlay-back:hover svg,
.acos-overlay-back:focus,
.acos-overlay-back:focus svg { color: var(--acos-teal) !important; }
.acos-overlay-back.visible { opacity: 1; pointer-events: all; }

.acos-overlay-title { display: none; }

.acos-overlay-close {
  background: none !important;
  border: none !important;
  cursor: pointer;
  padding: 4px;
  color: var(--acos-color-primary) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
}

.acos-overlay-close svg { width: 22px; height: 22px; display: block; }
.acos-overlay-close:hover,
.acos-overlay-close:focus,
.acos-overlay-close:active {
  background: none !important;
  background-color: transparent !important;
}
.acos-overlay-close:hover,
.acos-overlay-close:hover svg,
.acos-overlay-close:focus,
.acos-overlay-close:focus svg { color: var(--acos-teal) !important; }

/* ── Panels ── */
.acos-overlay-panels {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
}

/* Base panel — no position here, controlled per-state below */
.acos-panel {
  width: 100%;
  padding-bottom: 24px;
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.32s;
}

/* Active panel: in normal flow so content drives overlay height */
.acos-panel.panel-active {
  position: relative;
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}

/* Inactive panels: absolutely overlaid, out of flow, clipped by overflow-x: hidden */
.acos-panel.panel-right {
  position: absolute;
  inset: 0;
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
}

.acos-panel.panel-left {
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  opacity: 0;
  pointer-events: none;
}

/* ── Mobile nav items ── */
.acos-mob-item {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 15px 22px;
  font-family: var(--acos-font) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  border: none !important;
  background: none !important;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, color 0.15s;
  box-shadow: none !important;
  text-decoration: none !important;
  padding-top: 0px;
  padding-bottom: 10px;
  color: var(--acos-color-primary) !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  -webkit-tap-highlight-color: transparent;
}

.acos-mob-item svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--acos-color-primary); }
.acos-mob-item:hover { color: var(--acos-teal) !important; }
.acos-mob-item:hover svg { color: var(--acos-teal); }
.acos-mob-teal { color: var(--acos-teal) !important; }
.acos-mob-teal svg { color: var(--acos-teal) !important; }

/* Row pairing a top-level item's own link with the arrow that opens its submenu */
.acos-mob-row {
  display: flex;
  align-items: center;
}

.acos-mob-row .acos-mob-item {
  flex: 0 0 auto;
  width: auto;
  border-bottom: none !important;
  justify-content: flex-start;
}

.acos-mob-arrow {
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 auto;
  width: auto;
  min-width: 40px;
  height: 40px;
  padding: 0 !important;
  margin: 0;
  border: none !important;
  background: none !important;
  box-shadow: none !important;
  cursor: pointer;
  color: var(--acos-color-primary) !important;
  -webkit-tap-highlight-color: transparent;
}

.acos-mob-arrow svg { width: 14px; height: 14px; color: var(--acos-color-primary) !important; }
.acos-mob-arrow:hover,
.acos-mob-arrow:focus,
.acos-mob-arrow:active {
  background: none !important;
  background-color: transparent !important;
}
.acos-mob-arrow:hover,
.acos-mob-arrow:hover svg,
.acos-mob-arrow:focus,
.acos-mob-arrow:focus svg { color: var(--acos-teal) !important; }

.acos-mob-divider {
  height: 1px;
  background: var(--acos-border);
  margin: 6px 0;
}

.acos-mob-util {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--acos-font);
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--acos-color-text-muted) !important;
  text-decoration: none !important;
  transition: color 0.15s;
  line-height: 28px;
}

.acos-mob-util svg { width: 13px; height: 13px; color: var(--acos-color-primary); opacity: 0.5; }
.acos-mob-util:hover { color: var(--acos-teal) !important; }

.acos-mob-sub {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  font-family: var(--acos-font) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: var(--acos-color-primary) !important;
  text-decoration: none !important;
  border-bottom: 1px solid rgba(208,220,232,0.6) !important;
  background: none !important;
  box-shadow: none !important;
  transition: color 0.15s;
}

.acos-mob-sub:hover { color: var(--acos-teal) !important; }
.acos-mob-sub.acos-highlight { color: var(--acos-teal) !important; }

/* ── Mobile mega group (always expanded — no accordion toggle) ── */
.acos-mob-accordion-panel {
  padding-top: 4px;
}

.acos-mob-accordion-panel .acos-mob-sub {
    padding: 0;
    padding-left: 12px;
    font-weight: 400 !important;
    letter-spacing: 0.04em !important;
    line-height: 38px;
    border: none !important;

}

/* Plain mobile items (no children / no chevron) */
a.acos-mob-item:not(.acos-mob-teal) {
  justify-content: flex-start;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  html body #acos-header .acos-main-nav > li > a { padding: 0 10px !important; font-size: 13px !important; }
}

@media (max-width: 900px) {
  html body #acos-header {
    position: fixed !important;
    top: var(--acos-admin-bar-offset) !important;
    height: 72px !important;
    min-height: 0 !important;
    padding-top: 0 !important;
    box-sizing: border-box !important;
    border-bottom: 1px solid transparent !important;
    box-shadow: none !important;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }

  html body #acos-header:not(.scrolled) {
    border-bottom-color: rgba(208, 220, 232, 0.45) !important;
  }

  html body #acos-header::before {
    background: linear-gradient(
      180deg,
      rgba(252, 250, 245, 0.95) 0%,
      rgba(252, 250, 245, 0.55) 70%,
      rgba(252, 250, 245, 0) 100%
    );
  }

  html body #acos-header.scrolled {
    position: fixed !important;
    top: var(--acos-admin-bar-offset) !important;
    border-bottom-color: transparent !important;
    box-shadow: 0 2px 12px rgba(27, 58, 107, 0.10) !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  html body #acos-header.scrolled::before {
    background: var(--acos-color-off-white);
  }

  html body #acos-header .acos-header-grid {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    padding: 0 20px;
    gap: 0;
  }

  html body #acos-header .acos-top-bar     { display: none !important; }
  html body #acos-header .acos-desktop-nav { display: none !important; }

  html body #acos-header .acos-nav-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: auto;
    flex: 0 0 auto;
  }

  html body #acos-header .acos-logo {
    position: static;
    width: auto;
    height: 52px;
    display: flex;
    align-items: center;
  }

  html body #acos-header .acos-hamburger {
    display: flex !important;
    flex-shrink: 0 !important;
    width: 40px !important;
    height: 40px !important;
    margin: 0 !important;
    padding: 4px !important;
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    align-items: center !important;
    justify-content: center !important;
  }

  html body #acos-header .acos-hamburger span {
    width: 22px;
    height: 2px;
    background: var(--acos-navy) !important;
  }

  html body #acos-header .acos-hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  html body #acos-header .acos-hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Override ALL logo elements to 52px so the <a> wrapper doesn't overflow the nav bar */
  html body #acos-header .acos-logo .custom-logo-link,
  html body #acos-header .acos-logo .custom-logo-link img,
  html body #acos-header .acos-logo img { height: 52px !important; bottom: -4px;}
	
	/* .acos-mob-accordion {
		margin-bottom: 20px;
	} */

	/* .acos-mob-accordion-panel {
		margin-top: 30px;
	} */

	.acos-mob-item{
		padding-left: 0;
	}
  a.acos-mob-item.acos-mob-teal {
    color: var(--acos-color-primary) !important;
  }
}
