/* DRAX CLUB — KADENCE HEADER
   Paste into Appearance > Customise > Additional CSS, beneath existing CSS.
   Paste CSS only, without HTML tags; do not place it in the homepage block.
   Upload Drax_Club_Header_Logo.png through Customise > Header > Logo.
   This styles the existing Kadence navigation; all links and menu behaviour
   continue to be managed by WordPress and Kadence.
   START DRAX CLUB HEADER */

#masthead,
#mobile-drawer {
  --drax-header-ink: #073745;
  --drax-header-teal: #006b70;
  --drax-header-deep: #053c46;
  --drax-header-paper: #f8f7f2;
  --drax-header-gold: #ba8c3d;
  --drax-header-line: #d8dfd9;
}

/* Light masthead with one fine gold dividing line. */
#masthead,
#masthead .site-header-row-container-inner,
#masthead .kadence-sticky-header.item-is-fixed:not(.item-at-start),
#masthead .kadence-sticky-header.item-is-fixed:not(.item-at-start) > .site-header-row-container-inner {
  background: var(--drax-header-paper);
  color: var(--drax-header-ink);
}
#masthead {
  border-bottom: 1px solid var(--drax-header-gold);
  box-shadow: 0 4px 16px rgb(7 55 69 / 4%);
}
#masthead .site-container {
  width: 100%;
  max-width: 1290px;
  margin-right: auto;
  margin-left: auto;
  padding-right: 30px;
  padding-left: 30px;
}

/* Responsive logo sizing; the replacement is a real image in Site Identity. */
#masthead .site-branding {
  padding: 0;
}
#masthead .site-branding a.brand {
  gap: 0;
  padding: 0;
  text-decoration: none;
}
#masthead .site-branding a.brand img.custom-logo {
  display: block;
  width: 260px;
  max-width: 260px;
  height: auto;
  max-height: none;
  object-fit: contain;
}

/* Desktop row. Kadence still controls when the mobile header appears. */
#masthead #main-header .site-main-header-inner-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  min-height: 110px;
  padding: 10px 0;
}
#masthead #main-header .site-header-main-section-left {
  flex: 0 0 auto;
}
#masthead #main-header .site-header-main-section-right {
  flex: 1 1 700px;
  min-width: 0;
  justify-content: flex-end;
}
#masthead .site-header-item-main-navigation,
#masthead #site-navigation {
  min-width: 0;
  margin: 0;
}
#masthead #site-navigation .primary-menu-container > ul.menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 5px;
  padding: 0;
  margin: 0;
  list-style: none;
}
#masthead #site-navigation .primary-menu-container > ul.menu > li > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 9px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: var(--drax-header-ink);
  font-family: inherit;
  font-size: 13px;
  font-style: normal;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: none;
  transition: color .15s ease, background-color .15s ease, border-color .15s ease;
}
#masthead #site-navigation .primary-menu-container > ul.menu > li > a:hover,
#masthead #site-navigation .primary-menu-container > ul.menu > li.current-menu-item > a,
#masthead #site-navigation .primary-menu-container > ul.menu > li.current-menu-ancestor > a {
  color: var(--drax-header-teal);
  background: #e7eee8;
  border-color: #c5d6ce;
}

/* Contact remains the same WordPress menu link, styled as an action. */
#masthead #site-navigation .primary-menu-container > ul.menu > li > a[href$="/contact/"],
#masthead #site-navigation .primary-menu-container > ul.menu > li > a[href$="/contact"] {
  margin-left: 5px;
  padding-right: 17px;
  padding-left: 17px;
  color: #fff;
  background: var(--drax-header-teal);
  border-color: var(--drax-header-teal);
}
#masthead #site-navigation .primary-menu-container > ul.menu > li > a[href$="/contact/"]:hover,
#masthead #site-navigation .primary-menu-container > ul.menu > li > a[href$="/contact"]:hover {
  color: #fff;
  background: var(--drax-header-deep);
  border-color: var(--drax-header-deep);
}

/* Dropdown colours. Their open/close behaviour stays with Kadence. */
#masthead #site-navigation .header-menu-container ul.sub-menu {
  background: var(--drax-header-paper);
  border: 1px solid var(--drax-header-line);
  border-top: 2px solid var(--drax-header-gold);
  border-radius: 0 0 5px 5px;
  box-shadow: 0 12px 28px rgb(7 55 69 / 12%);
}
#masthead #site-navigation .header-menu-container ul.sub-menu > li {
  border-color: var(--drax-header-line);
}
#masthead #site-navigation .header-menu-container ul.sub-menu > li > a {
  color: var(--drax-header-ink);
  background: var(--drax-header-paper);
  font-size: 14px;
  line-height: 1.5;
  padding: 13px 18px;
}
#masthead #site-navigation .header-menu-container ul.sub-menu > li > a:hover,
#masthead #site-navigation .header-menu-container ul.sub-menu > li.current-menu-item > a {
  color: var(--drax-header-teal);
  background: #e7eee8;
}

