/* iMed.com — hospital & practice management remake */
:root {
  --navy: #0A2A4A;
  --navy-deep: #061B32;
  --navy-mid: #143A5C;
  --teal: #1B8A9A;
  --teal-bright: #2AA8BA;
  --teal-soft: rgba(27, 138, 154, 0.12);
  --sky: #E8F4F7;
  --ink: #1A2433;
  --muted: #5A6B7D;
  --line: #D8E2EC;
  --bg: #F5F8FB;
  --white: #ffffff;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 16px 48px rgba(10, 42, 74, 0.1);
  --font: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --display: "DM Sans", "Source Sans 3", system-ui, sans-serif;
  --max: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 1.05rem;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 {
  font-family: var(--display);
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: var(--navy);
  margin: 0 0 0.55em;
  font-weight: 700;
}
h1 { font-size: clamp(2.15rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.65rem, 3vw, 2.35rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.015em; }
p { margin: 0 0 1rem; color: var(--muted); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 40rem; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus {
  left: 1rem; top: 1rem; z-index: 1000; padding: .5rem 1rem;
  background: var(--navy); color: #fff; border-radius: 6px;
}
.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.section { padding: 4.75rem 0; }
.section-sm { padding: 3.25rem 0; }
.band { background: var(--bg); }
.band-navy { background: var(--navy-deep); color: #fff; }
.band-navy h2, .band-navy h3 { color: #fff; }
.band-navy p, .band-navy .lead { color: rgba(255,255,255,.78); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--teal); margin-bottom: .85rem;
}
.eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal); box-shadow: 0 0 0 4px var(--teal-soft);
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 24px rgba(10,42,74,.06);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 74px;
}
.brand {
  display: flex; align-items: center; gap: .55rem;
  text-decoration: none; color: var(--navy); font-weight: 800;
  font-family: var(--display); letter-spacing: -.02em; font-size: 1.2rem;
}
.brand img { height: 28px; width: auto; }
.brand:hover { color: var(--navy); }
.brand .dot { color: var(--teal); }
.nav { display: flex; align-items: center; gap: .05rem; flex-wrap: wrap; }
.nav a {
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: .88rem;
  padding: .5rem .62rem; border-radius: 8px;
}
.nav a:hover, .nav a[aria-current="page"] { background: var(--bg); color: var(--navy); }
.nav .cta:hover, .nav .cta[aria-current="page"] { background: var(--teal); color: #fff !important; }
.nav .cta {
  background: var(--navy); color: #fff !important; margin-left: .3rem;
  padding: .55rem 1rem;
}
.nav .cta:hover { background: var(--teal); }
.nav-toggle {
  display: none; border: 1px solid var(--line); background: #fff;
  border-radius: 8px; width: 42px; height: 42px; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--navy); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  font-weight: 700; font-size: .95rem; border-radius: 10px;
  padding: .8rem 1.35rem; text-decoration: none; border: none; cursor: pointer;
  transition: background .2s var(--ease), transform .15s, box-shadow .2s;
  font-family: var(--display);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: #fff !important; }
.btn-primary:hover { background: var(--teal-bright); color: #fff !important; }
.btn-secondary {
  background: #fff; color: var(--navy) !important;
  border: 1.5px solid var(--line);
}
.btn-secondary:hover { border-color: var(--teal); color: var(--teal) !important; }
.btn-ghost { background: transparent; color: #fff !important; border: 1.5px solid rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff !important; }
.btn-navy { background: var(--navy); color: #fff !important; }
.btn-navy:hover { background: var(--navy-mid); color: #fff !important; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(145deg, var(--navy-deep) 0%, var(--navy) 55%, #0E4A5A 100%);
  color: #fff; padding: 4.5rem 0 5rem;
}
.hero::after {
  content: ""; position: absolute; inset: auto -20% -40% 40%;
  height: 80%; background: radial-gradient(circle, rgba(42,168,186,.28), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 2.5rem; align-items: center;
}
.hero h1 { color: #fff; margin-bottom: .75rem; }
.hero .lead { color: rgba(255,255,255,.82); }
.hero .eyebrow { color: var(--teal-bright); }
.hero .eyebrow::before { background: var(--teal-bright); box-shadow: 0 0 0 4px rgba(42,168,186,.25); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0 1.75rem; }
.hero-proof {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
  padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.15);
}
.hero-proof strong { display: block; color: #fff; font-size: 1.05rem; font-family: var(--display); }
.hero-proof span { font-size: .82rem; color: rgba(255,255,255,.65); }
.hero-card {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius); padding: 1.5rem; backdrop-filter: blur(8px);
}
.hero-card h3 { color: #fff; font-size: 1.05rem; margin-bottom: .4rem; }
.hero-card p { color: rgba(255,255,255,.72); font-size: .92rem; margin: 0; }
.hero-card + .hero-card { margin-top: .85rem; }

/* Cards / grids */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow);
  transition: transform .2s var(--ease), border-color .2s;
}
.card:hover { transform: translateY(-3px); border-color: #b8d0dc; }
.card img.icon {
  width: 52px; height: 52px; object-fit: cover; border-radius: 12px;
  margin-bottom: 1rem; background: var(--sky);
}
.card h3 { margin-bottom: .4rem; }
.card p { font-size: .95rem; margin-bottom: .75rem; }
.card a.more {
  font-weight: 700; font-size: .9rem; text-decoration: none; color: var(--teal);
}
.card a.more:hover { color: var(--navy); }

.stat-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
  text-align: center;
}
.stat {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.75rem 1.25rem;
}
.stat strong {
  display: block; font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--navy); font-family: var(--display); letter-spacing: -.03em;
}
.stat span { font-size: .9rem; color: var(--muted); }

.quote {
  background: var(--sky); border-left: 4px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.5rem 1.75rem; margin: 0;
}
.quote p {
  font-size: 1.1rem; color: var(--ink); font-style: italic; margin-bottom: .75rem;
}
.quote cite { font-style: normal; font-weight: 700; color: var(--navy); font-size: .92rem; }

.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center;
}
.split img {
  border-radius: var(--radius); box-shadow: var(--shadow); width: 100%;
}
.checklist { list-style: none; margin: 1rem 0 0; padding: 0; }
.checklist li {
  position: relative; padding: .45rem 0 .45rem 1.7rem;
  color: var(--muted);
}
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .75rem;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--teal); box-shadow: inset 0 0 0 3px #fff, 0 0 0 1px var(--teal);
}

.page-hero {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy-mid));
  color: #fff; padding: 3.25rem 0 3rem;
}
.page-hero h1 { color: #fff; }
.page-hero .lead { color: rgba(255,255,255,.8); }
.page-hero .eyebrow { color: var(--teal-bright); }
.page-hero .eyebrow::before { background: var(--teal-bright); box-shadow: 0 0 0 4px rgba(42,168,186,.25); }

.cta-band {
  background: linear-gradient(120deg, var(--teal) 0%, var(--navy) 100%);
  color: #fff; padding: 3.5rem 0; text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 36rem; margin-inline: auto; }
.cta-band .hero-actions { justify-content: center; }

/* Forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-weight: 650; font-size: .88rem; color: var(--navy); margin-bottom: .35rem; }
input, textarea, select {
  width: 100%; padding: .75rem .9rem; border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); font: inherit; color: var(--ink);
  background: #fff; transition: border-color .15s;
}
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft);
}
textarea { min-height: 140px; resize: vertical; }
.form-status { margin-top: .75rem; font-weight: 600; min-height: 1.4em; }
.contact-aside {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.75rem;
}
.contact-aside h3 { margin-bottom: .75rem; }
.contact-aside dl { margin: 0; }
.contact-aside dt { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-top: 1rem; }
.contact-aside dd { margin: .2rem 0 0; color: var(--navy); font-weight: 650; }
.contact-aside a { text-decoration: none; color: var(--navy); }
.contact-aside a:hover { color: var(--teal); }

.prose { max-width: 48rem; }
.prose h2 { margin-top: 2rem; font-size: 1.45rem; }
.prose h3 { margin-top: 1.5rem; }
.prose ul { color: var(--muted); padding-left: 1.25rem; }
.prose li { margin-bottom: .4rem; }

/* Footer */
.site-footer {
  background: var(--navy-deep); color: rgba(255,255,255,.7); padding: 3.5rem 0 1.75rem;
  font-size: .92rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem;
  margin-bottom: 2.5rem;
}
.site-footer h4 {
  color: #fff; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase;
  margin-bottom: 1rem;
}
.site-footer a { color: rgba(255,255,255,.72); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .45rem; }
.footer-brand { color: #fff; font-weight: 800; font-size: 1.2rem; font-family: var(--display); text-decoration: none; }
.footer-brand .dot { color: var(--teal-bright); }
.footer-meta {
  border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.25rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem;
  font-size: .85rem;
}

@media (max-width: 960px) {
  .hero-grid, .split, .cards, .cards-4, .stat-row, .footer-grid { grid-template-columns: 1fr 1fr; }
  .cards-2 { grid-template-columns: 1fr; }
  .nav-toggle { display: flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 74px;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: .75rem 1.25rem 1.25rem;
    box-shadow: 0 12px 30px rgba(10,42,74,.08);
  }
  .nav.open { display: flex; }
  .nav a { padding: .75rem; }
  .nav .cta { margin: .5rem 0 0; text-align: center; }
  .header-inner { position: relative; }
}
@media (max-width: 640px) {
  .hero-grid, .split, .cards, .cards-4, .stat-row, .footer-grid, .form-grid, .hero-proof {
    grid-template-columns: 1fr;
  }
  .hero { padding: 3rem 0 3.5rem; }
}
