/* ── NAV ─────────────────────────────────────────────────────── */
#site-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--ink); /* dark nav site-wide (2026-10-20) */
  border-bottom: 1px solid rgba(252, 249, 243, 0.08);
  transition: height 0.3s ease, transform 0.28s ease;
}

#site-nav.nav-hidden {
  transform: translateY(-100%);
}

.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 32px;
  height: 80px;
  transition: height 0.35s ease;
  max-width: 1200px;
  margin: 0 auto;
}

#site-nav.compact .nav-inner {
  height: 56px;
}

.nav-left,
.nav-right {
  display: flex;
  gap: clamp(12px, 2vw, 28px);
  align-items: center;
}

.nav-left {
  justify-content: flex-end;
  padding-right: clamp(16px, 2.5vw, 36px);
}

.nav-right {
  justify-content: flex-start;
  padding-left: clamp(16px, 2.5vw, 36px);
}

/* nav links (dual text hover effect) */
.nav-link {
  position: relative;
  height: 22px;
  overflow: visible;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  background: none;
  border: none;
  padding: 0;
  text-decoration: none;
  min-width: 0;
}

.nav-link .n1 {
  font-family: var(--f-sans);
  font-size: 13px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(252, 249, 243, 0.82);
  display: block;
  white-space: nowrap;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.nav-link .n2 {
  font-family: var(--f-cg);
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: var(--white);
  font-style: italic;
  white-space: nowrap;
  position: absolute;
  left: 0;
  opacity: 0;
  transition: opacity 0.18s ease 0.1s;
}

.nav-link:hover .n1,
.nav-link:focus-visible .n1 {
  opacity: 0;
  transform: translateY(-3px);
}

.nav-link:hover .n2,
.nav-link:focus-visible .n2 {
  opacity: 1;
  font-style: italic;
}

/* Brand */
.nav-brand {
  text-align: center;
  line-height: 1;
  text-decoration: none;
}

.nav-brand-name {
  font-family: var(--f-brand);
  /* Italiana ships in one weight only; a hairline stroke gives it the "bold" set */
  -webkit-text-stroke: 1.3px currentColor;
  paint-order: stroke fill;
  letter-spacing: 0.08em;
  color: var(--white);
  display: block;
  line-height: 1;
  font-size: 32px; /* was 38px; -15% */
  transition: font-size 0.35s ease;
}

#site-nav.compact .nav-brand-name {
  font-size: 19px;
}

a.nav-brand-name,
a.nav-brand-sub {
  text-decoration: none;
}

a.nav-brand-sub:hover {
  color: var(--green-lt);
}

.nav-brand-sub {
  font-family: var(--f-sans);
  text-transform: uppercase; /* Bebas was caps-only */
  font-size: 11px;
  letter-spacing: 0.165em;
  color: rgba(252, 249, 243, 0.55);
  display: block;
  margin-top: 2px;
}

/* Inquire button */
.nav-inquire {
  font-family: var(--f-sans);
  font-size: 13px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.16em; /* match the nav links */
  color: var(--white);
  background: none;
  padding: 8px 18px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  border: 1px solid rgba(252, 249, 243, 0.35);
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
}

.nav-inquire:hover {
  background: var(--green);
  border-color: var(--green);
}

/* Dropdown */
.nav-dropdown {
  position: relative;
  display: flex; /* a block wrapper adds line-box space and drops WORK below ABOUT/BLOG */
  align-items: center;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: var(--ink);
  border: 1px solid rgba(252, 249, 243, 0.12);
  padding: 6px 0;
  min-width: 210px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  box-shadow: 0 8px 28px rgba(252, 249, 243, 0.12);
  z-index: 300;
}

.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 9px;
  height: 9px;
  background: var(--ink);
  border-left: 1px solid rgba(252, 249, 243, 0.12);
  border-top: 1px solid rgba(252, 249, 243, 0.12);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown-menu:hover {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* CSS bridge — fills the gap so cursor can reach the menu */
.nav-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 12px;
}

.dropdown-item {
  display: block;
  padding: 10px 20px;
  font-family: var(--f-sans);
  text-transform: uppercase; /* Bebas was caps-only */
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--white);
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}

.dropdown-item:hover {
  color: var(--green-lt);
  background: rgba(252, 249, 243, 0.04);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin-right: -8px; /* keep the icon where it was; only the tap area grows */
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 8px;
}

.nav-hamburger span {
  display: block;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.22s ease, opacity 0.22s ease;
}

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

/* Mobile menu */
.nav-mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  flex-direction: column;
  background: var(--ink);
  border: 1px solid rgba(252, 249, 243, 0.12);
  border-top: none;
  min-width: 200px;
  padding: 8px 0 12px;
  box-shadow: 0 8px 28px rgba(252, 249, 243, 0.12);
  z-index: 400;
}

.nav-mobile-menu.open {
  display: flex;
}

.mob-item {
  display: block;
  padding: 14px 36px;
  font-family: var(--f-sans);
  text-transform: uppercase; /* Bebas was caps-only */
  font-size: 13px;
  letter-spacing: 0.135em;
  color: var(--white);
  background: none;
  border: none;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s;
  width: 100%;
}

.mob-item:hover { color: var(--green-lt); }

.mob-work-sub {
  padding-left: 52px;
}

.mob-sub {
  display: block;
  padding: 10px 0;
  font-family: var(--f-cg);
  font-size: 14px;
  letter-spacing: 0.04em;
  color: rgba(252, 249, 243, 0.6);
  text-decoration: none;
  transition: color 0.15s;
}

.mob-sub:hover { color: var(--white); }

.mob-div {
  height: 1px;
  background: rgba(252, 249, 243, 0.1);
  margin: 8px 36px;
}

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 860px) {
  /* Keep the 3-column grid so the brand stays centered; the empty left
     column balances the hamburger on the right. Every link lives in the
     hamburger menu at this width. */
  .nav-inner {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    padding: 0 16px;
    height: 60px;
  }

  .nav-left { visibility: hidden; overflow: hidden; padding-right: 0; }

  .nav-right {
    justify-content: flex-end;
    padding-left: 0;
  }

  .nav-right .nav-link,
  .nav-inquire { display: none; }

  .nav-hamburger { display: flex; }

  .nav-brand-name { font-size: 22px; -webkit-text-stroke: 0.8px currentColor; }

  #site-nav.compact .nav-brand-name { font-size: 17px; }
}
