/* ==========================================================================
   Rijschool De Brug – Friendly & modern
   ========================================================================== */

:root {
	--bg: #f8fafc;
	--bg-warm: #f1f5f9;
	--surface: #fff;
	--text: #1e293b;
	--text-soft: #64748b;
	--accent: #1e40af;
	--accent-hover: #1e3a8a;
	--accent-soft: #dbeafe;
	--green: #1e40af;
	--green-soft: #dbeafe;
	--radius: 0;
	--radius-big: 0;
	--font: 'Plus Jakarta Sans', system-ui, sans-serif;
	--font-head: 'Fredoka', system-ui, sans-serif;
	--space-xs: 0.25rem;
	--space: 1rem;
	--space-lg: 1.5rem;
	--space-xl: 2rem;
	--space-2xl: 3rem;
	--space-3xl: 4rem;
	--header-h: 64px;
	--shadow: none;
	--shadow-hover: none;
}

*, *::before, *::after { box-sizing: border-box; }

html {
	scroll-behavior: smooth;
	scroll-padding-top: var(--header-h);
	overflow-x: hidden;
}

body {
	margin: 0;
	overflow-x: hidden;
	font-family: var(--font);
	font-size: 1rem;
	line-height: 1.65;
	color: var(--text);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	-webkit-tap-highlight-color: transparent;
}

img { max-width: 100%; height: auto; display: block; }

a {
	color: var(--accent);
	text-decoration: none;
	transition: color 0.2s;
}

a:hover { color: var(--accent-hover); }

a:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
}

ul { margin: 0; padding: 0; list-style: none; }

.wrap {
	width: 100%;
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 var(--space);
}

@media (min-width: 600px) {
	.wrap { padding: 0 var(--space-lg); }
}

/* Header
   ========================================================================== */

.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	height: var(--header-h);
	min-height: 48px;
	padding-left: env(safe-area-inset-left);
	padding-right: env(safe-area-inset-right);
	background: var(--surface);
	box-shadow: var(--shadow);
}

.site-header .wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 100%;
}

.logo {
	display: inline-flex;
	align-items: center;
	gap: var(--space-sm);
	font-family: 'Oswald', var(--font-head), system-ui, sans-serif;
	font-weight: 700;
	font-size: 1.4rem;
	color: var(--accent);
	letter-spacing: 0.02em;
}

.logo:hover {
	color: var(--accent-hover);
}

.logo img {
	height: 32px;
	width: auto;
	display: block;
	background: transparent;
}

.logo__text {
	display: inline-block;
}

.menu-btn {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 6px;
	width: 48px;
	height: 48px;
	padding: 0;
	border: none;
	background: transparent;
	cursor: pointer;
}

.menu-btn span {
	display: block;
	width: 24px;
	height: 3px;
	background: var(--text);
	border-radius: var(--radius);
	transition: transform 0.25s, opacity 0.25s;
}

.site-header.is-open .menu-btn span:nth-child(1) {
	transform: translateY(9px) rotate(45deg);
}

.site-header.is-open .menu-btn span:nth-child(2) { opacity: 0; }

.site-header.is-open .menu-btn span:nth-child(3) {
	transform: translateY(-9px) rotate(-45deg);
}

.nav {
	position: fixed;
	inset: 0;
	top: var(--header-h);
	background: var(--bg-warm);
	display: flex;
	flex-direction: column;
	gap: var(--space);
	padding: var(--space-xl);
	visibility: hidden;
	opacity: 0;
	transition: visibility 0.3s, opacity 0.3s;
}

.site-header.is-open .nav {
	visibility: visible;
	opacity: 1;
}

.nav a {
	display: flex;
	align-items: center;
	padding: var(--space-lg) var(--space);
	min-height: 48px;
	font-weight: 500;
	color: var(--text);
	border-radius: var(--radius);
}

.nav a:hover {
	background: var(--accent-soft);
	color: var(--accent);
}

.nav-cta {
	background: var(--accent);
	color: #fff !important;
	text-align: center;
	margin-top: auto;
}

.nav-cta:hover {
	background: var(--accent-hover);
	color: #fff !important;
}

