/* Redline Facility Solutions — design tokens & components
   Static site, no build step. Plain CSS, no preprocessor. */

:root {
  --ink: #17191D;        /* primary — deep charcoal / near black */
  --ink-2: #20252B;       /* secondary ink, slightly lighter */
  --steel: #343A40;       /* industrial gray */
  --steel-light: #6B7278;
  --red: #C62828;         /* accent */
  --red-dark: #9B1C1C;
  --red-bright: #E04545;
  --paper: #F5F6F8;       /* background muted */
  --paper-2: #ECEDF0;
  --line: #DEE1E4;
  --white: #FFFFFF;
  --text: #20252B;
  --text-muted: #5B6168;

  --font-head: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --gutter: clamp(20px, 4vw, 64px);
  --maxw: 1240px;
  --radius: 3px;
  --shadow: 0 1px 2px rgba(23,25,29,0.06), 0 8px 24px rgba(23,25,29,0.07);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); margin: 0 0 0.5em; line-height: 1.15; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.55rem, 2.6vw, 2.15rem); font-weight: 800; letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; color: var(--text-muted); }
.lede { font-size: 1.1rem; color: var(--text-muted); max-width: 62ch; }
ul, ol { margin: 0; padding: 0; }
li { list-style: none; }

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

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--white);
  padding: 10px 16px; z-index: 200;
}
.skip-link:focus { left: 12px; top: 12px; }

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

/* -------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 0.95rem; text-decoration: none; cursor: pointer;
  padding: 13px 26px; border-radius: var(--radius); border: 1.5px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn--primary { background: var(--red); color: var(--white); }
.btn--primary:hover { background: var(--red-dark); }
.btn--outline { border-color: rgba(255,255,255,0.4); color: var(--white); }
.btn--outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn--ink-outline { border-color: var(--line); color: var(--ink); }
.btn--ink-outline:hover { border-color: var(--steel); background: var(--paper); }
.btn--sm { padding: 9px 18px; font-size: 0.85rem; }
.btn--block { width: 100%; }

/* -------------------------------------------------------------- masthead */
.masthead { position: sticky; top: 0; z-index: 100; background: var(--white); border-bottom: 1px solid var(--line); }
.masthead__bar { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: 28px; height: 76px; }
.masthead__brand { display: flex; align-items: center; flex-shrink: 0; }
.masthead__brand svg { height: 32px; width: auto; }
.masthead__nav { flex: 1; }
.masthead__nav ul { display: flex; gap: 26px; }
.masthead__nav a { font-weight: 600; font-size: 0.95rem; text-decoration: none; color: var(--steel); padding: 6px 0; border-bottom: 2px solid transparent; }
.masthead__nav a:hover, .masthead__nav a[aria-current="page"] { color: var(--ink); border-color: var(--red); }
.masthead__cta { flex-shrink: 0; }
.masthead__toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 9px 14px; font-weight: 700; font-size: 0.85rem; cursor: pointer; }
.masthead__panel { display: none; border-top: 1px solid var(--line); padding: 18px var(--gutter) 22px; }
.masthead__panel ul { display: flex; flex-direction: column; gap: 2px; margin-bottom: 16px; }
.masthead__panel a { display: block; padding: 11px 4px; font-weight: 600; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--paper-2); }
.masthead.is-open .masthead__panel { display: block; }

@media (max-width: 900px) {
  .masthead__nav, .masthead__cta { display: none; }
  .masthead__toggle { display: inline-block; margin-left: auto; }
}

