/* Doctor directory and profiles share the site's type and color tokens. */
.doctors-directory,
.doctor-profile {
  --doctor-paper: #fdfaf4;
  --doctor-radius: clamp(22px, 3vw, 32px);
}

.doctors-directory {
  padding-bottom: clamp(56px, 8vw, 96px);
}

.doctors-hero {
  position: relative;
  overflow: hidden;
  margin-top: -102px;
  padding-top: calc(15px + clamp(32px, 4vw, 60px));
  background:
    radial-gradient(circle at 83% 16%, rgb(254 193 7 / .17), transparent 21rem),
    linear-gradient(135deg, #fbf8fd 0%, #f5effa 54%, #fff9e7 100%);
  border-bottom: 1px solid var(--lav-300);
}

.doctors-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(340px, .86fr);
  align-items: end;
  gap: clamp(30px, 5vw, 72px);
  min-height: min(760px, calc(100vh - 20px));
}

.doctors-hero-copy {
  position: relative;
  z-index: 2;
  padding-block: clamp(28px, 5vw, 68px) clamp(42px, 6vw, 82px);
}

.doctors-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--plum-600);
  font-size: .8125rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.doctors-kicker img { width: 20px; height: 25px; }

.doctors-directory .doctors-hero h1 {
  max-width: 12.5em;
  font-size: clamp(2.75rem,4.5vw,4.5rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.055em;
}

.doctors-hero-tagline {
  margin-top: clamp(18px, 2.5vw, 28px);
  color: var(--plum-600);
  font-size: clamp(1.16rem, 2vw, 1.55rem);
  font-weight: 750;
  line-height: 1.35;
}

.doctors-hero-intro {
  max-width: 45em;
  margin-top: 14px;
  color: var(--text);
  font-size: clamp(.98rem, 1.35vw, 1.08rem);
  line-height: 1.75;
}

.doctors-hero-cta { margin-top: 26px; }

.doctors-trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 690px;
  margin-top: clamp(28px, 4vw, 46px);
}

.doctors-trust li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid rgb(78 46 96 / .12);
  border-radius: 16px;
  background: rgb(255 255 255 / .68);
  box-shadow: 0 16px 34px -30px rgb(28 14 46 / .46);
  color: var(--muted);
  font-size: .75rem;
  line-height: 1.35;
}

.doctors-trust img { width: 42px; }
.doctors-trust strong { display: block; color: var(--ink); font-size: .84rem; }

.doctors-hero-visual {
  position: relative;
  align-self: stretch;
  min-height: 570px;
}

.doctors-hero-visual::before {
  position: absolute;
  right: 0;
  bottom: 9%;
  width: min(100%, 520px);
  aspect-ratio: 1;
  border: 1px solid rgb(78 46 96 / .12);
  border-radius: 46% 54% 46% 54% / 54% 42% 58% 46%;
  background: linear-gradient(145deg, rgb(255 255 255 / .9), rgb(236 227 245 / .7));
  box-shadow: 0 34px 90px -58px rgb(46 26 71 / .55);
  content: "";
}

.doctors-hero-visual img {
  position: absolute;
  z-index: 1;
  right: -2%;
  bottom: 0;
  width: min(108%, 560px);
  max-height: 96%;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 28px 26px rgb(46 26 71 / .15));
}

.doctors-hero-orbit {
  position: absolute;
  border-radius: 50%;
  background: rgb(254 193 7 / .17);
}

.doctors-hero-orbit-a { top: 18%; right: 0; width: 92px; height: 92px; }
.doctors-hero-orbit-b { right: 76%; bottom: 16%; width: 34px; height: 34px; background: rgb(105 65 128 / .16); }

@media (prefers-reduced-motion: no-preference) {
  .doctors-hero-copy { animation: doctors-hero-enter .55s var(--ease) both; }
  .doctors-hero-visual { animation: doctors-hero-enter .7s var(--ease) .08s both; }
}

@keyframes doctors-hero-enter {
  from { opacity: 0; translate: 0 14px; }
  to { opacity: 1; translate: 0 0; }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .doctors-hero .doctors-hero-cta,
  .doctors-hero-visual img,
  .doctors-trust img {
    transition: translate .25s var(--ease), box-shadow .25s var(--ease);
  }

  .doctors-hero .doctors-hero-cta:hover {
    translate: 0 -3px;
    box-shadow: 0 12px 22px -12px rgb(78 46 96 / .48);
  }

  .doctors-hero-visual:hover img { translate: 0 -5px; }
  .doctors-trust li:hover img { translate: 0 -3px; }
}

