
/* ═══════════════════════════════════════════════════════════════════
   SHARED SIZING — MATCHED TO THE HERO (#gz-v4)
   Hero uses 6% side gutters (5% below 560px) with no fixed max-width, so
   the header stretches on large displays and its edges line up with the
   hero at every screen size. Both bars read the same --gz-gutter value.
═══════════════════════════════════════════════════════════════════ */
.gz-top-wrap, .gz-wrap { --gz-gutter: max(6%, calc((100% - 1320px) / 2)); }            /* ≥561px */
@media (max-width: 560px) {
  .gz-top-wrap, .gz-wrap { --gz-gutter: 5%; }          /* ≤560px, matches hero */
}

.gz-top-wrap *, .gz-top-wrap *::before, .gz-top-wrap *::after,
.gz-wrap *, .gz-wrap *::before, .gz-wrap *::after { box-sizing: border-box !important; }
.gz-top-wrap, .gz-wrap { font-family: 'DM Sans', sans-serif !important; -webkit-font-smoothing: antialiased; }

/* ════════════════════════════════
   TOP BAR
════════════════════════════════ */
.gz-top-bar {
  background: #2A65F3 !important;
  width: 100% !important;
  min-height: 38px !important;
}
.gz-top-inner {
  width: 100% !important;
  padding: 0 var(--gz-gutter) !important;
  min-height: 38px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0.75rem !important;
}
.gz-top-socials {
  display: flex !important;
  align-items: center !important;
  gap: 0.35rem !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  flex-shrink: 0 !important;
}
.gz-top-socials li { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.gz-top-social-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 24px !important;
  height: 24px !important;
  border-radius: 5px !important;
  background: rgba(255,255,255,0.15) !important;
  color: #fff !important;
  text-decoration: none !important;
  transition: background 0.18s, transform 0.15s !important;
  flex-shrink: 0 !important;
}
.gz-top-social-link:hover {
  background: rgba(255,255,255,0.3) !important;
  transform: translateY(-1px) !important;
  color: #fff !important;
}
.gz-top-social-link svg { width: 12px !important; height: 12px !important; fill: #fff !important; display: block !important; flex-shrink: 0 !important; }
.gz-top-right { display: flex !important; align-items: center !important; gap: 0 !important; flex-wrap: wrap !important; justify-content: flex-end !important; }
.gz-top-item {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.38rem !important;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  font-family: 'DM Sans', sans-serif !important;
  white-space: nowrap !important;
  padding: 0 1.1rem !important;
  height: 38px !important;
  transition: background 0.18s !important;
  border-left: 1px solid rgba(255,255,255,0.18) !important;
}
.gz-top-item:first-child { border-left: none !important; }
.gz-top-item:hover { background: rgba(255,255,255,0.12) !important; color: #fff !important; }
.gz-top-item svg { width: 14px !important; height: 14px !important; flex-shrink: 0 !important; display: block !important; }

/* Tablet & down: collapse the labels to icons so all 4 items always fit */
@media (max-width: 860px) {
  .gz-top-bar { min-height: auto !important; }
  .gz-top-inner { padding: 0.35rem var(--gz-gutter) !important; flex-wrap: wrap !important; gap: 0.4rem !important; }
  .gz-top-item { font-size: 0.75rem !important; padding: 0 0.7rem !important; height: 30px !important; }
  .gz-top-item span { display: none !important; }
  .gz-top-item svg { width: 15px !important; height: 15px !important; }
}
@media (max-width: 480px) {
  .gz-top-item { padding: 0 0.5rem !important; }
  .gz-top-social-link { width: 22px !important; height: 22px !important; }
}

/* ════════════════════════════════
   MENU BAR
════════════════════════════════ */
.gz-wrap .gz-nav {
  background: #0B1220 !important;
  width: 100% !important;
  border-bottom: 1px solid rgba(42,101,243,0.2) !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  box-shadow: 0 2px 28px rgba(0,0,0,0.32) !important;
}

.elementor-editor-active .gz-wrap .gz-nav { z-index: 10 !important; }
.gz-wrap .gz-nav-inner {
  width: 100% !important;
  padding: 0 var(--gz-gutter);
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  height: 66px;
  gap: 0.5rem;
  position: relative;
}

.gz-wrap .gz-logo {
  display: inline-flex !important;
  align-items: center !important;
  text-decoration: none !important;
  flex-shrink: 0;
  margin-right: 1.25rem;
}
.gz-wrap .gz-logo img { height: 36px !important; width: auto !important; display: block !important; }

.gz-wrap .gz-nav-links {
  display: flex !important;
  align-items: center !important;
  gap: 0.25rem;
  flex: 1;
  min-width: 0;              /* lets the row shrink instead of overflowing */
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.gz-wrap .gz-nav-item {
  position: relative;
  display: flex !important;
  align-items: center !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.gz-wrap .gz-nav-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.28rem;
  font-size: 0.855rem !important;
  font-weight: 500 !important;
  color: #A8C3FC !important;
  text-decoration: none !important;
  padding: 0.45rem 1rem !important;
  border-radius: 7px;
  white-space: nowrap;
  transition: color 0.18s, background 0.18s;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif !important;
  line-height: 1.4 !important;
  border: none !important;
  background: transparent !important;
}
.gz-wrap .gz-nav-link:hover,
.gz-wrap .gz-nav-item:hover > .gz-nav-link,
.gz-wrap .gz-nav-item.gz-open > .gz-nav-link {
  color: #fff !important;
  background: rgba(42,101,243,0.2) !important;
}
.gz-wrap .gz-nav-link.active { color: #fff !important; background: rgba(42,101,243,0.34) !important; }

.gz-wrap .gz-chevron {
  width: 11px; height: 11px;
  flex-shrink: 0;
  stroke: #A8C3FC !important;
  fill: none;
  transition: transform 0.22s, stroke 0.18s;
  display: block;
}
.gz-wrap .gz-nav-item:hover > .gz-nav-link .gz-chevron,
.gz-wrap .gz-nav-item.gz-open > .gz-nav-link .gz-chevron {
  transform: rotate(180deg);
  stroke: #fff !important;
}

.gz-wrap .gz-dropdown {
  position: absolute !important;
  top: calc(100% + 10px) !important;
  left: 50% !important;
  transform: translateX(-50%) translateY(8px);
  min-width: 215px;
  background: #0B1220 !important;
  border: 1px solid rgba(42,101,243,0.28) !important;
  border-radius: 14px !important;
  box-shadow: 0 20px 56px rgba(0,0,0,0.6), 0 0 0 1px rgba(42,101,243,0.12) !important;
  padding: 0.5rem !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
  z-index: 1001 !important;
  list-style: none !important;
  margin: 0 !important;
}
.gz-wrap .gz-dropdown::before {
  content: ''; position: absolute; top: -14px; left: 0; right: 0; height: 14px;
}
.gz-wrap .gz-dropdown::after {
  content: ''; position: absolute;
  top: -6px; left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 11px; height: 11px;
  background: #0B1220;
  border-top: 1px solid rgba(42,101,243,0.28);
  border-left: 1px solid rgba(42,101,243,0.28);
  border-radius: 2px;
}
.gz-wrap .gz-nav-item:hover > .gz-dropdown,
.gz-wrap .gz-nav-item.gz-open > .gz-dropdown {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: all !important;
  transform: translateX(-50%) translateY(0) !important;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0s;
}
.gz-wrap .gz-dropdown-link {
  display: flex !important;
  align-items: center !important;
  font-size: 0.741rem !important;
  font-weight: 500 !important;
  color: #A8C3FC !important;
  text-decoration: none !important;
  padding: 0.6rem 0.85rem !important;
  border-radius: 9px;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
  font-family: 'DM Sans', sans-serif !important;
  line-height: 1.4 !important;
}
.gz-wrap .gz-dropdown-link:hover { color: #fff !important; background: rgba(42,101,243,0.22) !important; }
.gz-wrap .gz-dropdown-link.active { color: #fff !important; background: rgba(42,101,243,0.34) !important; }

/* Vertical gap between dropdown items so hover/active highlights never touch */
.gz-wrap .gz-dropdown > li { margin: 0 0 3px 0 !important; }
.gz-wrap .gz-dropdown > li:last-child { margin-bottom: 0 !important; }

/* ── Login CTA group ── */
.gz-wrap .gz-nav-right {
  display: flex !important;
  align-items: center !important;
  gap: 0.6rem;
  flex-shrink: 0;
  margin-left: 0.5rem;
}

/* "Already have an account?" label — hidden on narrow screens */
.gz-wrap .gz-login-label {
  font-size: 0.78rem !important;
  font-weight: 400 !important;
  color: rgba(168,195,252,0.6) !important;
  white-space: nowrap;
  font-family: 'DM Sans', sans-serif !important;
  line-height: 1.4 !important;
  letter-spacing: 0.01em;
}

/* Log In button */
.gz-wrap .gz-nav-login {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.4rem;
  background: #2A65F3 !important;
  color: #fff !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  padding: 0.55rem 1.2rem !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.18s, transform 0.15s, box-shadow 0.18s;
  border: none !important;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(42,101,243,0.3) !important;
}
.gz-wrap .gz-nav-login svg {
  width: 14px; height: 14px;
  stroke: #fff; fill: none; flex-shrink: 0;
}
.gz-wrap .gz-nav-login:hover {
  background: #4F82F7 !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(42,101,243,0.45) !important;
  color: #fff !important;
}

/* ── Hamburger ── */
.gz-wrap .gz-hamburger {
  display: none !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 5px;
  background: transparent !important;
  border: none !important;
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 6px;
  transition: background 0.18s;
  outline: none;
}
.gz-wrap .gz-hamburger:hover { background: #3d74f5 !important; }
.gz-wrap .gz-hamburger span {
  display: block !important;
  width: 22px; height: 2.5px;
  background: #A8C3FC !important;
  border-radius: 2px;
  transition: all 0.25s;
}

/* Blue bg + white bars once we hit the hamburger breakpoint */
@media (max-width: 992px) {
  .gz-wrap .gz-hamburger {
    background: #2A65F3 !important;
    border-radius: 8px !important;
    padding: 0.5rem 0.55rem !important;
  }
  .gz-wrap .gz-hamburger span { background: #fff !important; }
  .gz-wrap .gz-hamburger:hover { background: #4F82F7 !important; }
  .gz-wrap .gz-hamburger.open { background: #4F82F7 !important; }
}
.gz-wrap .gz-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.gz-wrap .gz-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.gz-wrap .gz-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile menu ── */
.gz-wrap .gz-mobile-menu {
  display: none !important;
  flex-direction: column !important;
  background: #0d1526 !important;
  border-top: 1px solid rgba(42,101,243,0.15) !important;
  padding: 0.25rem var(--gz-gutter) 1.5rem !important;
  max-height: 80vh;
  overflow-y: auto;
}
.gz-wrap .gz-mobile-menu.open { display: flex !important; animation: gzSlideDown 0.22s ease both; }
@keyframes gzSlideDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

.gz-wrap .gz-m-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  border-bottom: 1px solid rgba(42,101,243,0.1) !important;
  margin: 0 !important;
}
.gz-wrap .gz-mobile-link {
  flex: 1;
  font-size: 0.92rem !important;
  font-weight: 500 !important;
  color: #A8C3FC !important;
  text-decoration: none !important;
  padding: 0.8rem 0.25rem !important;
  display: block !important;
  transition: color 0.15s;
  font-family: 'DM Sans', sans-serif !important;
  line-height: 1.4 !important;
}
.gz-wrap .gz-mobile-link:hover { color: #D4E3FE !important; }
.gz-wrap .gz-mobile-link.active,
.gz-wrap .gz-mobile-sub-link.active { color: #fff !important; }
.gz-wrap .gz-m-toggle {
  background: transparent !important; border: none !important; cursor: pointer;
  padding: 0.8rem 0.5rem !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
}
.gz-wrap .gz-m-toggle svg { width: 15px; height: 15px; stroke: #A8C3FC !important; fill: none; transition: transform 0.22s, stroke 0.18s; display: block; }
.gz-wrap .gz-m-toggle.open svg { transform: rotate(180deg); stroke: #fff !important; }

.gz-wrap .gz-mobile-sub {
  display: none !important;
  flex-direction: column !important;
  background: rgba(42,101,243,0.07) !important;
  border-left: 2px solid rgba(42,101,243,0.45) !important;
  margin: 0 0 0.15rem 0;
  border-radius: 0 0 8px 8px;
  overflow: hidden;
}
.gz-wrap .gz-mobile-sub.open { display: flex !important; }
.gz-wrap .gz-mobile-sub-link {
  font-size: 0.756rem !important; font-weight: 500 !important;
  color: #A8C3FC !important; text-decoration: none !important;
  padding: 0.65rem 1rem !important;
  display: flex !important; align-items: center !important; gap: 0.5rem;
  border-bottom: 1px solid rgba(42,101,243,0.08) !important;
  transition: color 0.15s, background 0.15s;
  font-family: 'DM Sans', sans-serif !important; line-height: 1.4 !important;
}
.gz-wrap .gz-mobile-sub-link:last-child { border-bottom: none !important; }
.gz-wrap .gz-mobile-sub-link:hover { color: #fff !important; background: rgba(42,101,243,0.18) !important; }
.gz-wrap .gz-mobile-sub-link::before { content: '›'; color: rgba(168,195,252,0.45); font-size: 1rem; line-height: 1; }

/* Mobile login block — shown inside mobile menu */
.gz-wrap .gz-mobile-login-block {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 1rem 0.25rem 0.25rem !important;
  gap: 1rem;
  border-top: 1px solid rgba(42,101,243,0.18) !important;
  margin-top: 0.5rem !important;
}
.gz-wrap .gz-mobile-login-label {
  font-size: 0.82rem !important;
  font-weight: 400 !important;
  color: rgba(168,195,252,0.6) !important;
  font-family: 'DM Sans', sans-serif !important;
  line-height: 1.4 !important;
}
.gz-wrap .gz-mobile-login-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.35rem;
  background: #2A65F3 !important;
  color: #fff !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  padding: 0.5rem 1.1rem !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  white-space: nowrap;
  flex-shrink: 0;
  border: none !important;
  box-shadow: 0 2px 12px rgba(42,101,243,0.3) !important;
  transition: background 0.18s;
}
.gz-wrap .gz-mobile-login-btn svg {
  width: 13px; height: 13px; stroke: #fff; fill: none; flex-shrink: 0;
}
.gz-wrap .gz-mobile-login-btn:hover { background: #4F82F7 !important; color: #fff !important; }

/* ════════════════════════════════
   MENU RESPONSIVE BREAKPOINTS
════════════════════════════════ */
/* Small desktop: gently tighten link spacing/size so 7 items stay on one row */
@media (max-width: 1200px) {
  .gz-wrap .gz-nav-link { font-size: 0.8rem !important; padding: 0.45rem 0.8rem !important; }
}
@media (max-width: 1080px) {
  .gz-wrap .gz-nav-link { font-size: 0.77rem !important; padding: 0.4rem 0.6rem !important; }
  .gz-wrap .gz-logo { margin-right: 0.75rem; }
  .gz-wrap .gz-login-label { display: none !important; }   /* free up room before collapsing */
}

/* Tablet & below: switch to hamburger menu.
   992px chosen so the 7 links never get cramped — below this we go mobile. */
@media (max-width: 992px) {
  .gz-wrap .gz-nav-links   { display: none !important; }
  .gz-wrap .gz-hamburger   { display: flex !important; }
  .gz-wrap .gz-login-label { display: none !important; }
}

/* Large phone / small tablet */
@media (max-width: 600px) {
  .gz-wrap .gz-nav-inner { height: 62px !important; }
  .gz-wrap .gz-logo img  { height: 32px !important; }
}

/* Phone: keep the Log In text, drop its icon, tighten padding */
@media (max-width: 480px) {
  .gz-wrap .gz-nav-inner { height: 58px !important; }
  .gz-wrap .gz-logo img  { height: 30px !important; }
  .gz-wrap .gz-nav-right { gap: 0.4rem !important; }
  .gz-wrap .gz-nav-login {
    font-size: 0.75rem !important;
    padding: 0.45rem 0.85rem !important;
    gap: 0.3rem !important;
  }
  .gz-wrap .gz-nav-login .gz-login-text { display: inline !important; }
  .gz-wrap .gz-nav-login svg { display: none !important; }
}

/* Very small phones (≈360px): make sure logo + button never overflow */
@media (max-width: 360px) {
  .gz-wrap .gz-logo img  { height: 27px !important; }
  .gz-wrap .gz-nav-login { padding: 0.4rem 0.7rem !important; }
}
/* ── Language switch: right after the socials on desktop, centred between socials and icons on smaller screens ── */
.gz-top-lang { display: flex !important; align-items: center !important; gap: 2px !important; margin: 0 auto 0 0.9rem !important; padding: 2px !important;
  border-radius: 6px !important; background: rgba(255,255,255,0.14) !important; flex-shrink: 0 !important; }
.gz-top-lang a, .gz-top-lang span { display: inline-flex !important; align-items: center !important; justify-content: center !important; min-width: 30px !important;
  padding: 0 6px !important; border-radius: 4px !important; font-family: 'DM Sans', sans-serif !important; font-size: 0.72rem !important; font-weight: 700 !important;
  letter-spacing: 0.04em !important; line-height: 1 !important; color: rgba(255,255,255,0.88) !important; text-decoration: none !important; transition: background 0.18s, color 0.18s !important; }
/* Colour per language: English neutral white, French soft flag red, Spanish flag yellow.
   The language you are on is bold, at full strength, on a light flat shade of its own colour.
   The other two are plain dimmed text and brighten on hover. */
.gz-top-lang { background: transparent !important; }
.gz-top-lang a, .gz-top-lang span { background: transparent !important; box-shadow: none !important; }
/* Equal space above and below the letters: trim the text box to the capital letters so they sit dead centre in the shade
   (supported in current Chrome, Edge and Safari; elsewhere the line-height 1 box is already within a pixel) */
.gz-top-lang a, .gz-top-lang span { display: block !important; height: auto !important; padding-top: 5px !important; padding-bottom: 5px !important;
  text-align: center !important; text-box: trim-both cap alphabetic; }
.gz-top-lang [lang="en"] { --gz-lbg: rgba(255,255,255,0.16); color: #FFFFFF !important; }
.gz-top-lang [lang="fr"] { --gz-lbg: rgba(255,194,194,0.2); color: #FFC2C2 !important; }
.gz-top-lang [lang="es"] { --gz-lbg: rgba(255,216,77,0.2); color: #FFD84D !important; }
.gz-top-lang a { opacity: 0.62 !important; font-weight: 600 !important; transition: opacity 0.18s !important; }
.gz-top-lang a:hover { opacity: 1 !important; }
.gz-top-lang [aria-current] { opacity: 1 !important; font-weight: 800 !important; background: var(--gz-lbg) !important; box-shadow: none !important; }
/* Between 861px and 1024px the labelled items get a little tighter so the bar stays on one row */
@media (max-width: 1024px) {
  .gz-top-item { padding: 0 0.7rem !important; }
}
@media (max-width: 860px) {
  .gz-top-lang { margin: 0 auto !important; }
  .gz-top-lang a, .gz-top-lang span { min-width: 32px !important; }
}
/* Phones: the language switch must never push the top bar onto a second row.
   The bar keeps the same height as before (one row, 41px), so nothing below it moves. */
@media (max-width: 860px) {
  .gz-top-inner { flex-wrap: nowrap !important; }
  .gz-top-right { flex-wrap: nowrap !important; }
}
@media (max-width: 480px) {
  .gz-top-inner { gap: 0.3rem !important; }
  .gz-top-socials { gap: 0.25rem !important; }
  .gz-top-item { padding: 0 0.45rem !important; }
  .gz-top-lang a, .gz-top-lang span { min-width: 26px !important; padding-left: 4px !important; padding-right: 4px !important; font-size: 0.68rem !important; }
}
@media (max-width: 360px) {
  .gz-top-item { padding: 0 0.32rem !important; }
  .gz-top-social-link { width: 20px !important; height: 20px !important; }
  .gz-top-lang a, .gz-top-lang span { min-width: 23px !important; padding-left: 3px !important; padding-right: 3px !important; }
}
