/* ===================================================
   WoodMart Widgets v1.1 — Image Rotator (Stacked Pills)
   =================================================== */

.wdwgt-rotator-wrap {
	position: relative;
	width: 100%;
	overflow: visible;
	/* Clip upward exit animation at the widget's top edge,
	   while allowing the stacked pills to overflow downward */
	clip-path: inset(0 -60px -500px -60px);
}

/* الـ stack — يحتوي على الـ pills المكدّسة */
.wdwgt-stack {
	position: relative;
	width: 100%;
	height: 260px;     /* fallback — بيتحكم فيه Elementor slider */
	overflow: visible; /* علشان الـ pills تظهر تحت */
}

/* كل صورة في شكل pill */
.wdwgt-pill {
	position: absolute;
	inset: 0;
	border-radius: 999px; /* full pill — بيتحكم فيه Elementor */
	overflow: hidden;
	transform-origin: center center;
	will-change: transform, opacity;
}

.wdwgt-pill img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	pointer-events: none;
	user-select: none;
}

/* ---- Dots ---- */
.wdwgt-dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 14px;
	/* JS بيضبط margin-top ديناميكياً حسب ارتفاع الـ stack */
}

.wdwgt-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #ccc;
	cursor: pointer;
	transition: background .3s, transform .3s;
}

.wdwgt-dot.active {
	background: #1a1a1a;
	transform: scale(1.35);
}


/* ===================================================
   WoodMart Widgets v1.1 — Service Box
   =================================================== */

.wdwgt-service-box {
	position: relative;        /* لازم للـ SVG */
	background: #fde8d8;
	border-radius: 20px;
	padding: 28px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	height: 100%;
	will-change: transform;
	/* لا CSS hover — كله بيتحكم فيه GSAP */
}

/* ---- SVG border draw overlay ---- */
.wdwgt-sb-border {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	overflow: visible;
}

.wdwgt-sb-border-rect {
	fill: none;
	stroke: #1a1a1a;
	stroke-width: 2;
	/* stroke-dasharray + dashoffset يتحكم فيهم GSAP */
}

/* ---- Title ---- */
.wdwgt-sb-title {
	font-size: 26px;
	font-weight: 700;
	line-height: 1.2;
	color: #1a1a1a;
	margin: 0;
}

/* ---- Description ---- */
.wdwgt-sb-desc {
	font-size: 15px;
	color: #555555;
	line-height: 1.6;
	margin: 0;
}

/* ---- Tags ---- */
.wdwgt-sb-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 4px;
}

.wdwgt-sb-tag {
	display: inline-block;
	background: #f5c9a8;
	color: #1a1a1a;
	font-size: 13px;
	font-weight: 500;
	padding: 6px 14px;
	border-radius: 30px;
	text-decoration: none;
	transition: background .25s, transform .25s, color .25s;
}

a.wdwgt-sb-tag:hover {
	background: #1a1a1a;
	color: #fff;
	transform: scale(1.05);
}

/* ---- Footer / Explore ---- */
.wdwgt-sb-footer {
	margin-top: auto;
	padding-top: 16px;
	border-top: 1px solid rgba(0, 0, 0, .1);
}

.wdwgt-sb-explore {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-size: 16px;
	font-weight: 600;
	color: #1a1a1a;
	text-decoration: none;
}

.wdwgt-sb-explore-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	background: #1a1a1a;
	color: #fff;
	border-radius: 50%;
	font-size: 16px;
	flex-shrink: 0;
	transition: transform .35s cubic-bezier(.4, 0, .2, 1),
	            background .35s;
}

.wdwgt-sb-explore:hover .wdwgt-sb-explore-arrow {
	transform: translateX(6px);
	background: #333;
}


/* ===================================================
   WoodMart Widgets v1.2 — Fan Slider
   =================================================== */

.wdwgt-fs-wrap {
	position: relative;
	width: 100%;
	user-select: none;
}

/* Stage clips the overflow so only visible cards show */
.wdwgt-fs-stage {
	position: relative;
	width: 100%;
	overflow: hidden;
	cursor: grab;
}
.wdwgt-fs-stage:active { cursor: grabbing; }