/* ------------------------------------------------------------------ hero */
.hero { background: var(--ink); color: var(--white); padding: clamp(50px, 8vw, 96px) 0 clamp(44px, 7vw, 76px); position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 6px; background: linear-gradient(180deg, var(--red), var(--red-dark)); }
.hero__grid { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero__eyebrow { color: #F09B9B; font-weight: 700; letter-spacing: 0.08em; font-size: 0.82rem; text-transform: uppercase; margin-bottom: 18px; }
.hero h1 { color: var(--white); }
.hero .lede { color: #C7CBD0; margin: 18px 0 30px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__figure { border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255,255,255,0.12); }
.hero__figure img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 28px; }
}

/* --------------------------------------------------------------- pagehead */
.pagehead { background: var(--ink); color: var(--white); padding: 52px 0 46px; }
.pagehead h1 { color: var(--white); margin-bottom: 14px; }
.pagehead .lede { color: #C7CBD0; margin: 0; }
.breadcrumb { font-size: 0.82rem; color: #9FA6AD; margin-bottom: 14px; }
.breadcrumb a { text-decoration: none; color: #C7CBD0; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- section */
.section { padding: clamp(46px, 7vw, 84px) 0; }
.section--alt { background: var(--paper); }
.section--ink { background: var(--ink); color: var(--white); }
.section--ink h2, .section--ink h3 { color: var(--white); }
.section--ink .lede, .section--ink p { color: #C7CBD0; }
.section__head { max-width: 680px; margin: 0 0 40px; }
.eyebrow { color: var(--red); font-weight: 700; letter-spacing: 0.08em; font-size: 0.8rem; text-transform: uppercase; margin-bottom: 10px; display: block; }

/* ------------------------------------------------------------------- grid */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@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); } }

/* ------------------------------------------------------------------- card */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card__icon { width: 44px; height: 44px; border-radius: var(--radius); background: #FCE8E8; color: var(--red); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.card__icon svg { width: 22px; height: 22px; }
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.card__link { display: inline-block; margin-top: 6px; font-weight: 700; font-size: 0.9rem; color: var(--red); text-decoration: none; }
.card__link:hover { text-decoration: underline; }
.card--dark { background: var(--ink-2); border-color: #2C333B; color: var(--white); }
.card--dark h3 { color: var(--white); }
.card--dark p { color: #C7CBD0; }
.card--dark .card__icon { background: rgba(198,40,40,0.18); color: #F3A5A5; }

/* ----------------------------------------------------------------- split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split__figure img { width: 100%; border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- taglist */
.taglist { display: flex; flex-wrap: wrap; gap: 10px; }
.taglist a, .taglist span { display: inline-block; padding: 9px 16px; border-radius: 999px; background: var(--paper-2); color: var(--ink); font-weight: 600; font-size: 0.88rem; text-decoration: none; }
.taglist a:hover { background: #E7E2E2; color: var(--red-dark); }

/* ------------------------------------------------------------------ steps */
.steps { counter-reset: step; display: grid; gap: 22px; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding: 6px 0; }
.step__num { counter-increment: step; width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.05rem; }
.step__num::before { content: counter(step); }
.step h3 { margin-bottom: 6px; }

/* ----------------------------------------------------------------- stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.stat { text-align: center; }
.stat strong { display: block; font-size: 2rem; font-weight: 800; color: var(--ink); }
.stat span { font-size: 0.85rem; color: var(--text-muted); }

/* ------------------------------------------------------------- cta-band */
.cta-band { background: linear-gradient(135deg, var(--ink) 0%, #26292F 100%); color: var(--white); padding: clamp(46px, 7vw, 72px) 0; text-align: center; position: relative; }
.cta-band::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--red); }
.cta-band h2 { color: var(--white); }
.cta-band .lede { color: #C7CBD0; margin: 14px auto 28px; }
.cta-band__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.cta-band__email { margin-top: 18px; font-size: 0.95rem; color: #C7CBD0; }
.cta-band__email a { color: var(--white); font-weight: 700; text-decoration: underline; }

/* ---------------------------------------------------------------- coverage */
.coverage { background: var(--ink-2); border-radius: var(--radius); padding: clamp(28px, 4vw, 48px); color: var(--white); }
.coverage h2 { color: var(--white); }
.coverage .lede { color: #C7CBD0; }
.coverage__badge { display: inline-flex; align-items: center; gap: 10px; background: rgba(198,40,40,0.18); color: #F3A5A5; border-radius: 999px; padding: 8px 16px; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.04em; margin-bottom: 18px; }
.coverage__badge svg { width: 16px; height: 16px; }

/* ----------------------------------------------------------- trade group */
.tradegroup { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: var(--white); }
.tradegroup h3 { color: var(--red-dark); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 14px; }
.tradegroup ul { display: grid; gap: 10px; }
.tradegroup li { display: flex; gap: 10px; align-items: flex-start; color: var(--text); font-weight: 600; font-size: 0.95rem; }
.tradegroup li svg { width: 17px; height: 17px; color: var(--red); flex-shrink: 0; margin-top: 2px; }

/* -------------------------------------------------------------- list-check */
.list-check { display: grid; gap: 10px; margin: 18px 0; }
.list-check li { display: flex; gap: 10px; align-items: flex-start; }
.list-check svg { width: 18px; height: 18px; color: var(--red); flex-shrink: 0; margin-top: 2px; }

/* -------------------------------------------------------------------- form */
.form { display: grid; gap: 18px; max-width: 760px; }
.form-row { display: grid; gap: 18px; }
.form-row--split { grid-template-columns: 1fr 1fr; }
@media (max-width: 700px) { .form-row--split { grid-template-columns: 1fr; } }
.field { display: grid; gap: 7px; }
.field label { font-weight: 700; font-size: 0.9rem; color: var(--ink); }
.field .hint { font-weight: 400; color: var(--text-muted); font-size: 0.82rem; }
.field input, .field select, .field textarea {
  font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); color: var(--text); width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--red); }
.field textarea { resize: vertical; min-height: 120px; }
.form__status { font-size: 0.9rem; color: var(--text-muted); min-height: 1.4em; }
.form__status[data-state="error"] { color: var(--red-dark); }
.form__note { font-size: 0.85rem; color: var(--text-muted); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }

/* ------------------------------------------------------------- jobseeker */
.jobseeker { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px clamp(22px, 4vw, 40px); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.jobseeker h3 { margin-bottom: 6px; }
.jobseeker p { margin: 0; max-width: 54ch; }

/* -------------------------------------------------------------- tablewrap */
.tablewrap { overflow-x: auto; }
table.matrix { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
table.matrix th, table.matrix td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
table.matrix th { color: var(--steel-light); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }

/* -------------------------------------------------------------- colophon */
.colophon { background: var(--ink); color: #AEB4BB; padding: 56px 0 28px; }
.colophon__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
.colophon__brand svg { height: 30px; width: auto; margin-bottom: 14px; }
.colophon p { color: #9BA2AA; }
.colophon h2 { color: #E7E9EB; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; }
.colophon a { color: #AEB4BB; text-decoration: none; display: block; margin-bottom: 9px; }
.colophon a:hover { color: var(--white); }
.colophon__base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 22px; border-top: 1px solid #2C333B; font-size: 0.82rem; }
@media (max-width: 900px) { .colophon__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .colophon__grid { grid-template-columns: 1fr; } }
