/* ============================================================
   ZK EXPEDITE — Design System
   Enterprise light theme. Navy-dominant, corporate blue accent,
   amber reserved as a sparing "expedited / speed" signal.
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  /* Surfaces */
  --bg:         #FFFFFF;
  --bg-alt:     #F6F8FB;   /* alternating section band */
  --bg-muted:   #EDF1F6;   /* input rest, chips */
  --surface:    #FFFFFF;   /* cards */
  --line:       #E3E8EF;   /* hairline borders */
  --line-2:     #CDD5DF;   /* input / stronger borders */

  /* Brand — vivid corporate blue (trust, but not dull) */
  --brand:      #0F5FE0;   /* primary blue — buttons, links (white text = 5.6:1 AA) */
  --brand-700:  #0B4CC0;   /* hover */
  --brand-900:  #0A2540;   /* deep navy — CTA band, footer */
  --brand-50:   #E8F0FF;   /* tint — icon chips, badges */

  /* Accent — amber (speed / expedite only, <=10% of surface) */
  --amber:      #F5A623;
  --amber-deep: #9A6400;   /* amber-ish text on white, AA */
  --amber-50:   #FEF6E7;

  /* Patriotic red (USA accent, used sparingly) */
  --red:        #BF2A2A;   /* refined flag red */
  --red-deep:   #A31F1F;   /* red text on white, AA */
  --red-50:     #FBEAEA;

  /* Text */
  --text:       #0E1B2A;   /* headings / primary  (~15:1 on white) */
  --text-2:     #3C4A5B;   /* body               (~9:1) */
  --text-3:     #5A6B7B;   /* muted labels/caps  (~5:1) */
  --text-faint: #8A97A6;   /* placeholders (non-essential only) */

  /* Feedback */
  --success:    #17845A;
  --error:      #C0392B;

  /* Type */
  --font-sans:  "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono:  "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Layout */
  --wrap:       1200px;
  --wrap-text:  1080px;
  --gutter:     clamp(20px, 5vw, 48px);
  --radius:     12px;
  --radius-sm:  8px;
  --radius-xs:  6px;

  /* Elevation — premium range is very low alpha */
  --shadow-xs:  0 1px 2px rgba(10, 37, 64, 0.05);
  --shadow-sm:  0 1px 2px rgba(10, 37, 64, 0.05), 0 1px 3px rgba(10, 37, 64, 0.07);
  --shadow-md:  0 8px 24px -12px rgba(10, 37, 64, 0.18), 0 2px 6px -2px rgba(10, 37, 64, 0.06);
  --shadow-lg:  0 20px 40px -16px rgba(10, 37, 64, 0.22);

  /* Motion */
  --ease:       cubic-bezier(0.2, 0, 0, 1);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-2);
  font-family: var(--font-sans);
  font-size: 1.0625rem;      /* 17px */
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  color: var(--text);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.018em;
  margin: 0;
  text-wrap: balance;   /* even heading lines, no dangling words */
}
h1 { font-weight: 700; letter-spacing: -0.022em; }

p { margin: 0 0 1rem; text-wrap: pretty; }   /* avoids single-word last lines */
h4, .eyebrow, li { text-wrap: pretty; }

::selection { background: var(--brand-50); color: var(--brand-900); }

/* Accessible focus (SC 2.4.7 / 2.4.11) */
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ---------- Utilities ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand);
  display: inline-block;
}

.section {
  position: relative;
  padding-block: clamp(64px, 9vw, 112px);
}
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }

.section-head {
  max-width: 680px;
  margin-bottom: clamp(36px, 5vw, 60px);
}
.section-head h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
  margin-top: 16px;
}
.section-head p {
  color: var(--text-2);
  font-size: 1.1875rem;
  margin: 16px 0 0;
  max-width: 62ch;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 200;
  background: var(--brand);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 500;
}
.skip-link:focus { left: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 46px;
  padding: 12px 22px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  transition: background 0.16s var(--ease), border-color 0.16s var(--ease),
              color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}
.btn svg { width: 17px; height: 17px; }

.btn--primary {
  background: var(--brand);
  color: #fff;
}
.btn--primary:hover { background: var(--brand-700); box-shadow: var(--shadow-sm); }

