.site-nav {
  position: fixed; /* overlay on hero */
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  padding: 1.3rem 3rem;
  z-index: 999; /* above hero */
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent; 
  transition: transform 0.3s ease, background 0.3s ease;
    will-change: transform;
  overflow: visible;
}

/* Optional: after hero, solid navbar */
.site-nav.solid {
  background: rgba(39, 108, 121, 0.95); 
}



/* Container */
.nav-container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between; /* logo left, links/burger right */
}

/* ================================
   LOGO
================================ */
.nav-logo {
  font-family: 'Playfair Display', serif;

  font-size: 1rem;
  font-weight: 700;
  color: rgb(252, 252, 252);
  z-index: 101;
  margin-left: 3%;
  margin-right: 2rem; /* space from links/burger */
}

/* ================================
   NAV LINKS
================================ */
.nav-links {
  list-style: none;
  display: flex;
  gap: 3.2rem; /* space between links */
  margin-left: auto; /* push to right on desktop */
  align-items: center;
}

/* ================================
   NAV LINKS STRIKE EFFECT
================================ */
.nav-link {
  position: relative; /* required for ::after positioning */
  display: inline-block;
  font-weight: 900;
  font-size: 1.7rem;
  color: #f7f8f7;
  text-decoration: none;
  transform: scaleY(0.6);
  transition: transform 0.25s ease, color 0.25s ease;
}

/* Add the strike line using ::after */
.nav-link::after {
  content: '';
  position: absolute;
  top: 50%; /* middle of the text */
  left: 0;
  width: 0; /* start hidden */
  height: 2px; /* thickness of the line */
  background-color: #0e1a13; /* same as text color */
  transition: width 0.3s ease; /* smooth expansion */
  transform: translateY(-50%); /* perfectly centered vertically */
}

/* On hover: expand line to full width */
.nav-link:hover::after {
  width: 100%;
}

/* Optional: subtle text fade on hover */
.nav-link:hover {
  color: #e67811; /* keep text color same or slightly darker */
  transform: scaleY(0.6) translateY(-1px);
}

/* ================================
   BURGER
================================ */
.nav-burger {
  display: none;
  margin-left: 2rem; /* space from logo on mobile */
  background: none;
  border: none;
  cursor: pointer;
  color: #fff;
  flex-direction: column;
  gap: 6px;
  z-index: 101;
}

.nav-burger span {
  width: 26px;
  height: 2px;
  background: currentColor;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

/* BURGER TO X */
.nav-burger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}
.nav-burger.open span:nth-child(2) {
  opacity: 0;
}
.nav-burger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* ================================
   MOBILE
================================ */
@media (max-width: 900px) {
  .site-nav {
    padding: 1.2rem 1.5rem;

    /* 🔒 CRITICAL RESET */
    transform: none !important;
    transition: none !important;
    will-change: auto;
  }

  .nav-logo {
    font-size: 1.8rem;
    margin-left: 1px !important;
  }

  .nav-burger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    gap: 2rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    margin: 0;
    display: none;
    z-index: 100;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-link {
    font-size: 2rem;
    font-family: 'Playfair Display', serif;
  }
}
@media (max-width: 480px) {
  .site-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    background: #131212;

    /* 🔒 EXTRA SAFETY */
    transform: none !important;
  }

  .nav-logo {
    font-size: 1.2rem;
  }
}
