/* Healthcare Registry — modern, clean design */

:root {
  --color-bg: #ffffff;
  --color-surface: #f8fafb;
  --color-surface-elevated: #ffffff;
  --color-text: #0f172a;
  --color-text-secondary: #475569;
  --color-muted: #94a3b8;
  --color-border: #e2e8f0;
  --color-primary: #0b3a4a;
  --color-primary-light: #145a6e;
  --color-accent: #0a7a8a;
  --color-accent-soft: #e6f4f6;
  --color-accent-green: #4caf93;
  --color-link: #0a7a8a;
  --color-link-hover: #0b3a4a;
  --shadow-sm: 0 1px 2px 0 rgb(15 23 42 / 0.04);
  --shadow-md: 0 4px 6px -1px rgb(15 23 42 / 0.06), 0 2px 4px -2px rgb(15 23 42 / 0.04);
  --shadow-lg: 0 10px 15px -3px rgb(15 23 42 / 0.08), 0 4px 6px -4px rgb(15 23 42 / 0.04);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --max-width: 1100px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

/* Disclaimer banner */
.disclaimer-banner {
  background: #fff8e6;
  border-bottom: 1px solid #f0d78c;
  color: #5c4b1e;
  font-size: 0.85rem;
  padding: 10px 24px;
  text-align: center;
}

.disclaimer-banner strong {
  color: #3d2f0a;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

header .container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

header .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}

header .brand img {
  height: 36px;
  width: auto;
}

header nav {
  display: flex;
  gap: 28px;
}

header nav a {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

header nav a:hover {
  color: var(--color-link);
}

/* Main layout */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px 80px;
  min-height: 70vh;
}

/* Hero */
.hero {
  text-align: center;
  padding: 72px 24px 64px;
  background: linear-gradient(180deg, var(--color-accent-soft) 0%, var(--color-bg) 100%);
  border-radius: var(--radius-lg);
  margin-bottom: 48px;
  border: 1px solid var(--color-border);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--color-primary);
  margin: 0 0 16px;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.hero p {
  font-size: 1.2rem;
  color: var(--color-text-secondary);
  margin: 0 0 32px;
}

.hero form {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 640px;
  margin: 0 auto;
}

.hero input[type="text"] {
  flex: 1 1 280px;
  padding: 16px 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  background: var(--color-surface-elevated);
  box-shadow: var(--shadow-sm);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hero input[type="text"]:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(10, 122, 138, 0.12);
}

/* Buttons */
button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-green) 100%);
  color: #fff;
  box-shadow: var(--shadow-md);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

button:hover, .button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

/* Cards */
.provider, .card {
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.provider h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}

.provider .npi {
  color: var(--color-muted);
  font-size: 0.9rem;
  margin: 0 0 24px;
}

.provider h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 28px 0 12px;
}

.provider ul {
  margin: 0;
  padding-left: 20px;
}

.provider li {
  margin-bottom: 6px;
  color: var(--color-text);
}

.provider address {
  font-style: normal;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.provider address a {
  color: var(--color-link);
  text-decoration: none;
  font-weight: 500;
}

.provider address a:hover {
  text-decoration: underline;
}

/* CTA */
.cta {
  margin-top: 32px;
  padding: 28px;
  background: linear-gradient(135deg, var(--color-accent-soft) 0%, #f0fdf4 100%);
  border: 1px solid rgba(10, 122, 138, 0.15);
  border-radius: var(--radius-md);
}

.cta h2 {
  margin-top: 0;
  color: var(--color-primary);
  font-size: 1.25rem;
  text-transform: none;
  letter-spacing: 0;
}

.cta p {
  color: var(--color-text-secondary);
  margin: 0 0 18px;
}

.interruptive-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin: 28px 0;
  padding: 24px;
  background: linear-gradient(135deg, var(--color-accent-soft) 0%, #f0fdf4 100%);
  border: 1px solid rgba(10, 122, 138, 0.18);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.interruptive-cta h3 {
  margin: 0 0 6px;
  color: var(--color-primary);
  font-size: 1.2rem;
}

.interruptive-cta p {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 0.95rem;
}

.interruptive-action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.affiliate-note-cta {
  font-size: 8px;
  color: var(--color-muted);
  line-height: 1.4;
  width: 100%;
}

.affiliate-note {
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-top: 14px;
  line-height: 1.4;
}

.affiliate-note-small {
  font-size: 8px;
  color: var(--color-muted);
  margin: 8px 0 16px;
  line-height: 1.4;
}

/* Definitions and about */
.definition, .about-directory {
  background: var(--color-surface);
  border-left: 4px solid var(--color-accent);
  padding: 18px 22px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 20px 0;
}

.definition p, .about-directory p {
  margin: 0;
  color: var(--color-text-secondary);
}

/* Tests */
.tests {
  margin-top: 32px;
}

.tests .section-lead {
  color: var(--color-text-secondary);
  margin: -8px 0 18px;
}

.test-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.test-list li {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
}

.test-list a {
  color: var(--color-link);
  font-weight: 600;
  text-decoration: none;
}

.test-list a:hover {
  text-decoration: underline;
}

.test-desc {
  margin: 6px 0 0;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* Lists */
.provider-list, .column-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.provider-list li, .column-list li {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  transition: background 0.15s ease, transform 0.15s ease;
}

.provider-list li:hover, .column-list li:hover {
  background: var(--color-surface-elevated);
  transform: translateX(4px);
}

.provider-list a, .column-list a {
  color: var(--color-link);
  font-weight: 600;
  text-decoration: none;
}

.provider-list a:hover, .column-list a:hover {
  color: var(--color-link-hover);
  text-decoration: underline;
}

.meta {
  color: var(--color-muted);
  font-size: 0.9rem;
  margin-left: 8px;
}

.column-list {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.two-columns, .three-columns {
  display: grid;
  gap: 24px;
  margin-top: 32px;
}

.two-columns {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.three-columns {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.two-columns .card, .three-columns .card {
  margin: 0;
}

.lead {
  font-size: 1.15rem;
  color: var(--color-text-secondary);
}

.specialty {
  font-size: 1.1rem;
  color: var(--color-accent);
  font-weight: 600;
  margin: -8px 0 24px;
}

/* Related and tests sections */
.related, .tests {
  margin-top: 40px;
}

.related h2, .tests h2 {
  font-size: 1.35rem;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.tests {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
}

/* Footer */
footer {
  background: var(--color-primary);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 56px 24px 32px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto 36px;
  display: grid;
  grid-template-columns: 2fr repeat(2, 1fr);
  gap: 40px;
  text-align: left;
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.footer-grid strong {
  color: #fff;
  display: block;
  margin-bottom: 14px;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.footer-grid p {
  margin: 6px 0;
  line-height: 1.5;
}

.footer-disclaimer {
  max-width: var(--max-width);
  margin: 0 auto 16px;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
}

.footer-disclaimer strong {
  color: rgba(255, 255, 255, 0.75);
}

.footer-credit {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
}

footer a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.2s ease;
}

footer a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Disclaimer page */
.disclaimer-page {
  max-width: 760px;
}

.disclaimer-page p {
  color: var(--color-text-secondary);
  margin-bottom: 16px;
  line-height: 1.7;
}

/* Responsive */
@media (max-width: 640px) {
  header .container {
    flex-direction: column;
    gap: 12px;
    padding: 14px 18px;
  }

  main {
    padding: 24px 16px 60px;
  }

  .hero {
    padding: 48px 18px;
  }

  .provider, .card {
    padding: 22px;
  }
}
