/* Dedicated Sorenapipe header component. */

body.sp-header-enabled #masthead.site-header:not(.sp-site-header) {
  display: none;
}

.sp-site-header {
  --sp-h-ink: #10242f;
  --sp-h-muted: #647582;
  --sp-h-soft: #edf6f5;
  --sp-h-line: rgba(16, 36, 47, 0.12);
  --sp-h-line-strong: rgba(13, 136, 128, 0.28);
  --sp-h-white: #ffffff;
  --sp-h-navy: #073e62;
  --sp-h-teal: #0b8f86;
  --sp-h-green: #178763;
  --sp-h-copper: #b8682b;
  --sp-h-shadow: 0 16px 44px rgba(7, 62, 98, 0.11);
  position: sticky;
  top: 0;
  z-index: 999;
  width: 100%;
  direction: rtl;
  color: var(--sp-h-ink);
  font-family: Vazirmatn, IRANSans, Tahoma, Arial, sans-serif;
  isolation: isolate;
  transition: top 180ms ease, transform 180ms ease;
}

.sp-site-header *,
.sp-site-header *::before,
.sp-site-header *::after {
  box-sizing: border-box;
}

.sp-site-header a {
  color: inherit;
  text-decoration: none;
}

.sp-site-header svg {
  display: block;
  width: 18px;
  height: 18px;
  overflow: visible;
}

.sp-site-header path,
.sp-site-header circle {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.sp-header__container {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.sp-header__topline {
  max-height: 42px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(90deg, #062f4a, #075f76 54%, #0b776f);
  color: #e8fbfb;
  opacity: 1;
  transition: max-height 180ms ease, opacity 160ms ease, transform 180ms ease;
}

.sp-header__topline-inner {
  display: flex;
  min-height: 38px;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}

.sp-header__promise,
.sp-header__quick,
.sp-header__quick-item {
  display: inline-flex;
  align-items: center;
}

.sp-header__promise {
  min-width: 0;
  gap: 12px;
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.sp-header__promise span:first-child {
  color: #ffffff;
}

.sp-header__promise span + span {
  color: rgba(232, 251, 251, 0.78);
}

.sp-header__quick {
  gap: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.78rem;
  font-weight: 850;
  white-space: nowrap;
}

.sp-header__quick-item {
  gap: 6px;
  min-height: 26px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.07);
}

.sp-header__quick-item svg {
  width: 15px;
  height: 15px;
}

.sp-header__main {
  position: relative;
  width: 100%;
  margin: 0 auto;
  border-bottom: 1px solid var(--sp-h-line);
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.92)),
    linear-gradient(90deg, rgba(11, 143, 134, 0.07), transparent 42%, rgba(184, 104, 43, 0.06));
  box-shadow: 0 8px 28px rgba(7, 62, 98, 0.06);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: width 180ms ease, margin 180ms ease, border-radius 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.sp-site-header.is-scrolled {
  position: fixed;
  top: 8px;
  right: 0;
  left: 0;
}

.sp-site-header.is-scrolled .sp-header__topline {
  max-height: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
}

.sp-site-header.is-scrolled .sp-header__main {
  width: min(1120px, calc(100% - 28px));
  margin-top: 0;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.52)),
    linear-gradient(90deg, rgba(11, 143, 134, 0.12), rgba(255, 255, 255, 0.08) 45%, rgba(184, 104, 43, 0.1));
  box-shadow:
    0 18px 44px rgba(7, 62, 98, 0.16),
    0 2px 10px rgba(7, 62, 98, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(22px) saturate(1.16);
  -webkit-backdrop-filter: blur(22px) saturate(1.16);
}

.sp-site-header.is-scrolled .sp-header__main::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 44%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0));
  pointer-events: none;
  z-index: 0;
}

.sp-header__main::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: linear-gradient(90deg, var(--sp-h-green), var(--sp-h-teal), var(--sp-h-navy), var(--sp-h-copper));
  opacity: 0.82;
}

.sp-header__main-inner {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 78px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  transition: min-height 180ms ease, gap 180ms ease;
}

.sp-site-header.is-scrolled .sp-header__main-inner {
  min-height: 58px;
  gap: 14px;
}

.sp-header__brand {
  display: inline-flex;
  min-width: 112px;
  align-items: center;
}

