/* =========================================================
   JAPI HELIX ULT. HEADER
   Autor modułu: kubaweb.dev by Kuba Pieczewski
   ========================================================= */

.japi-huh-top-left,
.japi-huh-top-right,
.japi-huh-header-actions,
.japi-huh-offcanvas-contact,
.japi-huh-top-left *,
.japi-huh-top-right *,
.japi-huh-header-actions *,
.japi-huh-offcanvas-contact * {
  box-sizing: border-box;
}

/* =========================================================
   TOPBAR
   ========================================================= */

#sp-intimo-topbar {
  position: relative;
  z-index: 1001;
  min-height: 35px;
  border-bottom: 1px solid rgba(160, 25, 91, 0.09);
  background: #fff7fa;
}

#sp-intimo-topbar > .container,
#sp-intimo-topbar > .container-fluid {
  max-width: 1320px;
  margin: 0 auto;
  padding-right: 28px;
  padding-left: 28px;
}

#sp-intimo-topbar .row {
  min-height: 35px;
  align-items: center;
}

#sp-intimo-topbar .sp-module,
#sp-header .sp-module {
  margin: 0;
}

.japi-huh-top-left,
.japi-huh-top-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 17px;
}

.japi-huh-top-left span,
.japi-huh-top-right a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #715f68;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2px;
  line-height: 1.3;
  text-decoration: none;
}

.japi-huh-top-right {
  justify-content: flex-end;
}

.japi-huh-top-left i,
.japi-huh-top-right i {
  color: #a0195b;
  font-size: 12px;
}

.japi-huh-top-right a:hover {
  color: #a0195b;
  text-decoration: none;
}

/* =========================================================
   HEADER CTA
   ========================================================= */

.japi-huh-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.japi-huh-header-phone {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #a0195b;
  text-decoration: none;
}

.japi-huh-header-phone:hover {
  color: #7d1247;
  text-decoration: none;
}

.japi-huh-header-phone > i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(160, 25, 91, 0.17);
  border-radius: 50%;
  background: #fff6f9;
  color: #a0195b;
  font-size: 14px;
}

.japi-huh-header-phone span {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.japi-huh-header-phone small {
  color: #8b7680;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.55px;
  line-height: 1.2;
  text-transform: uppercase;
}

.japi-huh-header-phone strong {
  color: #a0195b;
  font-size: 16px;
  line-height: 1.15;
  white-space: nowrap;
}

.japi-huh-header-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 15px;
  border: 1px solid #a0195b;
  border-radius: 12px;
  background: #a0195b;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 9px 18px rgba(160, 25, 91, 0.15);
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.japi-huh-header-btn:hover {
  transform: translateY(-2px);
  background: #7d1247;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 12px 22px rgba(160, 25, 91, 0.22);
}

/* =========================================================
   OFFCANVAS CONTACT
   ========================================================= */

.japi-huh-offcanvas-contact {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  padding: 16px;
  border: 1px solid rgba(160, 25, 91, 0.13);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.72);
}

.japi-huh-offcanvas-title {
  margin-bottom: 2px;
  color: #4a1b32;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  line-height: 1.15;
}

.japi-huh-offcanvas-contact > a:not(.japi-huh-offcanvas-btn) {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #65565d;
  font-size: 13px;
  line-height: 1.45;
  text-decoration: none;
}

.japi-huh-offcanvas-contact > a:not(.japi-huh-offcanvas-btn) i {
  margin-top: 3px;
  color: #a0195b;
}

.japi-huh-offcanvas-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: 5px;
  padding: 11px 14px;
  border-radius: 11px;
  background: #a0195b;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.35px;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.japi-huh-offcanvas-btn:hover {
  background: #7d1247;
  color: #fff;
  text-decoration: none;
}

/* =========================================================
   HELIX HEADER BASE STYLE
   ========================================================= */

#sp-header {
  position: relative;
  z-index: 1000;
  height: auto !important;
  border-bottom: 1px solid rgba(160, 25, 91, 0.1);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 4px 18px rgba(74, 27, 50, 0.035);
  transition: background-color .25s ease, box-shadow .25s ease;
}

#sp-header > .container,
#sp-header > .container-fluid {
  max-width: 1320px;
  margin: 0 auto;
  padding-right: 28px;
  padding-left: 28px;
}

