:root {
  --ink: #172033;
  --body: #3d4759;
  --muted: #5e6878;
  --line: #d9dee7;
  --paper: #ffffff;
  --wash: #f4f6f9;
  --navy: #18385f;
  --navy-dark: #102642;
  --steel: #e8edf3;
  --red: #8d2f2f;
  --shadow: 0 18px 48px rgba(16, 38, 66, 0.10);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  color: var(--body);
  background: var(--wash);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 18px;
  color: #fff;
  background: var(--navy-dark);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 28px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--navy-dark);
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: clamp(190px, 24vw, 290px);
  height: auto;
  object-fit: contain;
  flex: 0 0 auto;
}

nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

nav a {
  padding: 4px 0;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

nav a:hover {
  color: var(--navy);
  border-bottom-color: var(--red);
}

/* ---------- Layout ---------- */

main {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 56px) 40px;
}

h1, h2, h3, p, ul, dl { margin-top: 0; }

h1 {
  margin-bottom: 20px;
  color: var(--navy-dark);
  font-size: clamp(36px, 5.2vw, 58px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.025em;
}

h2 {
  margin-bottom: 12px;
  color: var(--navy-dark);
  font-size: clamp(26px, 3.2vw, 34px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h3 {
  margin-bottom: 10px;
  color: var(--navy-dark);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.lead {
  max-width: 660px;
  color: var(--body);
  font-size: 19px;
  line-height: 1.55;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid var(--navy);
  border-radius: 5px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.button.primary { color: #fff; background: var(--navy); }
.button.primary:hover { background: var(--navy-dark); }
.button.secondary { color: var(--navy); background: #fff; }
.button.secondary:hover { background: var(--steel); }

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.6fr);
  gap: 48px;
  align-items: center;
  padding: clamp(48px, 8vw, 88px) 0 clamp(40px, 6vw, 64px);
}

.hero-copy { max-width: 720px; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.identity-panel {
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.logo-lockup {
  margin-bottom: 18px;
}

.logo-mark {
  display: block;
  width: min(100%, 230px);
  height: auto;
  margin: 0 auto;
}

.stacked-logo {
  width: min(100%, 260px);
  border-radius: 4px;
}

.panel-title {
  margin-bottom: 8px;
  color: var(--navy-dark);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.panel-copy {
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 15px;
}

.panel-facts {
  display: grid;
  gap: 10px;
  margin: 0;
}

.panel-facts div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

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

.section,
.contact {
  margin-top: 20px;
  padding: clamp(26px, 4.5vw, 46px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.section-heading { max-width: 640px; margin-bottom: 28px; }
.section-heading p { margin-bottom: 0; color: var(--muted); }

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.service-grid article {
  padding: 22px;
  background: #f8fafc;
  border: 1px solid #e1e7ef;
  border-top: 3px solid var(--navy);
  border-radius: 6px;
}

.service-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 40px;
  align-items: start;
}

.split .section-heading { margin-bottom: 0; }

.fit-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 15px;
}

.fit-list li::marker { color: var(--red); }
.fit-list strong { color: var(--navy-dark); }

.credential-list { display: grid; gap: 0; margin: 0; }

.credential-list div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.credential-list div:first-child { border-top: 1px solid var(--line); }

dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

dd {
  margin: 0;
  color: var(--navy-dark);
  font-size: 15px;
  font-weight: 700;
}

/* ---------- Subcontractors ---------- */

.subs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border-left: 5px solid var(--red);
}

.subs .section-heading {
  margin-bottom: 0;
}

/* ---------- Contact ---------- */

.contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  color: #fff;
  background: var(--navy-dark);
  border-color: var(--navy-dark);
}

.contact h2,
.contact .eyebrow { color: #fff; }
.contact .eyebrow { opacity: 0.75; }

.contact p {
  max-width: 640px;
  margin-bottom: 0;
  color: #fff;
  font-size: 16px;
  opacity: 0.85;
}

.contact .button {
  flex: 0 0 auto;
  color: var(--navy-dark);
  background: #fff;
  border-color: #fff;
}

.contact .button:hover { background: var(--steel); }

.contact-actions {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 10px;
}

.contact-actions .button {
  width: 100%;
}

.contact-actions .button.secondary {
  color: #fff;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.78);
}

.contact-actions .button.secondary:hover {
  color: var(--navy-dark);
  background: #fff;
}

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

footer {
  max-width: 1140px;
  margin: 0 auto;
  padding: 8px clamp(18px, 4vw, 56px) 40px;
  color: var(--muted);
  font-size: 14px;
}

footer p { margin: 0 0 4px; }
footer strong { color: var(--ink); }

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

@media (max-width: 1000px) {
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .site-header { position: static; }

  .hero,
  .split,
  .compact,
  .contact,
  .subs {
    grid-template-columns: 1fr;
    display: grid;
  }

  .split { gap: 26px; }
  .split .section-heading { margin-bottom: 0; }
  .contact .button,
  .contact-actions,
  .subs .button { width: 100%; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .service-grid { grid-template-columns: 1fr; }
  .lead { font-size: 18px; }
  .hero-actions .button { width: 100%; }
  .credential-list div { grid-template-columns: 1fr; gap: 4px; }
  .brand-logo { width: min(220px, 72vw); }
}

/* ---------- Print ---------- */

@media print {
  body { background: #fff; font-size: 11pt; }
  .site-header, .hero-actions, .skip-link, nav { display: none; }
  .section, .contact, .identity-panel { box-shadow: none; break-inside: avoid; }
  .contact { color: #000; background: #fff; border: 1px solid #000; }
  .contact h2, .contact p, .contact .eyebrow { color: #000; opacity: 1; }
  a[href^="mailto:"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
}
