/**
 * DURA — base layer on top of Tailwind (matches the static design).
 */
.material-symbols-outlined {
	font-variation-settings: "FILL" 0, "wght" 300, "GRAD" 0, "opsz" 24;
}

.glass-nav {
	background-color: rgba(0, 43, 84, 0.9);
	backdrop-filter: blur(16px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.reveal-on-scroll {
	opacity: 0;
}

.reveal-on-scroll.visible {
	animation: fadeUp 0.8s ease-out forwards;
}

@keyframes fadeUp {
	0% {
		opacity: 0;
		transform: translateY(30px);
	}

	100% {
		opacity: 1;
		transform: translateY(0);
	}
}

/*
 * بطاقة الإحصاء والخريطة تخرجان جزئياً خارج الصندوق مع tilt؛ overflow:hidden يقصّ الطبقة.
 * البديل الجذري يكون تقسيم غلاف tilt عن غلاف المحتوى؛ إلى أن يُعمل ذلك نُبقي استثناءً ضيقًا.
 */
#about-dura .interactive-panel,
#regional-presence .interactive-panel {
	overflow: visible;
}

.map-dot::after {
	content: "";
	position: absolute;
	width: 12px;
	height: 12px;
	background: #c65b00;
	border-radius: 50%;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	box-shadow: 0 0 0 4px rgba(198, 91, 0, 0.3);
	animation: pulse 2s infinite;
}

@keyframes pulse {
	0% {
		box-shadow: 0 0 0 0 rgba(198, 91, 0, 0.5);
	}

	70% {
		box-shadow: 0 0 0 10px rgba(198, 91, 0, 0);
	}

	100% {
		box-shadow: 0 0 0 0 rgba(198, 91, 0, 0);
	}
}

.hero-grid {
	background-image: linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
	background-size: 120px 120px;
	mask-image: linear-gradient(to left, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.25) 55%, transparent);
}

.hero-gradient {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(0, 43, 84, 0.2) 0%, rgba(0, 43, 84, 0.78) 100%),
		linear-gradient(120deg, rgba(0, 43, 84, 0.2) 0%, rgba(7, 87, 154, 0.4) 46%, rgba(241, 127, 39, 0.16) 100%);
}

.hero-clip-rtl {
	position: relative;
}

.hero-clip-rtl::after {
	content: "";
	position: absolute;
	inset: auto -6rem -5rem auto;
	width: 28rem;
	height: 28rem;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(241, 127, 39, 0.22), rgba(241, 127, 39, 0));
	filter: blur(32px);
	pointer-events: none;
}

.bg-pattern {
	background-image:
		radial-gradient(circle at 25% 25%, rgba(7, 87, 154, 0.08) 0, rgba(7, 87, 154, 0.08) 2px, transparent 2px),
		radial-gradient(circle at 75% 75%, rgba(241, 127, 39, 0.08) 0, rgba(241, 127, 39, 0.08) 2px, transparent 2px);
	background-size: 32px 32px, 32px 32px;
}

.hero-orb {
	position: absolute;
	border-radius: 9999px;
	filter: blur(24px);
	opacity: 0.55;
}

