/* DUTCH DESIGN AGENCY — nav.css  (component-scoped; owned here, never in a page)
   Cloned from the live Webflow site: fixed wordmark + hamburger header with
   JS-driven logo colour at page top, full-screen off-white overlay menu. */

/* ---- Header ---------------------------------------------------------------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 7900;
  transition: transform 0.4s cubic-bezier(0.645, 0.045, 0.355, 1),
              background 0.3s ease, opacity 0.3s ease;
}
/* At page top the header is transparent; nav.js sets .over-dark when the
   section behind the header is dark, so the logo/lines flip white. (Replaces
   mix-blend-mode: exclusion, which flickered on scroll — the live site also
   toggles the colour via JS rather than blending.) */
.site-header.solid { background: var(--offwhite); }
.site-header.hidden { transform: translateY(-100%); }

/* Homepage: header invisible at the very top (hero carries the wordmark) */
body.home .site-header.at-top { opacity: 0; pointer-events: none; }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem var(--gutter);
}
@media (max-width: 767px) {
  .header-inner { padding-top: 1rem; padding-bottom: 1rem; }
}

.header-logo { display: block; flex: 0 0 auto; }
.header-logo img { height: 1.438rem; width: auto; }
@media (max-width: 767px) { .header-logo img { height: 1rem; } }

/* Wordmark image is white: invert to black over light backgrounds (default),
   keep white only when nav.js flags a dark section behind the top header. */
.header-logo img { filter: invert(1); }
.site-header.at-top.over-dark .header-logo img { filter: none; }
body.menu-x .site-header { background: transparent; }

/* ---- Hamburger --------------------------------------------------------------- */
.hamburger {
  position: relative; z-index: 8000;
  height: 1.438rem; width: 2rem;
  display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end;
  padding: 0;
}
@media (max-width: 767px) { .hamburger { height: 1rem; width: 1.5rem; } }

.hamburger span {
  display: block; height: 2px; width: 2rem; background: var(--black);
  transition: transform 0.2s ease, width 0.2s ease, opacity 0.15s ease;
}
@media (max-width: 767px) { .hamburger span { width: 1.5rem; } }

/* White lines only over a dark top section; black everywhere else (default). */
.site-header.at-top.over-dark .hamburger span { background: var(--white); }

/* Burger → X (body.menu-x, immediate) */
body.menu-x .hamburger .ham-a { transform-origin: top right; width: 1.9rem; transform: rotate(-45deg); }
body.menu-x .hamburger .ham-b { width: 0; opacity: 0; }
body.menu-x .hamburger .ham-c { transform-origin: bottom right; width: 1.9rem; transform: rotate(45deg); }
@media (max-width: 767px) {
  body.menu-x .hamburger .ham-a, body.menu-x .hamburger .ham-c { width: 1.3rem; }
}

/* ---- Menu backdrop blur (page behind the sheet) --------------------------------- */
.menu-blur {
  position: fixed; inset: 0; z-index: 6900;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s ease;
}
body.menu-x .menu-blur { opacity: 1; pointer-events: auto; }

/* ---- Overlay menu -------------------------------------------------------------- */
.site-menu {
  position: fixed; top: 0; left: 0; right: 0; z-index: 7000;
  width: 100%; min-width: 100vw;
  background: var(--offwhite);
  overflow: hidden;
  display: none;
  transform: translateY(-101%);
}
.site-menu.open {
  display: block;
  animation: menu-in 0.4s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}
.site-menu.closing {
  display: block;
  animation: menu-out 1s cubic-bezier(0.645, 0.045, 0.355, 1) 0.2s forwards;
}
@keyframes menu-in { from { transform: translateY(-101%); } to { transform: translateY(0); } }
@keyframes menu-out { from { transform: translateY(0); } to { transform: translateY(-101%); } }

.menu-inner {
  display: flex; flex-direction: column; justify-content: space-between;
  padding: var(--nav-h) var(--gutter) 1.25rem;
  min-height: 60vh;
}
@media (max-width: 767px) {
  .site-menu { min-height: 100dvh; overflow: auto; }
  .menu-inner { min-height: 100dvh; padding-top: 5rem; }
}

.menu-main {
  display: flex; justify-content: flex-end;
  column-gap: 8.75rem;
  padding: 1.25rem 7rem 1.25rem 0;
}
@media (max-width: 767px) {
  /* reset the 8.75rem desktop column-gap — with two 50% columns it overflowed
     the phone width and clipped the second column of nav links */
  .menu-main { justify-content: space-between; padding: 0; column-gap: 1rem; }
  .menu-main .menu-list { width: auto; }
}

.menu-list { list-style: none; display: flex; flex-direction: column; row-gap: 0.65rem; }

.menu-item { opacity: 0; }
.site-menu.open .menu-item {
  animation: menu-item-in 0.3s cubic-bezier(0.645, 0.045, 0.355, 1) forwards;
  animation-delay: calc(0.7s + var(--i) * 0.06s);
}
@keyframes menu-item-in {
  from { opacity: 0; transform: translateY(1.5rem); }
  to { opacity: 1; transform: none; }
}

.menu-link {
  display: inline-block;
  color: var(--black);
  font-size: 2.5rem; font-weight: 300; line-height: 1.1;
  text-transform: capitalize;
}
.menu-link:hover span { border-bottom: 2px solid var(--black); }
.menu-link.is-current span { border-bottom: 2px solid var(--black); }
@media (max-width: 767px) { .menu-link { font-size: 1.875rem; } }

.menu-socials {
  display: flex; column-gap: 2rem; align-items: center;
  padding: 1.25rem 0;
}
.menu-socials a {
  font-size: var(--fs-2xs); line-height: 1.25;
  text-transform: uppercase; color: var(--black);
}
