/* Xavier Healthcare Revenue Support Services — shared styles */
:root {
  --navy: #0b1f4e;
  --navy-deep: #071537;
  --teal: #0c7885;          /* text-safe teal on white */
  --teal-mid: #0f98a6;
  --teal-bright: #29bccb;   /* accents on navy */
  --paper: #f4f7f9;
  --white: #ffffff;
  --ink: #16213a;
  --muted: #56617a;
  --rule: #d6dee7;
  --ok: #0f8a6a;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --script: "Allura", "Brush Script MT", cursive;

  --wrap: 1180px;
  --radius-s: 6px;
  --radius-m: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--teal-bright); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; color: var(--navy); letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4.1rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--white); padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: 600 1rem/1.2 var(--sans);
  padding: .95rem 1.4rem; border-radius: var(--radius-s);
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--teal-mid); color: var(--white); }
.btn-primary:hover { background: var(--teal); color: var(--white); }
.btn-ghost { border-color: rgba(255,255,255,.55); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); color: var(--white); background: rgba(255,255,255,.08); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-deep); color: var(--white); }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 76px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--navy); margin-right: auto; }
.brand img { width: 38px; height: auto; }
.brand-name { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name strong, .brand-name span { white-space: nowrap; }
.brand-name strong { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; letter-spacing: .01em; }
.brand-name span { font-size: .72rem; letter-spacing: .08em; color: var(--teal); font-weight: 600; }
.nav { display: flex; gap: 1.4rem; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .98rem; }
.nav a:hover { color: var(--teal); }
.menu-btn { display: none; background: none; border: 1px solid var(--rule); border-radius: var(--radius-s); padding: .5rem .7rem; font: 600 .9rem var(--sans); color: var(--navy); cursor: pointer; }
.site-header .btn { padding: .7rem 1.05rem; font-size: .95rem; }
@media (max-width: 900px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--rule); flex-direction: column; gap: 0; padding: .5rem 1.25rem 1rem; }
  .nav.open { display: flex; }
  .nav a { padding: .75rem 0; border-bottom: 1px solid var(--rule); }
  .menu-btn { display: inline-block; }
  .site-header .btn-header { display: none; }
}

/* Footer */
.site-footer { background: var(--navy-deep); color: #c9d3e6; padding: 3.5rem 0 2.5rem; font-size: .95rem; }
.site-footer a { color: #e3ebf7; }
.footer-grid { display: grid; grid-template-columns: auto 1fr auto; gap: 2.5rem; align-items: start; }
.seal { width: 112px; height: 112px; border-radius: 50%; background: var(--white); padding: 6px; }
.footer-tagline { font-family: var(--serif); font-size: 1.35rem; color: var(--white); line-height: 1.35; margin-bottom: .75rem; }
.footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.25rem; font-size: .85rem; color: #9fb0cc; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* Forms (shared) */
.field { display: grid; gap: .4rem; margin-bottom: 1.1rem; }
.field label, .q-label { font-weight: 600; color: var(--ink); }
.req { color: var(--teal); font-weight: 700; }
input[type=text], input[type=email], input[type=tel], input[type=number], select, textarea {
  width: 100%; font: 400 1rem/1.45 var(--sans); color: var(--ink);
  padding: .8rem .9rem; border: 1px solid #b9c5d3; border-radius: var(--radius-s); background: var(--white);
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal-mid); box-shadow: 0 0 0 3px rgba(15,152,166,.22); }
.hp { position: absolute; left: -5000px; }
.hint { font-size: .9rem; color: var(--muted); }
