/* CMIP LLC — site styles. Mobile first; breakpoints at 48rem and 64rem. */

:root {
  --navy: #12233a;
  --navy-2: #1c3352;
  --gold: #d9a441;      /* accent: only on navy, or as a button background with navy text */
  --gold-dark: #8a5d12; /* accent text on white (AA) */
  --ink: #1f2933;
  --muted: #52606d;
  --line: #dde3ea;
  --bg-soft: #f4f6f9;
  --white: #fff;
  --radius: 6px;
  --wrap: 72rem;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--navy-2); text-underline-offset: 3px; }
a:hover { color: var(--gold-dark); }

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

h1, h2, h3, h4 { line-height: 1.2; color: var(--navy); margin: 0 0 .75rem; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--navy); color: var(--white); padding: .6rem 1rem; border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; color: var(--white); }

.eyebrow {
  display: block;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-dark); margin-bottom: .75rem;
}
.on-dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--gold); }

.lead { font-size: 1.15rem; color: var(--muted); max-width: 44rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: .85rem 1.6rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn--gold { background: var(--gold); color: var(--navy); }
.btn--gold:hover { background: #e8b75a; color: var(--navy); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-2); color: var(--white); }
.btn--ghost { border-color: rgba(255,255,255,.8); color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 4.5rem;
}
.site-header__logo img { width: 170px; height: auto; margin-left: -12px; } /* logo file has side padding */
@media (min-width: 64rem) { .site-header__logo img { width: 210px; } }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem;
  background: none; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer;
  color: var(--navy);
}
.nav-toggle svg { width: 1.4rem; height: 1.4rem; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-open { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

.site-nav {
  display: none;
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--white); border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 24px rgba(18,35,58,.08);
}
.nav-open .site-nav { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: .5rem 1.25rem 1rem; }
.site-nav a {
  display: block; padding: .8rem 0;
  color: var(--navy); font-weight: 600; text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.site-nav a[aria-current="page"] { color: var(--gold-dark); }
.site-nav .nav-cta { margin-top: 1rem; border: 0; text-align: center; }

@media (min-width: 64rem) {
  .nav-toggle { display: none; }
  .site-nav, .nav-open .site-nav {
    display: block; position: static; border: 0; box-shadow: none; background: none;
  }
  .site-nav ul { display: flex; align-items: center; gap: 1.75rem; padding: 0; }
  .site-nav a { padding: .4rem 0; border: 0; }
  .site-nav a:not(.btn):hover { color: var(--gold-dark); }
  .site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--gold); }
  .site-nav .nav-cta { margin: 0; padding: .7rem 1.2rem; }
  .site-nav .nav-cta.btn--navy { color: var(--white); }
}

/* ---------- Hero ---------- */
.hero, .page-hero {
  position: relative; isolation: isolate;
  color: var(--white);
  background: var(--navy);
  overflow: hidden;
}
.hero__img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
}
.hero::before, .page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(18,35,58,.88) 0%, rgba(18,35,58,.66) 50%, rgba(18,35,58,.35) 100%);
}
.hero .wrap { padding-top: 5rem; padding-bottom: 5rem; }
.hero h1, .page-hero h1 { color: var(--white); max-width: 46rem; }
.hero p { font-size: 1.15rem; color: #e3e9f0; max-width: 38rem; margin-bottom: 2rem; }
@media (min-width: 48rem) {
  .hero { min-height: min(82vh, 52rem); display: flex; align-items: center; }
  .hero .wrap { width: 100%; padding-top: 7rem; padding-bottom: 7rem; }
}

.page-hero .wrap { padding-top: 4rem; padding-bottom: 3.5rem; }
.page-hero p { color: #e3e9f0; max-width: 42rem; font-size: 1.15rem; margin: 0; }
@media (min-width: 48rem) { .page-hero .wrap { padding-top: 6rem; padding-bottom: 5rem; } }

/* ---------- Sections ---------- */
.section { padding: 4rem 0; }
.section--soft { background: var(--bg-soft); }
.section--navy { background: var(--navy); color: #e3e9f0; }
.section--navy h2, .section--navy h3 { color: var(--white); }
@media (min-width: 48rem) { .section { padding: 6rem 0; } }

.section-head { max-width: 46rem; margin-bottom: 2.5rem; }

.grid { display: grid; gap: 1.5rem; }
@media (min-width: 48rem) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.split { display: grid; gap: 2.5rem; align-items: center; }
.split img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 48rem) {
  .split { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .split--flip > :first-child { order: 2; }
}

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); border-bottom: 1px solid var(--line); }
.stat { padding: 2rem 1rem; text-align: center; border-right: 1px solid var(--line); border-top: 1px solid var(--line); }
.stat:nth-child(2n) { border-right: 0; }
.stat strong { display: block; font-size: 2.4rem; line-height: 1; color: var(--navy); font-weight: 800; }
.stat span { display: block; margin-top: .5rem; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
@media (min-width: 48rem) {
  .stats { grid-template-columns: repeat(var(--cols, 4), 1fr); }
  .stat { border-top: 0; }
  .stat:nth-child(2n) { border-right: 1px solid var(--line); }
  .stat:last-child { border-right: 0; }
}

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  border-top: 4px solid var(--navy);
}
.card h3 { margin-bottom: .5rem; }
.card p:last-child { margin-bottom: 0; }
.card--accent { border-top-color: var(--gold); }
.card a.more { font-weight: 700; text-decoration: none; }
.card a.more::after { content: " \2192"; }


/* ---------- Credentials ---------- */
.creds { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 48rem) { .creds { grid-template-columns: repeat(3, 1fr); } }
.creds li { background: var(--navy-2); border-radius: var(--radius); padding: 1.25rem 1.4rem; }
.creds b { display: block; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: .35rem; }
.creds span { color: var(--white); font-weight: 600; }

/* ---------- Services detail ---------- */
.service { padding: 3.5rem 0; border-bottom: 1px solid var(--line); scroll-margin-top: 5rem; }
.service:last-child { border-bottom: 0; }
.checklist { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: .5rem; }
@media (min-width: 48rem) { .checklist--2 { grid-template-columns: 1fr 1fr; } }
.checklist li { position: relative; padding-left: 1.75rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .45em;
  width: .95rem; height: .55rem;
  border-left: 3px solid var(--gold-dark); border-bottom: 3px solid var(--gold-dark);
  transform: rotate(-45deg);
}
.section--navy .checklist li::before { border-color: var(--gold); }

.service-index { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 2rem 0 0; }
.service-index a {
  display: inline-block; padding: .45rem .9rem; border: 1px solid rgba(255,255,255,.5);
  border-radius: 999px; color: var(--white); text-decoration: none; font-size: .9rem; font-weight: 600;
}
.service-index a:hover { background: var(--white); color: var(--navy); }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 1.5rem; }
@media (min-width: 48rem) { .steps { grid-template-columns: repeat(var(--cols, 3), 1fr); } }
.steps li { counter-increment: step; position: relative; padding-top: 3.25rem; }
.steps li::before {
  content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy); color: var(--white); font-weight: 800;
}

