/* Riverton Industrial Works — site stylesheet
   No framework, no build step. Single stylesheet, CSS custom properties,
   mobile-first. See README.md "Fonts" for why this uses a system-font
   stack instead of self-hosted webfonts like the sibling sites. */

:root {
  --navy: #0B1D2E;
  --navy-2: #122A42;
  --charcoal: #22262B;
  --steel: #5B6670;
  --steel-light: #8C97A1;
  --paper: #F5F6F7;
  --paper-2: #ECEEF0;
  --line: #DCE0E3;
  --orange: #D9662B;
  --orange-dark: #B8501E;
  --gold: #C9A227;
  --white: #FFFFFF;
  --gutter: clamp(20px, 4vw, 64px);
  --maxw: 1240px;
  --font-head: "Oswald", "Arial Narrow", "Helvetica Neue Condensed", Impact, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, Helvetica, Arial, sans-serif;
  --radius: 4px;
  --shadow: 0 10px 30px rgba(11,29,46,0.12);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; }
button { font-family: inherit; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.08;
  color: var(--navy);
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); letter-spacing: 0.005em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.15rem; letter-spacing: 0.02em; }
p { margin: 0 0 1em; }
.lede { font-size: 1.1rem; color: var(--steel); max-width: 56ch; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-dark);
  margin-bottom: 0.9rem;
}
.eyebrow--light { color: #F3B58A; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section--tight { padding: clamp(40px, 5vw, 64px) 0; }
.section--alt { background: var(--paper); }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy .lede { color: #C7D0D9; }
.section--border-t { border-top: 1px solid var(--line); }
.section--border-b { border-bottom: 1px solid var(--line); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .1s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--orange); color: var(--white); }
.btn--primary:hover { background: var(--orange-dark); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.55); }
.btn--ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.btn--sm { padding: 10px 18px; font-size: 0.85rem; }
.btn--block { width: 100%; justify-content: center; }

/* Header / nav */
.masthead {
  position: sticky; top: 0; z-index: 40;
  background: var(--navy);
  border-bottom: 3px solid var(--orange);
}
.masthead__bar {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  height: 78px; gap: 24px;
}
.masthead__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.masthead__brand svg { height: 40px; width: auto; display: block; }
.masthead__nav { display: none; }
.masthead__nav ul { list-style: none; display: flex; align-items: center; gap: 30px; }
.masthead__nav a {
  color: #D8DEE4; text-decoration: none; font-weight: 600; font-size: 0.92rem;
  letter-spacing: 0.01em; padding: 10px 0; position: relative; white-space: nowrap;
}
.masthead__nav a:hover, .masthead__nav a[aria-current="page"] { color: var(--white); }
.masthead__nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--orange);
}
.masthead__cta { display: none; }
.masthead__toggle {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; border: 1px solid rgba(255,255,255,0.35); color: var(--white);
  border-radius: var(--radius); padding: 9px 14px; font-weight: 600; font-size: 0.85rem;
}
.masthead__panel { display: none; background: var(--navy-2); border-top: 1px solid rgba(255,255,255,0.12); }
.masthead__panel.is-open { display: block; }
.masthead__panel ul { list-style: none; padding: 10px var(--gutter) 6px; }
.masthead__panel li a {
  display: block; padding: 13px 0; color: #D8DEE4; text-decoration: none; font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.masthead__panel li a[aria-current="page"] { color: var(--orange); }
.masthead__panel .btn { margin: 16px 0 14px; }

@media (min-width: 900px) {
  .masthead__nav { display: block; }
  .masthead__cta { display: inline-flex; }
  .masthead__toggle { display: none; }
  .masthead__panel { display: none !important; }
}

/* Hero */
.hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: var(--white); position: relative; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; padding: clamp(52px, 8vw, 96px) 0; }
.hero h1 { color: var(--white); margin-bottom: 0.45em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero__figure { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3; }
.hero__figure img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.05fr 0.95fr; gap: 56px; }
}

