/* =================================================================
   Health Care 2000, Inc — design tokens
   Ink Navy #0F1F33 · Bone #EDE9DE · Brass #B8863A · Slate #4A5A6A
   Display: "Fraunces" / Body & UI: "IBM Plex Sans"
   ================================================================= */

:root {
  --ink: #0f1f33;
  --ink-soft: #17293f;
  --slate: #4a5a6a;
  --slate-light: #7c8a97;
  --bone: #ede9de;
  --bone-dim: #e3ded0;
  --paper: #faf9f5;
  --brass: #b8863a;
  --brass-light: #d9ab5e;
  --white: #ffffff;
  --line: rgba(15, 31, 51, 0.14);
  --line-on-dark: rgba(237, 233, 222, 0.22);

  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;

  --max-width: 1180px;
  --radius: 3px;
  --shadow-card: 0 1px 0 var(--line), 0 12px 24px -18px rgba(15, 31, 51, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p { max-width: 62ch; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

:focus-visible {
  outline: 2.5px solid var(--brass);
  outline-offset: 3px;
}

/* -------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.btn-primary {
  background: var(--brass);
  color: var(--ink);
}
.btn-primary:hover { background: var(--brass-light); }

.btn-ghost {
  background: transparent;
  border-color: var(--line-on-dark);
  color: var(--bone);
}
.btn-ghost:hover { border-color: var(--brass-light); color: var(--brass-light); }

.btn-outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-outline:hover { border-color: var(--brass); color: var(--brass); background: rgba(184,134,58,0.08); }

.icon { width: 1em; height: 1em; }

/* -------------------------------------------------- top utility bar */

.utility-bar {
  background: var(--ink);
  color: var(--bone-dim);
  font-size: 0.82rem;
}
.utility-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 20px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.utility-bar a { display: inline-flex; align-items: center; gap: 6px; }
.utility-bar a:hover { color: var(--brass-light); }
.utility-bar .divider { opacity: 0.35; }

/* -------------------------------------------------- header / nav */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 249, 245, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--ink);
}
.brand-name small {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--slate);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}
.main-nav a {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover { border-color: var(--brass); }

.header-cta {
  display: flex;
  align-items: center;
  gap: 18px;
}
.header-phone {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.header-phone .icon { color: var(--brass); }

.nav-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 10px;
  cursor: pointer;
}

/* -------------------------------------------------- hero */

.hero {
  position: relative;
  background: var(--ink);
  color: var(--bone);
  overflow: hidden;
  padding: 92px 0 76px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
  gap: 56px;
  align-items: center;
}

.eyebrow-line {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--brass-light);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 22px;
}
.eyebrow-line::before {
  content: "";
  width: 30px;
  height: 1.5px;
  background: var(--brass-light);
}

.hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.35rem);
  color: var(--white);
  max-width: 16ch;
}

.hero-sub {
  color: var(--bone-dim);
  font-size: 1.08rem;
  max-width: 46ch;
  margin: 18px 0 32px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-facts {
  display: flex;
  gap: 34px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line-on-dark);
  padding-top: 26px;
}
.hero-facts dt {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--brass-light);
}
.hero-facts dd {
  margin: 2px 0 0;
  font-size: 0.82rem;
  color: var(--bone-dim);
  max-width: 16ch;
}

.hero-art {
  position: relative;
}
.hero-art svg { width: 100%; height: auto; }

/* line-chart draw-in, one orchestrated reveal on load */
.hero-art .chart-line {
  stroke-dasharray: 1100;
  stroke-dashoffset: 1100;
  animation: draw 1.8s cubic-bezier(.3,.8,.3,1) 0.2s forwards;
}
.hero-art .chart-node {
  opacity: 0;
  animation: fade-in 0.5s ease forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade-in { to { opacity: 1; } }

/* -------------------------------------------------- section scaffolding */

.section { padding: 88px 0; }
.section-alt { background: var(--bone); }
.section-header {
  max-width: 640px;
  margin-bottom: 48px;
}
.section-kicker {
  color: var(--brass);
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 10px;
}
.section-header h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); color: var(--ink); }
.section-header p { color: var(--slate); font-size: 1.04rem; }

/* -------------------------------------------------- products */

.product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 54px;
  align-items: start;
  padding: 46px 0;
}
.product + .product { border-top: 1px solid var(--line); }

