/* =================================== */
/* header.css                          */
/* Zesty Finance site header/navbar    */
/* Matches zestyfinance.com exactly    */
/* =================================== */

/* Sticky outer wrapper — transparent, always on top */
.ze-site-header {
  position: sticky;
  top: 0;
  z-index: 5000;
  font-family: 'Bitstream Swiss 721', sans-serif;
  font-weight: 400;
  color: #FFFFFF;
}

/* Inner container — matches .navbar-logo-left-container (height: 112px, padding: 16px 40px, margin: 0 26px) */
.ze-header-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  max-width: 1440px;
  margin: 0 26px;
  padding: 32px 40px 16px;
  height: 128px;
  box-sizing: border-box;
}

@media (min-width: 1493px) {
  .ze-header-inner {
    margin: 0 auto;
  }
}

.ze-site-header a {
  text-decoration: none !important;
  color: inherit !important;
}

/* ---- Logo — matches .navbar-branding (200x40) ---- */
.ze-header-logo {
  display: block;
  flex-shrink: 0;
  width: 200px;
  height: 40px;
  margin-top: 10px;
}

.ze-header-logo img {
  height: 40px;
  width: auto;
}

/* ---- Desktop nav links (center) — matches .menu-2 ---- */
.ze-header-nav {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
}

/* Each nav link — matches exact computed: height 60px, border 2px, blur(4px) */
.ze-header-nav-link,
.ze-header-login {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  height: 60px;
  border: 2px solid rgba(255, 255, 255, 0.04);
  border-radius: 80px;
  box-sizing: border-box;
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 15px;
  font-weight: 400;
  font-family: 'Bitstream Swiss 721', sans-serif;
  line-height: 24px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  text-decoration: none !important;
}

.ze-header-nav-link:hover,
.ze-header-login:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  color: #FFFFFF !important;
}

.ze-header-login img {
  width: 16px;
  height: 16px;
}

/* ---- CTA Button — matches .zesty-cta exactly: height 80px, padding 20px, margin 0 -20px 0 0 ---- */
.ze-header-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  height: 80px;
  border-radius: 80px;
  position: relative;
  overflow: hidden;
  margin: 0 -20px 0 0;
  text-decoration: none !important;
  flex-shrink: 0;
  box-sizing: border-box;
  transition: transform 0.2s ease;
}

.ze-header-cta:hover {
  transform: translateY(-1px);
}

/* Gradient border layer — matches .rb-border (absolute, inset 0, gradient bg, 80px tall) */
.ze-cta-border {
  position: absolute;
  inset: 0;
  border-radius: 80px;
  background: linear-gradient(rgba(237, 236, 237, 0.08), rgba(210, 209, 210, 0.24));
  overflow: hidden;
  pointer-events: none;
  display: flex;
}

/* Dark purple background with radial glow — matches .rb-bg (absolute, inset 1px) */
.ze-cta-bg {
  position: absolute;
  inset: 1px;
  border-radius: 80px;
  background: rgb(55, 43, 97);
  background-image: radial-gradient(circle at 150% 150%, rgba(108, 99, 255, 0.64) 45%, rgba(255, 255, 255, 0) 60%);
  pointer-events: none;
}

/* Content row — matches .rb-content exactly: height 40px, flex center, gap 8px, z-index 3 */
.ze-cta-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  position: relative;
  z-index: 3;
}

.ze-cta-text {
  color: #FFFFFF !important;
  font-size: 16px;
  font-weight: 400;
  font-family: 'Bitstream Swiss 721', sans-serif;
  line-height: normal;
  display: block;
  margin: 0;
}

/* App icon — matches .icon-app-download (40x40) */
.ze-cta-icon {
  width: 40px;
  height: 40px;
  border-radius: 0;
  display: block;
}

/* ---- Mobile hamburger ---- */
.ze-header-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}

.ze-header-hamburger img {
  width: 24px;
  height: 24px;
}

/* ---- Mobile menu overlay ---- */
.ze-mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgb(55, 43, 97);
  z-index: 4999;
  flex-direction: column;
  padding: 80px 32px 32px;
  gap: 0;
  overflow-y: auto;
}

.ze-mobile-menu.ze-active {
  display: flex;
}

.ze-mobile-menu a {
  color: #FFFFFF !important;
  text-decoration: none !important;
  font-size: 18px;
  font-weight: 400;
  font-family: 'Bitstream Swiss 721', sans-serif;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: block;
}

.ze-mobile-menu a:hover {
  color: #00E5AA !important;
}

.ze-mobile-social {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ze-mobile-social a {
  border: none !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.ze-mobile-social img {
  width: 20px;
  height: 20px;
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
  .ze-header-inner {
    padding: 14px 24px;
    height: 64px;
    align-items: center;
    margin: 0 12px;
  }

  .ze-header-logo {
    margin-top: 0;
  }

  .ze-header-nav {
    display: none;
  }

  .ze-header-cta {
    display: none;
  }

  .ze-header-hamburger {
    display: flex;
  }
}

/* ---- Dark mode ---- */
.ze-dark .ze-site-header {
  background: #0D0E1A;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ze-dark .ze-mobile-menu {
  background: #0D0E1A;
}
