/**
 * Premium page heroes — shared nobat-style landing headers.
 */

/* ══════════════════════════════════════════
   Base shell
   ══════════════════════════════════════════ */

.dr-xhero {
	position: relative;
	min-height: clamp(420px, 72vh, 620px);
	display: flex;
	align-items: center;
	padding: clamp(2rem, 4vw, 3rem) 0 clamp(2.25rem, 4vw, 3rem);
	overflow: hidden;
	color: #fff;
	background:
		radial-gradient(ellipse 80% 60% at 15% 0%, rgba(20, 184, 166, 0.35) 0%, transparent 55%),
		radial-gradient(ellipse 55% 45% at 95% 15%, rgba(56, 189, 248, 0.18) 0%, transparent 50%),
		linear-gradient(155deg, #0f172a 0%, #134e4a 38%, #0d9488 72%, #0ea5a4 100%);
}

.dr-xhero__aurora {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 70% 60%, rgba(255, 255, 255, 0.07) 0%, transparent 45%),
		radial-gradient(circle at 25% 75%, rgba(14, 165, 164, 0.2) 0%, transparent 40%);
	pointer-events: none;
	animation: dr-xhero-aurora 14s ease-in-out infinite alternate;
}

.dr-xhero__grid-dots {
	position: absolute;
	inset: 0;
	opacity: 0.22;
	background-image: radial-gradient(rgba(255, 255, 255, 0.55) 1px, transparent 1px);
	background-size: 28px 28px;
	mask-image: radial-gradient(ellipse 90% 80% at 50% 35%, #000 15%, transparent 75%);
	pointer-events: none;
}

@keyframes dr-xhero-aurora {
	0% { transform: translate3d(0, 0, 0) scale(1); }
	100% { transform: translate3d(-2%, 3%, 0) scale(1.04); }
}

.dr-xhero__grid {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.95fr);
	gap: clamp(1.5rem, 3vw, 2.5rem);
	align-items: center;
}

.dr-xhero__copy {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.dr-xhero__badge {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	align-self: flex-start;
	margin: 0;
	padding: 0.45rem 0.9rem 0.45rem 0.65rem;
	border-radius: var(--dr-radius-pill);
	font-size: 0.78rem;
	font-weight: 700;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.18);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	white-space: nowrap;
}

.dr-xhero__badge br {
	display: none;
}

.dr-xhero__badge-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #4ade80;
	box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6);
	animation: dr-xhero-pulse 2s ease-out infinite;
}

@keyframes dr-xhero-pulse {
	0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55); }
	70% { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); }
	100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.dr-xhero__title {
	margin: 0;
	font-size: clamp(2rem, 5vw, 3.35rem);
	font-weight: 900;
	line-height: 1.14;
	letter-spacing: -0.03em;
}

.dr-xhero__title-line {
	display: block;
}

.dr-xhero__title-line--accent {
	background: linear-gradient(90deg, #fff 0%, #ccfbf1 45%, #99f6e4 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.dr-xhero .dr-xhero__desc {
	margin: 0;
	max-width: 34rem;
	font-size: clamp(1rem, 1.5vw, 1.08rem);
	line-height: 1.75;
	color: #fff;
}

.dr-xhero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	margin-top: 0.25rem;
}

