/* =========================================================
   SAFETY FIRST SOLUTIONS — Design System
   ========================================================= */

:root {
  /* Color — tuned to the client logo (safety yellow, black, chrome, badge blue) */
  --ink: #14141A;
  --ink-soft: #24242D;
  --paper: #F6F5F1;
  --paper-dim: #EBE9E2;
  --steel: #3E4653;
  --steel-light: #64758675;
  --steel-mist: #C7CDD3;
  --line: #D8D5CC;
  --signal: #F2B705;
  --signal-dark: #C99200;
  --accent-blue: #1B4F86;
  --accent-blue-bright: #4F8FDB;
  --caution: #F2B705;
  --danger: #A2331A;
  --white: #ffffff;

  /* Type */
  --font-display: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --max-width: 1320px;
  --gutter: clamp(28px, 6vw, 80px);
  --radius: 3px;
}

* { 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;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.55em 0;
  letter-spacing: -0.005em;
  color: var(--ink);
}

h1 { font-size: clamp(2.4rem, 4.4vw, 3.6rem); font-weight: 600; }
h2 { font-size: clamp(1.8rem, 2.8vw, 2.4rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 1.6vw, 1.4rem); font-weight: 600; }

p { margin: 0 0 1.15em 0; max-width: 62ch; }
a { color: inherit; }

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

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

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-blue);
  font-weight: 600;
  margin-bottom: 0.9em;
  display: inline-block;
}

.section {
  padding: clamp(88px, 11vw, 160px) 0;
}
.section--dark {
  background: var(--ink);
  color: var(--paper);
}
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--paper); }
.section--steel {
  background: var(--steel);
  color: var(--paper);
}
.section--steel h1, .section--steel h2, .section--steel h3 { color: var(--paper); }
.section--dim { background: var(--paper-dim); }

.lede {
  font-size: 1.3rem;
  line-height: 1.6;
  color: var(--steel);
  max-width: 58ch;
}
.section--dark .lede, .section--steel .lede { color: var(--steel-mist); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: -0.005em;
  padding: 16px 32px;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn--primary {
  background: var(--signal);
  color: var(--ink);
}
.btn--primary:hover { background: var(--signal-dark); }

.btn--ghost {
  background: transparent;
  border-color: currentColor;
  color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

.section--dark .btn--ghost, .section--steel .btn--ghost { color: var(--paper); }
.section--dark .btn--ghost:hover, .section--steel .btn--ghost:hover { background: var(--paper); color: var(--ink); }

.cta-row { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 2em; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 245, 241, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--ink);
}
.brand__mark {
  width: 72px; height: 72px;
  flex-shrink: 0;
  object-fit: contain;
}
.brand__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.32rem;
  letter-spacing: 0;
  line-height: 1.15;
}
.brand__name small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  color: var(--steel);
  margin-top: 3px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav__links {
  display: flex;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav__links a {
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.18s ease, color 0.18s ease;
}
.main-nav__links a:hover,
.main-nav__links a[aria-current="page"] {
  border-color: var(--signal);
  color: var(--ink);
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    inset: 68px 0 0 0;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px var(--gutter) 40px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    overflow-y: auto;
  }
  .main-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .main-nav__links {
    flex-direction: column;
    gap: 4px;
    width: 100%;
  }
  .main-nav__links a {
    display: block;
    padding: 14px 0;
    width: 100%;
    border-bottom: 1px solid var(--line);
  }
  .main-nav .btn { margin-top: 18px; width: 100%; justify-content: center; }
}

/* ---------- Hero (full-width, text-forward) ---------- */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  padding: clamp(90px, 12vw, 140px) 0 clamp(64px, 8vw, 100px);
}
.hero .container {
  max-width: 920px;
  text-align: left;
}
.hero__eyebrow {
  color: var(--signal);
  font-family: var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 1.1em;
}
.hero h1 { color: var(--white); }
.hero .lede { color: var(--steel-mist); margin-top: 1.3em; max-width: 58ch; }

/* Trust strip */
.trust-strip {
  border-top: 1px solid var(--ink-soft);
  margin-top: clamp(40px, 6vw, 64px);
  padding: 26px 0;
}
.trust-strip .container {
  max-width: var(--max-width);
  display: flex;
  flex-wrap: wrap;
  gap: 14px 34px;
  align-items: center;
  justify-content: space-between;
}
.trust-strip__item {
  font-family: var(--font-body);
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  color: var(--steel-mist);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.trust-strip__item .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--signal); flex-shrink: 0; }
.trust-strip__item.is-placeholder { color: var(--steel-light); font-style: italic; }
@media (max-width: 700px) {
  .trust-strip .container { justify-content: flex-start; }
}

