/* ================================================================
   USHSG - Shared Design System v5
   Palette: Deep navy / White / Steel blue accent / Gold CTA
   No green. No teal. Professional, precise, authoritative.
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,700;0,9..144,800;1,9..144,400&family=Inter:wght@300;400;500;600&display=swap');

:root {
  /* Core - near-black ink */
  --ink:        #0d1b2e;   /* deep navy, not pure black */
  --ink-80:     #1a2d45;
  --ink-60:     #2c4362;
  --body:       #3d5166;
  --muted:      #5e7285;
  --subtle:     #8fa3b3;
  --line:       #dde5ec;
  --line-soft:  #eef2f6;
  --surface:    #f6f9fc;
  --white:      #ffffff;

  /* Accent - steel blue. Sharp, credible, no green */
  --accent:     #1e5fa8;   /* deep steel blue - medical authority */
  --accent-dark:#164d8c;
  --accent-soft:#eff4fb;

  /* Gold - CTA heat, active states */
  --gold:       #c9610a;   /* slightly deeper amber, refined */
  --gold-light: #fef0e0;

  /* Typography */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', ui-sans-serif, system-ui, sans-serif;

  /* Layout */
  --container:  1200px;
  --header-h:   70px;
  --r-lg:       20px;
  --r-md:       12px;
  --r-sm:        8px;

  /* Shadows */
  --sh-xs: 0 1px 2px rgba(13,27,46,.05);
  --sh-sm: 0 1px 3px rgba(13,27,46,.08), 0 1px 2px rgba(13,27,46,.04);
  --sh-md: 0 4px 16px rgba(13,27,46,.08);
  --sh-lg: 0 16px 48px rgba(13,27,46,.10);
  --sh-xl: 0 32px 80px rgba(13,27,46,.13);
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  margin: 0;
  color: var(--body);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  max-width: 100vw;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
::selection { background: var(--gold-light); color: var(--ink); }

/* ── Skip link ───────────────────────────────────────────────── */
.skip-link {
  position: fixed; z-index: 9999; left: 16px; top: 12px;
  transform: translateY(-150%);
  background: var(--white); color: var(--accent);
  padding: 10px 16px; border-radius: 8px;
  font-weight: 700; box-shadow: var(--sh-xl); font-size: .875rem;
  transition: transform .2s;
}
.skip-link:focus { transform: translateY(0); }

/* ── Container ───────────────────────────────────────────────── */
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }

/* ── Eyebrow label ───────────────────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 14px;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: .72rem; font-weight: 700;
  letter-spacing: .16em; line-height: 1.2;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px; flex: 0 0 6px;
  border-radius: 50%; background: var(--gold);
}

/* ── Section head ────────────────────────────────────────────── */
.section-head { max-width: 780px; margin-bottom: 56px; }
.section-head h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 3.4rem);
  font-weight: 700; line-height: 1.06; letter-spacing: -.02em;
}
.section-head p:not(.eyebrow) {
  max-width: 640px; margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(.95rem, 1.2vw, 1.08rem);
  line-height: 1.7;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 44px; padding: 11px 22px;
  border: 1.5px solid transparent; border-radius: var(--r-sm);
  font-family: var(--font-display); font-size: .875rem; font-weight: 700;
  line-height: 1.2; cursor: pointer; white-space: nowrap;
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease, border-color .16s ease;
  text-decoration: none;
  min-width: 0;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 15px; height: 15px; flex-shrink: 0; }

/* Primary - deep navy */
.btn-primary {
  background: var(--ink); color: var(--white);
  box-shadow: 0 2px 8px rgba(13,27,46,.18);
}
.btn-primary:hover { background: var(--ink-80); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(13,27,46,.22); }

/* Accent - steel blue */
.btn-accent {
  background: var(--accent); color: var(--white);
  box-shadow: 0 2px 8px rgba(30,95,168,.22);
}
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(30,95,168,.30); }

