/* WordPress Divided Header Styles - Exact Match from Hendon Theme */

/* Divided Header - Height 130px, transparent background by default */
.qodef-header--divided #qodef-page-header {
  height: 130px;
  background-color: rgba(255, 255, 255, 0);
}

/* Blog pages: Header should have black background instead of transparent */
/* Note: Dark header styles are now in dark-header.css - this is kept for backward compatibility */
body.blog-page .qodef-header--divided #qodef-page-header,
body.blog-admin-page .qodef-header--divided #qodef-page-header {
  background-color: #19130b;
}

/* Blog pages: Header inner should match header background (no separate background) */
/* But preserve all spacing, padding, and margins exactly like home page */
body.blog-page #qodef-page-header-inner,
body.blog-admin-page #qodef-page-header-inner {
  background-color: transparent;
  padding: 0 40px !important;
  margin: 0 !important;
}

/* Blog pages: "I Need Management" widget should have transparent background with border */
/* But exclude the side area opener widget */
/* Preserve spacing exactly like home page */
/* Note: Dark header styles override this - see dark-header.css */
body.blog-page #qodef-page-header .widget:not(.widget_hendon_core_side_area_opener),
body.blog-admin-page #qodef-page-header .widget:not(.widget_hendon_core_side_area_opener),
body.blog-page #qodef-page-header-inner .widget:not(.widget_hendon_core_side_area_opener),
body.blog-admin-page #qodef-page-header-inner .widget:not(.widget_hendon_core_side_area_opener) {
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 0;
  background: transparent;
  padding: 1rem 1.25rem;
  margin: 0;
}

/* Dark header styles are now in dark-header.css - apply .dark-header class to body */

/* Ensure header wrappers maintain exact spacing on blog pages */
body.blog-page .qodef-divided-header-left-wrapper,
body.blog-admin-page .qodef-divided-header-left-wrapper,
body.blog-page .qodef-divided-header-right-wrapper,
body.blog-admin-page .qodef-divided-header-right-wrapper {
  width: 732px !important;
  height: 100% !important;
  flex: 0 1 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

/* Ensure logo maintains exact spacing on blog pages */
body.blog-page #qodef-page-header .qodef-header-logo-link,
body.blog-admin-page #qodef-page-header .qodef-header-logo-link {
  margin: 31px 35px !important;
  height: 130px !important;
  flex-shrink: 0 !important;
}

/* Ensure navigation maintains exact spacing on blog pages */
body.blog-page .qodef-header-navigation,
body.blog-admin-page .qodef-header-navigation {
  margin: 0 24px !important;
  height: 100% !important;
}

/* Side area opener widget should NOT have dark background on blog pages */
body.blog-page #qodef-page-header .widget_hendon_core_side_area_opener,
body.blog-admin-page #qodef-page-header .widget_hendon_core_side_area_opener,
body.blog-page #qodef-page-header-inner .widget_hendon_core_side_area_opener,
body.blog-admin-page #qodef-page-header-inner .widget_hendon_core_side_area_opener {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
}

#qodef-page-header {
  position: relative;
  display: inline-block;
  width: 100%;
  vertical-align: top;
  z-index: 100;
}

/* Ensure header overlays content on homepage */
body.home #qodef-page-header {
  position: relative;
  z-index: 100;
}

/* Blog pages: Header should be fixed at top */
body.blog-page #qodef-page-header,
body.blog-admin-page #qodef-page-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

/* Sticky header for all pages except home and blog pages - activates after 200px scroll */
body:not(.home):not(.blog-page):not(.blog-admin-page) #qodef-page-header {
  position: relative;
  transition: none;
}

body:not(.home):not(.blog-page):not(.blog-admin-page) #qodef-page-header.sticky-header {
  position: fixed !important;
  top: 0 !important;
  left: 0;
  right: 0;
  z-index: 10000 !important;
  width: 100%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  background-color: #000000 !important;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

#qodef-page-header-inner {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: center;
  height: 100%;
  padding: 0 40px;
}

/* Left Wrapper */
.qodef-divided-header-left-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 1 auto;
  width: 732px;
  height: 100%;
}

/* Right Wrapper */
.qodef-divided-header-right-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 1 auto;
  width: 732px;
  height: 100%;
}

/* Logo */
#qodef-page-header .qodef-header-logo-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  height: 130px;
  max-height: 100%;
  margin: 31px 35px;
}

#qodef-page-header .qodef-header-logo-link img {
  display: block;
  margin: auto 0;
  width: auto;
  max-height: 100%;
  transition: opacity 0.3s ease;
}

#qodef-page-header .qodef-header-logo-link.qodef-height--set img {
  max-height: 68px;
}

/* Navigation */
.qodef-header-navigation {
  height: 100%;
  margin: 0 24px;
}

.qodef-header-navigation ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.qodef-header-navigation ul li {
  position: relative;
  margin: 0;
  padding: 0;
}

.qodef-header-navigation > ul {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  white-space: nowrap;
}