/* ---------- Section break edge ---------- */
.edge-cut {
  height: 46px;
  width: 100%;
  display: block;
  margin-bottom: -1px;
}

/* ---------- Grid utilities ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(32px, 5vw, 72px); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(32px, 4vw, 48px); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(28px, 3.5vw, 40px); }
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(48px, 6vw, 76px);
}
.section-head--wide { max-width: 900px; }

/* ---------- Spec / Service list (not generic cards) ---------- */
.spec-list { border-top: 1px solid var(--line); }
.spec-item {
  display: grid;
  grid-template-columns: 90px 1fr 180px;
  gap: 24px;
  align-items: start;
  padding: 44px 0;
  border-bottom: 1px solid var(--line);
}
.spec-item__num {
  font-family: var(--font-body);
  font-size: 1.6rem;
  color: var(--steel-mist);
  font-weight: 600;
}
.spec-item h3 { margin-bottom: 0.35em; }
.spec-item p { margin: 0; color: var(--steel); }
.spec-item__action { justify-self: end; align-self: center; }
.spec-item__action a {
  text-decoration: none;
  font-weight: 600;
  font-family: var(--font-body);
  font-size: 1.02rem;
  color: var(--ink);
  border-bottom: 2px solid var(--signal);
  padding-bottom: 2px;
  white-space: nowrap;
}
.spec-item__action a:hover { color: var(--accent-blue); }
@media (max-width: 700px) {
  .spec-item { grid-template-columns: 50px 1fr; }
  .spec-item__action { grid-column: 2; justify-self: start; margin-top: 6px; }
}

/* ---------- Numbered cards (service teasers, process steps) ---------- */
.numbered-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.numbered-card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.numbered-card-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }
.numbered-card {
  background: var(--paper);
  border-top: 3px solid var(--line);
  padding: 34px 4px 0 0;
  display: flex;
  flex-direction: column;
}
.numbered-card__num {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--signal-dark);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}
.numbered-card h3 { font-size: 1.25rem; margin-bottom: 0.6em; }
.numbered-card p { color: var(--steel); font-size: 1rem; margin: 0 0 auto 0; }
.numbered-card a {
  margin-top: 24px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 2px solid var(--signal);
  align-self: flex-start;
  padding-bottom: 1px;
}
.numbered-card a:hover { color: var(--accent-blue); }

.section--dark .numbered-card,
.section--steel .numbered-card { border-color: var(--steel); }
.section--dark .numbered-card p,
.section--steel .numbered-card p { color: var(--steel-mist); }
.section--dark .numbered-card h3,
.section--steel .numbered-card h3 { color: var(--paper); }
.section--dark .numbered-card__num,
.section--steel .numbered-card__num { color: var(--signal); }
.section--dark .numbered-card a,
.section--steel .numbered-card a { color: var(--paper); }

@media (max-width: 900px) {
  .numbered-card-grid, .numbered-card-grid.cols-3, .numbered-card-grid.cols-5 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .numbered-card-grid, .numbered-card-grid.cols-3, .numbered-card-grid.cols-5 { grid-template-columns: 1fr; }
}

/* ---------- Audience / track split ---------- */
.track-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
@media (max-width: 800px) { .track-grid { grid-template-columns: 1fr; } }
.track-card {
  border: 1px solid var(--line);
  background: var(--white);
  padding: clamp(28px, 4vw, 40px);
}
.track-card ul { margin: 1.2em 0; padding-left: 20px; color: var(--steel); }
.track-card li { margin-bottom: 0.5em; }

/* ---------- Pillars ---------- */
.pillar {
  border-top: 2px solid var(--signal);
  padding-top: 18px;
}
.pillar h3 { margin-bottom: 0.5em; }
.pillar p { color: var(--steel); margin: 0; }
.section--dark .pillar p, .section--steel .pillar p { color: var(--steel-mist); }

