/**
 * Why Choose Us Section Styles for Al Rahma Theme
 * Modern, premium design with scroll-triggered animations
 *
 * @package Understrap
 */

/* =============================================================================
   ANIMATION SYSTEM
   ============================================================================= */

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes zoomIn {
	from {
		opacity: 0;
		transform: scale(0.9);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

.alrahma-animate-on-scroll {
	opacity: 0;
	transform: translateY(30px);
	transition: all 0.8s ease-out;
}

.alrahma-animate-on-scroll.alrahma-animated {
	opacity: 1;
	transform: translateY(0);
}

/* Individual element animations */
.alrahma-stat-item.alrahma-animate-on-scroll.alrahma-animated {
	animation: zoomIn 0.8s ease-out forwards;
}

.alrahma-feature-item.alrahma-animate-on-scroll.alrahma-animated {
	animation: fadeInUp 0.8s ease-out forwards;
}

.alrahma-trust-badge.alrahma-animate-on-scroll.alrahma-animated {
	animation: zoomIn 0.6s ease-out forwards;
}

/* =============================================================================
   WHY CHOOSE US SECTION - MAIN CONTAINER
   ============================================================================= */

.alrahma-why-choose-us {
	padding: 80px 0;
	background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f1f3f4 100%);
	position: relative;
	overflow: hidden;
}

.alrahma-why-choose-us::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(0,115,170,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>') repeat;
	z-index: 1;
}

.alrahma-why-choose-us .container-fluid,
.alrahma-why-choose-us .container {
	position: relative;
	z-index: 2;
}

/* =============================================================================
   SECTION HEADER
   ============================================================================= */

.alrahma-why-choose-header {
	text-align: center;
	margin-bottom: 60px;
	position: relative;
}

.alrahma-why-choose-subtitle {
	display: inline-block;
	background: linear-gradient(45deg, var(--primary, #ff2714), #ff6b47);
	color: white;
	font-size: 14px;
	font-weight: 600;
	padding: 8px 24px;
	border-radius: 50px;
	margin-bottom: 20px;
	text-transform: uppercase;
	letter-spacing: 1px;
	box-shadow: 0 4px 15px rgba(255, 39, 20, 0.3);
}

.alrahma-why-choose-title {
	font-size: clamp(28px, 4vw, 48px);
	font-weight: 800;
	color: var(--dark, #02435b);
	margin-bottom: 20px;
	line-height: 1.2;
	letter-spacing: -0.5px;
}

.alrahma-why-choose-description {
	font-size: 18px;
	color: #6c757d;
	max-width: 700px;
	margin: 0 auto 40px;
	line-height: 1.6;
}

/* =============================================================================
   STATISTICS SECTION
   ============================================================================= */

.alrahma-statistics {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 30px;
	margin-bottom: 80px;
}

.alrahma-stat-item {
	text-align: center;
	padding: 30px 20px;
	background: white;
	border-radius: 20px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
	position: relative;
	overflow: hidden;
	transition: all 0.4s ease;
}

.alrahma-stat-item::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 4px;
	background: linear-gradient(90deg, var(--primary, #ff2714), #ff6b47);
	transition: left 0.6s ease;
}

.alrahma-stat-item:hover::before {
	left: 0;
}

.alrahma-stat-item:hover {
	transform: translateY(-8px);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.alrahma-stat-number {
	font-size: clamp(32px, 5vw, 48px);
	font-weight: 900;
	color: var(--primary, #ff2714);
	margin-bottom: 10px;
	display: block;
	line-height: 1;
}

.alrahma-stat-label {
	font-size: 16px;
	font-weight: 600;
	color: var(--dark, #02435b);
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* =============================================================================
   CONTENT LAYOUT
   ============================================================================= */

.alrahma-why-choose-content {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 80px;
	align-items: center;
	margin-bottom: 60px;
}

.alrahma-why-choose-text {
	order: 1;
}

.alrahma-why-choose-visual {
	order: 2;
	position: relative;
}

/* =============================================================================
   FEATURES GRID
   ============================================================================= */

.alrahma-features-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 30px;
	margin-bottom: 40px;
}

.alrahma-feature-item {
	display: flex;
	align-items: flex-start;
	gap: 20px;
	padding: 25px;
	background: white;
	border-radius: 16px;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
	transition: all 0.4s ease;
	position: relative;
	overflow: hidden;
}

.alrahma-feature-item::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 4px;
	height: 100%;
	background: linear-gradient(180deg, var(--primary, #ff2714), #ff6b47);
	transform: scaleY(0);
	transition: transform 0.4s ease;
}

.alrahma-feature-item:hover::before {
	transform: scaleY(1);
}

.alrahma-feature-item:hover {
	transform: translateX(8px);
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.alrahma-feature-icon {
	flex-shrink: 0;
	width: 60px;
	height: 60px;
	background: linear-gradient(135deg, var(--primary, #ff2714), #ff6b47);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-size: 24px;
	box-shadow: 0 4px 15px rgba(255, 39, 20, 0.3);
}

.alrahma-feature-content h4 {
	font-size: 18px;
	font-weight: 700;
	color: var(--dark, #02435b);
	margin-bottom: 8px;
	line-height: 1.3;
}

.alrahma-feature-content p {
	font-size: 14px;
	color: #6c757d;
	line-height: 1.5;
	margin: 0;
}

/* =============================================================================
   VISUAL CONTENT
   ============================================================================= */

.alrahma-why-choose-image {
	position: relative;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.alrahma-why-choose-image img {
	width: 100%;
	height: auto;
	display: block;
	transition: transform 0.6s ease;
}

.alrahma-why-choose-image:hover img {
	transform: scale(1.05);
}

.alrahma-video-overlay {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 80px;
	height: 80px;
	background: rgba(255, 39, 20, 0.95);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.3s ease;
	backdrop-filter: blur(10px);
}

.alrahma-video-overlay:hover {
	transform: translate(-50%, -50%) scale(1.1);
	background: var(--primary, #ff2714);
}

.alrahma-video-overlay i {
	color: white;
	font-size: 24px;
	margin-left: 4px;
}

/* =============================================================================
   TRUST BADGES
   ============================================================================= */

.alrahma-trust-badges {
	text-align: center;
	margin-bottom: 60px;
}

.alrahma-trust-badges h3 {
	font-size: 24px;
	font-weight: 700;
	color: var(--dark, #02435b);
	margin-bottom: 30px;
}

.alrahma-badges-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 30px;
	justify-items: center;
}

.alrahma-trust-badge {
	display: flex;
	align-items: center;
	gap: 15px;
	padding: 20px 30px;
	background: white;
	border-radius: 50px;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
	transition: all 0.3s ease;
	min-width: 200px;
}

.alrahma-trust-badge:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.alrahma-trust-badge i {
	font-size: 28px;
	color: var(--primary, #ff2714);
}

.alrahma-trust-badge span {
	font-size: 14px;
	font-weight: 600;
	color: var(--dark, #02435b);
	white-space: nowrap;
}

/* =============================================================================
   CALL TO ACTION
   ============================================================================= */

.alrahma-why-choose-cta {
	text-align: center;
	padding: 60px 40px;
	background: linear-gradient(135deg, var(--dark, #02435b), #034159);
	border-radius: 20px;
	position: relative;
	overflow: hidden;
}

.alrahma-why-choose-cta::before {
	content: '';
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
	animation: rotateGlow 10s linear infinite;
}

.alrahma-why-choose-cta .alrahma-cta-btn {
	position: relative;
	z-index: 2;
	display: inline-block;
	background: linear-gradient(45deg, var(--primary, #ff2714), #ff6b47);
	color: white;
	padding: 18px 40px;
	border-radius: 50px;
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.4s ease;
	box-shadow: 0 6px 20px rgba(255, 39, 20, 0.4);
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.alrahma-why-choose-cta .alrahma-cta-btn:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 30px rgba(255, 39, 20, 0.6);
	color: white;
	text-decoration: none;
}

/* =============================================================================
   ANIMATIONS
   ============================================================================= */

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes rotateGlow {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}

@keyframes pulse {
	0%, 100% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.05);
	}
}

.alrahma-why-choose-us[data-aos="fade-up"] {
	opacity: 0;
	transform: translateY(50px);
	transition: opacity 0.8s ease, transform 0.8s ease;
}

.alrahma-why-choose-us[data-aos="fade-up"].aos-animate {
	opacity: 1;
	transform: translateY(0);
}

/* =============================================================================
   RESPONSIVE DESIGN
   ============================================================================= */

@media (max-width: 1200px) {
	.alrahma-why-choose-content {
		gap: 60px;
	}

	.alrahma-features-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 768px) {
	.alrahma-why-choose-us {
		padding: 60px 0;
	}

	.alrahma-why-choose-content {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.alrahma-why-choose-text {
		order: 2;
	}

	.alrahma-why-choose-visual {
		order: 1;
	}

	.alrahma-statistics {
		grid-template-columns: repeat(2, 1fr);
		gap: 20px;
	}

	.alrahma-stat-item {
		padding: 20px 15px;
	}

	.alrahma-trust-badges h3 {
		margin-bottom: 20px;
	}

	.alrahma-badges-grid {
		grid-template-columns: 1fr;
		gap: 15px;
	}

	.alrahma-trust-badge {
		justify-content: center;
		padding: 15px 25px;
		min-width: auto;
	}

	.alrahma-why-choose-cta {
		padding: 40px 20px;
		margin: 0 15px;
	}
}

@media (max-width: 576px) {
	.alrahma-why-choose-header {
		margin-bottom: 40px;
	}

	.alrahma-feature-item {
		flex-direction: column;
		text-align: center;
		gap: 15px;
	}

	.alrahma-statistics {
		grid-template-columns: 1fr;
	}

	.alrahma-why-choose-cta .alrahma-cta-btn {
		padding: 15px 30px;
		font-size: 14px;
	}
}

/* =============================================================================
   RTL SUPPORT
   ============================================================================= */

[dir="rtl"] .alrahma-feature-item:hover {
	transform: translateX(-8px);
}

[dir="rtl"] .alrahma-video-overlay i {
	margin-left: 0;
	margin-right: 4px;
}

[dir="rtl"] .alrahma-trust-badge {
	direction: rtl;
}

/* =============================================================================
   ACCESSIBILITY IMPROVEMENTS
   ============================================================================= */

@media (prefers-reduced-motion: reduce) {
	.alrahma-why-choose-us *,
	.alrahma-why-choose-us *::before,
	.alrahma-why-choose-us *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

.alrahma-video-overlay:focus {
	outline: 3px solid var(--primary, #ff2714);
	outline-offset: 2px;
}

.alrahma-cta-btn:focus {
	outline: 3px solid white;
	outline-offset: 2px;
}

/* =============================================================================
   DARK MODE SUPPORT (OPTIONAL)
   ============================================================================= */

@media (prefers-color-scheme: dark) {
	.alrahma-why-choose-us {
		background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1f1f1f 100%);
	}

	.alrahma-stat-item,
	.alrahma-feature-item,
	.alrahma-trust-badge {
		background: #333;
		color: #fff;
	}

	.alrahma-feature-content h4,
	.alrahma-stat-label,
	.alrahma-trust-badge span {
		color: #fff;
	}

	.alrahma-feature-content p,
	.alrahma-why-choose-description {
		color: #ccc;
	}
}

/* =============================================================================
   VIDEO MODAL STYLES
   ============================================================================= */

.alrahma-video-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.95);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
}

.alrahma-video-modal.active {
	opacity: 1;
	visibility: visible;
}

.alrahma-video-content {
	position: relative;
	width: 90%;
	max-width: 1000px;
	aspect-ratio: 16/9;
	background: #000;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
	transform: scale(0.8);
	transition: transform 0.3s ease;
}

.alrahma-video-modal.active .alrahma-video-content {
	transform: scale(1);
}

.alrahma-video-content iframe {
	width: 100%;
	height: 100%;
	border: none;
}

.alrahma-video-close {
	position: absolute;
	top: -50px;
	right: 0;
	background: none;
	border: none;
	color: white;
	font-size: 32px;
	cursor: pointer;
	padding: 10px;
	z-index: 10001;
	transition: all 0.3s ease;
	border-radius: 50%;
	width: 50px;
	height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.alrahma-video-close:hover {
	background: rgba(255, 255, 255, 0.1);
	transform: scale(1.1);
}

@media (max-width: 768px) {
	.alrahma-video-content {
		width: 95%;
		margin: 20px;
	}

	.alrahma-video-close {
		top: -40px;
		right: 10px;
		font-size: 24px;
		width: 40px;
		height: 40px;
	}
}
