/* Power Tagging — site styles
   Colours are taken from the shield logo: charcoal, safety yellow and white. */

:root {
  --ink: #14171c;
  --charcoal: #101010;
  --charcoal-2: #1b1d21;
  --text: #3a404a;
  --muted: #5a6270;
  --line: #dfe1e4;
  --paper: #ffffff;
  --paper-alt: #f4f4f1;
  --yellow: #f5b41c;
  --yellow-dark: #d99a00;
  --focus: #1a5fb4;
  --radius: 10px;
  --max: 1160px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
}

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

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.25rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-color: var(--yellow-dark);
}

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

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 700;
}

.skip-link:focus {
  top: 1rem;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.7rem 1.3rem;
  border: 2px solid transparent;
  border-radius: 6px;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--yellow);
  color: var(--ink);
}

.btn-primary:hover {
  background: #ffc53d;
}

.btn-outline {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}

.btn-outline:hover {
  background: var(--ink);
  color: #fff;
}

.btn-light {
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}

.btn-light:hover {
  background: #fff;
  color: var(--ink);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ---------- Header ---------- */

.site-header {
  background: var(--charcoal);
  color: #fff;
  border-bottom: 3px solid var(--yellow);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  text-decoration: none;
  margin-right: auto;
}

.brand img {
  width: 48px;
  height: 47px;
}

.brand-name {
  display: block;
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.1;
}

.brand-tag {
  display: block;
  font-size: 0.78rem;
  color: #c9ccd1;
  letter-spacing: 0.02em;
}

.site-nav ul {
  display: flex;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 0.5rem 0.75rem;
  color: #e9eaec;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border-radius: 4px;
}

.site-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.site-nav a[aria-current="page"] {
  color: var(--yellow);
}

.header-call {
  white-space: nowrap;
}

/* ---------- Hero ---------- */

.hero {
  background: var(--paper-alt);
  border-bottom: 1px solid var(--line);
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.9rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 3px;
  margin-right: 0.6rem;
  vertical-align: middle;
  background: var(--yellow);
}

.lead {
  font-size: clamp(1.08rem, 1.6vw, 1.2rem);
  color: var(--text);
  max-width: 40em;
}

.hero .btn-row {
  margin: 1.6rem 0 1.4rem;
}

.fact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-weight: 600;
  color: var(--ink);
  font-size: 0.97rem;
}

.fact-list li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.fact-list li::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--yellow);
  flex: none;
}

/* Illustration of a test tag, built in HTML/CSS (decorative) */

.hero-photo {
  margin: 0;
}

.hero-photo img {
  aspect-ratio: 4 / 3;
  box-shadow: 8px 8px 0 var(--yellow);
}

/* ---------- Photos ---------- */

.photo {
  margin: 0;
}

.photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--line);
}

.photo figcaption {
  margin-top: 0.6rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 2.2rem 0 1.5rem;
}

.stack {
  display: grid;
  gap: 1.25rem;
}

/* ---------- Page header (inner pages) ---------- */

.page-hero {
  background: var(--paper-alt);
  border-bottom: 1px solid var(--line);
  padding: clamp(2rem, 5vw, 3.5rem) 0;
}

.page-hero .lead {
  margin-bottom: 0;
}

.page-hero .btn-row {
  margin-top: 1.5rem;
}

.breadcrumb {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.4rem;
}