.qodef-header-navigation > ul > li {
  height: 100%;
  margin: 0 18px;
}

.qodef-header-navigation > ul > li:first-child {
  margin-left: 0;
}

.qodef-header-navigation > ul > li:last-child {
  margin-right: 0;
}

/* Menu Items - White text for divided header */
.qodef-header-navigation > ul > li > a {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  font-family: "Raleway", sans-serif;
  font-size: 10px !important;
  line-height: 1.6em !important;
  letter-spacing: 0.28em !important;
  font-weight: 500;
  text-transform: uppercase;
  color: #ffffff;
}

.qodef-header-navigation > ul > li > a:hover {
  color: #c28562;
}

.qodef-header-navigation > ul > li > a:hover .qodef-menu-item-text:after {
  transform: scaleX(1);
  transform-origin: 0 50%;
  transition: transform 0.4s cubic-bezier(0.85, 0.26, 0.17, 1);
}

.qodef-header-navigation > ul > li > a .qodef-menu-item-text {
  position: relative;
}

.qodef-header-navigation > ul > li > a .qodef-menu-item-text:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: calc(100% - 3px);
  height: 1px;
  background-color: currentColor;
  transform-origin: 100% 50%;
  transition: transform 0.3s cubic-bezier(0.85, 0.26, 0.17, 1);
  transform: scaleX(0);
  opacity: 0.4;
}

.qodef-header-navigation > ul > li.current-menu-ancestor > a,
.qodef-header-navigation > ul > li.current-menu-item > a {
  color: #c28562;
}

.qodef-header-navigation > ul > li.current-menu-ancestor > a .qodef-menu-item-text:after,
.qodef-header-navigation > ul > li.current-menu-item > a .qodef-menu-item-text:after {
  opacity: 0.4;
  transform: scaleX(1);
  transform-origin: 0 50%;
  transition: transform 0.4s cubic-bezier(0.85, 0.26, 0.17, 1);
}

/* Menu Arrow */
.qodef-header-navigation ul li .qodef-menu-arrow {
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;
}

.qodef-header-navigation ul li .qodef-menu-arrow svg {
  fill: currentColor;
  transition: all 0.2s ease-out;
}

.qodef-header-navigation ul li .qodef-menu-arrow * {
  fill: currentColor;
}

/* Dropdown Menu Styles */
.qodef-header-navigation ul li.qodef-menu-item--narrow ul {
  position: absolute;
  top: 100%;
  left: 0;
  width: 295px;
  margin: 0;
  padding: 23px 0 21px;
  background-color: #19130b;
  border-top: 3px solid #c28562;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.qodef-header-navigation ul li.qodef-menu-item--narrow:hover > ul {
  opacity: 1;
  visibility: visible;
}

.qodef-header-navigation ul li.qodef-menu-item--narrow ul li {
  padding: 0 40px;
}

.qodef-header-navigation > ul > li.qodef-menu-item--narrow ul li > a {
  font-family: "Raleway", sans-serif;
  font-size: 10px !important;
  line-height: 1.6em !important;
  letter-spacing: 0.28em !important;
  font-weight: 400;
  text-transform: uppercase;
  color: #a8a7a5;
  transition: all 0.2s ease-out;
}

.qodef-header-navigation > ul > li.qodef-menu-item--narrow ul li > a .qodef-menu-item-text {
  position: relative;
}

.qodef-header-navigation > ul > li.qodef-menu-item--narrow ul li > a .qodef-menu-item-text:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: calc(100% - 3px);
  height: 1px;
  background-color: currentColor;
  transform-origin: 100% 50%;
  transition: transform 0.3s cubic-bezier(0.85, 0.26, 0.17, 1);
  transform: scaleX(0);
  opacity: .4;
}

.qodef-header-navigation > ul > li.qodef-menu-item--narrow ul:not(.qodef-drop-down--right) li > a {
  position: relative;
  display: flex;
  white-space: nowrap;
  margin: 11px 0;
}

.qodef-header-navigation > ul > li.qodef-menu-item--narrow ul li:hover > a,
.qodef-header-navigation > ul > li.qodef-menu-item--narrow ul li.current-menu-ancestor > a,
.qodef-header-navigation > ul > li.qodef-menu-item--narrow ul li.current-menu-item > a {
  color: #d7926b;
}

.qodef-header-navigation > ul > li.qodef-menu-item--narrow ul li:hover > a .qodef-menu-item-text:after,
.qodef-header-navigation > ul > li.qodef-menu-item--narrow ul li.current-menu-ancestor > a .qodef-menu-item-text:after,
.qodef-header-navigation > ul > li.qodef-menu-item--narrow ul li.current-menu-item > a .qodef-menu-item-text:after {
  transform: scaleX(1);
  transform-origin: 0 50%;
  transition: transform 0.4s cubic-bezier(0.85, 0.26, 0.17, 1);
}

