/* CraftCore 10.3.59 — definitive sitewide header consistency
   Uses the approved Soffit & Fascia header geometry on every template. */

.site-header,
.site-header.scrolled,
.site-header.cc-flow-header,
.site-header.cc-flow-header.scrolled{
  background:rgba(2,7,12,.96) !important;
  border-bottom:1px solid rgba(255,255,255,.09) !important;
  box-shadow:0 10px 30px rgba(0,0,0,.18) !important;
  -webkit-backdrop-filter:blur(16px) !important;
  backdrop-filter:blur(16px) !important;
}

.site-header .container,
.site-header .container.nav,
.site-header.cc-flow-header .container,
.site-header.cc-flow-header .container.nav{
  width:min(1320px,calc(100% - 48px)) !important;
  max-width:none !important;
  min-height:88px !important;
  margin-inline:auto !important;
  padding-inline:0 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:26px !important;
}

.site-header .logo{
  flex:0 0 auto !important;
  display:flex !important;
  align-items:center !important;
}
.site-header .logo img,
.site-header .custom-logo{
  display:block !important;
  width:235px !important;
  max-width:235px !important;
  max-height:58px !important;
  object-fit:contain !important;
}

.site-header .menu{
  flex:1 1 auto !important;
  min-width:0 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
  gap:12px !important;
}
.site-header .menu > ul,
.site-header .primary-menu{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
  gap:20px !important;
  min-width:0 !important;
  margin:0 8px 0 0 !important;
  padding:0 !important;
}
.site-header .menu > ul > li > a,
.site-header .primary-menu > li > a{
  display:flex !important;
  align-items:center !important;
  min-height:48px !important;
  padding:10px 0 !important;
  font-size:14px !important;
  line-height:1.2 !important;
  font-weight:800 !important;
  white-space:nowrap !important;
}
.site-header .cc-whatsapp-pill,
.site-header .menu > .btn{
  flex:0 0 auto !important;
  min-height:52px !important;
  padding:13px 18px !important;
  border-radius:12px !important;
  white-space:nowrap !important;
  font-size:14px !important;
  line-height:1.1 !important;
}
.site-header .cc-whatsapp-pill svg{
  flex:0 0 20px !important;
  width:20px !important;
  height:20px !important;
}

/* Preserve the same compact geometry after scrolling. */
.site-header.scrolled .container.nav,
.site-header.cc-flow-header.scrolled .container.nav{
  min-height:88px !important;
}
.site-header.scrolled .logo img,
.site-header.scrolled .custom-logo,
.site-header.cc-flow-header.scrolled .logo img,
.site-header.cc-flow-header.scrolled .custom-logo{
  width:235px !important;
  max-width:235px !important;
  max-height:58px !important;
}

@media (max-width:1220px){
  .site-header .container,
  .site-header .container.nav,
  .site-header.cc-flow-header .container,
  .site-header.cc-flow-header .container.nav{
    width:min(100% - 32px,1180px) !important;
    gap:18px !important;
  }
  .site-header .logo img,
  .site-header .custom-logo,
  .site-header.scrolled .logo img,
  .site-header.scrolled .custom-logo{
    width:205px !important;
    max-width:205px !important;
  }
  .site-header .menu > ul,
  .site-header .primary-menu{gap:15px !important;margin-right:4px !important}
  .site-header .menu > ul > li > a,
  .site-header .primary-menu > li > a{font-size:13px !important}
  .site-header .cc-whatsapp-pill,
  .site-header .menu > .btn{padding-inline:14px !important;font-size:13px !important}
}

@media (max-width:1020px){
  .site-header .container,
  .site-header .container.nav,
  .site-header.cc-flow-header .container,
  .site-header.cc-flow-header .container.nav{
    width:min(100% - 32px,1180px) !important;
    min-height:82px !important;
  }
  .site-header .logo img,
  .site-header .custom-logo,
  .site-header.scrolled .logo img,
  .site-header.scrolled .custom-logo{
    width:205px !important;
    max-width:205px !important;
    max-height:52px !important;
  }
  .site-header .menu-toggle{display:block !important}
  .site-header .menu{
    display:none !important;
    align-items:stretch !important;
    justify-content:flex-start !important;
    gap:18px !important;
  }
  .site-header .menu.open{display:flex !important}
  .site-header .menu > ul,
  .site-header .primary-menu{
    display:flex !important;
    flex-direction:column !important;
    align-items:stretch !important;
    justify-content:flex-start !important;
    gap:0 !important;
    width:100% !important;
    margin:0 !important;
  }
  .site-header .menu > ul > li > a,
  .site-header .primary-menu > li > a{
    min-height:54px !important;
    font-size:18px !important;
    white-space:normal !important;
  }
  .site-header .cc-whatsapp-pill,
  .site-header .menu > .btn{
    width:100% !important;
    min-height:54px !important;
    justify-content:center !important;
    font-size:16px !important;
  }
}

