/*===================================================================
  Stylesheet for Header and Footer

  This stylesheet allows inserting header and footer blocks into 
  sub-sites (Joomla, Admin, Kayako) without affecting overall site 
  styles. Any Joomla-specific styles apart from Header and Footer 
  sections should be defined in template.less file.

  Notice: Do not edit header-footer.css file directly. Changes will 
  be lost when LESS files are compiled. Please locate source LESS 
  file for modifications, or add CSS on custom.css file for 
  site-specific changes.
/===================================================================*/
.sp-top .container,
.sp-menubar .container,
.sp-bottom .container,
.sp-footer .container {
  max-width: 1140px;
  margin: auto;
}
.sp-top a,
.sp-menubar a,
.sp-bottom a,
.sp-footer a {
  text-decoration: none;
}
.sp-top p,
.sp-menubar p,
.sp-bottom p,
.sp-footer p {
  margin-top: 0;
  margin-bottom: 1rem;
}
.sp-top p:last-child,
.sp-menubar p:last-child,
.sp-bottom p:last-child,
.sp-footer p:last-child {
  margin-bottom: 0;
}
.sp-top .btn,
.sp-menubar .btn,
.sp-bottom .btn,
.sp-footer .btn {
  border-radius: 0.375rem;
}
.sp-top .btn-primary,
.sp-menubar .btn-primary,
.sp-bottom .btn-primary,
.sp-footer .btn-primary {
  background-color: #fc4f00;
  border-color: #fc4f00;
  color: #fff;
}
.sp-top .btn-primary:hover,
.sp-menubar .btn-primary:hover,
.sp-bottom .btn-primary:hover,
.sp-footer .btn-primary:hover,
.sp-top .btn-primary:active,
.sp-menubar .btn-primary:active,
.sp-bottom .btn-primary:active,
.sp-footer .btn-primary:active {
  background-color: #c93f00;
  border-color: #c93f00;
  color: #fff;
}
.sp-top .row,
.sp-menubar .row,
.sp-bottom .row,
.sp-footer .row {
  display: flex;
  flex-wrap: wrap;
  margin-right: 0.75rem;
  margin-left: 0.75rem;
}
.sp-top .col,
.sp-menubar .col,
.sp-bottom .col,
.sp-footer .col {
  flex: 1 0 0%;
}
.sp-top .align-self-center,
.sp-menubar .align-self-center,
.sp-bottom .align-self-center,
.sp-footer .align-self-center {
  align-self: center;
}
.sp-top .nav,
.sp-menubar .nav,
.sp-bottom .nav,
.sp-footer .nav {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}
/*-------------------------------------------------------------------
  Header
/-------------------------------------------------------------------*/
.sp-top {
  background-image: linear-gradient(#eee, #fff);
  font-size: 14px;
}
.sp-top a {
  color: #fc4f00;
}
.sp-top a:hover {
  color: #962f00;
}
@media (min-width: 992px) {
  .sp-top .ms-lg-5 {
    margin-left: 3rem;
  }
}
.sp-top .sp-top-left,
.sp-top .sp-top-right {
  display: flex;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.sp-top .sp-top-right {
  justify-content: end;
}
.sp-top .btn-lg {
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
}
.sp-top .module + .module {
  margin-left: 1rem;
}
.sp-top .mod-languages .lang-inline {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sp-top .mod-languages .lang-inline:before {
  font-family: 'Font Awesome 5 Free';
  font-weight: bold;
  font-size: 1.2em;
  line-height: 1.2;
  content: '\f57d';
  color: #fc4f00;
}
.sp-top .mod-languages .lang-inline li {
  position: relative;
  display: block;
  margin: 0;
}
.sp-top .mod-languages .lang-inline li + li:before {
  content: '';
  display: block;
  position: absolute;
  left: 0;
  top: 50%;
  height: 14px;
  margin-top: -7px;
  border-left: 1px solid rgba(0, 0, 0, 0.4);
}
.sp-top .mod-languages .lang-inline li:first-child a {
  padding-left: 4px;
}
.sp-top .mod-languages .lang-inline a {
  display: inline-block;
  padding: 0 7px;
}
@media (max-width: 767px) {
  .sp-top > .container > .row {
    flex-direction: column;
  }
  .sp-top .sp-top-left,
  .sp-top .sp-top-right {
    flex-direction: column;
    align-items: center;
  }
}
/*-------------------------------------------------------------------
  Menubar
/-------------------------------------------------------------------*/
.sp-menubar {
  background-color: #eee;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
}
.sp-menubar > .container {
  display: flex;
  align-items: center;
}
.sp-menubar .form-control {
  font-size: 14px;
}
.sp-menubar .list-unstyled {
  list-style: none;
}
@media (min-width: 768px) {
  .sp-menu {
    display: flex;
    font-family: 'Asap', 'Helvetica', arial, sans-serif;
    flex-grow: 1;
  }
  .sp-menu .mod-menu {
    margin-left: -0.75rem;
  }
  .sp-menu .mod-menu a {
    display: block;
    color: #444;
    padding: 0.75rem 1rem;
    font-size: 14px;
    font-weight: 600;
  }
  .sp-menu .mod-menu a:hover {
    color: #fc4f00;
  }
  .sp-menu .mod-menu .nav-item {
    position: relative;
  }
  .sp-menu .mod-menu .nav-item.active.current > a {
    color: #000;
  }
  .sp-menu .mod-menu__sub {
    display: none;
    position: absolute;
    z-index: 100;
    top: 100%;
    left: 0;
    margin: 0;
    padding: 0;
    width: 240px;
    border-bottom: 1px solid #e9e9e9;
    border-top: 1px solid #fff;
    background: #ffffff;
    box-shadow: 0 3px 7px rgba(0, 0, 0, 0.09);
    text-align: left;
    font-size: 14px;
  }
  .sp-menu .mod-menu__sub li {
    border-bottom: 1px solid #e9e9e9;
  }
  .sp-menu .mod-menu__sub li:hover > a {
    background: #f7f7f7;
  }
  .sp-menu .mod-menu__sub a {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 13px;
    font-weight: normal;
    border-left: 1px solid #e9e9e9;
    border-right: 1px solid #e9e9e9;
  }
  .sp-menu .mod-menu__sub .mod-menu__sub {
    top: -1px;
    left: 100%;
    background: #eee;
    border: none;
    border-top: 1px solid #ddd;
    box-shadow: none;
  }
  .sp-menu .parent:hover > .mod-menu__sub {
    display: block;
  }
  .sp-menu-toggle {
    display: none;
  }
}
@media (max-width: 767px) {
  .sp-menubar {
    position: sticky;
    top: 0;
    z-index: 1000;
  }
  .sp-menubar .container {
    min-height: 3rem;
  }
  .sp-menu {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(30px);
    z-index: 2000;
    overflow: auto;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
    /* Close button */
  }
  .sp-menu.open {
    opacity: 1;
    pointer-events: all;
  }
  .sp-menu.open .mod-menu {
    top: 0;
  }
  .sp-menu:after {
    position: absolute;
    display: block;
    right: 1rem;
    top: 1rem;
    width: 1.5rem;
    height: 1.5rem;
    text-align: center;
    font-family: 'Font Awesome 5 Free';
    font-weight: bold;
    content: '\f00d';
    color: #fff;
  }
  .sp-menu .mod-menu {
    position: relative;
    flex-direction: column;
    width: 80%;
    top: -3rem;
    transition: top 0.4s;
    max-width: 400px;
    margin: 1rem auto;
    background-color: #eee;
    border-radius: 0.5rem;
    border-top: 0.2rem solid #fc4f00;
  }
  .sp-menu .mod-menu a {
    display: block;
    color: #444;
    padding: 0.75rem 1rem;
    font-size: 14px;
    font-weight: 600;
  }
  .sp-menu .mod-menu a:hover {
    color: #fc4f00;
  }
  .sp-menu .mod-menu .deeper > a {
    margin-right: 3rem;
    position: relative;
  }
  .sp-menu .mod-menu .deeper > a:after {
    position: absolute;
    display: block;
    right: -3rem;
    top: 50%;
    margin-top: -0.75rem;
    height: 1.5rem;
    width: 3rem;
    border-left: 1px dashed #aaa;
    text-align: center;
    font-family: 'Font Awesome 5 Free';
    content: '\f105';
    pointer-events: none;
  }
  .sp-menu .mod-menu .deeper.expanded > a:after {
    content: '\f107';
  }
  .sp-menu .mod-menu .deeper.expanded > .mod-menu__sub {
    display: block;
  }
  .sp-menu .mod-menu__sub {
    display: none;
    background-color: rgba(0, 0, 0, 0.05);
  }
  .sp-menu-toggle {
    margin-right: 0.75rem;
  }
}
/*-------------------------------------------------------------------
  Bottom
/-------------------------------------------------------------------*/
.sp-bottom {
  padding: 1rem 0;
  background-color: #2e373c;
  color: #c8d0d4;
  font-size: 14px;
}
.sp-bottom a {
  color: #c8d0d4;
}
.sp-bottom a:hover {
  color: #fff;
}
.sp-bottom .mod-menu > li {
  margin-right: 1rem;
}
/*-------------------------------------------------------------------
  Footer
/-------------------------------------------------------------------*/
.sp-footer {
  padding: 2rem 0;
  background-color: #252c30;
  color: #fff;
  font-size: 14px;
}
.sp-footer a {
  color: #ffdac9;
}
.sp-footer a:hover {
  color: #ff9463;
}