.dr-xhero__ghost-btn {
	color: #fff !important;
	border-color: rgba(255, 255, 255, 0.42) !important;
	background: rgba(255, 255, 255, 0.08) !important;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.dr-xhero__ghost-btn:hover {
	background: rgba(255, 255, 255, 0.16) !important;
	border-color: rgba(255, 255, 255, 0.62) !important;
	color: #fff !important;
}

/* Contact hero — booking CTA distinct from white "ارسال پیام" */
.dr-xhero--contact .dr-xhero__book-btn {
	color: #fff;
	background: rgba(255, 255, 255, 0.1);
	border: 1.5px solid rgba(255, 255, 255, 0.42);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.dr-xhero--contact .dr-xhero__book-btn:hover {
	background: rgba(20, 184, 166, 0.32);
	border-color: var(--dr-accent);
	color: #fff;
	box-shadow: 0 8px 24px rgba(14, 165, 164, 0.28);
}

.dr-xhero__trust {
	list-style: none;
	margin: 0.35rem 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.dr-xhero .dr-xhero__trust li,
.dr-page-content .dr-xhero .dr-xhero__trust li {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.35rem 0.75rem;
	border-radius: var(--dr-radius-pill);
	font-size: 0.76rem;
	font-weight: 600;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.12);
	color: #fff;
}

.dr-xhero .dr-xhero__trust svg,
.dr-page-content .dr-xhero .dr-xhero__trust svg {
	flex-shrink: 0;
	color: #fff;
	fill: currentColor;
	opacity: 1;
}

.dr-xhero__stage {
	position: relative;
	min-height: 380px;
}

.dr-xhero__figure-wrap {
	position: relative;
	max-width: 380px;
	margin-inline: auto;
}

.dr-xhero__figure-glow {
	position: absolute;
	inset: 10% 5% -5%;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.22) 0%, transparent 68%);
	pointer-events: none;
}

.dr-xhero__figure {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--dr-radius-lg);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
	object-fit: cover;
}

