/* CPW Engineering — site styles (direction A: Blueprint) */
@font-face { font-family: "Oxanium"; src: url("../fonts/oxanium.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans.woff2") format("woff2"); font-weight: 400 600; font-display: swap; }

:root {
  --navy: #14213D;
  --navy-deep: #0d1629;
  --ink: #1d232e;
  --body: #3d4757;
  --muted: #4a5466;
  --eyebrow: #3a4a6b;
  --rule: #d9dde4;
  --panel: #f4f6f9;
  --on-navy: #dfe4ee;
  --on-navy-muted: #c9d2e3;
  --wrap: 1200px;
  --display: "Oxanium", system-ui, sans-serif;
  --text: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--text); color: var(--ink); background: #fff; line-height: 1.6; font-size: 17px; -webkit-text-size-adjust: 100%; }
img, svg { display: block; max-width: 100%; }
a { color: var(--navy); }
a:hover { color: var(--navy-deep); }
:focus-visible { outline: 3px solid #4d7cc7; outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 32px; padding-right: 32px; }
@media (max-width: 600px) { .wrap { padding-left: 20px; padding-right: 20px; } }

.skip { position: absolute; left: -9999px; top: 0; background: #fff; color: var(--navy); padding: 12px 16px; z-index: 10; }
.skip:focus { left: 12px; top: 12px; }

/* Blueprint grid */
.grid-bg { background-color: var(--navy); background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px); background-size: 32px 32px; color: #fff; }

/* Header + nav */
.site-header .bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding-top: 20px; padding-bottom: 20px; }
.brand { line-height: 0; }
.brand img { width: 150px; height: auto; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 26px; font-size: 15px; margin: 0; padding: 0; list-style: none; }
.nav a { color: #fff; text-decoration: none; padding: 8px 0; display: inline-block; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1.5px; }
.nav .nav-cta a { background: #fff; color: var(--navy); font-weight: 600; padding: 12px 20px; border-radius: 2px; text-decoration: none; }
.nav .nav-cta a:hover { background: var(--on-navy); }

/* Hero */
.hero { padding-top: 64px; padding-bottom: 88px; }
.hero.compact { padding-top: 40px; padding-bottom: 64px; }
.eyebrow { margin: 0 0 16px; font-family: var(--display); font-weight: 600; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--eyebrow); }
.grid-bg .eyebrow { color: var(--on-navy-muted); }
h1, h2, h3 { font-family: var(--display); color: var(--navy); }
.grid-bg h1, .grid-bg h2, .grid-bg h3 { color: #fff; }
h1 { margin: 0; font-weight: 500; font-size: clamp(34px, 5vw, 60px); line-height: 1.1; max-width: 18ch; }
.hero .lede { margin: 26px 0 0; font-size: 19px; max-width: 60ch; color: var(--on-navy); }
h2 { margin: 0; font-weight: 500; font-size: clamp(28px, 3.4vw, 38px); line-height: 1.15; }
h3 { margin: 0; font-weight: 600; font-size: 20px; line-height: 1.3; }
.lede { font-size: 18px; color: var(--body); max-width: 64ch; margin: 18px 0 0; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; font-weight: 600; text-decoration: none; border-radius: 2px; border: 1.5px solid transparent; font-family: var(--text); font-size: 16px; cursor: pointer; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--on-navy); color: var(--navy); }
.btn-outline-light { border-color: #fff; color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); color: #fff; }

/* Sections */
.section { padding-top: 88px; padding-bottom: 88px; }
.panel { background: var(--panel); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }

/* Credentials strip */
.creds { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 20px 24px; padding-top: 28px; padding-bottom: 28px; }
.creds strong { display: block; font-family: var(--display); font-weight: 600; font-size: 26px; color: var(--navy); line-height: 1.25; }
.creds span { font-size: 14px; color: var(--muted); }

/* Service tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin-top: 52px; }
.tile { background: #fff; padding: 32px; display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: inherit; }
a.tile:hover { background: #fafbfd; }
a.tile:hover h3 { text-decoration: underline; text-underline-offset: 5px; }
.tile p { margin: 0; color: var(--body); }
.icon { width: 36px; height: 36px; flex: 0 0 36px; }

/* Service detail (services page) */
.service { display: grid; align-items: start; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px 56px; padding: 44px 0; border-top: 1px solid var(--rule); }
.service:first-of-type { border-top: 2px solid var(--navy); }
.service .head { display: flex; gap: 16px; align-items: center; }
.service p { margin: 0 0 12px; color: var(--body); }
.service .receive { margin: 8px 0 0; padding: 16px 20px; background: var(--panel); border: 1px solid var(--rule); font-size: 15px; color: var(--ink); }
.service .receive strong { font-family: var(--display); color: var(--navy); }

/* Steps */
.steps { list-style: none; counter-reset: s; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 32px; }
.steps li { counter-increment: s; border-top: 2px solid var(--navy); padding-top: 18px; color: var(--body); }
.steps li::before { content: "0" counter(s); display: block; font-family: var(--display); font-weight: 600; color: var(--eyebrow); margin-bottom: 8px; letter-spacing: .08em; }
.steps strong { display: block; font-family: var(--display); font-size: 19px; color: var(--navy); margin-bottom: 4px; }

/* Audiences */
.audiences { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; margin-top: 40px; }
.audience { background: #fff; border: 1px solid var(--rule); border-top: 3px solid var(--navy); padding: 32px; }
.audience h3 { margin-bottom: 10px; }
.audience p { margin: 0; color: var(--body); }

/* Two-column feature */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 48px 64px; align-items: start; }
.points { list-style: none; margin: 0; padding: 0; }
.points li { padding: 20px 0; border-bottom: 1px solid var(--rule); color: var(--body); }
.points li:first-child { padding-top: 0; }
.points li:last-child { border-bottom: 0; }
.points strong { display: block; font-family: var(--display); font-size: 19px; color: var(--navy); margin-bottom: 2px; }

/* Sectors */
.sectors { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; margin-top: 36px; }
.sectors.large { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px 48px; }
.sector { border-top: 2px solid var(--navy); padding-top: 18px; }
.sector h3 { margin-bottom: 8px; font-size: 19px; }
.sector p { margin: 0; color: var(--body); font-size: 16px; }
.sectors.large .sector p { font-size: 17px; }

/* Profile */
.profile { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; max-width: 760px; }
.profile .role { font-family: var(--display); font-weight: 600; color: var(--eyebrow); letter-spacing: .08em; text-transform: uppercase; font-size: 13px; margin: 6px 0 0; }
.profile p { margin: 0; color: var(--body); font-size: 18px; }

/* CTA band */
.cta .wrap { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px; padding-top: 80px; padding-bottom: 80px; }
.cta p { margin: 16px 0 0; font-size: 18px; color: var(--on-navy); max-width: 60ch; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 48px 64px; align-items: start; }
.contact-grid > form { grid-column: span 2; }
@media (max-width: 760px) { .contact-grid > form { grid-column: auto; } }
form .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 20px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.field label { font-weight: 600; font-size: 15px; color: var(--ink); }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { font: inherit; font-size: 16px; color: var(--ink); padding: 12px 14px; border: 1.5px solid #9aa4b5; border-radius: 2px; background: #fff; min-height: 48px; width: 100%; }
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy); outline: 3px solid rgba(77,124,199,.35); outline-offset: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 14px; color: var(--muted); margin: 14px 0 0; }
.aside dl { margin: 0; }
.aside dt { font-family: var(--display); font-weight: 600; color: var(--navy); margin-top: 22px; }
.aside dt:first-child { margin-top: 0; }
.aside dd { margin: 4px 0 0; color: var(--body); }

/* Prose (privacy) */
.prose { max-width: 72ch; }
.prose h2 { font-size: 24px; margin: 40px 0 10px; }
.prose p { color: var(--body); margin: 0 0 14px; }

/* Footer */
.site-footer { background: var(--navy-deep); color: var(--on-navy-muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-top: 28px; padding-bottom: 28px; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--on-navy); }
