@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;1,400;1,500;1,600&family=Manrope:wght@300;400;500;600;700&display=swap');

@font-face {
  font-family: 'Lorna';
  src: url('../lorna-italic.otf') format('opentype');
  font-style: italic;
  font-weight: normal;
}

:root {
  --white: #ffffff;
  --pearl: #FAF6F0;
  --pearl-warm: #F3ECE0;
  --pearl-deep: #EBE2D2;
  --cream: #FFFBF4;
  --ink: #1F1A17;
  --ink-soft: #3A322C;
  --muted: #6B635A;
  --muted-light: #8F8578;
  --line: #E3DBCB;
  --line-soft: #EFE7D7;
  --burgundy: #8B1A2A;
  --burgundy-deep: #6F1422;
  --gold: #B8976A;
  --gold-bright: #C9A86A;
  --display: 'Lorna', 'Lora', Georgia, serif;
  --body: 'Manrope', sans-serif;
  --img-doctor: url('../images/img-doctor.jpg');
  --img-clinic: url('../images/img-clinic.jpg');
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--pearl);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ─── NAV ─── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  padding: 22px 56px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(250, 246, 240, 0.88);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid rgba(184, 151, 106, 0.18);
  transition: padding 0.35s ease, background 0.35s ease, border-color 0.35s ease;
}
.nav.scrolled {
  padding: 14px 56px;
  background: rgba(250, 246, 240, 0.96);
  border-bottom-color: rgba(184, 151, 106, 0.3);
}
.nav-logo { width: 150px; display: block; }
.nav-back {
  font-family: var(--body); font-size: 13px; font-weight: 500;
  color: var(--ink); text-decoration: none;
  letter-spacing: 0.08em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 10px;
  padding-bottom: 3px;
  transition: color 0.25s ease;
}
.nav-back::before {
  content: ''; display: block; width: 22px; height: 1px;
  background: var(--gold); transition: background 0.25s ease;
}
.nav-back:hover { color: var(--burgundy); }
.nav-back:hover::before { background: var(--burgundy); }

/* ─── BASE ─── */
.section { padding: 128px 80px; position: relative; }
.section-inner { max-width: 1400px; margin: 0 auto; }
.eyebrow {
  font-family: var(--body); font-size: 11px; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--burgundy); margin-bottom: 18px;
  display: inline-flex; align-items: center; gap: 14px;
}
.eyebrow::before {
  content: ''; display: block; width: 32px; height: 1px;
  background: var(--gold); opacity: 0.8;
}
.section-heading {
  font-family: 'Lorna', 'Lora', Georgia, serif; font-style: italic;
  font-size: 60px; font-weight: 400; letter-spacing: -0.005em;
  color: var(--ink); line-height: 1.06; margin-bottom: 24px;
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.85s ease, transform 0.85s ease;
}
.section-heading.visible { opacity: 1; transform: translateY(0); }
.section-lede {
  font-size: 17px; line-height: 1.75; color: var(--muted);
  max-width: 560px; font-weight: 400; margin-bottom: 12px;
}
.section-head-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: end; margin-bottom: 80px;
}
.section-head-row .section-heading { margin-bottom: 0; }

/* ─── BUTTONS ─── */
.btn-primary {
  background: var(--burgundy);
  color: var(--cream);
  border: none;
  border-radius: 3px;
  padding: 16px 38px;
  font-family: var(--body); font-size: 13px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.25s ease, transform 0.25s ease;
}
.btn-primary:hover {
  background: var(--burgundy-deep);
  transform: translateY(-1px);
}
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(31, 26, 23, 0.28);
  border-radius: 3px;
  padding: 14px 36px;
  font-family: var(--body); font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: border-color 0.25s ease, color 0.25s ease;
}
.btn-secondary:hover {
  border-color: var(--burgundy);
  color: var(--burgundy);
}

/* ─── REVEAL ─── */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-1 { transition-delay: 0.08s; }
.reveal-2 { transition-delay: 0.16s; }
.reveal-3 { transition-delay: 0.24s; }
.reveal-4 { transition-delay: 0.32s; }
.reveal-5 { transition-delay: 0.40s; }
.reveal-6 { transition-delay: 0.48s; }

/* ───────────────────────────────────────────── */
/* DOCTOR PAGE — editorial profile               */
/* ───────────────────────────────────────────── */

