﻿/* ==========================================================================
   WHY CHOOSE US (dark section + 3 floating cards)
   Markup lives in: page-templates/home.php (section "7. WHY CHOOSE US")
   ========================================================================== */

/* The floating cards are pushed out of the section with transform, which does
   NOT reserve layout space. This padding-bottom absorbs most of the overhang so
   the cards can never reach the next section's heading. Before/After adds the
   matching top clearance. */
.why-choose-us-dark {
	background: var(--color-primary, #03193C);
	color: var(--color-white);
	padding-bottom: 80px;
	margin-bottom: 0;
}

.why-choose-us-dark__top {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--space-xl);
	align-items: center;
	padding-bottom: var(--space-2xl);
}

.why-choose-us-dark h2 { color: var(--color-white); }
.why-choose-us-dark p { color: rgba(255,255,255,0.85); }

.why-choose-us-dark__image img {
	width: 100%;
	border-radius: var(--radius-card);
	display: block;
}

.why-choose-us-dark__cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--space-md);
	transform: translateY(50%);
	position: relative;
	z-index: 2;
}

.feature-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	text-align: left;
	background: var(--color-white);
	border: 1px solid #e5e7eb;
	border-radius: var(--radius-card);
	padding: var(--space-lg);
	box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

/* Icon tile — column direction above keeps it stacked over the title. */
.feature-card__icon {
	margin-bottom: 18px;
	width: 52px;
	height: 52px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: rgba(var(--color-accent-rgb, 234, 179, 8), 0.14);
	border-radius: 10px;
	color: var(--color-primary, #03193C);
	flex-shrink: 0;
}

.feature-card__icon svg {
	width: 28px;
	height: 28px;
}

.feature-card__icon img {
	width: 28px;
	height: 28px;
	object-fit: contain;
	display: block;
}

.feature-card h3,
.feature-card__title { color: var(--color-primary, #03193C); }

.feature-card p,
.feature-card__text {
	color: var(--color-text-muted);
	margin-bottom: 0;
}

.feature-card--floating {
	background: var(--color-white);
	color: var(--color-text-dark);
	box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.feature-card--floating h3 { color: var(--color-primary, #03193C); }
.feature-card--floating p { color: var(--color-text-muted); }

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
	.why-choose-us-dark { padding-bottom: var(--space-xl); }
	.why-choose-us-dark__top { grid-template-columns: 1fr; }
	.why-choose-us-dark__cards {
		grid-template-columns: 1fr;
		transform: none;
	}
}