@media (min-width: 768px) {
	.menu-btn { display: none; }

	.nav {
		position: static;
		flex-direction: row;
		align-items: center;
		gap: var(--space-xs);
		padding: 0;
		visibility: visible;
		opacity: 1;
		background: transparent;
	}

	.nav a {
		padding: var(--space-xs) var(--space);
	}

	.nav-cta {
		margin-top: 0;
		padding: var(--space-xs) var(--space-lg) !important;
	}
}

/* Hero
   ========================================================================== */

.hero {
	position: relative;
	padding: calc(var(--header-h) + var(--space-xl)) var(--space) var(--space-2xl);
	padding-left: max(var(--space), env(safe-area-inset-left));
	padding-right: max(var(--space), env(safe-area-inset-right));
	background: linear-gradient(135deg, var(--accent-soft) 0%, var(--green-soft) 100%);
	overflow: hidden;
}

@media (min-width: 600px) {
	.hero {
		padding: calc(var(--header-h) + var(--space-3xl)) var(--space-lg) var(--space-3xl);
	}
}

.hero__bg {
	position: absolute;
	inset: 0;
	opacity: 0.4;
	background: radial-gradient(circle at 80% 20%, var(--accent) 0%, transparent 50%);
}

.hero__wrap {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: var(--space-xl);
	align-items: center;
	text-align: center;
}

.hero__title {
	font-family: var(--font-head);
	font-size: clamp(1.75rem, 5vw, 3rem);
	font-weight: 700;
	margin: 0;
	color: var(--text);
	line-height: 1.2;
}

.hero__tagline {
	margin: 0;
	max-width: 42ch;
	color: var(--text-soft);
	font-size: clamp(1rem, 2.5vw, 1.1rem);
	line-height: 1.5;
}

.btn--hero {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space);
	min-height: 48px;
	padding: var(--space) var(--space-xl);
	background: var(--accent);
	color: #fff;
	font-weight: 600;
	font-size: 1.05rem;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	transition: transform 0.2s, box-shadow 0.2s;
	width: 100%;
	max-width: 320px;
}

.btn--hero:hover {
	color: #fff;
	transform: translateY(-2px);
	box-shadow: var(--shadow-hover);
}

.hero__visual {
	width: 100%;
	max-width: 360px;
}

.hero__car-frame {
	position: relative;
	border-radius: var(--radius-big);
	overflow: hidden;
	box-shadow: none;
}

.hero__car-frame img {
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	display: block;
}

.hero__car-label {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: var(--space-sm) var(--space);
	background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
	color: #fff;
	font-size: 0.9rem;
	font-weight: 600;
}

.hero__curve {
	position: absolute;
	bottom: -1px;
	left: 0;
	right: 0;
	height: 40px;
	background: var(--bg);
	border-radius: var(--radius-big) var(--radius-big) 0 0;
}

@media (min-width: 600px) {
	.hero__curve { height: 48px; }

	.btn--hero { width: auto; max-width: none; }
}

@media (min-width: 768px) {
	.hero__wrap {
		flex-direction: row;
		text-align: left;
		justify-content: space-between;
		gap: var(--space-2xl);
	}

	.hero__content { flex: 1; }

	.hero__visual {
		flex: 0 0 340px;
		max-width: none;
	}
}

/* Blocks
   ========================================================================== */

.block {
	padding: var(--space-2xl) 0;
}

.block__title {
	font-family: var(--font-head);
	font-size: clamp(1.35rem, 4vw, 1.75rem);
	font-weight: 700;
	margin: 0 0 var(--space-lg);
	text-align: center;
	color: var(--text);
}

@media (min-width: 600px) {
	.block { padding: var(--space-3xl) 0; }

	.block__title { margin-bottom: var(--space-xl); }
}

.block__note {
	text-align: center;
	margin: var(--space-xl) 0 0;
	font-size: 0.9rem;
	color: var(--text-soft);
}

/* About
   ========================================================================== */

.block--about { padding-top: var(--space-xl); }

.about-layout {
	display: flex;
	flex-direction: column;
	gap: var(--space-xl);
}

.about-card {
	background: var(--surface);
	border-radius: var(--radius-big);
	padding: var(--space-lg);
	box-shadow: var(--shadow);
	max-width: 640px;
	margin: 0 auto;
}