/* Page header (non-home) */
.pagehead { background: var(--navy); color: var(--white); padding: clamp(44px, 7vw, 72px) 0; }
.pagehead h1 { color: var(--white); margin-bottom: 0.4em; }
.pagehead .lede { color: #C7D0D9; max-width: 62ch; }
.breadcrumb { font-size: 0.82rem; color: #9FAAB4; margin-bottom: 14px; }
.breadcrumb a { color: #C7D0D9; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* Cards / grids */
.grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; gap: 10px;
}
.card__icon {
  width: 46px; height: 46px; border-radius: var(--radius);
  background: var(--navy); color: var(--white);
  display: flex; align-items: center; justify-content: center; margin-bottom: 6px;
}
.card__icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 0.3em; }
.card p { color: var(--steel); font-size: 0.96rem; margin-bottom: 0.4em; }
.card__link { font-weight: 700; font-size: 0.88rem; color: var(--orange-dark); text-decoration: none; margin-top: auto; }
.card__link:hover { text-decoration: underline; }

.card--dark { background: var(--navy-2); border-color: rgba(255,255,255,0.08); }
.card--dark .card__icon { background: var(--orange); }
.card--dark h3 { color: var(--white); }
.card--dark p { color: #B9C3CC; }

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

/* Tag list (industries, sectors) */
.taglist { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.taglist li {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 18px; font-size: 0.88rem; font-weight: 600; color: var(--navy);
}

/* Stat strip */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats > div { background: var(--white); padding: 24px; }
.stats b { display: block; font-family: var(--font-head); font-size: 1.6rem; color: var(--orange-dark); }
.stats span { font-size: 0.85rem; color: var(--steel); }

/* Process steps */
.steps { list-style: none; display: grid; gap: 20px; grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(5, 1fr); } }
.steps li { position: relative; padding-top: 52px; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy); color: var(--white);
  font-family: var(--font-head); font-weight: 700; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
}
.steps h3 { font-size: 1rem; margin-bottom: 0.4em; }
.steps p { color: var(--steel); font-size: 0.92rem; }

/* Matrix / capability table (optional reuse) */
.tablewrap { overflow-x: auto; }
table.matrix { border-collapse: collapse; width: 100%; min-width: 560px; }
table.matrix th, table.matrix td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; font-size: 0.9rem; }
table.matrix thead th { background: var(--paper-2); }

/* CTA band */
.cta-band { background: var(--navy); color: var(--white); text-align: center; }
.cta-band h2 { color: var(--white); }
.cta-band .lede { color: #C7D0D9; margin: 0 auto 26px; }

/* Nationwide map-ish panel */
.coverage { background: var(--navy-2); border-radius: var(--radius); padding: clamp(28px, 4vw, 48px); color: var(--white); }
.coverage h2 { color: var(--white); }
.coverage .lede { color: #C7D0D9; }
.coverage__badge { display: inline-flex; align-items: center; gap: 10px; background: rgba(217,102,43,0.18); color: #F3B58A; border-radius: 999px; padding: 8px 16px; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.04em; margin-bottom: 18px; }

/* Forms */
.form { display: grid; gap: 18px; max-width: 640px; }
.form-row { display: grid; gap: 6px; }
.form-row--split { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-row--split { grid-template-columns: 1fr 1fr; } }
label { font-weight: 600; font-size: 0.9rem; color: var(--navy); }
input, select, textarea {
  font: inherit; font-size: 0.96rem; padding: 12px 14px;
  border: 1px solid #C7CDD2; border-radius: var(--radius); background: var(--white); color: var(--charcoal);
  width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(217,102,43,0.35); outline-offset: 1px; border-color: var(--orange); }
textarea { resize: vertical; min-height: 120px; }
.form__status { font-size: 0.9rem; color: var(--steel); min-height: 1.4em; }
.form__status[data-state="ok"] { color: #2E7D3E; font-weight: 600; }
.form__note { font-size: 0.85rem; color: var(--steel); }

/* Footer */
.colophon { background: var(--charcoal); color: #C7CDD2; }
.colophon__grid { display: grid; gap: 32px; grid-template-columns: 1fr; padding: clamp(40px, 6vw, 64px) 0 28px; }
@media (min-width: 800px) { .colophon__grid { grid-template-columns: 1.2fr 0.9fr 0.9fr 0.9fr; } }
.colophon h2 { font-size: 0.82rem; letter-spacing: 0.1em; color: #8C97A1; margin-bottom: 1em; }
.colophon p { margin: 0 0 0.6em; font-size: 0.92rem; }
.colophon a { text-decoration: none; color: #DCE0E3; }
.colophon a:hover { text-decoration: underline; }
.colophon__brand svg { height: 34px; width: auto; margin-bottom: 14px; }
.colophon__base {
  border-top: 1px solid rgba(255,255,255,0.1); padding: 18px 0; font-size: 0.8rem; color: #8C97A1;
  display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between;
}
.colophon__base a { color: #8C97A1; }

/* Utility */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link {
  position: absolute; left: 8px; top: -48px; background: var(--white); color: var(--navy);
  padding: 10px 16px; border-radius: var(--radius); z-index: 100; transition: top .15s ease; font-weight: 700;
}
.skip-link:focus { top: 8px; }
.mt-0 { margin-top: 0; }
.list-check { list-style: none; display: grid; gap: 12px; }
.list-check li { display: flex; gap: 10px; align-items: flex-start; color: var(--charcoal); }
.list-check svg { flex-shrink: 0; width: 20px; height: 20px; color: var(--orange-dark); margin-top: 2px; }
