/* PowerLoad navigation + footer expansion. Layers on top of pl.css. */

/* ══ NAV: dropdown menus ═══════════════════════════════════════ */
.nav { gap: 22px; }
.nav-links { gap: 4px; position: relative; }
.nav-links > a,
.nav-item > button {
  color: rgba(255,255,255,0.7); font-size: 13px; font-weight: 500; font-family: inherit;
  background: transparent; border: 0; padding: 9px 13px; border-radius: var(--radius-pill);
  display: inline-flex; align-items: center; gap: 6px; letter-spacing: -0.005em;
  transition: color 180ms ease, background 180ms ease;
}
.nav-links > a:hover,
.nav-item > button:hover,
.nav-item.open > button { color: var(--paper); background: rgba(255,255,255,0.08); }
.nav-item { position: relative; }
.nav-item > button .chev { width: 11px; height: 11px; opacity: 0.55; transition: transform 240ms cubic-bezier(.2,.8,.2,1); }
.nav-item.open > button .chev { transform: rotate(180deg); opacity: 1; }

.nav-panel {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(-6px);
  min-width: 300px; padding: 14px; border-radius: 20px;
  background: rgba(12,12,14,0.94);
  backdrop-filter: blur(24px) saturate(150%); -webkit-backdrop-filter: blur(24px) saturate(150%);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 30px 70px rgba(0,0,0,0.55);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 200ms ease, transform 240ms cubic-bezier(.2,.8,.2,1), visibility 0s linear 240ms;
}
.nav-item.open .nav-panel {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0); transition-delay: 0s;
}
.nav-panel::before {
  content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px;
}
.nav-panel.wide { min-width: 620px; }
.nav-panel-grid { display: grid; gap: 4px; }
.nav-panel.wide .nav-panel-grid { grid-template-columns: 1fr 1fr; gap: 4px 10px; }

.np {
  display: flex; gap: 12px; align-items: flex-start; padding: 11px 13px; border-radius: 13px;
  transition: background 180ms ease;
}
.np:hover { background: rgba(255,255,255,0.06); }
.np-ico {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 9px; margin-top: 1px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(240,96,31,0.13); border: 1px solid rgba(240,96,31,0.22);
}
.np-ico svg { width: 15px; height: 15px; stroke: var(--accent); fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.np-t { display: block; font-size: 13.5px; font-weight: 600; color: var(--paper); letter-spacing: -0.012em; line-height: 1.25; }
.np-d { display: block; font-size: 11.5px; line-height: 1.4; color: rgba(255,255,255,0.5); margin-top: 3px; }
.np:hover .np-t { color: var(--accent); }

.nav-panel-foot {
  margin-top: 10px; padding: 12px 13px 4px; border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.nav-panel-foot span { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.4); font-weight: 600; }
.nav-panel-foot a { font-size: 12.5px; font-weight: 600; color: var(--paper); display: inline-flex; align-items: center; gap: 6px; }
.nav-panel-foot a:hover { color: var(--accent); }
.nav-panel-foot svg { width: 12px; height: 12px; }

/* ══ NAV: mobile drawer ════════════════════════════════════════ */
.nav-burger {
  display: none; width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
  align-items: center; justify-content: center; color: var(--paper);
}
.nav-burger svg { width: 17px; height: 17px; }
.nav-drawer {
  position: fixed; inset: 0; z-index: 60; background: rgba(5,5,5,0.97);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  overflow-y: auto; padding: 22px 20px 60px;
  opacity: 0; visibility: hidden; transition: opacity 240ms ease, visibility 0s linear 240ms;
}
.nav-drawer.open { opacity: 1; visibility: visible; transition-delay: 0s; }
.nav-drawer-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 30px; }
.nav-drawer-close { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); color: var(--paper); display: inline-flex; align-items: center; justify-content: center; }
.nav-drawer-close svg { width: 17px; height: 17px; }
.nav-drawer h4 { font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin: 28px 0 12px; }
.nav-drawer a.dlink { display: block; padding: 11px 0; font-size: 16px; font-weight: 500; color: rgba(255,255,255,0.86); border-bottom: 1px solid rgba(255,255,255,0.06); letter-spacing: -0.015em; }
.nav-drawer a.dlink:hover { color: var(--accent); }
.nav-drawer .btn { width: 100%; margin-top: 34px; background: var(--paper); color: var(--ink); }

@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
  .nav { padding: 8px 8px 8px 18px; gap: 14px; }
}
@media (max-width: 520px) {
  .nav .btn { display: none; }
}

/* ══ FOOTER: five columns + sitemap row ════════════════════════ */
.footer-top.ft-split { grid-template-columns: 1.6fr 1fr; gap: 48px; }
.footer-map.cols3 { grid-template-columns: repeat(3, 1fr); }
.footer-col ul { gap: 11px; }
.footer-col a { font-size: 13.5px; }
.footer-map {
  padding: 34px 0 30px; border-bottom: 1px solid rgba(255,255,255,0.08);
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px 40px;
}
/* .col-h is the <p> that replaced the old <h4> column label (it was creating an
   h2 -> h4 skip on every page). Both selectors kept so nothing regresses mid-rollout. */
