/* ─────────────────────────────────────────────────────────────
   Wuluf site navigation v9 — shared by every page.
   Adds: dropdown triggers, liquid-glass dropdown panels,
   the "Let's talk" CTA, and grouped mobile menu.
   /assets/* is cached for a year, so ship changes as a new
   file name (site-nav-v10.css) rather than editing this one.
   ───────────────────────────────────────────────────────────── */

/* ── Desktop pill: one more item, so tighten spacing slightly ── */
nav .nav-pill { gap: 2px; }
nav .nav-pill .nav-item {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 19px; line-height: 1.2;
}
nav .nav-pill .nav-logo-link { margin-right: 4px; }

/* Dropdown triggers */
.nav-trigger { -webkit-appearance: none; appearance: none; }
.nav-trigger .nav-chev {
  width: 9px; height: 9px; flex: none; opacity: .7;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), opacity .2s;
}
.nav-trigger[aria-expanded="true"] .nav-chev { transform: rotate(180deg); opacity: 1; }
nav .nav-pill .nav-trigger[aria-expanded="true"]:not(.active) {
  background: rgba(245,243,239,0.1); color: #fff;
}
nav .nav-pill .nav-item:focus-visible {
  outline: 2px solid #4a9fd4; outline-offset: 2px;
}

/* "Let's talk" CTA — light pill so it never competes with the blue active state */
nav .nav-pill .nav-item.nav-cta {
  background: #f5f3ef; color: #0e0e10; font-weight: 500; margin-left: 6px;
}
nav .nav-pill .nav-item.nav-cta:hover { background: #1E73BE; color: #fff; }
nav .nav-pill .nav-item.nav-cta.active { background: #1E73BE; color: #fff; }
nav .nav-pill .nav-cta .nav-cta-arrow { transition: transform .2s; }
nav .nav-pill .nav-cta:hover .nav-cta-arrow { transform: translateX(3px); }

/* ── Liquid-glass dropdown panel ──
   Sits beside the pill (not inside it): an element with backdrop-filter
   would stop a child panel from blurring the page behind. */
.nav-dd {
  position: absolute; top: calc(100% + 12px); left: 0;
  width: min(860px, calc(100vw - 32px));
  padding: 10px; border-radius: 26px;
  pointer-events: all; text-align: left; color: #fff;
  font-family: 'DM Sans', sans-serif;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0) 30%),
    rgba(8,8,8,0.9);   /* matches the black nav bar */
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  backdrop-filter: blur(24px) saturate(140%);
  border: 1px solid rgba(245,243,239,0.1);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.18),
    inset 0 -1px 0 rgba(255,255,255,0.04),
    0 34px 80px -24px rgba(0,0,0,0.7),
    0 10px 28px rgba(0,0,0,0.35);
  opacity: 0; visibility: hidden;
  transform: translateY(-8px) scale(.985); transform-origin: 50% 0;
  transition: opacity .18s ease, transform .26s cubic-bezier(.2,.8,.2,1), visibility 0s linear .26s;
}
.nav-dd.open {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .18s ease, transform .26s cubic-bezier(.2,.8,.2,1), visibility 0s;
}
/* specular sheen across the top edge */
.nav-dd::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120% 70% at 18% -12%, rgba(255,255,255,0.06), rgba(255,255,255,0) 55%);
}
/* invisible bridge so the pointer can travel from pill to panel */
.nav-dd::after { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.nav-dd--narrow { width: min(580px, calc(100vw - 32px)); }

.nav-dd .dd-head {
  position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  padding: 16px 18px 18px; border-bottom: 1px solid rgba(255,255,255,0.07); margin-bottom: 8px;
}
.nav-dd .dd-eyebrow {
  display: block; font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: #4a9fd4; margin-bottom: 8px;
}
.nav-dd .dd-title {
  margin: 0; font-family: 'DM Serif Display', serif; font-style: italic; font-weight: 400;
  font-size: 26px; line-height: 1.1; color: #fff;
}
.nav-dd .dd-all {
  flex: none; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  color: #fff; padding: 9px 14px; border-radius: 100px; border: 1px solid rgba(255,255,255,0.16);
  transition: background .2s, border-color .2s;
}
.nav-dd .dd-all:hover, .nav-dd .dd-all:focus-visible { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.3); outline: none; }