#sp-header .row {
  min-height: 94px;
  align-items: center;
}

#sp-header .logo {
  display: flex;
  align-items: center;
}

#sp-header .logo img {
  display: block;
  width: auto;
  max-width: 260px;
  max-height: 66px;
  transition: max-height .25s ease, max-width .25s ease;
}

#sp-header .sp-megamenu-wrapper {
  display: flex;
  justify-content: center;
}

#sp-header .sp-megamenu-parent {
  display: flex;
  justify-content: center;
  gap: 2px;
  float: none;
}

#sp-header .sp-megamenu-parent > li {
  display: flex;
  align-items: center;
}

#sp-header .sp-megamenu-parent > li > a,
#sp-header .sp-megamenu-parent > li > span {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 94px;
  padding: 0 11px;
  color: #523943;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.45px;
  line-height: 1.25 !important;
  text-decoration: none;
  text-transform: uppercase;
  transition: color .2s ease;
}

#sp-header .sp-megamenu-parent > li > a::after,
#sp-header .sp-megamenu-parent > li > span::after {
  position: absolute;
  right: 11px;
  bottom: 24px;
  left: 11px;
  height: 2px;
  border-radius: 999px;
  background: #a0195b;
  content: "";
  opacity: 0;
  transform: scaleX(.35);
  transition: opacity .2s ease, transform .2s ease;
}

#sp-header .sp-megamenu-parent > li:hover > a,
#sp-header .sp-megamenu-parent > li:hover > span,
#sp-header .sp-megamenu-parent > li.active > a,
#sp-header .sp-megamenu-parent > li.active > span {
  color: #a0195b;
}

#sp-header .sp-megamenu-parent > li:hover > a::after,
#sp-header .sp-megamenu-parent > li:hover > span::after,
#sp-header .sp-megamenu-parent > li.active > a::after,
#sp-header .sp-megamenu-parent > li.active > span::after {
  opacity: 1;
  transform: scaleX(1);
}

#sp-header.header-sticky {
  background: rgba(255, 255, 255, 0.985);
  box-shadow: 0 8px 24px rgba(74, 27, 50, 0.1);
}

#sp-header.header-sticky .row {
  min-height: 74px;
}

#sp-header.header-sticky .logo img {
  max-width: 215px;
  max-height: 48px;
}

#sp-header.header-sticky .sp-megamenu-parent > li > a,
#sp-header.header-sticky .sp-megamenu-parent > li > span {
  min-height: 74px;
}

#sp-header.header-sticky .sp-megamenu-parent > li > a::after,
#sp-header.header-sticky .sp-megamenu-parent > li > span::after {
  bottom: 16px;
}

@media (max-width: 1199px) {
  #sp-header > .container,
  #sp-header > .container-fluid {
    padding-right: 20px;
    padding-left: 20px;
  }

  #sp-header .logo img {
    max-width: 220px;
    max-height: 58px;
  }

  #sp-header .sp-megamenu-parent > li > a,
  #sp-header .sp-megamenu-parent > li > span {
    padding-right: 8px;
    padding-left: 8px;
    font-size: 11px;
  }

  .japi-huh-header-actions {
    gap: 8px;
  }

  .japi-huh-header-phone strong {
    font-size: 14px;
  }

  .japi-huh-header-btn {
    padding-right: 11px;
    padding-left: 11px;
    font-size: 9px;
  }
}

@media (max-width: 991px) {
  #sp-intimo-topbar {
    display: none;
  }

  #sp-header .row {
    min-height: 76px;
  }

  #sp-header .logo img {
    max-width: 220px;
    max-height: 55px;
  }

  #sp-header .sp-megamenu-parent {
    display: none !important;
  }

  #sp-header .sp-megamenu-wrapper {
    justify-content: flex-end;
  }
}

@media (max-width: 767px) {
  #sp-header > .container,
  #sp-header > .container-fluid {
    padding-right: 17px;
    padding-left: 17px;
  }

  #sp-header .row {
    min-height: 69px;
  }

  #sp-header.header-sticky .row {
    min-height: 64px;
  }

  #sp-header .logo img {
    max-width: 190px;
    max-height: 49px;
  }

  #sp-header.header-sticky .logo img {
    max-width: 175px;
    max-height: 44px;
  }
}
