/*
 * Service pages (single-service.php and template-parts/service/*).
 * Loaded only on service pages. Every value comes from tokens.css.
 */

/* ---------- Breadcrumb ---------- */

.service-breadcrumb {
	max-width: var(--max-w);
	margin: 0 auto;
	padding: clamp(18px, 2vw, 28px) var(--gutter) 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	font-family: var(--ui);
	font-size: var(--fs-label);
	letter-spacing: var(--label-tracking);
	text-transform: uppercase;
	color: var(--ink-soft);
}
.service-breadcrumb a:hover { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.service-breadcrumb .sep { opacity: .5; }
.service-breadcrumb .current { color: var(--ink); }


/* ---------- Hero ---------- */

.service-hero { padding: clamp(28px, 3.5vw, 48px) var(--gutter) clamp(40px, 5vw, 70px); }

.service-hero-grid {
	max-width: var(--max-w);
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1.15fr 1fr;
	gap: clamp(36px, 5vw, 80px);
	align-items: center;
}
.service-hero-grid.no-image { grid-template-columns: 1fr; max-width: 900px; }

.service-hero-text .eyebrow { display: block; margin-bottom: 16px; }

.service-title {
	font-size: clamp(2.4rem, 5vw, 4.2rem);
	line-height: 1;
	letter-spacing: -.015em;
	margin-bottom: 20px;
}

.service-subtitle {
	font-family: var(--serif);
	font-size: clamp(1.25rem, 1.6vw, 1.5rem);
	line-height: 1.4;
	color: var(--ink-soft);
	margin-bottom: 32px;
}

.service-facts {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	padding: 22px 0;
	border-top: 1px solid var(--rule);
	border-bottom: 1px solid var(--rule);
	margin-bottom: 32px;
}
.service-facts li { padding: 0 clamp(8px, 1.5vw, 22px); border-right: 1px solid var(--rule); }
.service-facts li:first-child { padding-left: 0; }
.service-facts li:last-child { border-right: none; }
.service-facts .label { display: block; margin-bottom: 8px; }
.service-facts .value { display: block; font-family: var(--serif); font-size: var(--fs-h4); line-height: 1.2; }

.service-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }

.service-hero-media img { width: 100%; height: auto; max-height: 560px; object-fit: contain; }


/* ---------- Carousel (used by the hero; generic enough for other pages) ---------- */

.carousel { position: relative; overflow: hidden; }
.carousel-track { display: flex; transition: transform .5s cubic-bezier(.4, 0, .2, 1); }
.carousel-slide { flex: 0 0 100%; display: flex; align-items: center; justify-content: center; padding: 16px; }
.carousel-slide img { width: 100%; height: auto; max-height: 520px; object-fit: contain; }

.carousel-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--gold-surface);
	border: 1px solid var(--gold-surface);
	z-index: 2;
	transition: background .2s ease, border-color .2s ease;
}
.carousel-btn::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 10px;
	height: 10px;
	border-left: 2px solid var(--on-gold);
	border-bottom: 2px solid var(--on-gold);
	transform: translate(-40%, -50%) rotate(45deg);
}
.carousel-btn.next::before { transform: translate(-60%, -50%) rotate(-135deg); }
.carousel-btn.prev { left: 12px; }
.carousel-btn.next { right: 12px; }
.carousel-btn:hover { background: var(--ink); border-color: var(--ink); }
.carousel-btn:hover::before { border-color: var(--paper); }

.carousel-dots { position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 2; }
.carousel-dot { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--gold); background: transparent; padding: 0; transition: background .2s ease, transform .2s ease; }
.carousel-dot.active { background: var(--gold); transform: scale(1.2); }


/* ---------- Body sections ---------- */

.service-body {
	padding: clamp(40px, 5vw, 80px) var(--gutter) clamp(50px, 6vw, 100px);
	background: var(--surface-soft);
}
.service-body-inner { max-width: 960px; margin: 0 auto; }

.service-section, .pt-section { margin-bottom: clamp(48px, 5.5vw, 84px); }
.service-section:last-child, .pt-section:last-child, .service-section .pt-section { margin-bottom: 0; }