/* ---------- FAQ ---------- */
.faq { max-width: 48rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 1.15rem 2rem 1.15rem 0; position: relative;
  font-weight: 700; color: var(--navy); font-size: 1.1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: .9rem; font-size: 1.5rem; color: var(--gold-dark); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy); color: #e3e9f0; padding: 4rem 0; }
.cta-band .wrap { display: grid; gap: 1.5rem; align-items: center; }
.cta-band h2 { color: var(--white); margin-bottom: .5rem; }
.cta-band p { margin: 0; max-width: 40rem; }
@media (min-width: 48rem) { .cta-band .wrap { grid-template-columns: 1fr auto; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 2.5rem; }
@media (min-width: 64rem) { .contact-grid { grid-template-columns: 1fr 1.15fr; gap: 4rem; } }
.contact-list { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: 1.1rem; }
.contact-list b { display: block; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.contact-list a { font-weight: 600; }
.map { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: var(--radius); }

.form-panel { background: var(--bg-soft); border-radius: var(--radius); padding: 1.75rem; }
@media (min-width: 48rem) { .form-panel { padding: 2.5rem; } }
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-weight: 700; color: var(--navy); margin-bottom: .35rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem .9rem;
  font: inherit; color: var(--ink);
  background: var(--white);
  border: 1px solid #9aa5b1; border-radius: var(--radius);
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy); }
@media (min-width: 48rem) { .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; } }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 1rem 1.15rem; border-radius: var(--radius); margin-bottom: 1.25rem; font-weight: 600; }
.form-status[hidden] { display: none; }
.form-status--sent { background: #e5f4ea; color: #14532d; border: 1px solid #9fd3b0; }
.form-status--error { background: #fdecec; color: #7f1d1d; border: 1px solid #f2b0b0; }
button[disabled] { opacity: .7; cursor: progress; }

/* ---------- Footer ---------- */
.site-footer { background: #0b1626; color: #c3ccd7; padding: 3.5rem 0 1.5rem; font-size: .95rem; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-logo { display: inline-block; background: var(--white); padding: .5rem .75rem; border-radius: var(--radius); margin-bottom: 1rem; }
.footer-logo img { width: 130px; }
.site-footer h2 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.site-footer address { font-style: normal; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.25rem; font-size: .85rem; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 6rem 0; }
.notfound .btn-row { justify-content: center; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Utilities ---------- */
.mt { margin-top: 1.5rem; }
.mt-lg { margin-top: 2.5rem; }
.lead--center { margin: 0 auto 2rem; }
@media (min-width: 48rem) {
  .stats--4 { --cols: 4; }
  .stats--5 { --cols: 5; }
  .steps--4 { --cols: 4; }
}

/* ---------- v2: content additions ---------- */
.stats-note { text-align: center; font-size: .85rem; color: var(--muted); margin: .75rem 1.25rem 0; }
.also-title { margin-top: 2.5rem; font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.also-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.also-list a {
  display: inline-block; padding: .5rem 1rem; border: 1px solid var(--line); border-radius: 999px;
  text-decoration: none; font-weight: 600; color: var(--navy);
}
.also-list a:hover { border-color: var(--navy); color: var(--navy); background: var(--bg-soft); }
.naics { margin-top: 1rem; font-size: .9rem; color: var(--muted); }
.footer-meta { font-size: .85rem; }
.req { font-weight: 400; font-size: .85rem; color: var(--muted); }
.field-error { margin: .35rem 0 0; color: #b91c1c; font-size: .9rem; font-weight: 600; }
.field [aria-invalid="true"] { border-color: #b91c1c; box-shadow: 0 0 0 1px #b91c1c; }
.form-note { margin: 1rem 0 0; font-size: .9rem; color: var(--muted); }

/* ---------- v2: new pages ---------- */
.data-list { display: grid; gap: 0; margin: 0; border-top: 1px solid var(--line); }
.data-list > div { display: grid; gap: .25rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.data-list dt { font-weight: 700; color: var(--navy); }
.data-list dd { margin: 0; }
@media (min-width: 48rem) { .data-list > div { grid-template-columns: 16rem 1fr; gap: 1.5rem; } }
.data-list--compact > div { padding: .5rem 0; font-size: .95rem; }
@media (min-width: 48rem) { .data-list--compact > div { grid-template-columns: 9rem 1fr; gap: .75rem; } }
.btn--disabled { border: 2px dashed #9aa5b1; color: var(--muted); cursor: not-allowed; }
.table-wrap { overflow-x: auto; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table-wrap th, .table-wrap td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-wrap th { color: var(--navy); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.photo-ph {
  display: grid; place-items: center; aspect-ratio: 3 / 2; margin: 1rem 0;
  background: var(--bg-soft); border: 2px dashed var(--line); border-radius: var(--radius);
  color: var(--muted); font-size: .9rem; text-align: center; padding: 1rem;
}
.quote { margin: 0 auto; max-width: 46rem; text-align: center; }
.quote blockquote { margin: 0 0 1rem; font-size: 1.35rem; font-weight: 600; color: var(--navy); }
.quote figcaption { color: var(--muted); }
fieldset.field { border: 0; padding: 0; margin: 0 0 1.15rem; min-width: 0; }
fieldset.field legend { font-weight: 700; color: var(--navy); margin-bottom: .5rem; padding: 0; }
.check-grid { display: grid; gap: .5rem; }
@media (min-width: 48rem) { .check-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .check-grid { grid-template-columns: repeat(4, 1fr); } }
.field .check { display: flex; align-items: center; gap: .5rem; font-weight: 400; color: var(--ink); margin: 0; }
.check input { width: 1.15rem; height: 1.15rem; accent-color: var(--navy); }
.form-panel--wide { max-width: 56rem; margin: 0 auto; }
.prose { max-width: 46rem; }
.prose h2 { font-size: 1.35rem; margin-top: 2rem; }
