/* ============================================================
   TRANSLOAD — shared stylesheet for service detail pages
   Mirrors the design tokens & components of the homepage.
   ============================================================ */

:root {
  --carbon: #0a233c;
  --carbon-soft: #10304f;
  --paper: #ffffff;
  --alloy: #9db0bf;
  --track: #4b5e6e;
  --heritage: #006bb6;
  --heritage-bright: #2e9be6;
  --signal: #d32d2f;
  --concrete: #e6e7e8;
  --display: "Oswald", "Arial Narrow", system-ui, sans-serif;
  --body: "Jost", "Century Gothic", system-ui, sans-serif;
  --data: "Archivo", "Helvetica Neue", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --gutter: clamp(20px, 4.2vw, 72px);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --line: rgba(255, 255, 255, .17);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--carbon);
  color: var(--paper);
  font-family: var(--body);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body { margin: 0; min-width: 320px; background: var(--carbon); color: var(--paper); overflow-x: clip; }
a { color: inherit; }
img { max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--heritage); outline-offset: 5px; }

.micro {
  font-family: var(--data);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- primary navigation ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 64px;
  padding: 12px var(--gutter);
  pointer-events: none;
  text-shadow: 0 1px 10px rgba(8, 10, 12, .6);
  transition: background 300ms ease, border-color 300ms ease, backdrop-filter 300ms ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-solid {
  background: rgba(7, 26, 45, .9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
  text-shadow: none;
}
.site-header__brand { pointer-events: auto; display: flex; align-items: center; text-decoration: none; }
.brand-lockup { width: auto; height: clamp(30px, 3.4vw, 40px); filter: drop-shadow(0 1px 6px rgba(8, 10, 12, .45)); }

.topnav { margin-left: auto; }
.topnav__list { display: flex; align-items: center; gap: clamp(16px, 2vw, 34px); margin: 0; padding: 0; list-style: none; }
.topnav__list a {
  pointer-events: auto; position: relative; display: inline-block; padding: 6px 0;
  font-family: var(--data); font-size: 12px; font-weight: 500; letter-spacing: .1em;
  text-transform: uppercase; text-decoration: none; color: rgba(255, 255, 255, .82);
  transition: color 200ms ease;
}
.topnav__list a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px;
  background: var(--signal); transform: scaleX(0); transform-origin: left;
  transition: transform 220ms var(--ease-out);
}
.topnav__list a:hover, .topnav__list a[aria-current="page"] { color: #fff; }
.topnav__list a:hover::after, .topnav__list a[aria-current="page"]::after { transform: scaleX(1); }

.topnav__end { display: flex; align-items: center; gap: 16px; }
.nav-cta {
  pointer-events: auto; display: inline-flex; align-items: center; gap: 10px; min-height: 40px;
  padding: 0 18px; border: 1px solid rgba(255, 255, 255, .5); background: rgba(10, 35, 60, .18);
  color: var(--paper); font-family: var(--data); font-size: 11px; letter-spacing: .1em;
  text-decoration: none; text-transform: uppercase;
  transition: background 220ms ease, border-color 220ms ease, color 220ms ease;
}
.nav-cta::after { content: "↗"; font-size: 14px; }
.nav-cta:hover { background: var(--heritage); border-color: var(--heritage); color: #fff; }

.nav-toggle {
  pointer-events: auto; display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; padding: 0 9px; border: 1px solid rgba(255, 255, 255, .5);
  background: rgba(10, 35, 60, .2); cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: #fff; transition: transform 240ms var(--ease-out), opacity 200ms ease; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .site-header { gap: 14px; }
  .nav-toggle { display: flex; }
  .topnav {
    position: fixed; inset: 64px 0 auto; margin: 0; max-height: 0; overflow: hidden;
    background: rgba(7, 26, 45, .97); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent; transition: max-height 340ms var(--ease-out), border-color 340ms ease;
  }
  .topnav.is-open { max-height: 70vh; border-bottom-color: var(--line); }
  .topnav__list { flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px; }
  .topnav__list li { border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .topnav__list a { display: block; padding: 16px 0; font-size: 14px; }
  .topnav__list a::after { display: none; }
}

/* ---------- buttons ---------- */
.cta {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 40px;
  min-width: min(100%, 280px); min-height: 54px; padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, .56); background: rgba(10, 35, 60, .18); color: var(--paper);
  font-family: var(--data); font-size: 11px; letter-spacing: .08em; text-decoration: none; text-transform: uppercase;
  transition: color 250ms ease, background 250ms ease, border-color 250ms ease;
}
.cta::after { content: "↗"; font-size: 16px; }
.cta:hover { background: var(--heritage); border-color: var(--heritage); color: #fff; }
.cta--ghost { background: transparent; }
.cta--solid { background: var(--heritage); border-color: var(--heritage); }
.cta--solid:hover { background: #045a94; border-color: #045a94; }
.cta--dark { border-color: rgba(10, 35, 60, .5); color: var(--carbon); }
.cta--dark:hover { color: #fff; }

/* ---------- section system ---------- */
.section { position: relative; z-index: 10; padding: clamp(80px, 10vw, 150px) var(--gutter); }
.section--navy { background: var(--carbon); color: var(--paper); }
.section--deep { background: #071a2d; color: var(--paper); }
.section--concrete { background: var(--concrete); color: var(--carbon); }

.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--signal); }

.section__head {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  align-items: end; gap: 40px; margin-bottom: clamp(40px, 6vw, 72px);
}
.section__title {
  margin: 0; font-family: var(--display); font-size: clamp(40px, 6vw, 92px); font-weight: 600;
  letter-spacing: .01em; line-height: .94; text-transform: uppercase;
}
.section__aside { justify-self: end; align-self: end; max-width: 26rem; margin: 0; font-size: clamp(16px, 1.4vw, 21px); line-height: 1.45; }
.section--concrete .section__aside { color: rgba(10, 35, 60, .8); }

/* ---------- page hero ---------- */
.page-hero {
  position: relative; overflow: hidden;
  padding: clamp(130px, 17vh, 210px) var(--gutter) clamp(60px, 8vw, 110px);
  background:
    radial-gradient(120% 90% at 85% 0%, rgba(0, 107, 182, .28), transparent 55%),
    linear-gradient(180deg, #0c2a44 0%, var(--carbon) 60%, #071a2d 100%);
  background-color: var(--carbon);
  border-bottom: 1px solid var(--line);
}
.page-hero__grid {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 40%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 40%, transparent);
}
.page-hero__ghost {
  position: absolute; right: clamp(-20px, 2vw, 40px); top: clamp(70px, 12vh, 150px);
  font-family: var(--display); font-weight: 700; font-size: clamp(180px, 34vw, 460px);
  line-height: .7; color: rgba(255, 255, 255, .045); letter-spacing: -.02em; pointer-events: none; z-index: 0;
}
.page-hero__inner { position: relative; z-index: 1; max-width: 1100px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 26px; }
.crumbs a, .crumbs span { font-family: var(--data); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--alloy); text-decoration: none; }
.crumbs a:hover { color: var(--heritage-bright); }
.crumbs .sep { color: rgba(255, 255, 255, .3); }
.crumbs [aria-current] { color: var(--paper); }

.page-hero__eyebrow { margin: 0 0 16px; color: var(--heritage-bright); }
.page-hero__title {
  margin: 0; font-family: var(--display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(48px, 8vw, 120px); line-height: .9; letter-spacing: .01em; max-width: 14ch;
}
.page-hero__deck { margin: 26px 0 0; max-width: 40rem; font-size: clamp(17px, 1.6vw, 22px); line-height: 1.5; color: rgba(255, 255, 255, .88); }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

/* ---------- lead / overview ---------- */
.lead-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 90px); align-items: start; }
.lead-body p { margin: 0 0 20px; font-size: clamp(16px, 1.4vw, 20px); line-height: 1.6; }
.lead-body p:last-child { margin-bottom: 0; }
.section--concrete .lead-body p { color: rgba(10, 35, 60, .88); }
.lead-aside {
  padding: clamp(26px, 3vw, 38px); border: 1px solid rgba(10, 35, 60, .16); background: rgba(255, 255, 255, .5);
}
.section--deep .lead-aside, .section--navy .lead-aside { border-color: var(--line); background: rgba(255, 255, 255, .04); }
.lead-aside h3 { margin: 0 0 18px; font-family: var(--data); font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--heritage); }
.section--deep .lead-aside h3, .section--navy .lead-aside h3 { color: var(--heritage-bright); }
.fastfacts { margin: 0; padding: 0; list-style: none; display: grid; gap: 0; }
.fastfacts li { display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 14px 0; border-top: 1px solid rgba(10, 35, 60, .14); font-size: 15px; line-height: 1.4; }
.fastfacts li:first-child { border-top: 0; }
.section--deep .fastfacts li, .section--navy .fastfacts li { border-top-color: rgba(255, 255, 255, .12); }
.fastfacts strong { font-family: var(--display); font-size: 22px; font-weight: 600; color: currentColor; }

/* ---------- capability cards (the detailed explanation) ---------- */
.cap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .16); }
.cap { background: var(--carbon); padding: 30px 28px 34px; transition: background 300ms ease; }
.section--deep .cap { background: #071a2d; }
.cap:hover { background: var(--carbon-soft); }
.cap__n { display: block; margin-bottom: 18px; font-family: var(--mono); font-size: 12px; color: var(--heritage-bright); letter-spacing: .06em; }
.cap h3 { margin: 0 0 10px; font-family: var(--display); font-size: clamp(19px, 1.7vw, 23px); font-weight: 600; letter-spacing: .01em; line-height: 1.05; text-transform: uppercase; }
.cap p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--alloy); }