.pt-section-head { margin-bottom: clamp(22px, 2.5vw, 32px); }
.pt-section-head .eyebrow { display: block; margin-bottom: 12px; }
.pt-section-head h2 { font-size: var(--fs-h2); letter-spacing: -.008em; }

.pt-body p,
.pt-intro,
.pt-intro p { font-size: var(--fs-body); line-height: 1.78; margin-bottom: 16px; }
.pt-body p:last-child,
.pt-intro p:last-child { margin-bottom: 0; }
.pt-intro { margin-bottom: 24px; }
/* A list inside body text is boxed: gold rule on top, a gold dot and a divider per item. */
.pt-body ul {
	list-style: none;
	margin: 20px 0 24px;
	padding: 12px 0 0;
	border-top: 2px solid var(--gold);
}
.pt-body ul li {
	position: relative;
	padding: 14px 0 14px 28px;
	border-bottom: 1px solid var(--rule);
	font-size: var(--fs-body);
	line-height: 1.6;
	margin: 0;
}
.pt-body ul li:last-child { border-bottom: none; }
.pt-body ul li::before { content: ''; position: absolute; left: 6px; top: 24px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.pt-body ol { margin: 0 0 16px 1.3em; }
.pt-body ol li { margin-bottom: 6px; line-height: 1.6; }
.pt-body h3,
.pt-body h4 { margin: 28px 0 10px; }
.pt-body a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }

/* The Javan Difference */
.pt-difference {
	position: relative;
	overflow: hidden;
	padding: clamp(36px, 4.5vw, 56px);
	background: var(--dark);
	color: var(--paper);
}
.pt-difference::before {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	width: 320px;
	height: 320px;
	background: radial-gradient(circle at top right, rgba(198, 161, 91, .14) 0%, transparent 65%);
	pointer-events: none;
}
.pt-difference > * { position: relative; }
.pt-difference .eyebrow { display: block; margin-bottom: 14px; }
.pt-difference h3 { font-size: var(--fs-h3); margin-bottom: 20px; }
.pt-difference p { font-size: var(--fs-body); line-height: 1.78; margin-bottom: 16px; }
.pt-difference p:last-child { margin-bottom: 0; }

/* Benefit lists */
.pt-list { list-style: none; }
.pt-list li {
	position: relative;
	padding: 12px 0 12px 22px;
	border-bottom: 1px solid var(--rule);
	font-size: var(--fs-small);
	line-height: 1.5;
}
.pt-list li:last-child { border-bottom: none; }
.pt-list li::before { content: ''; position: absolute; left: 0; top: 19px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

.pt-list-columns { columns: 2; column-gap: 40px; }
.pt-list-columns li { break-inside: avoid; }

.pt-benefits-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 2.5vw, 32px); }
.pt-benefits-col {
	padding: clamp(24px, 3vw, 34px);
	background: var(--surface);
	border: 1px solid var(--rule);
	border-top: 3px solid var(--gold);
}
.pt-benefits-col .label { display: block; margin-bottom: 6px; }
.pt-benefits-col h4 { margin-bottom: 14px; }

/* Treatment details */
.pt-details { list-style: none; }
.pt-details li {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 20px;
	align-items: center;
	padding: 18px 0;
	border-bottom: 1px solid var(--rule);
}
.pt-details li:first-child { border-top: 1px solid var(--gold); }
.pt-details li:last-child { border-bottom: none; }
.pt-details .detail-text { font-size: var(--fs-small); line-height: 1.5; }
.pt-details .detail-text strong { display: block; font-family: var(--serif); font-weight: 500; font-size: var(--fs-lead); margin-bottom: 4px; }
.pt-details .detail-value {
	font-family: var(--ui);
	font-size: var(--fs-label);
	font-weight: var(--label-weight);
	letter-spacing: var(--label-tracking);
	text-transform: uppercase;
	white-space: nowrap;
}