.sp-header__mark {
  display: grid;
  width: 112px;
  min-width: 112px;
  height: 50px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(7, 62, 98, 0.08);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(7, 62, 98, 0.07);
  transition: width 180ms ease, min-width 180ms ease, height 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.sp-header__mark span {
  color: var(--sp-h-navy);
  font-size: 1rem;
  font-weight: 950;
}

.sp-header__logo-img {
  display: block;
  width: 98px;
  max-width: 98px;
  height: auto;
  transition: width 180ms ease, max-width 180ms ease;
}

.sp-site-header.is-scrolled .sp-header__mark {
  width: 92px;
  min-width: 92px;
  height: 40px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 18px rgba(7, 62, 98, 0.08);
}

.sp-site-header.is-scrolled .sp-header__logo-img {
  width: 80px;
  max-width: 80px;
}

.sp-header__nav {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.sp-header__nav-link {
  position: relative;
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 9px 10px;
  color: var(--sp-h-ink);
  font-size: 0.86rem;
  font-weight: 900;
  line-height: 1.45;
  white-space: nowrap;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.sp-site-header.is-scrolled .sp-header__nav-link {
  min-height: 34px;
  padding: 6px 9px;
  color: rgba(16, 36, 47, 0.86);
  font-size: 0.8rem;
  font-weight: 850;
}

.sp-header__nav-link::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 6px;
  left: 12px;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--sp-h-teal), var(--sp-h-copper));
  opacity: 0;
  transform: scaleX(0.45);
  transform-origin: center;
  transition: opacity 160ms ease, transform 160ms ease;
}

.sp-header__nav-link:hover,
.sp-header__nav-link:focus-visible,
.sp-header__nav-link.is-active {
  border-color: var(--sp-h-line-strong);
  background: rgba(11, 143, 134, 0.08);
  color: var(--sp-h-teal);
  transform: translateY(-1px);
}

.sp-header__nav-link:hover::after,
.sp-header__nav-link:focus-visible::after,
.sp-header__nav-link.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.sp-header__actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.sp-header__icon-button,
.sp-header__menu-toggle,
.sp-header__price-link,
.sp-header__call-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 950;
  line-height: 1.35;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.sp-site-header.is-scrolled .sp-header__icon-button,
.sp-site-header.is-scrolled .sp-header__menu-toggle,
.sp-site-header.is-scrolled .sp-header__price-link,
.sp-site-header.is-scrolled .sp-header__call-link {
  min-height: 36px;
  border-color: rgba(255, 255, 255, 0.48);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.sp-site-header.is-scrolled .sp-header__icon-button,
.sp-site-header.is-scrolled .sp-header__menu-toggle {
  width: 36px;
  background: rgba(255, 255, 255, 0.58);
}

.sp-site-header.is-scrolled .sp-header__price-link,
.sp-site-header.is-scrolled .sp-header__call-link {
  padding: 7px 10px;
}

.sp-site-header.is-scrolled .sp-header__call-link {
  background: linear-gradient(135deg, rgba(23, 135, 99, 0.92), rgba(11, 143, 134, 0.92));
  box-shadow: 0 8px 18px rgba(11, 143, 134, 0.16);
}

.sp-header__icon-button,
.sp-header__menu-toggle {
  width: 42px;
  padding: 0;
  background: #ffffff;
  color: var(--sp-h-navy);
  border-color: var(--sp-h-line);
}

.sp-header__price-link,
.sp-header__call-link {
  gap: 7px;
  padding: 9px 12px;
  white-space: nowrap;
}

.sp-header__price-link {
  border-color: rgba(184, 104, 43, 0.28);
  background: rgba(184, 104, 43, 0.1);
  color: #8a4818;
}

.sp-header__call-link {
  background: linear-gradient(135deg, var(--sp-h-green), var(--sp-h-teal));
  color: #ffffff !important;
  box-shadow: 0 10px 22px rgba(11, 143, 134, 0.2);
}

.sp-header__icon-button:hover,
.sp-header__icon-button:focus-visible,
.sp-header__menu-toggle:hover,
.sp-header__menu-toggle:focus-visible,
.sp-header__price-link:hover,
.sp-header__price-link:focus-visible,
.sp-header__call-link:hover,
.sp-header__call-link:focus-visible {
  transform: translateY(-1px);
}

.sp-header__icon-button:hover,
.sp-header__icon-button:focus-visible,
.sp-header__menu-toggle:hover,
.sp-header__menu-toggle:focus-visible {
  border-color: var(--sp-h-line-strong);
  background: var(--sp-h-soft);
  color: var(--sp-h-teal);
}

.sp-header__search {
  border-top: 1px solid var(--sp-h-line);
  background: rgba(255, 255, 255, 0.98);
  padding: 12px 0 14px;
}

.sp-header__search-form {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--sp-h-line-strong);
  border-radius: 8px;
  padding: 8px 10px;
  background: #f8fbfb;
}

