/* ===================================================
   DR. LANCELOT MARK PINTO — Personal Website
   Design: Deep Navy + White + Teal (#2E9EAD)
   Font: DM Sans + DM Serif Display
=================================================== */

/* ── TOKENS ── */
:root {
  --navy:        #0A2342;
  --navy-mid:    #0d2d54;
  --navy-light:  #163a6a;
  --teal:        #2E9EAD;
  --teal-light:  #3db8c9;
  --teal-pale:   rgba(46,158,173,0.12);
  --white:       #ffffff;
  --off-white:   #f4f7fa;
  --text-body:   #2d3d50;
  --text-muted:  #5a718a;
  --text-subtle: #8ba4bb;
  --border:      rgba(10,35,66,0.10);
  --border-teal: rgba(46,158,173,0.25);
  --shadow-sm:   0 2px 12px rgba(10,35,66,0.07);
  --shadow-md:   0 8px 32px rgba(10,35,66,0.11);
  --shadow-lg:   0 20px 60px rgba(10,35,66,0.14);
  --radius-sm:   8px;
  --radius-md:   16px;
  --radius-lg:   24px;
  --transition:  0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }
body {
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--text-body);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100vw;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── LAYOUT ── */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: 100px 0;
}

/* ── TYPOGRAPHY UTILITIES ── */
.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-pale);
  border: 1px solid var(--border-teal);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.section-heading {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 20px;
}
.section-heading.centered { text-align: center; }
.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 620px;
  margin-bottom: 56px;
  line-height: 1.7;
}
.section-sub.centered {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(46,158,173,0.35);
}
.btn-primary:hover {
  background: var(--teal-light);
  box-shadow: 0 6px 28px rgba(46,158,173,0.5);
  transform: translateY(-2px);
}
.btn-ghost {
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.45);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
  transform: translateY(-2px);
}
.btn-large {
  padding: 18px 36px;
  font-size: 1.02rem;
}

/* ════════════════════════════════════════════════════
   NAVIGATION
════════════════════════════════════════════════════ */
.nav-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  transition: background var(--transition), box-shadow var(--transition);
}
.nav-header.scrolled {
  background: rgba(10,35,66,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(10,35,66,0.3);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 20px;
}
.nav-logo {
  display: flex;
  flex-direction: column;
  gap: 1px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-name {
  font-family: 'DM Serif Display', serif;
  font-size: 1.1rem;
  color: var(--white);
  letter-spacing: 0.01em;
}
.logo-title {
  font-size: 0.65rem;
  color: var(--teal-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-link {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 100px;
  transition: all var(--transition);
}
.nav-link:hover {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}
.nav-link.nav-cta {
  color: var(--white);
  background: var(--teal);
  padding: 9px 20px;
  box-shadow: 0 3px 12px rgba(46,158,173,0.4);
}
.nav-link.nav-cta:hover {
  background: var(--teal-light);
  box-shadow: 0 4px 16px rgba(46,158,173,0.55);
  transform: translateY(-1px);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  padding: 6px;
  border-radius: 8px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ════════════════════════════════════════════════════
   HERO
════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10,35,66,0.92) 0%,
    rgba(10,35,66,0.78) 45%,
    rgba(10,35,66,0.65) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 120px;
  padding-bottom: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.hero-text {
  max-width: 680px;
}
.hero-image {
  flex-shrink: 0;
  max-width: 380px;
  animation: fadeUp 0.7s 0.2s ease both;
}
.hero-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 6px solid rgba(255, 255, 255, 0.15);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-light);
  background: rgba(46,158,173,0.15);
  border: 1px solid rgba(46,158,173,0.3);
  padding: 8px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
  animation: fadeUp 0.7s ease both;
}
.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  animation: pulse 2s infinite;
}
.hero-headline {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  color: var(--white);
  line-height: 1.08;
  margin-bottom: 16px;
  animation: fadeUp 0.7s 0.1s ease both;
}
.hero-headline em {
  font-style: italic;
  color: var(--teal-light);
}
.hero-sub {
  font-size: clamp(0.9rem, 1.8vw, 1.05rem);
  color: rgba(255,255,255,0.65);
  margin-bottom: 20px;
  font-weight: 400;
  letter-spacing: 0.02em;
  animation: fadeUp 0.7s 0.2s ease both;
}
.hero-intro {
  font-size: 1.12rem;
  color: rgba(255,255,255,0.85);
  max-width: 600px;
  line-height: 1.72;
  margin-bottom: 36px;
  animation: fadeUp 0.7s 0.3s ease both;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 60px;
  animation: fadeUp 0.7s 0.4s ease both;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  animation: fadeUp 0.7s 0.5s ease both;
}
.stat {
  display: flex;
  flex-direction: column;
  padding: 0 28px;
}
.stat:first-child { padding-left: 0; }
.stat-num {
  font-family: 'DM Serif Display', serif;
  font-size: 1.8rem;
  color: var(--white);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.15);
  flex-shrink: 0;
}
.hero-scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.hero-scroll-hint span {
  display: block;
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255,255,255,0.25);
  border-radius: 12px;
  position: relative;
}
.hero-scroll-hint span::after {
  content: '';
  display: block;
  width: 4px;
  height: 8px;
  background: rgba(255,255,255,0.5);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollDown 1.8s infinite;
}