@media (max-width:560px){
  .site-header .container,
  .site-header .container.nav,
  .site-header.cc-flow-header .container,
  .site-header.cc-flow-header .container.nav{
    width:calc(100% - 28px) !important;
    min-height:76px !important;
  }
  .site-header .logo img,
  .site-header .custom-logo,
  .site-header.scrolled .logo img,
  .site-header.scrolled .custom-logo{
    width:178px !important;
    max-width:178px !important;
  }
}

/* CraftCore 10.3.61 — desktop dropdown visibility correction.
   Header ancestors must not clip the Services submenu or its arrow. */
@media (min-width:1021px){
  .site-header,
  .site-header .container,
  .site-header .container.nav,
  .site-header .menu,
  .site-header .primary-menu,
  .site-header .primary-menu > li,
  .site-header .cc-services-menu{
    overflow:visible !important;
  }
  .site-header{
    z-index:10000 !important;
    isolation:auto !important;
  }
  .site-header .menu,
  .site-header .primary-menu{
    position:relative !important;
    z-index:10001 !important;
  }
  .site-header .primary-menu > li{
    position:relative !important;
  }
  .site-header .cc-services-menu > a{
    position:relative !important;
    padding-right:22px !important;
  }
  .site-header .cc-services-menu > a::before{
    content:"" !important;
    display:block !important;
    position:absolute !important;
    right:2px !important;
    top:50% !important;
    width:8px !important;
    height:8px !important;
    margin:0 !important;
    border:0 !important;
    border-right:2px solid currentColor !important;
    border-bottom:2px solid currentColor !important;
    transform:translateY(-72%) rotate(45deg) !important;
    opacity:1 !important;
    visibility:visible !important;
    pointer-events:none !important;
  }
  .site-header .menu .cc-services-submenu{
    top:calc(100% - 1px) !important;
    z-index:10020 !important;
    overflow:visible !important;
  }
}

/* CraftCore 10.3.63 — navigation chevron, mobile Services submenu and footer alignment */
@media (min-width:1021px){
  .site-header .cc-services-menu > a{
    padding-right:34px !important;
  }
  .site-header .cc-services-menu > a::before{
    right:10px !important;
    top:50% !important;
    width:7px !important;
    height:7px !important;
    transform:translateY(-68%) rotate(45deg) !important;
  }
}

@media (max-width:1020px){
  .site-header .menu,
  .site-header .menu *{
    box-sizing:border-box;
  }
  .site-header .menu{
    overflow-x:hidden !important;
  }
  .site-header .primary-menu,
  .site-header .primary-menu > li,
  .site-header .cc-services-menu{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
  }
  .site-header .cc-services-menu{
    position:relative !important;
    overflow:visible !important;
  }
  .site-header .cc-services-menu > a{
    width:100% !important;
    min-width:0 !important;
    padding-right:58px !important;
  }
  .site-header .cc-submenu-toggle{
    display:grid !important;
    place-items:center !important;
    right:0 !important;
    top:5px !important;
    width:48px !important;
    height:48px !important;
    padding:0 !important;
    z-index:2 !important;
  }
  .site-header .menu .cc-services-submenu{
    width:100% !important;
    max-width:100% !important;
    margin:0 !important;
    padding:0 0 0 14px !important;
    overflow:hidden !important;
  }
  .site-header .menu .cc-services-submenu li,
  .site-header .menu .cc-services-submenu a{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
  }
  .site-header .menu .cc-services-submenu a{
    padding:13px 8px !important;
    overflow-wrap:anywhere !important;
  }
  .site-header .cc-services-menu.is-open > .cc-services-submenu{
    max-height:620px !important;
  }
}

@media (max-width:720px){
  .cc-site-footer-v086__contact,
  .cc-site-footer-v086__contact h3,
  .cc-site-footer-v086__contact-link,
  .cc-site-footer-v086__contact-link small,
  .cc-site-footer-v086__contact-link strong{
    text-align:left !important;
  }
  .cc-site-footer-v086__contact{
    align-items:flex-start !important;
    justify-content:flex-start !important;
    width:100% !important;
  }
  .cc-site-footer-v086__contact-link{
    align-self:stretch !important;
  }
  .cc-site-footer-v086__contact .btn{
    align-self:stretch !important;
  }
}