.product-media {
  background: var(--ink);
  border-radius: var(--radius);
  padding: 34px;
  color: var(--bone);
}
.product-media h4 {
  font-family: var(--font-body);
  color: var(--brass-light);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 18px;
}
.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.feature-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.92rem;
  color: var(--bone-dim);
}
.feature-list .icon { flex: none; margin-top: 3px; color: var(--brass-light); }

.product-body .badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--bone-dim);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.product-body h3 { font-size: 1.55rem; }
.product-body p { color: var(--slate); }
.product-body .learn-more {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 2px solid var(--brass);
  padding-bottom: 2px;
}
.product-body .learn-more:hover { color: var(--brass); }

.badge-ai {
  margin-left: 8px;
  background: var(--ink);
  color: var(--brass-light);
  border-color: var(--ink);
}

.ai-callout {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brass);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 22px 0;
}
.ai-callout-icon {
  flex: none;
  width: 30px;
}
.ai-callout h4 {
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
.ai-callout p { color: var(--slate); font-size: 0.92rem; margin: 0 0 10px; }
.ai-callout-note {
  font-size: 0.82rem !important;
  color: var(--slate-light) !important;
  margin: 0 !important;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

/* -------------------------------------------------- why us */

.reasons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.reason {
  background: var(--paper);
  padding: 30px 26px;
}
.reason .icon-wrap {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  color: var(--brass);
}
.reason h3 {
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
}
.reason p { font-size: 0.9rem; color: var(--slate); margin: 0; }

/* -------------------------------------------------- about */

.about-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
  gap: 60px;
}
.about-copy p { color: var(--slate); font-size: 1.02rem; }
.about-stats {
  display: grid;
  gap: 20px;
  align-content: start;
  border-left: 1px solid var(--line);
  padding-left: 32px;
}
.about-stats .stat dt {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ink);
}
.about-stats .stat dd {
  margin: 2px 0 0;
  color: var(--slate);
  font-size: 0.86rem;
}

/* -------------------------------------------------- CTA band */

.cta-band {
  background: var(--ink);
  color: var(--bone);
  padding: 64px 0;
}
.cta-band .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
.cta-band h2 { color: var(--white); font-size: 1.7rem; max-width: 20ch; margin: 0; }
.cta-band-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* -------------------------------------------------- contact */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
}
.contact-card h3 {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--brass);
  margin-bottom: 12px;
}
.contact-card address,
.contact-card p {
  font-style: normal;
  color: var(--slate);
  font-size: 0.94rem;
  margin: 0 0 6px;
}
.contact-card a:hover { color: var(--brass); }
.contact-card .name { color: var(--ink); font-weight: 600; }

/* -------------------------------------------------- links + certification */

.resources-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
  gap: 54px;
}
.link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px 24px;
}
.link-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.link-list a:hover { color: var(--brass); }
.link-list .icon { flex: none; color: var(--slate-light); width: 0.85em; height: 0.85em; }

.certification-card {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px;
  text-align: center;
}
.certification-card svg { margin: 0 auto 14px; }
.certification-card p {
  font-size: 0.82rem;
  color: var(--slate);
  margin: 0 auto;
}

/* -------------------------------------------------- footer */

.site-footer {
  background: var(--ink);
  color: var(--bone-dim);
  padding: 52px 0 26px;
  font-size: 0.88rem;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line-on-dark);
  margin-bottom: 22px;
}
.footer-brand .brand-name { color: var(--bone); }
.footer-brand .brand-name small { color: var(--slate-light); }
.footer-nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.footer-nav a:hover { color: var(--brass-light); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--slate-light);
}

/* -------------------------------------------------- responsive */

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .product { grid-template-columns: 1fr; }
  .about-wrap { grid-template-columns: 1fr; }
  .about-stats { border-left: none; border-top: 1px solid var(--line); padding-left: 0; padding-top: 24px; }
  .resources-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .main-nav, .header-cta .header-phone-label { display: none; }
  .nav-toggle { display: inline-flex; }
  .utility-bar .container { justify-content: center; text-align: center; }
  .site-header .container { height: 68px; }
  .section { padding: 64px 0; }
}

/* mobile nav drawer */
.main-nav[data-open="true"] {
  display: flex;
  position: absolute;
  top: 68px;
  left: 0; right: 0;
  background: var(--paper);
  flex-direction: column;
  align-items: flex-start;
  padding: 18px 28px 26px;
  border-bottom: 1px solid var(--line);
  gap: 16px;
}
@media (min-width: 761px) {
  .main-nav[data-open="true"] { position: static; padding: 0; border: none; flex-direction: row; }
}
