/* ============================================================
   Gemini OB/GYN — Service Detail page template
   Loaded only for template-service.php. Relies on the tokens
   and shared classes (.container, .section-title, .rich-text,
   .insurances, .reviews, .office-map, .schedule-band, etc.)
   defined in style.css, which is enqueued first.

   This file styles only the two sections unique to a service
   page: the hero banner + intro, and the Q & A accordion. The
   lower sections reuse the shared block styles in style.css.
   ============================================================ */

/* ----------------------------------------------------------
   1. Hero banner — full-bleed image, dark overlay, Trajan title
---------------------------------------------------------- */
.service-hero {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 280px;
	overflow: hidden;
	background: var(--c-band-dark);
	isolation: isolate;
}
.service-hero__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: -2;
}
.service-hero__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.26);
	z-index: -1;
}
.service-hero__inner {
	text-align: center;
}
.service-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. Intro lede — centered paragraph beneath the hero
---------------------------------------------------------- */
.service-intro {
	padding: clamp(2.5rem, 6vw, 5rem) 0;   /* 80px top & bottom on desktop, symmetric */
	background: var(--c-bg);
}
.service-intro__text {
	max-width: 1095px;
	margin: 0 auto;
	font-family: var(--ff-body);
	font-size: var(--fs-body-lg);       /* 22px */
	line-height: 1.7;
	color: var(--c-body);
	text-align: left;
}

/* ----------------------------------------------------------
   3. Q & A accordion — native <details>/<summary>
   Matches Figma node 836:10286 — warm taupe panel, Trajan
   heading, thin +/- toggles, full-width hairline dividers.
---------------------------------------------------------- */
.service-qa {
	padding: clamp(2.5rem, 6vw, 5rem) 0;
	background: #e4dedb;                 /* warm taupe panel */
}
.service-qa__heading {
	margin: 0 0 clamp(2rem, 4vw, 3.75rem);
	font-family: var(--ff-display);      /* Trajan Pro */
	font-weight: 400;
	font-size: clamp(2rem, 4vw, 2.5rem); /* up to 40px */
	line-height: 1.05;
	letter-spacing: -0.01em;
	color: #000;
	text-transform: none;
}

.service-qa__list {
	display: flex;
	flex-direction: column;
}
.service-qa__item {
	padding: clamp(1.25rem, 2.5vw, 2rem) 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.3);
}
.service-qa__item:first-child { padding-top: 0; }

/* Question row */
.service-qa__question {
	display: flex;
	align-items: flex-start;
	gap: clamp(1.25rem, 3vw, 2.5rem);
	cursor: pointer;
	list-style: none;                   /* strip default marker */
	font-family: var(--ff-body);        /* Optima */
	font-size: 22px;
	line-height: 1.18;                  /* ~26px */
	color: #000;
	transition: color 0.2s var(--ease);
}
.service-qa__question::-webkit-details-marker { display: none; }
.service-qa__question:hover { color: var(--c-accent); }
/* No box around a selected/clicked question — the colour shift is the cue.
   A subtle ring is kept for keyboard focus only (accessibility). */
.service-qa__question:focus { outline: none; }
.service-qa__question:focus-visible {
	outline: 2px solid var(--c-accent);
	outline-offset: 4px;
}

.service-qa__q-text { flex: 1 1 auto; }

/* Plus / minus toggle icon (CSS-drawn, thin strokes, 30×30) */
.service-qa__icon {
	position: relative;
	flex: 0 0 30px;
	width: 30px;
	height: 30px;
	margin-top: -1px;
	color: #000;
}
.service-qa__icon::before,
.service-qa__icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	background: currentColor;
	transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.service-qa__icon::before {                 /* horizontal bar */
	width: 26px;
	height: 1.5px;
	transform: translate(-50%, -50%);
}
.service-qa__icon::after {                  /* vertical bar */
	width: 1.5px;
	height: 26px;
	transform: translate(-50%, -50%);
}
/* Open state — hide the vertical bar so the plus becomes a minus */
.service-qa__item[open] .service-qa__icon::after {
	opacity: 0;
	transform: translate(-50%, -50%) rotate(90deg);
}

/* Answer body — indented to align under the question text */
.service-qa__answer {
	padding: clamp(1.25rem, 2.5vw, 1.875rem) 0 0 calc(30px + clamp(1.25rem, 3vw, 2.5rem));
	font-family: var(--ff-body);
	font-size: 17px;
	line-height: 1.53;                  /* ~26px */
	color: #000;
}
.service-qa__answer p { margin: 0 0 1em; }
.service-qa__answer p:last-child { margin-bottom: 0; }
.service-qa__answer ul,
.service-qa__answer ol {
	margin: 0 0 1em;
	padding-left: 1.6em;
}
.service-qa__answer ul { list-style: disc; }
.service-qa__answer ol { list-style: decimal; }
.service-qa__answer li { margin: 0 0 0.35em; }
.service-qa__answer a { color: #006edc; text-decoration: underline; }
.service-qa__answer a:hover { color: var(--c-accent); }

/* ----------------------------------------------------------
   4. Responsive
---------------------------------------------------------- */
@media (max-width: 900px) {
	.service-hero { height: 200px; }
}
@media (max-width: 600px) {
	.service-qa__question {
		gap: 1rem;
		font-size: 1.125rem;
	}
	.service-qa__answer {
		padding-left: calc(30px + 1rem);
	}
}
