/* ==========================================================================
   Dr. Mohan Kumar, M.D. — Consultant Diagnostic Radiologist
   Shared stylesheet (identical in preview/ and dr-mohan-kumar-theme/)
   Zero dependencies · system fonts · mobile-first
   ========================================================================== */

:root {
  --navy: #0F2942;
  --navy-700: #16385A;
  --bg: #F8FAFC;
  --card: #FFFFFF;
  --teal: #0D9488;          /* decorative accent (icons, borders, rules) */
  --teal-text: #0F766E;     /* AA-compliant teal for text & buttons (5.4:1 on white) */
  --teal-soft: #E6F4F2;
  --text: #1E293B;
  --muted: #475569;         /* 7.5:1 on white */
  --line: #E2E8F0;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 41, 66, .06), 0 4px 16px rgba(15, 41, 66, .06);
  --header-h: 64px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--teal-text); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3 { color: var(--navy); line-height: 1.25; margin: 0 0 .5em; }
p { margin: 0 0 1em; }

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--navy);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus { top: 12px; color: #fff; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- Icons ---------- */
.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--header-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy);
  min-width: 0;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--navy);
  color: #fff;
  flex-shrink: 0;
}
.brand-mark .icon { width: 20px; height: 20px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-name { font-weight: 700; font-size: 1rem; white-space: nowrap; }
.brand-sub { font-size: .75rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  color: var(--navy);
  cursor: pointer;
}
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.site-nav.is-open { display: block; }
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 8px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.site-nav a {
  display: block;
  padding: 12px 10px;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}
.site-nav a:hover,
.site-nav a[aria-current="true"] { background: var(--teal-soft); color: var(--teal-text); }
.site-nav .nav-cta {
  margin-top: 6px;
  background: var(--teal-text);
  color: #fff;
  text-align: center;
  font-weight: 600;
}
.site-nav .nav-cta:hover { background: var(--navy); color: #fff; }

/* No-JS fallback: show nav inline as a scrollable row */
.no-js .nav-toggle { display: none; }
.no-js .site-nav { display: block; position: static; box-shadow: none; border: 0; background: transparent; }
.no-js .header-inner { flex-wrap: wrap; padding-bottom: 6px; }
.no-js .site-nav ul { flex-direction: row; overflow-x: auto; padding: 0; gap: 4px; }
.no-js .site-nav a { padding: 8px 10px; white-space: nowrap; }
.no-js .site-nav .nav-cta { margin-top: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 10px;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--teal-text); color: #fff; }
.btn-primary:hover { background: #0B5E58; color: #fff; }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn-outline:hover { background: #fff; color: var(--navy); }
.btn-ghost { background: var(--card); color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-text); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(13, 148, 136, .28), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-700) 100%);
  color: #fff;
  padding: 48px 0 56px;
}
.hero-grid {
  display: grid;
  gap: 32px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: #D7F5F1;
}
.hero-eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #2DD4BF; }
.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 6vw, 3.25rem);
  letter-spacing: -.02em;
  margin-bottom: .25em;
}
.hero-title {
  font-size: clamp(1.125rem, 2.6vw, 1.375rem);
  font-weight: 600;
  color: #B9F0E8;
  margin-bottom: .75em;
}
.hero-practice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #E2E8F0;
  margin-bottom: 28px;
}
.hero-practice .icon { margin-top: 3px; color: #5EEAD4; }
.hero-practice strong { color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions .btn { flex: 1 1 220px; }

.hero-portrait {
  justify-self: center;
  width: min(280px, 72vw);
  aspect-ratio: 1;
  border-radius: 50%;
  padding: 6px;
  background: linear-gradient(140deg, #2DD4BF, rgba(255, 255, 255, .15));
  box-shadow: 0 20px 50px rgba(0, 0, 0, .3);
}
.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  background: #DCE6EF;
}

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section-alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 32px; }
.section-kicker {
  display: inline-block;
  margin-bottom: 8px;
  font-size: .8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--teal-text);
}
.section h2 { font-size: clamp(1.5rem, 3.6vw, 2.125rem); letter-spacing: -.01em; }
.section-head p { color: var(--muted); font-size: 1.0625rem; }