/* ---------- process ---------- */
.proc { margin: 0; padding: 0; list-style: none; display: grid; gap: 1px; background: rgba(10, 35, 60, .14); border: 1px solid rgba(10, 35, 60, .14); }
.section--deep .proc, .section--navy .proc { background: var(--line); border-color: var(--line); }
.proc li { position: relative; background: var(--concrete); padding: 30px clamp(24px, 3vw, 40px); display: grid; grid-template-columns: 64px 1fr; gap: clamp(16px, 2vw, 34px); align-items: start; }
.section--deep .proc li, .section--navy .proc li { background: #071a2d; }
.proc__n { font-family: var(--display); font-size: clamp(30px, 3vw, 46px); font-weight: 700; line-height: 1; color: var(--heritage); }
.section--deep .proc__n, .section--navy .proc__n { color: var(--heritage-bright); }
.proc h3 { margin: 0 0 8px; font-family: var(--display); font-size: clamp(20px, 1.9vw, 26px); font-weight: 600; text-transform: uppercase; letter-spacing: .01em; }
.proc p { margin: 0; font-size: 15.5px; line-height: 1.55; max-width: 60ch; }
.section--concrete .proc p { color: rgba(10, 35, 60, .82); }
.section--deep .proc p, .section--navy .proc p { color: var(--alloy); }

/* ---------- benefits ---------- */
.benefit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(24px, 3vw, 44px); }
.benefit { position: relative; padding-top: 24px; border-top: 2px solid var(--signal); }
.benefit h3 { margin: 0 0 10px; font-family: var(--display); font-size: clamp(19px, 1.7vw, 24px); font-weight: 600; text-transform: uppercase; }
.benefit p { margin: 0; font-size: 15.5px; line-height: 1.55; }
.section--concrete .benefit p { color: rgba(10, 35, 60, .82); }
.section--deep .benefit p, .section--navy .benefit p { color: var(--alloy); }

