/**
 * Dent of Istanbul — Treatment page design system
 * Matches homepage cream / red / dark palette (front-page-en.php tokens)
 */

.doi-treatment-page {
	--c-dark: #1d1d26;
	--c-red: #66000f;
	--c-cream: #fafcf4;
	--c-warm: #efe0cd;
	--c-red-tint: #fdf2f4;
	--c-red-border: #f3d9dd;
	--font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
	--font-serif: Georgia, "Times New Roman", serif;

	width: 100vw;
	position: relative;
	margin-left: -50vw;
	left: 50%;
	margin-top: -20px;
	padding: 0 0 80px;
	font-family: var(--font-sans);
	color: rgba(29, 29, 38, 0.75);
	background: var(--c-cream);
	overflow-x: hidden;
}

.doi-treatment-page *,
.doi-treatment-page *::before,
.doi-treatment-page *::after {
	box-sizing: border-box;
}

.doi-tx-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
	position: relative;
	z-index: 2;
}

/* Hero */
.doi-tx-hero {
	position: relative;
	padding: 72px 0 64px;
	background: var(--c-cream);
	overflow: hidden;
}

.doi-tx-hero::before,
.doi-tx-hero::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	pointer-events: none;
}

.doi-tx-hero::before {
	width: 520px;
	height: 520px;
	top: -120px;
	right: -80px;
	background: radial-gradient(circle, rgba(239, 224, 205, 0.7) 0%, transparent 70%);
}

.doi-tx-hero::after {
	width: 400px;
	height: 400px;
	bottom: -100px;
	left: -60px;
	background: radial-gradient(circle, rgba(102, 0, 15, 0.06) 0%, transparent 70%);
}

.doi-tx-hero-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 56px;
	align-items: center;
}

.doi-tx-eyebrow {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--c-red);
	background: var(--c-red-tint);
	border: 1px solid var(--c-red-border);
	padding: 8px 18px;
	border-radius: 999px;
	margin-bottom: 20px;
}

.doi-tx-hero h1 {
	font-family: var(--font-serif);
	font-size: clamp(2.2rem, 4vw, 3.2rem);
	font-weight: 800;
	color: var(--c-dark);
	line-height: 1.15;
	letter-spacing: -0.5px;
	margin: 0 0 20px;
}

.doi-tx-hero h1 em {
	font-style: italic;
	color: var(--c-red);
}

.doi-tx-hero-lead {
	font-size: 1.1rem;
	line-height: 1.75;
	color: rgba(29, 29, 38, 0.65);
	margin: 0 0 28px;
	max-width: 540px;
}

.doi-tx-hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	align-items: center;
}

.doi-tx-hero-visual {
	position: relative;
	border-radius: 28px;
	overflow: hidden;
	border: 1px solid var(--c-warm);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.08);
	aspect-ratio: 4/3;
	background: linear-gradient(145deg, var(--c-warm) 0%, var(--c-red-tint) 100%);
	display: flex;
	align-items: center;
	justify-content: center;
}

.doi-tx-hero-visual-inner {
	text-align: center;
	padding: 32px;
}

.doi-tx-hero-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #fff;
	border: 1px solid var(--c-warm);
	border-radius: 999px;
	padding: 10px 18px;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--c-dark);
	margin: 6px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.doi-tx-hero-chip svg {
	width: 16px;
	height: 16px;
	color: var(--c-red);
	flex-shrink: 0;
}

/* CTAs (match homepage) */
.doi-treatment-page .doi-hero-cta-primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--c-red);
	color: #fff !important;
	font-weight: 700;
	font-size: 0.95rem;
	padding: 1rem 2rem;
	border-radius: 999px;
	text-decoration: none !important;
	box-shadow: 0 8px 28px rgba(102, 0, 15, 0.28);
	transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
	border: none;
	cursor: pointer;
}

.doi-treatment-page .doi-hero-cta-primary:hover {
	background: var(--c-dark);
	transform: translateY(-2px);
	box-shadow: 0 12px 32px rgba(29, 29, 38, 0.2);
	color: #fff !important;
}

.doi-treatment-page .doi-hero-cta-whatsapp {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	color: var(--c-dark) !important;
	font-weight: 600;
	font-size: 0.95rem;
	padding: 1rem 1.6rem;
	border-radius: 999px;
	text-decoration: none !important;
	border: 2px solid var(--c-warm);
	transition: border-color 0.2s, background 0.2s;
}

.doi-treatment-page .doi-hero-cta-whatsapp:hover {
	border-color: var(--c-red);
	background: var(--c-red-tint);
	color: var(--c-dark) !important;
}

/* Sections */
.doi-tx-section {
	padding: 64px 0;
}

.doi-tx-section-alt {
	background: #fff;
	border-top: 1px solid var(--c-warm);
	border-bottom: 1px solid var(--c-warm);
}

.doi-tx-section-head {
	text-align: center;
	max-width: 720px;
	margin: 0 auto 40px;
}

