/* ==========================================================================
   Z&S ENTERPRISES — PREMIUM NAVBAR
   Version: Polished
   ========================================================================== */

:root {
  --zs-bg: #14231D;
  --zs-mocha: #1D3027;
  --zs-mocha-2: #284238;

  --zs-glass: rgba(29, 48, 39, 0.82);
  --zs-glass-strong: rgba(20, 35, 29, 0.94);

  --zs-ivory: #F4F0E7;
  --zs-text-muted: #B8C1B9;

  --zs-gold: #C9A66B;
  --zs-gold-hover: #DFC38E;

  --zs-border: rgba(244, 240, 231, 0.12);
  --zs-border-gold: rgba(201, 166, 107, 0.38);

  --zs-nav-radius: 22px;
  --zs-nav-height-top: 80px;
  --zs-nav-height-scrolled: 66px;

  --zs-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   RESET
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ==========================================================================
   NAVBAR WRAPPER
   ========================================================================== */

.zs-nav-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;

  z-index: 1000;

  display: flex;
  flex-direction: column;
  align-items: center;

  pointer-events: none;
}

.zs-nav-wrap>* {
  pointer-events: auto;
}

/* ==========================================================================
   MAIN NAVBAR
   ========================================================================== */

.zs-nav {
  position: relative;

  display: flex;
  align-items: center;

  width: calc(100% - 40px);
  max-width: 1400px;

  height: var(--zs-nav-height-top);

  margin: 20px auto 0;
  padding: 0 26px;

  gap: 26px;

  border: 1px solid var(--zs-border);
  border-radius: var(--zs-nav-radius);

  background: var(--zs-glass);

  box-shadow:
    0 10px 35px rgba(0, 0, 0, 0.20),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);

  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);

  transition:
    height 360ms var(--zs-ease),
    margin 360ms var(--zs-ease),
    background 360ms var(--zs-ease),
    border-color 360ms var(--zs-ease),
    box-shadow 360ms var(--zs-ease);
}

/* ==========================================================================
   SCROLLED NAVBAR
   ========================================================================== */

.zs-nav.is-scrolled {
  height: var(--zs-nav-height-scrolled);
  margin-top: 12px;

  background: var(--zs-glass-strong);

  border-color: var(--zs-border-gold);

  box-shadow:
    0 12px 36px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

/* ==========================================================================
   BRAND
   ========================================================================== */

.zs-brand {
  display: flex;
  align-items: center;

  gap: 12px;

  flex-shrink: 0;
}

/* Logo frame */
.zs-logo {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 44px;
  height: 44px;

  flex-shrink: 0;

  overflow: hidden;

  border-radius: 12px;
  border: 1px solid var(--zs-border-gold);

  background:
    linear-gradient(145deg,
      var(--zs-mocha-2),
      var(--zs-bg));

  color: var(--zs-gold);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.zs-logo img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: contain;

  border-radius: inherit;
}

/* Brand text */
.zs-brand-text {
  display: flex;
  flex-direction: column;

  line-height: 1.15;

  white-space: nowrap;
}

.zs-brand-name {
  color: var(--zs-ivory);

  font-size: 16px;
  font-weight: 600;

  letter-spacing: 0.01em;
}

.zs-brand-tagline {
  margin-top: 3px;

  color: var(--zs-text-muted);

  font-size: 11px;
  font-weight: 400;

  letter-spacing: 0.025em;
}

/* ==========================================================================
   DIVIDER
   ========================================================================== */

.zs-divider {
  width: 1px;
  height: 34px;

  flex-shrink: 0;

  background: rgba(244, 240, 231, 0.12);
}

/* ==========================================================================
   DESKTOP NAVIGATION
   ========================================================================== */

.zs-links {
  display: flex;
  align-items: center;

  flex: 1;

  gap: 2px;
}

.zs-link {
  position: relative;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 6px;

  padding: 9px 14px;

  border: 1px solid transparent;
  border-radius: 999px;

  background: transparent;

  color: var(--zs-text-muted);

  font-size: 13.5px;
  font-weight: 500;

  white-space: nowrap;

  cursor: pointer;

  transition:
    color 220ms var(--zs-ease),
    background 220ms var(--zs-ease),
    border-color 220ms var(--zs-ease),
    transform 220ms var(--zs-ease);
}

.zs-link:hover {
  color: var(--zs-ivory);

  background: rgba(244, 240, 231, 0.055);

  transform: translateY(-1px);
}

/* Hover underline */
.zs-link::after {
  content: "";

  position: absolute;

  left: 15px;
  right: 15px;
  bottom: 4px;

  height: 1px;

  background: var(--zs-gold);

  opacity: 0;

  transform: scaleX(0.6);

  transition:
    opacity 220ms var(--zs-ease),
    transform 220ms var(--zs-ease);
}

.zs-link:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

/* Active page */
.zs-link.is-active {
  color: var(--zs-ivory);

  background: rgba(201, 166, 107, 0.10);

  border-color: var(--zs-border-gold);

  box-shadow:
    inset 0 0 0 1px rgba(201, 166, 107, 0.025),
    0 0 18px rgba(201, 166, 107, 0.07);
}

.zs-link.is-active::after {
  display: none;
}

/* ==========================================================================
   CONTACT BUTTON
   ========================================================================== */

.zs-contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;

  padding: 11px 23px;

  border-radius: 999px;

  background: var(--zs-gold);

  color: #211A14;

  font-size: 13.5px;
  font-weight: 600;

  letter-spacing: 0.01em;

  box-shadow:
    0 7px 20px rgba(201, 166, 107, 0.18);

  transition:
    background 220ms var(--zs-ease),
    transform 220ms var(--zs-ease),
    box-shadow 220ms var(--zs-ease);
}

