/* =========================================================
   ABOUT US PAGE — extends styles.css
   ========================================================= */

/* ---------- ABOUT INTRO (image left / copy right) ---------- */
.about-page h1, .about-page h2{
  font-weight: 600;
  font-size: var(--fs-h1-sm);
}

main.about-page{
  background: linear-gradient(to bottom, #ffffff 0%, #f5fbfe 20%, #f5fbfe 100%);
} 

.about-photo {
  max-height: 70vh;
}

.about-page h1{
  max-width: 15ch;
}

.about-page h1::after{
  content: none;
}

.about-page h2::after {
  content: none;
}

.about-intro {
  padding-top: calc(var(--section-py) + 90px);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-xl);
  align-items: center;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
}

.about-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.about-copy p {
  max-width: 46ch;
  margin-left: unset;
  margin-right: unset;
}

/* ---------- THE CLINIC (copy left / copy + stats right) ---------- */
.clinic {
  padding: var(--section-py) var(--section-px);
  display: flex;
  align-items: center;
  min-height: 75vh;
}

.clinic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-xl);
  align-items: start;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
}

.clinic-copy {
  display: flex;
  flex-direction: column;
}

.clinic-detail p {
  max-width: 52ch;
}

.stats-row {
  display: flex;
  gap: var(--gap-xl);
  flex-wrap: wrap;
}

.stat-item .stat-figure {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  font-size: var(--fs-h1-sm);
  color: var(--dark);
  margin-bottom: 10px;
}

.stat-item .stat-label {
  font-size: var(--fs-doctor-desc);
  font-weight: 600;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  line-height: 1.5;
}
/* ---------- TEAM ---------- */
.about-page .doctor-card .title{
  border-bottom: none;
  margin-bottom: 0;
  min-height: calc(var(--fs-eyebrow) * 1.75 * 1.5);
  padding-bottom: 0;
}

/* ---------- PHILOSOPHY ---------- */
.philosophy {
  padding: var(--section-py) var(--section-px);
}

.philosophy h2 {
  margin-bottom: var(--gap-lg);
}

.pv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-xl);
  max-width: var(--container);
  margin: var(--section-py) auto;
}

.pv-item h3 {
  font-family: "Playfair Display", serif;
  font-weight: 300;
  font-size: clamp(28px, 2.2vw + 14px, 42px);
  color: var(--dark);
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 18px;
}

.pv-item p {
  max-width: 40ch;
}

.philosophy-quote {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-weight: 100;
  font-size: var(--fs-h1-sm);
  /* line-height: 1.35; */
  color: var(--dark);
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.clinic h2 br{
  display: none;
}


/* ---------- Small Laptop / Standard Browser Window (1025px–1600px) ---------- */
@media (min-width: 1025px) and (max-width: 1600px) {

  .about-grid {
    max-width: 80%;
}

.about-photo {
  max-height: 75vh;
}

  .about-intro {
    padding-top: calc(var(--section-py) + 60px);
  }

  .clinic h2{
    max-width: 15ch;
  }

  .pv-grid {
    max-width: 80%;
  }

  .clinic-grid {
    width: 80%;
}
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .about-intro {
    padding-top: calc(var(--section-py) + 70px);
  }

  .about-grid,
  .clinic-grid {
    grid-template-columns: 1fr;
  }

  .about-photo {
    /* aspect-ratio: 9 / 7; */
    aspect-ratio: 10 / 8.5;
  }

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


  .about-intro {
    padding-top: calc(var(--section-py) + 50px);
}


  .about-page h1 {
    max-width: unset;
}

.clinic h2 br{
  display: block;
}

.clinic-detail p {
  max-width: unset;
  margin-left: unset;
  margin-right: unset;
}

.clinic-grid {
  gap: unset;
}

.clinic {
  min-height: 60vh;
}

.clinic-copy {
  align-items: center;
}

.clinic-detail {
  display: flex
  ;
      flex-direction: column;
      align-items: center;
}

.philosophy {
  min-height: 80vh;
}

.pv-item p {
  max-width: min(90%, 68ch);
}

}

@media (max-width: 600px) {
  .stats-row {
    gap: var(--gap-md);
  }

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

  .about-intro h1 br{
    display: none;
  }

  .about-photo {
    aspect-ratio: 6 / 7.5;
}

.clinic {
  min-height: 75vh;
}

}




/* Keep linked doctor cards consistent with the reusable doctors grid */
.doctor-grid > a {
  grid-column: span 2;
  display: block;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.doctor-grid > a .doctor-card {
  height: 100%;
}

/* Center leftover cards on desktop */
@media (min-width: 1025px) {
  .doctor-grid > a:nth-child(3n + 1):last-child {
      grid-column: 3 / span 2;
  }

  .doctor-grid > a:nth-child(3n + 1):nth-last-child(2) {
      grid-column: 2 / span 2;
  }

  .doctor-grid > a:nth-child(3n + 2):last-child {
      grid-column: 4 / span 2;
  }
}

/* Center a single leftover card on tablet */
@media (min-width: 601px) and (max-width: 1024px) {
  .doctor-grid > a:nth-child(odd):last-child {
      grid-column: 2 / span 2;
  }
}

/* Mobile: one card per row */
@media (max-width: 600px) {
  .doctor-grid > a {
      grid-column: auto;
  }
}