/* ════════════════════════════════════════════════════
   ABOUT
════════════════════════════════════════════════════ */
.about-section {
  background: var(--white);
}
.about-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 72px;
  align-items: start;
}
.about-card-visual {
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-radius: var(--radius-lg);
  padding: 40px 32px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  box-shadow: var(--shadow-lg);
  position: sticky;
  top: 96px;
}
.acv-doc-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--teal);
  box-shadow: 0 0 20px rgba(46,158,173,0.3);
}
.acv-doc-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.acv-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.acv-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--teal-light);
  background: rgba(46,158,173,0.12);
  border: 1px solid rgba(46,158,173,0.25);
  padding: 5px 12px;
  border-radius: 100px;
  animation: floatTag 3s ease-in-out infinite alternate;
}

.about-lead {
  font-size: 1.22rem;
  color: var(--navy);
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 20px;
  font-family: 'DM Serif Display', serif;
}
.about-body {
  font-size: 1.02rem;
  color: var(--text-body);
  line-height: 1.75;
  margin-bottom: 18px;
}
.about-blocks {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
}
.about-block {
  display: flex;
  gap: 16px;
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--off-white);
  transition: all var(--transition);
}
.about-block:hover {
  border-color: var(--border-teal);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.about-block-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
}
.about-block-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.about-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.about-list li {
  font-size: 0.92rem;
  color: var(--text-body);
  padding-left: 14px;
  position: relative;
  line-height: 1.5;
}
.about-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
  font-size: 0.8rem;
}
.about-block-text {
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.65;
}

/* ════════════════════════════════════════════════════
   EXPERTISE
════════════════════════════════════════════════════ */
.expertise-section {
  background: var(--off-white);
}
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}
.expertise-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.expertise-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--teal-light));
  opacity: 0;
  transition: opacity var(--transition);
}
.expertise-card:hover {
  border-color: var(--border-teal);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.expertise-card:hover::before {
  opacity: 1;
}
.exp-icon {
  font-size: 2.2rem;
  margin-bottom: 14px;
  line-height: 1;
}
.exp-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}
.exp-desc {
  font-size: 0.89rem;
  color: var(--text-muted);
  line-height: 1.65;
}
.procedures-box {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: var(--radius-md);
  padding: 32px 36px;
}
.proc-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}
.proc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.proc-tag {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--white);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 8px 16px;
  border-radius: 100px;
  transition: all var(--transition);
}
.proc-tag:hover {
  background: rgba(46,158,173,0.25);
  border-color: rgba(46,158,173,0.4);
}