.dr-xhero__preview {
	position: absolute;
	padding: 0.85rem 1rem;
	border-radius: var(--dr-radius-md);
	background: rgba(255, 255, 255, 0.92);
	color: var(--dr-ink);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.dr-xhero__preview-label {
	margin: 0 0 0.2rem;
	font-size: 0.68rem;
	font-weight: 700;
	color: var(--dr-primary);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.dr-xhero__preview strong {
	display: block;
	font-size: 1.05rem;
	font-weight: 800;
	line-height: 1.2;
}

.dr-xhero__preview span {
	display: block;
	font-size: 0.72rem;
	color: var(--dr-ink-soft);
	margin-top: 0.15rem;
}

.dr-xhero__wave {
	position: absolute;
	inset-inline: 0;
	bottom: -1px;
	line-height: 0;
	z-index: 2;
}

.dr-xhero__wave svg {
	display: block;
	width: 100%;
	height: clamp(48px, 6vw, 72px);
}

/* ══════════════════════════════════════════
   Page layout tweaks (colors = nobat on .dr-xhero)
   ══════════════════════════════════════════ */

.dr-xhero--about .dr-xhero__preview--stat {
	inset-inline-start: -4%;
	bottom: 18%;
}

.dr-xhero--about .dr-xhero__preview--cred {
	inset-inline-end: -2%;
	top: 12%;
}

.dr-xhero--about .dr-xhero__preview--years {
	inset-inline-end: 8%;
	bottom: 6%;
}

/* ══════════════════════════════════════════
   Stage widgets — per page
   ══════════════════════════════════════════ */

.dr-xhero__service-stack {
	position: relative;
	min-height: 340px;
}

.dr-xhero__service-card {
	position: absolute;
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.85rem 1rem;
	min-width: 240px;
	background: rgba(255, 255, 255, 0.92);
	color: var(--dr-ink);
}

.dr-xhero__service-card img {
	width: 48px;
	height: auto;
	flex-shrink: 0;
}

.dr-xhero__service-card strong {
	display: block;
	font-size: 0.88rem;
	font-weight: 800;
}

.dr-xhero__service-card span {
	display: block;
	font-size: 0.72rem;
	color: var(--dr-ink-soft);
	margin-top: 0.1rem;
}

.dr-xhero__service-card--1 { inset-inline-start: 0; top: 8%; transform: rotate(-2deg); }
.dr-xhero__service-card--2 { inset-inline-end: 0; top: 32%; transform: rotate(1.5deg); z-index: 2; }
.dr-xhero__service-card--3 { inset-inline-start: 8%; bottom: 4%; transform: rotate(-1deg); }

.dr-xhero__preview--count {
	inset-inline-end: 12%;
	bottom: -2%;
	text-align: center;
}

.dr-xhero__contact-cards {
	position: relative;
	min-height: 340px;
}

.dr-xhero__preview--contact {
	position: absolute;
	display: flex;
	align-items: center;
	gap: 0.75rem;
	min-width: 210px;
	background: rgba(255, 255, 255, 0.92);
	color: var(--dr-ink);
}

.dr-xhero__preview--contact svg {
	flex-shrink: 0;
	color: var(--dr-primary);
}

.dr-xhero__preview--contact:nth-child(1) { inset-inline-start: 0; top: 6%; }
.dr-xhero__preview--contact:nth-child(2) { inset-inline-end: 0; top: 34%; z-index: 2; }
.dr-xhero__preview--contact:nth-child(3) { inset-inline-start: 10%; bottom: 2%; }

.dr-xhero__faq-stack {
	position: relative;
	min-height: 340px;
}

.dr-xhero__preview--faq {
	position: absolute;
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
	min-width: 230px;
	max-width: 280px;
	background: rgba(255, 255, 255, 0.92);
	color: var(--dr-ink);
}

.dr-xhero__faq-q {
	flex-shrink: 0;
	width: 1.75rem;
	height: 1.75rem;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 0.95rem;
	font-weight: 900;
	color: #fff;
	background: linear-gradient(135deg, #0d9488, #14b8a6);
}

.dr-xhero__preview--faq:nth-child(1) { inset-inline-start: 0; top: 4%; transform: rotate(-1.5deg); }
.dr-xhero__preview--faq:nth-child(2) { inset-inline-end: 0; top: 30%; transform: rotate(1deg); z-index: 2; }
.dr-xhero__preview--faq:nth-child(3) { inset-inline-start: 6%; bottom: 0; transform: rotate(-0.5deg); }

.dr-xhero__ba-showcase {
	position: relative;
	min-height: 360px;
}

.dr-xhero__ba-pair {
	position: absolute;
	inset-inline-start: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0;
	padding: 0.5rem;
	border-radius: var(--dr-radius-lg);
	overflow: hidden;
	background: rgba(255, 255, 255, 0.92);
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

[dir="rtl"] .dr-xhero__ba-pair {
	transform: translate(50%, -50%);
}

.dr-xhero__ba-half {
	position: relative;
	text-align: center;
	padding: 0.35rem;
}

.dr-xhero__ba-half img {
	width: 100%;
	max-width: 140px;
	height: auto;
	display: block;
	margin-inline: auto;
}

.dr-xhero__ba-half span {
	display: block;
	margin-top: 0.35rem;
	font-size: 0.68rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.dr-xhero__ba-half--before span { color: #64748b; }
.dr-xhero__ba-half--after span { color: var(--dr-primary); }

.dr-xhero__preview--privacy {
	inset-inline-end: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	gap: 0.65rem;
}

.dr-xhero__preview--privacy svg {
	color: var(--dr-primary);
	flex-shrink: 0;
}

/* ── Reel single hero stage (mirrors gallery ba-showcase) ── */
.dr-xhero--reel .dr-xhero__title {
	font-size: clamp(1.75rem, 4.2vw, 2.85rem);
	max-width: 18ch;
}

.dr-xhero--reel .dr-xhero__desc {
	max-width: 36rem;
}

.dr-xhero__reel-showcase {
	position: relative;
	min-height: 360px;
	width: 100%;
}

.dr-xhero__reel-frame {
	position: absolute;
	inset-inline-start: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 188px;
	padding: 0.5rem;
	border-radius: 1.25rem;
	background: rgba(255, 255, 255, 0.92);
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

[dir="rtl"] .dr-xhero__reel-frame {
	transform: translate(50%, -50%);
}

.dr-xhero__reel-media {
	position: relative;
	aspect-ratio: 9 / 16;
	border-radius: 0.9rem;
	overflow: hidden;
	background: #0f172a;
}

.dr-xhero__reel-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.dr-xhero__reel-play {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	background: rgba(15, 23, 42, 0.28);
	pointer-events: none;
}

.dr-xhero__reel-play svg {
	width: 38px;
	height: 38px;
	filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35));
}

.dr-xhero__reel-label {
	position: absolute;
	top: 0.8rem;
	inset-inline-end: 0.8rem;
	z-index: 2;
	padding: 0.2rem 0.5rem;
	border-radius: var(--dr-radius-pill);
	background: rgba(15, 23, 42, 0.72);
	color: #fff;
	font-size: 0.65rem;
	font-weight: 800;
	line-height: 1;
}

.dr-xhero__preview--reel {
	inset-inline-end: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	gap: 0.65rem;
	min-width: 11rem;
}

.dr-xhero__preview--reel svg {
	color: var(--dr-primary);
	flex-shrink: 0;
}

/* ══════════════════════════════════════════
   Page body bridge
   ══════════════════════════════════════════ */

body.dr-xhero-active {
	background: var(--dr-paper);
}

body.dr-xhero-active .dr-page-content,
body.dr-xhero-active main#main-content {
	padding: 0;
	margin: 0;
}

body.dr-xhero-active .dr-page-breadcrumb {
	display: none;
}

body.dr-xhero-active .dr-about,
body.dr-xhero-active .dr-contact-page,
body.dr-xhero-active .dr-faq-page,
body.dr-xhero-active .dr-before-after--page,
body.dr-xhero-active .dr-svc-arch,
body.dr-xhero-active .dr-reel-single-post .dr-single-body {
	position: relative;
	margin-top: -1px;
}

/* ══════════════════════════════════════════
   Responsive
   ══════════════════════════════════════════ */

@media (max-width: 1024px) {
	.dr-xhero__grid {
		grid-template-columns: 1fr;
	}

	.dr-xhero__stage {
		order: -1;
		min-height: 300px;
		max-width: 420px;
		margin-inline: auto;
	}

	.dr-xhero__figure-wrap {
		max-width: 280px;
	}

	.dr-xhero__preview--stat,
	.dr-xhero__preview--cred,
	.dr-xhero__preview--years,
	.dr-xhero__preview--count,
	.dr-xhero__preview--privacy,
	.dr-xhero__preview--reel {
		transform: scale(0.92);
	}
}

@media (max-width: 480px) {
	.dr-xhero {
		min-height: auto;
		padding-bottom: 2.5rem;
	}

	.dr-xhero__service-card,
	.dr-xhero__preview--faq,
	.dr-xhero__preview--contact {
		min-width: 0;
		max-width: 100%;
		position: relative;
		inset: auto;
		transform: none !important;
	}

	.dr-xhero__service-stack,
	.dr-xhero__contact-cards,
	.dr-xhero__faq-stack,
	.dr-xhero__ba-showcase,
	.dr-xhero__reel-showcase {
		display: flex;
		flex-direction: column;
		gap: 0.65rem;
		min-height: auto;
	}

	.dr-xhero__reel-frame {
		position: relative;
		inset: auto;
		transform: none;
		margin-inline: auto;
	}

	.dr-xhero__preview--reel,
	.dr-xhero__preview--privacy {
		position: relative;
		inset: auto;
	}

	.dr-xhero__service-card,
	.dr-xhero__preview--contact,
	.dr-xhero__preview--faq {
		position: relative;
	}

	.dr-xhero__ba-pair {
		position: relative;
		inset: auto;
		transform: none;
		max-width: 280px;
		margin-inline: auto;
	}

	.dr-xhero__reel-frame {
		max-width: 188px;
	}

	.dr-xhero__preview--privacy {
		position: relative;
		inset: auto;
	}

	.dr-xhero__aurora,
	.dr-xhero__badge-dot {
		animation: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.dr-xhero__aurora,
	.dr-xhero__badge-dot {
		animation: none;
	}
}