.doctors-list {
  padding-top: clamp(54px, 7vw, 92px);
}

.doctors-list-heading {
  max-width: 760px;
  margin-bottom: clamp(26px, 4vw, 42px);
}

.doctors-list-heading h2 {
  color: var(--ink);
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: -.045em;
}

.doctors-list-heading > p:last-child {
  max-width: 46em;
  margin-top: 10px;
  color: var(--muted);
  font-size: 1rem;
}

.doctors-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 28px);
}

.doctor-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--lav-300);
  border-radius: var(--doctor-radius);
  background: var(--doctor-paper);
  text-decoration: none;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.doctor-card:hover {
  border-color: var(--plum-400);
  box-shadow: 0 12px 26px -20px var(--plum-600);
}

.doctor-card:focus-visible {
  outline-offset: 4px;
  border-radius: var(--doctor-radius);
}

.doctor-card-photo {
  position: relative;
  background: var(--lav-200);
}

.doctor-card-portrait {
  width: 100%;
  height: auto;
  aspect-ratio: 37 / 24;
  object-fit: cover;
}

.doctor-partner {
  position: absolute;
  right: 0;
  bottom: 7%;
  display: flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  padding: 5px 10px;
  border-radius: 7px 0 0 7px;
  color: var(--white);
  background: var(--plum-600);
  font-size: .8125rem;
  line-height: 1.35;
}

.doctor-partner img { width: 18px; flex: none; }
.doctor-partner b { color: var(--gold); }

.doctor-card-body {
  display: flex;
  flex: 1;
  align-items: center;
  flex-direction: column;
  gap: 10px;
  padding: 16px 14px 18px;
  text-align: center;
}

.doctor-card h2 {
  font-size: clamp(1.2rem, 2vw, 1.42rem);
  line-height: 1.24;
  letter-spacing: -.025em;
}

.doctor-check {
  display: inline-block;
  width: .8em;
  height: .8em;
  min-width: 16px;
  min-height: 16px;
  max-width: 24px;
  max-height: 24px;
  margin-inline-start: .14em;
  vertical-align: -.04em;
}

.doctor-specialty {
  width: fit-content;
  max-width: 100%;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: var(--gold);
  color: var(--plum-950);
  font-size: .875rem;
  font-weight: 650;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.doctor-qualifications { font-size: .9375rem; font-weight: 650; }
.doctor-experience { color: var(--plum-600); font-size: 1.0625rem; font-weight: 650; }

.doctor-logos,
.doctor-expertise {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
  width: 100%;
}

.doctor-logos {
  max-width: 274px;
  margin-block: 4px 6px;
}

.doctor-logo {
  display: grid;
  place-items: center;
  width: clamp(44px, 4.5vw, 50px);
  aspect-ratio: 10 / 9;
  padding: 4px;
  border: 1px solid var(--lav-300);
  border-radius: 7px;
}

.doctor-logo img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.doctor-expertise { margin-top: auto; font-size: .8125rem; line-height: 1.35; }

.doctor-expertise li {
  max-width: 100%;
  padding: 4px 6px;
  border-radius: 5px;
  background: var(--lav-200);
  overflow-wrap: anywhere;
}

.doctor-card-cue {
  margin-top: 4px;
  color: var(--plum-600);
  font-size: .875rem;
  font-weight: 750;
}

.doctor-card-cue span { margin-inline-start: 4px; }
.doctor-card:hover .doctor-card-cue,
.doctor-card:focus-visible .doctor-card-cue { text-decoration: underline; text-underline-offset: .22em; }

.doctor-profile-hero {
  padding-block: 22px clamp(38px, 6vw, 68px);
  background: radial-gradient(ellipse at 48% 0%, var(--plum-400), var(--plum-600) 43%, var(--plum-950) 100%);
}

.doctor-back { margin-bottom: 20px; color: var(--white); }
.doctor-back:focus-visible { outline-color: var(--gold); }

.doctor-profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr);
  align-items: start;
  gap: clamp(18px, 3vw, 36px);
}

.doctor-profile-summary {
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / .24);
  border-radius: var(--doctor-radius);
  background: rgb(255 255 255 / .09);
  color: var(--white);
}

.doctor-profile-portrait { width: 100%; }

.doctor-profile-identity {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: clamp(18px, 2.5vw, 30px) 16px;
  text-align: center;
}

.doctor-profile-identity h1 {
  color: inherit;
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  line-height: 1.12;
  letter-spacing: -.03em;
}

.doctor-profile-identity .doctor-experience { color: var(--lav-200); font-size: .9375rem; font-weight: 500; }
.doctor-profile-identity .btn { margin-top: 4px; }
.doctor-profile-identity .btn:focus-visible { outline-color: var(--white); }

