/* Dr. Anant Bangar — 2026 design system (calm, accessible, medical trust) */
:root {
  color-scheme: light;
  --ink: #0f172a;
  --ink-muted: #334155;
  --muted: #64748b;
  --surface: #ffffff;
  --bg: #f1f5f9;
  --bg-elevated: #f8fafc;
  --brand: #0d9488;
  --brand-700: #0f766e;
  --brand-800: #115e59;
  --brand-soft: rgba(13, 148, 136, 0.12);
  --accent: #14b8a6;
  --border: rgba(15, 23, 42, 0.08);
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 4px 6px rgba(15, 23, 42, 0.04), 0 20px 40px rgba(15, 23, 42, 0.08);
  --radius: 1rem;
  --radius-lg: 1.25rem;
  --font-sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Plus Jakarta Sans", var(--font-sans);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

img {
  max-width: 100%;
  height: auto;
}

main a {
  color: var(--brand-800);
  font-weight: 600;
  text-underline-offset: 0.15em;
}

main a:hover {
  color: var(--brand-700);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: -999px;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
  background: var(--brand-800);
  color: #fff;
  padding: 0.5rem 0.85rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
}

/* Hero */
header.site-hero {
  position: relative;
  color: #fff;
  padding: clamp(2.5rem, 6vw, 4rem) 1rem clamp(2rem, 4vw, 3rem);
  background: linear-gradient(155deg, #0f766e 0%, #0d5c56 42%, #134e4a 100%);
  overflow: hidden;
}

header.site-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(255, 255, 255, 0.14), transparent 55%),
    radial-gradient(ellipse 60% 50% at 0% 100%, rgba(20, 184, 166, 0.35), transparent 50%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: min(180px, 42vw) 1fr;
  gap: clamp(1rem, 3vw, 1.75rem);
  align-items: center;
}

.hero-photo {
  width: 180px;
  height: 180px;
  border-radius: 999px;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
}

.hero-title {
  margin: 0 0 0.4rem;
  font-size: clamp(1.85rem, 4vw, 2.65rem);
}

.hero-subtitle {
  margin: 0;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  opacity: 0.95;
  font-weight: 500;
}

.hero-badges {
  margin-top: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.875rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-cta {
  margin-top: 1rem;
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.btn {
  appearance: none;
  border: 0;
  padding: 0.8rem 1.35rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 1rem;
  font-family: var(--font-display);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-height: 44px;
}

.btn.primary {
  background: #fff;
  color: var(--brand-800);
  box-shadow: var(--shadow);
}

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

.btn.secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
}

.btn.secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.trust-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  margin-top: 1rem;
}

.trust-item {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 0.5rem 0.65rem;
  border-radius: 0.65rem;
  font-weight: 600;
  font-size: 0.82rem;
  text-align: center;
}

/* Nav */
nav.site-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--brand-800);
  font-weight: 800;
  font-family: var(--font-display);
  text-decoration: none;
  font-size: 1rem;
}

.brand-icon {
  width: 22px;
  height: 22px;
}

.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.nav-menu-btn {
  display: none;
  align-items: center;
  gap: 0.4rem;
  color: var(--brand-800);
  font-weight: 700;
  font-family: var(--font-display);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.45rem 0.75rem;
  border-radius: 0.6rem;
  cursor: pointer;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--ink-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.35rem 0.2rem;
  border-radius: 0.35rem;
}

.nav-links a:hover {
  color: var(--brand-800);
}

.mobile-cta {
  display: none;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.25rem 2.5rem;
}

section.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2rem);
  margin: 1.25rem 0;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  opacity: 0;
  animation: fadeUp 0.7s ease forwards;
}

section.card h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  color: var(--brand-800);
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

section.card h2::before {
  content: "";
  width: 4px;
  height: 1.5em;
  background: linear-gradient(180deg, var(--accent), var(--brand-700));
  border-radius: 2px;
  flex-shrink: 0;
}

.muted {
  color: var(--ink-muted);
}

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

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding-left: 0;
  list-style: none;
}

.pill-list li {
  background: var(--bg-elevated);
  color: var(--brand-800);
  border: 1px solid rgba(13, 148, 136, 0.22);
  padding: 0.5rem 0.85rem;
  border-radius: 0.65rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin: 0;
}

.stat-card {
  background: var(--surface);
  color: var(--ink);
  padding: 1.35rem 1.1rem;
  border-radius: var(--radius-lg);
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.stat-number {
  font-size: clamp(1.85rem, 3vw, 2.35rem);
  font-weight: 800;
  font-family: var(--font-display);
  margin: 0;
  line-height: 1.1;
  color: var(--brand-800);
}

.stat-label {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 0.4rem;
  font-weight: 600;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.contact-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: var(--bg-elevated);
  flex-wrap: wrap;
}

.contact-card > div {
  min-width: 0;
}

.contact-card strong {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.contact-card a {
  text-decoration: none;
  font-weight: 700;
  color: var(--brand-800);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.contact-icon {
  width: 18px;
  height: 18px;
  opacity: 0.9;
}

#faq.card details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.65rem 1rem;
  margin-bottom: 0.5rem;
  background: var(--bg-elevated);
}

#faq.card summary {
  cursor: pointer;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--brand-800);
  list-style: none;
}

#faq.card summary::-webkit-details-marker {
  display: none;
}

#faq.card details[open] summary {
  margin-bottom: 0.5rem;
}

#faq.card details p {
  margin: 0;
  color: var(--ink-muted);
}

footer.site-footer {
  margin-top: 2rem;
  padding: 2.25rem 1.25rem;
  text-align: center;
  color: #fff;
  background: linear-gradient(155deg, #0f766e 0%, #115e59 100%);
}

footer.site-footer p {
  margin: 0.4rem 0;
}

footer.site-footer small {
  opacity: 0.92;
  font-size: 0.9rem;
}

#statistics.card {
  background: transparent;
  box-shadow: none;
  border: none;
  padding: 0;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#about.card {
  animation-delay: 50ms;
}
#expertise.card {
  animation-delay: 110ms;
}
#publications.card {
  animation-delay: 170ms;
}
#affiliated-hospitals.card {
  animation-delay: 230ms;
}
#faq.card {
  animation-delay: 290ms;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 800px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-photo {
    margin: 0 auto;
  }

  .hero-badges,
  .hero-cta {
    justify-content: center;
  }

  .trust-bar {
    grid-template-columns: 1fr;
  }

  .nav-inner {
    flex-wrap: wrap;
  }

  .nav-menu-btn {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    order: 3;
    padding: 0.5rem 0 0.75rem;
    margin-top: 0.35rem;
    border-top: 1px solid var(--border);
  }

  .nav-links a {
    padding: 0.65rem 0.35rem;
    display: block;
  }

  .nav-toggle:checked ~ .nav-links {
    display: flex;
  }

  .nav-inner > .btn.primary {
    display: none;
  }

  .mobile-cta {
    display: list-item;
  }

  .mobile-cta .btn {
    width: 100%;
    margin-top: 0.35rem;
  }

  .grid-2,
  .contact-cards {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .contact-card a {
    flex-basis: 100%;
    justify-content: center;
    margin-top: 0.35rem;
  }

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