/* Visible keyboard focus on every header control. */
#masthead a:focus-visible,
#masthead button:focus-visible,
#mobile-drawer a:focus-visible,
#mobile-drawer button:focus-visible {
  outline: 3px solid var(--drax-header-gold);
  outline-offset: 3px;
}

/* Mobile header and existing slide-out menu. */
#masthead #mobile-header .site-main-header-inner-wrap {
  min-height: 86px;
  padding: 7px 0;
  align-items: center;
}
#masthead #mobile-header .site-branding a.brand img.custom-logo {
  width: 215px;
  max-width: 215px;
  height: auto;
}
#masthead #mobile-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  min-height: 46px;
  padding: 10px;
  border: 1px solid #ccd9d1;
  border-radius: 4px;
  color: var(--drax-header-teal);
  background: transparent;
  box-shadow: none;
}
#masthead #mobile-toggle:hover,
#masthead #mobile-toggle[aria-expanded="true"] {
  color: #fff;
  background: var(--drax-header-teal);
  border-color: var(--drax-header-teal);
}
#mobile-drawer .drawer-inner {
  color: var(--drax-header-ink);
  background: var(--drax-header-paper);
  border-left: 2px solid var(--drax-header-gold);
}
#mobile-drawer .drawer-header {
  padding: 16px 22px;
  border-bottom: 1px solid var(--drax-header-line);
}
#mobile-drawer .drawer-header .drawer-toggle {
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
  align-items: center;
  padding: 10px;
  color: var(--drax-header-ink);
  border-radius: 4px;
}
#mobile-drawer .drawer-header .drawer-toggle:hover {
  background: #e7eee8;
}
#mobile-drawer .drawer-content {
  padding: 12px 22px 28px;
}
#mobile-drawer #mobile-site-navigation ul li > a,
#mobile-drawer #mobile-site-navigation .drawer-nav-drop-wrap > a {
  color: var(--drax-header-ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  padding: 15px 10px;
  text-decoration: none;
}
#mobile-drawer #mobile-site-navigation ul li:not(.menu-item-has-children) > a,
#mobile-drawer #mobile-site-navigation .drawer-nav-drop-wrap {
  border-bottom: 1px solid var(--drax-header-line);
}
#mobile-drawer #mobile-site-navigation .drawer-nav-drop-wrap,
#mobile-drawer #mobile-site-navigation .drawer-nav-drop-wrap button {
  color: var(--drax-header-ink);
  border-color: var(--drax-header-line);
}
#mobile-drawer #mobile-site-navigation ul li > a:hover,
#mobile-drawer #mobile-site-navigation ul li.current-menu-item > a,
#mobile-drawer #mobile-site-navigation .drawer-nav-drop-wrap > a:hover {
  color: var(--drax-header-teal);
  background: #e7eee8;
}
#mobile-drawer #mobile-site-navigation ul li > a[href$="/contact/"],
#mobile-drawer #mobile-site-navigation ul li > a[href$="/contact"] {
  margin-top: 17px;
  padding: 14px 17px;
  text-align: center;
  color: #fff;
  background: var(--drax-header-teal);
  border: 1px solid var(--drax-header-teal);
  border-radius: 4px;
}

/* Give long menu labels room on smaller desktop screens. */
@media (max-width: 1199px) {
  #masthead #main-header .site-main-header-inner-wrap {
    flex-direction: column;
    gap: 0;
    padding: 8px 0 16px;
  }
  #masthead #main-header .site-header-main-section-right {
    flex: 0 1 auto;
    width: 100%;
    justify-content: center;
  }
  #masthead #site-navigation .primary-menu-container > ul.menu {
    justify-content: center;
  }
}
@media (max-width: 540px) {
  #masthead .site-container {
    padding-right: 18px;
    padding-left: 18px;
  }
  #masthead #mobile-header .site-branding a.brand img.custom-logo {
    width: 195px;
    max-width: 195px;
  }
  #masthead #mobile-header .site-main-header-inner-wrap {
    min-height: 80px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #masthead a,
  #masthead button,
  #mobile-drawer,
  #mobile-drawer .drawer-inner,
  #mobile-drawer .drawer-overlay {
    transition: none;
  }
}
/* END DRAX CLUB HEADER */