/* Outline */
.btn-outline {
  background: transparent; color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--sh-xs);
}
.btn-outline:hover { border-color: #94a3b8; background: var(--surface); transform: translateY(-1px); }

/* Ghost on dark */
.btn-ghost-white {
  background: rgba(255,255,255,.1); color: var(--white);
  border-color: rgba(255,255,255,.28);
}
.btn-ghost-white:hover { background: rgba(255,255,255,.17); border-color: rgba(255,255,255,.55); transform: translateY(-1px); }

/* Gold CTA — #8b4400 on white = 5.31:1 WCAG AA pass; on --ink = 4.62:1 pass */
.btn-gold {
  background: #8b4400; color: var(--white);
  box-shadow: 0 2px 8px rgba(139,68,0,.26);
}
.btn-gold:hover { background: #6f3600; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(139,68,0,.34); }

/* ── Header / Nav ────────────────────────────────────────────── */
.site-header {
  position: sticky; z-index: 1000; top: 0;
  height: var(--header-h);
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(20px) saturate(1.5);
}
.header-inner {
  height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0;
}
.brand-mark {
  position: relative; display: grid; place-items: center;
  width: 38px; height: 38px; flex: 0 0 38px;
  border-radius: 9px; background: var(--ink); color: var(--white);
  font-family: var(--font-display); font-size: .84rem; font-weight: 800; letter-spacing: -.03em;
}
.brand-mark::after {
  content: ""; position: absolute; right: 6px; top: 6px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--gold);
}
.brand-copy { display: grid; line-height: 1.2; }
.brand-name {
  color: var(--ink); font-family: var(--font-display);
  font-size: .9rem; font-weight: 700; letter-spacing: -.015em;
}
.brand-tag { color: var(--muted); font-size: .68rem; margin-top: 2px; letter-spacing: .01em; }

/* Desktop nav */
.desktop-nav { display: flex; align-items: center; gap: 6px; }
.desktop-nav a:not(.btn) {
  padding: 8px 12px; border-radius: 6px;
  color: var(--body); font-size: .875rem; font-weight: 500;
  transition: background-color .14s, color .14s;
}
.desktop-nav a:not(.btn):hover { background: var(--surface); color: var(--ink); }
.desktop-nav a.active { color: var(--ink); font-weight: 600; }

/* Mobile */
.menu-button {
  display: none; width: 40px; height: 40px; padding: 0;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--white); color: var(--ink); cursor: pointer;
}
.menu-button span, .menu-button::before, .menu-button::after {
  content: ""; display: block; width: 17px; height: 1.5px;
  margin: 4px auto; background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}
.menu-button[aria-expanded="true"] span { opacity: 0; }
.menu-button[aria-expanded="true"]::before { transform: translateY(5.5px) rotate(45deg); }
.menu-button[aria-expanded="true"]::after  { transform: translateY(-5.5px) rotate(-45deg); }
.mobile-nav {
  position: fixed; z-index: 999; inset: var(--header-h) 0 auto;
  padding: 14px 20px 24px;
  background: var(--white); border-bottom: 1px solid var(--line);
  box-shadow: var(--sh-xl);
  transform: translateY(-115%); opacity: 0; visibility: hidden;
  transition: transform .22s ease, opacity .22s ease, visibility .22s;
}
.mobile-nav.open { transform: translateY(0); opacity: 1; visibility: visible; }
.mobile-nav a {
  display: flex; align-items: center; min-height: 46px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink); font-weight: 600;
}
.mobile-nav .btn { margin-top: 14px; justify-content: center; border: 0; width: 100%; }

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
  background: var(--ink); color: rgba(255,255,255,.42);
  padding: 52px 0 32px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand-col .brand { margin-bottom: 16px; }
