/* ============================================================
   Vital Safety — first rendition
   Palette pulled from the original site's brand CSS.
   ============================================================ */

:root {
  --red:        #ce4342;
  --red-dark:   #771b1b;
  --red-deep:   #5c1414;
  --red-light:  #e25756;
  --ink:        #141414;
  --slate:      #3c424f;
  --gray:       #5b6470;
  --gray-soft:  #889099;
  --line:       #e4e7ec;
  --bg:         #ffffff;
  --bg-alt:     #f5f7fa;
  --bg-dark:    #16181d;

  --maxw: 1200px;
  --radius: 6px;
  --shadow-sm: 0 2px 10px rgba(20,20,20,.06);
  --shadow:    0 16px 44px rgba(20,20,20,.13);
  --ease: cubic-bezier(.22,.61,.36,1);

  --font-body: 'Barlow', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-head: 'Barlow Condensed', var(--font-body);
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--slate);
  background: var(--bg);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

/* ---------- type ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: .005em;
}
h1 { font-size: clamp(2.6rem, 5.4vw, 4.6rem); text-transform: uppercase; }
h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); text-transform: uppercase; }
h3 { font-size: 1.5rem; }
p  { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(64px, 8vw, 116px) 0; }
.section--alt  { background: var(--bg-alt); }
.section--dark { background: var(--bg-dark); color: #c4c9d2; }
.section--dark h2, .section--dark h3 { color: #fff; }
.center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--gray); }

/* ---------- eyebrow + section head ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head);
  font-weight: 600; font-size: .95rem;
  text-transform: uppercase; letter-spacing: .18em;
  color: var(--red);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 30px; height: 3px; background: var(--red); display: inline-block; }
.section--dark .eyebrow { color: var(--red-light); }
.shead { max-width: 720px; margin-bottom: 52px; }
.shead.center { margin-left: auto; margin-right: auto; }
.shead.center .eyebrow::before { display: none; }
.shead p { margin-top: 14px; color: var(--gray); font-size: 1.1rem; }
.section--dark .shead p { color: #aeb4bf; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em; font-size: 1rem;
  padding: 15px 30px; border: 2px solid transparent; border-radius: var(--radius);
  cursor: pointer; transition: transform .2s var(--ease), background .2s, color .2s, box-shadow .2s;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 10px 24px rgba(206,67,66,.32); }
.btn--primary:hover { background: var(--red-dark); transform: translateY(-3px); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn--ghost:hover { background: #fff; color: var(--ink); transform: translateY(-3px); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--red); transform: translateY(-3px); }
.btn--lg { padding: 18px 38px; font-size: 1.08rem; }

/* ---------- top bar ---------- */
.topbar {
  background: var(--ink); color: #c9ced7;
  font-size: .9rem; letter-spacing: .02em;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 18px; min-height: 42px; }
