/* =============================================
   FEATURES — Feature Cards / Vehicle Showcase
   Used on: index.html, fleet.html
   Abdullah Limozen | Top Class Limousine
   ============================================= */

#features {
	background: var(--bg-dark);
}

.features-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
	gap: 35px;
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 30px;
}

.feature-card {
	background: linear-gradient(145deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
	border: 1px solid var(--glass-border);
	border-radius: var(--radius-lg);
	padding: 40px;
	text-align: center;
	transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
	position: relative;
	overflow: hidden;
}

.feature-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 2px;
	background: linear-gradient(90deg, transparent, var(--gold), transparent);
	transition: all 0.6s ease;
}

.feature-card:hover::before {
	left: 100%;
}

.feature-card:hover {
	transform: translateY(-12px);
	border-color: rgba(212, 175, 55, 0.6);
	box-shadow:
		0 20px 60px rgba(0, 0, 0, 0.5),
		0 0 40px rgba(212, 175, 55, 0.15),
		inset 0 1px 0 rgba(212, 175, 55, 0.1);
}

.feature-card:hover .feature-icon {
	background: linear-gradient(135deg, rgba(212, 175, 55, 0.3) 0%, rgba(212, 175, 55, 0.1) 100%);
	transform: scale(1.05);
}

.feature-icon {
	width: 120px;
	height: 120px;
	margin: 0 auto 30px;
	background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(212, 175, 55, 0.05) 100%);
	border-radius: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.4s ease;
	position: relative;
	overflow: hidden;
}

.feature-card h3 {
	font-family: 'Cormorant Garamond', serif;
	font-size: 1.6rem;
	color: var(--gold-light);
	margin-bottom: 20px;
	font-weight: 600;
}

.feature-card p {
	color: var(--text-muted);
	font-size: 1rem;
	line-height: 1.8;
	margin-bottom: 25px;
}

.limo-image {
	width: 100%;
	height: 220px;
	object-fit: cover;
	border-radius: 16px;
	transition: all 0.4s ease;
	filter: brightness(0.9) contrast(1.1);
	border: 2px solid rgba(212, 175, 55, 0.3);
}

.feature-card:hover .limo-image {
	transform: scale(1.05);
	filter: brightness(1) contrast(1.2);
}

.quote-cta {
	color: var(--gold);
	margin: 20px -40px -40px -40px;
	padding: 20px 40px;
	border-top: 1px solid rgba(212, 175, 55, 0.3);
	text-align: center;
	background: rgba(212, 175, 55, 0.05);
	border-radius: 0 0 16px 16px;
	font-weight: 600;
	letter-spacing: 0.5px;
}

.feature-card:hover .quote-cta {
	background: rgba(212, 175, 55, 0.1);
	color: var(--gold-light);
}

/* Enhanced CTA Typography */
.quote-cta,
.area-cta {
	font-family: 'Outfit', sans-serif;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	font-size: 0.95rem;
}

/* Clickable Car / Vehicle Gallery */
.clickable-car {
	cursor: pointer;
	position: relative;
	overflow: hidden;
}

.view-gallery-btn {
	position: absolute;
	bottom: 10px;
	left: 50%;
	transform: translateX(-50%);
	background: rgba(212, 175, 55, 0.9);
	color: #000;
	padding: 8px 16px;
	border-radius: 20px;
	font-size: 0.85rem;
	font-weight: 600;
	opacity: 0;
	transition: all 0.3s ease;
	backdrop-filter: blur(10px);
	white-space: nowrap;
}

.clickable-car:hover .view-gallery-btn {
	opacity: 1;
	transform: translateX(-50%) translateY(-5px);
}

.clickable-car:hover {
	transform: scale(1.02);
}

/* Vehicle Gallery Modal */
.vehicle-modal {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.95);
	z-index: 3000;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
}

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

.vehicle-modal-content {
	background: var(--bg-dark);
	border: 2px solid var(--gold);
	border-radius: 20px;
	max-width: 90vw;
	max-height: 90vh;
	overflow-y: auto;
	position: relative;
	padding: 30px;
	margin: 20px;
}

.vehicle-modal-close {
	position: absolute;
	top: 15px;
	right: 15px;
	width: 40px;
	height: 40px;
	min-height: 44px;
	min-width: 44px;
	background: var(--glass-bg);
	border: 1px solid var(--glass-border);
	border-radius: 50%;
	color: #fff;
	font-size: 1.5rem;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	touch-action: manipulation;
}

.vehicle-modal-close:hover {
	background: var(--gold);
	color: #000;
}

.vehicle-modal-header {
	text-align: center;
	margin-bottom: 30px;
}

.vehicle-modal-header h2 {
	font-family: 'Cormorant Garamond', serif;
	font-size: 2.5rem;
	color: var(--gold);
	margin-bottom: 20px;
}

.vehicle-quote-info {
	background: rgba(212, 175, 55, 0.1);
	border: 1px solid var(--gold);
	border-radius: 15px;
	padding: 20px;
	margin: 0 auto;
	max-width: 400px;
}

.quote-phone-display {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 15px;
	font-size: 1.2rem;
	color: var(--text-light);
}

.quote-phone-display .phone-icon {
	font-size: 1.5rem;
	color: var(--gold);
}

.quote-phone-display strong {
	color: var(--gold);
	font-family: 'Cormorant Garamond', serif;
	font-size: 1.3rem;
	letter-spacing: 1px;
}

.vehicle-gallery {
	position: relative;
	text-align: center;
}

.vehicle-gallery-nav {
	position: relative;
	margin-bottom: 20px;
}

.vehicle-nav-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 50px;
	height: 50px;
	background: var(--glass-bg);
	border: 1px solid var(--glass-border);
	border-radius: 50%;
	color: #fff;
	font-size: 1.2rem;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	z-index: 10;
	touch-action: manipulation;
}

.vehicle-nav-btn:hover {
	background: var(--gold);
	color: #000;
}

.vehicle-nav-btn:focus-visible {
	outline: 2px solid rgba(212, 175, 55, 0.75);
	outline-offset: 3px;
}

#vehiclePrev {
	left: 20px;
}

#vehicleNext {
	right: 20px;
}

#vehicleMainImage {
	max-width: 100%;
	max-height: 400px;
	border-radius: 15px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
	margin-bottom: 20px;
}

.vehicle-thumbnails {
	display: flex;
	justify-content: center;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 20px;
}

.vehicle-thumb {
	width: 80px;
	height: 60px;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.3s ease;
	border: 2px solid transparent;
	object-fit: cover;
	touch-action: manipulation;
}

.vehicle-thumb:hover,
.vehicle-thumb.active {
	border-color: var(--gold);
	transform: scale(1.1);
}

/* Desktop enhancements for features */
@media (min-width: 1200px) {
	.features-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 40px;
	}

	.limo-image {
		height: 140px;
	}
}
