/* ==========================================================================
   ABLENTRA V12 — floating pill nav + full-screen menu
   Technique adapted from the Averlo audit (floating pill that stays visible
   while scrolling + full-screen menu overlay). Restyled in the LIVE palette:
   warm white #F7F7F5, near-black #0E0E0F, orange accent #FF5A1F.
   Loaded LAST in <head> so it wins over the legacy header rules.
   ========================================================================== */

/* --- floating pill ------------------------------------------------------ */
#siteHeader.v12-nav {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  border: 0;
  pointer-events: none; /* only the pill itself takes pointer events */
}

.v12-pill {
  pointer-events: auto;
  max-width: var(--wrap, 1200px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .5rem .6rem .5rem 1.1rem;
  background: #F7F7F5;
  border: 1px solid #E4E4E0;
  border-radius: 999px;
  box-shadow: 0 12px 32px -12px rgba(14, 14, 15, .16);
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease;
}

#siteHeader.v12-nav.scrolled .v12-pill {
  background: #FFFFFF;
  box-shadow: 0 18px 42px -12px rgba(14, 14, 15, .22);
}

/* Pill must read on near-black sections too: the existing capsule check in
   site-core-a.js toggles .on-dark on #siteHeader — honour it here. */
#siteHeader.v12-nav.on-dark .v12-pill {
  background: #0E0E0F;
  border-color: rgba(244, 244, 242, .2);
  box-shadow: 0 22px 50px -12px rgba(0, 0, 0, .5);
}

.v12-brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  text-decoration: none;
  border-radius: 8px;
}

.v12-brand-logo {
  display: block;
  height: 32px;
  width: auto;
}

/* The logo lockup is near-black on transparent: invert it on dark pill. */
#siteHeader.v12-nav.on-dark .v12-brand-logo { filter: invert(1); }

.v12-pill-actions {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-left: auto;
  flex: none;
}

.v12-pill-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .55rem 1.1rem;
  border-radius: 999px;
  background: #FF5A1F;
  color: #FFFFFF;
  font-weight: 700;
  font-size: .92rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s ease;
}

.v12-pill-cta:hover,
.v12-pill-cta:focus-visible { background: #E94A14; }

/* --- menu toggle (pill, right) ------------------------------------------ */
.v12-menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 44px;
  min-width: 44px;
  padding: .55rem .95rem;
  border: 1px solid #E4E4E0;
  border-radius: 999px;
  background: transparent;
  color: #0E0E0F;
  font: inherit;
  font-weight: 700;
  font-size: .95rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}

.v12-menu-toggle:hover { border-color: #0E0E0F; }

.v12-menu-toggle-icon {
  position: relative;
  display: block;
  width: 18px;
  height: 12px;
  flex: none;
}

.v12-menu-toggle-icon span {
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: #0E0E0F;
  border-radius: 2px;
  transition: background .2s ease;
}

.v12-menu-toggle-icon span:nth-child(1) { top: 1px; }
.v12-menu-toggle-icon span:nth-child(2) { top: 9px; }

#siteHeader.v12-nav.on-dark .v12-menu-toggle {
  color: #F7F7F5;
  border-color: rgba(244, 244, 242, .35);
}

#siteHeader.v12-nav.on-dark .v12-menu-toggle:hover { border-color: #F7F7F5; }
#siteHeader.v12-nav.on-dark .v12-menu-toggle-icon span { background: #F7F7F5; }

/* --- full-screen menu overlay ------------------------------------------- */
.v12-menu {
  position: fixed;
  inset: 0;
  z-index: 1100; /* above the pill (1000) */
  display: flex;
  flex-direction: column;
  background: #0E0E0F;
  color: #F7F7F5;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility 0s linear .25s;
}

.v12-menu.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity .25s ease;
}

.v12-menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 2.5rem);
  flex: none;
}

.v12-menu-top .v12-brand-logo {
  height: 30px;
  filter: invert(1); /* near-black lockup on the near-black overlay */
}

.v12-menu-close {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  min-width: 44px;
  padding: .55rem .95rem;
  border: 1px solid rgba(244, 244, 242, .35);
  border-radius: 999px;
  background: transparent;
  color: #F7F7F5;
  font: inherit;
  font-weight: 700;
  font-size: .95rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color .2s ease;
}