.about-img {
	border-radius: var(--radius-big);
	overflow: hidden;
	box-shadow: var(--shadow);
}

.about-img img {
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

@media (min-width: 600px) {
	.about-card { padding: var(--space-xl); }
}

@media (min-width: 768px) {
	.about-layout {
		flex-direction: row;
		align-items: center;
		gap: var(--space-2xl);
		max-width: 900px;
		margin: 0 auto;
	}

	.about-card { flex: 1; }

	.about-img { flex: 0 0 380px; }
}

.about-card__title {
	font-family: var(--font-head);
	font-size: 1.35rem;
	font-weight: 600;
	margin: 0 0 var(--space);
	color: var(--text);
}

.about-card__text {
	margin: 0;
	color: var(--text-soft);
}

/* Image strip (full-width)
   ========================================================================== */

.img-strip {
	position: relative;
	height: 200px;
	overflow: hidden;
}

.img-strip img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.img-strip__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.35);
	display: flex;
	align-items: center;
	justify-content: center;
}

.img-strip__text {
	color: #fff;
	font-family: var(--font-head);
	font-size: 1.25rem;
	font-weight: 600;
	text-shadow: none;
}

@media (min-width: 600px) {
	.img-strip { height: 260px; }

	.img-strip__text { font-size: 1.5rem; }
}

/* Bento: Pakket + quick price
   ========================================================================== */

.block--pakket-prijzen { background: var(--bg-warm); }

.bento {
	display: grid;
	gap: var(--space-xl);
}

.bento__main { }

.bento__side { }

@media (min-width: 768px) {
	.bento {
		grid-template-columns: 1fr 320px;
		align-items: start;
	}
}

.pakket-card {
	position: relative;
	background: var(--surface);
	border-radius: var(--radius-big);
	padding: var(--space-lg);
	box-shadow: var(--shadow);
	text-align: center;
}

@media (min-width: 600px) {
	.pakket-card { padding: var(--space-xl); }
}

.pakket-card__badge {
	position: absolute;
	top: var(--space);
	right: var(--space);
	padding: 4px 12px;
	background: var(--green);
	color: #fff;
	font-size: 0.8rem;
	font-weight: 600;
	border-radius: var(--radius);
}

.pakket-card__name {
	font-family: var(--font-head);
	font-size: 1.5rem;
	font-weight: 700;
	margin: 0 0 var(--space);
	color: var(--text);
}

.pakket-card__list {
	margin: 0 0 var(--space);
	padding-left: 1.25rem;
	text-align: left;
	list-style: disc;
}

.pakket-card__list li {
	display: list-item;
	margin-bottom: var(--space-xs);
	color: var(--text-soft);
}

.pakket-card__list li::marker { color: var(--accent); }

.pakket-card__price {
	font-family: var(--font-head);
	font-size: 1.75rem;
	font-weight: 700;
	color: var(--accent);
	margin: 0;
}

.pakket-card__asterisk { font-size: 0.9em; }

.pakket-card__note {
	margin: var(--space) 0 0;
	font-size: 0.85rem;
	color: var(--text-soft);
}

.quick-price {
	background: var(--surface);
	border-radius: var(--radius-big);
	padding: var(--space-lg);
	box-shadow: var(--shadow);
}

@media (min-width: 600px) {
	.quick-price { padding: var(--space-xl); }
}

.quick-price__title {
	font-family: var(--font-head);
	font-size: 1.1rem;
	font-weight: 600;
	margin: 0 0 var(--space);
	color: var(--text);
}

.quick-price__list {
	display: flex;
	flex-direction: column;
	gap: var(--space-xs);
}

.quick-price__list li {
	display: flex;
	justify-content: space-between;
	padding: var(--space-xs) 0;
	border-bottom: 1px solid var(--bg-warm);
	font-size: 0.95rem;
	color: var(--text-soft);
}

.quick-price__list li span:last-child { font-weight: 600; color: var(--text); }

.quick-price__link {
	display: block;
	margin-top: var(--space);
	font-weight: 600;
	font-size: 0.9rem;
}

/* Auto
   ========================================================================== */

