/* Allied Injury Solutions — public site. Extends the CMS Clinical Registry brand. */

:root {
  --navy: #283449;
  --navy-light: #35465f;
  --teal: #286F7F;
  --teal-light: #34899b;
  --ink: #171A28;
  --cream: #F4F1EA;
  --sunken: #ECE8DF;
  --border: #DBDBD7;
  --border-strong: #C7C4BB;
  --muted: #6b6a63;
  --font-heading: "Nunito", system-ui, sans-serif;
  --font-body: "Open Sans", system-ui, sans-serif;
  --measure: 68rem; /* ~1088px */
}

* { box-sizing: border-box; }

.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

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

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }

h1, h2, h3 { font-family: var(--font-heading); line-height: 1.15; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); font-weight: 800; max-width: 26ch; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p  { margin: 0 0 1em; }
a  { color: var(--teal); }
a:hover { color: var(--teal-light); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 2px;
}
.site-header a:focus-visible, .band a:focus-visible, .site-footer a:focus-visible {
  outline-color: #fff;
}
img { max-width: 100%; }

/* Body-copy paragraphs and lists hold a readable measure even in wide sections. */
.lede { font-size: 1.15rem; max-width: 58ch; }
main ul:not(.cards) { padding-left: 1.25rem; max-width: 58ch; margin-top: 0; }
main ul:not(.cards) li { margin-bottom: 0.35rem; padding-left: 0.25rem; }
main ul:not(.cards) li::marker { color: var(--teal); }

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

/* --- Header / footer chrome (navy) --- */
.site-header { background: var(--navy); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem 2rem; flex-wrap: wrap;
  padding-top: 1rem; padding-bottom: 1rem; /* keep .wrap's horizontal gutter */
}
.brand img { height: 44px; display: block; }
.site-nav { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.site-nav a {
  color: #fff; text-decoration: none; font-family: var(--font-heading);
  font-weight: 600; font-size: 0.95rem;
}
.site-nav a:hover { color: var(--sunken); }
.site-nav a[aria-current="page"] { border-bottom: 2px solid var(--teal-light); padding-bottom: 2px; }

.btn {
  display: inline-block; font-family: var(--font-heading); font-weight: 700;
  font-size: 0.95rem; text-decoration: none; border-radius: 6px;
  padding: 0.65rem 1.3rem;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-light); color: #fff; }
.btn-quiet { color: var(--navy); border: 1px solid var(--navy); }
.btn-quiet:hover { background: var(--navy); color: #fff; }
.band .btn-quiet { color: #fff; border-color: rgba(255,255,255,0.6); }
.band .btn-quiet:hover { background: rgba(255,255,255,0.12); color: #fff; }

/* --- Hero --- */
.hero { padding: 4.5rem 0 3.5rem; }
.hero h1 { max-width: 24ch; text-wrap: balance; }
.kicker {
  font-family: var(--font-heading); font-weight: 700; font-size: 0.85rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal);
  margin: 0 0 1rem;
}
.hero .lede { font-size: 1.2rem; max-width: 54ch; }
.cta-row { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-top: 1.8rem; }

/* --- Sections + rule-and-dot motif --- */
.section { padding: 3.25rem 0; }
.section-head { position: relative; padding-top: 1.4rem; margin-bottom: 1.6rem; }
.section-head::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0;
  height: 1px; background: var(--border);
}
.section-head::after {
  content: ""; position: absolute; top: -4px; left: 0;
  width: 9px; height: 9px; border-radius: 50%; background: var(--teal);
}

/* --- Cards --- */
.cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); padding: 0; margin: 0; list-style: none; }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  padding: 1.6rem;
}
.card h3 { margin-bottom: 0.4rem; }
.card p { color: var(--muted); margin-bottom: 0.9rem; }
.card p:last-child { margin-bottom: 0; }
.card a, .arrow-link { font-family: var(--font-heading); font-weight: 700; font-size: 0.95rem; text-decoration: none; }
.card a::after, .arrow-link::after { content: " \2192"; }
.card a:hover, .arrow-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* --- Full-width navy band --- */
.band { background: var(--navy); color: #fff; padding: 3.25rem 0; }
.band h2 { color: #fff; }
.band p { color: var(--sunken); max-width: 55ch; }

/* --- Footer --- */
.site-footer { background: var(--navy); color: var(--sunken); padding: 2.5rem 0; margin-top: 3rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 1.5rem 3rem; flex-wrap: wrap; align-items: flex-start; }
.site-footer img { height: 36px; }
.site-footer a { color: #fff; }
.site-footer p { margin: 0.2rem 0; font-size: 0.95rem; }

/* --- Long-form prose (privacy) --- */
.prose { max-width: 46rem; }
.prose h2 { margin-top: 2.2rem; font-size: 1.25rem; }

/* --- Contact --- */
.contact-channels { display: flex; gap: 1.5rem 3.5rem; flex-wrap: wrap; margin: 1.5rem 0 2.25rem; }
.contact-channels .channel-label {
  font-family: var(--font-heading); line-height: 1.15;
  margin: 0 0 0.15rem; font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}
.contact-channels p { margin: 0; font-size: 1.1rem; }
.form-grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr 1fr; max-width: 46rem; }
.field { display: flex; flex-direction: column; gap: 0.3rem; }
.field-full { grid-column: 1 / -1; }
.field label { font-family: var(--font-heading); font-weight: 700; font-size: 0.9rem; }
.field input, .field textarea {
  font: inherit; font-weight: 400; color: var(--ink);
  background: #fff; border: 1px solid var(--border-strong); border-radius: 6px;
  padding: 0.6rem 0.75rem;
}
.field textarea { resize: vertical; min-height: 8rem; }
.field input:hover, .field textarea:hover { border-color: var(--navy-light); }
.field input:focus, .field textarea:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
.hp { position: absolute; left: -9999px; }

@media (max-width: 640px) {
  .hero { padding: 3rem 0 2.5rem; }
  .section { padding: 2.5rem 0; }
  .band { padding: 2.75rem 0; }
  .form-grid { grid-template-columns: 1fr; }
  /* Keep the wrapped nav row inside the page gutter. */
  .brand img { height: 38px; }
  .site-nav { gap: 0.9rem 1rem; }
  .site-nav a { font-size: 0.9rem; }
  .site-nav .btn { padding: 0.5rem 0.95rem; }
  .site-footer { margin-top: 2.25rem; }
}