/* ---------- Industry list ---------- */
.industry-item {
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.industry-item h3 { margin-bottom: 0.3em; }
.industry-item p { color: var(--steel); margin: 0; }

/* ---------- Cards (used sparingly, packages/testimonials) ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 32px;
}
.card--dark { background: var(--ink-soft); border-color: var(--steel); color: var(--paper); }
.card--dark h3 { color: var(--paper); }
.card--featured { border-color: var(--signal); border-width: 2px; }

.package-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .package-list { grid-template-columns: 1fr; } }
.package-list ul { padding-left: 20px; margin: 1.2em 0; color: var(--steel); }
.package-list li { margin-bottom: 0.5em; }

/* Clickable accordion cards (native details/summary) */
.accordion-card {
  cursor: pointer;
}
.accordion-card summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  list-style: none;
  cursor: pointer;
  padding: 0;
}
.accordion-card summary::-webkit-details-marker { display: none; }
.accordion-card summary h3 { margin-bottom: 0; }
.accordion-card__icon {
  font-family: var(--font-body);
  font-size: 1.6rem;
  line-height: 1;
  color: var(--signal);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.accordion-card[open] .accordion-card__icon { transform: rotate(45deg); }
.accordion-card__body { margin-top: 18px; }
.accordion-card p { margin-top: 0; }
.accordion-card--featured summary h3 { color: var(--signal); }

/* Plain menu-style dropdown (no card box, simple list row) */
.menu-drop {
  border-top: 1px solid var(--line);
  padding: 22px 0;
}
.menu-drop summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 1.05rem;
}
.menu-drop summary::-webkit-details-marker { display: none; }
.menu-drop__icon {
  font-size: 1.3rem;
  color: var(--signal-dark);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.menu-drop[open] .menu-drop__icon { transform: rotate(45deg); }
.menu-drop__body { margin-top: 16px; color: var(--steel); }
.menu-drop__body p:last-child { margin-bottom: 0; }

/* ---------- Placeholder blocks ---------- */
.placeholder {
  border: 1.5px dashed var(--steel-mist);
  background: var(--paper-dim);
  padding: 28px;
  color: var(--steel);
  font-size: 0.95rem;
}
.placeholder strong { color: var(--ink); display: block; margin-bottom: 4px; font-family: var(--font-body); font-size: 1.05rem; }

/* ---------- Case study ---------- */
.case-study {
  border: 1px solid var(--line);
  padding: clamp(24px, 4vw, 40px);
  margin-bottom: 24px;
}
.case-study__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 20px;
}
@media (max-width: 800px) { .case-study__grid { grid-template-columns: repeat(2, 1fr); } }
.case-study__grid h4 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--accent-blue);
  margin-bottom: 0.4em;
}
.case-study__grid p { color: var(--steel); font-size: 0.95rem; margin: 0; }

/* ---------- Credentials ---------- */
.credential-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 800px) { .credential-grid { grid-template-columns: repeat(2, 1fr); } }
.credential-slot {
  aspect-ratio: 1;
  border: 1.5px dashed var(--steel-mist);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
  font-size: 0.85rem;
  color: var(--steel);
}

/* ---------- Form ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }

label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  margin-bottom: 6px;
  color: var(--ink);
}
input, select, textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 14px;
  border: 1.5px solid var(--steel-mist);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  outline: 3px solid var(--caution);
  outline-offset: 1px;
  border-color: var(--ink);
}
textarea { resize: vertical; min-height: 130px; }
.field-error {
  color: var(--danger);
  font-size: 0.85rem;
  margin-top: 4px;
  min-height: 1em;
}
.form-status {
  margin-top: 20px;
  padding: 14px 16px;
  font-size: 0.95rem;
  display: none;
}
.form-status.is-visible { display: block; }
.form-status.success { background: #E7F0E4; color: #2C5530; border: 1px solid #2C5530; }

/* ---------- Contact info blocks ---------- */
.info-row {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.info-row__label {
  width: 130px;
  flex-shrink: 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--steel);
}
.section--dark .info-row, .section--steel .info-row { border-color: var(--steel); }
.section--dark .info-row__label, .section--steel .info-row__label { color: var(--steel-mist); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--steel-mist);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--steel);
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
.footer-grid h4 {
  font-family: var(--font-body);
  color: var(--paper);
  font-size: 1rem;
  letter-spacing: 0.02em;
  margin-bottom: 1em;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 0.6em; }
.footer-grid a { text-decoration: none; color: var(--steel-mist); font-size: 0.95rem; }
.footer-grid a:hover { color: var(--paper); }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand .brand__name { color: var(--paper); }
.footer-tagline { font-size: 0.95rem; max-width: 30ch; color: var(--steel-mist); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  font-size: 0.85rem;
}
.footer-bottom a { text-decoration: none; color: var(--steel-mist); margin-left: 18px; }
.footer-bottom a:hover { color: var(--paper); }
.footer-social { display: flex; gap: 14px; }
.footer-social a { color: var(--steel-mist); }

/* Visually hidden (skip link) */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  background: var(--signal);
  color: var(--white);
  padding: 12px 18px;
  z-index: 1000;
  font-family: var(--font-body);
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}

/* Page hero (non-home pages) */
.page-hero {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(80px, 10vw, 130px) 0 clamp(56px, 8vw, 90px);
}
.page-hero h1 { color: var(--white); }
.page-hero .lede { color: var(--steel-mist); margin-top: 1em; }
.breadcrumb {
  font-size: 0.85rem;
  color: var(--steel-mist);
  margin-bottom: 1.2em;
}
.breadcrumb a { color: var(--steel-mist); text-decoration: none; }
.breadcrumb a:hover { color: var(--paper); }