.zs-contact-btn:hover {
  background: var(--zs-gold-hover);

  transform: translateY(-2px);

  box-shadow:
    0 11px 28px rgba(201, 166, 107, 0.26);
}

/* ==========================================================================
   HAMBURGER
   ========================================================================== */

.zs-hamburger {
  display: none;

  align-items: center;
  justify-content: center;

  flex-direction: column;

  width: 40px;
  height: 40px;

  margin-left: auto;

  gap: 5px;

  border: 1px solid var(--zs-border);
  border-radius: 11px;

  background: rgba(244, 240, 231, 0.025);

  cursor: pointer;

  transition:
    background 200ms var(--zs-ease),
    border-color 200ms var(--zs-ease);
}

.zs-hamburger:hover {
  background: rgba(244, 240, 231, 0.06);
  border-color: var(--zs-border-gold);
}

.zs-burger-line {
  display: block;

  width: 18px;
  height: 1.5px;

  border-radius: 2px;

  background: var(--zs-ivory);

  transition:
    transform 280ms var(--zs-ease),
    opacity 220ms var(--zs-ease);
}

.zs-hamburger[aria-expanded="true"] .zs-burger-line:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.zs-hamburger[aria-expanded="true"] .zs-burger-line:nth-child(2) {
  opacity: 0;
}

.zs-hamburger[aria-expanded="true"] .zs-burger-line:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ==========================================================================
   MOBILE MENU
   ========================================================================== */

.zs-mobile-menu {
  width: calc(100% - 40px);
  max-width: 1400px;

  margin: 10px auto 0;

  max-height: 0;

  overflow: hidden;

  opacity: 0;

  transform: translateY(-8px);

  pointer-events: none;

  transition:
    max-height 380ms var(--zs-ease),
    opacity 280ms var(--zs-ease),
    transform 280ms var(--zs-ease);
}

.zs-mobile-menu.is-open {
  max-height: 560px;

  opacity: 1;

  transform: translateY(0);

  pointer-events: auto;
}

.zs-mobile-panel {
  padding: 12px;

  border: 1px solid var(--zs-border);
  border-radius: 18px;

  background: var(--zs-glass-strong);

  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.30);

  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.zs-mobile-links li {
  opacity: 0;

  transform: translateY(-6px);

  transition:
    opacity 240ms var(--zs-ease),
    transform 240ms var(--zs-ease);

  transition-delay: calc(var(--i) * 40ms);
}

.zs-mobile-menu.is-open .zs-mobile-links li {
  opacity: 1;
  transform: translateY(0);
}

.zs-mobile-link {
  display: block;

  padding: 12px 13px;

  border: 1px solid transparent;
  border-radius: 11px;

  color: var(--zs-text-muted);

  font-size: 14px;
  font-weight: 500;

  transition:
    color 180ms var(--zs-ease),
    background 180ms var(--zs-ease),
    border-color 180ms var(--zs-ease);
}

.zs-mobile-link:hover {
  color: var(--zs-ivory);

  background: rgba(244, 240, 231, 0.045);
}

.zs-mobile-link.is-active {
  color: var(--zs-ivory);

  background: rgba(201, 166, 107, 0.10);

  border-color: var(--zs-border-gold);
}

.zs-mobile-cta-row {
  display: flex;
  justify-content: center;

  margin-top: 8px;
  padding-top: 12px;

  border-top: 1px solid var(--zs-border);
}

.zs-contact-btn--mobile {
  width: 100%;

  padding: 13px 24px;
}

/* ==========================================================================
   FOCUS ACCESSIBILITY
   ========================================================================== */

.zs-nav a:focus-visible,
.zs-nav button:focus-visible,
.zs-mobile-menu a:focus-visible {
  outline: 2px solid var(--zs-gold);
  outline-offset: 3px;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1100px) {
  .zs-nav {
    gap: 18px;
    padding: 0 20px;
  }

  .zs-link {
    padding-left: 10px;
    padding-right: 10px;
  }
}

@media (max-width: 992px) {
  .zs-nav {
    gap: 16px;
  }

  .zs-links {
    display: none;
  }

  .zs-contact-btn:not(.zs-contact-btn--mobile) {
    display: none;
  }

  .zs-hamburger {
    display: flex;
  }
}

@media (min-width: 993px) {
  .zs-mobile-menu {
    display: none;
  }
}

@media (max-width: 768px) {
  .zs-nav {
    width: calc(100% - 24px);

    height: 68px;

    margin-top: 14px;

    padding: 0 18px;

    border-radius: 19px;
  }

  .zs-nav.is-scrolled {
    height: 62px;
    margin-top: 10px;
  }

  .zs-mobile-menu {
    width: calc(100% - 24px);
  }

  .zs-divider {
    display: none;
  }

  .zs-brand-tagline {
    display: none;
  }
}

@media (max-width: 480px) {
  .zs-nav {
    padding: 0 14px;
    gap: 10px;
  }

  .zs-brand {
    gap: 9px;
  }

  .zs-brand-name {
    font-size: 15px;
  }

  .zs-logo {
    width: 39px;
    height: 39px;
    border-radius: 10px;
  }

  .zs-hamburger {
    width: 37px;
    height: 37px;
  }
}

@media (max-width: 350px) {
  .zs-brand-name {
    font-size: 14px;
  }

  .zs-logo {
    width: 36px;
    height: 36px;
  }

  .zs-nav {
    padding: 0 11px;
  }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {

  .zs-nav,
  .zs-link,
  .zs-contact-btn,
  .zs-mobile-menu,
  .zs-mobile-links li,
  .zs-burger-line {
    transition: none !important;
  }
}