.doi-tx-section-head h2 {
	font-size: clamp(1.75rem, 3vw, 2.25rem);
	font-weight: 800;
	color: var(--c-dark);
	margin: 0 0 12px;
	line-height: 1.2;
}

.doi-tx-section-head p {
	font-size: 1.05rem;
	line-height: 1.7;
	margin: 0;
	color: rgba(29, 29, 38, 0.6);
}

.doi-tx-section-label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--c-red);
	margin-bottom: 10px;
	display: block;
}

/* Cards */
.doi-tx-card {
	background: #fff;
	border: 1px solid var(--c-warm);
	border-radius: 20px;
	padding: 36px 32px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.04);
}

/* Checklist */
.doi-tx-check-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 16px;
	margin-top: 28px;
}

.doi-tx-check-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px 16px;
	background: var(--c-cream);
	border-radius: 12px;
	border: 1px solid var(--c-warm);
}

.doi-tx-check-icon {
	min-width: 24px;
	height: 24px;
	background: var(--c-red-tint);
	color: var(--c-red);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.75rem;
	font-weight: 800;
	flex-shrink: 0;
	margin-top: 1px;
}

.doi-tx-check-item span:last-child {
	font-size: 0.98rem;
	line-height: 1.5;
	color: rgba(29, 29, 38, 0.8);
}

/* Steps */
.doi-tx-steps {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 20px;
}

.doi-tx-step {
	background: #fff;
	border: 1px solid var(--c-warm);
	border-radius: 20px;
	padding: 28px 24px;
	position: relative;
	transition: transform 0.2s, box-shadow 0.2s;
}

.doi-tx-step:hover {
	transform: translateY(-3px);
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.07);
}

.doi-tx-step-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	background: var(--c-dark);
	color: #fff;
	font-size: 0.8rem;
	font-weight: 800;
	border-radius: 999px;
	margin-bottom: 16px;
}

.doi-tx-step h4 {
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--c-dark);
	margin: 0 0 8px;
}

.doi-tx-step p {
	font-size: 0.95rem;
	line-height: 1.65;
	margin: 0;
	color: rgba(29, 29, 38, 0.65);
}

/* Comparison table */
.doi-tx-table-wrap {
	overflow-x: auto;
	border-radius: 20px;
	border: 1px solid var(--c-warm);
	background: #fff;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.04);
}

.doi-tx-table {
	width: 100%;
	border-collapse: collapse;
	min-width: 480px;
}

.doi-tx-table th,
.doi-tx-table td {
	padding: 18px 24px;
	text-align: left;
	font-size: 0.98rem;
	border-bottom: 1px solid var(--c-warm);
}

.doi-tx-table th {
	background: var(--c-dark);
	color: #fff;
	font-weight: 700;
}

.doi-tx-table th:first-child {
	background: var(--c-red);
}

.doi-tx-table tr:last-child td {
	border-bottom: none;
}

.doi-tx-table td:first-child {
	background: var(--c-red-tint);
	font-weight: 600;
	color: var(--c-dark);
}

/* Timeline */
.doi-tx-timeline {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	gap: 24px;
	align-items: start;
}

.doi-tx-timeline-col {
	background: #fff;
	border: 1px solid var(--c-warm);
	border-radius: 20px;
	padding: 28px;
}

.doi-tx-visit-badge {
	display: inline-block;
	background: var(--c-dark);
	color: #fff;
	font-size: 0.8rem;
	font-weight: 700;
	padding: 8px 16px;
	border-radius: 999px;
	margin-bottom: 16px;
}

.doi-tx-timeline-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.doi-tx-timeline-list li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 10px 0;
	font-size: 0.95rem;
	line-height: 1.55;
	color: rgba(29, 29, 38, 0.75);
	border-bottom: 1px solid var(--c-warm);
}

.doi-tx-timeline-list li:last-child {
	border-bottom: none;
}

.doi-tx-timeline-dot {
	min-width: 8px;
	height: 8px;
	background: var(--c-red);
	border-radius: 50%;
	margin-top: 8px;
	flex-shrink: 0;
}

.doi-tx-healing {
	grid-column: 1 / -1;
	text-align: center;
	background: var(--c-red-tint);
	border: 1px solid var(--c-red-border);
	border-radius: 16px;
	padding: 20px 28px;
	font-weight: 700;
	color: var(--c-red);
	font-size: 0.95rem;
}

.doi-tx-healing span {
	display: block;
	font-weight: 400;
	font-size: 0.85rem;
	color: rgba(29, 29, 38, 0.55);
	margin-top: 4px;
}

.doi-tx-timeline-note {
	text-align: center;
	font-size: 0.88rem;
	color: rgba(29, 29, 38, 0.5);
	margin-top: 20px;
	font-style: italic;
}

/* Materials */
.doi-tx-materials {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 16px;
}

.doi-tx-material {
	background: var(--c-cream);
	border: 1px solid var(--c-warm);
	border-left: 4px solid var(--c-red);
	border-radius: 12px;
	padding: 20px 22px;
}

.doi-tx-material strong {
	display: block;
	font-size: 0.98rem;
	font-weight: 700;
	color: var(--c-dark);
	margin-bottom: 8px;
}