/* Each card — GPU only, no top/left layout props */
.wdwgt-fs-card {
	position: absolute;
	top: 0;
	width: 260px;    /* overridden by Elementor slider */
	height: 340px;   /* overridden by Elementor slider */
	border-radius: 20px;
	overflow: hidden;
	will-change: transform, opacity;
	transform-origin: center center;
	display: block;
	text-decoration: none;
	background: #f0f0f0; /* fallback for transparent PNGs */
}

.wdwgt-fs-card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	pointer-events: none;
}

/* Stage height matches card height */
.wdwgt-fs-stage {
	height: 340px; /* JS matches this to the actual card height */
}

/* ---- Arrows ---- */
.wdwgt-fs-arrows {
	display: flex;
	justify-content: center;
	gap: 12px;
	margin-top: 20px;
}

.wdwgt-fs-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1.5px solid #1a1a1a;
	border-radius: 50%;
	background: transparent;
	color: #1a1a1a;
	cursor: pointer;
	transition: background .25s, color .25s, transform .25s cubic-bezier(.4,0,.2,1);
	padding: 0;
}

.wdwgt-fs-btn svg {
	width: 18px;
	height: 18px;
}

.wdwgt-fs-btn:hover {
	background: #1a1a1a;
	color: #fff;
	transform: scale(1.08);
}

/* ---- Dots ---- */
.wdwgt-fs-dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 16px;
}

.wdwgt-fs-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #ccc;
	border: none;
	cursor: pointer;
	padding: 0;
	transition: background .3s, transform .3s;
}

.wdwgt-fs-dot.active {
	background: #1a1a1a;
	transform: scale(1.35);
}


/* ===================================================
   WoodMart Widgets — Service Image Card
   =================================================== */

.wdwgt-si-wrap {
	width: 100%;
	will-change: transform;
}

/* Card — the full container */
.wdwgt-si-card {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	height: 480px;        /* fallback — overridden by Elementor slider */
	border-radius: 24px;
	overflow: hidden;
	will-change: transform, box-shadow;
}

/* Background image — covers the full card */
.wdwgt-si-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	will-change: transform;
	transition: transform 0.6s cubic-bezier(.4, 0, .2, 1);
}

/* Gradient overlay — dark at bottom, transparent at top */
.wdwgt-si-overlay {
	position: absolute;
	inset: 0;
	--si-ov: #000;
	--si-op: 0.85;
	background: linear-gradient(
		to top,
		color-mix(in srgb, var(--si-ov) calc(var(--si-op) * 100%), transparent) 0%,
		color-mix(in srgb, var(--si-ov) 30%, transparent)                        45%,
		transparent                                                                100%
	);
	pointer-events: none;
}

/* Fallback for browsers without color-mix (Firefox < 113) */
@supports not (color: color-mix(in srgb, red 50%, blue)) {
	.wdwgt-si-overlay {
		background: linear-gradient(
			to top,
			rgba(0, 0, 0, .85) 0%,
			rgba(0, 0, 0, .25) 50%,
			transparent       100%
		);
	}
}

/* Content block — sits on top of the gradient */
.wdwgt-si-body {
	position: relative;
	z-index: 2;
	padding: 20px 20px 14px;
}

/* Title */
.wdwgt-si-title {
	font-size: 24px;
	font-weight: 700;
	line-height: 1.2;
	color: #fff;
	margin: 0 0 8px;
}

/* Description */
.wdwgt-si-desc {
	font-size: 14px;
	color: rgba(255, 255, 255, .80);
	line-height: 1.55;
	margin: 0 0 14px;
}

/* Tags row — display:block so inline tags honour parent text-align */
.wdwgt-si-tags {
	display: block;
}

.wdwgt-si-tag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: rgba(255, 255, 255, .15);
	color: #fff;
	font-size: 12px;
	font-weight: 500;
	padding: 5px 12px;
	border-radius: 20px;
	border: 1px solid rgba(255, 255, 255, .25);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	/* spacing between tags — logical props work in both LTR & RTL */
	margin-inline-end: 8px;
	margin-block-end: 8px;
}