.nav-dd .dd-cols { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.nav-dd--narrow .dd-cols { grid-template-columns: repeat(2, 1fr); }
.nav-dd .dd-col-label {
  display: block; padding: 10px 12px 6px; font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  color: #fff;
}
.nav-dd .dd-col-label b { color: #4a9fd4; font-weight: 400; margin-right: 6px; }
.nav-dd .dd-link {
  display: block; padding: 10px 12px; border-radius: 14px; text-decoration: none;
  transition: background .18s;
}
.nav-dd .dd-link:hover, .nav-dd .dd-link:focus-visible { background: rgba(255,255,255,0.07); outline: none; }
.nav-dd .dd-link[aria-current="page"] { background: rgba(30,115,190,0.22); }
.nav-dd .dd-link-t { display: block; font-size: 14px; color: #fff; line-height: 1.3; }
.nav-dd .dd-link-d { display: block; font-size: 12px; color: #fff; line-height: 1.4; margin-top: 3px; }

.nav-dd .dd-feature {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 8px; padding: 16px 18px; border-radius: 18px; text-decoration: none;
  background: linear-gradient(100deg, rgba(30,115,190,0.32), rgba(30,115,190,0.10));
  border: 1px solid rgba(74,159,212,0.35);
  transition: background .2s, border-color .2s;
}
.nav-dd .dd-feature:hover, .nav-dd .dd-feature:focus-visible {
  background: linear-gradient(100deg, rgba(30,115,190,0.48), rgba(30,115,190,0.16)); border-color: rgba(74,159,212,0.6); outline: none;
}
.nav-dd .dd-feature .dd-eyebrow { margin-bottom: 4px; color: #8cc4ea; }
.nav-dd .dd-feature-t { display: block; font-size: 15px; color: #fff; }
.nav-dd .dd-arrow { font-size: 18px; color: #fff; transition: transform .2s; }
.nav-dd .dd-feature:hover .dd-arrow { transform: translateX(4px); }

.nav-dd--mid { width: min(760px, calc(100vw - 32px)); }

/* Outsourcing panel: explainer card + in-page sections */
.nav-dd .dd-split { position: relative; display: grid; grid-template-columns: 1fr 1.05fr; gap: 8px; }
.nav-dd .dd-intro {
  display: flex; flex-direction: column; padding: 24px 24px 22px; border-radius: 18px; text-decoration: none;
  background: radial-gradient(ellipse at 100% 0%, rgba(30,115,190,0.38), rgba(30,115,190,0) 65%), rgba(30,115,190,0.10);
  border: 1px solid rgba(74,159,212,0.35); transition: border-color .2s, background .2s;
}
.nav-dd .dd-intro:hover, .nav-dd .dd-intro:focus-visible { border-color: rgba(74,159,212,0.7); outline: none; }
.nav-dd .dd-intro .dd-eyebrow { color: #8cc4ea; }
.nav-dd .dd-intro .dd-title { display: block; font-size: 28px; }
.nav-dd .dd-intro-d { display: block; margin: 12px 0 20px; font-size: 13.5px; line-height: 1.6; color: #fff; }
.nav-dd .dd-btn {
  align-self: flex-start; margin-top: auto; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
  color: #fff; background: #1E73BE; border-radius: 100px; padding: 10px 18px; transition: background .2s;
}
.nav-dd .dd-intro:hover .dd-btn { background: #4a9fd4; }
.nav-dd .dd-split .dd-col { padding-top: 4px; }
.nav-dd .dd-compare {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 8px; padding: 14px 18px; border-radius: 14px; text-decoration: none;
  border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.03);
  font-size: 13px; color: #fff; transition: background .2s, border-color .2s;
}
.nav-dd .dd-compare b { font-weight: 500; color: #fff; }
.nav-dd .dd-compare-cta { flex: none; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: #4a9fd4; }
.nav-dd .dd-compare:hover, .nav-dd .dd-compare:focus-visible { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.18); outline: none; }

/* Insights panel: categories + latest pieces */
.nav-dd .dd-insights { position: relative; display: grid; grid-template-columns: .75fr 1.5fr; gap: 8px; }
.nav-dd .dd-type { display: flex; align-items: center; gap: 12px; }
.nav-dd .dd-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.nav-dd .dd-article .dd-link-d { margin: 0 0 4px; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: #4a9fd4; }
.nav-dd .dd-article .dd-link-t { font-family: 'DM Serif Display', serif; font-style: italic; font-size: 17px; line-height: 1.25; }

@media (max-width: 900px) and (min-width: 769px) {
  .nav-dd .dd-split, .nav-dd .dd-insights { grid-template-columns: 1fr; }
}
.mob-menu .mob-sub-note { display: block; padding: 0 24px 4px 40px; font-size: 13px; font-style: italic; font-family: 'DM Serif Display', serif; color: #fff; }

/* Tablet: the pill has six items, so compress before the mobile menu takes over */
@media (max-width: 1080px) and (min-width: 769px) {
  nav .nav-pill .nav-item { font-size: 11px; padding: 9px 13px; letter-spacing: .1em; gap: 6px; }
  nav .nav-pill .nav-logo-link { padding: 6px 14px 6px 10px; }
  nav .nav-pill .nav-logo-link img { height: 18px; }
}
@media (max-width: 900px) and (min-width: 769px) {
  nav .nav-pill .nav-item { font-size: 10px; padding: 8px 10px; letter-spacing: .08em; }
  nav .nav-pill .nav-logo-link { padding: 5px 10px 5px 8px; }
  nav .nav-pill .nav-logo-link img { height: 15px; }
  .nav-dd .dd-cols { grid-template-columns: repeat(2, 1fr); }
}

/* ── Mobile menu groups ── */
.mob-menu { max-height: calc(100vh - 49px); max-height: calc(100dvh - 49px); overflow-y: auto; overscroll-behavior: contain; }
.mob-menu a.active, .mob-menu summary.active { color: #fff; }
.mob-group { border-bottom: 1px solid rgba(245,243,239,0.04); }
.mob-group summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: #fff;
  padding: 14px 24px;
}
.mob-group summary::-webkit-details-marker { display: none; }
.mob-group summary .nav-chev { width: 10px; height: 10px; transition: transform .25s; }
.mob-group[open] summary { color: #fff; }
.mob-group[open] summary .nav-chev { transform: rotate(180deg); }
.mob-sub { padding: 0 0 10px; }
.mob-menu .mob-sub a {
  display: block; font-size: 14px; letter-spacing: 0; text-transform: none; color: #fff;
  padding: 9px 24px 9px 40px; border-bottom: none;
}
.mob-menu .mob-sub a.mob-sub-all { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #4a9fd4; }
.mob-menu .mob-sub-label {
  display: block; padding: 12px 24px 4px 40px; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: #fff;
}
.mob-menu a.mob-cta {
  margin: 18px 24px 4px; text-align: center; border-radius: 100px; border-bottom: none;
  background: #f5f3ef; color: #0e0e10; font-weight: 500;
}
.mob-menu a.mob-cta.active { background: #1E73BE; color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .nav-dd, .nav-dd.open, .nav-trigger .nav-chev { transition: none; }
}

/* All nav text is pure white (blue labels excepted) */
nav .nav-pill .nav-item:not(.nav-cta), nav .nav-pill .nav-item:not(.nav-cta):hover { color: #fff; }
.nav-dd, .nav-dd .dd-link-t, .nav-dd .dd-link-d, .nav-dd .dd-title, .nav-dd .dd-intro-d, .nav-dd .dd-compare,
.nav-dd .dd-compare b, .nav-dd .dd-all, .nav-dd .dd-col-label, .nav-dd .dd-feature-t { color: #fff; }
.mob-menu a, .mob-group summary, .mob-menu .mob-sub a, .mob-menu .mob-sub-label, .mob-menu .mob-sub-note { color: #fff; }
.mob-menu a.mob-cta { color: #0e0e10; }
.mob-menu a.mob-cta.active { color: #fff; }

/* v7: the "All services / About us / All resources" buttons are solid blue so they stand out */
.nav-dd .dd-all {
  background: #1E73BE; border-color: #1E73BE; color: #fff; font-weight: 500;
  box-shadow: 0 6px 18px -6px rgba(30,115,190,0.6);
}
.nav-dd .dd-all:hover, .nav-dd .dd-all:focus-visible { background: #4a9fd4; border-color: #4a9fd4; color: #fff; }

/* ── v8: clearer hierarchy. Intro quiet, group labels as wayfinding, links strongest ── */
/* 1. Intro: smaller so it frames the menu instead of competing with the links */
.nav-dd .dd-head { padding: 14px 18px 16px; align-items: center; }
.nav-dd .dd-head .dd-title { font-size: 17px; }
.nav-dd .dd-eyebrow { margin-bottom: 6px; }

/* 2. Group labels: blue, with a rule underneath, clearly headings rather than links */
.nav-dd .dd-col-label {
  font-size: 11px; font-weight: 500; letter-spacing: .16em; color: #4a9fd4;
  padding: 12px 12px 10px; margin: 0 0 6px; border-bottom: 1px solid rgba(74,159,212,0.25);
}
.nav-dd .dd-col-label b { color: #4a9fd4; font-weight: 500; }

/* 3. Links: larger, heavier titles with a hover arrow; descriptions smaller and lighter */
.nav-dd .dd-link { position: relative; padding: 11px 34px 11px 12px; }
.nav-dd .dd-link-t { font-size: 16px; font-weight: 500; letter-spacing: -0.005em; }
.nav-dd .dd-link-d { font-size: 13px; font-weight: 400; margin-top: 4px; opacity: .78; }
.nav-dd .dd-link::after {
  content: "\2192"; position: absolute; right: 12px; top: 13px; font-size: 15px; color: #4a9fd4;
  opacity: 0; transform: translateX(-4px); transition: opacity .18s, transform .18s;
}
.nav-dd .dd-link:hover::after, .nav-dd .dd-link:focus-visible::after { opacity: 1; transform: none; }
.nav-dd .dd-link:hover .dd-link-t, .nav-dd .dd-link:focus-visible .dd-link-t { color: #fff; }
.nav-dd .dd-link:hover, .nav-dd .dd-link:focus-visible { background: rgba(30,115,190,0.16); }

/* Insights: type list and article titles follow the same rules */
.nav-dd .dd-type .dd-link-t { font-size: 16px; }
.nav-dd .dd-article .dd-link-d { opacity: 1; font-size: 10.5px; margin: 0 0 5px; }
.nav-dd .dd-article .dd-link-t { font-size: 17px; font-weight: 400; }