/* ════════════════════════════════════════════════════
   RESEARCH
════════════════════════════════════════════════════ */
.research-section {
  background: var(--white);
}
.collab-row {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  margin-bottom: 48px;
  margin-top: 32px;
}
.collab-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.45);
  margin-bottom: 14px;
}
.collab-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.collab-pill {
  font-size: 0.84rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 6px 14px;
  border-radius: 100px;
  transition: all var(--transition);
}
.collab-pill:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.25);
}
.collab-pill.advisory {
  color: var(--teal-light);
  background: rgba(46,158,173,0.12);
  border-color: rgba(46,158,173,0.3);
  font-weight: 700;
}
.pub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
  margin-bottom: 48px;
}
.pub-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: all var(--transition);
  background: var(--white);
}
.pub-card:hover {
  border-color: var(--border-teal);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.pub-meta {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal);
  margin-bottom: 10px;
}
.pub-title {
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.45;
}
.pub-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.scholar-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.scholar-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 24px;
  background: var(--off-white);
  border: 1.5px solid var(--border);
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  transition: all var(--transition);
}
.scholar-btn:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* ════════════════════════════════════════════════════
   MEDIA / TALKS
════════════════════════════════════════════════════ */
.media-section {
  background: var(--off-white);
}
.talks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 56px;
}
.talk-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  position: relative;
  transition: all var(--transition);
}
.talk-card.featured {
  border-color: var(--teal);
  background: linear-gradient(145deg, rgba(46,158,173,0.04), var(--white));
}
.talk-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.talk-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-pale);
  border: 1px solid var(--border-teal);
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 14px;
}
.talk-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  line-height: 1;
}
.talk-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
  line-height: 1.4;
}
.talk-where {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.talk-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
}
.talk-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--teal);
  transition: color var(--transition);
}
.talk-link:hover { color: var(--navy); }

.quotes-section {
  margin-bottom: 56px;
}
.quotes-heading {
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 24px;
}
.quotes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.quote-card {
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all var(--transition);
}
.quote-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.quote-text {
  font-size: 1rem;
  color: rgba(255,255,255,0.9);
  line-height: 1.7;
  font-style: italic;
  position: relative;
  padding-left: 16px;
}
.quote-text::before {
  content: '"';
  position: absolute;
  left: 0;
  top: -4px;
  font-family: 'DM Serif Display', serif;
  font-size: 2rem;
  color: var(--teal);
  line-height: 1;
}
.quote-footer {
  display: flex;
  flex-direction: column;
  gap: 3px;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 14px;
}
.quote-author {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--teal-light);
}
.quote-context {
  font-size: 0.76rem;
  color: rgba(255,255,255,0.4);
  font-style: normal;
}
.social-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.social-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.social-links { display: flex; gap: 10px; flex-wrap: wrap; }
.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 100px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all var(--transition);
  border: 1.5px solid transparent;
}
.social-pill.insta {
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: var(--white);
}
.social-pill.linkedin {
  background: #0077b5;
  color: var(--white);
}
.social-pill:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* ════════════════════════════════════════════════════
   APPOINTMENTS
════════════════════════════════════════════════════ */
.appt-section {
  background: var(--white);
}
.appt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}
.appt-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: all var(--transition);
  background: var(--off-white);
}
.appt-card:hover {
  border-color: var(--teal);
  background: var(--white);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.appt-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  line-height: 1;
}
.appt-hospital {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 2px;
}
.appt-campus {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal);
  margin-bottom: 20px;
}
.appt-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.appt-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.appt-key {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-subtle);
}
.appt-val {
  font-size: 0.9rem;
  color: var(--text-body);
  font-weight: 500;
}
.appt-tel {
  color: var(--teal);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition);
}
.appt-tel:hover { color: var(--navy); }
.appt-cta-wrap {
  display: flex;
  justify-content: center;
}

