/* ============================================================================
   TSI IMPACT LTD — SITE STYLESHEET
   Every page loads this one file. Change a color or font here and it updates
   everywhere at once — that's the whole point of the --tokens below.
   ============================================================================ */

:root {
  /* --- Brand colors, sampled directly from Ward's official logo file
     (TSI_Impoact_Logo.png): navy box + navy wordmark, one warm orange
     accent, plus the four service-pillar colors from the earlier pillar
     graphic (green / amber / blue / brown). --- */
  --navy-900: #0b1d40;   /* logo navy, headings, CTA band */
  --navy-800: #16304d;   /* secondary dark surface, hover states */
  --blue-600: #2f6fb0;   /* Smart Vending pillar + primary link color */
  --blue-500: #4a86c9;   /* lighter accent for hover */
  --amber-500: #e06436;  /* official logo accent — primary CTA color */
  --amber-600: #b84f28;
  --green-600: #2f8f5b;  /* Operations pillar */
  --brown-600: #a15c34;  /* Toast POS pillar */

  --ink: #16212e;        /* body text */
  --slate-600: #4d5b6b;  /* secondary text */
  --slate-400: #7c8a99;
  --slate-200: #dde4ea;
  --paper: #f7f4ee;      /* neutral light surface — footer, telemetry strip */
  --cream: #faf3e3;      /* soft warm section tone — the "welcome in" alternate */
  --white: #ffffff;
  --border: #e2e8ee;

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  --container: 1120px;
  --radius: 4px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--blue-500); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy-900);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 700;
}
h1 { font-size: clamp(2.1rem, 4vw, 3.1rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--slate-600); }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
:focus-visible { outline: 2px solid var(--amber-500); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

/* ---------- Skip link (accessibility) ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--amber-500);
  color: var(--navy-900); padding: 10px 16px; z-index: 200; font-weight: 700;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 76px; gap: 24px;
}
.logo { display: flex; align-items: center; }
.logo img { height: 38px; width: auto; }
nav.primary-nav { display: flex; gap: 4px; flex-wrap: wrap; }
nav.primary-nav a {
  color: var(--navy-800); font-size: 0.94rem; font-weight: 600;
  padding: 10px 12px; border-radius: var(--radius); position: relative;
}
nav.primary-nav a:hover { color: var(--amber-600); }
nav.primary-nav a[aria-current="page"] { color: var(--navy-900); }
nav.primary-nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 5px;
  height: 2px; background: var(--amber-500);
}
.nav-toggle { display: none; }

/* ---------- Telemetry strip (signature element): a thin rule with tick
   marks and the four service pillars, each carrying its real brand color,
   echoing a fleet/dashcam telemetry readout. Doubles as quick nav. ---------- */
.telemetry-strip {
  background: var(--paper); color: var(--navy-800);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em;
  text-transform: uppercase;
}
.telemetry-strip .container {
  display: flex; gap: 0; align-items: center; overflow-x: auto;
}
.telemetry-strip a {
  color: var(--navy-800); padding: 9px 18px 9px 0; display: flex; align-items: center;
  gap: 8px; white-space: nowrap;
}
.telemetry-strip a:hover { color: var(--pillar-color, var(--amber-500)); }
.telemetry-strip .tick {
  width: 6px; height: 6px; border-radius: 1px; flex: none;
}
.telemetry-strip .sep { color: var(--slate-400); padding-right: 18px; opacity: 0.5; }

/* ---------- Hero ---------- */
.hero { background: var(--paper); overflow: hidden; border-bottom: 1px solid var(--border); }
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center;
  padding: 64px 0;
}
.hero-kicker {
  font-family: var(--font-mono); text-transform: uppercase; font-size: 0.78rem;
  letter-spacing: 0.08em; color: var(--amber-600); margin-bottom: 14px; display: block;
}
.hero h1 { color: var(--navy-900); }
.hero-body { color: var(--slate-600); font-size: 1.05rem; max-width: 46ch; }
.hero-media { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.hero-media.wide-grid img { aspect-ratio: 3/2; }
@media (max-width: 860px) { .hero-media.wide-grid img { aspect-ratio: 4/3; } }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; padding: 40px 0; }
  .hero-media { order: -1; }
}

/* ---------- Split media/text section (e.g. intro image beside "Why work
   with TSI Impact" copy). The hero puts its image on the right of the
   text; this pattern deliberately puts the image on the LEFT so the page
   alternates left/right instead of stacking every image on one side. ---------- */
