/*
 * Homepage-only styles for energievergelijking.nl
 * Conditionally enqueued via is_front_page() in functions.php (HOME-04).
 * All colors use CSS custom properties from style.css :root.
 * Spacing in multiples of 4px.
 */

/* ─── Hero Section (D-03, D-04) ─── */

.ev-hero {
	background: var(--ev-navy);
	color: var(--ev-white);
	min-height: 60vh;
	max-height: 500px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 0 24px;
}

.ev-hero__inner {
	max-width: 640px;
	width: 100%;
}

.ev-hero h1 {
	font-size: 2.5rem;
	font-weight: 700;
	margin: 0 0 16px;
	line-height: 1.2;
}

.ev-hero p {
	font-size: 1.125rem;
	opacity: 0.9;
	margin: 0 0 32px;
	line-height: 1.6;
}

/* ─── Hero Form ─── */

.ev-hero__form {
	display: flex;
	gap: 12px;
	max-width: 440px;
	margin: 0 auto 24px;
}

.ev-hero__form input[type="text"] {
	flex: 1;
	padding: 14px 16px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-radius: 8px;
	font-size: 1rem;
	background: rgba(255, 255, 255, 0.1);
	color: var(--ev-white);
	outline: none;
	transition: border-color 0.2s;
}

.ev-hero__form input[type="text"]::placeholder {
	color: rgba(255, 255, 255, 0.6);
}

.ev-hero__form input[type="text"]:focus {
	border-color: var(--ev-orange);
}

.ev-hero__form .ev-cta-button {
	white-space: nowrap;
	flex-shrink: 0;
}

/* ─── Trust Signals (D-02) ─── */

.ev-hero__trust {
	display: flex;
	justify-content: center;
	gap: 24px;
	flex-wrap: wrap;
}

.ev-hero__trust-item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.875rem;
	opacity: 0.85;
}

.ev-hero__trust-item svg {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

/* ─── Sections Common ─── */

.ev-section {
	padding: 64px 24px;
	max-width: var(--ev-container);
	margin: 0 auto;
}

/* ─── Category Grid (D-05) ─── */

.ev-category-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin-top: 32px;
}

.ev-category-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 32px 24px;
	background: var(--ev-white);
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	text-decoration: none;
	color: var(--ev-navy);
	transition: box-shadow 0.2s, transform 0.2s;
}

.ev-category-card:hover {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
}

.ev-category-card svg {
	width: 40px;
	height: 40px;
	color: var(--ev-green);
	margin-bottom: 16px;
}

.ev-category-card h3 {
	font-size: 1.125rem;
	font-weight: 600;
	margin: 0 0 8px;
}

.ev-category-card p {
	font-size: 0.875rem;
	color: #6b7280;
	margin: 0;
	line-height: 1.5;
}

/* ─── Supplier Strip (D-07) ─── */

.ev-supplier-strip {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin-top: 32px;
}

.ev-supplier-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 32px 24px;
	background: var(--ev-white);
	border: 1px solid #e5e7eb;
	border-radius: 12px;
}

.ev-supplier-card img {
	width: 80px;
	height: 80px;
	object-fit: contain;
	margin-bottom: 16px;
	border-radius: 8px;
}

.ev-supplier-card__placeholder {
	width: 80px;
	height: 80px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--ev-green-light);
	color: var(--ev-green);
	font-size: 2rem;
	font-weight: 700;
	border-radius: 8px;
	margin-bottom: 16px;
}

.ev-supplier-card h3 {
	font-size: 1rem;
	font-weight: 600;
	margin: 0 0 8px;
}

.ev-supplier-card h3 a {
	color: var(--ev-navy);
	text-decoration: none;
}

.ev-supplier-card h3 a:hover {
	color: var(--ev-green);
}

.ev-supplier-card .ev-pill--rating {
	margin-bottom: 16px;
}

/* ─── Latest Content Grid (D-08) ─── */

.ev-latest-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin-top: 32px;
}

/* ─── SEO Content Section (D-09) ─── */

.ev-seo-content {
	background: #f9fafb;
	padding: 64px 24px;
	max-width: none;
}

.ev-seo-content > div {
	max-width: var(--ev-container);
	margin: 0 auto;
}

.ev-seo-content h2 {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--ev-navy);
	margin: 0 0 24px;
}

.ev-seo-content p {
	font-size: 1rem;
	line-height: 1.7;
	color: #374151;
	margin: 0 0 16px;
}

.ev-seo-content p:last-child {
	margin-bottom: 0;
}

/* ─── Responsive Breakpoints ─── */

@media (max-width: 768px) {
	.ev-category-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.ev-supplier-strip {
		grid-template-columns: 1fr;
		max-width: 400px;
		margin-left: auto;
		margin-right: auto;
	}

	.ev-latest-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 480px) {
	.ev-hero__form {
		flex-direction: column;
	}

	.ev-hero h1 {
		font-size: 1.75rem;
	}

	.ev-category-grid {
		grid-template-columns: 1fr;
	}
}
