/* ============================================================
   WILLIWAW — site styles
   Defense-supplier technical aesthetic: dark chrome, document
   body, monospaced technical data, square edges, ruled grids.
   Edit colors + fonts in :root. Everything else inherits.
   ============================================================ */

:root {
  /* ---- Palette ---- */
  --navy:       #12395F;   /* primary brand navy (from logo) */
  --navy-deep:  #0A1B2E;   /* header / hero / footer */
  --navy-panel: #10263D;   /* raised dark panels */
  --graphite:   #16202B;   /* dark neutral bands */
  --green:      #7CB342;   /* brand green accent (borders, rules, eyebrows) */
  --green-dim:  #689B33;
  --green-pale: #EDF5E3;
  --green-btn:    #4E7F1E; /* filled-button green — AA contrast with white text */
  --green-btn-dk: #3F6817; /* filled-button hover */

  --ink:        #14202C;   /* body text */
  --muted:      #55636F;   /* secondary text */
  --steel:      #93A7B8;   /* muted text on dark */
  --line:       #D6DEE5;   /* hairlines on light */
  --line-dark:  rgba(255,255,255,.13);
  --paper:      #FFFFFF;
  --paper-alt:  #F2F5F8;

  /* ---- Type ---- */
  --font-sans: "Helvetica Neue", Helvetica, Arial, system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --wrap: 1180px;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16.5px;
  line-height: 1.62;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--navy); }
strong { font-weight: 700; }

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; }
h1 {
  font-size: clamp(1.95rem, 4.2vw, 3rem);
  letter-spacing: -0.015em; font-weight: 700;
}
h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  letter-spacing: .01em; font-weight: 700;
  text-transform: uppercase;
}
h3 { font-size: 1.06rem; font-weight: 700; letter-spacing: .005em; }
h4 { font-size: .95rem; font-weight: 700; }
p  { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 26px; }
.mono { font-family: var(--font-mono); }

/* ---------- header / nav ---------- */
.site-header {
  background: var(--navy-deep);
  border-bottom: 1px solid var(--line-dark);
  position: sticky; top: 0; z-index: 60;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 68px; flex-wrap: wrap;
}
.brand { display: block; padding: 13px 0; }
.brand img { height: 27px; width: auto; }

.site-nav { display: flex; gap: 2px; flex-wrap: wrap; }
.site-nav a {
  color: #C4D2DE; text-decoration: none;
  font-family: var(--font-mono);
  font-size: .74rem; font-weight: 500;
  letter-spacing: .11em; text-transform: uppercase;
  padding: 9px 13px;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: #fff; background: rgba(255,255,255,.06); }
.site-nav a[aria-current="page"] {
  color: #fff; border-bottom-color: var(--green);
  background: rgba(124,179,66,.10);
}

/* thin registration strip under the nav */
.regbar {
  background: var(--graphite);
  border-bottom: 1px solid var(--line-dark);
  font-family: var(--font-mono);
  font-size: .705rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--steel);
}
.regbar .wrap {
  display: flex; flex-wrap: wrap; gap: 6px 22px;
  justify-content: center;
  padding-top: 9px; padding-bottom: 9px;
}
.regbar b { color: #fff; font-weight: 600; }
.regbar .sep { color: rgba(255,255,255,.22); }
.regbar .ok { color: var(--green); }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--navy-deep);
  color: #fff;
  padding: 88px 0 76px;
  border-bottom: 1px solid var(--line-dark);
}
/* faint technical grid, pure CSS — no image requests */
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.030) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.030) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 80% at 50% 45%, #000 15%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 45%, #000 15%, transparent 75%);
  pointer-events: none;
}
.hero .wrap { position: relative; text-align: center; }
.hero h1 { color: #fff; max-width: none; margin-left: auto; margin-right: auto; }
.hero .lede {
  font-size: 1.11rem; color: #B6C7D6; max-width: 92ch;
  margin-left: auto; margin-right: auto; margin-bottom: 1.7em;
}
.hero .btn-row { justify-content: center; }
.hero--compact { padding: 58px 0 50px; }
.hero--compact h1 { max-width: none; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: .72rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--green); margin-bottom: 1.3em;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--green);
}
/* matching rule on the right so the centered eyebrow reads symmetrically */
.hero .eyebrow::after {
  content: ""; width: 26px; height: 2px; background: var(--green);
}

