/* Site header shared by the homepages and the generated pages.
   Markup: scripts/components/site-header.js, behaviour: js/site-header.js */

/* Zero-specificity reset so the header looks the same on pages without the homepage reset */
:where(.header) :where(*) {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
:where(.header) :where(a) {
  color: inherit;
  text-decoration: none;
}
:where(.header) :where(button) {
  border: none;
  background: none;
  font: inherit;
  color: inherit;
}

/* Anchor targets land below the fixed header */
html {
  scroll-padding-top: 148px;
}

/* Generated pages: content starts below the fixed header (header bottom + 28px, as for anchors) */
.site-main-offset {
  padding-top: 148px;
}

body.menu-open {
  overflow: hidden;
  padding-right: var(--scrollbar-width, 0px);
}

.button-header-form, .show-prices-details {
  background: var(--purple-accent, #7272ec);
  text-decoration: none;
  border-radius: 20px;
  padding: 11px 25px 11px 25px;
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.button-header-form {
  transition:
    transform var(--duration-press) var(--ease-out),
    box-shadow var(--duration-ui) ease,
    background-color var(--duration-ui) ease,
    opacity var(--duration-ui) ease;
}
.button-header-form:active {
  transform: scale(0.97);
}
@media (hover: hover) and (pointer: fine) {
  .button-header-form:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(114, 114, 236, 0.3);
  }
  .button-header-form:hover:active {
    transform: scale(0.97);
  }
}
.button-header-text {
  color: var(--white, #ffffff);
  text-align: center;
  font-family: var(--small-button-font-family, "Nunito", sans-serif);
  font-size: var(--small-button-font-size, 14px);
  line-height: var(--small-button-line-height, 130%);
  font-weight: var(--small-button-font-weight, 700);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-header {
  padding: 4px 0px 4px 0px;
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;
  position: relative;
}
.menu-header:hover .div63 {
  color: var(--purple-accent);
}

/* Base header css */
.header {
  z-index: 999;
  background: var(--light-purple, #cfd5f6);
  border-radius: 25px;
  padding: 16px 24px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: calc(100% - 40px);
  max-width: 1280px;
  position: fixed;
  top: 28px;
  /* Centered without transform, so the fixed drawer and overlay are positioned against the viewport */
  left: 0;
  right: 0;
  margin: 0 auto;
  box-sizing: border-box;
}
.text-logo {
  display: flex;
  flex-direction: row;
  gap: 28px;
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;
  position: relative;
}
.logo-text-logo2 {
  display: block;
  flex-shrink: 0;
  width: 53.49px;
  height: 60px;
  position: relative;
  cursor: pointer;
}
.just2 {
  color: var(--logo-color-light, #7272ec);
  text-align: left;
  font-family: "Nunito", sans-serif;
  font-size: 12px;
  line-height: 130%;
  font-weight: 700;
  position: absolute;
  right: 0%;
  left: 0%;
  width: 100%;
  bottom: 66.67%;
  top: 0%;
  height: 33.33%;
}
.do2 {
  color: var(--logo-color-light, #7272ec);
  text-align: center;
  font-family: "Nunito", sans-serif;
  font-size: 24px;
  line-height: 130%;
  font-weight: 700;
  position: absolute;
  right: 0%;
  left: 1.35%;
  width: 98.65%;
  bottom: 33.33%;
  top: 33.33%;
  height: 33.33%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fit2 {
  color: var(--logo-color-light, #7272ec);
  text-align: right;
  font-family: "Nunito", sans-serif;
  font-size: 15.662650108337402px;
  line-height: 130%;
  font-weight: 700;
  position: absolute;
  right: 0%;
  left: 1.35%;
  width: 98.65%;
  bottom: 0%;
  top: 66.67%;
  height: 33.33%;
}
.menu-header2 {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;
  position: relative;
}
.div63 {
  color: var(--textdark, #2c2c62);
  text-align: left;
  font-family: var(--menu-font-family, "Nunito", sans-serif);
  font-size: var(--menu-font-size, 16px);
  line-height: var(--menu-font-height, 130%);
  font-weight: var(--menu-font-weight, 700);
  position: relative;
  cursor: pointer;
  transition: color var(--duration-ui) ease;
}
.buttons5 {
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;
  position: relative;
}
.button-header2 {
  border-radius: 20px;
  border-style: solid;
  border-color: var(--purple-accent, #7272ec);
  border-width: 1px;
  padding: 11px 25px 11px 25px;
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: background-color var(--duration-ui) ease;
}
.button-header2:hover {
  background: rgba(114, 114, 236, 0.1);
}

/* Mobile menu button (hidden by default) */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  z-index: 1001;
}

.burger-line {
  width: 100%;
  height: 3px;
  background-color: var(--purple-accent, #7272ec);
  border-radius: 3px;
  transition: transform var(--duration-modal) var(--ease-out), opacity var(--duration-modal) var(--ease-out);
}

/* Mobile menu overlay (hidden by default) */
.mobile-menu-overlay {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 997;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity var(--duration-modal) var(--ease-out),
    visibility 0s linear var(--duration-modal);
}

/* Login / Apply copies inside the drawer, shown on small screens only */
.menu-header2 .mobile-only {
  display: none;
}

/* Active menu item */
.div63.active {
  color: var(--purple-accent, #7272ec);
}

.header a:focus-visible,
.mobile-menu-toggle:focus-visible {
  outline: 2px solid var(--purple-accent, #7272ec);
  outline-offset: 3px;
}

/* Responsive Styles */
@media screen and (max-width: 1165px) {
  /* Adjust header size */
  .header {
    padding: 12px 20px;
    top: 16px;
    border-radius: 16px;
  }

  html {
    scroll-padding-top: 128px;
  }

  .site-main-offset {
    padding-top: 128px;
  }
}

/* Compact mode: js/site-header.js sets .is-compact when the menu does not fit in the header */
.header.is-compact .menu-header2 {
  position: fixed;
  top: 0;
  right: 0;
  width: 270px;
  height: 100vh;
  background: var(--light-purple, #cfd5f6);
  padding: 80px 20px 20px;
  border-radius: 20px 0 0 20px;
  flex-direction: column;
  align-items: flex-start;
  z-index: 998;
  transform: translateX(100%);
  transition: transform var(--duration-modal) var(--ease-drawer), box-shadow var(--duration-modal) var(--ease-drawer);
}

.header.is-compact.mobile-menu-open .menu-header2 {
  transform: translateX(0);
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

.header.is-compact .menu-header {
  width: 100%;
  padding: 15px 0;
  border-bottom: 1px solid rgba(44, 44, 98, 0.1);
}

.header.is-compact .div63 {
  font-size: 18px; /* Larger font for mobile */
}

/* Show burger menu */
.header.is-compact .mobile-menu-toggle {
  display: flex;
}

/* No transitions while js/site-header.js measures the header */
.header.is-measuring,
.header.is-measuring * {
  transition: none !important;
}

/* Mobile menu active state */
.header.mobile-menu-open .mobile-menu-toggle .burger-line:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.header.mobile-menu-open .mobile-menu-toggle .burger-line:nth-child(2) {
  opacity: 0;
}

.header.mobile-menu-open .mobile-menu-toggle .burger-line:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.header.mobile-menu-open .mobile-menu-overlay {
  visibility: visible;
  pointer-events: auto;
  opacity: 1;
  transition:
    opacity var(--duration-modal) var(--ease-out),
    visibility 0s linear 0s;
}

.frame-1321314649 {
  display: flex;
  flex-direction: row;
  gap: 2px;
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;
  position: relative;
}
.div64 {
  color: var(--purple-accent, #7272ec);
  text-align: left;
  font-family: var(--button-font-family, "Nunito", sans-serif);
  font-size: var(--button-font-size, 14px);
  line-height: var(--button-font-height, 130%);
  font-weight: var(--button-font-weight, 700);
  position: relative;
}
.button-header-go-to-crm {
  border-radius: 20px;
  border-style: solid;
  border-color: var(--purple-accent, #7272ec);
  border-width: 1px;
  padding: 11px 25px 11px 25px;
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: background-color var(--duration-ui) ease;
}
.button-header-go-to-crm:hover {
  background: rgba(114, 114, 236, 0.1);
}

.div65 {
  color: var(--purple-accent, #7272ec);
  text-align: center;
  font-family: var(--small-button-font-family, "Nunito", sans-serif);
  font-size: var(--small-button-font-size, 14px);
  line-height: var(--small-button-line-height, 130%);
  font-weight: var(--small-button-font-weight, 700);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Language switcher */
.language-switcher {
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;
  position: relative;
}

.language-btn {
  border-radius: 20px;
  border-style: solid;
  border-color: var(--purple-accent, #7272ec);
  border-width: 1px;
  padding: 8px 15px;
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  height: 40px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: background-color var(--duration-ui) ease, color var(--duration-ui) ease;
}

.language-btn:hover {
  background-color: rgba(114, 114, 236, 0.1);
}

.language-btn.active {
  background-color: var(--purple-accent, #7272ec);
}

.language-btn.active .div64 {
  color: #ffffff;
}

/* Small mobile adjustments */
@media screen and (max-width: 610px) {
  .header {
    padding: 10px 15px;
    top: 10px;
  }

  html {
    scroll-padding-top: 118px;
  }

  .site-main-offset {
    padding-top: 118px;
  }

  .logo-text-logo2 {
    transform: scale(0.85);
    transform-origin: left center;
  }

  .language-switcher {
    margin-right: 10px;
  }

  .button-header2 {
    width: 40px;
    height: 40px;
  }

  /* Hide Login + Apply from header; language + burger stay, the copies show in the drawer */
  .buttons5 > .button-header-go-to-crm,
  .buttons5 > .button-header-form {
    display: none !important;
  }

  .header.is-compact .menu-header2 .mobile-only {
    display: flex;
    margin-top: 20px;
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button-header-form {
    transition: background-color var(--duration-ui) ease, opacity var(--duration-ui) ease, box-shadow var(--duration-ui) ease;
  }

  .button-header-form:active {
    transform: none;
  }

  .mobile-menu-overlay {
    transition: opacity var(--duration-ui) ease, visibility 0s linear var(--duration-ui);
  }

  .header.is-compact .menu-header2 {
    transition: none;
  }

  .burger-line {
    transition: opacity var(--duration-ui) ease;
  }
}
