/* =========================================================
   SHARED SITE CHROME
   Header, service dropdown and footer used on every page.
   ========================================================= */

:root {
  --mzs-bg: #09090b;
  --mzs-panel: rgba(18, 18, 22, 0.94);
  --mzs-text: #f8f7fb;
  --mzs-muted: #aaa7b2;
  --mzs-line: rgba(255, 255, 255, 0.12);
  --mzs-accent: #b68aff;
  --mzs-accent-2: #f3a5e9;
  --mzs-radius: 22px;
  --mzs-max: 1360px;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.mzs-site-header,
.mzs-site-footer {
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

.mzs-site-header *,
.mzs-site-footer * {
  box-sizing: border-box;
}

.mzs-site-header {
  position: relative;
  z-index: 1000;
  width: 100%;
  color: var(--mzs-text);
  background: rgba(9, 9, 11, 0.84);
  border-bottom: 1px solid var(--mzs-line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.mzs-header-inner {
  width: min(calc(100% - 64px), var(--mzs-max));
  min-height: 84px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.mzs-brand {
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
  flex: 0 0 auto;
  line-height: 0;
}

.mzs-brand-logo {
  display: block;
  width: clamp(150px, 12vw, 205px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 22px rgba(182, 138, 255, 0.08));
  transition: transform .3s ease, opacity .3s ease;
}

.mzs-brand:hover .mzs-brand-logo {
  transform: translateY(-1px);
  opacity: .92;
}

.mzs-primary-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mzs-nav-link,
.mzs-dropdown-toggle,
.mzs-nav-cta {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #d9d7df;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.mzs-nav-link:hover,
.mzs-nav-link.is-active,
.mzs-nav-dropdown.is-active > .mzs-dropdown-toggle {
  color: #fff;
  background: rgba(255,255,255,.07);
}

.mzs-dropdown-toggle svg {
  width: 10px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  transition: transform .2s ease;
}

.mzs-nav-dropdown {
  position: relative;
}

/* Keep the Services dropdown hoverable while the pointer travels
   from the trigger to the floating menu. */
.mzs-nav-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: -12px;
  right: -12px;
  height: 18px;
  pointer-events: auto;
}

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

.mzs-dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  width: 320px;
  padding: 10px;
  border: 1px solid var(--mzs-line);
  border-radius: var(--mzs-radius);
  background: var(--mzs-panel);
  box-shadow: 0 24px 80px rgba(0,0,0,.42);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}

.mzs-nav-dropdown.is-open .mzs-dropdown-menu,
.mzs-nav-dropdown:hover .mzs-dropdown-menu,
.mzs-nav-dropdown:focus-within .mzs-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.mzs-service-link {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 12px;
  border-radius: 14px;
  color: #eceaf0;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}

.mzs-service-link:hover,
.mzs-service-link.is-active {
  background: rgba(182, 138, 255, .12);
  transform: translateX(2px);
}

.mzs-service-link span {
  color: #797681;
  font-size: 10px;
  letter-spacing: .12em;
}

.mzs-service-link strong {
  font-size: 13px;
}

.mzs-service-link i {
  color: var(--mzs-accent);
  font-style: normal;
  font-size: 14px;
}

.mzs-nav-cta {
  margin-left: 6px;
  padding: 0 18px;
  color: #140e19;
  background: linear-gradient(110deg, #9b78ff, #d98ef1 64%, #ffc18b);
}

.mzs-nav-cta:hover {
  color: #140e19;
  transform: translateY(-2px);
}

.mzs-menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--mzs-line);
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  cursor: pointer;
}

.mzs-menu-toggle > span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 1px;
  margin: 5px auto;
  background: #fff;
  transition: transform .2s ease;
}

.mzs-menu-toggle[aria-expanded="true"] > span:first-child {
  transform: translateY(3px) rotate(45deg);
}

.mzs-menu-toggle[aria-expanded="true"] > span:nth-child(2) {
  transform: translateY(-3px) rotate(-45deg);
}

/* Shared footer */
.mzs-site-footer {
  position: relative;
  z-index: 20;
  color: var(--mzs-text);
  background: #09090b;
  border-top: 1px solid var(--mzs-line);
}

.mzs-footer-inner {
  width: min(calc(100% - 64px), var(--mzs-max));
  margin: 0 auto;
  padding: 72px 0 28px;
}

.mzs-footer-main {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 62px;
}

.mzs-footer-kicker {
  margin: 0 0 14px;
  color: var(--mzs-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.mzs-footer-main h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(42px, 6vw, 82px);
  line-height: .98;
  letter-spacing: -.06em;
}

.mzs-footer-main h2 em {
  color: var(--mzs-accent);
  font-style: normal;
}

.mzs-footer-cta {
  width: 150px;
  height: 150px;
  flex: 0 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  color: #160f1c;
  background: linear-gradient(135deg, #b68aff, #f0a1ea 64%, #ffc394);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform .3s ease;
}

.mzs-footer-cta:hover {
  transform: rotate(-4deg) scale(1.04);
}

.mzs-footer-bottom {
  min-height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  border-top: 1px solid var(--mzs-line);
  color: var(--mzs-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.mzs-footer-bottom a {
  color: inherit;
  text-decoration: none;
}

.mzs-footer-brand {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  line-height: 0;
}

.mzs-footer-brand img {
  display: block;
  width: 145px;
  height: auto;
  opacity: .92;
}

.mzs-footer-bottom nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.mzs-footer-bottom > a:last-child {
  justify-self: end;
}

.mzs-footer-bottom a:hover {
  color: #fff;
}

@media (max-width: 900px) {
  .mzs-header-inner,
  .mzs-footer-inner {
    width: min(calc(100% - 36px), var(--mzs-max));
  }

  .mzs-menu-toggle { display: block; }

  .mzs-primary-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 18px;
    right: 18px;
    display: none;
    padding: 12px;
    border: 1px solid var(--mzs-line);
    border-radius: 0 0 20px 20px;
    background: rgba(12,12,15,.98);
    box-shadow: 0 30px 60px rgba(0,0,0,.35);
  }

  .mzs-primary-nav.is-open {
    display: grid;
  }

  .mzs-nav-link,
  .mzs-dropdown-toggle,
  .mzs-nav-cta {
    width: 100%;
    min-height: 48px;
    justify-content: space-between;
    border-radius: 12px;
    padding-inline: 14px;
  }

  .mzs-nav-cta { margin-left: 0; }

  .mzs-dropdown-menu {
    position: static;
    width: 100%;
    display: none;
    margin-top: 4px;
    border: 0;
    background: rgba(255,255,255,.035);
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .mzs-nav-dropdown:hover .mzs-dropdown-menu,
  .mzs-nav-dropdown:focus-within .mzs-dropdown-menu {
    display: none;
  }

  .mzs-nav-dropdown.is-open .mzs-dropdown-menu {
    display: block;
  }

  .mzs-footer-main {
    align-items: flex-start;
    flex-direction: column;
  }

  .mzs-footer-bottom {
    grid-template-columns: 1fr;
    align-items: start;
    padding: 24px 0 10px;
  }

  .mzs-footer-bottom nav {
    flex-wrap: wrap;
  }

  .mzs-footer-bottom > a:last-child {
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .mzs-header-inner { min-height: 74px; }
  .mzs-brand-logo { width: 142px; }
  .mzs-footer-brand img { width: 132px; }
  .mzs-footer-inner { padding-top: 56px; }
  .mzs-footer-main { padding-bottom: 46px; }
  .mzs-footer-cta { width: 124px; height: 124px; }
  .mzs-footer-bottom nav { gap: 12px 16px; }
}