.wdwgt-si-tag i,
.wdwgt-si-tag svg {
	font-size: 11px;
	width: 12px;
	height: 12px;
}

/* CTA Button — full-width at the very bottom */
.wdwgt-si-btn {
	position: relative;
	z-index: 2;
	display: block;
	text-align: center;
	background: rgba(255, 255, 255, .92);
	color: #1a1a1a;
	font-size: 15px;
	font-weight: 600;
	padding: 16px 20px;
	text-decoration: none;
	letter-spacing: 0.01em;
	transition: background .25s ease;
	/* No border-radius — card's overflow:hidden handles corners */
}

.wdwgt-si-btn:hover {
	background: #fff;
	color: #1a1a1a;
}


/* ===================================================
   WoodMart Widgets v1.2 — Curved Carousel 3D
   =================================================== */

.wdwgt-cc-wrap {
	position: relative;
	width: 100%;
	user-select: none;
}

/* Stage — clips side overflow, preserves 3D per-card */
.wdwgt-cc-stage {
	position: relative;
	width: 100%;
	overflow: hidden;
	cursor: grab;
	height: 430px; /* JS overrides with cardH + arc */
}
.wdwgt-cc-stage:active { cursor: grabbing; }

/* Each card — GPU: transform(X/Y/Z/rotateY/scale) + opacity */
.wdwgt-cc-card {
	position: absolute;
	top: 0;
	width: 280px;   /* overridden by Elementor slider */
	height: 380px;  /* overridden by Elementor slider */
	border-radius: 20px;
	overflow: hidden;
	will-change: transform, opacity;
	transform-origin: center top; /* arc drops from top */
	display: block;
	text-decoration: none;
	background: #f0f0f0;
}

.wdwgt-cc-card img,
.wdwgt-cc-card video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	pointer-events: none;
}

/* ---- Arrows ---- */
.wdwgt-cc-arrows {
	display: flex;
	justify-content: center;
	gap: 12px;
	margin-top: 20px;
}

.wdwgt-cc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1.5px solid #1a1a1a;
	border-radius: 50%;
	background: transparent;
	color: #1a1a1a;
	cursor: pointer;
	transition: background .25s, color .25s, transform .25s cubic-bezier(.4,0,.2,1);
	padding: 0;
}
.wdwgt-cc-btn svg { width: 18px; height: 18px; }
.wdwgt-cc-btn:hover {
	background: #1a1a1a;
	color: #fff;
	transform: scale(1.08);
}

/* ---- Dots ---- */
.wdwgt-cc-dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 16px;
}

.wdwgt-cc-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #ccc;
	border: none;
	cursor: pointer;
	padding: 0;
	transition: background .3s, transform .3s;
}
.wdwgt-cc-dot.active {
	background: #1a1a1a;
	transform: scale(1.35);
}


/* ===================================================
   WoodMart Widgets v1.2 — Text Animator
   =================================================== */

.wdwgt-ta-wrap {
	display: block;
	overflow: visible;
}

.wdwgt-ta-text {
	margin: 0;
	display: block;
}

/* Mask container (created by JS for Masked Reveal) */
.wdwgt-ta-wrap [style*="overflow:hidden"] {
	line-height: inherit !important;
}

/* Split chars/words — GPU: transform + opacity only */
.wdwgt-ta-wrap .word,
.wdwgt-ta-wrap .char,
.wdwgt-ta-wrap .line {
	display: inline-block;
	will-change: transform, opacity;
}

/* Lines must stay block-level for layout */
.wdwgt-ta-wrap .line {
	display: block;
}

/* ---- Typewriter cursor ---- */
.wdwgt-ta-cursor {
	display: inline-block;
	margin-left: 2px;
	color: #1a1a1a;
	font-weight: 400;
	will-change: opacity;
}

/* RTL cursor position */
[dir="rtl"] .wdwgt-ta-cursor,
.wdwgt-ta-wrap[dir="rtl"] .wdwgt-ta-cursor {
	margin-left: 0;
	margin-right: 2px;
}