/* About */
.about-grid { display: grid; gap: 24px; }
.about-copy p { font-size: 1.0625rem; }
.about-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.about-points li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.section-alt .about-points li { background: var(--bg); }
.about-points .icon { color: var(--teal); margin-top: 2px; }

/* Cards */
.card-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}
.card {
  height: 100%;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-2px); border-color: var(--teal); }
.card-icon {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--teal-soft);
  color: var(--teal-text);
}
.card-icon .icon { width: 26px; height: 26px; stroke-width: 1.75; }
.card h3 { font-size: 1.125rem; margin-bottom: .4em; }
.card-abbr { color: var(--teal-text); font-weight: 600; }
.card p { margin: 0; color: var(--muted); }

/* Timeline */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.timeline-item {
  position: relative;
  padding: 24px 24px 24px 28px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius);
}
.timeline-item.is-prior { border-left-color: #94A3B8; }
.timeline-label {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  background: var(--teal-soft);
  color: var(--teal-text);
}
.is-prior .timeline-label { background: #F1F5F9; color: var(--muted); }
.timeline-item h3 { font-size: 1.125rem; margin-bottom: .25em; }
.timeline-org { margin: 0; font-weight: 600; color: var(--text); }
.timeline-meta { margin: 4px 0 0; color: var(--muted); font-size: .9375rem; }

/* Location */
.location-grid { display: grid; gap: 16px; }
.info-card {
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.info-card h3 { font-size: 1.25rem; }
.info-list { margin: 0 0 20px; display: grid; gap: 16px; }
.info-row { display: flex; gap: 12px; align-items: flex-start; }
.info-row .icon { color: var(--teal); margin-top: 3px; }
.info-row dt { font-size: .8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.info-row dl { margin: 0; }
.info-row dd { margin: 2px 0 0; }
.info-row address { font-style: normal; }
.info-row a { font-weight: 600; }
.badge-open {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--teal-text);
}
.badge-open::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal);
}
.info-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.info-actions .btn { flex: 1 1 200px; }

.link-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.link-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
}
.link-list a:hover { border-color: var(--teal); color: var(--teal-text); }
.link-list .icon { color: var(--teal-text); }
.link-list .ext { margin-left: auto; width: 16px; height: 16px; color: var(--muted); }
.link-note { margin: 0; color: var(--muted); font-size: .9375rem; }
.link-list + .link-note { margin-top: 14px; }
[hidden] { display: none !important; }

/* WordPress admin bar offset (only applies when logged in to WP) */
@media (min-width: 601px) { .admin-bar .site-header { top: 46px; } }
@media (min-width: 783px) { .admin-bar .site-header { top: 32px; } }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: #CBD5E1;
  padding: 40px 0 28px;
  font-size: .9375rem;
}
.site-footer a { color: #fff; }
.site-footer a:hover { color: #99F6E4; }
.footer-grid { display: grid; gap: 20px; }
.footer-name { color: #fff; font-weight: 700; font-size: 1.0625rem; margin-bottom: 2px; }
.footer-meta { margin: 0; }
.disclaimer {
  padding: 16px 18px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  color: #E2E8F0;
}
.disclaimer strong { color: #fff; }
.disclaimer p { margin: 0; }
.footer-bottom {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .875rem;
  color: #94A3B8;
}
.footer-bottom p { margin: 0; }

/* ---------- Breakpoints ---------- */
@media (min-width: 640px) {
  .about-points { grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: block;
    position: static;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  .site-nav ul { flex-direction: row; align-items: center; padding: 0; gap: 4px; }
  .site-nav a { padding: 8px 12px; }
  .site-nav .nav-cta { margin: 0 0 0 8px; padding: 9px 16px; }

  .hero { padding: 80px 0 88px; }
  .hero-grid { grid-template-columns: 1.4fr 1fr; gap: 48px; }
  .hero-portrait { width: 320px; justify-self: end; }
  .hero-actions .btn { flex: 0 0 auto; }

  .section { padding: 80px 0; }
  .about-grid { grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }
  .about-points { grid-template-columns: 1fr; }
  .location-grid { grid-template-columns: 1.4fr 1fr; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1.6fr; gap: 40px; align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  .site-header, .hero-actions, .info-actions, .skip-link { display: none !important; }
  .hero { background: none; color: #000; }
  .hero h1, .hero-title { color: #000; }
}
