/*
Theme Name: Niederrhein Morgenlicht
Author: Lodewijk Hartong
Description: A warm, modern block theme for Fahrschule Dieter Ritterbex Ferienfahrschule GmbH in Kleve. Features a teal accent on a warm off-white ground, modern typography, and a split hero layout showcasing the driving school vehicle.
Version: 0.1.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: niederrhein-morgenlicht
Tags: block-theme, full-site-editing, custom-colors, custom-fonts
*/

/* Equal-height card columns */
.equal-cards > .wp-block-column {
	display: flex;
	flex-direction: column;
	flex-grow: 0;
}
.equal-cards > .wp-block-column > .wp-block-group {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}
.equal-cards .cta-bottom {
	margin-top: auto;
	justify-content: center;
}

/* Remove top margin on footer */
.wp-site-blocks > footer {
	margin-block-start: 0;
}

/* Announcement bar */
.announcement-bar {
	position: relative;
	z-index: 1001;
}
.announcement-bar p {
	margin: 0;
}
.announcement-bar a:hover {
	opacity: 0.85;
}

/* Header logo sizing */
.site-header .wp-block-image img,
.wp-site-blocks > header .wp-block-image img {
	height: 72px;
	width: auto;
	object-fit: contain;
}
.site-header .wp-block-image,
.wp-site-blocks > header .wp-block-image {
	margin: 0;
	line-height: 0;
}
.site-header .wp-block-image figure,
.wp-site-blocks > header .wp-block-image figure {
	margin: 0;
}

/* Footer logo on light background - no filter needed */

/* Hero split layout */
.hero-split {
	display: grid;
	grid-template-columns: 55% 45%;
	min-height: 85vh;
	overflow: hidden;
}
.hero-split > .wp-block-column:first-child {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 4rem 3rem;
}
.hero-split > .wp-block-column:last-child {
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background:
		radial-gradient(ellipse 80% 60% at 50% 55%, rgba(30,136,145,0.18) 0%, transparent 70%),
		radial-gradient(ellipse 50% 50% at 80% 40%, rgba(16,57,40,0.10) 0%, transparent 60%),
		radial-gradient(ellipse 60% 40% at 20% 70%, rgba(23,107,115,0.12) 0%, transparent 60%),
		linear-gradient(160deg, #FAF8F5 0%, #E2F1F2 30%, #D7EDF0 50%, #E5F0EC 70%, #FAF8F5 100%);
	position: relative;
}
.hero-split > .wp-block-column:last-child::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 80px;
	height: 100%;
	background: linear-gradient(to right, #FAF8F5, transparent);
	z-index: 3;
	pointer-events: none;
}
.hero-split > .wp-block-column:last-child::after {
	content: '';
	position: absolute;
	bottom: 8%;
	left: 50%;
	transform: translateX(-50%);
	width: 70%;
	height: 40px;
	background: radial-gradient(ellipse at center, rgba(0,0,0,0.10) 0%, transparent 70%);
	border-radius: 50%;
	filter: blur(10px);
	z-index: 1;
	pointer-events: none;
}
.hero-split > .wp-block-column:last-child img {
	width: 115%;
	max-width: none;
	height: auto;
	object-fit: contain;
	margin-left: -8%;
	position: relative;
	z-index: 2;
	filter: drop-shadow(0 8px 24px rgba(30,136,145,0.15)) drop-shadow(0 2px 8px rgba(0,0,0,0.08));
}

/* Hero badge */
.hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background-color: #EAF4F5;
	border: 1px solid rgba(30, 136, 145, 0.15);
	border-radius: 100px;
	padding: 6px 16px;
	width: fit-content;
}
.hero-badge::before {
	content: '';
	width: 8px;
	height: 8px;
	background-color: #1E8891;
	border-radius: 50%;
	flex-shrink: 0;
}

/* Trust stars row */
.trust-stars svg {
	width: 18px;
	height: 18px;
	fill: #F59E0B;
	vertical-align: middle;
}
.trust-row {
	display: flex;
	align-items: center;
	gap: 1rem;
	flex-wrap: wrap;
}