/* CraftCore 10.3.66 — definitive live-menu and mobile-footer repair. */
@media (min-width:1021px){
  /* Keep the chevron in normal flex flow so it cannot merge into the label. */
  .site-header .primary-menu > li.menu-item-has-children > a,
  .site-header .primary-menu > li.cc-services-menu > a{
    display:inline-flex !important;
    align-items:center !important;
    gap:11px !important;
    padding-right:0 !important;
    white-space:nowrap !important;
  }
  .site-header .primary-menu > li.menu-item-has-children > a::before,
  .site-header .primary-menu > li.cc-services-menu > a::before{
    position:static !important;
    inset:auto !important;
    display:block !important;
    flex:0 0 8px !important;
    width:8px !important;
    height:8px !important;
    margin:-4px 0 0 !important;
    border:0 !important;
    border-right:2px solid currentColor !important;
    border-bottom:2px solid currentColor !important;
    transform:rotate(45deg) !important;
  }
}

@media (max-width:1020px){
  /* Anchor the drawer to the viewport, not the header container. */
  .site-header .menu{
    position:fixed !important;
    inset:0 0 0 auto !important;
    width:min(420px,100vw) !important;
    max-width:100vw !important;
    margin:0 !important;
    overflow-x:hidden !important;
  }
  .site-header .menu > .primary-menu,
  .site-header .menu > ul{
    display:flex !important;
    flex-direction:column !important;
    width:100% !important;
    max-width:100% !important;
    margin:0 0 18px !important;
    padding:0 !important;
    overflow:visible !important;
  }
  .site-header .primary-menu > li,
  .site-header .primary-menu > li.menu-item-has-children,
  .site-header .primary-menu > li.cc-services-menu{
    display:block !important;
    position:relative !important;
    width:100% !important;
    max-width:100% !important;
    margin:0 !important;
    padding:0 !important;
    overflow:hidden !important;
  }
  .site-header .primary-menu > li.menu-item-has-children > a,
  .site-header .primary-menu > li.cc-services-menu > a{
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    padding:17px 58px 17px 2px !important;
  }
  .site-header .primary-menu > li.menu-item-has-children > a::before,
  .site-header .primary-menu > li.cc-services-menu > a::before{
    display:none !important;
  }
  .site-header .primary-menu .cc-submenu-toggle{
    position:absolute !important;
    top:6px !important;
    right:0 !important;
    left:auto !important;
    display:grid !important;
    place-items:center !important;
    width:48px !important;
    height:48px !important;
    margin:0 !important;
    padding:0 !important;
  }
  .site-header .primary-menu .sub-menu,
  .site-header .primary-menu .cc-services-submenu{
    position:static !important;
    inset:auto !important;
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    max-height:0 !important;
    margin:0 !important;
    padding:0 !important;
    transform:none !important;
    opacity:1 !important;
    visibility:visible !important;
    pointer-events:auto !important;
    overflow:hidden !important;
    border:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    box-shadow:none !important;
    transition:max-height .3s ease !important;
  }
  .site-header .primary-menu .menu-item-has-children.is-open > .sub-menu,
  .site-header .primary-menu .cc-services-menu.is-open > .cc-services-submenu{
    max-height:700px !important;
  }
  .site-header .primary-menu .sub-menu li,
  .site-header .primary-menu .cc-services-submenu li{
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    margin:0 !important;
    padding:0 !important;
  }
  .site-header .primary-menu .sub-menu a,
  .site-header .primary-menu .cc-services-submenu a{
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    margin:0 !important;
    padding:14px 8px 14px 18px !important;
    white-space:normal !important;
    overflow-wrap:break-word !important;
    text-align:left !important;
  }
}

@media (max-width:720px){
  .cc-site-footer-v086__grid{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) !important;
  }
  .cc-site-footer-v086__contact{
    grid-column:1 !important;
    display:flex !important;
    flex-direction:column !important;
    align-items:stretch !important;
    justify-content:flex-start !important;
    direction:ltr !important;
    text-align:left !important;
  }
  .cc-site-footer-v086__contact > *,
  .cc-site-footer-v086__contact h3,
  .cc-site-footer-v086__contact a,
  .cc-site-footer-v086__contact small,
  .cc-site-footer-v086__contact strong{
    width:100% !important;
    margin-left:0 !important;
    margin-right:0 !important;
    text-align:left !important;
    align-self:stretch !important;
  }
  .cc-site-footer-v086__contact .btn{
    justify-content:center !important;
    text-align:center !important;
  }
}
