/*
 * APPALACHIAN SHEDS INC.
 * Child Theme Desktop Header
 * Version 0.6.6
 *
 * DESKTOP ONLY
 * No sticky behavior in this phase.
 * No custom mobile navigation in this phase.
 */

/* =========================================================
   01 — TOKENS / SHELL
========================================================= */

#asi-child-header{
  --asi-ivory:#F8F7F4;
  --asi-cashmere:#E4E1DB;
  --asi-stone:#C8C3BA;
  --asi-steel:#2A2A2A;
  --asi-steel-deep:#202323;
  --asi-bronze:#A68A6A;
  --asi-bronze-hi:#C9B08C;

  display:none;
  position:relative;
  width:100%;
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:'Montserrat',Helvetica,Arial,sans-serif;
  font-style:italic;
  z-index:999999;
}

#asi-child-header *,
#asi-child-header *::before,
#asi-child-header *::after{
  box-sizing:border-box;
  font-family:'Montserrat',Helvetica,Arial,sans-serif;
  font-style:italic;
}

#asi-child-header ul,
#asi-child-header li{
  margin:0;
  padding:0;
  list-style:none;
}

#asi-child-header a{
  text-decoration:none;
}

#asi-child-header .asi-child-shell{
  width:94%;
  max-width:1440px;
  margin:0 auto;
}


/* =========================================================
   02 — DESKTOP ACTIVATION
========================================================= */

@media (min-width:1181px){

  #asi-child-header{
    display:block;
  }

  /*
   * Hide only Divi's native header on desktop.
   * Divi's mobile header remains available below 1181px.
   */
  #main-header,
  #top-header{
    display:none !important;
  }

  /*
   * Divi can reserve top spacing for its fixed header.
   * Remove that desktop-only spacing because the custom header
   * now sits in normal document flow.
   */
  body.et_fixed_nav #page-container,
  body.et_non_fixed_nav.et_transparent_nav #page-container{
    padding-top:0 !important;
  }

}


/* =========================================================
   03 — UTILITY BAR
========================================================= */

#asi-child-header .asi-child-utility{
  width:100%;
  background:var(--asi-steel-deep);
  border-bottom:1px solid rgba(166,138,106,.38);
}

#asi-child-header .asi-child-utility-inner{
  min-height:46px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:28px;
  padding:9px 10px;
}

#asi-child-header .asi-child-utility-left,
#asi-child-header .asi-child-utility-right{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
  color:rgba(248,247,244,.92);
  font-size:12px;
  font-weight:800;
  line-height:1.45;
  letter-spacing:.035em;
}

#asi-child-header .asi-child-utility-right{
  justify-content:flex-end;
  text-align:right;
}

#asi-child-header .asi-child-dot{
  color:var(--asi-bronze);
  font-weight:900;
}

#asi-child-header .asi-child-utility a{
  color:var(--asi-ivory);
  font-weight:900;
  border-bottom:1px solid rgba(166,138,106,.72);
}

#asi-child-header .asi-child-utility a:hover,
#asi-child-header .asi-child-utility a:focus-visible{
  color:var(--asi-bronze-hi);
  border-color:var(--asi-bronze-hi);
}


/* =========================================================
   04 — MAIN HEADER
========================================================= */

#asi-child-header .asi-child-main{
  position:relative;
  width:100%;
  background:rgba(248,247,244,.99);
  border-bottom:1px solid rgba(42,42,42,.13);
  box-shadow:0 4px 16px rgba(20,22,22,.09);
  overflow:visible;
  z-index:1000;
}

#asi-child-header .asi-child-main-inner{
  min-height:92px;
  display:grid;
  grid-template-columns:minmax(210px,250px) minmax(0,1fr) auto;
  align-items:center;
  gap:clamp(20px,2.2vw,36px);
  padding:10px;
  overflow:visible;
}


/* =========================================================
   05 — LOGO
========================================================= */

#asi-child-header .asi-child-logo{
  display:inline-flex;
  align-items:center;
  width:100%;
  max-width:245px;
}

#asi-child-header .asi-child-logo img{
  display:block;
  width:100%;
  max-width:235px;
  height:auto;
  margin:0;
}


/* =========================================================
   06 — PRIMARY NAVIGATION
========================================================= */

#asi-child-header .asi-child-nav{
  position:relative;
  min-width:0;
  overflow:visible;
}

#asi-child-header .asi-child-menu{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:clamp(10px,1.15vw,20px);
  overflow:visible;
}

#asi-child-header .asi-child-menu > li{
  position:relative;
  overflow:visible;
}

