/*
Theme Name: Enfold Child
Description: Child theme for Enfold with custom header adjustments.
Version: 1.0.0
Author: Local Dev
Template: enfold
Text Domain: enfold-child
*/

.enf-child-custom-header #header {
  --enf-float-max: 1480px;
  --enf-float-width: calc(100% - 96px);
  border: 0;
  box-shadow: none;
  background: transparent !important;
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 0 !important;
  min-height: 0 !important;
  overflow: visible !important;
}

.enf-child-custom-header #header .header_bg {
  background: transparent !important;
  opacity: 0 !important;
  display: none !important;
}

.enf-child-custom-header #header_main {
  background: transparent;
  padding: 0;
  border: 0 !important;
}

.enf-child-custom-header #header_main_alternate,
.enf-child-custom-header #header_meta {
  border: 0 !important;
  background: transparent !important;
}

.enf-child-custom-header #header_main.container_wrap,
.enf-child-custom-header #header_main.container_wrap_logo,
.enf-child-custom-header #header_main > .container,
.enf-child-custom-header #header_main .container,
.enf-child-custom-header #header .container_wrap {
  background: transparent !important;
  border: 0 !important;
  border-bottom: 0 !important;
  border-top: 0 !important;
  box-shadow: none !important;
}

.enf-child-custom-header #header,
.enf-child-custom-header #header_main,
.enf-child-custom-header #header_main_alternate,
.enf-child-custom-header #header_meta {
  border: 0 !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
}

.enf-child-custom-header #header::before,
.enf-child-custom-header #header::after,
.enf-child-custom-header #header_main::before,
.enf-child-custom-header #header_main::after {
  display: none !important;
  content: none !important;
}

.enf-child-custom-header #main {
  border-top: 0 !important;
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.enf-child-custom-header #main .container_wrap:first-child,
.enf-child-custom-header #main .container_wrap_first {
  border-top: 0 !important;
}

.enf-child-custom-header.html_header_top.html_header_sticky #main,
.enf-child-custom-header.html_header_top.html_header_sticky #top #main {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.enf-child-custom-header .enf-child-topbar,
.enf-child-custom-header #header_main > .container,
.enf-child-custom-header #header_main .av-logo-container {
  max-width: var(--enf-float-max) !important;
  width: var(--enf-float-width) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.enf-child-topbar {
  background: #d4d6d2;
  color: #213131;
  font-size: 13px;
  line-height: 1.2;
  margin-top: 38px;
  margin-bottom: -1px;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  position: relative;
  z-index: 2;
  border: 0 !important;
  border-bottom: 0 !important;
}

.enf-child-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 44px;
  padding: 0 22px;
  width: 100%;
  max-width: none;
}

/* Fallback for cached/older markup that still uses .container in topbar */
.enf-child-topbar > .container {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 18px !important;
  min-height: 44px !important;
  height: auto !important;
  line-height: 1.2 !important;
  padding: 0 22px !important;
  width: 100% !important;
  max-width: none !important;
  border: 0 !important;
  border-bottom: 0 !important;
}

.enf-child-topbar__left,
.enf-child-topbar__right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.enf-child-stars {
  color: #f6a609;
  letter-spacing: 1px;
}

.enf-child-topbar strong {
  font-weight: 700;
}

.enf-child-topbar a {
  color: #213131;
  text-decoration: none;
}

.enf-child-topbar__right {
  white-space: nowrap;
}

.enf-child-custom-header #header_main .av-logo-container {
  background: #ffffff;
  min-height: 82px;
  border-radius: 0 0 12px 12px;
  margin-top: 0 !important;
  padding: 0 26px 0 34px;
  box-shadow: 0 8px 24px rgba(12, 20, 19, 0.08);
  border-top: 0 !important;
  border: 0 !important;
  height: 82px !important;
  line-height: 82px !important;
}

.enf-child-custom-header #header_main > .container {
  background: #ffffff !important;
  border-radius: 0 0 12px 12px !important;
  border-top: 0 !important;
  overflow: visible !important;
  border: 0 !important;
  height: 82px !important;
  line-height: 82px !important;
}