/* Steps */
.pt-steps { list-style: none; counter-reset: step; }
.pt-steps li {
	counter-increment: step;
	position: relative;
	padding: 20px 0 20px 60px;
	border-bottom: 1px solid var(--rule);
	font-size: var(--fs-small);
	line-height: 1.55;
}
.pt-steps li:first-child { border-top: 1px solid var(--rule); }
.pt-steps li::before {
	content: counter(step);
	position: absolute;
	left: 0;
	top: 20px;
	width: 44px;
	font-family: var(--serif);
	font-size: var(--fs-h3);
	line-height: 1;
	color: var(--link);
}
.pt-steps li strong { display: block; font-family: var(--serif); font-weight: 500; font-size: var(--fs-lead); margin-bottom: 4px; }

/* FAQ */
.pt-faq-item { border-bottom: 1px solid var(--rule); }
.pt-faq-item:first-child { border-top: 1px solid var(--rule); }
.pt-faq-item summary {
	position: relative;
	list-style: none;
	cursor: pointer;
	padding: 20px 44px 20px 0;
	font-family: var(--serif);
	font-size: var(--fs-h4);
	line-height: 1.3;
}
.pt-faq-item summary::-webkit-details-marker { display: none; }
.pt-faq-item summary::after {
	content: '+';
	position: absolute;
	right: 4px;
	top: 18px;
	font-size: 26px;
	line-height: 1;
	color: var(--link);
}
.pt-faq-item[open] summary::after { content: '−'; }
.pt-faq-answer { padding: 0 0 22px; }
.pt-faq-answer p { font-size: var(--fs-body); line-height: 1.75; margin-bottom: 12px; }
.pt-faq-answer p:last-child { margin-bottom: 0; }

/* Treatment menu */
.pt-menu { display: grid; gap: 16px; }
.pt-menu-item {
	padding: clamp(22px, 2.5vw, 30px);
	background: var(--surface);
	border: 1px solid var(--rule);
	border-left: 3px solid var(--gold);
}
.pt-menu-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 14px; margin-bottom: 10px; }
.pt-menu-head h3 { font-size: var(--fs-h4); }
.pt-badge {
	font-family: var(--ui);
	font-size: var(--fs-label);
	font-weight: var(--label-weight);
	letter-spacing: var(--label-tracking);
	text-transform: uppercase;
	padding: 4px 10px;
	border: 1px solid var(--gold);
}
.pt-menu-item p { font-size: var(--fs-small); line-height: 1.7; }
.pt-menu-item p + p { margin-top: 10px; }

/* Promo note */
.pt-promo {
	padding: clamp(22px, 2.5vw, 30px);
	border: 1px solid var(--gold);
	text-align: center;
}
.pt-promo p { font-family: var(--serif); font-size: var(--fs-h4); line-height: 1.35; }
.pt-promo .pt-promo-fine { font-family: var(--sans); font-size: var(--fs-small); color: var(--ink-soft); margin-top: 10px; }


/* ---------- Real results ---------- */

.service-results { padding: var(--section-pad) var(--gutter); }
.service-results-inner { max-width: var(--max-w); margin: 0 auto; }
.service-results .section-head { margin-bottom: clamp(28px, 3vw, 44px); }
.service-results .section-head .eyebrow { display: block; margin-bottom: 12px; }

.results-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.results-tile { background: var(--surface-warm); border: 1px solid var(--rule); }
.results-tile img { width: 100%; height: auto; }
.results-tile figcaption { padding: 14px 16px 16px; }
.results-tile strong { display: block; font-family: var(--serif); font-weight: 400; font-size: var(--fs-lead); line-height: 1.2; }
.results-tile span { display: block; font-size: var(--fs-small); color: var(--ink-soft); margin-top: 4px; }
.results-more { margin-top: 28px; }


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

@media (max-width: 900px) {
	.service-hero-grid { grid-template-columns: 1fr; gap: 32px; }
	.service-hero-media { order: -1; }
	.pt-benefits-grid { grid-template-columns: 1fr; }
	.pt-list-columns { columns: 1; }
	.results-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
	.service-facts { grid-template-columns: 1fr; gap: 14px; padding: 18px 0; }
	.service-facts li { padding: 0; border-right: none; }
	.pt-details li { grid-template-columns: 1fr; gap: 6px; }
	.pt-steps li { padding-left: 48px; }
	.results-grid { grid-template-columns: 1fr; }
}

.service-hero-media > .carousel-slide { display: block; }
.service-hero-media [data-edit-type="image"] { display: block; }
