/* ==============================================
   Top Bar  —  navy background, green accent stripe
   ============================================== */
.ch-top-bar {
  background: var(--primary);
  border-bottom: 3px solid var(--secondary);
  padding: 7px 0;
}

.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: sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  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: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.18s ease, transform 0.18s ease;
}

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

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

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

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

/* ==============================================
   Header  —  white, sticky, subtle shadow
   ============================================== */

/* 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: 1px solid var(--header-border);
  position: sticky;
  top: 0;
  z-index: 9999;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

/* Deeper shadow + hide border when fully stuck (top bar gone) */
.ch-header-stuck {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.13);
  border-bottom-color: transparent;
}

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

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

/* Image logo (replaces text when logo_url is set) */
.ch-logo-img {
  display: block;
  height: 60px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
}

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

.ch-primary-name {
  font-family: 'Cyan', sans-serif;
  font-size: 30px;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--primary);
  -webkit-text-stroke: 0.5px var(--primary);
  display: block;
}

.ch-logo-subtitle {
  font-family: 'Cyan', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--secondary);
  display: block;
  margin-top: 2px;
}

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

.ch-nav-list {
  list-style: none;
  display: flex;
  align-items: stretch;
  height: 72px;
  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: sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  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;
  height: 100%;
}

/* Sliding ink underline */
.ch-nav-list > li > a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--secondary);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px 2px 0 0;
}

.ch-nav-list > li > a:hover {
  color: var(--primary);
}

.ch-nav-list > li > a:hover::before {
  transform: scaleX(1);
}

.ch-nav-list > li.current-menu-item > a,
.ch-nav-list > li.current_page_item > a {
  color: var(--primary);
}

.ch-nav-list > li.current-menu-item > a::before,
.ch-nav-list > li.current_page_item > a::before {
  transform: scaleX(1);
  background: var(--primary);
}

/* 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: 200px;
  list-style: none;
  margin: 0;
  padding: 4px 0;
  background: var(--header-bg);
  border: 1px solid var(--header-border);
  border-top: 3px solid var(--secondary);
  border-radius: 0 0 8px 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  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);
}

/* Dropdown items */
.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: 10px 16px;
  font-family: sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  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;
  margin-right: 3px;
}

.ch-nav-list > li > ul.sub-menu > li > a:hover {
  color: var(--primary);
  background: var(--header-off-white);
  border-left-color: var(--secondary);
  transform: translateX(3px);
}

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

/* ==============================================
   CTA Button  —  green, white text
   ============================================== */
.ch-header-cta {
  font-family: sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--secondary);
  color: var(--on-secondary);
  padding: 10px 24px;
  border-radius: 3px;
  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: var(--secondary-light);
  color: var(--on-secondary); 
  box-shadow: 0 6px 16px rgba(0, 119, 41, 0.3);
}

/* ==============================================
   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: 24px;
  height: 2px;
  background: var(--header-text);
  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: -7px; }
.ch-hamburger::after  { top: 7px; }

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

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

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