/* ============================================================
   Gemini OB/GYN — Physician Detail page template
   Loaded only for template-physician.php. Relies on the tokens
   and shared classes (.container, .btn, .doctor-card, etc.)
   defined in style.css, which is enqueued first.
   ============================================================ */

/* ----------------------------------------------------------
   1. Hero banner — full-bleed image, dark overlay, Trajan title
---------------------------------------------------------- */
.physician-hero {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 280px;
	overflow: hidden;
	background: var(--c-band-dark);
	isolation: isolate;
}
@media (max-width: 900px) {
	.physician-hero { height: 200px; }
}
.physician-hero__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: -2;
}
.physician-hero__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.26);
	z-index: -1;
}
.physician-hero__inner {
	text-align: center;
}
.physician-hero__title {
	margin: 0;
	font-family: var(--ff-display);
	font-weight: 400;
	font-size: var(--fs-h1);            /* up to 60px */
	line-height: 1.1;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--c-on-dark);
}

/* ----------------------------------------------------------
   2. Physician bio — aside (photo + education) + main (rich text)
---------------------------------------------------------- */
.physician-bio {
	padding: clamp(2.5rem, 5vw, 4.5rem) 0;
	background: var(--c-bg);
}
.physician-bio__inner {
	display: grid;
	grid-template-columns: 300px minmax(0, 1fr);
	gap: clamp(2rem, 5vw, 5rem);
	align-items: start;
}

/* --- Left column ----------------------------------------- */
.physician-bio__aside {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.75rem;
}
.physician-bio__photo {
	width: 267px;
	max-width: 100%;
	aspect-ratio: 1 / 1;
	border-radius: 50%;
	overflow: hidden;
	box-shadow: var(--shadow);
}
.physician-bio__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.physician-bio__edu-heading {
	margin: 0.5rem 0 0;
	font-family: var(--ff-display);
	font-weight: 400;
	font-size: 20px;
	line-height: 1.5;
	letter-spacing: 0.02em;
	color: var(--c-headline);
	text-align: center;
	font-variant-caps: all-small-caps;
}
.physician-bio__edu-list {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	width: 100%;
	max-width: 251px;
}

/* Education card — white logo panel over light-gray text panel */
.edu-card {
	border: 1px solid #000;
	border-radius: var(--radius-sm);
	overflow: hidden;
	background: #fff;
}
.edu-card__logo {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 122px;
	padding: 1.25rem;
	background: #fff;
}
.edu-card__logo img {
	max-width: 100%;
	max-height: 80px;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
}
.edu-card__body {
	min-height: 122px;
	padding: 1.25rem 1rem;
	border-top: 1px solid #000;
	background: #f8f8f8;
	text-align: center;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.4rem;
}
.edu-card__institution {
	margin: 0;
	font-family: var(--ff-body);
	font-size: 17px;
	line-height: 1.25;
	color: #000;
}
.edu-card__qualification {
	margin: 0;
	font-family: var(--ff-body);
	font-size: 17px;
	line-height: 1.3;
	color: #000000;
}

/* --- Right column ---------------------------------------- */
.physician-bio__name {
	margin: 0 0 1.25rem;
	font-family: var(--ff-display);
	font-weight: 400;
	font-size: var(--fs-h2);            /* up to 45px */
	line-height: 1.25;
	letter-spacing: 0.01em;
	color: var(--c-headline);           /* #2E2E41 */
	font-variant-caps: all-small-caps;
}
.physician-bio__body {
	font-family: var(--ff-body);
	font-size: var(--fs-body-lg);       /* 22px */
	line-height: 1.7;
	color: var(--c-body);
}
.physician-bio__body p { margin: 0 0 1.4em; }

/* Section headings — Trajan 27px. Supports both real heading tags and the
   WYSIWYG pattern of a standalone <strong> line (wrapped in its own <p>). */
