/* =========================
   Patients First — styles.css
   Drop-in replacement
   ========================= */

/* ---- Reset / base ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behaviour: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.5;
  color: #0f172a; /* slate-900 */
  background: #fbfbfd;
}

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

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

a:hover {
  text-decoration: underline;
}

p {
  margin: 0 0 1rem;
}

h1, h2, h3 {
  margin: 0 0 0.75rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 3.2vw, 3rem); }
h2 { font-size: clamp(1.4rem, 2.2vw, 2rem); }
h3 { font-size: 1.1rem; }

/* ---- Layout helpers ---- */
.container {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
}

.section {
  padding: clamp(2rem, 4vw, 4rem) 0;
}

.section + .section {
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.section-header {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.muted {
  color: rgba(15, 23, 42, 0.72);
}

.lede {
  font-size: 1.1rem;
  color: rgba(15, 23, 42, 0.72);
  max-width: 70ch;
}

.eyebrow {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(15, 23, 42, 0.65);
  margin-bottom: 0.5rem;
}

/* ---- Header / nav ---- */
header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 251, 253, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.brand .title {
  display: grid;
  line-height: 1.05;
}

.brand .title strong {
  font-size: 1rem;
}

.brand .title span {
  font-size: 0.85rem;
  color: rgba(15, 23, 42, 0.65);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  font-weight: 600;
  color: rgba(15, 23, 42, 0.75);
  text-decoration: none;
  border: 1px solid transparent;
}

.nav-links a:hover {
  background: rgba(15, 23, 42, 0.04);
  text-decoration: none;
}

.nav-links a[aria-current="page"] {
  background: rgba(99, 102, 241, 0.12); /* indigo tint */
  border-color: rgba(99, 102, 241, 0.24);
  color: #111827;
}

/* ---- Buttons ---- */
.actions,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-weight: 700;
  border: 1px solid rgba(15, 23, 42, 0.14);
  text-decoration: none;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.btn.primary {
  background: linear-gradient(135deg, #34d399, #6366f1);
  border-color: rgba(99, 102, 241, 0.25);
  color: #ffffff;
}

.btn.secondary {
  background: #ffffff;
  color: #0f172a;
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.10);
}

/* ---- Hero ---- */
.hero {
  padding: clamp(2.5rem, 6vw, 5rem) 0;
  background:
    radial-gradient(900px 500px at 15% 10%, rgba(99, 102, 241, 0.16), transparent 60%),
    radial-gradient(900px 500px at 85% 15%, rgba(52, 211, 153, 0.16), transparent 60%),
    linear-gradient(to bottom, #fbfbfd, #f6f7ff);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.hero h1 {
  max-width: 22ch;
  margin-bottom: 0.9rem;
}

.hero .lede {
  max-width: 72ch;
}

/* ---- Cards ---- */
.card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
}

.card h3 {
  margin-bottom: 0.75rem;
}

/* ---- Badges (your existing ones) ---- */
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(15, 23, 42, 0.03);
  color: rgba(15, 23, 42, 0.75);
}

.badge.teal {
  background: rgba(52, 211, 153, 0.14);
  border-color: rgba(52, 211, 153, 0.25);
}

.badge.purple {
  background: rgba(99, 102, 241, 0.14);
  border-color: rgba(99, 102, 241, 0.25);
}

/* ---- Lists ---- */
.list {
  margin: 0;
  padding-left: 1.1rem;
}

.list li {
  margin: 0.35rem 0;
  color: rgba(15, 23, 42, 0.78);
}

/* ---- Grids ---- */
.grid {
  display: grid;
  gap: 1rem;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* ---- Steps ---- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.step {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  padding: 1rem 1.15rem;
  position: relative;
  overflow: hidden;
}

.step::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 200px at 10% 0%, rgba(99, 102, 241, 0.12), transparent 60%);
  pointer-events: none;
}

.step h3,
.step p {
  position: relative;
  z-index: 1;
}

.note {
  margin-top: 1rem;
  color: rgba(15, 23, 42, 0.75);
}

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  padding: 1.5rem 0;
  background: #fbfbfd;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(15, 23, 42, 0.70);
  font-weight: 600;
}

.footer-links a:hover {
  color: rgba(15, 23, 42, 0.95);
}

/* ---- Small screen nav polish ---- */
@media (max-width: 720px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }
  .nav-links {
    justify-content: flex-start;
  }
}