.btn--secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line-2);
}
.btn--secondary:hover { background: var(--bg-alt); border-color: #B7C0CC; }

.btn--amber {
  background: var(--amber);
  color: var(--brand-900);
  font-weight: 600;
}
.btn--amber:hover { background: #E5991A; box-shadow: var(--shadow-sm); }

/* On dark bands (navy) */
.btn--ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}
.btn--ghost-light:hover { background: rgba(255, 255, 255, 0.10); border-color: rgba(255,255,255,0.6); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s var(--ease);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
}

/* Wordmark */
.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  color: var(--text);
}
.brand__text {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.34rem;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
}
.brand__text b { color: inherit; font-weight: 700; }

/* Primary nav */
.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
}
.nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-2);
  position: relative;
  padding-block: 6px;
  transition: color 0.16s var(--ease);
}
.nav a:not(.call-btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--brand);
  transition: width 0.2s var(--ease);
}
.nav a:not(.call-btn):hover { color: var(--text); }
.nav a:not(.call-btn):hover::after { width: 100%; }

/* Call/Text button in header */
.call-btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 9px 11px 9px 20px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  transition: border-color 0.16s var(--ease), background 0.16s var(--ease);
}
.call-btn:hover { border-color: var(--brand); background: var(--bg-alt); }
.call-btn__label { display: flex; flex-direction: column; gap: 3px; line-height: 1.1; }
.call-btn__label span {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}
.call-btn__label strong {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  white-space: nowrap;
}
.call-btn__icon {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius-xs);
  flex-shrink: 0;
}
.call-btn__icon svg { width: 18px; height: 18px; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  margin-left: auto;
  padding: 0;
  place-items: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 18px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle span { position: relative; }
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after  { position: absolute; top: 6px; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
body.nav-open .nav-toggle span::after  { transform: translateY(-6px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding-block: clamp(52px, 7vw, 96px);
  background: var(--brand-900);
  overflow: hidden;
  isolation: isolate;
}
.hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 58%;
  z-index: -2;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8,26,46,0.95) 0%, rgba(8,26,46,0.86) 40%, rgba(8,26,46,0.55) 76%, rgba(8,26,46,0.38) 100%),
    linear-gradient(180deg, rgba(8,26,46,0.25), rgba(8,26,46,0.55));
}
.hero__inner {
  position: relative;
  max-width: 720px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  margin: 20px 0 0;
  max-width: 15ch;
}
.hero h1 .hl { color: var(--amber); }
.hero .eyebrow { color: var(--amber); }
.hero__sub {
  font-size: 1.1875rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 52ch;
  margin: 22px 0 0;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(26px, 5vw, 62px);
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.hero__stat .n {
  display: block;
  font-family: var(--font-sans);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 700;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.02em;
}
.hero__stat .l {
  display: block;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.66);
  margin-top: 8px;
}

/* ---------- Trust strip (replaces marquee) ---------- */
.trustbar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.trustbar__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px clamp(24px, 5vw, 56px);
  justify-content: center;
  padding-block: 22px;
}
.trustbar__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-2);
}
.trustbar__item::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
}

/* ---------- Stats — compact navy panel ---------- */
.stats-section { padding-block: clamp(40px, 6vw, 68px); }
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;                              /* 1px gaps reveal the divider color */
  background: rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.stat {
  background: var(--brand-900);
  padding: clamp(26px, 3.4vw, 40px) clamp(18px, 2.6vw, 34px);
}
.stat__num {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.9rem);
  color: #fff;
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat__num b { color: inherit; font-weight: 700; }
.stat__label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.62);
  margin-top: 10px;
  font-weight: 500;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px 32px;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease),
              box-shadow 0.2s var(--ease);
}
.card:hover {
  border-color: var(--line-2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.card__icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: var(--brand-50);
  border-radius: 10px;
  color: var(--brand);
  margin-bottom: 20px;
}
.card--accent .card__icon { background: var(--amber-50); color: var(--amber-deep); }
.card__icon svg { width: 24px; height: 24px; }
.card__num {
  position: absolute;
  top: 26px; right: 26px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-faint);
}
.card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.card p { color: var(--text-2); font-size: 1rem; margin: 0; }