.hero-rings::before,
.hero-rings::after {
	content: "";
	position: absolute;
	border-radius: 9999px;
	border: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-rings::before {
	inset: 10%;
	animation: pulse 5s infinite;
}

.hero-rings::after {
	inset: 22%;
	animation: pulse 5s 1.2s infinite;
}

.hero-stat-card {
	backdrop-filter: blur(18px);
	background: linear-gradient(135deg, rgba(7, 87, 154, 0.32), rgba(2, 43, 84, 0.74));
	border: 1px solid rgba(255, 255, 255, 0.14);
	box-shadow: 0 30px 80px rgba(0, 20, 40, 0.28);
}

.hero-kpi::before {
	content: "";
	position: absolute;
	inset: 0 auto 0 0;
	width: 3px;
	border-radius: 999px;
	background: linear-gradient(to bottom, #f17f27, rgba(241, 127, 39, 0.1));
}

.hero-parallax {
	transform: translate3d(0, var(--parallax-offset, 0px), 0);
	transition: transform 120ms linear;
}

.nav-link {
	color: rgba(255, 255, 255, 0.8);
	font-weight: 600;
	transition: color 0.2s ease;
}

.nav-link:hover {
	color: #ffffff;
}

.nav-link-active {
	color: #f17f27;
	font-weight: 700;
}

.mobile-menu-panel {
	background-color: rgba(0, 31, 61, 0.96);
	backdrop-filter: blur(16px);
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-nav-link {
	display: block;
	padding: 0.85rem 1rem;
	border-radius: 1rem;
	color: rgba(255, 255, 255, 0.82);
	font-weight: 600;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.mobile-nav-link:hover {
	background-color: rgba(255, 255, 255, 0.08);
	color: #ffffff;
}

.mobile-nav-link-active {
	background-color: rgba(241, 127, 39, 0.14);
	color: #f17f27;
}

.blog-filter-btn.active {
	background-color: var(--dura-primary, #003f74);
	color: var(--dura-on-primary, #ffffff);
}

.blog-post-card.hidden {
	display: none;
}

.product-image-box-lite {
	border: 1px solid rgba(226, 232, 240, 0.95);
	background-color: #ffffff;
	box-shadow:
		0 0 0 1px rgba(255, 255, 255, 0.75) inset,
		0 1px 2px rgba(15, 23, 42, 0.05),
		0 12px 40px -16px rgba(15, 23, 42, 0.12);
}

.product-carousel-zoom-trigger {
	border-radius: inherit;
}

.product-carousel-zoom-trigger:focus-visible {
	outline: 2px solid var(--dura-secondary, #fe8931);
	outline-offset: 2px;
}

/* Product gallery lightbox — fixed overlay, safe-area, no image zoom keyframes */
.dura-product-lightbox[hidden] {
	display: none !important;
}

.dura-product-lightbox.is-open {
	position: fixed;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	inset: 0;
	z-index: 999999;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: none;
	min-height: 100vh;
	min-height: 100dvh;
	height: 100dvh;
	overflow: hidden;
	overscroll-behavior: contain;
	opacity: 0;
	animation: dura-lb-overlay-in 0.25s ease forwards;
}

@keyframes dura-lb-overlay-in {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

/* No marquee motion inside lightbox */
.dura-product-lightbox .motion-panel,
.dura-product-lightbox .motion-button {
	transform: none !important;
}

.dura-product-lightbox__backdrop {
	position: absolute;
	inset: 0;
	margin: 0;
	padding: 0;
	border: 0;
	cursor: zoom-out;
	background: rgba(2, 14, 30, 0.85);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.dura-product-lightbox__panel {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: center;
	padding: max(0.75rem, env(safe-area-inset-top, 0px)) max(0.75rem, env(safe-area-inset-right, 0px)) max(0.75rem, env(safe-area-inset-bottom, 0px)) max(0.75rem, env(safe-area-inset-left, 0px));
	margin: 0;
	pointer-events: none;
	min-height: 0;
	box-sizing: border-box;
}

.dura-product-lightbox__panel>* {
	pointer-events: auto;
}

.dura-product-lightbox__stage {
	flex: 1 1 auto;
	min-height: 0;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0.5rem;
	box-sizing: border-box;
	touch-action: manipulation;
}

.dura-product-lightbox__img {
	display: block;
	max-width: 100%;
	width: auto;
	height: auto;
	max-height: 85vh;
	max-height: min(88dvh, calc(100dvh - 7rem));
	object-fit: contain;
	object-position: center;
	margin: auto;
	border: 0;
	outline: none;
	border-radius: 0.5rem;
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
	pointer-events: auto;
	transition: opacity 0.15s ease;
}

.dura-product-lightbox__close {
	position: absolute;
	top: max(0.75rem, env(safe-area-inset-top, 0px));
	inset-inline-end: max(0.75rem, env(safe-area-inset-right, 0px));
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.75rem;
	min-height: 2.75rem;
	width: 3rem;
	height: 3rem;
	padding: 0;
	border: 0;
	border-radius: 9999px;
	cursor: pointer;
	color: #fff;
	background: rgba(0, 0, 0, 0.45);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
	transition: background 0.2s ease;
}

.dura-product-lightbox__close:hover {
	background: rgba(0, 0, 0, 0.6);
}

.dura-product-lightbox__nav {
	position: absolute;
	top: 50%;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.75rem;
	min-height: 2.75rem;
	width: 3.25rem;
	height: 3.25rem;
	padding: 0;
	border: 0;
	border-radius: 9999px;
	cursor: pointer;
	color: #fff;
	background: rgba(255, 255, 255, 0.12);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
	transition: background 0.2s ease;
	transform: translateY(-50%);
}

.dura-product-lightbox__nav:hover {
	background: rgba(255, 255, 255, 0.22);
}

.dura-product-lightbox__nav--prev {
	inset-inline-start: max(0.75rem, env(safe-area-inset-left, 0px));
}

.dura-product-lightbox__nav--next {
	inset-inline-end: max(0.75rem, env(safe-area-inset-right, 0px));
}

@media (max-width: 767px) {
	.dura-product-lightbox__nav {
		top: auto;
		bottom: max(1rem, env(safe-area-inset-bottom, 0px));
		transform: none;
		min-width: 3rem;
		min-height: 3rem;
		width: 3rem;
		height: 3rem;
		background: rgba(0, 0, 0, 0.55);
	}

	.dura-product-lightbox__nav:hover {
		background: rgba(0, 0, 0, 0.72);
	}

	.dura-product-lightbox__nav--prev {
		inset-inline-start: max(0.75rem, env(safe-area-inset-left, 0px));
	}

	.dura-product-lightbox__nav--next {
		inset-inline-end: max(0.75rem, env(safe-area-inset-right, 0px));
	}

	.dura-product-lightbox__img {
		max-height: 72vh;
		max-height: min(78dvh, calc(100dvh - 10rem));
	}

	.dura-product-lightbox__close {
		top: max(0.5rem, env(safe-area-inset-top, 0px));
		inset-inline-end: max(0.5rem, env(safe-area-inset-right, 0px));
		min-width: 3rem;
		min-height: 3rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.dura-product-lightbox.is-open {
		animation: none;
		opacity: 1;
	}
}

/* Toast after form submit (?dura_quote=) — inline notice unchanged */
.dura-toast {
	position: fixed;
	top: 0;
	left: 50%;
	z-index: 100001;
	max-width: min(36rem, calc(100vw - 1.5rem));
	margin: 0;
	padding: 0.85rem 1.25rem;
	border-radius: 0 0 0.75rem 0.75rem;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.45;
	text-align: center;
	box-shadow: 0 12px 40px rgba(15, 23, 42, 0.18);
	pointer-events: none;
	opacity: 0;
	transform: translate(-50%, -100%);
	transition: opacity 0.28s ease, transform 0.32s ease;
}

.dura-toast.is-visible {
	opacity: 1;
	transform: translate(-50%, 0);
}

.dura-toast--success {
	color: #065f46;
	background: #ecfdf5;
	border: 1px solid #a7f3d0;
	border-top: 0;
}

.dura-toast--warning {
	color: #92400e;
	background: #fffbeb;
	border: 1px solid #fde68a;
	border-top: 0;
}

.dura-toast--error {
	color: #9f1239;
	background: #fff1f2;
	border: 1px solid #fecdd3;
	border-top: 0;
}

.product-thumb-box-lite {
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

/* Product slider: stacked slides (no translate) — centered image RTL/LTR */
.dura-product-gallery {
	text-align: center;
}

#product-carousel {
	min-height: 0;
}

/* أسهم المعاينة: مخفية افتراضيًا على ماوس الشاشات؛ ظاهرة عند المرور أو التركيز داخل الصورة؛ ظاهرة على اللمس */
#product-carousel-viewport .product-carousel-nav-btn {
	transition: opacity 0.2s ease;
	opacity: 1;
}

@media (hover: hover) and (pointer: fine) {
	#product-carousel-viewport .product-carousel-nav-btn {
		opacity: 0;
	}

	#product-carousel-viewport:hover .product-carousel-nav-btn,
	#product-carousel-viewport:focus-within .product-carousel-nav-btn {
		opacity: 1;
	}
}

.product-carousel-slide-wrap {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 0.5rem;
	opacity: 0;
	z-index: 0;
	pointer-events: none;
	transition: opacity 0.35s ease;
}

@media (min-width: 640px) {
	.product-carousel-slide-wrap {
		padding: 0.75rem;
	}
}

.product-carousel-slide-wrap.is-active {
	opacity: 1;
	z-index: 1;
	pointer-events: auto;
}

.dura-product-gallery .thumbnail-indicator.is-active {
	border-color: #fe8931;
}

.product-media-swap {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.product-media-swap img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
	transition: transform 420ms ease, opacity 320ms ease;
	display: block;
}

.product-image-secondary {
	position: absolute;
	inset: 0;
	opacity: 0;
	transform: scale(1.04);
}

.product-card:hover .product-image-primary {
	opacity: 0;
	transform: scale(1.08);
}

.product-card:hover .product-image-secondary {
	opacity: 1;
	transform: scale(1);
}

.product-card.hidden {
	display: none;
}

/* Active filter chip: primary colors from Tailwind in templates */
.filter-btn.active:not([class*='bg-primary']) {
	background-color: var(--dura-primary, #003f74);
	color: var(--dura-on-primary, #ffffff);
	border-color: var(--dura-primary, #003f74);
}

.filter-btn.active:not([class*='bg-primary']):hover {
	color: var(--dura-on-primary, #ffffff);
	border-color: var(--dura-primary, #003f74);
}

.category-slider-container {
	-ms-overflow-style: none;
	/* IE/Edge */
	scrollbar-width: none;
	/* Firefox */
}

.category-slider-container::-webkit-scrollbar {
	display: none;
	/* Chrome/Safari */
}

/* Larger category tiles (home only) */
#product-solutions .category-slider-container>a {
	min-width: 300px;
	/* was 280px */
	height: 190px;
}

@media (min-width: 768px) {
	#product-solutions .category-slider-container>a {
		min-width: 220px;
		/* was 200px */
		height: 180px;
	}
}

#product-solutions .category-slider-container>a>div {
	height: 100%;
	padding: 34px;
	/* was 36px */
	display: flex;
	flex-direction: column;
	justify-content: center;
}

/* #product-solutions cards use the same image frame as the product archive (see template-parts/product/card.php). */

/* Tighter spacing on mobile before About CTA section */
@media (max-width: 767px) {
	.dura-about-cta {
		padding-block: 4rem !important;
	}
}

/* CTA من نحن: نمط الحاوية (صف + توزيع الطرفين) مع إبقاء الفئات الحالية في القالب */
@media (min-width: 768px) {
	.dura-about-cta .dura-about-cta__banner {
		display: flex;
		flex-direction: row;
		flex-wrap: nowrap;
		justify-content: space-between;
		align-items: center;
		width: 100%;
		box-sizing: border-box;
	}

	.dura-about-cta .dura-about-cta__banner>.max-w-2xl {
		flex: 1 1 auto;
		min-width: 0;
	}

	.dura-about-cta .dura-about-cta__banner>.flex.flex-col {
		flex: 0 0 auto;
		width: auto;
		max-width: none;
	}
}

.dura-commitment-section .dura-commitment-underline {
	position: relative;
	overflow: hidden;
}

.dura-commitment-section .dura-commitment-underline::after {
	content: "";
	position: absolute;
	inset: 0;
	transform: translateX(120%);
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.65), transparent);
	animation: duraCommitmentSweep 2.8s ease-in-out infinite;
}

html[dir="rtl"] .dura-commitment-section .dura-commitment-underline::after {
	animation-name: duraCommitmentSweepRtl;
}

/* المحتوى الرئيسي فوق الأيقونة الزخرفية الكبيرة (absolute في نفس الحاوية) */
.dura-commitment-section .max-w-7xl> :first-child {
	position: relative;
	z-index: 2;
}

.dura-commitment-section .dura-commitment-card {
	position: relative;
	isolation: isolate;
}

/* الطبقة الزخرفية خلف المحتوى — بدون فرض position على كل الأبناء */
.dura-commitment-section .dura-commitment-card::before {
	content: "";
	position: absolute;
	inset: -2px;
	z-index: -1;
	border-radius: inherit;
	background: radial-gradient(circle at 30% 10%, rgba(241, 127, 39, 0.22), transparent 55%),
		radial-gradient(circle at 70% 80%, rgba(7, 87, 154, 0.16), transparent 55%);
	opacity: 0.55;
	filter: blur(18px);
	pointer-events: none;
	animation: duraCommitmentPulse 5.6s ease-in-out infinite;
}

@keyframes duraCommitmentSweep {
	0% {
		transform: translateX(120%);
		opacity: 0;
	}

	15% {
		opacity: 1;
	}

	55% {
		transform: translateX(-120%);
		opacity: 0.9;
	}

	100% {
		transform: translateX(-120%);
		opacity: 0;
	}
}

@keyframes duraCommitmentSweepRtl {
	0% {
		transform: translateX(-120%);
		opacity: 0;
	}

	15% {
		opacity: 1;
	}

	55% {
		transform: translateX(120%);
		opacity: 0.9;
	}

	100% {
		transform: translateX(120%);
		opacity: 0;
	}
}

@keyframes duraCommitmentPulse {

	0%,
	100% {
		transform: scale(1);
		opacity: 0.5;
	}

	50% {
		transform: scale(1.03);
		opacity: 0.75;
	}
}

/* Mobile hover substitute: light touch feedback */
.motion-panel.is-touched,
.product-card.is-touched {
	transform: translate3d(0, -6px, 0);
	box-shadow: 0 26px 60px rgba(15, 23, 42, 0.16);
}

.motion-button.is-touched {
	transform: translate3d(0, -3px, 0);
}

.motion-panel.is-touched img,
.product-card.is-touched img {
	transform: scale(1.02);
}

.spec-row:nth-child(even) {
	background-color: #f1f4f6;
}

.spec-row:nth-child(odd) {
	background-color: #f7fafc;
}

/* =========================
   DURA UI: Shared classes
   Prefix: dura-ui- (avoid collisions)
   ========================= */

.dura-ui-hero {
	position: relative;
	isolation: isolate;
}

.dura-ui-hero__badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.25rem 1rem;
	border-radius: 9999px;
	font-weight: 800;
	letter-spacing: 0.08em;
	line-height: 1.2;
}

.dura-ui-hero__title {
	font-weight: 900;
	letter-spacing: -0.02em;
	line-height: 1.06;
	text-wrap: balance;
}

.dura-ui-hero__subtitle {
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1.35;
	text-wrap: balance;
}

.dura-ui-hero__description {
	font-weight: 600;
	line-height: 1.8;
}

.dura-ui-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

/* Optional responsive typography (enable per-section via modifier). */
.dura-ui-hero--fluid .dura-ui-hero__title {
	font-size: clamp(2.1rem, 1.7rem + 3.6vw, 4.5rem);
}

.dura-ui-hero--fluid .dura-ui-hero__description {
	font-size: clamp(1rem, 0.95rem + 0.7vw, 1.35rem);
}

@media (max-width: 767px) {
	.dura-ui-hero__subtitle {
		font-size: 18px !important;
		font-weight: 700 !important;
	}
}

@media (max-width: 767px) {
	.hero-clip-rtl::after {
		width: 16rem;
		height: 16rem;
		inset: auto -3rem -2rem auto;
		filter: blur(22px);
	}
}

/* شعار الموقع - التحكم بالحجم عبر CSS */
.site-header-logo,
.glass-nav img.custom-logo {
	height: 50PX;
	width: auto;
	object-fit: contain;
	transition: height 0.3s ease;
}

@media (min-width: 768px) {

	.site-header-logo,
	.glass-nav img.custom-logo {
		height: 60PX;
	}
}

.site-footer-logo,
footer img.custom-logo {
	height: 100PX;
	width: auto;
	object-fit: contain;
}