/* ---------- related services ---------- */
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.related {
  display: flex; flex-direction: column; gap: 12px; padding: 28px 26px; text-decoration: none;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line); color: var(--paper);
  transition: background 260ms ease, border-color 260ms ease, transform 260ms var(--ease-out);
}
.related:hover { background: rgba(0, 107, 182, .12); border-color: var(--heritage-bright); transform: translateY(-3px); }
.related__n { font-family: var(--mono); font-size: 12px; color: var(--heritage-bright); }
.related h3 { margin: 0; font-family: var(--display); font-size: clamp(20px, 1.8vw, 26px); font-weight: 600; text-transform: uppercase; line-height: 1; }
.related p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--alloy); }
.related__go { margin-top: auto; font-family: var(--data); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--heritage-bright); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; z-index: 10; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 30px; padding: clamp(56px, 7vw, 96px) var(--gutter); background: var(--heritage); color: #fff;
}
.cta-band__title { margin: 0; font-family: var(--display); font-size: clamp(34px, 4.6vw, 68px); font-weight: 600; line-height: .96; text-transform: uppercase; }
.cta-band__deck { margin: 12px 0 0; max-width: 42rem; font-size: clamp(16px, 1.5vw, 20px); line-height: 1.45; color: rgba(255, 255, 255, .9); }
.cta-band .cta { border-color: rgba(255, 255, 255, .7); }
.cta-band .cta:hover { background: #fff; border-color: #fff; color: var(--heritage); }

/* ---------- footer ---------- */
.footer { position: relative; z-index: 10; background: #071a2d; color: var(--paper); padding: clamp(70px, 9vw, 130px) var(--gutter) 0; }
.footer__top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr); gap: clamp(40px, 6vw, 90px); padding-bottom: clamp(48px, 6vw, 80px); border-bottom: 1px solid rgba(255, 255, 255, .14); }
.footer__lockup { display: flex; align-items: flex-start; }
.footer__logo { width: auto; height: clamp(52px, 6vw, 74px); max-width: 100%; object-fit: contain; object-position: left center; }
.footer__motto { margin: 22px 0 0; font-family: var(--display); font-size: clamp(21px, 2vw, 28px); font-weight: 600; letter-spacing: .02em; line-height: 1.15; text-transform: uppercase; max-width: 14ch; }
.footer__canada { display: flex; align-items: center; gap: 8px; margin: 18px 0 0; color: var(--alloy); font-size: 14px; }
.footer__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.footer__col h4 { margin: 0 0 16px; font-family: var(--data); font-size: 10px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--alloy); }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer__col a, .footer__col li { font-size: 15px; line-height: 1.45; color: rgba(255, 255, 255, .82); text-decoration: none; }
.footer__col a:hover { color: var(--heritage-bright); text-decoration: underline; text-underline-offset: 4px; }
.footer__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin: 0 calc(-1 * var(--gutter)); padding: 24px var(--gutter) max(26px, env(safe-area-inset-bottom)); border-top: 2px solid var(--signal); color: var(--alloy); }
.footer__bar a { color: var(--paper); text-underline-offset: 4px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .section__head { grid-template-columns: 1fr; }
  .section__aside { justify-self: start; }
  .lead-grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .proc li { grid-template-columns: 1fr; gap: 8px; }
  .footer__cols { grid-template-columns: 1fr; }
  .page-hero__actions .cta, .page-hero__actions .nav-cta { min-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- services dropdown ---------- */
.has-dropdown { position: relative; }
.topnav__trigger {
  pointer-events: auto;
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 0;
  border: 0; background: none; cursor: pointer;
  font-family: var(--data); font-size: 12px; font-weight: 500; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(255, 255, 255, .82); transition: color 200ms ease;
}
.topnav__trigger::after { content: "\25BE"; font-size: 9px; transition: transform 220ms var(--ease-out); }
.topnav__trigger:hover,
.has-dropdown:hover .topnav__trigger,
.has-dropdown.is-open .topnav__trigger { color: #fff; }
.has-dropdown:hover .topnav__trigger::after,
.has-dropdown.is-open .topnav__trigger::after { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: 100%; left: 0; transform: translateY(10px);
  min-width: 264px; padding: 10px; margin-top: 0; padding-top: 16px;
  background: rgba(7, 26, 45, .97); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--line); display: grid; gap: 2px; z-index: 95;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 200ms ease, transform 220ms var(--ease-out), visibility 200ms;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown,
.has-dropdown.is-open .dropdown { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.dropdown a {
  display: block; padding: 11px 14px; border-left: 2px solid transparent;
  font-family: var(--data); font-size: 12px; font-weight: 500; letter-spacing: .06em;
  text-transform: uppercase; color: rgba(255, 255, 255, .82); text-decoration: none;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}
.dropdown a::after { display: none; }
.dropdown a:hover,
.dropdown a[aria-current="page"] { background: rgba(0, 107, 182, .16); color: #fff; border-left-color: var(--signal); }
.dropdown__all { margin-top: 4px; border-top: 1px solid rgba(255, 255, 255, .1); color: var(--heritage-bright); }
.dropdown__all:hover { color: #fff; }

@media (max-width: 860px) {
  .has-dropdown { width: 100%; }
  .topnav__trigger { width: 100%; justify-content: space-between; padding: 16px 0; font-size: 14px; }
  .dropdown {
    position: static; transform: none; opacity: 1; visibility: visible; pointer-events: auto;
    min-width: 0; margin: 0; padding: 0; border: 0; background: none;
    -webkit-backdrop-filter: none; backdrop-filter: none;
    max-height: 0; overflow: hidden; transition: max-height 320ms var(--ease-out);
  }
  .has-dropdown.is-open .dropdown { max-height: 460px; }
  .dropdown a { padding: 13px 0 13px 18px; font-size: 13px; }
}

/* ---------- mobile nav refinements ---------- */
.nav-quote { display: none; }
@media (max-width: 860px) {
  .topnav__end .nav-cta { display: none; }           /* declutter the bar; quote moves into the menu */
  .topnav { background: #071a2d; }                    /* solid panel — no bleed-through */
  .topnav__list li.nav-quote { display: block; border-bottom: 0; padding: 10px 0 4px; }
  .nav-quote a {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 16px; background: var(--heritage); color: #fff;
    font-family: var(--data); font-size: 13px; font-weight: 500; letter-spacing: .1em;
    text-transform: uppercase; text-decoration: none;
  }
  .nav-quote a::after { content: "\2197"; font-size: 15px; }
  .nav-quote a:hover { background: #045a94; }
}
@media (max-width: 860px) {
  .topnav.is-open { max-height: 86vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
}

/* ---------- nav phone / click-to-call ---------- */
.nav-phone {
  pointer-events: auto; display: inline-flex; align-items: center; gap: 8px;
  color: rgba(255, 255, 255, .85); font-family: var(--data); font-size: 12px; font-weight: 500;
  letter-spacing: .04em; text-decoration: none; white-space: nowrap; transition: color 200ms ease;
}
.nav-phone:hover { color: #fff; }
.nav-phone__icon { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 1120px) { .nav-phone__num { display: none; } }