.doctor-hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: center;
  background: var(--pearl-warm);
  position: relative;
}
.doctor-hero-photo {
  position: relative;
  height: 65vh;
  min-height: 480px;
  margin-left: 56px;
  background-image: var(--img-doctor);
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  filter: saturate(0.95) brightness(1.02);
}
.doctor-hero-content {
  padding: 140px 80px 100px;
  display: flex; flex-direction: column;
  justify-content: center;
  max-width: 720px;
}
.doctor-hero-eyebrow {
  font-family: var(--body); font-size: 11px; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--burgundy); margin-bottom: 28px;
  display: inline-flex; align-items: center; gap: 14px;
}
.doctor-hero-eyebrow::before {
  content: ''; display: block; width: 36px; height: 1px;
  background: var(--gold); opacity: 0.85;
}
.doctor-hero-name {
  font-family: 'Lorna', 'Lora', Georgia, serif; font-style: italic;
  font-size: 92px; font-weight: 400;
  line-height: 1.0; letter-spacing: -0.012em;
  color: var(--ink);
  margin-bottom: 24px;
}
.doctor-hero-role {
  font-family: var(--body); font-size: 17px; font-weight: 400;
  color: var(--ink-soft); line-height: 1.6;
  max-width: 480px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 36px;
}
.doctor-hero-meta {
  display: grid; grid-template-columns: repeat(2, auto);
  gap: 56px; margin-bottom: 48px;
}
.doctor-hero-meta-num {
  font-size: 38px; color: var(--burgundy);
  line-height: 1; margin-bottom: 8px;
  letter-spacing: -0.005em;
}
.doctor-hero-meta-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--muted-light); font-weight: 500;
}
.doctor-hero-actions {
  display: flex; gap: 14px;
  flex-wrap: wrap;
}

/* BIO */
.doctor-bio {
  background: var(--pearl);
  border-top: 1px solid var(--line-soft);
}
.doctor-bio-body {
  max-width: 760px;
  margin-left: auto;
  margin-right: 0;
}
.doctor-bio-body p {
  font-size: 17.5px; line-height: 1.85;
  color: var(--ink-soft);
  margin-bottom: 26px;
  font-weight: 400;
}
.doctor-bio-body p:first-of-type::first-letter {
  font-family: 'Lorna', 'Lora', Georgia, serif; font-style: italic;
  font-size: 62px; float: left;
  line-height: 0.9;
  padding: 6px 12px 0 0;
  color: var(--burgundy);
}

/* CV — year timeline */
.doctor-cv {
  background: var(--pearl-warm);
  border-top: 1px solid var(--line-soft);
}
.doctor-cv-list {
  display: flex; flex-direction: column;
}
.doctor-cv-item {
  display: grid;
  grid-template-columns: 130px 1fr 280px;
  gap: 56px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.doctor-cv-item:first-child { border-top: 1px solid var(--ink-soft); }
.doctor-cv-item:last-child { border-bottom: 1px solid var(--ink-soft); }
.doctor-cv-year {
  font-family: 'Lorna', 'Lora', Georgia, serif; font-style: italic;
  font-size: 22px; color: var(--burgundy);
  letter-spacing: -0.005em;
}
.doctor-cv-title {
  font-family: var(--body); font-size: 18px; font-weight: 500;
  color: var(--ink); line-height: 1.35;
}
.doctor-cv-meta {
  font-family: var(--body); font-size: 13.5px; color: var(--muted);
  letter-spacing: 0.04em;
  text-align: right;
}

/* FOCUS */
.doctor-focus {
  background: var(--pearl);
  border-top: 1px solid var(--line-soft);
}
.doctor-focus-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 48px 64px;
}
.doctor-focus-item {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.doctor-focus-name {
  font-family: var(--body); font-weight: 500;
  font-size: 19px; color: var(--ink);
  margin-bottom: 10px; line-height: 1.3;
}
.doctor-focus-desc {
  font-size: 14.5px; line-height: 1.7;
  color: var(--muted);
}

/* AWARDS */
.doctor-awards {
  background: var(--pearl-deep);
  border-top: 1px solid var(--line-soft);
}
.doctor-awards-list {
  display: flex; flex-direction: column;
  max-width: 880px;
}
.doctor-awards-item {
  padding: 32px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 32px;
  align-items: start;
}
.doctor-awards-item:first-child { border-top: 1px solid var(--ink-soft); }
.doctor-awards-item:last-child { border-bottom: 1px solid var(--ink-soft); }
.doctor-awards-mark {
  font-family: 'Lorna', 'Lora', Georgia, serif; font-style: italic;
  font-size: 28px; color: var(--gold); line-height: 1;
}
.doctor-awards-name {
  font-family: var(--body); font-weight: 500;
  font-size: 19px; color: var(--ink);
  margin-bottom: 8px; line-height: 1.3;
}
.doctor-awards-desc {
  font-size: 14.5px; line-height: 1.7;
  color: var(--muted);
}

/* CTA */
.doctor-cta {
  background: var(--ink);
  color: var(--cream);
  padding: 140px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.doctor-cta::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(ellipse 60% 50% at 85% 15%, rgba(184,151,106,0.10) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 15% 85%, rgba(139,26,42,0.08) 0%, transparent 55%);
  pointer-events: none;
}
.doctor-cta-inner {
  position: relative; z-index: 1;
  max-width: 720px; margin: 0 auto;
}
.doctor-cta-eyebrow {
  font-family: var(--body); font-size: 11px; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold-bright); margin-bottom: 24px;
  display: inline-flex; align-items: center; gap: 14px;
}
.doctor-cta-eyebrow::before, .doctor-cta-eyebrow::after {
  content: ''; display: block; width: 32px; height: 1px;
  background: var(--gold); opacity: 0.7;
}
.doctor-cta h2 {
  font-family: 'Lorna', 'Lora', Georgia, serif; font-style: italic;
  font-size: 56px; font-weight: 400;
  line-height: 1.08; letter-spacing: -0.005em;
  color: var(--cream);
  margin-bottom: 22px;
}
.doctor-cta p {
  font-size: 16.5px; line-height: 1.75;
  color: rgba(255, 251, 244, 0.7);
  max-width: 540px; margin: 0 auto 44px;
  font-weight: 400;
}
.doctor-cta-actions {
  display: flex; gap: 14px; justify-content: center;
  flex-wrap: wrap;
}
.doctor-cta .btn-secondary {
  color: var(--cream);
  border-color: rgba(255, 251, 244, 0.22);
}
.doctor-cta .btn-secondary:hover {
  border-color: var(--gold-bright);
  color: var(--gold-bright);
}

