/* ===============================
   NAVBAR COMPONENT
   =============================== */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  height: var(--nav-h);
  padding-top: 10px;
  transition: background 0.4s, border-color 0.4s, height 0.3s, padding-top 0.3s;
  border-bottom: 1px solid transparent;
}

.site-nav.scrolled {
  padding-top: 0;
}

/* Navbar when page scrolls */
.site-nav.scrolled {
  background: rgba(250,248,245,0.97);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
  height: 68px;
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

/* ===============================
   LOGO
   =============================== */

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo img {
  display: block;
  width: 120px;
  height: auto;
}

/* ===============================
   NAV LINKS
   =============================== */

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 36px;
  flex: 1;
  justify-content: center;
}

.nav-link {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: #1A1008;
  transition: color 0.25s;
  position: relative;
  padding-bottom: 4px;
}

/* underline animation */

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* ===============================
   ENQUIRE BUTTON
   =============================== */

.nav-enquire {
  padding: 12px 28px;
  font-size: 11px;
}

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

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--white);
  transition: all 0.3s;
}

/* hamburger animation */

.hamburger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ===============================
   MOBILE NAV
   =============================== */

@media (max-width: 900px) {

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(250,248,245,0.99);
    backdrop-filter: blur(20px);

    flex-direction: column;
    justify-content: flex-start;

    padding: 40px var(--pad-x);
    gap: 28px;

    transform: translateY(-100%);
    opacity: 0;

    transition: transform 0.4s, opacity 0.4s;

    pointer-events: none;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open {
    transform: none;
    opacity: 1;
    pointer-events: all;
  }

  .nav-link {
    font-size: 14px;
  }

  .nav-enquire {
    display: none;
  }

  .hamburger {
    display: flex;
  }

}