/* Shared chrome: header, footer, buttons, links. Linked after site-premium.css so it refines it.
   Motion is transform, opacity and clip-path only. */

/* ---------------------------------------------------------------- buttons */
.btn {
  transition: transform var(--d-base) var(--ease-premium), opacity var(--d-fast) linear;
  will-change: transform;
}
.btn::after { display: none; }
.btn--primary:hover, .btn--secondary:hover, .btn--signal:hover { transform: translateY(-1px); box-shadow: var(--shadow-1); }
.btn:active { transform: translateY(0) scale(0.975); box-shadow: none; transition-duration: 90ms; }
.btn:focus-visible { outline: 2px solid var(--p-accent); outline-offset: 3px; }
.btn .m-arrow { transition: transform var(--d-base) var(--ease-premium); }
.btn:hover .m-arrow { transform: translateX(3px); }

/* ---------------------------------------------------------------- links: the kit draws the underline in from the left on hover; only the dark variant is added here */
.link--onDark { color: #fff; }

/* tap targets: 44px on touch */
@media (pointer: coarse) {
  .nav__link, .footer ul a, .btn { min-height: 44px; }
  .footer ul a { display: inline-flex; align-items: center; }
}

/* ---------------------------------------------------------------- header */
.nav { box-shadow: none; }
.nav__link { font-weight: 500; }

/* over the film: transparent, then solid navy once the page moves (the solid layer fades in) */
.nav--film {
  --bg: #0b0d24; --surface: #14173d; --ink: #f4f5f9; --muted: #a9add2;
  --line: rgba(244, 245, 249, 0.14); --line-strong: rgba(244, 245, 249, 0.3);
  background: transparent !important; border-bottom-color: transparent; color: #f4f5f9;
}
.nav--film::before {
  content: ""; position: absolute; inset: 0; background: #0b0d24; opacity: 0;
  box-shadow: inset 0 -1px 0 rgba(244, 245, 249, 0.12); transition: opacity var(--d-base) linear; pointer-events: none;
}
.nav--film.is-solid::before, .nav--film.is-open::before { opacity: 1; }
.nav--film .nav__bar { position: relative; z-index: 1; }
.nav--film .nav__link { color: #f4f5f9; }
.nav--film .nav__menu { --bg: #f3f4f9; --ink: #12143a; --muted: #565a7a; --line: rgba(18, 20, 58, 0.1); background: #f3f4f9; color: #12143a; }
.nav--film .nav__menu * { color: inherit; }
.nav--film .nav__menu .muted { color: #565a7a; }
.nav--film .nav__toggle { color: #f4f5f9; border-color: rgba(244, 245, 249, 0.3); }
.nav--film.is-open { background: #0b0d24 !important; }
.nav--film.is-open .nav__links { background: #0b0d24; }
.nav--film .btn--signal { background: var(--signal); color: #fff; }
.nav--film .btn--signal:hover { background: #7e0404; }

/* ---------------------------------------------------------------- utility bar above the header
   One fixed block: the bar (--util-h) sits on top of the 72/56px header, and --nav is the SUM, so every
   offset that already reads --nav (hero padding, scroll-margin, sticky tops, the mobile sheet) clears both. */
:root { --util-h: 34px; --nav-core: 72px; --nav: calc(var(--nav-core) + var(--util-h)); }
@media (max-width: 859px) { :root { --util-h: 32px; } }
@media (max-width: 639px) { :root { --nav-core: 56px; } }
.nav__bar { height: calc(100% - var(--util-h)); }

.util {
  position: relative; z-index: 1; height: var(--util-h); background: #0b0d24; color: #c9cce8;
  border-bottom: 1px solid rgba(244, 245, 249, 0.1); font: 500 12.5px/1 var(--font-text); letter-spacing: 0.005em;
}
.util__row { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s-4, 16px); }
.util__list { display: flex; align-items: center; min-width: 0; margin: 0; padding: 0; list-style: none; }
.util__item { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.util__item + .util__item { margin-left: 14px; padding-left: 14px; border-left: 1px solid rgba(244, 245, 249, 0.14); }
.util__link { display: inline-flex; align-items: center; gap: 7px; color: inherit; text-decoration: none; border-radius: 4px; transition: color 150ms linear; }
.util__link:hover { color: #fff; }
.util a:focus-visible { outline: 2px solid #f4f5f9; outline-offset: 3px; }
.util__ico { flex: none; opacity: 0.75; }
.util__sep--dot { width: 3px; height: 3px; border-radius: 50%; background: rgba(244, 245, 249, 0.4); margin: 0 2px; }
.util__item--phones { gap: 9px; }
.util__item--hours { color: #a9add2; }

/* the WhatsApp pill: green glyph on a quiet green-tinted outline, fills green on hover */
.util__wa {
  flex: none; display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 11px 0 9px; border-radius: 999px;
  color: #e9fbf0; text-decoration: none; font-weight: 600; font-size: 12px;
  background: rgba(37, 211, 102, 0.14); box-shadow: inset 0 0 0 1px rgba(37, 211, 102, 0.5);
  transition: background-color 150ms linear, color 150ms linear;
}
.util__wa-ico { color: #25d366; transition: color 150ms linear; }
.util__wa:hover { background: #25d366; color: #04210f; }
.util__wa:hover .util__wa-ico { color: #04210f; }

/* narrower laptops: drop the hours first, then the second phone */
@media (max-width: 1099px) { .util__item--hours { display: none; } }
@media (max-width: 979px) { .util__sep--dot, .util__link--tel2 { display: none; } }

/* phone: the email and main phone number stay visible as text (11.5px); offices, hours and the second phone stay hidden.
   The WhatsApp pill shows its icon only on narrow phones (under 480px). Under 360px the email item is hidden so the phone fits. */
@media (max-width: 859px) {
  .util__item--offices, .util__item--hours { display: none; }
  .util__row { justify-content: flex-start; }
  .util__list { gap: 12px; min-width: 0; }
  .util__item + .util__item { margin-left: 0; padding-left: 0; border-left: 0; }
  .util__link { gap: 5px; height: 28px; }
  .util__text { display: inline; font-size: 11.5px; white-space: nowrap; }
  .util__ico { opacity: 1; width: 13px; height: 13px; }
  .util__wa { margin-left: auto; }
}
@media (max-width: 479px) {
  .util__wa { padding: 0 7px; }
  .util__wa > span { display: none; }
}
@media (max-width: 359px) {
  .util__item--mail { display: none; }
}
@media (prefers-reduced-motion: reduce) { .util__link, .util__wa, .util__wa-ico { transition-duration: 0.01ms !important; } }

/* ---------------------------------------------------------------- footer */
.footer { border-top: 1px solid var(--hairline-dark); }
.footer__col h4 { letter-spacing: 0.1em; }
.footer__legal { border-top: 1px solid var(--hairline-dark); }
html[data-page="/"] footer.closing { padding-top: clamp(48px, 5vw, 80px) !important; padding-bottom: calc(clamp(28px, 3.5vw, 48px) + 56px) !important; }

/* ---------------------------------------------------------------- reduced motion, everywhere */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .btn, .nav--film::before { transition-duration: 0.01ms !important; }
  .btn:hover, .btn:active { transform: none; }
  .btn:hover .m-arrow { transform: none; }
}

/* header lockup: mark plus live wordmark */
.nav__logo { gap: 12px; }
.nav__logo .logo--mark { height: 34px; width: auto; aspect-ratio: 252 / 90; flex: none; }
.nav__word { font: 600 13px/1.15 var(--font-display); letter-spacing: -0.01em; white-space: nowrap; }
@media (max-width: 1179px) { .nav__word { display: none; } }
@media (max-width: 639px) { .nav__logo .logo--mark { height: 30px; } }

/* footer lockup: the same mark and live wordmark as the header, always with the name */
.footer__logo.nav__logo { display: inline-flex; align-items: center; color: #f4f5f9; }
.footer__logo .logo--mark { height: 40px; width: auto; }
.footer__logo .nav__word { display: inline; font-size: 14px; }

/* Mega menus: Industries (sector cards + every sector) and Partners (every maker) */
.menu-card__line { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.menu-col--list { gap: 0; }
.menu-col--list a { padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.menu-col--list a:last-child { border-bottom: 0; }
.nav__menu--partners .menu-col a { padding: var(--s-2) 0; border-bottom: 1px solid var(--line); }
.nav__menu--partners .menu-col a:last-child { border-bottom: 0; }
.menu-col a.menu-col__all { color: var(--action, #2f3190); font-weight: 600; }
.menu-col a:focus-visible, .menu-card:focus-visible { outline: 2px solid #2f3190; outline-offset: 3px; border-radius: 4px; }
@media (max-width: 1023px) {
  /* in the phone sheet: the spacer labels go, rows stay compact, sector cards keep one line */
  .nav.is-open .nav__menu--partners .t-label[aria-hidden="true"] { display: none; }
  .nav.is-open .menu-col a { min-height: 44px; align-content: center; }
  .nav.is-open .menu-card__line { -webkit-line-clamp: 1; }
}
/* cards hold their content at the top rather than stretching to the row height */
.nav__menu .menu-card { align-content: start; }
/* over the film the panel sits inside the bar's width, so it reads as a dropped sheet */
@media (min-width: 1024px) {
  .nav--film .nav__menu { border-radius: 0 0 16px 16px; border-top: 0; box-shadow: 0 24px 48px -24px rgba(5, 7, 26, 0.55); }
}
@media (max-width: 1023px) {
  /* in the sheet the full list already names every sector */
  .nav.is-open .nav__menu--industries .menu-card { display: none; }
}

/* real brand logo on a white plate (header and footer sit on dark navy) */
.logo-plate { display: inline-flex; align-items: center; background: #fff; border-radius: 8px; padding: 3px 8px; line-height: 0; }
.nav__logo .logo.logo--full, .footer__logo .logo.logo--full { height: 38px; width: auto; aspect-ratio: 248 / 127; display: block; }
.footer__logo .logo.logo--full { height: 56px; }
@media (max-width: 639px) { .nav__logo .logo.logo--full { height: 32px; } }

/* Floating WhatsApp button */
.wa-float {
  position: fixed; right: 24px; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 50;
  display: inline-flex; align-items: center; gap: 10px; height: 56px; min-width: 56px; padding: 0 14px;
  border-radius: 999px; background: #25D366; color: #fff; text-decoration: none;
  box-shadow: 0 10px 28px -8px rgba(7, 94, 84, .55), 0 2px 6px rgba(0, 0, 0, .18);
  transition: transform .2s ease, box-shadow .2s ease;
}
.wa-float__label { display: none; font-size: 14px; font-weight: 600; white-space: nowrap; padding-right: 4px; }
.wa-float:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -8px rgba(7, 94, 84, .6), 0 3px 8px rgba(0, 0, 0, .2); }
.wa-float:focus-visible { outline: 3px solid #fff; outline-offset: 3px; box-shadow: 0 0 0 6px #075E54; }
@media (hover: hover) and (min-width: 861px) { .wa-float:hover .wa-float__label { display: inline; } }
@media (max-width: 860px) { .wa-float { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); height: 52px; min-width: 52px; padding: 0 12px; } }
@media (prefers-reduced-motion: reduce) { .wa-float, .wa-float:hover { transition: none; transform: none; } }
@media print { .wa-float { display: none; } }
/* Clear the homepage chromatogram rail (fixed, 44px, bottom) */
body:has(.trace) .wa-float { bottom: calc(44px + 16px + env(safe-area-inset-bottom, 0px)); }
