/* =====================================================================
   Aroma Lunchroom — gedeelde header, logo en mobiel menu
   Wordt geladen door index.html, menu.html en catering.html.
   Het logo komt uit project/assets/brand.svg (vector, kleurt mee via currentColor).
   ===================================================================== */

:root {
  --nav-h: 72px;
  --nav-h-mobile: 64px;
}

/* ---------- BRAND (logo) ---------- */
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none; color: inherit; flex-shrink: 0;
  line-height: 0;
}
.brand-mark {
  display: inline-grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: #3f7d38; color: #fff; flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.14) inset;
}
.brand-mark svg { width: 62%; height: 62%; display: block; overflow: visible; }
.brand-word { height: 21px; width: auto; aspect-ratio: 730 / 123; display: block; color: currentColor; }
.brand-word--lunchroom { height: 8px; aspect-ratio: 481 / 46; display: block; margin-top: 5px; opacity: 0.85; }
.brand-lockup { display: inline-flex; flex-direction: column; align-items: flex-start; }

/* ---------- NAV ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  min-height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--pad);
  color: #fff;
  border-bottom: 1px solid transparent;
  background: linear-gradient(180deg, rgba(0,0,0,0.38) 0%, rgba(0,0,0,0) 100%);
  transition: background .3s ease, border-color .3s ease, color .3s ease, min-height .3s ease, box-shadow .3s ease;
}
.nav.scrolled {
  min-height: 62px;
  background: rgba(246,239,225,0.92);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
  border-color: var(--line, #d9cdb2);
  color: var(--ink, #1c1a14);
  box-shadow: 0 8px 30px -22px rgba(28,26,20,0.35);
}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  text-decoration: none; font-weight: 500; font-size: 14px; letter-spacing: 0.01em;
  position: relative; padding: 6px 0; color: inherit; white-space: nowrap;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform .2s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-cta { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }

/* "Online bestellen · binnenkort" — bewust een label, geen knop */
.nav-soon {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px 8px 14px; border-radius: 999px;
  border: 1px solid currentColor; opacity: 0.72;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.02em; white-space: nowrap;
  cursor: default; user-select: none;
}
.nav-soon-badge {
  font-family: var(--mono, ui-monospace, monospace); font-size: 9.5px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--accent, #c97b5c); color: #fff;
  padding: 3px 7px; border-radius: 999px; line-height: 1.2;
}

/* ---------- LANGUAGE SWITCHER ---------- */
.lang-switch { display: flex; align-items: center; gap: 6px; }
.lang-sep { font-family: var(--mono, ui-monospace, monospace); font-size: 10px; opacity: 0.3; user-select: none; }
.lang-switch .lang-btn {
  background: none; border: none; cursor: pointer;
  font-family: var(--mono, ui-monospace, monospace); font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  color: inherit; opacity: 0.5; padding: 4px 1px;
  border-bottom: 1.5px solid transparent; transition: opacity .15s, border-color .15s;
}
.lang-switch .lang-btn:hover { opacity: 0.85; }
.lang-switch .lang-btn.active { opacity: 1; border-bottom-color: currentColor; }

/* ---------- HAMBURGER ---------- */
.nav-hamburger {
  display: none;
  width: 44px; height: 44px; padding: 0;
  border: 1px solid currentColor; background: transparent;
  border-radius: 50%;
  align-items: center; justify-content: center;
  color: inherit; cursor: pointer; flex-shrink: 0;
  transition: background .15s, color .15s;
}
.nav-hamburger:hover { background: rgba(255,255,255,0.12); }
.nav.scrolled .nav-hamburger:hover { background: rgba(28,26,20,0.06); }
.nav-hamburger-icon { display: block; width: 18px; height: 1.5px; background: currentColor; position: relative; }
.nav-hamburger-icon::before, .nav-hamburger-icon::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: currentColor;
}
.nav-hamburger-icon::before { top: -6px; }
.nav-hamburger-icon::after { top: 6px; }

/* ---------- MOBILE MENU ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 80;
  background: var(--bg, #f6efe1); color: var(--ink, #1c1a14);
  display: flex; flex-direction: column;
  padding: 0 var(--pad) max(24px, env(safe-area-inset-bottom));
  transform: translateY(-100%);
  transition: transform .4s cubic-bezier(.7,0,.25,1), visibility 0s linear .4s;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  visibility: hidden; pointer-events: none;
}
.mobile-menu.open {
  transform: translateY(0);
  visibility: visible; pointer-events: auto;
  transition: transform .4s cubic-bezier(.7,0,.25,1), visibility 0s linear 0s;
}
.mobile-menu-top {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--nav-h-mobile); flex-shrink: 0;
}
.mobile-close {
  width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--line, #d9cdb2); background: transparent;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--ink, #1c1a14); cursor: pointer;
}
.mobile-lang-switch {
  display: flex; gap: 22px; padding: 12px 0 14px; margin-top: 8px;
  border-bottom: 1px solid var(--line, #d9cdb2);
}
.mobile-lang-switch .lang-btn {
  background: none; border: none; cursor: pointer; padding: 4px 0;
  font-family: var(--mono, ui-monospace, monospace); font-size: 13px; font-weight: 700; letter-spacing: 0.1em;
  color: var(--ink, #1c1a14); opacity: 0.45;
  border-bottom: 1.5px solid transparent; transition: opacity .15s, border-color .15s;
}
.mobile-lang-switch .lang-btn.active { opacity: 1; border-bottom-color: var(--brand, #3f7d38); }
.mobile-menu-links { display: flex; flex-direction: column; margin-top: 28px; flex: 1; }
.mobile-menu-links a {
  font-family: var(--serif); font-size: clamp(30px, 8.5vw, 38px); line-height: 1.1;
  text-decoration: none; padding: 14px 0;
  border-bottom: 1px solid var(--line, #d9cdb2);
  color: var(--ink, #1c1a14);
  display: flex; align-items: center; justify-content: space-between;
}
.mobile-menu-links a::after {
  content: "→"; font-family: var(--sans); font-size: 18px; opacity: 0.35;
}
.mobile-menu-links a.active { color: var(--brand, #3f7d38); }
.mobile-menu-foot { padding-top: 24px; display: flex; flex-direction: column; gap: 14px; flex-shrink: 0; }
.mobile-menu-foot .btn { width: 100%; justify-content: center; }
.mobile-soon {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 13px; color: var(--ink-3, #7a7460);
}
.mobile-soon .nav-soon-badge { font-size: 9px; }

/* Body-lock als het menu open staat */
body.menu-open { overflow: hidden; }

/* ---------- RESPONSIVE ---------- */
/* Tablet en kleine laptops: links passen niet naast logo + CTA → hamburger */
@media (max-width: 1099px) {
  .nav-links { display: none; }
  .nav-hamburger { display: inline-flex; }
  .nav-cta { gap: 14px; }
}

/* Telefoon: alleen logo + hamburger in de balk; taal en 'binnenkort' zitten in het menu */
@media (max-width: 720px) {
  .nav { min-height: var(--nav-h-mobile); }
  .nav.scrolled { min-height: 56px; }
  .nav-soon, .lang-switch { display: none; }
  .brand { gap: 10px; }
  .brand-mark { width: 40px; height: 40px; }
  .brand-word { height: 18px; }
  .nav-hamburger { width: 42px; height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  .nav, .mobile-menu { transition: none; }
}
