/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/
/* === Bottom-docked Flatsome header === */
.header-wrapper {
  position: fixed !important;
  bottom: 0;
  top: auto !important;
  left: 0;
  right: 0;
  z-index: 5; /* lower than dropdowns but above content */
  width: 100%;
  border-top: 1px solid #E1E5E9;
  box-shadow: 0 -4px 12px rgba(0,0,0,.08);
  display: flex;
  flex-direction: column; /* enable stacking order */
}

/* Stack order: main nav first, then top bar, then header-bottom */
.header-wrapper .header-main   { order: 1; z-index: 2; }
.header-wrapper .header-top    { order: 2; z-index: 1; }
.header-wrapper .header-bottom { order: 3; }

/* Push page content up so it's not hidden behind header */
body {
  padding-bottom: var(--header-height, 80px); /* adjust to match header height */
}

/* === Dropdown menus (force open upward) === */
.header-wrapper .nav-dropdown,
.header-wrapper .nav > li.menu-item-has-children > ul.sub-menu {
  position: absolute !important;
  top: auto !important;
  bottom: 100% !important;
  left: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 8px !important;
  transform: none !important;
  transform-origin: bottom center !important;
  z-index: 9999 !important;
}

/* Remove the dropdown "pointer" triangle */
.header-wrapper .nav-dropdown::before,
.header-wrapper .nav-dropdown::after,
.header-wrapper .nav > li.menu-item-has-children > ul.sub-menu::before,
.header-wrapper .nav > li.menu-item-has-children > ul.sub-menu::after {
  display: none !important;
  content: none !important;
}

/* Flip caret arrows beside parent items */
.header-wrapper .nav > li.has-dropdown > a::after,
.header-wrapper .nav > li.has-dropdown > a > i,
.header-wrapper .nav > li.has-dropdown > a svg,
.header-wrapper .nav > li.menu-item-has-children > a::after {
  transform: rotate(180deg) !important;
  display: inline-block;
  margin-top: -2px;
}

/* === Top bar alignment (directly under main nav, with extra height) === */
.header-top,
.top-bar {
  margin-top: 0 !important;
  padding-top: 10px;     /* more vertical breathing room */
  padding-bottom: 10px;  /* more vertical breathing room */
  line-height: 1.4;      /* keeps buttons/icons/text centered */
  z-index: 1;
  position: relative;
}

/* Ensure dropdowns appear above the top bar */
.header-wrapper .nav-dropdown {
  z-index: 9999 !important;
}

/* === No-bounce sticky === */
.header-wrapper,
.stuck .header-wrapper,
.is-sticky .header-wrapper {
  transform: none !important;
  transition: none !important;
}
.sticky-wrapper { height: 0 !important; }

/* === Smooth Top Bar collapse (CSS-only) === */
.header-top,
.header-top.hide-for-sticky,
.top-bar,
.top-bar.hide-for-sticky,
.header-nav-top,
.header-nav-top.hide-for-sticky {
  display: block !important;
  visibility: visible !important;
  overflow: hidden;
  height: auto !important;
  max-height: var(--topbar-max, 60px);
  opacity: 1;
  transform: translateY(0);
  transition:
    max-height .25s ease,
    opacity .25s ease,
    transform .25s ease;
  will-change: max-height, opacity, transform;
}

/* Sticky state: collapse smoothly (no sudden vanish) */
.is-sticky .header-top,
.stuck .header-top,
.is-sticky .top-bar,
.stuck .top-bar,
.is-sticky .header-nav-top,
.stuck .header-nav-top {
  display: block !important;
  visibility: visible !important;
  height: auto !important;
  max-height: 0;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}

/* Desktop only: remove reserved bottom padding */
@media (min-width: 1025px){
  body { padding-bottom: 0 !important; }

  #wrapper,
  .site-wrapper,
  .page-wrapper,
  #content,
  .content-wrapper {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
  }
}

/* === Footer clearance so it's not covered by docked header === */
.footer-1,
.footer-2,
.absolute-footer {
  position: relative;
  padding-bottom: calc(var(--header-height, 80px) + 12px);
  margin-bottom: 0 !important;
}

/* Keep back-to-top clear of the docked header */
.back-to-top,
.ux-scroll-to-top {
  bottom: calc(var(--header-height, 80px) + 12px) !important;
}


@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/


}