.doi-tx-material p {
	font-size: 0.92rem;
	line-height: 1.6;
	margin: 0;
	color: rgba(29, 29, 38, 0.65);
}

/* Process cards (template B/C) */
.doi-tx-process-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 20px;
}

.doi-tx-process-card {
	background: #fff;
	border: 1px solid var(--c-warm);
	border-top: 4px solid var(--c-red);
	border-radius: 16px;
	padding: 24px;
}

.doi-tx-process-card h4 {
	font-size: 1rem;
	font-weight: 700;
	color: var(--c-dark);
	margin: 0 0 8px;
}

.doi-tx-process-card p {
	font-size: 0.93rem;
	line-height: 1.6;
	margin: 0;
	color: rgba(29, 29, 38, 0.65);
}

/* Recovery box */
.doi-tx-recovery {
	background: var(--c-red-tint);
	border: 1px solid var(--c-red-border);
	border-radius: 20px;
	padding: 32px;
}

.doi-tx-recovery h3 {
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--c-red);
	margin: 0 0 12px;
}

.doi-tx-recovery > p {
	font-size: 0.98rem;
	line-height: 1.65;
	margin: 0 0 16px;
	color: rgba(29, 29, 38, 0.7);
}

.doi-tx-recovery ul {
	margin: 0;
	padding-left: 20px;
	color: rgba(29, 29, 38, 0.7);
}

.doi-tx-recovery li {
	padding: 4px 0;
	font-size: 0.95rem;
	line-height: 1.5;
}

/* FAQ */
.doi-tx-faq-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.doi-tx-faq-item {
	background: #fff;
	border: 1px solid var(--c-warm);
	border-radius: 16px;
	padding: 22px 26px;
}

.doi-tx-faq-item h4 {
	font-size: 1rem;
	font-weight: 700;
	color: var(--c-dark);
	margin: 0 0 8px;
}

.doi-tx-faq-item p {
	font-size: 0.95rem;
	line-height: 1.65;
	margin: 0;
	color: rgba(29, 29, 38, 0.65);
}

/* Plan review */
.doi-tx-plan-box {
	background: var(--c-red-tint);
	border: 1px solid var(--c-red-border);
	border-radius: 20px;
	padding: 32px 36px;
	margin-bottom: 0;
}

.doi-tx-plan-box h3 {
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--c-red);
	margin: 0 0 10px;
}

.doi-tx-plan-box p {
	font-size: 0.98rem;
	line-height: 1.65;
	margin: 0;
	color: rgba(29, 29, 38, 0.7);
}

/* CTA footer */
.doi-tx-cta {
	background: var(--c-dark);
	color: #fff;
	padding: 72px 0;
	text-align: center;
}

.doi-tx-cta h2 {
	font-family: var(--font-serif);
	font-size: clamp(1.8rem, 3vw, 2.4rem);
	font-weight: 800;
	color: #fff;
	margin: 0 0 16px;
}

.doi-tx-cta-sub {
	font-size: 1.05rem;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.75);
	max-width: 560px;
	margin: 0 auto 28px;
}

.doi-tx-badges {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-bottom: 32px;
}

.doi-tx-badge {
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.15);
	color: rgba(255, 255, 255, 0.9);
	font-size: 0.85rem;
	font-weight: 600;
	padding: 8px 16px;
	border-radius: 999px;
}

.doi-tx-cta-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px;
}

.doi-tx-cta .doi-hero-cta-primary {
	background: var(--c-red);
}

.doi-tx-cta .doi-hero-cta-primary:hover {
	background: #fff;
	color: var(--c-dark) !important;
}

.doi-tx-cta .doi-hero-cta-whatsapp {
	border-color: rgba(255, 255, 255, 0.3);
	color: #fff !important;
}

.doi-tx-cta .doi-hero-cta-whatsapp:hover {
	background: rgba(255, 255, 255, 0.1);
	border-color: #fff;
	color: #fff !important;
}

/* Responsive */
@media (max-width: 900px) {
	.doi-tx-hero-grid {
		grid-template-columns: 1fr;
		gap: 36px;
	}

	.doi-tx-hero-visual {
		max-width: 480px;
		margin: 0 auto;
	}

	.doi-tx-timeline {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 768px) {
	.doi-tx-hero {
		padding: 48px 0 40px;
	}

	.doi-tx-section {
		padding: 48px 0;
	}

	.doi-tx-inner {
		padding: 0 18px;
	}

	.doi-tx-hero-actions,
	.doi-tx-cta-actions {
		flex-direction: column;
		width: 100%;
	}

	.doi-treatment-page .doi-hero-cta-primary,
	.doi-treatment-page .doi-hero-cta-whatsapp {
		width: 100%;
		text-align: center;
	}

	.doi-tx-card {
		padding: 28px 22px;
	}
}

@media (max-width: 480px) {
	.doi-tx-check-grid,
	.doi-tx-steps,
	.doi-tx-materials,
	.doi-tx-process-grid {
		grid-template-columns: 1fr;
	}
}