.footer-brand-col .brand-mark { background: rgba(255,255,255,.08); }
.footer-brand-col .brand-name { color: var(--white); }
.footer-brand-col .brand-tag { color: rgba(255,255,255,.72); } /* raised from .38 for contrast */
.footer-desc { color: rgba(255,255,255,.70); font-size: .83rem; line-height: 1.65; max-width: 280px; } /* raised from .40 for contrast */
.footer-col h3, .footer-col h4 { /* h3 is the correct level after footer section context; h4 kept for backwards compat */
  color: var(--white); font-family: var(--font-display);
  font-size: .75rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; margin: 0 0 16px;
}
.footer-col ul { margin: 0; padding: 0; list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: rgba(255,255,255,.72); font-size: .85rem; transition: color .15s; } /* raised from .45 for contrast */
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px; padding-top: 24px;
  font-size: .72rem; color: rgba(255,255,255,.62); /* raised from .28 for contrast */
}
.footer-bottom a { color: rgba(255,255,255,.72); } /* raised from .38 for contrast */
.footer-bottom a:hover { color: var(--white); }
.footer-legal { max-width: 700px; line-height: 1.55; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .desktop-nav { display: none; }
  .menu-button { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 600px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .brand-tag { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ── Utilities ───────────────────────────────────────────────── */
/* Focus indicators — WCAG 2.1 AA: visible on all backgrounds */
:focus-visible {
  outline: 2px solid #1e5fa8;
  outline-offset: 3px;
  border-radius: 3px;
}
/* On dark/ink backgrounds, use a high-contrast gold ring */
.site-header :focus-visible,
.hero-section :focus-visible,
.cta-band :focus-visible,
.focus-band :focus-visible,
.eng-band :focus-visible,
.footer-main :focus-visible,
.footer-nav-wrap :focus-visible,
.footer-inquiry-strip :focus-visible,
.mobile-nav :focus-visible {
  outline-color: #f59e42;
  outline-width: 2px;
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ── Inquiry Modal ───────────────────────────────────────────── */
.inquiry-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(13,27,46,.72);
  backdrop-filter: blur(6px);
  align-items: center; justify-content: center;
  padding: 20px;
}
.inquiry-overlay.open { display: flex; animation: overlayIn .18s ease; }
@keyframes overlayIn {
  from { opacity: 0; } to { opacity: 1; }
}
.inquiry-modal {
  width: 100%; max-width: 520px;
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-xl);
  overflow: hidden;
  animation: modalIn .2s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(14px) scale(.98); }
  to   { opacity: 1; transform: none; }
}
.inquiry-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 28px 18px;
  border-bottom: 1px solid var(--line);
}
.inquiry-modal-head h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 700;
}
.inquiry-modal-head p {
  margin: 4px 0 0;
  color: var(--muted); font-size: .8rem;
}
.inquiry-close {
  width: 32px; height: 32px; border: 0; background: var(--surface);
  border-radius: 6px; cursor: pointer; color: var(--muted);
  display: grid; place-items: center; flex-shrink: 0;
  transition: background .14s, color .14s;
}
.inquiry-close:hover { background: var(--line); color: var(--ink); }
.inquiry-modal-body { padding: 24px 28px; }
.inquiry-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.inquiry-field label {
  color: var(--ink);
  font-family: var(--font-display); font-size: .76rem; font-weight: 700; letter-spacing: .04em;
}
.inquiry-field input,
.inquiry-field select,
.inquiry-field textarea {
  padding: 10px 13px;
  border: 1.5px solid var(--line); border-radius: var(--r-sm);
  background: var(--surface); color: var(--ink); font-size: .9rem;
  transition: border-color .16s, box-shadow .16s; outline: none; width: 100%;
}
.inquiry-field input:focus,
.inquiry-field select:focus,
.inquiry-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(30,95,168,.1);
}
.inquiry-field textarea { resize: vertical; min-height: 90px; }
.inquiry-modal-foot {
  padding: 0 28px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.inquiry-note { font-size: .72rem; color: var(--muted); }
.inquiry-success {
  display: none;
  padding: 24px 28px;
  text-align: center;
}
.inquiry-success .is-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent-soft);
  display: grid; place-items: center; margin: 0 auto 14px;
}
.inquiry-success .is-icon svg { width: 22px; height: 22px; color: var(--accent); }
.inquiry-success h4 {
  margin: 0 0 6px; color: var(--ink);
  font-family: var(--font-display); font-size: 1rem; font-weight: 700;
}
.inquiry-success p { margin: 0; color: var(--muted); font-size: .88rem; }

/* Footer inquiry strip */
.footer-inquiry-strip {
  background: var(--ink-80);
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding: 28px 0;
  margin-bottom: 0;
}
.footer-inquiry-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.footer-inquiry-copy p {
  margin: 0; color: rgba(255,255,255,.55);
  font-size: .9rem; line-height: 1.5;
}
.footer-inquiry-copy strong { color: var(--white); font-family: var(--font-display); }
.footer-inquiry-actions { display: flex; gap: 10px; flex-shrink: 0; }
@media (max-width: 600px) {
  .footer-inquiry-inner { flex-direction: column; align-items: stretch; }
  .footer-inquiry-actions { flex-direction: column; }
  .footer-inquiry-actions .btn { width: 100%; justify-content: center; }
}

