/* Trust Core Press Ltd. — site styles
   Brand palette: Trust Orange #EE7D03 · Core Cyan #0084C1 · Signal Lime #A2C617
   Neutrals: #14181C #1C2126 #494947 #6B7280 #E6EAEE #F5F7F9 */

html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  font-family: Inter, system-ui, sans-serif;
  color: #14181C;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
a { color: #0084C1; text-decoration: none; }
a:hover { color: #00658F; }
img { max-width: 100%; }

@keyframes tcp-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---- Page router ---- */
.page { display: none; }
.page.active { display: block; }

/* ---- Capabilities mega-menu ----
   Anchored to the (sticky) <header> and centred at container width so it can
   never overflow the viewport. A transparent bridge (::before) covers the gap
   between the nav item and the panel so hover-intent is preserved. */
.has-mega { position: static; }
.has-mega .mega {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: min(1240px, calc(100vw - 32px));
  background: #fff;
  border: 1px solid #E6EAEE;
  border-radius: 12px;
  box-shadow: 0 20px 48px rgba(20, 24, 28, .16);
  padding: 26px;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  z-index: 80;
}
.has-mega .mega::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -22px;
  height: 22px;
}
.has-mega:hover .mega,
.has-mega:focus-within .mega { display: grid; }

/* ---- Header / responsive navigation ---- */
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  flex: none;
  align-items: center;
  justify-content: center;
  border: 1px solid #E6EAEE;
  border-radius: 8px;
  background: #fff;
  color: #14181C;
  cursor: pointer;
}
.nav-toggle .icon-close { display: none; }
header.nav-open .nav-toggle .icon-open { display: none; }
header.nav-open .nav-toggle .icon-close { display: block; }

@media (max-width: 1024px) {
  .nav-toggle { display: flex; }
  /* nav carries an inline display:flex, so the toggled states need !important */
  header nav {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: #fff;
    border-bottom: 1px solid #E6EAEE;
    box-shadow: 0 24px 40px rgba(20, 24, 28, .14);
    padding: 10px clamp(18px, 4vw, 40px) 18px;
    font-size: 16px !important;
    max-height: calc(100vh - 62px);
    overflow-y: auto;
  }
  header.nav-open nav { display: flex !important; }
  header nav > a,
  header .has-mega,
  header .has-mega > a { width: 100%; }
  header nav > a,
  header .has-mega > a { padding: 13px 12px !important; border-radius: 8px; }
  header .has-mega .mega { display: none !important; }
  /* full-width, centred CTA at the foot of the mobile menu */
  header nav > a[href="#top"][data-nav="contact"] {
    justify-content: center;
    margin: 10px 0 0 !important;
  }
}

/* ---- Accessibility ---- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #0084C1;
  outline-offset: 2px;
}

/* ---- Responsive niceties ---- */
@media (max-width: 720px) {
  .util-hide { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none !important; }
  .hero-slide { transition: none !important; }
}