.topbar a { display: inline-flex; align-items: center; gap: 7px; transition: color .2s; }
.topbar a:hover { color: #fff; }
.topbar svg { width: 15px; height: 15px; color: var(--red-light); }
.topbar__group { display: flex; gap: 22px; align-items: center; }
.topbar__tag { color: var(--gray-soft); text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-family: var(--font-head); }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: #fff; border-bottom: 1px solid var(--line);
  transition: box-shadow .25s;
}
.header.scrolled { box-shadow: var(--shadow-sm); }
.header .container { display: flex; align-items: center; justify-content: space-between; min-height: 78px; }
.brand img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: 34px; }
.nav a {
  font-family: var(--font-head); font-weight: 600;
  text-transform: uppercase; letter-spacing: .05em; font-size: 1.02rem;
  color: var(--slate); padding: 6px 0; position: relative; transition: color .2s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--red); transition: width .25s var(--ease);
}
.nav a:hover { color: var(--red); }
.nav a:hover::after { width: 100%; }
.header__cta { display: flex; align-items: center; gap: 16px; }
.burger {
  display: none; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; flex-direction: column; gap: 6px; align-items: center; justify-content: center;
}
.burger span { width: 26px; height: 3px; background: var(--ink); border-radius: 2px; transition: .25s; }
.burger.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative; color: #fff;
  background: linear-gradient(108deg, rgba(20,20,20,.92) 8%, rgba(92,20,20,.72) 58%, rgba(206,67,66,.40) 100%),
              url("../images/vital-safety-crew-cab-mtc-4x4-fully-stocked.jpeg") center/cover no-repeat;
}
.hero__inner { padding: clamp(80px, 12vw, 168px) 0 clamp(72px, 10vw, 140px); max-width: 820px; }
.hero .eyebrow { color: #fff; }
.hero .eyebrow::before { background: var(--red); }
.hero h1 { color: #fff; margin-bottom: 22px; }
.hero h1 span { color: var(--red-light); }
.hero p { font-size: 1.22rem; color: #e7e9ed; max-width: 640px; margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }
.hero__stats {
  display: flex; flex-wrap: wrap; gap: 14px 48px;
  margin-top: 54px; padding-top: 34px; border-top: 1px solid rgba(255,255,255,.16);
}
.hero__stat strong { font-family: var(--font-head); font-size: 2.5rem; color: #fff; display: block; line-height: 1; }
.hero__stat span { font-size: .92rem; text-transform: uppercase; letter-spacing: .12em; color: var(--gray-soft); }

/* ---------- generic card grid ---------- */
.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

/* value cards */
.vcard {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 38px 32px; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
  position: relative; overflow: hidden;
}
.vcard::before {
  content: ""; position: absolute; top: 0; left: 0; height: 4px; width: 100%;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.vcard:hover { transform: translateY(-7px); box-shadow: var(--shadow); border-color: transparent; }
.vcard:hover::before { transform: scaleX(1); }
.icon-badge {
  width: 60px; height: 60px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  display: flex; align-items: center; justify-content: center; margin-bottom: 22px;
}
.icon-badge svg { width: 30px; height: 30px; color: #fff; }
.vcard h3 { margin-bottom: 10px; }
.vcard p { color: var(--gray); font-size: 1rem; }

/* ---------- split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 76px); align-items: center; }
.split--flip .split__media { order: 2; }
.split__media { position: relative; }
.split__media img { width: 100%; height: 100%; max-height: 520px; object-fit: cover; border-radius: var(--radius); }
.split__media .tagchip {
  position: absolute; left: 24px; bottom: 24px;
  background: var(--red); color: #fff; font-family: var(--font-head); font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em; padding: 12px 20px; border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.split__body h2 { margin-bottom: 18px; }
.split__body p { color: var(--gray); }
.split--dark .split__body p { color: #aeb4bf; }
.checklist { margin-top: 20px; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; color: var(--slate); }
.split--dark .checklist li { color: #d4d8df; }
.checklist svg { width: 22px; height: 22px; color: var(--red); flex: none; margin-top: 3px; }

/* ---------- services ---------- */
.scard {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; transition: transform .25s var(--ease), box-shadow .25s;
  display: flex; flex-direction: column; gap: 14px;
}
.scard:hover { transform: translateY(-7px); box-shadow: var(--shadow); }
.scard__no { font-family: var(--font-head); font-weight: 700; font-size: 1rem; color: var(--red); letter-spacing: .1em; }
.scard h3 { font-size: 1.34rem; }
.scard p { color: var(--gray); font-size: .98rem; }

/* spec panel */
.specs { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; margin-top: 30px; }
.spec {
  background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--red);
  border-radius: var(--radius); padding: 30px 28px;
}
.spec h4 { font-size: 1.32rem; margin-bottom: 16px; }
.spec li { display: flex; gap: 10px; align-items: flex-start; color: var(--gray); padding: 7px 0; font-size: .98rem; }
.spec li + li { border-top: 1px dashed var(--line); }
.spec svg { width: 18px; height: 18px; color: var(--red); flex: none; margin-top: 5px; }

/* ---------- purpose ---------- */
.purpose-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
.pcard {
  background: #1c1f26; border: 1px solid #2a2e38; border-radius: var(--radius);
  padding: 36px 30px; transition: border-color .25s, transform .25s var(--ease);
}
.pcard:hover { border-color: var(--red); transform: translateY(-6px); }
.pcard__num { font-family: var(--font-head); font-weight: 700; font-size: 2.6rem; color: var(--red-light); line-height: 1; }
.pcard h3 { color: #fff; margin: 12px 0 12px; font-size: 1.4rem; }
.pcard p { color: #aeb4bf; font-size: 1rem; }

/* ---------- partners / logos ---------- */
.logo-row {
  display: grid; grid-template-columns: repeat(6,1fr); gap: 20px; align-items: center;
}
.logo-row .logo-cell {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  height: 120px; display: flex; align-items: center; justify-content: center; padding: 22px;
  transition: box-shadow .25s, transform .2s;
}
.logo-row .logo-cell:hover { box-shadow: var(--shadow-sm); transform: translateY(-4px); }
.logo-row img { max-height: 100%; width: auto; object-fit: contain; filter: grayscale(1); opacity: .72; transition: .25s; }
.logo-row .logo-cell:hover img { filter: none; opacity: 1; }

/* ---------- commitment / badges ---------- */
.badges { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 26px; }
.badge {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 22px; display: flex; align-items: center; gap: 14px; min-height: 86px;
}
.badge img { height: 52px; width: auto; object-fit: contain; }
.badge span { font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--slate); font-size: .95rem; line-height: 1.2; }

/* ---------- blog ---------- */
.bcard {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .25s var(--ease), box-shadow .25s;
}
.bcard:hover { transform: translateY(-7px); box-shadow: var(--shadow); }
.bcard__img { aspect-ratio: 16/10; overflow: hidden; }
.bcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.bcard:hover .bcard__img img { transform: scale(1.06); }
.bcard__body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.bcard__tag { font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; font-size: .82rem; color: var(--red); margin-bottom: 10px; }
.bcard h3 { font-size: 1.3rem; margin-bottom: 10px; }
.bcard p { color: var(--gray); font-size: .97rem; }
.bcard__more {
  margin-top: 16px; font-family: var(--font-head); font-weight: 600; text-transform: uppercase;
  letter-spacing: .06em; color: var(--red); display: inline-flex; gap: 8px; align-items: center;
}
.bcard__more svg { width: 16px; height: 16px; transition: transform .2s; }
.bcard:hover .bcard__more svg { transform: translateX(4px); }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4,1fr); grid-auto-rows: 200px; gap: 14px; }
.gallery a { overflow: hidden; border-radius: var(--radius); position: relative; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery a:hover img { transform: scale(1.08); }
.gallery .wide { grid-column: span 2; }
.gallery .tall { grid-row: span 2; }

/* ---------- testimonials ---------- */
.tcard {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 38px 34px; position: relative;
}
.tcard__quote { font-family: var(--font-head); font-size: 5rem; color: var(--red); line-height: .6; height: 34px; }
.tcard p { color: var(--slate); font-size: 1.05rem; font-style: italic; }
.tcard__who { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.tcard__who strong { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .05em; color: var(--ink); font-size: 1.05rem; }
.tcard__who span { display: block; color: var(--red); font-size: .9rem; text-transform: uppercase; letter-spacing: .1em; }
.stars { color: #f5a623; letter-spacing: 3px; margin-bottom: 14px; }

/* ---------- operations / contact ---------- */
.ops { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px,5vw,70px); align-items: center; }
.ops__map img { width: 100%; border-radius: var(--radius); border: 1px solid #2a2e38; }
.contact-cards { display: grid; gap: 18px; margin-top: 26px; }
.ccard {
  display: flex; gap: 18px; align-items: flex-start;
  background: #1c1f26; border: 1px solid #2a2e38; border-radius: var(--radius); padding: 22px 24px;
  transition: border-color .25s;
}
.ccard:hover { border-color: var(--red); }
.ccard__ico { width: 48px; height: 48px; border-radius: var(--radius); background: var(--red); display: flex; align-items: center; justify-content: center; flex: none; }
.ccard__ico svg { width: 22px; height: 22px; color: #fff; }
.ccard h4 { color: #fff; font-size: 1.15rem; margin-bottom: 3px; }
.ccard p, .ccard a { color: #aeb4bf; font-size: 1rem; }
.ccard a:hover { color: var(--red-light); }

/* ---------- cta band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--red-dark), var(--red));
  color: #fff; text-align: center;
}
.cta-band h2 { color: #fff; margin-bottom: 14px; }
.cta-band p { color: #ffe2e1; font-size: 1.2rem; margin-bottom: 28px; }

/* ---------- footer ---------- */
.footer { background: #0f1115; color: #9aa1ad; padding: 72px 0 0; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.footer img.flogo { height: 50px; margin-bottom: 18px; }
.footer p { font-size: .98rem; }
.footer h4 { color: #fff; font-size: 1.15rem; text-transform: uppercase; margin-bottom: 18px; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { transition: color .2s; font-size: .98rem; }
.footer ul a:hover { color: var(--red-light); }
.footer__contact li { display: flex; gap: 10px; margin-bottom: 12px; font-size: .98rem; }
.footer__contact svg { width: 18px; height: 18px; color: var(--red-light); flex: none; margin-top: 3px; }
.footer__bottom {
  margin-top: 56px; border-top: 1px solid #23262e; padding: 24px 0;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: .9rem;
}

/* ---------- forms ---------- */
.formwrap { max-width: 860px; margin: 0 auto; }
.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(28px, 4vw, 48px); box-shadow: var(--shadow-sm);
}
.form-step-label {
  font-family: var(--font-head); font-weight: 600; text-transform: uppercase;
  letter-spacing: .12em; color: var(--red); font-size: .95rem;
  margin: 34px 0 18px; padding-bottom: 10px; border-bottom: 2px solid var(--line);
}
.form-step-label:first-child { margin-top: 0; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 4px; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-family: var(--font-head); font-weight: 600; text-transform: uppercase;
  letter-spacing: .04em; font-size: .92rem; color: var(--slate);
}
.field label .req { color: var(--red); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; background: var(--bg-alt);
  border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, background .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--red); background: #fff;
}
.field textarea { resize: vertical; min-height: 120px; }
.field-hint { font-size: .85rem; color: var(--gray-soft); }
.checks { display: grid; grid-template-columns: repeat(auto-fit,minmax(160px,1fr)); gap: 10px; }
.check {
  display: flex; gap: 10px; align-items: center; background: var(--bg-alt);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 11px 14px; cursor: pointer;
  font-size: .96rem; transition: border-color .2s;
}
.check:hover { border-color: var(--red); }
.check input { width: 18px; height: 18px; accent-color: var(--red); }
.form-note { margin-top: 22px; font-size: .9rem; color: var(--gray-soft); }
.form-success {
  display: none; background: #ecf7ee; border: 1px solid #bfe2c4; color: #266b32;
  border-radius: var(--radius); padding: 18px 22px; margin-bottom: 22px; font-weight: 500;
}
.form-success.show { display: block; }

/* page banner */
.page-banner {
  background: linear-gradient(108deg, rgba(20,20,20,.93), rgba(119,27,27,.80)),
              url("../images/safety-officers-on-industrial-site-Large.jpeg") center/cover no-repeat;
  color: #fff; padding: clamp(70px,9vw,128px) 0 clamp(56px,7vw,96px);
}
.page-banner h1 { color: #fff; }
.page-banner p { color: #e7e9ed; font-size: 1.18rem; max-width: 600px; margin-top: 14px; }
.crumbs { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .1em; font-size: .9rem; color: var(--red-light); margin-bottom: 14px; }
.crumbs a:hover { color: #fff; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .1s; }
.reveal[data-d="2"] { transition-delay: .2s; }
.reveal[data-d="3"] { transition-delay: .3s; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .grid--4 { grid-template-columns: repeat(2,1fr); }
  .logo-row { grid-template-columns: repeat(3,1fr); }
  .gallery { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 880px) {
  .nav {
    position: fixed; inset: 120px 0 auto 0; background: #fff; flex-direction: column;
    gap: 0; padding: 10px 0; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(-140%); transition: transform .3s var(--ease); align-items: stretch;
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 14px 24px; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .burger { display: flex; }
  .header__cta .btn { display: none; }
  .grid--3, .grid--4, .grid--2,
  .specs, .purpose-grid, .split, .ops { grid-template-columns: 1fr; }
  .split--flip .split__media { order: 0; }
  .field-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .topbar__group--meta { display: none; }
}
@media (max-width: 540px) {
  body { font-size: 16px; }
  .logo-row { grid-template-columns: repeat(2,1fr); }
  .gallery { grid-template-columns: 1fr; }
  .gallery .wide { grid-column: span 1; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__actions .btn, .cta-band .btn { width: 100%; }
}