/* FOOTER */
.footer {
  background: var(--ink);
  color: rgba(243, 234, 216, 0.72);
  padding: 80px 80px 44px;
  border-top: 1px solid rgba(201, 168, 106, 0.12);
}
.footer-inner {
  max-width: 1400px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 56px; margin-bottom: 60px;
}
.footer-logo {
  width: 160px;
  filter: invert(1) brightness(0.92);
  opacity: 0.85;
  display: block;
  margin-bottom: 20px;
}
.footer-brand-tag {
  font-family: 'Manrope', sans-serif;
  font-size: 15px; color: rgba(243,234,216,0.65); max-width: 280px;
  line-height: 1.55;
}
.footer-col h4 {
  font-size: 11px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gold-bright); margin-bottom: 22px;
}
.footer-col p, .footer-col a {
  font-size: 14px; color: rgba(243,234,216,0.72); display: block;
  margin-bottom: 10px; text-decoration: none; font-weight: 300;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--cream); }
.footer-bottom {
  max-width: 1400px; margin: 0 auto;
  border-top: 1px solid rgba(201,168,106,0.12);
  padding-top: 24px; font-size: 12px; color: rgba(243,234,216,0.4);
  display: flex; justify-content: space-between; align-items: center;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1100px) {
  .nav { padding: 18px 32px; }
  .nav.scrolled { padding: 14px 32px; }
  .doctor-hero { grid-template-columns: 1fr; min-height: auto; }
  .doctor-hero-photo {
    height: 60vh; min-height: 460px;
    margin-left: 0;
  }
  .doctor-hero-content { padding: 80px 48px 96px; }
  .doctor-hero-name { font-size: 64px; }
  .section { padding: 96px 48px; }
  .section-head-row { grid-template-columns: 1fr; gap: 24px; margin-bottom: 60px; }
  .doctor-bio-body { max-width: 100%; }
  .doctor-cv-item {
    grid-template-columns: 100px 1fr;
    gap: 32px;
  }
  .doctor-cv-meta { grid-column: 1 / -1; text-align: left; padding-left: 132px; }
  .doctor-focus-grid { grid-template-columns: 1fr; gap: 0 32px; }
  .doctor-cta { padding: 100px 48px; }
  .doctor-cta h2 { font-size: 44px; }
  .footer { padding: 60px 48px 32px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 820px) {
  .nav { padding: 14px 20px; position: relative;
    background: rgba(250, 246, 240, 0.99);
    backdrop-filter: none; -webkit-backdrop-filter: none;
  }
  .doctor-hero-content { padding: 56px 24px 72px; }
  .doctor-hero-name { font-size: 48px; }
  .doctor-hero-meta { grid-template-columns: 1fr 1fr; gap: 28px; }
  .doctor-hero-meta-num { font-size: 30px; }
  .section { padding: 72px 24px; }
  .section-heading { font-size: 38px; }
  .doctor-bio-body p:first-of-type::first-letter { font-size: 50px; }
  .doctor-cv-item {
    grid-template-columns: 1fr; gap: 6px; padding: 24px 0;
  }
  .doctor-cv-meta { padding-left: 0; }
  .doctor-awards-item { grid-template-columns: 1fr; gap: 10px; }
  .doctor-cta { padding: 80px 24px; }
  .doctor-cta h2 { font-size: 34px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}
