/* National Provider Data Registry - Verified — solution brief (static) */

:root {
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 12px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  --logo-frame-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.08);
  --transition: 0.2s ease;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg-page: #0f172a;
  --bg-card: #1e293b;
  --bg-card-hover: #243447;
  --text: #e8edf7;
  --text-muted: #94a3b8;
  --border: rgba(255, 255, 255, 0.08);
  --accent: #5b9fd4;
  --accent-soft: rgba(91, 159, 212, 0.15);
  --header-title: #99fadc;
  --header-kicker-color: #94a3b8;
  --tagline-emphasis: #4d7c44;
  --hero-base: #0a1524;
  /* Hero bitmap (hex / bokeh) + left-weighted scrim so title & logo stay readable */
  --header-photo: url("assets/header-hero-bg.png");
  --header-stack:
    linear-gradient(
      100deg,
      rgba(4, 10, 20, 0.97) 0%,
      rgba(10, 20, 36, 0.9) 32%,
      rgba(15, 27, 46, 0.62) 56%,
      rgba(12, 22, 38, 0.28) 78%,
      rgba(8, 14, 24, 0.08) 100%
    ),
    linear-gradient(180deg, rgba(0, 0, 0, 0.42) 0%, transparent 52%),
    var(--header-photo);
}

html[data-theme="light"] {
  color-scheme: light;
  --bg-page: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: rgba(15, 23, 42, 0.1);
  --accent: #1e6ea8;
  --accent-soft: rgba(30, 110, 168, 0.1);
  --header-title: #0d7a5c;
  --header-kicker-color: #64748b;
  --tagline-emphasis: #3d6b36;
  --hero-base: #e8f0f8;
  --header-photo: url("assets/header-hero-bg.png");
  --header-stack:
    linear-gradient(
      100deg,
      rgba(248, 250, 252, 0.96) 0%,
      rgba(240, 249, 255, 0.88) 38%,
      rgba(224, 242, 254, 0.55) 68%,
      rgba(255, 255, 255, 0.12) 100%
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, transparent 48%),
    var(--header-photo);
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-page);
  min-height: 100vh;
}

/* --- Site header (hero band + graphic) --- */
.site-header {
  position: relative;
  /* Horizontal inset matches <main> so tools (theme toggle) align with body column edges */
  padding: 13px 0 2.65rem;
  background-color: var(--hero-base);
  background-image: var(--header-stack);
  background-size: cover, cover, cover;
  background-position: center, center, 88% center;
  background-repeat: no-repeat;
  border-bottom: 1px solid var(--border);
}

.site-header-inner {
  box-sizing: border-box;
  max-width: 1120px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.55rem;
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  flex-shrink: 0;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  min-width: 0;
}

.brand-logo-frame {
  flex-shrink: 0;
  padding: 13px;
  background: #ffffff;
  border-radius: 1.35rem;
  box-shadow: var(--logo-frame-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo {
  width: 94px;
  height: auto;
  display: block;
  max-width: 100%;
}

.title-block {
  min-width: 0;
}

.title-block h1 {
  font-family: var(--font-sans);
  font-size: clamp(1.485rem, 3.45vw, 2rem);
  font-weight: 700;
  margin: 0 0 0.3rem;
  letter-spacing: -0.03em;
  line-height: 1.18;
  color: var(--header-title);
}

.header-kicker {
  margin: 0 0 0.55rem;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--header-kicker-color);
  letter-spacing: 0.01em;
}

.tagline-notice {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--tagline-emphasis);
  margin: 0 0 0.42rem;
  max-width: 50rem;
}

.tagline-sub {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: min(56rem, 100%);
  line-height: 1.45;
}

.btn.theme-toggle {
  font-family: var(--font-sans);
  font-size: 0.81rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}

.btn.theme-toggle:hover {
  background: var(--bg-card-hover);
}

/* --- Main --- */
main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

section {
  margin-bottom: 2.75rem;
}

section h2 {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent-soft);
  letter-spacing: -0.02em;
}

.lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  box-shadow: var(--shadow);
  transition: background var(--transition), transform 0.15s ease;
}

.card:hover {
  background: var(--bg-card-hover);
}

.card h3 {
  font-size: 1.05rem;
  margin: 0 0 0.65rem;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.45rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  background: var(--accent-soft);
  color: var(--accent);
}

.card p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--text-muted);
}

.card p.card-cta {
  margin-top: 0.85rem;
}

.card a {
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.card a:hover {
  text-decoration: underline;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.pill {
  font-size: 0.8rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

.cta-strip {
  margin-top: 2.5rem;
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cta-strip a {
  display: inline-block;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.cta-strip a:hover {
  text-decoration: underline;
}

footer {
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

@media (max-width: 640px) {
  .brand-lockup {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand-logo-frame {
    align-self: flex-start;
  }
}
