/* ── Alpine cloak ────────────────────────────────────────────────── */
[x-cloak] { display: none !important; }

/* ── Header shell ────────────────────────────────────────────────── */
.zps-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
}

.zps-header__main {
  background: transparent !important;
  padding: 18px 0 !important;
  box-shadow: none !important;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

.zps-header__main.is-sticky {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10) !important;
  padding: 12px 0 !important;
}

.zps-header__inner {
  max-width: 1680px;
  padding: 10px 20px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.zps-header__logo img {
  max-height: 54px !important;
}

/* ── Desktop NAV ─────────────────────────────────────────────────── */
.zps-header__nav .nav {
  display: flex;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.zps-header__nav .nav a {
  color: #0f172a !important;
  font-weight: 500;
  text-decoration: none;
  font-size: 1rem;
  padding: 10px 12px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.zps-header__nav .nav a:hover {
  background: rgba(15, 23, 42, 0.06);
}

.zps-header__nav .nav .current-menu-item > a,
.zps-header__nav .nav .current_page_item > a,
.zps-header__nav .nav .current-menu-parent > a,
.zps-header__nav .nav .current-menu-ancestor > a,
.zps-header__nav .nav a.is-anchor-active {
  background: rgba(15, 23, 42, 0.08) !important;
  font-weight: 600;
}

/* ── Desktop CTA ─────────────────────────────────────────────────── */
.zps-header__cta .btn-primary {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
  padding: 10px 18px !important;
  border-radius: 999px !important;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.zps-header__cta .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.10);
}

/* ── Desktop dropdown ────────────────────────────────────────────── */
@media (min-width: 992px) {
  .zps-header__nav .sub-menu {
    border-top: 0 !important;
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    margin-top: 14px !important;
  }

  .zps-header__nav .sub-menu li a {
    color: #0f172a !important;
    font-size: 14px;
    padding: 10px 16px;
    border-radius: 10px;
  }

  .zps-header__nav .sub-menu li a:hover {
    background: rgba(15, 23, 42, 0.06) !important;
  }

  .zps-header__nav {
    margin-left: auto;
    padding-right: 24px;
    border-right: 2.5px solid rgb(2, 24, 75);
  }

  .zps-header__cta {
    margin-left: 24px;
  }
}

/* ── Hamburger toggle ────────────────────────────────────────────── */
.zps-menu-toggle {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
  padding: 10px 14px !important;
  border-radius: 12px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.zps-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #0f172a;
  border-radius: 2px;
}

/* ── Alpine transition classes ───────────────────────────────────── */
.zps-anim-enter,
.zps-anim-leave {
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.zps-anim-from {
  opacity: 0;
  transform: translateY(-10px);
}

.zps-anim-to {
  opacity: 1;
  transform: translateY(0);
}

/* ── Full-screen mobile menu overlay ─────────────────────────────── */
.zps-fullscreen-menu {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

/* Top bar: logo + close */
.zps-fullscreen-menu__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
  flex-shrink: 0;
}

.zps-fullscreen-menu__bar .zps-header__logo img {
  max-height: 46px !important;
}

.zps-fullscreen-menu__close {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.06);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #0f172a;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.zps-fullscreen-menu__close:hover {
  background: rgba(15, 23, 42, 0.12);
}

/* ── Nav list ────────────────────────────────────────────────────── */
.zps-fullscreen-menu__nav {
  flex: 1;
  padding: 12px 16px;
}

.zps-fullscreen-nav,
.zps-fullscreen-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.zps-fullscreen-nav > li {
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.zps-fullscreen-nav > li:last-child {
  border-bottom: none;
}

/* item wrapper: link + optional toggle side-by-side */
.zps-nav-item-wrap {
  display: flex;
  align-items: center;
}

.zps-fullscreen-nav li a {
  flex: 1;
  display: block;
  padding: 15px 12px;
  color: #0f172a !important;
  font-size: 1.05rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 10px;
  transition: background 0.15s ease;
}

.zps-fullscreen-nav li a:hover {
  background: rgba(15, 23, 42, 0.05);
}

.zps-fullscreen-nav .current-menu-item > .zps-nav-item-wrap > a,
.zps-fullscreen-nav .current_page_item > .zps-nav-item-wrap > a {
  font-weight: 700;
  color: rgb(2, 24, 75) !important;
}

/* Sub-menu toggle arrow */
.submenu-toggle {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  background: rgba(15, 23, 42, 0.05);
  border: none;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #0f172a;
  transition: background 0.15s ease;
  margin-right: 4px;
}

.submenu-toggle:hover {
  background: rgba(15, 23, 42, 0.10);
}

.submenu-toggle svg {
  transition: transform 0.25s ease;
}

.submenu-toggle.is-open svg {
  transform: rotate(180deg);
}

/* Sub-menu items */
.zps-fullscreen-nav .sub-menu {
  padding: 0 0 8px 16px;
}

.zps-fullscreen-nav .sub-menu li a {
  font-size: 0.93rem;
  padding: 11px 12px;
  color: #334155 !important;
}

/* ── Bottom CTA ──────────────────────────────────────────────────── */
.zps-fullscreen-menu__cta {
  padding: 16px 20px 32px;
  border-top: 1px solid rgba(15, 23, 42, 0.07);
  flex-shrink: 0;
}

.zps-fullscreen-menu__cta .btn-primary {
  display: block;
  text-align: center;
  background: #02184b !important;
  color: #ffffff !important;
  border: none !important;
  padding: 15px 20px !important;
  border-radius: 999px !important;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.zps-fullscreen-menu__cta .btn-primary:hover {
  opacity: 0.85;
}
