/* ==============================================
   HANNA HAVOC — Header / Nav
   A dark, aggressive bar: near-black surface, smoke
   text, and Havoc-red accents. Distinct from the
   light Titans header.
   ============================================== */

/* ==============================================
   Top Bar — blacked-out strip with a red hairline
   ============================================== */
.ch-top-bar {
  background: #1a1c1b;
  border-bottom: 1px solid rgba(217, 210, 194, 0.08);
  padding: 7px 0;
  position: relative;
}

/* Red accent edge running along the very top */
.ch-top-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--primary);
}

.ch-top-bar-inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.ch-top-bar-left {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--smoke);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ch-top-bar-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.ch-top-bar-right a {
  display: flex;
  align-items: center;
  color: var(--header-muted);
  text-decoration: none;
  transition: color 0.18s ease, transform 0.18s ease;
}

.ch-top-bar-right a:hover {
  color: var(--primary);
  transform: translateY(-1px);
}

.ch-top-bar-league {
  padding-left: 16px;
  border-left: 1px solid rgba(217, 210, 194, 0.2);
}

.ch-top-bar-league-img {
  display: block;
  height: 20px;
  width: auto;
  opacity: 0.8;
  transition: opacity 0.18s ease;
}

.ch-top-bar-league:hover .ch-top-bar-league-img {
  opacity: 1;
}

/* ==============================================
   Header — dark, sticky, red base stripe
   ============================================== */

/* Divi's #page-container can carry overflow:hidden which silently breaks
   position:sticky — override it so the header actually sticks.          */
#page-container,
#et-main-area {
  overflow: visible;
}

.ch-header {
  background: var(--header-bg);
  border-bottom: 3px solid var(--primary);
  position: sticky;
  top: 0;
  z-index: 9999;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.ch-header-stuck {
  box-shadow: 0 6px 26px rgba(0, 0, 0, 0.6);
}

.ch-header-inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0 32px;
  height: 76px;
  display: flex;
  align-items: center;
  gap: 48px;
}

/* ==============================================
   Logo
   ============================================== */
.ch-logo-block {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  text-decoration: none;
}

.ch-logo-img {
  display: block;
  height: 56px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
}

.ch-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.ch-primary-name {
  font-family: 'Anton', sans-serif;
  font-size: 30px;
  text-transform: uppercase;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--smoke-light);
  display: block;
}

.ch-logo-subtitle {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--primary);
  display: block;
  margin-top: 4px;
}

/* ==============================================
   Nav
   ============================================== */
.ch-nav {
  flex: 1;
  display: flex;
  align-items: stretch;
  height: 100%;
}

.ch-nav-list {
  list-style: none;
  display: flex;
  align-items: stretch;
  height: 76px;
  margin: 0;
  padding: 0;
}

.ch-nav-list > li {
  position: relative;
  display: flex;
  align-items: stretch;
  margin: 0;
  padding: 0;
}

/* Nav links */
.ch-nav-list > li > a {
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--header-text);
  padding: 0 18px;
  display: flex;
  align-items: center;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  transition: color 0.2s ease, background 0.2s ease;
  height: 100%;
}

/* Subtle red wash on hover */
.ch-nav-list > li > a:hover {
  color: #fff;
  background: rgba(168, 43, 39, 0.16);
}

/* Red indicator bar that grows from center */
.ch-nav-list > li > a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  right: 50%;
  height: 3px;
  background: var(--primary);
  transition: left 0.28s cubic-bezier(0.4, 0, 0.2, 1), right 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.ch-nav-list > li > a:hover::before {
  left: 0;
  right: 0;
}

.ch-nav-list > li.current-menu-item > a,
.ch-nav-list > li.current_page_item > a {
  color: #fff;
}

.ch-nav-list > li.current-menu-item > a::before,
.ch-nav-list > li.current_page_item > a::before {
  left: 0;
  right: 0;
}

/* Chevron for parent items */
.ch-nav-list > li.menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  margin-left: 6px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.ch-nav-list > li.menu-item-has-children:hover > a::after {
  transform: rotate(180deg);
}

/* ==============================================
   Dropdown
   ============================================== */
.ch-nav-list > li > ul.sub-menu {
  position: absolute;
  inset-block-start: 100%;
  inset-inline-start: 0;
  display: flex;
  flex-direction: column;
  min-width: 210px;
  list-style: none;
  margin: 0;
  padding: 4px 0;
  background: #2a2d2b;
  border: 1px solid var(--header-border);
  border-top: 3px solid var(--primary);
  border-radius: 0 0 6px 6px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 300;
}

.ch-nav-list > li:hover > ul.sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.ch-nav-list > li > ul.sub-menu > li {
  list-style: none;
  margin: 0;
  padding: 0;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.ch-nav-list > li:hover > ul.sub-menu > li {
  opacity: 1;
  transform: translateY(0);
}

.ch-nav-list > li:hover > ul.sub-menu > li:nth-child(2) { transition-delay: 0.04s; }
.ch-nav-list > li:hover > ul.sub-menu > li:nth-child(3) { transition-delay: 0.08s; }
.ch-nav-list > li:hover > ul.sub-menu > li:nth-child(4) { transition-delay: 0.12s; }
.ch-nav-list > li:hover > ul.sub-menu > li:nth-child(5) { transition-delay: 0.16s; }
.ch-nav-list > li:hover > ul.sub-menu > li:nth-child(6) { transition-delay: 0.20s; }

.ch-nav-list > li > ul.sub-menu > li > a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--header-muted);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.ch-nav-list > li > ul.sub-menu > li > a:hover {
  color: #fff;
  background: rgba(168, 43, 39, 0.2);
  border-left-color: var(--primary);
  transform: translateX(3px);
}

.ch-nav-list > li > ul.sub-menu > li > a::after {
  display: none;
}

/* ==============================================
   CTA Button — solid Havoc red
   ============================================== */
.ch-header-cta {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--primary);
  color: #fff;
  padding: 11px 24px;
  border-radius: 2px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.ch-header-cta:hover {
  background: #c0332e;
  color: #fff;
  box-shadow: 0 6px 18px rgba(168, 43, 39, 0.45);
}

/* ==============================================
   Hamburger Toggle
   ============================================== */
.ch-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  margin-left: auto;
  flex-shrink: 0;
}

.ch-hamburger,
.ch-hamburger::before,
.ch-hamburger::after {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--smoke-light);
  border-radius: 2px;
  transition: all 0.3s ease;
  position: relative;
}

.ch-hamburger::before,
.ch-hamburger::after {
  content: '';
  position: absolute;
  left: 0;
}

.ch-hamburger::before { top: -8px; }
.ch-hamburger::after  { top: 8px; }

.ch-menu-toggle[aria-expanded="true"] .ch-hamburger {
  background: transparent;
}

.ch-menu-toggle[aria-expanded="true"] .ch-hamburger::before {
  top: 0;
  transform: rotate(45deg);
  background: var(--primary);
}

.ch-menu-toggle[aria-expanded="true"] .ch-hamburger::after {
  top: 0;
  transform: rotate(-45deg);
  background: var(--primary);
}
