/* Triplan Website / Containers / Site Mobile Header
 * Shortcode: [triplan_site_mobile_header]
 */

.tp-site-mobile-header,
.tp-site-mobile-header-spacer {
  --tp-mobile-header-height: 66px;
  --tp-mobile-header-pad-y: 8px;
  --tp-mobile-header-pad-x: 14px;
  --tp-mobile-header-content-height: calc(var(--tp-mobile-header-height) - (var(--tp-mobile-header-pad-y) * 2));
}

.tp-site-mobile-header {
  --tp-mobile-header-bg: rgba(255, 255, 255, 0.96);
  --tp-mobile-header-solid-text: var(--tp-900, #1A2B49);
  --tp-mobile-header-transparent-text: #fff;
  --tp-mobile-header-text: var(--tp-mobile-header-solid-text);
  --tp-mobile-drawer-text: var(--tp-900, #1A2B49);
  --tp-mobile-header-muted: rgba(26, 43, 73, 0.72);
  --tp-mobile-header-line: rgba(26, 43, 73, 0.1);
  --tp-mobile-header-shadow: 0 10px 26px rgba(26, 43, 73, 0.08);
  --tp-mobile-header-accent: var(--tp-primary, #40A1B7);
  --tp-mobile-header-logo-width: 88px;
  --tp-mobile-header-logo-height: min(50px, var(--tp-mobile-header-content-height));
  --tp-mobile-header-icon-size: 42px;
  --tp-mobile-header-filter-height: 48px;
  --tp-mobile-menu-row-height: 46px;
  --tp-mobile-menu-social-size: 34px;

  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10020;
  display: block;
  height: var(--tp-mobile-header-height);
  color: var(--tp-mobile-header-text);
  font-family: var(--tp-body-font, "Poppins", sans-serif);
}

.tp-site-mobile-header--has-filter {
  height: fit-content;
  background: var(--tp-mobile-header-bg);
  border-bottom: 1px solid var(--tp-mobile-header-line);
  box-shadow: var(--tp-mobile-header-shadow);
}

.tp-site-mobile-header-spacer {
  height: var(--tp-mobile-header-height);
}

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

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

.tp-site-mobile-header button {
  font: inherit;
}

.tp-site-mobile-header__bar {
  height: var(--tp-mobile-header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: var(--tp-mobile-header-pad-y) var(--tp-mobile-header-pad-x);
  background: var(--tp-mobile-header-bg);
  color: var(--tp-mobile-header-text) !important;
  border-bottom: 1px solid var(--tp-mobile-header-line);
  box-shadow: var(--tp-mobile-header-shadow);
  transition: background-color 220ms ease, border-color 220ms ease, box-shadow 220ms ease, color 220ms ease;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.tp-site-mobile-header--has-filter .tp-site-mobile-header__bar {
  background: transparent;
  border-bottom: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.tp-site-mobile-header__brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  width: var(--tp-mobile-header-logo-width);
  height: var(--tp-mobile-header-logo-height);
  flex: 0 0 auto;
}

.tp-site-mobile-header .tp-site-mobile-header__logo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  transition: opacity 180ms ease;
}

.tp-site-mobile-header__logo--white {
  opacity: 0;
}

.tp-site-mobile-header__filter-slot {
  position: relative;
  z-index: 1;
  height: fit-content;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 3px var(--tp-mobile-header-pad-x) 5px;
}

.tp-site-mobile-header__actions {
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  min-width: 0;
}

.tp-site-mobile-header__icon-link,
.tp-site-mobile-header__menu-toggle {
  position: relative;
  width: var(--tp-mobile-header-icon-size);
  height: var(--tp-mobile-header-icon-size);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: currentColor;
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms ease;
}

.tp-site-mobile-header .tp-site-mobile-header__brand,
.tp-site-mobile-header .tp-site-mobile-header__icon-link,
.tp-site-mobile-header .tp-site-mobile-header__menu-toggle {
  color: var(--tp-mobile-header-text) !important;
}

.tp-site-mobile-header .tp-site-mobile-header__icon-link,
.tp-site-mobile-header .tp-site-mobile-header__menu-toggle {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.tp-site-mobile-header__icon-link:hover,
.tp-site-mobile-header__icon-link:focus,
.tp-site-mobile-header__menu-toggle:hover,
.tp-site-mobile-header__menu-toggle:focus {
  background: rgba(26, 43, 73, 0.07) !important;
  transform: translateY(-1px);
}

.tp-site-mobile-header__bar svg {
  width: 24px;
  height: 24px;
  display: block;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tp-site-mobile-header__bar i {
  display: block;
  font-size: 24px;
  line-height: 1;
}

.tp-site-mobile-header__badge {
  position: absolute;
  top: 5px;
  right: 3px;
  min-width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--tp-cyan);
  color: var(--tp-midnight);
  font-size: 10px;
  line-height: 1;
  font-weight: 800;
}

.tp-site-mobile-header.is-transparent {
  --tp-mobile-header-bg: rgba(255, 255, 255, 0);
  --tp-mobile-header-text: var(--tp-mobile-header-transparent-text);
  --tp-mobile-header-muted: rgba(255, 255, 255, 0.8);
  --tp-mobile-header-line: rgba(255, 255, 255, 0);
  --tp-mobile-header-shadow: none;
}

.tp-site-mobile-header.is-transparent .tp-site-mobile-header__bar {
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
}

.tp-site-mobile-header.is-transparent .tp-site-mobile-header__logo--color {
  opacity: 0;
}

.tp-site-mobile-header.is-transparent .tp-site-mobile-header__logo--white {
  opacity: 1;
}

.tp-site-mobile-header.is-transparent .tp-site-mobile-header__icon-link:hover,
.tp-site-mobile-header.is-transparent .tp-site-mobile-header__icon-link:focus,
.tp-site-mobile-header.is-transparent .tp-site-mobile-header__menu-toggle:hover,
.tp-site-mobile-header.is-transparent .tp-site-mobile-header__menu-toggle:focus {
  background: rgba(255, 255, 255, 0.14) !important;
}

@media (min-width: 1101px) {
  .tp-site-mobile-header,
  .tp-site-mobile-header-spacer {
    display: none;
  }
}