.sp-header__search-form svg {
  color: var(--sp-h-teal);
}

.sp-header__search-form input {
  width: 100%;
  min-height: 38px;
  border: 0;
  background: transparent;
  color: var(--sp-h-ink);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  outline: 0;
}

.sp-header__search-form button {
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  padding: 7px 14px;
  background: var(--sp-h-navy);
  color: #ffffff;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 950;
  cursor: pointer;
}

.sp-header__menu-toggle {
  display: none;
}

.sp-header__shade,
.sp-header__mobile-panel {
  display: none;
}

.sp-header__search[hidden],
.sp-header__shade[hidden],
.sp-header__mobile-panel[hidden] {
  display: none !important;
}

@media (max-width: 1120px) {
  .sp-header__brand {
    min-width: 104px;
  }

  .sp-header__nav-link {
    padding-inline: 8px;
    font-size: 0.8rem;
  }
}

@media (max-width: 980px) {
  .sp-header__container {
    width: min(100% - 24px, 1180px);
  }

  .sp-header__topline-inner {
    min-height: 36px;
  }

  .sp-header__promise span + span,
  .sp-header__nav,
  .sp-header__price-link span,
  .sp-header__call-link span {
    display: none;
  }

  .sp-header__quick {
    overflow-x: auto;
    justify-content: flex-end;
    scrollbar-width: none;
  }

  .sp-header__quick::-webkit-scrollbar {
    display: none;
  }

  .sp-header__main-inner {
    min-height: 68px;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .sp-header__actions {
    gap: 7px;
  }

  .sp-header__menu-toggle {
    display: inline-flex;
  }

  .sp-header__price-link,
  .sp-header__call-link {
    width: 42px;
    padding: 0;
  }

  .sp-header__shade {
    position: fixed;
    inset: 0;
    display: block;
    background: rgba(6, 47, 74, 0.28);
    backdrop-filter: blur(4px);
    z-index: 1;
  }

  .sp-header__mobile-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 12px;
    left: 12px;
    display: grid;
    gap: 12px;
    border: 1px solid var(--sp-h-line);
    border-radius: 8px;
    padding: 14px;
    background: #ffffff;
    box-shadow: var(--sp-h-shadow);
    z-index: 2;
  }

  .sp-header__mobile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--sp-h-ink);
    font-size: 0.95rem;
    font-weight: 950;
  }

  .sp-header__mobile-nav {
    display: grid;
    gap: 6px;
  }

  .sp-header__mobile-link {
    display: flex;
    min-height: 44px;
    align-items: center;
    border: 1px solid var(--sp-h-line);
    border-radius: 8px;
    padding: 9px 11px;
    color: var(--sp-h-ink);
    font-size: 0.9rem;
    font-weight: 900;
    line-height: 1.5;
  }

  .sp-header__mobile-link.is-active {
    border-color: var(--sp-h-line-strong);
    background: rgba(11, 143, 134, 0.08);
    color: var(--sp-h-teal);
  }

  .sp-header__mobile-cta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    border-top: 1px solid var(--sp-h-line);
    padding-top: 12px;
  }

  .sp-header__mobile-cta a {
    display: grid;
    min-height: 58px;
    place-items: center;
    gap: 5px;
    border-radius: 8px;
    padding: 8px;
    background: #f3f8f8;
    color: var(--sp-h-navy);
    font-size: 0.76rem;
    font-weight: 950;
    line-height: 1.45;
    text-align: center;
  }

  .sp-header__mobile-cta svg {
    color: var(--sp-h-teal);
  }
}

@media (max-width: 620px) {
  .sp-header__topline {
    display: none;
  }

  .sp-header__main-inner {
    min-height: 64px;
    gap: 10px;
  }

  .sp-header__brand {
    min-width: 0;
  }

  .sp-header__mark {
    width: 92px;
    min-width: 92px;
    height: 42px;
  }

  .sp-header__logo-img {
    width: 82px;
    max-width: 82px;
  }

  .sp-header__actions {
    gap: 5px;
  }

  .sp-header__icon-button,
  .sp-header__menu-toggle,
  .sp-header__price-link,
  .sp-header__call-link {
    width: 38px;
    min-height: 38px;
  }

  .sp-header__search-form {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .sp-header__search-form button {
    grid-column: 1 / -1;
  }

  .sp-header__mobile-panel {
    right: 10px;
    left: 10px;
    max-height: calc(100vh - 86px);
    overflow-y: auto;
  }

  .sp-header__mobile-cta {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sp-site-header *,
  .sp-site-header *::before,
  .sp-site-header *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