/* ---------- sections ---------- */
section { padding: 68px 0; }
section.alt  { background: var(--paper-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
section.dark { background: var(--graphite); color: #DDE6EE; }
section.dark h2, section.dark h3, section.dark h4 { color: #fff; }
section.dark a { color: var(--green); }
section.navy { background: var(--navy-deep); color: #DDE6EE; }
section.navy h2, section.navy h3 { color: #fff; }

/* numbered section headings — reads like a spec document */
.section-head { max-width: 70ch; margin-bottom: 2.3rem; }
.section-head h2 { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.sec-num {
  font-family: var(--font-mono);
  font-size: .78rem; font-weight: 600; letter-spacing: .1em;
  color: var(--green); text-transform: none;
}
.section-head p { color: var(--muted); font-size: 1.03rem; margin-bottom: 0; }
section.dark .section-head p, section.navy .section-head p { color: #A2B5C6; }

.rule { height: 1px; background: var(--line); border: 0; margin: 0 0 2rem; }
section.dark .rule, section.navy .rule { background: var(--line-dark); }

/* ---------- grids + cards ---------- */
.grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(272px, 1fr)); }
.grid > * { background: var(--paper); padding: 26px 26px 28px; }
section.alt .grid > * { background: var(--paper); }
section.dark .grid, section.navy .grid { background: var(--line-dark); border-color: var(--line-dark); }
section.dark .grid > *, section.navy .grid > * { background: var(--graphite); }
section.navy .grid > * { background: var(--navy-deep); }

/* a plain gap grid when the ruled look isn't wanted */
.grid.loose { background: none; border: 0; gap: 26px; }
.grid.loose > * { padding: 0; background: none; }

.card h3 { margin-bottom: .4em; color: var(--navy); }
section.dark .card h3, section.navy .card h3 { color: #fff; }
.card p { color: var(--muted); font-size: .95rem; }
section.dark .card p, section.navy .card p { color: #A2B5C6; }
.card p:last-child { margin-bottom: 0; }
.card .tag {
  display: inline-block; font-family: var(--font-mono);
  font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--green-dim); margin-bottom: .8em;
}
section.dark .card .tag, section.navy .card .tag { color: var(--green); }

/* dual-audience path cards */
.path {
  border-left: 3px solid var(--green);
  padding-left: 22px;
}
.path h3 { font-size: 1.25rem; text-transform: uppercase; letter-spacing: .02em; }

/* numbered process steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li {
  counter-increment: step; position: relative;
  padding: 0 0 26px 62px;
  border-left: 1px solid rgba(124,179,66,.30);
  margin-left: 17px;
}
.steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps li::before {
  content: "0" counter(step);
  position: absolute; left: -18px; top: -3px;
  width: 36px; height: 36px;
  background: var(--green); color: #0A1B2E;
  display: grid; place-items: center;
  font-family: var(--font-mono); font-weight: 700; font-size: .82rem;
}
.steps h3 { margin-bottom: .25em; }
.steps p { margin-bottom: 0; }

/* ---------- technical data blocks ---------- */
.spec { margin: 0 0 1.35rem; }
.spec:last-child { margin-bottom: 0; }
.spec dt {
  font-family: var(--font-mono);
  font-size: .7rem; font-weight: 600; letter-spacing: .13em;
  text-transform: uppercase; color: var(--green-dim); margin-bottom: .35em;
}
section.dark .spec dt, section.navy .spec dt { color: var(--green); }
.spec dd { margin: 0; font-family: var(--font-mono); font-size: .9rem; line-height: 1.55; }

/* key/value definition rows */
.kv { margin: 0; border-top: 1px solid var(--line); }
.kv > div {
  display: grid; grid-template-columns: 210px 1fr; gap: 18px;
  padding: 13px 0; border-bottom: 1px solid var(--line);
}
.kv dt {
  font-family: var(--font-mono); font-size: .72rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  padding-top: 2px;
}
.kv dd { margin: 0; font-size: .97rem; }
.kv dd.code { font-family: var(--font-mono); font-weight: 600; }
section.dark .kv, section.dark .kv > div { border-color: var(--line-dark); }
section.dark .kv dt { color: var(--steel); }

/* tables */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); }
section.dark .table-scroll, section.navy .table-scroll { border-color: var(--line-dark); }
table { border-collapse: collapse; width: 100%; min-width: 460px; font-size: .93rem; }
caption {
  caption-side: top; text-align: left;
  font-family: var(--font-mono); font-size: .72rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  background: var(--paper-alt);
}
th, td { text-align: left; padding: 10px 16px; border-bottom: 1px solid var(--line); }
thead th {
  font-family: var(--font-mono);
  font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
  color: #fff; background: var(--navy); border-bottom: 0;
  font-weight: 600;
}
td { font-family: var(--font-mono); }
td.txt, th[scope="row"] { font-family: var(--font-sans); }
th[scope="row"] {
  font-family: var(--font-mono); font-size: .72rem; font-weight: 600;
  letter-spacing: .11em; text-transform: uppercase; color: var(--muted);
  vertical-align: top; width: 230px;
}
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody tr:hover { background: var(--green-pale); }
section.dark table, section.navy table { color: #DDE6EE; }
section.dark th, section.dark td, section.navy th, section.navy td { border-color: var(--line-dark); }
section.dark tbody tr:hover, section.navy tbody tr:hover { background: rgba(124,179,66,.09); }

/* tick lists */
ul.ticks { list-style: none; padding: 0; margin: 0; }
ul.ticks li { position: relative; padding-left: 26px; margin-bottom: .65em; }
ul.ticks li:last-child { margin-bottom: 0; }
ul.ticks li::before {
  content: ""; position: absolute; left: 0; top: .58em;
  width: 9px; height: 9px; background: var(--green);
}
/* cap line length in full-width prose blocks */
.measure { max-width: 78ch; }

/* two-column tick list for wide, single-column blocks */
ul.ticks.cols-2 { columns: 2; column-gap: 44px; }
ul.ticks.cols-2 li { break-inside: avoid; -webkit-column-break-inside: avoid; }
@media (max-width: 700px) { ul.ticks.cols-2 { columns: 1; } }

/* compact mono list for clause / standard references */
ul.refs { list-style: none; padding: 0; margin: 0; font-family: var(--font-mono); font-size: .88rem; }
ul.refs li {
  padding: 9px 0; border-bottom: 1px solid var(--line);
  display: flex; gap: 16px; flex-wrap: wrap;
}
ul.refs li:last-child { border-bottom: 0; }
ul.refs .ref-id { color: var(--navy); font-weight: 600; min-width: 200px; }
ul.refs .ref-txt { color: var(--muted); font-family: var(--font-sans); font-size: .95rem; }
section.dark ul.refs li { border-color: var(--line-dark); }
section.dark ul.refs .ref-id { color: var(--green); }
section.dark ul.refs .ref-txt { color: #A2B5C6; }

/* callout / notice panel */
.notice {
  border: 1px solid var(--line);
  border-left: 3px solid var(--green);
  background: var(--paper-alt);
  padding: 20px 24px;
}
.notice h3 { margin-bottom: .4em; }
.notice p:last-child { margin-bottom: 0; }
section.dark .notice, section.navy .notice {
  background: rgba(255,255,255,.04); border-color: var(--line-dark);
  border-left-color: var(--green);
}

/* stat / figure row */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); }
.stats > div { background: var(--navy-deep); padding: 22px 24px; text-align: center; }
.stats .fig {
  font-family: var(--font-mono); font-size: 1.5rem; font-weight: 700;
  color: var(--green); line-height: 1.1; margin-bottom: .3em;
}
.stats .lbl {
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--steel);
}

/* ---------- document list ---------- */
.doclist { border: 1px solid var(--line); }
.doc {
  display: grid; grid-template-columns: 1fr auto; gap: 24px;
  align-items: center;
  padding: 24px 26px;
  border-bottom: 1px solid var(--line);
}
.doc:last-child { border-bottom: 0; }
.doc:hover { background: var(--paper-alt); }
.doc .meta {
  font-family: var(--font-mono); font-size: .68rem;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--green-dim); margin-bottom: .7em;
}
.doc h3 { margin-bottom: .35em; color: var(--navy); }
.doc p { color: var(--muted); font-size: .95rem; margin-bottom: 0; }
.doc .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.doc .btn { padding: 10px 20px; font-size: .72rem; }
@media (max-width: 700px) {
  .doc { grid-template-columns: 1fr; gap: 16px; }
}

/* ---------- inviting / benefit blocks (fire-protection page) ---------- */
.ico {
  width: 54px; height: 54px; flex: none;
  border-radius: 50%;
  background: var(--green-pale);
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.ico svg {
  width: 27px; height: 27px;
  fill: none; stroke: var(--green-btn);
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}

/* standalone bordered panel for loose grids */
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--green);
  padding: 30px 30px 32px;
}
.panel h3 { color: var(--navy); margin-bottom: .45em; font-size: 1.2rem; }
.panel p { color: var(--ink); }
.panel p:last-child { margin-bottom: 0; }
.panel .fine {
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .04em;
  color: var(--muted); text-transform: none;
}
.panel.benefit h3 { font-size: 1.08rem; }
.panel.benefit p { color: var(--muted); font-size: .96rem; }

/* dark assurance strip — short benefit phrases with icons */
.assure {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px; background: var(--line-dark);
  border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark);
}
.assure > div { background: var(--navy-deep); padding: 22px 26px; display: flex; gap: 15px; align-items: center; }
.assure svg {
  width: 26px; height: 26px; flex: none;
  fill: none; stroke: var(--green); stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.assure .t { color: #fff; font-weight: 600; font-size: .96rem; line-height: 1.35; }

/* approval badges — light, reassuring, not a spec table */
.badges { display: flex; flex-wrap: wrap; gap: 14px; }
.badge {
  border: 1px solid var(--line); background: #fff;
  padding: 15px 20px; flex: 1 1 240px; max-width: 340px;
}
.badge .bid {
  font-family: var(--font-mono); font-weight: 600; color: var(--navy);
  font-size: .82rem; letter-spacing: .05em;
}
.badge .btx { color: var(--muted); font-size: .88rem; margin-top: 4px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; text-decoration: none;
  padding: 13px 26px;
  font-family: var(--font-mono);
  font-weight: 600; font-size: .78rem;
  letter-spacing: .13em; text-transform: uppercase;
  border: 1px solid transparent; cursor: pointer;
}
/* filled CTA — deeper green so white text stays legible (bright --green
   is too light for white text and too saturated for dark text at this size) */
.btn-primary { background: var(--green-btn); color: #fff; border-color: var(--green-btn); }
.btn-primary:hover { background: var(--green-btn-dk); border-color: var(--green-btn-dk); }
.btn-ghost { border-color: rgba(255,255,255,.42); color: #fff; background: transparent; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.09); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 1.5rem; }

/* ---------- forms ---------- */
.form-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.field { display: flex; flex-direction: column; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-family: var(--font-mono);
  font-size: .7rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--navy); margin-bottom: 7px;
}
.field label .req { color: var(--green-dim); }
.field input, .field select, .field textarea {
  font: inherit; font-size: .97rem;
  padding: 11px 13px;
  border: 1px solid var(--line); border-radius: 0;
  background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--green); outline-offset: -1px; border-color: var(--green);
}
.field textarea { min-height: 140px; resize: vertical; }
.fieldset-head {
  font-family: var(--font-mono); font-size: .72rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  padding-bottom: 8px; border-bottom: 1px solid var(--line);
  margin: 34px 0 4px; grid-column: 1 / -1;
}
.fieldset-head:first-child { margin-top: 0; }
.hint { font-size: .86rem; color: var(--muted); margin-top: 8px; }
.checkline { display: flex; align-items: flex-start; gap: 10px; font-size: .95rem; }
.checkline input { width: auto; margin-top: 4px; }
.hp { position: absolute; left: -9999px; }  /* honeypot */

/* contact blocks */
.person { border-left: 3px solid var(--green); padding-left: 20px; margin-bottom: 28px; }
.person:last-child { margin-bottom: 0; }
.person h3 { margin-bottom: .12em; }
.person .role {
  font-family: var(--font-mono);
  font-size: .7rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; margin-bottom: .6em;
}
.person a { display: block; text-decoration: none; font-family: var(--font-mono); font-size: .88rem; }
.person a:hover { text-decoration: underline; }
section.dark .person .role { color: var(--steel); }

/* ---------- footer ---------- */
.site-footer {
  background: var(--navy-deep); color: #A9BCCC;
  border-top: 3px solid var(--green);
  padding: 50px 0 28px; font-size: .9rem;
}
.site-footer .wrap { display: grid; gap: 34px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.site-footer img { height: 25px; width: auto; margin-bottom: 16px; }
.site-footer h4 {
  font-family: var(--font-mono);
  font-size: .7rem; letter-spacing: .15em; text-transform: uppercase;
  color: #fff; margin-bottom: 1em;
}
.site-footer a { color: #A9BCCC; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45em; }
.site-footer .code { font-family: var(--font-mono); font-size: .82rem; }
.colophon {
  border-top: 1px solid var(--line-dark);
  margin-top: 38px; padding-top: 20px;
  font-family: var(--font-mono);
  font-size: .72rem; letter-spacing: .06em; color: #7C90A2;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  body { font-size: 16px; }
  section { padding: 46px 0; }
  .hero { padding: 54px 0 46px; }
  .site-header .wrap { min-height: 0; padding-top: 4px; padding-bottom: 4px; }
  .site-nav { gap: 0; margin-left: -13px; }
  .kv > div { grid-template-columns: 1fr; gap: 4px; }
  th[scope="row"] { width: auto; }
  ul.refs li { gap: 2px; }
  ul.refs .ref-id { min-width: 0; }
}

@media print {
  .site-header, .site-footer, .btn-row, .regbar { display: none; }
  body { font-size: 10.5pt; }
  .hero { background: #fff; color: #000; padding: 0 0 18pt; }
  .hero h1, .hero .lede { color: #000; }
  section { padding: 14pt 0; }
}