.enf-child-custom-header #header_main .av-logo-container .inner-container {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px !important;
}

.enf-child-custom-header #header_main .logo,
.enf-child-custom-header #header_main .logo a {
  height: 100% !important;
  line-height: 1 !important;
  display: flex !important;
  align-items: center !important;
  margin-left: 8px;
}

.enf-child-custom-header #header_main .logo img,
.enf-child-custom-header #header_main .logo svg {
  max-height: 50px !important;
  width: auto;
  height: auto !important;
  margin: 0;
  display: block;
}

.enf-child-custom-header .main_menu {
  display: flex;
  align-items: center;
}

.enf-child-custom-header .main_menu .av-main-nav-wrap {
  display: flex;
  align-items: center;
  overflow: visible;
}

.enf-child-custom-header .av-main-nav > li > a {
  color: #2d3436;
  font-size: 17px;
  font-weight: 400;
  height: 82px !important;
  line-height: 82px !important;
}

.enf-child-custom-header .av-main-nav > li {
  margin-left: 10px;
}

.enf-child-custom-header .main_menu,
.enf-child-custom-header .main_menu .menu,
.enf-child-custom-header .main_menu .av-main-nav,
.enf-child-custom-header .main_menu .av-main-nav > li {
  overflow: visible;
}

.enf-child-custom-header .av-main-nav > li.menu-item-has-children {
  position: relative;
}

.enf-child-custom-header .av-main-nav > li > ul,
.enf-child-custom-header .av-main-nav > li ul {
  margin-top: 0 !important;
}

.enf-child-custom-header .av-main-nav ul {
  background: #ffffff !important;
  border: 0 !important;
  border-radius: 14px;
  box-shadow: 0 14px 32px rgba(12, 20, 19, 0.12);
  min-width: 280px;
  padding: 12px 0;
}

.enf-child-custom-header .av-main-nav ul li {
  width: 100%;
  background: #ffffff !important;
  border: 0 !important;
}

.enf-child-custom-header .av-main-nav ul a {
  display: block;
  color: #2d3436 !important;
  background: #ffffff !important;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35 !important;
  height: auto !important;
  padding: 14px 22px !important;
  border: 0 !important;
}

.enf-child-custom-header .av-main-nav ul a:hover,
.enf-child-custom-header .av-main-nav ul a:focus {
  background: #f3f4f1 !important;
  color: #213131 !important;
}

.enf-child-custom-header .av-main-nav ul .avia-menu-fx {
  display: none !important;
}

.enf-child-custom-header #header.header-scrolled .enf-child-topbar,
.enf-child-custom-header #header.header-scrolled-full .enf-child-topbar {
  display: none;
}

.enf-child-custom-header #header.header-scrolled,
.enf-child-custom-header #header.header-scrolled-full {
  position: fixed !important;
  top: 20px !important;
}

.enf-child-custom-header #header.header-scrolled #header_main,
.enf-child-custom-header #header.header-scrolled-full #header_main {
  padding-top: 0;
}

.enf-child-custom-header #header.header-scrolled #header_main .av-logo-container,
.enf-child-custom-header #header.header-scrolled-full #header_main .av-logo-container {
  border-radius: 12px;
  margin-top: 0;
}

@media only screen and (max-width: 989px) {
  .enf-child-custom-header #header {
    position: relative !important;
    --enf-float-width: calc(100% - 24px);
  }

  .enf-child-custom-header .enf-child-topbar,
  .enf-child-custom-header #header_main > .container,
  .enf-child-custom-header #header_main .av-logo-container {
    width: var(--enf-float-width) !important;
  }

  .enf-child-topbar {
    margin-top: 20px;
  }

  .enf-child-topbar-inner,
  .enf-child-topbar > .container {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
  }

  .enf-child-custom-header #header_main .av-logo-container {
    padding: 0 14px;
  }

  .enf-child-topbar__left,
  .enf-child-topbar__right {
    flex-wrap: wrap;
    gap: 8px;
  }

  .enf-child-topbar__right {
    white-space: normal;
  }
}
