/* ============================================================
   Shared VVS header + footer.
   Namespaced (.vvs-*) so it cannot collide with the existing
   per-page styles. Palette-agnostic: it reads whichever tokens
   the host page defines, with a literal fallback, so the same
   markup renders bone+gold on the VVS pages and dark+lime on
   the resume page without any per-page overrides.
   ============================================================ */
.vvs-nav,
.vvs-foot{
  --_ink:  var(--ink,  var(--text, #16130C));
  --_dim:  var(--ink-soft, var(--text-dim, #57503E));
  --_bg:   var(--bone, var(--bg,   #F4F1E8));
  --_line: var(--line, #DAD4C2);
  --_acc:  var(--gold, var(--acc,  #C9A227));
  font-family: var(--sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif);
}

/* ---------- header ---------- */
.vvs-nav{
  position:sticky; top:0; z-index:100;
  background:color-mix(in srgb, var(--_bg) 92%, transparent);
  backdrop-filter:saturate(140%) blur(10px);
  border-bottom:1px solid var(--_line);
}
.vvs-nav-in{
  max-width:var(--maxw,1180px); margin:0 auto; padding:12px 22px;
  display:flex; align-items:center; justify-content:space-between; gap:20px;
}
.vvs-brand{ display:flex; align-items:center; gap:10px; text-decoration:none; color:var(--_ink); }
.vvs-brand svg{ width:26px; height:23px; flex:none; }
.vvs-brand b{ font-size:15px; font-weight:700; letter-spacing:-.01em; display:block; line-height:1.15; }
.vvs-brand small{ display:block; font-size:9.5px; letter-spacing:.14em; text-transform:uppercase;
                  color:var(--_dim); font-weight:400; }

.vvs-links{ display:flex; align-items:center; gap:22px; }
.vvs-links > a,
.vvs-group > a{
  color:var(--_dim); text-decoration:none; font-size:14px; white-space:nowrap;
  transition:color .15s ease;
}
.vvs-links > a:hover, .vvs-group > a:hover,
.vvs-links > a:focus-visible, .vvs-group > a:focus-visible{ color:var(--_ink); }
.vvs-links a[aria-current="page"]{ color:var(--_ink); font-weight:600; }

/* ---------- "Why VVS" group ---------- */
.vvs-group{ position:relative; }
.vvs-group > a::after{
  content:""; display:inline-block; margin-left:6px; vertical-align:middle;
  border-left:4px solid transparent; border-right:4px solid transparent;
  border-top:4px solid currentColor; opacity:.7;
}
.vvs-menu{
  position:absolute; top:100%; left:50%; transform:translateX(-50%) translateY(6px);
  min-width:210px; padding:7px; margin-top:8px;
  background:var(--_bg); border:1px solid var(--_line); border-radius:var(--r,10px);
  box-shadow:0 14px 34px rgba(0,0,0,.13);
  display:flex; flex-direction:column; gap:1px;
  opacity:0; visibility:hidden; pointer-events:none; transition:opacity .15s ease, transform .15s ease;
}
.vvs-group:hover .vvs-menu,
.vvs-group:focus-within .vvs-menu{
  opacity:1; visibility:visible; pointer-events:auto; transform:translateX(-50%) translateY(0);
}
/* hover bridge so the menu doesn't close in the gap */
.vvs-group::after{ content:""; position:absolute; top:100%; left:0; right:0; height:14px; }
.vvs-menu a{
  display:block; padding:8px 11px; border-radius:6px; text-decoration:none;
  color:var(--_dim); font-size:13.5px; line-height:1.35;
}
.vvs-menu a:hover, .vvs-menu a:focus-visible{
  background:color-mix(in srgb, var(--_acc) 12%, transparent); color:var(--_ink);
}
.vvs-menu a span{ display:block; font-size:11px; color:var(--_dim); opacity:.75; margin-top:1px; }

.vvs-cta{
  background:var(--_acc); color:#16130C !important; font-weight:650;
  padding:8px 15px; border-radius:var(--r,8px); font-size:13.5px; text-decoration:none; white-space:nowrap;
}
.vvs-cta:hover{ filter:brightness(1.07); }

/* ---------- footer ---------- */
.vvs-foot{ border-top:1px solid var(--_line); margin-top:64px; background:transparent; }
.vvs-foot-in{
  max-width:var(--maxw,1180px); margin:0 auto; padding:26px 22px;
  display:flex; align-items:center; justify-content:space-between; gap:18px; flex-wrap:wrap;
}
.vvs-foot-in span{ font-size:12.5px; color:var(--_dim); }
.vvs-foot-in nav{ display:flex; gap:18px; flex-wrap:wrap; }
.vvs-foot-in nav a{ font-size:12.5px; color:var(--_dim); text-decoration:none; }
.vvs-foot-in nav a:hover{ color:var(--_ink); }

/* ---------- small screens: flatten the dropdown, no JS ---------- */
@media (max-width:860px){
  .vvs-nav-in{ flex-wrap:wrap; padding:10px 16px; gap:10px; }
  .vvs-links{ width:100%; gap:14px; flex-wrap:wrap; justify-content:flex-start; }
  .vvs-brand small{ display:none; }
  .vvs-group{ display:contents; }
  .vvs-group > a::after{ display:none; }
  .vvs-menu{
    position:static; transform:none; opacity:1; visibility:visible; pointer-events:auto;
    display:contents; background:none; border:0; box-shadow:none; padding:0; margin:0;
  }
  .vvs-menu a{ padding:0; font-size:14px; color:var(--_dim); background:none; }
  .vvs-menu a span{ display:none; }
}

/* the flattened mobile nav already shows "Why VVS" at top level — hide the menu's copy */
@media (max-width:860px){ .vvs-dup{ display:none !important; } }