.auto-layout {
	display: flex;
	flex-direction: column;
	gap: var(--space-xl);
}

.auto-gallery {
	display: grid;
	gap: var(--space);
	grid-template-columns: 1fr 1fr;
	grid-template-rows: auto auto;
}

.auto-gallery__a {
	grid-column: 1 / -1;
}

.auto-gallery__a img,
.auto-gallery__b img,
.auto-gallery__c img {
	width: 100%;
	border-radius: var(--radius);
	object-fit: cover;
}

.auto-gallery__a img {
	min-height: 200px;
	height: 200px;
	object-position: center;
}

.auto-gallery__b img {
	min-height: 120px;
	height: 120px;
	object-fit: cover;
}

.auto-gallery__c img {
	min-height: 160px;
	height: 160px;
	object-position: center;
}

@media (min-width: 480px) {
	.auto-gallery__a img { height: 240px; min-height: 240px; }

	.auto-gallery__b img { height: 140px; min-height: 140px; }

	.auto-gallery__c img { height: 180px; min-height: 180px; }
}

.auto-content__title {
	font-family: var(--font-head);
	font-size: clamp(1.2rem, 3vw, 1.35rem);
	font-weight: 600;
	margin: 0 0 var(--space);
	color: var(--text);
}

.auto-content p { margin: 0 0 var(--space); color: var(--text-soft); font-size: 1rem; }

@media (min-width: 768px) {
	.auto-layout {
		display: grid;
		grid-template-columns: 1.2fr 1fr;
		align-items: start;
		gap: var(--space-2xl);
	}

	.auto-gallery {
		grid-template-columns: 1fr 1fr;
		grid-template-rows: 200px 160px;
	}

	.auto-gallery__a { grid-column: 1; grid-row: 1 / -1; }

	.auto-gallery__a img { height: 100%; min-height: 360px; }

	.auto-gallery__b img,
	.auto-gallery__c img { height: 100%; }
}

/* Prijzen
   ========================================================================== */

.block--prijzen { background: var(--bg-warm); }

.prijzen-intro {
	text-align: center;
	margin: 0 0 var(--space-xl);
	color: var(--text-soft);
	font-size: 1.05rem;
	max-width: 36ch;
	margin-left: auto;
	margin-right: auto;
}

.prijzen-cards {
	display: grid;
	gap: var(--space-xl);
}

.prijzen-card {
	background: var(--surface);
	border-radius: var(--radius-big);
	padding: var(--space-xl);
	box-shadow: var(--shadow);
	border-top: 4px solid var(--accent);
}

.prijzen-card--examens { border-top-color: var(--green); }

.prijzen-card__header {
	margin-bottom: var(--space-lg);
	padding-bottom: var(--space);
	border-bottom: 1px solid var(--bg-warm);
}

.prijzen-card__title {
	font-family: var(--font-head);
	font-size: 1.2rem;
	font-weight: 600;
	margin: 0;
	color: var(--text);
}

.prijzen-card__list {
	display: flex;
	flex-direction: column;
	gap: var(--space-sm);
	margin: 0;
	padding: 0;
	list-style: none;
}

.prijzen-card__list li {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--space);
	padding: var(--space-sm) 0;
	border-bottom: 1px solid var(--bg-warm);
	font-size: 1rem;
}

.prijzen-card__list li:last-child { border-bottom: none; }

.prijzen-card__label {
	color: var(--text-soft);
	flex: 1;
}

.prijzen-card__price {
	font-weight: 600;
	color: var(--accent);
	white-space: nowrap;
}

.prijzen-card--examens .prijzen-card__price { color: var(--green); }

.prijzen-validity {
	text-align: center;
	margin-top: var(--space-xl);
}