/* Footer legal links */
.footer-legal-links {
  display: flex; gap: 16px; align-items: center;
}
.footer-legal-links a {
  color: var(--white); font-size: .8rem; /* raised from --muted for contrast on dark bg */
  text-decoration: underline; text-underline-offset: 3px;
}
.footer-legal-links a:hover { color: var(--ink); }

/* ── Inquiry panel ───────────────────────────────────────────── */
.inq-overlay {
  display: none; position: fixed; inset: 0; z-index: 1400;
  background: rgba(13,27,46,.45); backdrop-filter: blur(4px);
  opacity: 0; transition: opacity .3s;
}
.inq-overlay.inq-open { display: block; }
.inq-overlay.inq-visible { opacity: 1; }
.inq-panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 1500;
  width: min(480px, 100vw);
  background: var(--white);
  box-shadow: -8px 0 48px rgba(13,27,46,.18);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  overflow: hidden;
}
.inq-panel.inq-open { transform: translateX(0); }
.inq-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 28px 28px 0;
  flex-shrink: 0;
}
.inq-step-label {
  font-size: .68rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 4px;
}
.inq-title {
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 700;
  color: var(--ink); margin: 0; line-height: 1.2; letter-spacing: -.02em;
}
.inq-close {
  background: none; border: none; font-size: 1.4rem; cursor: pointer;
  color: var(--muted); padding: 2px 6px; line-height: 1;
  border-radius: 4px; flex-shrink: 0; margin-top: -2px;
}
.inq-close:hover { color: var(--ink); background: var(--surface); }
.inq-progress {
  height: 3px; background: var(--line); margin: 16px 28px 0; border-radius: 2px; flex-shrink: 0;
}
.inq-progress-bar {
  height: 100%; background: var(--accent); border-radius: 2px;
  transition: width .35s ease; width: 33.3%;
}
.inq-form { flex: 1; overflow-y: auto; padding: 24px 28px 8px; display: flex; flex-direction: column; }
.inq-step { display: flex; flex-direction: column; gap: 16px; }
.inq-step--hidden { display: none; }
.inq-field { display: flex; flex-direction: column; gap: 6px; }
.inq-label { font-size: .8rem; font-weight: 600; color: var(--ink); }
.inq-label span { font-weight: 400; color: var(--muted); }
.inq-input, .inq-select, .inq-textarea {
  padding: 11px 14px; border: 1.5px solid var(--line);
  border-radius: var(--r-sm); font-family: var(--font-body); font-size: .875rem;
  color: var(--ink); background: var(--white); width: 100%;
  transition: border-color .2s;
}
.inq-input:focus, .inq-select:focus, .inq-textarea:focus {
  outline: none; border-color: var(--accent);
}
.inq-textarea { resize: vertical; min-height: 80px; }
.inq-radio-group, .inq-check-group { display: flex; flex-direction: column; gap: 8px; }
.inq-radio-item, .inq-check-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border: 1.5px solid var(--line);
  border-radius: var(--r-sm); cursor: pointer;
  font-size: .85rem; color: var(--ink);
  transition: border-color .15s, background .15s;
}
.inq-radio-item:hover, .inq-check-item:hover { border-color: var(--accent); background: var(--accent-soft); }
.inq-radio-item input, .inq-check-item input { accent-color: var(--accent); }
.inq-consent { font-size: .78rem; color: var(--muted); line-height: 1.55; display: flex; gap: 8px; align-items: flex-start; }
.inq-consent input { accent-color: var(--accent); margin-top: 2px; flex-shrink: 0; }
.inq-consent a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.inq-success-msg { text-align: center; padding: 40px 0 20px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.inq-success-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; }
.inq-success-icon svg { width: 24px; height: 24px; color: var(--accent); }
.inq-success-msg h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--ink); margin: 0; }
.inq-success-msg p { color: var(--muted); font-size: .88rem; line-height: 1.6; margin: 0; max-width: 320px; }
.inq-footer {
  padding: 16px 28px 28px; display: flex; gap: 10px; justify-content: flex-end;
  flex-shrink: 0; border-top: 1px solid var(--line);
}
