/* Mobile Header Styles - Matching WordPress Hendon Theme */

#qodef-page-mobile-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: none;
  height: 70px;
  z-index: 10000;
  background-color: #19130b;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#qodef-page-mobile-header .qodef-mobile-header-logo-link {
  position: relative;
  display: flex;
  align-items: center;
  height: 70px;
  max-height: 100%;
}

#qodef-page-mobile-header .qodef-mobile-header-logo-link img {
  display: block;
  margin: auto;
  width: auto;
  max-height: 75%; /* 25% smaller than original 100% */
  transition: opacity 0.3s ease;
}

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

.qodef-mobile-header-opener {
  font-size: 20px;
  margin-left: 20px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.qodef-mobile-header-opener svg {
  display: inline-block;
  vertical-align: middle;
}

.qodef-mobile-header-opener.qodef--opened svg rect {
  transition: transform 0.3s ease;
}

.qodef-mobile-header-opener.qodef--opened svg rect:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
  transform-origin: center;
}

.qodef-mobile-header-opener.qodef--opened svg rect:nth-child(2) {
  transform: rotate(-45deg) translate(6px, -6px);
  transform-origin: center;
}

.qodef-mobile-header-navigation {
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  width: 100%;
  max-height: calc(100vh - 70px);
  background-color: #ffffff;
  border-bottom: 1px solid rgba(12, 7, 5, 0.1);
  padding: 0;
  margin: 0;
  overflow-y: auto;
  z-index: 10;
}

.qodef-mobile-header-navigation.qodef--opened {
  display: block;
}

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

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

.qodef-mobile-header-navigation ul li ul {
  display: none;
}

.qodef-mobile-header-navigation ul li.menu-item-has-children > a {
  position: relative;
  padding-right: 30px;
}

.qodef-mobile-header-navigation ul li.menu-item-has-children > a .qodef-menu-arrow {
  position: absolute;
  top: 6px;
  right: 0;
  line-height: inherit;
  transform-origin: 50% 50%;
  transition: transform 0.2s ease-out;
}

.qodef-mobile-header-navigation ul li.menu-item-has-children.qodef--opened > a .qodef-menu-arrow {
  transform: rotate(90deg);
}

.qodef-mobile-header-navigation ul li > ul.sub-menu {
  padding-left: 15px;
}

.qodef-mobile-header-navigation > ul {
  margin: 0 auto;
  padding: 34px 17px;
}

.qodef-mobile-header-navigation > ul > li > a {
  display: inline-block;
  margin: 5px 0;
  font-family: "Raleway", sans-serif;
  font-size: 11px;
  line-height: 2.09em;
  letter-spacing: 0.3em;
  font-weight: 500;
  text-transform: uppercase;
  color: #19130b;
  text-decoration: none;
}

.qodef-mobile-header-navigation > ul > li > a .qodef-menu-item-text {
  position: relative;
  padding: 5px 0;
}

.qodef-mobile-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);
}

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

.qodef-mobile-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-mobile-header-navigation > ul > li.current-menu-ancestor > a,
.qodef-mobile-header-navigation > ul > li.current-menu-item > a {
  color: #d7926b;
}

.qodef-mobile-header-navigation > ul > li.current-menu-ancestor > a .qodef-menu-item-text:after,
.qodef-mobile-header-navigation > 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);
}

.qodef-mobile-header-navigation ul li > ul.sub-menu li a {
  position: relative;
  display: flex;
  white-space: nowrap;
  margin: 11px 0;
  font-family: "Raleway", sans-serif;
  font-size: 11px;
  line-height: 2.09em;
  letter-spacing: 0.3em;
  font-weight: 400;
  text-transform: uppercase;
  color: #a8a7a5;
  text-decoration: none;
}

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

.qodef-mobile-header-navigation ul li > ul.sub-menu 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);
}

.qodef-mobile-header-navigation ul li > ul.sub-menu li a:hover {
  color: #d7926b;
}

.qodef-mobile-header-navigation ul li > ul.sub-menu 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-mobile-header-navigation ul li > ul.sub-menu li.current-menu-ancestor > a,
.qodef-mobile-header-navigation ul li > ul.sub-menu li.current-menu-item > a {
  color: #d7926b;
}

.qodef-mobile-header-navigation ul li > ul.sub-menu li.current-menu-ancestor > a .qodef-menu-item-text:after,
.qodef-mobile-header-navigation ul li > ul.sub-menu 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);
}

/* Hide desktop header on mobile */
@media only screen and (max-width: 1024px) {
  #qodef-page-mobile-header {
    display: block !important;
    z-index: 10000 !important;
  }
  
  #qodef-page-header {
    display: none !important;
  }
  
  body.home {
    padding-top: 0 !important;
  }
  
  body {
    padding-top: 0 !important;
  }
  
  /* Blog pages - content starts below mobile header */
  body.blog-page {
    padding-top: 0 !important;
  }
  
  body.blog-page .blog-hero {
    margin-top: 70px !important;
  }
  
  /* Make slider start right below fixed header - no gap */
  body.home .hero-slider {
    margin-top: 70px !important;
    padding-top: 0 !important;
  }
  
  .hero-slider {
    margin-top: 70px !important;
    padding-top: 0 !important;
  }
}

/* Responsive adjustments */
@media only screen and (max-width: 768px) {
  #qodef-page-mobile-header {
    z-index: 10000 !important;
    height: 70px !important;
  }
  
  #qodef-page-mobile-header-inner {
    padding: 0 20px;
  }
  
  .qodef-mobile-header-opener {
    margin-left: 10px;
  }
  
  .qodef-mobile-header-opener svg {
    width: 50px;
    height: 17px;
  }
  
  /* Ensure mobile header logo is centered */
  #qodef-page-mobile-header .qodef-mobile-header-logo-link {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
}