.prijzen-validity__badge {
	display: inline-block;
	padding: var(--space-xs) var(--space-lg);
	background: var(--surface);
	color: var(--text-soft);
	font-size: 0.9rem;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

@media (min-width: 600px) {
	.prijzen-cards {
		grid-template-columns: 1fr 1fr;
		align-items: start;
	}
}

/* Theorie
   ========================================================================== */

.block--theorie { background: var(--bg-warm); }

.theorie-card {
	display: flex;
	flex-direction: column;
	gap: var(--space-xl);
	background: var(--surface);
	border-radius: var(--radius-big);
	padding: var(--space-lg);
	box-shadow: var(--shadow);
	max-width: 640px;
	margin: 0 auto;
}

@media (min-width: 600px) {
	.theorie-card { padding: var(--space-xl); }
}

.theorie-card__title {
	font-family: var(--font-head);
	font-size: 1.35rem;
	font-weight: 600;
	margin: 0 0 var(--space);
	color: var(--text);
}

.theorie-card__text p { margin: 0 0 var(--space); color: var(--text-soft); }

.theorie-card__img {
	text-align: center;
}

.theorie-card__img img { margin: 0 auto; }

@media (min-width: 600px) {
	.theorie-card {
		flex-direction: row;
		align-items: center;
		max-width: none;
	}

	.theorie-card__text { flex: 1; }

	.theorie-card__img { flex: 0 0 160px; }
}

/* Kandidaten
   ========================================================================== */

.kandidaten-intro {
	text-align: center;
	margin: 0 0 var(--space-xl);
	color: var(--text-soft);
}

.kandidaten-grid {
	display: grid;
	gap: var(--space-xl);
}

.kandidaten-img img {
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	display: block;
}

@media (min-width: 600px) {
	.kandidaten-grid {
		grid-template-columns: 1fr 1fr;
	}
}

/* Contact
   ========================================================================== */

.block--contact {
	position: relative;
	background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
	color: #fff;
	overflow: hidden;
}

.contact__bg {
	position: absolute;
	inset: 0;
	background: url("https://images.unsplash.com/photo-1502877338535-766e1452684a?w=1200&q=60") center / cover no-repeat;
	opacity: 0.12;
	pointer-events: none;
}

.contact__wrap {
	position: relative;
	z-index: 1;
}

.contact__title {
	font-family: var(--font-head);
	font-size: 1.75rem;
	font-weight: 700;
	margin: 0 0 var(--space);
	text-align: center;
	color: #fff;
}

.contact__intro {
	text-align: center;
	margin: 0 0 var(--space-xl);
	opacity: 0.95;
}

.contact-buttons {
	display: flex;
	flex-direction: column;
	gap: var(--space);
	align-items: stretch;
	width: 100%;
	max-width: 400px;
	margin: 0 auto;
}

.btn--call,
.btn--mail {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	width: 100%;
	min-height: 56px;
	padding: var(--space-lg) var(--space);
	border-radius: var(--radius-big);
	font-weight: 600;
	text-align: center;
	transition: transform 0.2s, box-shadow 0.2s;
}

.btn--call {
	background: #fff;
	color: var(--accent);
}

.btn--mail {
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
	border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn--call:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow-hover);
	color: var(--accent-hover);
}

.btn--mail:hover {
	background: rgba(255, 255, 255, 0.25);
	color: #fff;
	border-color: #fff;
}

.btn__main { display: block; font-size: 1.05rem; }

.btn__sub {
	display: block;
	font-size: 0.85rem;
	opacity: 0.9;
	font-weight: 500;
}

@media (min-width: 600px) {
	.contact-buttons {
		flex-direction: row;
		justify-content: center;
		max-width: none;
		align-items: stretch;
	}

	.btn--call,
	.btn--mail {
		width: auto;
		min-width: 220px;
		flex-direction: column;
		text-align: center;
	}
}

/* Footer
   ========================================================================== */

.site-footer {
	padding: var(--space-lg) 0;
	background: var(--text);
	color: rgba(255, 255, 255, 0.8);
	font-size: 0.9rem;
}

.site-footer .wrap {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	gap: var(--space);
}

@media (min-width: 480px) {
	.site-footer .wrap {
		flex-direction: row;
		justify-content: space-between;
		text-align: left;
	}
}

@media (min-width: 600px) {
	.site-footer { padding: var(--space-xl) 0; }
}

.site-footer a { color: #fff; }

.site-footer a:hover { text-decoration: underline; }

.site-footer__top {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	border-radius: var(--radius);
	transition: background 0.2s;
}

.site-footer__top:hover {
	background: rgba(255, 255, 255, 0.25);
	color: #fff;
}
