/* MedMarketingDr.com ... Design System */

:root {
  --navy:    #071826;
  --charcoal:#111827;
  --teal:    #12b8a6;
  --cyan:    #6ee7f9;
  --blue:    #2563eb;
  --orange:  #f97316;
  --paper:   #f8fafc;
  --white:   #ffffff;
  --text:    #172033;
  --muted:   #64748b;
  --border:  #dbe5ef;
  --header-height: 64px;
  --radius-card: 20px;
  --radius-pill: 999px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--paper);
  line-height: 1.65;
  padding-top: var(--header-height);
  -webkit-font-smoothing: antialiased;
}

/* ─── Typography ─────────────────────────────────────────────────────────── */

h1, h2, h3, h4, h5 {
  font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--charcoal);
}

.site-hero h1,
.page-hero h1 {
  color: var(--white);
}

p { max-width: 72ch; }

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--cyan); }

/* ─── Layout ─────────────────────────────────────────────────────────────── */

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.wrap-narrow {
  max-width: 780px;
}

.page-wrap {
  min-height: 80vh;
}

/* ─── Buttons ────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  transition: opacity .15s, transform .1s;
  cursor: pointer;
  border: none;
}

.btn:hover { opacity: .88; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary  { background: var(--teal); color: #05211f; }
.btn-secondary { background: transparent; border: 1.5px solid rgba(255,255,255,.4); color: var(--white); }
.btn-outline  { background: transparent; border: 1.5px solid var(--teal); color: var(--teal); }
.btn-sm       { padding: 9px 18px; font-size: .85rem; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

/* ─── Header / Nav ───────────────────────────────────────────────────────── */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(7, 24, 38, .96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 32px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-mark {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .85rem;
  color: var(--white);
  letter-spacing: -.02em;
}

.logo-text {
  font-size: .9rem;
  font-weight: 400;
  color: rgba(255,255,255,.75);
  letter-spacing: -.01em;
}

.logo-text strong { color: var(--white); font-weight: 600; }

.site-nav { flex: 1; }

.site-nav ul {
  display: flex;
  list-style: none;
  gap: 4px;
}

.site-nav a {
  display: block;
  padding: 6px 10px;
  font-size: .875rem;
  color: rgba(255,255,255,.7);
  text-decoration: none;
  transition: color .15s;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--white);
}

.header-cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: rgba(255,255,255,.8);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}

/* ─── Mobile Nav ─────────────────────────────────────────────────────────── */

.nav-mobile {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,.08);
  z-index: 999;
  padding: 16px 0 24px;
}

.nav-mobile.is-open { display: block; }

.nav-mobile ul {
  list-style: none;
  padding: 0 24px;
}

.nav-mobile li + li { margin-top: 2px; }

.nav-mobile a {
  display: block;
  padding: 10px 0;
  font-size: 1rem;
  color: rgba(255,255,255,.8);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: color .15s;
}

.nav-mobile a:hover,
.nav-mobile a[aria-current="page"] { color: var(--white); }

.mobile-cta-link {
  color: var(--teal) !important;
  font-weight: 600;
  margin-top: 8px;
}

/* ─── Eyebrow ────────────────────────────────────────────────────────────── */

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .72rem;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 12px;
}

/* ─── Hero ───────────────────────────────────────────────────────────────── */

.site-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--charcoal) 0%, var(--navy) 60%);
  padding: 100px 0 80px;
}

.hero-glow {
  position: absolute;
  top: -120px;
  left: -120px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(18,184,166,.22) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 1; }

.hero-title {
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  font-weight: 200;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 20px;
  max-width: 16ch;
}

.hero-sub {
  font-size: 1.15rem;
  color: rgba(219, 234, 254, .85);
  max-width: 64ch;
  line-height: 1.7;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 48px;
  max-width: 780px;
}

.metric {
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  background: rgba(255,255,255,.05);
  backdrop-filter: blur(8px);
  font-size: .82rem;
  font-weight: 600;
  color: rgba(255,255,255,.85);
  letter-spacing: -.01em;
}

/* ─── Page Hero ──────────────────────────────────────────────────────────── */

.page-hero {
  padding: 72px 0 64px;
}

.page-hero-dark {
  background: linear-gradient(135deg, var(--charcoal) 0%, var(--navy) 60%);
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 200;
  letter-spacing: -.03em;
  color: var(--white);
  margin-bottom: 16px;
  max-width: 20ch;
}

.page-intro {
  font-size: 1.1rem;
  color: rgba(219,234,254,.8);
  max-width: 60ch;
  margin-top: 12px;
}

.article-meta {
  margin-top: 12px;
  font-size: .82rem;
  color: rgba(255,255,255,.5);
}

/* ─── Section: Generic ───────────────────────────────────────────────────── */

.section-feature-cards,
.section-research-grid,
.section-service-grid,
.section-collection,
.section-page-body,
.section-article-body {
  padding: 80px 0;
}

.section-feature-cards { background: var(--white); }
.section-research-grid  { background: var(--paper); }
.section-service-grid   { background: var(--white); }
.section-collection     { background: var(--paper); }
.section-page-body      { background: var(--white); }

.section-head {
  margin-bottom: 40px;
  max-width: 720px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 300;
  margin-bottom: 12px;
}

.section-head p {
  font-size: 1.05rem;
  color: var(--muted);
}

.section-cta-row {
  margin-top: 40px;
}

/* ─── Card Grid ──────────────────────────────────────────────────────────── */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px;
  text-decoration: none;
  color: var(--text);
  display: block;
  transition: box-shadow .2s, border-color .2s, transform .15s;
}