/* Location tag floating card */
.location-tag {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	background: #FFFFFF;
	border: 1px solid #E5E0D8;
	border-radius: 12px;
	padding: 12px 18px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.location-tag-icon {
	width: 32px;
	height: 32px;
	background-color: #EAF4F5;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.location-tag-icon svg {
	width: 18px;
	height: 18px;
	color: #1E8891;
}

/* Section divider line */
.section-divider {
	width: 60px;
	height: 3px;
	background-color: #1E8891;
	border: none;
	border-radius: 2px;
}

/* Teal icon circles for feature cards */
.feature-icon-circle {
	width: 56px;
	height: 56px;
	background-color: #EAF4F5;
	border: 1px solid rgba(30, 136, 145, 0.12);
	border-radius: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.feature-icon-circle svg {
	width: 26px;
	height: 26px;
	stroke: #1E8891;
	fill: none;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* Class cards hover */
.class-card {
	border: 1px solid #E5E0D8;
	border-radius: 14px;
	padding: 2rem;
	background: #FFFFFF;
	transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.class-card:hover {
	box-shadow: 0 8px 30px rgba(30, 136, 145, 0.1);
	transform: translateY(-2px);
}
.class-badge {
	display: inline-block;
	font-family: 'Montserrat', 'Trebuchet MS', Helvetica, sans-serif;
	font-weight: 700;
	font-size: 13px;
	background-color: #1E8891;
	color: #FFFFFF;
	border-radius: 8px;
	padding: 6px 14px;
	letter-spacing: 0.04em;
}

/* Smooth fade-in animation */
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(24px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}
.fade-in-up {
	animation: fadeInUp 0.7s ease both;
}

/* WhatsApp CTA button icon alignment */
.wp-block-button.whatsapp-cta .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.wp-block-button.whatsapp-cta .wp-block-button__link svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
	flex-shrink: 0;
	vertical-align: middle;
}
.wp-block-button.whatsapp-cta .wp-block-button__link:hover {
	background-color: #0D2E20 !important;
}

/* Smaller WhatsApp icon in header nav */
.site-header .wp-block-button.whatsapp-cta .wp-block-button__link svg,
.wp-site-blocks > header .wp-block-button.whatsapp-cta .wp-block-button__link svg {
	width: 15px;
	height: 15px;
}

/* WhatsApp CTA on teal background – icon inherits accent-teal text color */
.has-accent-teal-background-color .wp-block-button.whatsapp-cta .wp-block-button__link {
	color: var(--wp--preset--color--accent-teal);
}
.has-accent-teal-background-color .wp-block-button.whatsapp-cta .wp-block-button__link svg {
	fill: var(--wp--preset--color--accent-teal);
}
.has-accent-teal-background-color .wp-block-button.whatsapp-cta .wp-block-button__link:hover {
	background-color: #F0F0F0 !important;
}

/* Klassen overview page styles */
.klassen-detail-card {
	border: 1px solid #E5E0D8;
	border-radius: 16px;
	overflow: hidden;
	background: #FFFFFF;
	transition: box-shadow 0.3s ease;
}
.klassen-detail-card:hover {
	box-shadow: 0 8px 30px rgba(30, 136, 145, 0.08);
}
.klassen-hero-badge {
	display: inline-block;
	font-family: 'Montserrat', 'Trebuchet MS', Helvetica, sans-serif;
	font-weight: 800;
	font-size: 1rem;
	background-color: #1E8891;
	color: #FFFFFF;
	border-radius: 10px;
	padding: 8px 20px;
	letter-spacing: 0.04em;
}

/* Nav link underline effect via custom CSS class */
.nav-underline-effect a:not(.wp-element-button) {
	position: relative;
	padding-bottom: 2px;
}
.nav-underline-effect a:not(.wp-element-button)::after {
	content: '';
	position: absolute;
	bottom: -2px;
	left: 0;
	width: 0;
	height: 2px;
	background-color: #1E8891;
	border-radius: 1px;
	transition: width 0.3s ease;
}
.nav-underline-effect a:not(.wp-element-button):hover::after {
	width: 100%;
}

/* Responsive hero */
@media (max-width: 900px) {
	.hero-split {
		grid-template-columns: 1fr;
		min-height: auto;
	}
	.hero-split > .wp-block-column:first-child {
		padding: 3rem 1.5rem 2rem;
		order: 1;
	}
	.hero-split > .wp-block-column:last-child {
		order: 2;
		min-height: 320px;
	}
	.hero-split > .wp-block-column:last-child::before {
		display: none;
	}
	.hero-split > .wp-block-column:last-child img {
		width: 100%;
		margin-left: 0;
	}
}

@media (max-width: 480px) {
	.hero-split > .wp-block-column:first-child {
		padding: 2rem 1rem;
	}
}