.doctor-about {
  padding: clamp(20px, 3.5vw, 38px);
  border-radius: var(--doctor-radius);
  background: var(--doctor-paper);
}

.doctor-about-label {
  display: block;
  width: fit-content;
  margin-bottom: 18px;
  padding: 6px 18px;
  border: 1px solid var(--gold-600);
  border-radius: var(--r-pill);
  color: var(--ink);
  font-size: .9375rem;
  font-weight: 650;
  letter-spacing: normal;
  line-height: 1.4;
}

.doctor-about h2,
.doctor-profile-section h2 {
  color: var(--plum-600);
  font-size: clamp(1.9rem, 3.5vw, 3rem);
  font-weight: 800;
  line-height: 1.13;
  letter-spacing: -.035em;
}

.doctor-biography { margin-top: 18px; font-size: 1rem; line-height: 1.75; }
.doctor-biography p + p { margin-top: .65em; }

.doctor-booking {
  display: grid;
  grid-template-columns: clamp(92px, 12vw, 158px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
  margin-top: clamp(20px, 3vw, 34px);
  padding: clamp(12px, 2vw, 22px);
  border-radius: var(--r-panel);
  background: var(--white);
  box-shadow: 0 10px 28px -20px rgb(46 26 71 / .35);
  font-size: .9375rem;
}

.doctor-booking img { width: 100%; }
.doctor-booking h3 { margin-bottom: 4px; color: var(--plum-600); font-size: 1.2rem; line-height: 1.3; }
.doctor-booking a { color: var(--plum-600); font-weight: 700; white-space: nowrap; }

.doctor-profile-section { padding-block: clamp(38px, 6vw, 68px); }
.doctor-profile-section h2 { margin-bottom: clamp(20px, 3vw, 30px); }

.doctor-details-grid,
.doctor-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.doctor-detail,
.doctor-testimonial {
  padding: clamp(16px, 2.4vw, 24px);
  border: 1px solid var(--lav-300);
  border-radius: var(--r-panel);
  background: var(--white);
  font-size: .9375rem;
}

.doctor-detail h3 { margin-bottom: 10px; font-size: 1.125rem; line-height: 1.3; }
.doctor-detail ul { display: grid; gap: 6px; padding-left: 1.2em; list-style: disc; }
.doctor-detail li::marker { color: var(--plum-500); }
.doctor-testimonials { background: var(--lav-100); }
.doctor-testimonial { display: flex; flex-direction: column; gap: 14px; }
.doctor-testimonial blockquote { margin: 0; }
.doctor-testimonial figcaption { margin-top: auto; color: var(--plum-600); font-weight: 700; }
.doctor-testimonials .btn { margin-top: 24px; }

@media (max-width: 1039px) {
  .doctors-hero-grid { grid-template-columns: minmax(0, 1.12fr) minmax(290px, .88fr); gap: 20px; }
  .doctors-hero-visual { min-height: 510px; }
  .doctors-grid,
  .doctor-details-grid,
  .doctor-testimonials-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .doctors-hero { margin-top: -80px; padding-top: 80px; }
  .doctors-hero-grid { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .doctors-hero-copy { padding-top: 8px; padding-bottom: 44px; }
  .doctors-directory .doctors-hero h1 { font-size: clamp(2.55rem, 11vw, 4.1rem); }
  .doctors-trust { grid-template-columns: minmax(0, 1fr); }
  .doctors-trust li { grid-template-columns: 38px minmax(0, 1fr); }
  .doctors-trust img { width: 38px; }
  .doctors-hero-visual { order: -1; min-height: clamp(270px, 76vw, 410px); }
  .doctors-hero-visual::before { right: 5%; bottom: 5%; width: 90%; }
  .doctors-hero-visual img { right: 50%; width: min(98%, 500px); max-height: 100%; transform: translateX(50%); }
  .doctor-profile-grid { grid-template-columns: minmax(0, 1fr); }
  .doctor-profile-summary { width: min(100%, 440px); margin-inline: auto; }
}

@media (max-width: 639px) {
  .doctors-grid,
  .doctor-details-grid,
  .doctor-testimonials-grid { grid-template-columns: minmax(0, 1fr); }
  .doctor-card { width: min(100%, 440px); margin-inline: auto; }
}

@media (max-width: 400px) {
  .doctors-hero-cta { width: 100%; }
  .doctor-booking { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .doctor-booking img { width: 142px; }
}

@media (prefers-reduced-motion: reduce) {
  .doctor-card { transition: none; }
}