.card:hover {
  box-shadow: 0 20px 50px rgba(15,23,42,.10);
  border-color: rgba(18,184,166,.3);
  transform: translateY(-2px);
  color: var(--text);
}

.card h2, .card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--charcoal);
}

.card p {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.55;
  max-width: none;
}

.card-link-label {
  display: inline-block;
  margin-top: 16px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  margin-bottom: 18px;
}

/* Research cards get no icon, slightly different styling */
.card-research {
  background: var(--white);
  border-left: 3px solid var(--teal);
}

.card-research:hover {
  border-left-color: var(--teal);
}

/* ─── Framework ──────────────────────────────────────────────────────────── */

.section-framework {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--navy) 0%, var(--charcoal) 100%);
}

.section-framework .section-head h2 {
  color: var(--white);
}

.framework-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
}

.framework-step {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-pill);
  padding: 14px 20px;
  backdrop-filter: blur(8px);
}

.step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--teal);
  color: #05211f;
  font-size: .72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-label {
  font-size: .88rem;
  font-weight: 600;
  color: rgba(255,255,255,.9);
  white-space: nowrap;
}

.step-arrow {
  color: var(--teal);
  font-size: 1.2rem;
  line-height: 1;
}

/* ─── CTA Band ───────────────────────────────────────────────────────────── */

.section-cta-band {
  padding: 64px 0;
  background: var(--paper);
}

.cta-band {
  background: linear-gradient(135deg, var(--navy), #0f4f47);
  border-radius: 28px;
  padding: 56px 48px;
  color: var(--white);
}

.cta-band h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 300;
  color: var(--white);
  margin-bottom: 12px;
}

.cta-band p {
  color: rgba(219,234,254,.8);
  font-size: 1rem;
  margin-bottom: 28px;
  max-width: 56ch;
}

/* ─── Page Body ──────────────────────────────────────────────────────────── */

.page-body-text {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--text);
  max-width: 70ch;
}

.page-cta-row {
  margin-top: 32px;
}

.article-content {
  font-size: 1.05rem;
  line-height: 1.78;
  color: var(--text);
}

.article-content h2 {
  font-size: 1.6rem;
  margin-top: 40px;
  margin-bottom: 14px;
}

.article-content p {
  margin-bottom: 18px;
}

/* ─── Footer ─────────────────────────────────────────────────────────────── */

.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.65);
  padding-top: 64px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  padding-bottom: 48px;
}

.footer-brand .site-logo { margin-bottom: 16px; }

.footer-brand p {
  font-size: .88rem;
  color: rgba(255,255,255,.5);
  max-width: 28ch;
  line-height: 1.6;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-col h4 {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.45);
  margin-bottom: 14px;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a {
  font-size: .875rem;
  color: rgba(255,255,255,.6);
  text-decoration: none;
  transition: color .15s;
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0;
}

.footer-bottom p {
  font-size: .78rem;
  color: rgba(255,255,255,.35);
  max-width: none;
}

.footer-bottom a {
  color: rgba(255,255,255,.45);
  text-decoration: none;
}

.footer-bottom a:hover { color: rgba(255,255,255,.7); }

/* ─── Service Pages ──────────────────────────────────────────────────────── */

.service-hero h1 { max-width: 22ch; }

.section-service-intro {
  padding: 56px 0 40px;
  background: var(--white);
}

.service-intro-text {
  font-size: 1.18rem;
  line-height: 1.78;
  color: var(--text);
  max-width: 70ch;
}

.section-service-features {
  padding: 72px 0;
  background: var(--paper);
}

.card-feature-plain {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px;
}

.card-feature-plain h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--charcoal);
}

.card-feature-plain p {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: none;
}

.section-approach {
  padding: 80px 0;
  background: var(--white);
}

.approach-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 48px;
  max-width: 760px;
}

.approach-step {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.approach-step:last-child { border-bottom: none; }

.approach-step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  color: var(--white);
  font-size: .85rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.approach-step-body h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--charcoal);
}

.approach-step-body p {
  font-size: .92rem;
  color: var(--muted);
  line-height: 1.65;
  max-width: 60ch;
}

.section-who {
  padding: 72px 0;
  background: var(--paper);
}

.who-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.who-text h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 12px;
}

.who-text p {
  font-size: .95rem;
  color: var(--muted);
  margin-top: 12px;
}

.who-list {
  list-style: none;
  margin-top: 8px;
}

.who-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: .95rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 12px;
}

.who-list li::before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
}

/* ─── Responsive ─────────────────────────────────────────────────────────── */

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

@media (max-width: 768px) {
  .header-cta { display: none; }
  .site-nav    { display: none; }
  .nav-toggle  { display: flex; }

  .hero-title  { font-size: 2.4rem; }
  .metric-row  { grid-template-columns: repeat(2, 1fr); }

  .card-grid   { grid-template-columns: 1fr; }

  .framework-steps { flex-direction: column; align-items: flex-start; gap: 10px; }
  .step-arrow  { transform: rotate(90deg); }

  .who-inner    { grid-template-columns: 1fr; gap: 36px; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-cols  { grid-template-columns: repeat(2, 1fr); }

  .cta-band { padding: 36px 28px; }

  .site-hero   { padding: 72px 0 56px; }
  .page-hero   { padding: 56px 0 48px; }

  .section-feature-cards,
  .section-research-grid,
  .section-service-grid,
  .section-collection,
  .section-page-body,
  .section-article-body { padding: 56px 0; }
}

@media (max-width: 480px) {
  .metric-row  { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; }
  .btn-row     { flex-direction: column; }
  .btn-row .btn { width: 100%; justify-content: center; }
}
