/* CMEPS site styles. Brand: navy #14213D, amber #E8A33D, white, body #3A4560. Archivo throughout. */

/* Archivo, self hosted (SIL OFL 1.1, see /fonts/OFL.txt), latin subset from @fontsource/archivo 5.3.0. */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/archivo-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/archivo-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/archivo-latin-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/fonts/archivo-latin-800-normal.woff2') format('woff2');
}

:root {
  --navy: #14213D;
  --navy-deep: #0E182E;
  --amber: #E8A33D;
  --amber-dark: #C9852A;
  --white: #FFFFFF;
  --text: #3A4560;
  --text-on-navy: #C9CFDB;
  --tint: #F4F6F9;
  --line: #DDE2EA;
  --error: #A3261B;
  --display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --wrap: 1160px;
  --gutter: 24px;
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); text-decoration-color: var(--amber); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
main:focus { outline: none; }

h1, h2, h3 { font-family: var(--display); color: var(--navy); line-height: 1.15; margin: 0 0 0.6em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.125rem); font-weight: 700; }
h3 { font-size: 1.1875rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 10;
  background: var(--navy); color: var(--white); padding: 12px 18px;
  font-family: var(--display); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 16px; color: var(--white); }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 92px; }
.brand { display: block; flex: none; }
.brand svg { height: 52px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav ul { display: flex; list-style: none; gap: 28px; }
.site-nav a {
  font-family: var(--display); font-weight: 600; font-size: 0.9375rem; letter-spacing: 0.04em;
  color: var(--navy); text-decoration: none;
}
.site-nav ul a { text-transform: uppercase; padding: 8px 0; border-bottom: 2px solid transparent; }
.site-nav ul a:hover, .site-nav ul a[aria-current="page"] { border-bottom-color: var(--amber); color: var(--navy); }
.header-phone {
  font-weight: 700; letter-spacing: 0.02em; white-space: nowrap;
  padding: 10px 16px; border: 2px solid var(--navy); border-radius: var(--radius);
}
.header-phone:hover { background: var(--navy); color: var(--white); }

/* Buttons */
.btn {
  display: inline-block; font-family: var(--display); font-weight: 700; font-size: 1rem;
  letter-spacing: 0.02em; text-decoration: none; padding: 14px 26px; border-radius: var(--radius);
  border: 2px solid transparent; cursor: pointer; line-height: 1.2; text-align: center;
}
.btn-primary { background: var(--amber); color: var(--navy); border-color: var(--amber); }
.btn-primary:hover { background: var(--amber-dark); border-color: var(--amber-dark); color: var(--navy); }
.btn-ghost-light { color: var(--white); border-color: rgba(255, 255, 255, 0.6); }
.btn-ghost-light:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.08); color: var(--white); }
.btn-secondary { color: var(--navy); border-color: var(--navy); }
.btn-secondary:hover { background: var(--navy); color: var(--white); }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Eyebrow and rule accents */
.eyebrow {
  font-family: var(--display); font-weight: 700; font-size: 0.8125rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--amber); margin-bottom: 18px;
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 32px; height: 3px; background: var(--amber); flex: none; }
.eyebrow-dark { color: var(--navy); }

