/* ==========================================================================
   Al Rahma Service Areas Section — Premium Light Theme
   Brand: --primary #ff2714 | --dark #02435b | --secondary #5F656F
   ========================================================================== */

/* ---------- Section ---------- */
.alrahma-areas-section {
	position: relative;
	padding: 100px 0 90px;
	background: linear-gradient(180deg, #ffffff 0%, var(--light, #F5F5F5) 100%);
	overflow: hidden;
}

/* Decorative dot-grid pattern */
.alrahma-areas-deco--dots {
	position: absolute;
	top: 40px;
	right: -60px;
	width: 200px;
	height: 200px;
	background-image: radial-gradient(circle, rgba(2, 67, 91, .08) 1.5px, transparent 1.5px);
	background-size: 20px 20px;
	pointer-events: none;
}

/* ---------- Section Header ---------- */
.alrahma-areas-header {
	text-align: center;
	margin-bottom: 56px;
	position: relative;
	z-index: 2;
}

.alrahma-areas-badge {
	display: inline-block;
	padding: 6px 22px;
	border-radius: 30px;
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--primary, #ff2714);
	background: rgba(255, 39, 20, .08);
	border: 1px solid rgba(255, 39, 20, .18);
	margin-bottom: 18px;
}

.alrahma-areas-title {
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	font-weight: 800;
	color: var(--dark, #02435b);
	margin: 0 0 14px;
	line-height: 1.3;
}

.alrahma-areas-desc {
	font-size: 1.05rem;
	color: var(--secondary, #5F656F);
	max-width: 600px;
	margin: 0 auto 20px;
	line-height: 1.7;
}

/* Divider */
.alrahma-areas-divider {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-top: 4px;
}
.alrahma-areas-divider span {
	display: block;
	width: 40px;
	height: 2px;
	background: var(--primary, #ff2714);
	border-radius: 2px;
}
.alrahma-areas-divider i {
	font-size: 0.75rem;
	color: var(--primary, #ff2714);
}

/* ==========================================================================
   Area Card — Image Overlay
   ========================================================================== */
.alrahma-area-card {
	position: relative;
	display: block;
	border-radius: 16px;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	text-decoration: none;
	color: #fff;
	box-shadow: 0 4px 20px rgba(0, 0, 0, .08);
	transition: transform 0.45s cubic-bezier(.25, .8, .25, 1),
	            box-shadow 0.45s cubic-bezier(.25, .8, .25, 1);
}
.alrahma-area-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 16px 40px rgba(0, 0, 0, .14);
	color: #fff;
	text-decoration: none;
}
.alrahma-area-card:focus-visible {
	outline: 3px solid var(--primary, #ff2714);
	outline-offset: 3px;
}

/* Image */
.alrahma-area-card__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s cubic-bezier(.25, .8, .25, 1);
}
.alrahma-area-card:hover .alrahma-area-card__img {
	transform: scale(1.06);
}

/* No-image placeholder */
.alrahma-area-card--no-img {
	background: linear-gradient(135deg, var(--dark, #02435b), #033a50);
}
.alrahma-area-card__placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}
.alrahma-area-card__placeholder i {
	font-size: 3.5rem;
	color: rgba(255, 255, 255, .15);
}

/* Gradient overlay */
.alrahma-area-card__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to top,
		rgba(0, 0, 0, .70) 0%,
		rgba(0, 0, 0, .25) 40%,
		rgba(0, 0, 0, .05) 100%
	);
	transition: background 0.4s ease;
	z-index: 1;
}
.alrahma-area-card:hover .alrahma-area-card__overlay {
	background: linear-gradient(
		to top,
		rgba(0, 0, 0, .75) 0%,
		rgba(0, 0, 0, .15) 50%,
		rgba(0, 0, 0, .0) 100%
	);
}

/* Content area (positioned at bottom) */
.alrahma-area-card__content {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 24px;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
}

/* Area count badge */
.alrahma-area-card__count {
	display: inline-block;
	padding: 4px 14px;
	border-radius: 20px;
	font-size: 0.78rem;
	font-weight: 600;
	background: var(--primary, #ff2714);
	color: #fff;
	letter-spacing: 0.02em;
	box-shadow: 0 2px 8px rgba(255, 39, 20, .30);
}

/* City name */
.alrahma-area-card__title {
	font-size: 1.3rem;
	font-weight: 700;
	color: #fff;
	margin: 0;
	line-height: 1.3;
	text-shadow: 0 1px 4px rgba(0, 0, 0, .30);
}

/* Arrow indicator */
.alrahma-area-card__arrow {
	position: absolute;
	bottom: 24px;
	left: 24px;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .15);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.8rem;
	color: #fff;
	opacity: 0;
	transform: translateX(8px);
	transition: opacity 0.35s ease, transform 0.35s ease, background 0.35s ease;
}
.alrahma-area-card:hover .alrahma-area-card__arrow {
	opacity: 1;
	transform: translateX(0);
}
.alrahma-area-card:hover .alrahma-area-card__arrow:hover {
	background: var(--primary, #ff2714);
}

/* RTL: arrow flips to right side */
[dir="rtl"] .alrahma-area-card__arrow {
	left: auto;
	right: 24px;
	transform: translateX(-8px);
}
[dir="rtl"] .alrahma-area-card:hover .alrahma-area-card__arrow {
	transform: translateX(0);
}

/* ==========================================================================
   Carousel (Owl Carousel)
   ========================================================================== */
.alrahma-areas-carousel {
	position: relative;
	z-index: 2;
}

/* Nav arrows */
.alrahma-areas-carousel .owl-nav {
	display: flex;
	justify-content: center;
	gap: 12px;
	margin-top: 36px;
}
.alrahma-areas-carousel .owl-nav button.owl-prev,
.alrahma-areas-carousel .owl-nav button.owl-next {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--dark, #02435b) !important;
	border: none !important;
	color: #fff;
	font-size: 0.95rem;
	transition: all 0.3s ease;
}
.alrahma-areas-carousel .owl-nav button.owl-prev:hover,
.alrahma-areas-carousel .owl-nav button.owl-next:hover {
	background: var(--primary, #ff2714) !important;
	transform: scale(1.1);
	box-shadow: 0 4px 16px rgba(255, 39, 20, .30);
}
.alrahma-areas-carousel .owl-nav button span {
	font-size: 0;
	line-height: 0;
}

/* Dots */
.alrahma-areas-carousel .owl-dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 28px;
}
.alrahma-areas-carousel .owl-dot span {
	display: block;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: rgba(2, 67, 91, .20);
	transition: all 0.3s ease;
}
.alrahma-areas-carousel .owl-dot.active span {
	background: var(--primary, #ff2714);
	width: 28px;
	border-radius: 10px;
	box-shadow: 0 0 8px rgba(255, 39, 20, .35);
}
.alrahma-areas-carousel .owl-dot:hover span {
	background: rgba(255, 39, 20, .40);
}

/* ---------- Grid ---------- */
.alrahma-areas-grid {
	position: relative;
	z-index: 2;
}

/* ==========================================================================
   CTA Button
   ========================================================================== */
.alrahma-areas-cta {
	text-align: center;
	margin-top: 48px;
	position: relative;
	z-index: 2;
}
.alrahma-areas-cta-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 36px;
	border-radius: 12px;
	font-size: 1rem;
	font-weight: 600;
	background: linear-gradient(135deg, var(--primary, #ff2714), #e02010);
	color: #fff;
	text-decoration: none;
	border: none;
	box-shadow: 0 4px 18px rgba(255, 39, 20, .25);
	transition: all 0.35s cubic-bezier(.25, .8, .25, 1);
}
.alrahma-areas-cta-btn:hover {
	background: linear-gradient(135deg, #e02010, #c01a0a);
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 8px 28px rgba(255, 39, 20, .40);
	text-decoration: none;
}
.alrahma-areas-cta-btn i {
	font-size: 0.85rem;
	transition: transform 0.3s ease;
}
.alrahma-areas-cta-btn:hover i {
	transform: translateX(-4px);
}
[dir="rtl"] .alrahma-areas-cta-btn:hover i {
	transform: translateX(-4px);
}

/* ==========================================================================
   Animations
   ========================================================================== */
/* Card stagger entrance */
.alrahma-areas-carousel.is-visible .alrahma-area-card,
.alrahma-areas-grid.is-visible .alrahma-area-card {
	animation: alrahmaAreaCardIn 0.6s cubic-bezier(.25, .8, .25, 1) both;
	animation-delay: calc(var(--card-index, 0) * 0.1s);
}
@keyframes alrahmaAreaCardIn {
	from {
		opacity: 0;
		transform: translateY(24px) scale(0.97);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

/* Header stagger */
.alrahma-areas-header.is-visible .alrahma-areas-badge {
	animation: alrahmaAreasFade 0.5s ease both;
}
.alrahma-areas-header.is-visible .alrahma-areas-title {
	animation: alrahmaAreasFade 0.5s ease 0.1s both;
}
.alrahma-areas-header.is-visible .alrahma-areas-desc {
	animation: alrahmaAreasFade 0.5s ease 0.2s both;
}
.alrahma-areas-header.is-visible .alrahma-areas-divider {
	animation: alrahmaAreasFade 0.5s ease 0.3s both;
}
@keyframes alrahmaAreasFade {
	from { opacity: 0; transform: translateY(16px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* CTA */
.alrahma-areas-cta.is-visible .alrahma-areas-cta-btn {
	animation: alrahmaAreasFade 0.5s ease 0.15s both;
}

/* ==========================================================================
   RTL
   ========================================================================== */
[dir="rtl"] .alrahma-areas-title {
	letter-spacing: 0;
}
[dir="rtl"] .alrahma-areas-badge {
	letter-spacing: 0;
}
[dir="rtl"] .alrahma-area-card__content {
	align-items: flex-start;
	text-align: right;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 991.98px) {
	.alrahma-areas-section {
		padding: 70px 0 60px;
	}
	.alrahma-areas-header {
		margin-bottom: 40px;
	}
	.alrahma-areas-cta {
		margin-top: 36px;
	}
}

@media (max-width: 767.98px) {
	.alrahma-areas-section {
		padding: 56px 0 48px;
	}
	.alrahma-areas-header {
		margin-bottom: 32px;
	}
	.alrahma-area-card__content {
		padding: 18px;
	}
	.alrahma-area-card__title {
		font-size: 1.15rem;
	}
	.alrahma-area-card__arrow {
		display: none;
	}
	.alrahma-areas-deco--dots {
		width: 120px;
		height: 120px;
	}
}

@media (max-width: 575.98px) {
	.alrahma-areas-section {
		padding: 44px 0 38px;
	}
	.alrahma-areas-title {
		font-size: 1.5rem;
	}
	.alrahma-area-card {
		border-radius: 12px;
	}
	.alrahma-area-card__content {
		padding: 16px;
	}
	.alrahma-area-card__title {
		font-size: 1.05rem;
	}
	.alrahma-areas-cta-btn {
		width: 100%;
		max-width: 280px;
		justify-content: center;
	}
}

/* ==========================================================================
   Reduced Motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	.alrahma-areas-carousel.is-visible .alrahma-area-card,
	.alrahma-areas-grid.is-visible .alrahma-area-card,
	.alrahma-areas-header.is-visible .alrahma-areas-badge,
	.alrahma-areas-header.is-visible .alrahma-areas-title,
	.alrahma-areas-header.is-visible .alrahma-areas-desc,
	.alrahma-areas-header.is-visible .alrahma-areas-divider,
	.alrahma-areas-cta.is-visible .alrahma-areas-cta-btn {
		animation: none;
		opacity: 1;
		transform: none;
	}
	.alrahma-area-card,
	.alrahma-area-card__img,
	.alrahma-area-card__overlay,
	.alrahma-area-card__arrow {
		transition: none;
	}
}

/* ==========================================================================
   Print
   ========================================================================== */
@media print {
	.alrahma-areas-section {
		background: #fff !important;
		padding: 30px 0;
	}
	.alrahma-areas-deco--dots,
	.alrahma-area-card__overlay,
	.alrahma-area-card__arrow,
	.alrahma-areas-divider,
	.alrahma-areas-cta,
	.alrahma-areas-carousel .owl-nav,
	.alrahma-areas-carousel .owl-dots {
		display: none !important;
	}
	.alrahma-area-card {
		break-inside: avoid;
		page-break-inside: avoid;
		box-shadow: none !important;
		border: 1px solid #ddd;
	}
	.alrahma-area-card__title {
		color: #000 !important;
		text-shadow: none !important;
	}
	.alrahma-areas-title {
		color: #000 !important;
	}
	.alrahma-areas-desc {
		color: #333 !important;
	}
}
