/*
 * Concerns page (page-concerns.php). The hero and the sticky area menu reuse services-index.css.
 */

/* ---------- Groups and chips ---------- */

.concern-group { position: relative; overflow: hidden; padding: clamp(40px, 5vw, 72px) var(--gutter); scroll-margin-top: calc(var(--header-h, 0px) + 72px); }
.concern-group:nth-of-type(even) { background: var(--surface-soft); }
.concern-group-inner { position: relative; z-index: 1; max-width: 1100px; margin: 0 auto; }

/* A brand photo behind the right side of each group: faded, toned to the cream, melting into it on the left. */
.concern-group-art {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: 44%;
	pointer-events: none;
	opacity: .34;
	mix-blend-mode: multiply;
	-webkit-mask-image: linear-gradient(to left, #000 30%, transparent 100%);
	mask-image: linear-gradient(to left, #000 30%, transparent 100%);
}
.concern-group-art img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) sepia(.5) brightness(1.05) contrast(.85); }
@media (max-width: 900px) {
	.concern-group-art { width: 70%; opacity: .24; }
}


/* ---------- Chips ---------- */

.concern-group h2 { font-size: var(--fs-h2); margin-bottom: 28px; }
.concern-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.concern-chip {
	font-family: var(--sans);
	font-size: var(--fs-tabs);
	line-height: 1.3;
	padding: 13px 20px;
	border: 1px solid var(--rule);
	background: var(--surface);
	color: var(--ink);
	white-space: nowrap;
	transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.concern-chip:hover { border-color: var(--gold); }
.concern-chip.open { background: var(--dark); color: var(--paper); border-color: var(--dark); }


/* ---------- The open panel ----------
 * Four sections, each separated by a rule: about, timeline, treatments, results, then the actions.
 */

.concern-panel {
	margin-top: 20px;
	padding: clamp(28px, 3.5vw, 48px);
	background: var(--surface);
	border: 1px solid var(--rule);
	border-top: 3px solid var(--gold);
}
.concern-group:nth-of-type(even) .concern-panel { background: var(--surface-warm); }

.concern-section { padding-top: 28px; margin-top: 28px; border-top: 1px solid var(--rule); }
.concern-section > .label { display: block; margin-bottom: 14px; }
.concern-section-note { font-size: var(--fs-small); color: var(--ink-soft); margin: -6px 0 14px; }

.concern-panel-head { display: flex; gap: 24px; align-items: flex-start; }
.concern-photo { flex: 0 0 200px; width: 200px; aspect-ratio: 1; overflow: hidden; border: 1px solid var(--rule); }
.concern-photo img { width: 100%; height: 100%; object-fit: cover; }
.concern-panel-head h3 { font-size: var(--fs-h3); margin-bottom: 10px; }
.concern-panel-head p { font-size: var(--fs-body); line-height: var(--lh-text); max-width: 64ch; }

/* The timeline switch: a row of bordered choices, the chosen one filled. */
.timeline-switch { display: flex; flex-wrap: wrap; gap: 8px; }
.timeline-switch button {
	font-family: var(--sans);
	font-size: var(--fs-small);
	line-height: 1.3;
	padding: 11px 16px;
	border: 1px solid var(--ink);
	color: var(--ink);
	background: transparent;
	transition: background .2s ease, color .2s ease;
}
.timeline-switch button:hover { background: var(--surface-soft); }
.timeline-switch button.active { background: var(--dark); color: var(--paper); border-color: var(--dark); }

.treatment-list { list-style: none; border-top: 1px solid var(--rule); }
.treatment-list li { display: grid; grid-template-columns: 1fr auto; gap: 4px 24px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.treatment-list strong { font-family: var(--serif); font-weight: 400; font-size: var(--fs-h4); line-height: 1.2; }
.treatment-list span { grid-column: 1; font-size: var(--fs-small); line-height: 1.5; color: var(--ink-soft); max-width: 60ch; }
.treatment-list .link-arrow { grid-column: 2; grid-row: 1 / span 2; font-size: var(--fs-label); }
.treatment-list .treatment-common { grid-column: 1 / -1; font-family: var(--ui); font-size: var(--fs-label); letter-spacing: var(--label-tracking); text-transform: uppercase; color: var(--link); }

.concern-results-row { display: flex; flex-wrap: wrap; gap: 14px; }
.concern-results-row figure { width: 180px; }
.concern-results-row img { width: 180px; height: 225px; object-fit: cover; border: 1px solid var(--rule); }
.concern-results-row figcaption { font-size: var(--fs-small); line-height: 1.4; margin-top: 8px; }

.concern-actions .guide-back { margin-left: auto; }


/* ---------- Guide prompt ---------- */

.concerns-guide { padding: var(--section-pad) var(--gutter); text-align: center; }
.concerns-guide-inner { max-width: 620px; margin: 0 auto; }
.concerns-guide h2 { font-size: var(--fs-h2); margin-bottom: 12px; }
.concerns-guide p { font-size: var(--fs-lead); line-height: var(--lh-text); color: var(--ink-soft); margin-bottom: 26px; }


/* ---------- Smaller screens ---------- */

@media (max-width: 600px) {
	.timeline-switch { flex-direction: column; align-items: stretch; }
	.timeline-switch button { text-align: left; }
}

@media (max-width: 900px) {
	.concern-panel-head { flex-direction: column; }
	.treatment-list li { grid-template-columns: 1fr; }
	.treatment-list .link-arrow { grid-column: 1; grid-row: auto; margin-top: 6px; }
}

.treatment-list li:last-child { border-bottom: 0; }