.split-grid {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center;
}
.split-grid--media-left .split-media { order: 1; }
.split-grid--media-left .split-text { order: 2; }
.split-media {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border);
}
.split-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; display: block; }
.split-text .section-head.lead { margin-bottom: 24px; }
@media (max-width: 860px) {
  .split-grid { grid-template-columns: 1fr; }
  .split-grid--media-left .split-media { order: -1; }
}

/* ---------- Section rhythm ---------- */
section.block { padding: 76px 0; }
section.block.alt { background: var(--cream); }
.section-head { max-width: 68ch; margin-bottom: 40px; }
.eyebrow {
  font-family: var(--font-mono); text-transform: uppercase; font-size: 0.72rem;
  letter-spacing: 0.08em; color: var(--blue-600); display: inline-flex; align-items: center;
  gap: 8px; margin-bottom: 10px;
}
.eyebrow::before { content: ""; width: 14px; height: 2px; background: var(--amber-500); display: inline-block; }
/* Lead heading: for sections where a small label + a full headline would
   just repeat the same idea twice (e.g. "FAQ" over "Common questions").
   The accent dash and the headline become one line instead of two. */
.section-head.lead { margin-bottom: 32px; }
.lead-title {
  display: flex; align-items: center; gap: 14px; margin-bottom: 0;
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
}
.lead-dash { width: 22px; height: 3px; background: var(--amber-500); display: inline-block; flex: none; }
.lead-sub { margin: 10px 0 0; color: var(--slate-600); }
.prose p { max-width: 68ch; }

/* ---------- Cards (service pillars) ---------- */
.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card {
  border: 1px solid var(--border); border-left: 3px solid var(--amber-500);
  border-radius: var(--radius); padding: 28px; background: var(--white);
}
.card .eyebrow { color: var(--amber-600); }
.card h3 { margin-bottom: 6px; }
.card .card-sub { color: var(--navy-800); font-weight: 600; margin-bottom: 10px; }
.card a.card-link { font-weight: 700; font-size: 0.92rem; }
.card a.card-link::after { content: " \2192"; }
@media (max-width: 760px) { .card-grid { grid-template-columns: 1fr; } }

/* ---------- Approach blocks ---------- */
.approach-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 40px; }
.approach-item { border-top: 2px solid var(--navy-900); padding-top: 14px; }
@media (max-width: 760px) { .approach-grid { grid-template-columns: 1fr; } }

/* ---------- Sections list (service detail pages) ---------- */
.detail-section + .detail-section { border-top: 1px solid var(--border); margin-top: 48px; padding-top: 48px; }

/* ---------- Testimonials ---------- */
.quote-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
blockquote.tsi-quote {
  margin: 0; padding: 24px; background: var(--white); border-radius: var(--radius);
  border-left: 3px solid var(--blue-600); font-family: var(--font-display); font-size: 1.05rem;
  color: var(--navy-900);
}
blockquote.tsi-quote footer { margin-top: 10px; font-family: var(--font-body); font-size: 0.85rem; color: var(--slate-400); font-style: normal; }
@media (max-width: 760px) { .quote-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--border); padding: 20px 0; }
.faq-item h3 { margin-bottom: 8px; font-size: 1.05rem; }
.faq-item p { margin-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy-900); color: var(--white); padding: 56px 0; text-align: center; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: var(--slate-200); max-width: 56ch; margin: 0 auto 24px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; background: var(--amber-500);
  color: var(--navy-900); font-weight: 700; padding: 13px 26px; border-radius: var(--radius);
  font-size: 0.95rem;
}
.btn:hover { background: #f0a233; color: var(--navy-900); }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.contact-card {
  border: 1px solid var(--border); border-radius: var(--radius); padding: 28px;
}
.contact-card h3 { font-family: var(--font-mono); text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.06em; }
.contact-card a, .contact-card p { font-size: 1.05rem; color: var(--navy-900); font-weight: 600; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--paper); color: var(--slate-600); padding: 56px 0 28px; border-top: 1px solid var(--border); }
.footer-logo { height: 28px; width: auto; margin-bottom: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.footer-grid h4 { color: var(--navy-900); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; font-family: var(--font-mono); margin-bottom: 14px; }
.site-footer a { color: var(--slate-600); }
.site-footer a:hover { color: var(--amber-600); }
.footer-nav { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 20px; font-size: 0.85rem;
  color: var(--slate-400); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 0.82rem; color: var(--slate-400); padding: 14px 0 0; }
.breadcrumb a { color: var(--slate-400); }
.breadcrumb a:hover { color: var(--blue-600); }