#asi-child-header .asi-child-menu > li > a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:50px;
  padding:10px 4px;
  border-bottom:2px solid transparent;
  color:var(--asi-steel);
  font-size:13px;
  font-weight:900;
  line-height:1.25;
  letter-spacing:.005em;
  white-space:nowrap;
}

#asi-child-header .asi-child-menu > li > a:hover,
#asi-child-header .asi-child-menu > li > a:focus-visible,
#asi-child-header .asi-child-menu > li.current-menu-item > a,
#asi-child-header .asi-child-menu > li.current-menu-ancestor > a{
  color:#705844;
  border-bottom-color:var(--asi-bronze);
}



/* Products is a dropdown trigger, not a destination page. */
#asi-child-header .asi-child-menu > li.asi-products-trigger > a{
  cursor:default;
}

/* =========================================================
   07 — DROPDOWN INDICATOR
========================================================= */

#asi-child-header .asi-child-menu > li.menu-item-has-children > a::after{
  content:"";
  display:inline-block;
  width:7px;
  height:7px;
  margin-left:8px;
  border-right:2px solid currentColor;
  border-bottom:2px solid currentColor;
  transform:rotate(45deg) translateY(-2px);
  transform-origin:center;
}


/* =========================================================
   08 — DROPDOWNS
========================================================= */

#asi-child-header .asi-child-menu .sub-menu{
  position:absolute;
  top:calc(100% - 1px);
  left:50%;
  width:300px;
  margin:0;
  padding:11px;
  background:var(--asi-steel-deep);
  border-top:4px solid var(--asi-bronze);
  box-shadow:0 18px 36px rgba(20,22,22,.30);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translate(-50%,8px);
  transition:opacity .16s ease,transform .16s ease,visibility .16s ease;
  z-index:9999999;
}

#asi-child-header .asi-child-menu .sub-menu::before{
  content:"";
  position:absolute;
  top:-14px;
  left:0;
  right:0;
  height:14px;
  background:transparent;
}

#asi-child-header .asi-child-menu li:hover > .sub-menu,
#asi-child-header .asi-child-menu li:focus-within > .sub-menu{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform:translate(-50%,0);
}

#asi-child-header .asi-child-menu .sub-menu li + li{
  border-top:1px solid rgba(248,247,244,.11);
}

#asi-child-header .asi-child-menu .sub-menu a{
  display:block;
  width:100%;
  padding:14px;
  color:rgba(248,247,244,.93);
  font-size:13px;
  font-weight:800;
  line-height:1.45;
}

#asi-child-header .asi-child-menu .sub-menu a:hover,
#asi-child-header .asi-child-menu .sub-menu a:focus-visible{
  background:rgba(166,138,106,.16);
  color:var(--asi-bronze-hi);
}


/* =========================================================
   09 — CTA
========================================================= */

#asi-child-header .asi-child-cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:50px;
  padding:13px 19px;
  background:var(--asi-steel);
  border:2px solid var(--asi-steel);
  border-bottom:4px solid var(--asi-bronze);
  color:var(--asi-ivory);
  font-size:12px;
  font-weight:900;
  line-height:1.3;
  letter-spacing:.045em;
  text-align:center;
  white-space:nowrap;
}

#asi-child-header .asi-child-cta:hover,
#asi-child-header .asi-child-cta:focus-visible{
  background:var(--asi-bronze);
  border-color:var(--asi-bronze);
  border-bottom-color:var(--asi-steel);
  color:#211D19;
}


/* =========================================================
   10 — KEYBOARD FOCUS
========================================================= */

#asi-child-header a:focus-visible{
  outline:3px solid var(--asi-bronze-hi);
  outline-offset:3px;
}


/* =========================================================
   11 — MID-DESKTOP SAFETY
========================================================= */

@media (min-width:1181px) and (max-width:1320px){

  #asi-child-header .asi-child-main-inner{
    grid-template-columns:minmax(185px,215px) minmax(0,1fr) auto;
    gap:16px;
  }

  #asi-child-header .asi-child-logo img{
    max-width:205px;
  }

  #asi-child-header .asi-child-menu{
    gap:9px;
  }

  #asi-child-header .asi-child-menu > li > a{
    font-size:12px;
  }

  #asi-child-header .asi-child-cta{
    padding-left:14px;
    padding-right:14px;
    font-size:11px;
  }

}


/* =========================================================
   12 — REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion:reduce){

  #asi-child-header *,
  #asi-child-header *::before,
  #asi-child-header *::after{
    transition:none !important;
  }

}