/* ════════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════════ */
.site-footer {
  background: var(--navy);
  padding: 64px 0 36px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-name {
  font-family: 'DM Serif Display', serif;
  font-size: 1.3rem;
  color: var(--white);
}
.footer-credentials {
  font-size: 0.8rem;
  color: var(--teal-light);
  letter-spacing: 0.05em;
}
.footer-role {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
}
.footer-inst {
  font-size: 0.84rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.5;
}
.footer-col-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}
.footer-link-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-link-list a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
}
.footer-link-list a:hover { color: var(--teal-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-disclaimer {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
  line-height: 1.6;
  max-width: 720px;
}
.footer-disclaimer strong { color: rgba(255,255,255,0.5); }
.footer-copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.25);
}

/* ════════════════════════════════════════════════════
   ANIMATIONS
════════════════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.85); }
}
@keyframes scrollDown {
  0%   { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(12px); }
}
@keyframes floatTag {
  from { transform: translateY(0px); }
  to   { transform: translateY(-5px); }
}

/* Scroll-reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-card-visual {
    position: static;
    max-width: 380px;
    margin: 0 auto;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .section { padding: 72px 0; }

  /* Nav mobile */
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: stretch;
    padding: 20px 24px 28px;
    gap: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all var(--transition);
    z-index: 998;
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
  }
  .nav-links.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .nav-link {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
  }
  .nav-link.nav-cta {
    text-align: center;
    margin-top: 8px;
  }

  .nav-header {
    background: var(--navy);
    box-shadow: 0 2px 20px rgba(10,35,66,0.3);
  }

  /* Hero */
  .hero {
    align-items: flex-start;
    height: auto;
  }
  .hero-content {
    padding-top: 100px;
    padding-bottom: 60px;
    flex-direction: column-reverse;
    align-items: stretch;
    justify-content: flex-start;
    gap: 32px;
  }
  .hero-image {
    max-width: 260px;
    margin: 40px auto 0; /* Ensures physical space above image, independent of flex container top */
  }
  .hero-stats {
    gap: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }
  .stat { padding: 0 14px; flex-shrink: 0; }
  .stat:first-child { padding-left: 0; }
  .stat-num { font-size: 1.35rem; }

  /* About label above the grid */
  .about-section .section-label { display: block; margin-bottom: 14px; }

  /* Prevent section-sub overflow */
  .section-sub { max-width: 100%; }

  /* Grids → single column */
  .expertise-grid,
  .pub-grid,
  .talks-grid,
  .quotes-grid,
  .appt-grid {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  /* Buttons */
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .btn { width: auto; }

  /* Misc */
  .scholar-links { flex-direction: column; }
  .social-row { flex-direction: column; align-items: flex-start; }
  .collab-row { padding: 20px; }
  .proc-tags { gap: 8px; }
  .procedures-box { padding: 20px; }
  .proc-tag { font-size: 0.8rem; padding: 6px 12px; }
}

/* ── ULTRA-SMALL PHONES (≤ 420px) ── */
@media (max-width: 420px) {
  .container { padding: 0 16px; }
  .section { padding: 60px 0; }

  .hero-badge { font-size: 0.7rem; padding: 6px 12px; }
  .hero-headline { font-size: clamp(2rem, 9vw, 2.8rem); }
  .hero-intro { font-size: 0.97rem; }
  .hero-stats { gap: 0; }
  .stat { padding: 0 10px; }
  .stat-num { font-size: 1.2rem; }
  .stat-label { font-size: 0.62rem; }
  .stat-divider { height: 28px; }

  .about-card-visual { padding: 28px 20px 24px; }
  .acv-lungs { width: 130px; height: 145px; }

  .about-lead { font-size: 1.08rem; }
  .about-block { padding: 16px; }

  .btn-large { padding: 15px 24px; font-size: 0.95rem; }

  .appt-card { padding: 24px 20px; }
  .appt-hospital { font-size: 1rem; }

  .quote-card { padding: 22px 18px; }
  .quote-text { font-size: 0.92rem; }

  .footer-name { font-size: 1.1rem; }
  .footer-credentials { font-size: 0.72rem; }
  .nav-inner { height: 64px; }
  .logo-name { font-size: 0.98rem; }
  .logo-title { font-size: 0.6rem; }
}