/* Hero */
.hero { background: var(--navy); color: var(--text-on-navy); }
.hero-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; padding-top: 104px; padding-bottom: 112px; }
.hero h1 { color: var(--white); font-size: clamp(2.125rem, 5vw, 3.75rem); max-width: 14em; }
.lead { font-size: clamp(1.125rem, 1.8vw, 1.3125rem); line-height: 1.6; max-width: 38em; }
.hero .lead, .page-hero .lead { color: var(--text-on-navy); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-mark { justify-self: end; width: 100%; max-width: 340px; opacity: 0.95; }
.hero-mark svg { width: 100%; height: auto; }

.page-hero { background: var(--navy); color: var(--text-on-navy); padding: 80px 0 84px; }
.page-hero h1 { color: var(--white); max-width: 22em; }
.page-hero .lead a { color: var(--white); }

/* Sections */
.section { padding: 96px 0; }
.section-tint { background: var(--tint); }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-intro { font-size: 1.125rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }

.service-grid { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.service-card { border-top: 3px solid var(--amber); background: var(--white); padding: 28px 24px 8px; box-shadow: 0 1px 0 var(--line), 0 12px 32px rgba(20, 33, 61, 0.06); }
.service-card h3 a { color: var(--navy); text-decoration: none; }
.service-card h3 a:hover { color: var(--navy); text-decoration-color: var(--amber); text-decoration-thickness: 2px; }

.audience-list { list-style: none; display: grid; gap: 0; }
.audience-list li { padding: 20px 0; border-bottom: 1px solid var(--line); }
.audience-list li:first-child { border-top: 1px solid var(--line); }
.audience-list strong { font-family: var(--display); color: var(--navy); font-weight: 700; }

.principles { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.principles li { padding-top: 24px; border-top: 1px solid var(--line); position: relative; }
.principles li::before { content: ""; position: absolute; top: -1px; left: 0; width: 48px; height: 3px; background: var(--amber); }

.jump-links { padding-top: 32px; padding-bottom: 8px; }
.jump-links ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.jump-links a { font-family: var(--display); font-weight: 600; text-decoration: none; }
.jump-links a:hover { text-decoration: underline; }
.service-detail { scroll-margin-top: 16px; }
.service-detail + .section:not(.section-tint) { border-top: 1px solid var(--line); }

.check-list { list-style: none; background: var(--white); border: 1px solid var(--line); padding: 12px 28px; }
.section-tint .check-list { border-color: transparent; }
.check-list li { padding: 14px 0 14px 30px; border-bottom: 1px solid var(--line); position: relative; color: var(--navy); }
.check-list li:last-child { border-bottom: 0; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 24px; width: 14px; height: 3px; background: var(--amber); }

/* Navy panel standing in for a photograph (see docs/HEADLESS-RESULT.md, Images wanted) */
.image-panel { background: var(--navy); aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; border-radius: var(--radius); }
.image-panel svg { width: 34%; height: auto; opacity: 0.9; }

.details { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; margin: 0; }
.details dt { font-family: var(--display); font-weight: 700; color: var(--navy); }
.details dd { margin: 0; }

.prose h2 { font-size: 1.375rem; margin-top: 1.8em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.3em; margin-bottom: 1em; }
.small { font-size: 0.9375rem; }

/* Call to action band */
.cta-band { background: var(--navy); color: var(--text-on-navy); border-top: 4px solid var(--amber); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding-top: 72px; padding-bottom: 72px; }
.cta-band h2 { color: var(--white); }
.cta-band p { margin: 0; max-width: 36em; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; flex: none; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 64px; align-items: start; }
.contact-card { background: var(--tint); padding: 32px; border-top: 3px solid var(--amber); }
.contact-card h2, .form-wrap h2 { font-size: 1.5rem; }
.contact-card .details { grid-template-columns: 1fr; gap: 2px; }
.contact-card .details dd { margin-bottom: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.field { margin-bottom: 22px; }
.field label { display: block; font-family: var(--display); font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.req { font-weight: 600; color: var(--text); font-size: 0.875rem; }
.hint { font-size: 0.9375rem; margin: -2px 0 6px; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--navy); background: var(--white);
  border: 1px solid #8A93A6; border-radius: var(--radius); padding: 12px 14px;
}
.field textarea { resize: vertical; min-height: 160px; }
.field input:focus, .field textarea:focus { outline: 3px solid var(--amber); outline-offset: 0; border-color: var(--navy); }
.has-error input, .has-error textarea { border-color: var(--error); border-width: 2px; }
.field-error { color: var(--error); font-weight: 600; font-size: 0.9375rem; margin: 6px 0 0; }
.form-error { background: #FBEDEB; color: var(--error); border-left: 4px solid var(--error); padding: 14px 18px; font-weight: 600; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.site-footer { background: var(--navy-deep); color: var(--text-on-navy); padding: 72px 0 40px; font-size: 0.9375rem; }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--amber); }
.footer-top { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 48px; align-items: start; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.footer-brand { display: inline-block; }
.footer-brand svg { height: 56px; width: auto; }
.footer-contact, .footer-links { list-style: none; display: grid; gap: 8px; }
.footer-label { display: inline-block; min-width: 6.5em; font-family: var(--display); font-weight: 600; color: var(--white); }
.footer-links a { text-decoration: none; font-family: var(--display); font-weight: 600; }
.footer-legal { margin: 32px 0 8px; max-width: 70em; line-height: 1.6; }
.footer-copy { margin: 0; }

/* Responsive */
@media (max-width: 1000px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .header-inner { flex-wrap: wrap; padding-top: 18px; padding-bottom: 12px; min-height: 0; gap: 12px; }
  .site-nav { width: 100%; justify-content: space-between; gap: 16px; }
  .site-nav ul { gap: 20px; }
  .header-phone { display: none; }
  .hero-inner { grid-template-columns: 1fr; padding-top: 72px; padding-bottom: 80px; }
  .hero-mark { display: none; }
  .split, .contact-grid, .principles { grid-template-columns: 1fr; gap: 40px; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .section { padding: 72px 0; }
  .page-hero { padding: 64px 0; }
}
@media (max-width: 560px) {
  :root { --gutter: 16px; }
  body { font-size: 1rem; }
  .brand svg { height: 44px; }
  .site-nav ul { gap: 0; width: 100%; justify-content: space-between; }
  .site-nav ul a { font-size: 0.875rem; letter-spacing: 0.02em; }
  .service-grid, .field-row, .footer-top { grid-template-columns: 1fr; }
  .details { grid-template-columns: 1fr; gap: 2px; }
  .details dd { margin-bottom: 12px; }
  .section { padding: 56px 0; }
  .page-hero { padding: 48px 0 52px; }
  .btn { width: 100%; }
  .hero-actions, .cta-actions, .button-row { width: 100%; }
  .check-list { padding: 8px 18px; }
  .contact-card { padding: 24px; }
}
