/* Muloo · Site header */
.mu-hdr { position: sticky; top: 0; z-index: 100; }

/* The burst rule. This gradient is the logo artwork, so it is used as a 2px
   rule and as hover text only — never as a fill behind small text, where it
   fails AA on the pink and orange stops. */
.mu-hdr__burst { height: 2px; background: var(--gradient-logo-burst); }

.mu-hdr__bar {
  background: rgba(5,10,48,0.92);
  border-bottom: 1px solid var(--border-soft);
}
@supports (backdrop-filter: blur(1px)) {
  .mu-hdr__bar { background: rgba(5,10,48,0.86); backdrop-filter: blur(14px) saturate(140%); }
}

.mu-hdr__inner {
  display: flex; align-items: center; gap: var(--space-5);
  max-width: 1260px; margin-inline: auto; padding: 14px var(--gutter);
}

/* logo */
.mu-hdr__logo { display: inline-flex; align-items: center; flex: 0 0 auto; text-decoration: none; }
.mu-hdr__logo img { max-height: 38px; width: auto; }
.mu-hdr__wordmark {
  font-family: var(--font-logo); font-weight: 700; font-size: 2rem;
  letter-spacing: -0.03em; line-height: 1;
  background: var(--gradient-logo-burst);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
@supports not (background-clip: text) { .mu-hdr__wordmark { color: var(--fg-1); -webkit-text-fill-color: currentColor; } }

/* desktop nav */
.mu-hdr__nav { display: none; flex: 1 1 auto; }
.mu-hdr__list { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.mu-hdr__item { display: flex; align-items: center; }
.mu-hdr__chevbtn {
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 0; padding: 0.55em 0.5em 0.55em 0.15em;
  margin-left: -0.35em; cursor: pointer; color: inherit; font: inherit;
  border-radius: var(--r-md);
}
.mu-hdr__chevbtn:hover { background: rgba(255,255,255,0.08); }
.mu-hdr__chevbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.mu-hdr__chevbtn[aria-expanded="true"] .mu-hdr__chev { transform: rotate(180deg); }
.mu-hdr__item:hover .mu-hdr__trigger,
.mu-hdr__item:focus-within .mu-hdr__trigger { background: rgba(255,255,255,0.08); }

.mu-hdr__trigger {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-sans); font-size: 0.9rem; font-weight: var(--w-medium);
  color: rgba(255,255,255,0.82); background: none; border: 0; cursor: pointer;
  text-decoration: none; white-space: nowrap;
  padding: 9px 13px; border-radius: var(--r-md);
  transition: background var(--dur-fast) var(--ease-out);
}
.mu-hdr__trigger:hover,
.mu-hdr__trigger[aria-expanded="true"] { background: rgba(255,255,255,0.08); }
/* the burst reads as text, where it is decorative and the label stays legible
   against the bar behind it */
.mu-hdr__trigger:hover .mu-hdr__triggerlabel,
.mu-hdr__trigger[aria-expanded="true"] .mu-hdr__triggerlabel {
  background: var(--gradient-logo-burst);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
@supports not (background-clip: text) {
  .mu-hdr__trigger:hover .mu-hdr__triggerlabel { color: var(--fg-1); -webkit-text-fill-color: currentColor; }
}
.mu-hdr__chev { font-size: 10px; opacity: 0.6; transition: transform var(--dur-fast) var(--ease-out); }
.mu-hdr__trigger[aria-expanded="true"] .mu-hdr__chev { transform: rotate(180deg); }

/* ---------- mega panel ---------- */
.mu-hdr__panel { border-top: 1px solid var(--border-soft); background: rgba(5,10,48,0.99); }
@supports (backdrop-filter: blur(1px)) { .mu-hdr__panel { backdrop-filter: blur(16px); } }
.mu-hdr__panelinner {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 30px;
  max-width: 1260px; margin-inline: auto; padding: 30px var(--gutter) 34px;
}

.mu-hdr__coltitle {
  font-family: var(--font-mono); font-size: 0.656rem; font-weight: var(--w-medium);
  letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.46);
  margin: 0 0 0; padding-bottom: 12px; border-bottom: 1px solid var(--border-soft);
}
.mu-hdr__links { list-style: none; margin: 0; padding: 0; }
.mu-hdr__link {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,0.05);
  text-decoration: none;
}
.mu-hdr__dot { width: 6px; height: 6px; border-radius: 2px; flex: none; margin-top: 7px; background: var(--accent); }
.mu-hdr__linkbody { min-width: 0; }
.mu-hdr__linklabel {
  display: block; width: fit-content;
  font-size: 0.9375rem; font-weight: var(--w-semibold); line-height: 1.35; color: var(--fg-1);
}
.mu-hdr__link:hover .mu-hdr__linklabel {
  background: var(--gradient-logo-burst);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
@supports not (background-clip: text) {
  .mu-hdr__link:hover .mu-hdr__linklabel { color: var(--muloo-teal); -webkit-text-fill-color: currentColor; }
}
.mu-hdr__linkdesc { display: block; margin-top: 3px; font-size: 0.8125rem; line-height: 1.5; color: var(--fg-2); }
.mu-hdr__linkpath { display: block; margin-top: 4px; font-family: var(--font-mono); font-size: 0.6875rem; color: rgba(255,255,255,0.46); }

/* accent dots — the one place a stream colour is selected */
.mu-dot--teal    { --accent: var(--muloo-teal); }
.mu-dot--build   { --accent: var(--stream-build); }
.mu-dot--revops  { --accent: var(--stream-revops); }
.mu-dot--grow    { --accent: var(--stream-grow); }
.mu-dot--ai      { --accent: var(--stream-ai); }
.mu-dot--empower,
.mu-dot--products { --accent: var(--stream-empower); }

/* promo sits as one more column in the same grid */
.mu-hdr__promo {
  display: flex; flex-direction: column;
  background: linear-gradient(135deg, rgba(99,102,241,0.16), rgba(236,72,153,0.12), rgba(249,115,22,0.10));
  border: 1px solid rgba(168,64,255,0.32); border-radius: var(--r-lg); padding: 24px;
}
.mu-hdr__promokicker {
  margin: 0; font-family: var(--font-mono); font-size: 0.656rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: #F0A8FF;
}
.mu-hdr__promotitle { margin: 10px 0 0; font-size: 1.125rem; font-weight: var(--w-semibold); line-height: 1.3; color: var(--fg-1); }
.mu-hdr__promobody { margin: 8px 0 0; font-size: 0.84rem; line-height: 1.6; color: var(--fg-2); }
.mu-hdr__promolink {
  margin-top: auto; padding-top: 18px; align-self: flex-start;
  font-family: var(--font-mono); font-size: 0.78rem; color: #F0A8FF; text-decoration: none;
}
.mu-hdr__promolink:hover { color: var(--fg-1); }

/* ---------- actions ---------- */
.mu-hdr__actions { display: flex; align-items: center; gap: var(--space-5); margin-left: auto; flex: 0 0 auto; }

.mu-hdr__search {
  display: none; align-items: center; gap: 10px; flex: none; white-space: nowrap; cursor: pointer;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--r-pill); padding: 10px 20px;
  color: rgba(255,255,255,0.72); font-family: inherit; font-size: 0.875rem;
  transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.mu-hdr__search:hover { color: var(--fg-1); border-color: rgba(255,255,255,0.3); }
.mu-hdr__searchicon {
  font-family: var(--font-mono); font-size: 1.15rem; line-height: 1;
  opacity: 0.85; transform: translateY(-1px);
}
.mu-hdr__search:hover .mu-hdr__searchicon { opacity: 1; }

.mu-hdr__login { display: none; padding: 0 var(--space-2); font-size: 0.875rem; color: rgba(255,255,255,0.72); text-decoration: none; white-space: nowrap; }
.mu-hdr__login:hover { color: var(--fg-1); }

/* The CTA carries the burst gradient as a ring around a navy fill, so the
   label sits at 17:1 instead of the 2.6:1 white-on-orange the flat gradient
   would give. Same signature, readable label. */
.mu-hdr__cta {
  position: relative; display: none; align-items: center; flex: none; white-space: nowrap;
  padding: 11px 24px; border-radius: var(--r-pill);
  background: var(--muloo-navy); color: var(--fg-1);
  font-family: var(--font-sans); font-size: 0.875rem; font-weight: var(--w-bold);
  text-decoration: none; box-shadow: 0 0 18px -6px rgba(168,85,247,0.55);
  transition: box-shadow var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.mu-hdr__cta::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px;
  background: var(--gradient-logo-burst);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.mu-hdr__cta:hover { color: var(--fg-1); transform: translateY(-1px); box-shadow: 0 0 24px -6px rgba(168,85,247,0.8); }

/* burger */
.mu-hdr__burger {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 38px; height: 38px; padding: 0 8px; background: none; border: 0; cursor: pointer;
}
.mu-hdr__burger span { display: block; height: 2px; background: var(--fg-1); border-radius: 2px; transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast) var(--ease-out); }
.mu-hdr__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mu-hdr__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.mu-hdr__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- mobile ---------- */
.mu-hdr__mobile { max-height: calc(100vh - 66px); overflow-y: auto; background: var(--muloo-navy); border-top: 1px solid var(--border); }
.mu-hdr__mobileinner { padding: var(--space-5) var(--gutter) var(--space-8); }
.mu-hdr__mgroup { border-bottom: 1px solid var(--border); }
.mu-hdr__mgroup summary {
  list-style: none; cursor: pointer; padding: var(--space-4) 0;
  font-family: var(--font-sans); font-weight: var(--w-semibold); color: var(--fg-1);
}
.mu-hdr__mgroup summary::-webkit-details-marker { display: none; }
.mu-hdr__mgroup summary::after { content: "+"; float: right; color: var(--fg-3); }
.mu-hdr__mgroup[open] summary::after { content: "\2013"; }
.mu-hdr__mgroup .mu-hdr__coltitle { margin-top: var(--space-3); }
.mu-hdr__mlinks { list-style: none; margin: 0 0 var(--space-4); padding: 0; }
.mu-hdr__mlinks a {
  position: relative; display: block; padding: var(--space-3) 0 var(--space-3) 18px;
  color: var(--fg-2); text-decoration: none; font-size: 0.95rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.mu-hdr__mlinks a::before { content: ""; position: absolute; left: 0; top: 1.1em; width: 6px; height: 6px; border-radius: 2px; background: var(--accent); }
.mu-hdr__mtop { display: block; padding: var(--space-4) 0; border-bottom: 1px solid var(--border); color: var(--fg-1); font-weight: var(--w-semibold); text-decoration: none; }
.mu-hdr__mactions { display: grid; gap: var(--space-3); margin-top: var(--space-6); }

@media (min-width: 1200px) {
  .mu-hdr__nav { display: block; }
  .mu-hdr__search, .mu-hdr__login, .mu-hdr__cta { display: inline-flex; }
  .mu-hdr__burger { display: none; }
  .mu-hdr__mobile { display: none !important; }
}

/* Named services under a capability. Someone who already knows they want a
   website should find the word "website" in the menu. */
.mu-hdr__services {
  list-style: none; margin: 0 0 var(--space-3) 18px; padding: 0;
  display: flex; flex-wrap: wrap; gap: 4px 6px;
}
.mu-hdr__services a {
  display: inline-block; text-decoration: none;
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.04em;
  color: var(--fg-3); padding: 3px 8px;
  border: 1px solid var(--border-soft); border-radius: var(--r-pill);
  transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.mu-hdr__services a:hover { color: var(--fg-1); border-color: var(--accent); }
.mu-hdr__link { padding-bottom: var(--space-2); border-bottom: 0; }
.mu-hdr__links > li { border-bottom: 1px solid rgba(255,255,255,0.05); }
.mu-hdr__links > li:last-child { border-bottom: 0; }

/* WhatsApp link: same weight as Client Login, icon in the brand green so it reads at a glance */
.mu-wa { gap: 6px; align-items: center; }
.mu-wa__icon { flex: none; color: #25D366; }
.mu-hdr__wa { align-items: center; }
/* The bar is already carrying search, login and the CTA. Below 1360px the
   WhatsApp link lives in the Company menu and the mobile nav instead. */
.mu-hdr__actions .mu-hdr__wa { display: none; }
@media (min-width: 1360px) { .mu-hdr__actions .mu-hdr__wa { display: inline-flex; } }