/* Button Styles - "I Need Management" */
.qodef-button {
  display: inline-block;
  position: relative;
  padding: 8px 36px !important;
  font-family: "Raleway", sans-serif;
  font-size: 10px !important;
  line-height: 1.4em !important;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2.8px !important;
  text-decoration: none;
  white-space: nowrap !important;
  transition: color 0.2s ease-out, background-color 0.2s ease-out, border-color 0.2s ease-out;
  cursor: pointer;
}

.qodef-button.qodef-layout--outlined {
  background-color: transparent;
  border: 1px solid #ffffff;
  color: #ffffff;
}

.qodef-button.qodef-layout--outlined:hover {
  background-color: transparent;
  color: #ffffff;
  border-color: #ffffff;
}

.qodef-button.qodef-layout--borders-animated.qodef-layout--outlined:hover {
  background-color: transparent !important;
  color: #ffffff !important;
  border-color: transparent !important;
}

.qodef-button .qodef-m-text {
  position: relative;
  z-index: 1;
  font-size: 10px !important;
  line-height: 1.4em !important;
  white-space: nowrap !important;
}

/* Animated Border Effect */
.qodef-button.qodef-layout--borders-animated {
  border: 1px solid #ffffff;
}

.qodef-button.qodef-layout--borders-animated.qodef-layout--outlined {
  border: 1px solid #ffffff;
}

.qodef-button.qodef-layout--borders-animated .qodef-border-holder {
  position: absolute;
  inset: 3px;
}

.qodef-button.qodef-layout--outlined .qodef-border-holder {
  border: 1px solid rgba(194, 133, 98, 0.5);
}

/* Light header - white inner border */
.qodef-header--divided.qodef-header--light .qodef-widget-holder .qodef-button.qodef-layout--outlined .qodef-border-holder {
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.qodef-button.qodef-layout--borders-animated .qodef-top-border,
.qodef-button.qodef-layout--borders-animated .qodef-right-border,
.qodef-button.qodef-layout--borders-animated .qodef-bottom-border,
.qodef-button.qodef-layout--borders-animated .qodef-left-border {
  position: absolute;
  background-color: rgb(255, 255, 255);
  transition: 0.5s cubic-bezier(0.71, 0.29, 0.18, 0.97);
}

/* Light header - white borders */
.qodef-header--divided.qodef-header--light .qodef-widget-holder .qodef-button .qodef-border-holder {
  border-color: rgba(255, 255, 255, 0.5);
}

.qodef-header--divided.qodef-header--light .qodef-widget-holder .qodef-button .qodef-border-holder .qodef-top-border,
.qodef-header--divided.qodef-header--light .qodef-widget-holder .qodef-button .qodef-border-holder .qodef-right-border,
.qodef-header--divided.qodef-header--light .qodef-widget-holder .qodef-button .qodef-border-holder .qodef-bottom-border,
.qodef-header--divided.qodef-header--light .qodef-widget-holder .qodef-button .qodef-border-holder .qodef-left-border {
  background-color: rgb(255, 255, 255);
}

.qodef-button.qodef-layout--borders-animated .qodef-top-border,
.qodef-button.qodef-layout--borders-animated .qodef-bottom-border {
  width: 0px;
  height: 1px;
}

.qodef-button.qodef-layout--borders-animated .qodef-left-border,
.qodef-button.qodef-layout--borders-animated .qodef-right-border {
  width: 1px;
  height: 0px;
}

.qodef-button.qodef-layout--borders-animated .qodef-top-border {
  top: -1px;
  right: 0px;
}

.qodef-button.qodef-layout--borders-animated .qodef-bottom-border {
  left: 0px;
  bottom: -1px;
}

.qodef-button.qodef-layout--borders-animated .qodef-right-border {
  top: 0px;
  right: -1px;
}

.qodef-button.qodef-layout--borders-animated .qodef-left-border {
  left: -1px;
  bottom: 0px;
}

/* Hover state - expand borders */
.qodef-button.qodef-layout--borders-animated:hover .qodef-top-border,
.qodef-button.qodef-layout--borders-animated:hover .qodef-bottom-border {
  width: calc(100% + 1px);
}

.qodef-button.qodef-layout--borders-animated:hover .qodef-left-border,
.qodef-button.qodef-layout--borders-animated:hover .qodef-right-border {
  height: calc(100% + 1px);
}

/* Widget Holder */
.qodef-widget-holder {
  display: flex;
  align-items: center;
}

/* Hamburger Menu Icon */
.qodef-side-area-opener {
  display: inline-block;
  cursor: pointer;
}

.qodef-side-area-opener svg {
  display: block;
}

.qodef-side-area-opener svg rect {
  fill: #ffffff;
}

/* Ensure consistent font sizes - override any browser or theme defaults */
.qodef-header-navigation > ul > li > a .qodef-menu-item-text {
  font-size: 10px !important;
  line-height: 1.6em !important;
}

.qodef-header-navigation > ul > li.qodef-menu-item--narrow ul li > a {
  font-size: 10px !important;
  line-height: 1.6em !important;
}

/* Responsive - Hide header on mobile */
@media only screen and (max-width: 1024px) {
  #qodef-page-header {
    display: none;
  }
}
