/* ============================================================
   TRUSTGUARD SERVICES — DESIGN TOKENS
   Palette: brand red pulled from client mockups (#C42121),
   deep ink/steel darks (not flat black — a cold blue-black,
   like CCTV monitor glow), warm paper off-white, and a
   hi-vis accent lifted from the guards' own vests — a nod to
   the one colour that's actually on-site every day.
   ============================================================ */

:root {
  /* Colour */
  --red: #c42121;
  --red-dark: #8f1717;
  --red-bright: #e2342f;
  --ink: #0c0d0f;
  --steel: #14181d;
  --steel-2: #1c2127;
  --paper: #f5f3ee;
  --paper-2: #ebe8e0;
  --hivis: #d7ff3f;
  --line: #262b31;
  --line-soft: #e1ded4;
  --white: #ffffff;
  --muted: #8b9099;
  --muted-dark: #6b6459;

  /* Type */
  --font-display: "Anton", "Arial Narrow", sans-serif;
  --font-body: "Public Sans", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Courier New", monospace;

  /* Layout */
  --container: 1240px;
  --radius: 2px;
  --ease: cubic-bezier(0.65, 0, 0.35, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

input, select, textarea { font-family: inherit; font-size: 1rem; }

:focus-visible {
  outline: 3px solid var(--hivis);
  outline-offset: 2px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--red);
  display: inline-block;
}

.eyebrow--light { color: var(--hivis); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.05;
  font-weight: 400;
}

h1 { font-size: clamp(2.4rem, 5.2vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 3rem); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.6rem); }

p { color: var(--muted-dark); max-width: 62ch; }

.section {
  padding: 100px 0;
  position: relative;
}

@media (max-width: 720px) {
  .section { padding: 64px 0; }
}

.section--dark {
  background: var(--steel);
  color: var(--white);
}
.section--dark p { color: #b7bcc4; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--white); }

.section--paper2 { background: var(--paper-2); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 16px 30px;
  border-radius: 999px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease), color .35s var(--ease);
  white-space: nowrap;
}

.btn--primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 0 0 0 rgba(196,33,33,0.5);
}
.btn--primary:hover {
  background: var(--red-bright);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -8px rgba(196,33,33,0.65);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.section--dark .btn--ghost { color: var(--white); border-color: rgba(255,255,255,0.4); }
.btn--ghost:hover { background: var(--ink); color: var(--white); }
.section--dark .btn--ghost:hover { background: var(--white); color: var(--ink); }

.btn--hivis {
  background: var(--hivis);
  color: var(--ink);
}
.btn--hivis:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(215,255,63,0.5); }

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.14s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.23s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.32s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.41s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.5s; }

/* Placeholder image blocks (client will replace via /images folder) */
.ph-img {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1c2127, #0c0d0f);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4b525b;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}
.ph-img::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.035) 0 2px, transparent 2px 14px);
}
.ph-img span { position: relative; padding: 10px 16px; border: 1px dashed #444b54; border-radius: 4px; background: rgba(0,0,0,0.3); }
.ph-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