.footer-map h4,
.footer-map .col-h { font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin: 0 0 14px; }
.footer-map ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-map a { color: rgba(255,255,255,0.62); font-size: 13px; transition: color 180ms ease; }
.footer-map a:hover { color: var(--accent); }
.footer-locs {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px;
  padding: 30px 0; border-bottom: 1px solid rgba(255,255,255,0.08); position: relative; z-index: 1;
}
.floc b { display: block; font-size: 12.5px; font-weight: 600; color: var(--paper); letter-spacing: -0.005em; }
.floc b i { font-style: normal; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: middle; }
.floc b i.p { background: rgba(255,255,255,0.35); }
.floc span { display: block; font-size: 12px; line-height: 1.5; color: rgba(255,255,255,0.5); margin-top: 6px; }
@media (max-width: 980px) {
  .footer-top.ft-split { grid-template-columns: 1fr; }
  .footer-map.cols3 { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1/-1; }
  .footer-map { grid-template-columns: 1fr 1fr; }
  .footer-locs { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-top.ft-split { grid-template-columns: 1fr; }
  .footer-map { grid-template-columns: 1fr; }
  .footer-locs { grid-template-columns: 1fr; }
}

/* FOOTER v2 removed 28 Aug: it collapsed the old two-grid footer into one
   grid via display:contents. The v3 footer below has a single source
   template in _build/shell.py, so that fix is obsolete and was fighting it. */

/* the cookie-settings control is a <button>, so it arrives with UA chrome
   in the middle of the legal links */
footer .footer-legal button,
footer .footer-bottom button {
  appearance: none; -webkit-appearance: none;
  background: none; border: 0; padding: 0; margin: 0;
  font: inherit; font-size: 12.5px; line-height: inherit;
  color: rgba(255,255,255,.5); cursor: pointer; transition: color 180ms ease;
}
footer .footer-legal button:hover,
footer .footer-bottom button:hover { color: var(--paper); }

/* ══ FOOTER v3 — signed off 28 Aug ═════════════════════════════
   Statement and contact on top, then the four offices, then the
   sitemap, then legal, then the agency credit. */
footer .footer-top.ft-split { grid-template-columns: 1.25fr .75fr; gap: 56px; align-items: end; }
/* style.css sets .footer-brand p, which outranks a lone .footer-stmt */
footer .footer-brand p.footer-stmt {
  font-size: clamp(24px, 3.2vw, 42px); line-height: 1.1; letter-spacing: -.03em;
  font-weight: 700; color: var(--paper); max-width: 17ch; margin: 26px 0 0;
}
footer .footer-brand p.footer-stmt em { font-style: normal; color: var(--accent); }
.footer-contact { display: flex; flex-direction: column; gap: 7px; align-items: flex-start; }
.footer-contact .fbig {
  color: var(--paper); font-size: 16px; font-weight: 600; letter-spacing: -.01em;
  transition: color 180ms ease;
}
.footer-contact .fbig:hover { color: var(--accent); }
.footer-contact .footer-cta { margin-top: 14px; }

/* all four markers lit: dimming one read as offline */
.floc b i, footer .floc b i.p { background: var(--accent); box-shadow: 0 0 8px rgba(240,96,31,.75); }
.floc .ftag {
  display: inline-block; margin-left: 8px; font-size: 10px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.42);
  border: 1px solid rgba(255,255,255,.16); border-radius: 999px;
  padding: 2px 8px; vertical-align: middle;
}
.footer-locs { border-top: 1px solid rgba(255,255,255,.10); }
.footer-map { grid-template-columns: repeat(5, 1fr); border-bottom: 0; }

.footer-credit {
  position: relative; z-index: 1;
  margin-top: 18px; padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.07);
  font-size: 12px; color: rgba(255,255,255,.34);
}
.footer-credit a { color: rgba(255,255,255,.46); transition: color 180ms ease; }
.footer-credit a:hover { color: var(--accent); }

@media (max-width: 1080px) { .footer-map { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px) {
  footer .footer-top.ft-split { grid-template-columns: 1fr; gap: 32px; align-items: start; }
  .footer-map { grid-template-columns: 1fr 1fr; }
}

/* the CTA arrow arrives as a bare <svg> from the template */
.footer-cta svg, .footer-contact .footer-cta svg { width: 14px; height: 14px; flex: none; }

/* ══ FOOTER tokens + CTA ═══════════════════════════════════════
   --accent / --paper / --ink live in pl.css only, but most pages load
   style.css instead, so every var(--accent) in the footer was silently
   dropping. Scoped to <footer> so nothing else is affected. */
footer {
  --accent: #F0601F;
  --paper: #FFFFFF;
  --ink: #050505;
}
footer .footer-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  background: #FFFFFF; color: #050505;
  font-size: 13px; font-weight: 600; text-decoration: none;
  transition: transform 200ms ease, box-shadow 220ms ease;
}
footer .footer-cta:hover {
  color: #050505; transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(240,96,31,.32);
}

/* ══ FOOTER social row ═════════════════════════════════════════ */
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.14);
  display: inline-flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.66);
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, transform 180ms ease;
}
.footer-social a:hover {
  color: #050505; background: var(--accent); border-color: var(--accent);
  transform: translateY(-2px);
}
/* LinkedIn is the one that matters, so it leads lit */
.footer-social a:first-child {
  color: var(--paper); border-color: rgba(240,96,31,.55);
  background: rgba(240,96,31,.14);
}
.footer-social a:first-child:hover { color: #050505; background: var(--accent); }
.footer-social svg { width: 17px; height: 17px; display: block; }

/* office rows: the Partner chip must not push its line off the shared baseline */
.floc b { display: flex; align-items: center; min-height: 20px; }
.floc b i { flex: none; vertical-align: unset; }
.floc .ftag { line-height: 1; padding: 3px 8px; white-space: nowrap; }