/* Numbered editorial index (services) — replaces icon chips */
.card__index {
  display: block;
  font-family: var(--font-sans);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.card--accent { background: var(--amber-50); border-color: #ECD9AC; }

/* ============================================================
   SERVICES — asymmetric feature + typographic list
   ============================================================ */
.svc {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 20px;
  align-items: stretch;
}
.svc__feature {
  background: var(--brand-900);
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(30px, 3.6vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 48px;
  box-shadow: var(--shadow-md);
}
.svc__tag {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-900);
  background: var(--amber);
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
}
.svc__ftxt { margin-top: auto; }
.svc__feature h3 { color: #fff; font-size: clamp(1.6rem, 2.7vw, 2.2rem); margin-bottom: 14px; }
.svc__feature p { color: rgba(255, 255, 255, 0.78); font-size: 1.06rem; margin: 0; max-width: 36ch; }

.svc__list {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  align-content: start;
}
.svc__item {
  padding: clamp(22px, 2.5vw, 30px) clamp(24px, 2.6vw, 32px);
  border-top: 1px solid var(--line);
  transition: background 0.16s var(--ease);
}
.svc__item:first-child { border-top: 0; }
.svc__item:hover { background: var(--bg-alt); }
.svc__item h4 { font-size: 1.18rem; margin-bottom: 6px; }
.svc__item p { color: var(--text-2); font-size: 0.97rem; margin: 0; }

/* ============================================================
   TECHNOLOGY — compact "Powered by Endless TMS" advert
   ============================================================ */
.tms-section { padding-block: clamp(44px, 6vw, 76px); }
.tms-advert {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: clamp(28px, 3.5vw, 44px);
}
.tms-advert h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 12px 0 0; }
.tms-advert p { color: var(--text-2); font-size: 1.05rem; margin: 14px 0 0; max-width: 48ch; }
.tms-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tms-tag {
  font-size: 0.82rem;
  color: var(--text-2);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 13px;
}
.tms-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 22px;
  font-weight: 500;
  color: var(--brand);
}
.tms-link svg { width: 16px; height: 16px; transition: transform 0.16s var(--ease); }
.tms-link:hover svg { transform: translateX(3px); }

/* Endless TMS badge — the real logo on a light chip */
.tms-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 26px;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), border-color 0.18s var(--ease);
}
.tms-badge:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.tms-badge small {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}
.tms-badge__logo { height: 26px; width: auto; display: block; }

/* ---------- USA / patriotic accents (used sparingly) ---------- */
.flag { width: 26px; height: 17px; border-radius: 2px; flex-shrink: 0; display: inline-block; box-shadow: 0 0 0 1px rgba(0,0,0,0.06); }
.usa-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.usa-badge .flag { box-shadow: 0 0 0 1px rgba(255,255,255,0.25); }
/* keep flag at flag proportions inside icon-sized contexts */
.hero__trust .flag,
.trustbar__item .flag,
.site-footer .flag { width: 24px; height: 16px; }

/* ============================================================
   MISSION
   ============================================================ */
.mission__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.5fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.mission__quote {
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.018em;
  color: var(--text);
}
.mission__quote .amp { color: var(--brand); }
.mission__body p { color: var(--text-2); font-size: 1.1rem; }
.mission__body p:first-child { margin-top: 0; }
.mission__sig {
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--text-3);
}

/* ============================================================
   PROCESS — connected horizontal timeline (distinct from cards)
   ============================================================ */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 3vw, 36px);
  position: relative;
}
.process-steps::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: var(--line-2);
  z-index: 0;
}
.pstep { position: relative; z-index: 1; text-align: center; }
.pstep__dot {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.1rem;
  display: grid;
  place-items: center;
  margin: 0 auto 22px;
  /* ring masks the connector line so dots sit cleanly on it */
  box-shadow: 0 0 0 7px var(--bg-alt);
}
.pstep h3 { font-size: 1.1rem; margin-bottom: 8px; }
.pstep p { color: var(--text-2); font-size: 0.95rem; margin: 0 auto; max-width: 26ch; }