.physician-bio__body h2,
.physician-bio__body h3,
.physician-bio__body p:has(> strong:only-child) > strong {
	display: inline-block;
	margin: 0;
	font-family: var(--ff-display);
	font-weight: 400;
	font-size: var(--fs-h2-pre);        /* 27px */
	line-height: 1.3;
	letter-spacing: 0.01em;
	color: var(--c-body);               /* #697382 — Figma section headings */
	text-transform: none;
	font-variant-caps: normal;
}
.physician-bio__body h2,
.physician-bio__body h3 { margin: 1.6em 0 0.4em; }

/* A paragraph holding only a heading <strong> gets heading spacing */
.physician-bio__body p:has(> strong:only-child) {
	margin: 1.6em 0 0.4em;
}
.physician-bio__body ul {
	margin: 0 0 1.4em;
	padding-left: 1.4em;
	list-style: disc;
}
.physician-bio__body li { margin: 0 0 0.4em; }
.physician-bio__body a {
	color: #006edc;
	text-decoration: underline;
}
.physician-bio__body a:hover { color: var(--c-accent); }

/* ----------------------------------------------------------
   3. Schedule band — beige rounded CTA card
---------------------------------------------------------- */
.physician-schedule {
	padding: clamp(1.5rem, 3vw, 2.5rem) 0;
	background: var(--c-bg);
}
.physician-schedule__card {
	background: #E4DEDB;
	border-radius: var(--radius-card);  /* 20px */
	padding: clamp(2.25rem, 4vw, 3.5rem) 1.5rem;
	text-align: center;
}
.physician-schedule__title {
	margin: 0 0 0.75rem;
	font-family: var(--ff-display);
	font-weight: 700;
	font-size: 27px;
	line-height: 1.3;
	letter-spacing: 0.02em;
	color: #424242;
	font-variant-caps: all-small-caps;
}
.physician-schedule__body {
	margin: 0 auto 1.75rem;
	max-width: 640px;
	font-family: var(--ff-body);
	font-size: 24px;
	line-height: 1.3;
	color: #424242;
}
.physician-schedule__ctas {
	display: flex;
	gap: 1rem;
	justify-content: center;
	flex-wrap: wrap;
}
.physician-schedule__btn {
	font-family: var(--ff-display);
	font-weight: 700;
	font-size: 20px;
	line-height: 1;
	letter-spacing: 0.04em;
	border-radius: var(--radius-sm);
	padding: 1.1rem 1.75rem;
	font-variant-caps: all-small-caps;
	text-transform: none;
}
.physician-schedule__btn--appt { gap: 0.85rem; }
.physician-schedule__btn-arrow { flex-shrink: 0; transition: transform 0.25s var(--ease); }
.physician-schedule__btn--appt:hover .physician-schedule__btn-arrow { transform: translateX(3px); }

/* ----------------------------------------------------------
   4. Meet the physicians — intro copy above the shared carousel
---------------------------------------------------------- */
.physician-meet__intro {
	margin: 1rem auto 0;
	max-width: 1200px;
	font-family: var(--ff-body);
	font-size: var(--fs-body-lg);       /* 22px */
	line-height: 1.7;
	color: #424242;
	text-align: center;
}

/* ----------------------------------------------------------
   5. Responsive
---------------------------------------------------------- */
@media (max-width: 900px) {
	.physician-bio__inner {
		grid-template-columns: 1fr;
		gap: 2.5rem;
	}
	.physician-bio__name { text-align: center; }
}

@media (max-width: 560px) {
	.physician-schedule__btn { width: 100%; }
}

/* On very small phones the full-width "Request Appointment" label + circled
   arrow are wider than the card, so the nowrap text gets clipped. Trim the
   button padding/size and the card's side padding so the label fits. */
@media (max-width: 430px) {
	.physician-schedule__card { padding-left: 1rem; padding-right: 1rem; }
	.physician-schedule__btn {
		font-size: 17px;
		padding: 0.95rem 0.75rem;
		letter-spacing: 0.02em;
	}
	.physician-schedule__btn--appt { gap: 0.5rem; }
}