.v12-menu-close:hover { border-color: #F7F7F5; }

.v12-menu-close-icon {
  position: relative;
  display: block;
  width: 14px;
  height: 14px;
  flex: none;
}

.v12-menu-close-icon span {
  position: absolute;
  left: 0;
  top: 6px;
  width: 14px;
  height: 2px;
  background: #F7F7F5;
  border-radius: 2px;
}

.v12-menu-close-icon span:nth-child(1) { transform: rotate(45deg); }
.v12-menu-close-icon span:nth-child(2) { transform: rotate(-45deg); }

.v12-menu-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: .5rem clamp(1rem, 4vw, 2.5rem) 2rem;
}

.v12-menu-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 1rem;
}

.v12-menu-col h2 {
  margin: 0 0 .9rem;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(244, 244, 242, .55);
}

.v12-menu-all {
  display: inline-block;
  margin-bottom: 1.1rem;
  color: #F7F7F5;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid #FF5A1F;
  padding-bottom: .15rem;
}

.v12-menu-all:hover { color: #FF5A1F; }

.v12-svc-group { margin-bottom: 1.25rem; }

.v12-svc-group h3 { margin: 0 0 .35rem; font-size: 1.3rem; line-height: 1.25; }

.v12-svc-group h3 a {
  color: #F7F7F5;
  text-decoration: none;
}

.v12-svc-group h3 a:hover { color: #FF5A1F; }

.v12-svc-group ul,
.v12-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.v12-svc-group li a,
.v12-menu-list a {
  display: inline-block;
  min-height: 44px;
  line-height: 44px;
  color: rgba(244, 244, 242, .78);
  font-size: 1rem;
  text-decoration: none;
}

.v12-svc-group li a:hover,
.v12-menu-list a:hover { color: #FF5A1F; }

.v12-menu-list a {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.35;
  min-height: 44px;
  padding: .35rem 0;
  color: #F7F7F5;
}

.v12-menu-list a[aria-current="page"],
.v12-svc-group a[aria-current="page"],
.v12-menu-all[aria-current="page"] { color: #FF5A1F; }

/* Industries: two columns so 17 links stay compact. */
.v12-menu-industries ul {
  columns: 2;
  column-gap: 1.5rem;
}

.v12-menu-industries li { break-inside: avoid; }

/* --- menu footer: CTA + contact ----------------------------------------- */
.v12-menu-foot {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(244, 244, 242, .16);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .9rem 1.5rem;
}

.v12-menu-foot .v12-pill-cta { font-size: 1rem; }

.v12-menu-call {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .55rem 1.1rem;
  border: 1px solid rgba(244, 244, 242, .35);
  border-radius: 999px;
  color: #F7F7F5;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.v12-menu-call:hover { border-color: #F7F7F5; }

.v12-menu-mail {
  color: rgba(244, 244, 242, .78);
  font-weight: 600;
  text-decoration: none;
  min-height: 44px;
  line-height: 44px;
}

.v12-menu-mail:hover { color: #FF5A1F; }

/* --- keyboard focus ------------------------------------------------------ */
.v12-brand:focus-visible,
.v12-pill-cta:focus-visible,
.v12-menu-toggle:focus-visible,
.v12-menu-close:focus-visible,
.v12-menu a:focus-visible {
  outline: 2px solid #FF5A1F;
  outline-offset: 3px;
}

/* --- responsive ---------------------------------------------------------- */
@media (max-width: 1270px) {
  .v12-pill { margin: 0 .85rem; }
}

@media (max-width: 900px) {
  .v12-menu-grid { grid-template-columns: 1fr 1fr; }
  .v12-menu-services { grid-column: 1 / -1; }
  .v12-menu-services .v12-svc-groups {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 640px) {
  #siteHeader.v12-nav { top: 8px; }
  .v12-pill { gap: .5rem; padding: .4rem .5rem .4rem .9rem; }
  .v12-brand-logo { height: 26px; }
  .v12-pill-cta { display: none; } /* CTA lives inside the full-screen menu */
  .v12-menu-toggle { padding: .55rem .8rem; }
  .v12-menu-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .v12-menu-services .v12-svc-groups { grid-template-columns: 1fr; gap: 0; }
  .v12-menu-industries ul { columns: 2; }
  .v12-menu-top .v12-brand-logo { height: 26px; }
}

@media (max-width: 380px) {
  .v12-menu-industries ul { columns: 1; }
  .v12-menu-toggle-label { font-size: .9rem; }
}

/* --- reduced motion ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .v12-pill,
  .v12-menu,
  .v12-pill-cta,
  .v12-menu-toggle,
  .v12-menu-close { transition: none; }
}

/* ==========================================================================
   V13 ADDITIONS (2026-11-07) — nav/footer/sitemap agent
   - This file is loaded AFTER premium-2026-11-07.css on every page, so
     these rules win ties over the premium layer. v12-nav.css stays linked
     (unchanged) for backwards compatibility; this file carries the same
     V12 nav/menu rules plus the V13 sitemap-page and footer hardening below.
   - Palette (live): orange #FF5A1F, warm white #F7F7F5, near-black #0E0E0F,
     yellow #FFD800. Manrope site-wide. No V11 palette hexes anywhere.
   ========================================================================== */

/* Manrope on nav / menu / footer / sitemap, regardless of premium font vars. */
.v12-pill, .v12-menu, .site-footer, .v13-sitemap {
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* --- footer hardening (V12 structure, mobile-safe) ----------------------- */
.site-footer a:focus-visible,
.site-footer summary:focus-visible {
  outline: 2px solid #FF5A1F;
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .site-footer .footer-cols {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
  }
  .site-footer .fcol ul a {
    display: inline-block;
    min-height: 44px;
    line-height: 44px;
  }
  .site-footer .footer-cta-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .75rem;
  }
  .site-footer .footer-cta-actions .btn { min-height: 44px; }
  .site-footer .footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .6rem;
  }
  .site-footer .footer-bottom .footer-legal a {
    display: inline-block;
    min-height: 44px;
    line-height: 44px;
  }
}

/* --- sitemap page (V13 designed page) ------------------------------------ */
.v13-sitemap .page-hero { padding-top: 9rem; }
.v13-sitemap-jump {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin: 1.6rem 0 0;
  padding: 0;
  list-style: none;
}
.v13-sitemap-jump a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .55rem 1.05rem;
  border: 1px solid #E4E4E0;
  border-radius: 999px;
  background: #FFFFFF;
  color: #0E0E0F;
  font-weight: 700;
  font-size: .92rem;
  text-decoration: none;
}
.v13-sitemap-jump a:hover,
.v13-sitemap-jump a:focus-visible {
  border-color: #0E0E0F;
  outline: 2px solid #FF5A1F;
  outline-offset: 2px;
}
.v13-sitemap-jump a span { color: #FF5A1F; margin-left: .4rem; }
.v13-sitemap-note {
  max-width: 62ch;
  color: rgba(14, 14, 15, .72);
  font-size: 1rem;
  line-height: 1.6;
}
.v13-sitemap-group { scroll-margin-top: 7rem; }
.v13-sitemap-group-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .4rem 1rem;
  border-top: 2px solid #0E0E0F;
  padding-top: 1.1rem;
}
.v13-sitemap-group-head h2 { margin: 0; }
.v13-sitemap-count {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: .1rem .7rem;
  border-radius: 999px;
  background: #FFD800;
  color: #0E0E0F;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .02em;
  white-space: nowrap;
}
.v13-sitemap-group-desc {
  max-width: 62ch;
  color: rgba(14, 14, 15, .72);
  font-size: 1rem;
  line-height: 1.6;
}
.v13-sitemap-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .9rem;
  margin-top: 1.4rem;
  padding: 0;
  list-style: none;
}
.v13-sitemap-card {
  background: #FFFFFF;
  border: 1px solid #E4E4E0;
  border-radius: 18px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.v13-sitemap-card:hover {
  border-color: #0E0E0F;
  box-shadow: 0 14px 30px -18px rgba(14, 14, 15, .35);
}
.v13-sitemap-card a {
  display: block;
  min-height: 44px;
  padding: 1rem 1.15rem 1.1rem;
  color: #0E0E0F;
  text-decoration: none;
  border-radius: 18px;
}
.v13-sitemap-card a:focus-visible {
  outline: 2px solid #FF5A1F;
  outline-offset: 3px;
}
.v13-sitemap-card h3 {
  margin: 0 0 .3rem;
  font-size: 1.06rem;
  line-height: 1.35;
  font-weight: 800;
}
.v13-sitemap-card h3::after {
  content: " \2192";
  color: #FF5A1F;
}
.v13-sitemap-card p {
  margin: 0;
  color: rgba(14, 14, 15, .72);
  font-size: .94rem;
  line-height: 1.55;
}
.v13-sitemap-flag {
  display: inline-block;
  margin-top: .55rem;
  font-size: .8rem;
  font-weight: 700;
  color: #0E0E0F;
  background: #FFF3E8;
  border: 1px solid #FFD9C2;
  border-radius: 999px;
  padding: .15rem .6rem;
}

@media (max-width: 640px) {
  .v13-sitemap .page-hero { padding-top: 7rem; }
  .v13-sitemap-grid { grid-template-columns: 1fr; }
}