.breadcrumb a {
  color: var(--muted);
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.section-alt {
  background: var(--paper-alt);
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 46em;
  margin-bottom: 2.2rem;
}

.section-head p {
  color: var(--muted);
  font-size: 1.08rem;
}

.prose {
  max-width: 46em;
}

.prose h2 {
  margin-top: 2.2rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.grid {
  display: grid;
  gap: 1.25rem;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.card h3 {
  margin-bottom: 0.45rem;
}

.card p:last-child {
  margin-bottom: 0;
}

.card-accent {
  border-top: 4px solid var(--yellow);
}

.section-alt .card {
  background: var(--paper);
}

.check-list {
  margin: 0 0 1.2rem;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: 0.6rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.38em;
  width: 0.5rem;
  height: 0.95rem;
  border: solid var(--yellow-dark);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.check-list.two-col {
  columns: 2;
  column-gap: 2rem;
}

.check-list.two-col li {
  break-inside: avoid;
}

.industry-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.industry-list li {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--yellow);
  border-radius: 6px;
  padding: 0.85rem 1rem;
}

.industry-list strong {
  display: block;
  color: var(--ink);
}

.industry-list span {
  font-size: 0.93rem;
  color: var(--muted);
}

/* Numbered steps */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  border-top: 3px solid var(--ink);
  padding-top: 1rem;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 0.4rem;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--yellow-dark);
}

.steps h3 {
  margin-bottom: 0.35rem;
}

.steps p {
  margin: 0;
}

/* Note / info box */

.note {
  border-left: 4px solid var(--yellow);
  background: var(--paper-alt);
  padding: 1rem 1.25rem;
  border-radius: 0 6px 6px 0;
  font-size: 0.97rem;
}

.section-alt .note {
  background: var(--paper);
}

/* ---------- FAQ ---------- */

.faq {
  max-width: 50em;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  position: relative;
  padding: 1.1rem 2.5rem 1.1rem 0;
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "–";
}

.faq h2.faq-q,
.faq h3.faq-q {
  display: inline;
  font-size: inherit;
  margin: 0;
  letter-spacing: 0;
}

.faq .answer {
  padding: 0 0 1.1rem;
}

.faq .answer p:last-child,
.faq .answer ul:last-child {
  margin-bottom: 0;
}

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--charcoal);
  color: #d9dbdf;
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}

.cta-band .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cta-band h2 {
  color: #fff;
  margin-bottom: 0.35rem;
}

.cta-band p {
  margin: 0;
  max-width: 38em;
}

/* ---------- Contact & form ---------- */

.contact-list {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.contact-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.contact-list strong {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.contact-list a,
.contact-list span {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--ink);
  word-break: break-word;
}

.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--yellow);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 2rem);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field-full {
  grid-column: 1 / -1;
}

.field label {
  font-weight: 700;
  color: var(--ink);
  font-size: 0.97rem;
}

.field .optional {
  font-weight: 400;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.65rem 0.8rem;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid #9aa0a8;
  border-radius: 6px;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 3px solid var(--focus);
  outline-offset: 0;
  border-color: var(--focus);
}

.field input:user-invalid,
.field select:user-invalid {
  border-color: #b3261e;
}

.form-hidden {
  display: none;
}

.form-actions {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.form-small {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

.form-status {
  margin-top: 1rem;
}

.form-status:empty {
  display: none;
}

.alert {
  padding: 1rem 1.2rem;
  border-radius: 6px;
  border: 1px solid;
}

.alert p:last-child {
  margin-bottom: 0;
}

.alert-success {
  background: #edf7ee;
  border-color: #2e7d32;
  color: #1b4d1e;
}

.alert-error {
  background: #fdeceb;
  border-color: #b3261e;
  color: #7a1912;
}

.alert strong {
  display: block;
  margin-bottom: 0.25rem;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--charcoal);
  color: #c9ccd1;
  padding: 3rem 0 2rem;
  font-size: 0.97rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}

.site-footer h2 {
  color: #fff;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.8rem;
}

.site-footer a {
  color: #fff;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li {
  margin-bottom: 0.4rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.8rem;
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
}

.footer-brand img {
  width: 40px;
  height: 39px;
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
  color: #a5a9b0;
}

/* Mobile call / quote bar */

.mobile-bar {
  display: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .hero-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .grid-3,
  .photo-grid,
  .industry-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 0 1rem;
    padding-top: 0.6rem;
  }

  .site-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    margin: 0 -0.75rem;
    padding-bottom: 0.4rem;
  }

  .site-nav ul {
    width: max-content;
  }
}

@media (max-width: 640px) {
  body {
    padding-bottom: 64px;
  }

  .grid-2,
  .grid-3,
  .industry-list,
  .steps,
  .form-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .check-list.two-col {
    columns: 1;
  }

  .header-call {
    display: none;
  }

  .hero .btn-row .btn,
  .page-hero .btn-row .btn {
    flex: 1 1 100%;
  }

  .photo-grid {
    grid-template-columns: 1fr;
  }

  .mobile-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    border-top: 1px solid #000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
  }

  .mobile-bar a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 0.5rem;
    font-weight: 800;
    text-decoration: none;
  }

  .mobile-bar .mb-call {
    background: var(--charcoal);
    color: #fff;
  }

  .mobile-bar .mb-quote {
    background: var(--yellow);
    color: var(--ink);
  }
}

@media print {
  .site-nav,
  .mobile-bar,
  .cta-band,
  .header-call {
    display: none !important;
  }
}

.cta-band a:not(.btn) {
  color: #fff;
}

.inline-link {
  margin-top: 1.5rem;
}