@media (max-width: 760px) {
  .process-steps { grid-template-columns: 1fr 1fr; gap: 36px 20px; }
  .process-steps::before { display: none; }
}
@media (max-width: 460px) {
  .process-steps { grid-template-columns: 1fr; }
}

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  position: relative;
  background: var(--brand-900);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.cta-band__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  z-index: -2;
}
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(8,26,46,0.96) 0%, rgba(8,26,46,0.85) 55%, rgba(8,26,46,0.70) 100%);
}
.cta-band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-block: clamp(48px, 7vw, 76px);
}
.cta-band h2 {
  color: #fff;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  max-width: 20ch;
}
.cta-band p { color: rgba(255,255,255,0.75); margin: 12px 0 0; max-width: 46ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 72px);
  align-items: start;
}
.contact__aside h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
.contact__aside p { color: var(--text-2); margin: 16px 0 0; max-width: 40ch; font-size: 1.1rem; }
.contact__direct {
  margin-top: 32px;
  display: grid;
  gap: 12px;
}
.contact__direct a,
.contact__direct div {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: border-color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}
.contact__direct a:hover { border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.contact__direct .ic {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  color: var(--brand);
  background: var(--brand-50);
  border-radius: 10px;
  flex-shrink: 0;
}
.contact__direct .ic svg { width: 19px; height: 19px; }
.contact__direct .t small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 3px;
}
.contact__direct .t strong { font-weight: 600; font-size: 1.05rem; color: var(--text); }

/* Form — single column (accessible, high-completion) */
.form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: clamp(24px, 4vw, 38px);
}
.form__req-note {
  font-size: 0.85rem;
  color: var(--text-3);
  margin: 0 0 20px;
}
.field { margin-bottom: 18px; display: flex; flex-direction: column; }
.field label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 7px;
}
.field label .req { color: var(--error); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;      /* 16px — prevents iOS zoom */
  padding: 12px 14px;
  transition: border-color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}
.field textarea { resize: vertical; min-height: 128px; line-height: 1.6; }
.field select {
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%235A6B7B' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--text-faint); }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: #B7C0CC; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(29, 95, 168, 0.15);
}
.field input:user-invalid { border-color: var(--error); }

/* Honeypot */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__submit .btn { width: 100%; }
.form__note {
  margin-top: 14px;
  font-size: 0.83rem;
  color: var(--text-3);
  text-align: center;
}

.form__status {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  display: none;
  align-items: flex-start;
  gap: 10px;
}
.form__status.is-visible { display: flex; }
.form__status.is-success {
  background: rgba(23, 132, 90, 0.08);
  border: 1px solid rgba(23, 132, 90, 0.35);
  color: var(--success);
}
.form__status.is-error {
  background: rgba(192, 57, 43, 0.07);
  border: 1px solid rgba(192, 57, 43, 0.35);
  color: var(--error);
}
.form__status::before {
  content: "";
  width: 18px; height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
  background-repeat: no-repeat;
  background-position: center;
}
.form__status.is-success::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2317845A' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
.form__status.is-error::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23C0392B' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 8v4M12 16h.01'/%3E%3C/svg%3E");
}

.btn.is-loading { pointer-events: none; opacity: 0.75; }
.btn.is-loading .btn__spinner { display: inline-block; }
.btn__spinner {
  display: none;
  width: 16px; height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--brand-900);
  color: rgba(255, 255, 255, 0.72);
  padding-block: clamp(48px, 7vw, 72px) 30px;
}
.site-footer .brand { color: #fff; }
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-brand { max-width: 340px; }
.footer-brand p { color: rgba(255, 255, 255, 0.62); font-size: 0.95rem; margin: 18px 0 0; }
.footer-cols { display: flex; gap: clamp(40px, 8vw, 90px); flex-wrap: wrap; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col a, .footer-col span {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
  padding-block: 6px;
  transition: color 0.16s var(--ease);
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 26px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ============================================================
   SCROLL REVEAL (subtle, once)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.06s; }
.reveal[data-delay="2"] { transition-delay: 0.12s; }
.reveal[data-delay="3"] { transition-delay: 0.18s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .mission__inner,
  .contact__inner { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .svc,
  .tms-advert { grid-template-columns: 1fr; }
  .tms-advert__badge { justify-self: start; }
}

@media (max-width: 760px) {
  .nav,
  .header-actions-desktop { display: none; }
  .nav-toggle { display: grid; }

  .nav.is-open {
    display: flex;
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 8px var(--gutter) 22px;
    z-index: 99;
  }
  .nav.is-open a:not(.call-btn) {
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
  }
  .nav.is-open a:not(.call-btn)::after { display: none; }
  .nav.is-open .call-btn { margin-top: 16px; justify-content: space-between; }
}

@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
