/* Frontend Styling - Fietsend naar je werk */

/* Alfabet Font Faces */
@font-face {
	font-family: 'Alfabet';
	src: url('Alfabet_Regular.otf') format('opentype');
	font-weight: 400;
	font-style: normal;
}

@font-face {
	font-family: 'Alfabet';
	src: url('Alfabet_Medium.otf') format('opentype');
	font-weight: 500;
	font-style: normal;
}

@font-face {
	font-family: 'Alfabet';
	src: url('Alfabet_SemiBold.otf') format('opentype');
	font-weight: 600;
	font-style: normal;
}

@font-face {
	font-family: 'Alfabet';
	src: url('Alfabet_Bold.otf') format('opentype');
	font-weight: 700;
	font-style: normal;
}

@font-face {
	font-family: 'Alfabet';
	src: url('Alfabet_ExtraBold.otf') format('opentype');
	font-weight: 800;
	font-style: normal;
}

@font-face {
	font-family: 'Alfabet';
	src: url('Alfabet_Black.otf') format('opentype');
	font-weight: 900;
	font-style: normal;
}

:root {
	--primary: #83bc37;
	--primary-dark: #6fa02e;
	--primary-light: #a5d662;
	--secondary: #83bc37;
	--accent: #6fa02e;
	--dark: #2D3E1F;
	--text: #333333;
	--text-light: #6b7280;
	--light: #f9fafb;
	--border: #e5e7eb;
	--white: #ffffff;
	--grey-100: #F5F5F5;
	--grey-200: #E8E8E8;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: 'Alfabet', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	color: var(--text);
	background: white;
	overflow-x: hidden;
	line-height: 1.6;
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 30px;
}

/* Navigation */
.nav {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	background: transparent;
	transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.nav.scrolled {
	background: rgba(255,255,255,0.98);
	box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nav-container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 15px 30px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.nav-logo {
	display: flex;
	align-items: center;
	gap: 15px;
	text-decoration: none;
}

.nav-logo img {
	height: 200px;
	width: auto;
	content: url('logo_wit.svg');
	transition: height 0.3s ease;
}

.nav.scrolled .nav-logo img {
	content: url('logo_groen.svg');
	height: 100px;
}

.logo-text {
	display: none;
}

.nav-menu {
	display: flex;
	gap: 35px;
	align-items: center;
}

.nav-link {
	text-decoration: none;
	color: white;
	font-weight: 300;
	font-size: 17px;
	transition: all 0.3s ease;
	position: relative;
}

.nav-link::after {
	content: '';
	position: absolute;
	bottom: -5px;
	left: 0;
	width: 0;
	height: 2px;
	background: var(--primary);
	transition: width 0.3s ease;
}

.nav-link:hover::after {
	width: 100%;
}

.nav-link:hover {
	color: var(--primary-light);
}

.nav.scrolled .nav-link {
	color: var(--text);
}

.nav.scrolled .nav-link:hover {
	color: var(--primary);
}

.nav.scrolled .logo-text {
	color: var(--dark);
}

.nav-cta {
	padding: 14px 60px;
	background: var(--primary);
	color: white;
	text-decoration: none;
	border-radius: 0;
	font-weight: 600;
	transition: all 0.3s ease;
	font-size: 17px;
	min-width: 180px;
	text-align: center;
}

.nav-cta:hover {
	background: var(--primary-dark);
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(166, 206, 57, 0.3);
}

.nav-toggle {
	display: none;
	flex-direction: column;
	gap: 5px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 5px;
}

.nav-toggle span {
	width: 25px;
	height: 3px;
	background: white;
	transition: all 0.3s ease;
	border-radius: 3px;
}

.nav.scrolled .nav-toggle span {
	background: var(--text);
}

/* Mobile Menu */
.mobile-menu {
	position: fixed;
	top: 80px;
	left: 0;
	right: 0;
	background: white;
	z-index: 999;
	display: flex;
	flex-direction: column;
	padding: 20px;
	box-shadow: 0 10px 40px rgba(0,0,0,0.1);
	transform: translateY(-100%);
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
}

.mobile-menu.active {
	transform: translateY(0);
	opacity: 1;
	visibility: visible;
}

.mobile-close {
	position: absolute;
	top: 15px;
	right: 20px;
	background: none;
	border: none;
	font-size: 24px;
	color: var(--text);
	cursor: pointer;
	padding: 5px;
	transition: all 0.3s ease;
	z-index: 1000;
}

.mobile-close:hover {
	color: var(--primary);
	transform: rotate(90deg);
}

.mobile-link {
	padding: 15px;
	text-decoration: none;
	color: var(--text);
	font-weight: 500;
	border-bottom: 1px solid var(--border);
	transition: all 0.3s ease;
}

.mobile-link:hover {
	color: var(--primary);
	padding-left: 25px;
}

.mobile-link.mobile-cta {
	background: var(--primary);
	color: white;
	font-weight: 600;
	text-align: center;
	margin-top: 15px;
	padding: 14px 60px;
	border-radius: 0;
	border: none;
}

.mobile-link.mobile-cta:hover {
	background: var(--primary-dark);
	padding-left: 60px;
}

/* Explanation Section */

.explanation-content h3 {
	font-size: clamp(20px, 3vw, 26px);
	font-weight: 400;
	margin-top: 30px;
	margin-bottom: 15px;
	color: var(--dark);
}

.explanation-content h3:first-child {
	margin-top: 0;
}

.explanation-content h3 strong {
	font-weight: 800;
}

.explanation-content p {
	font-size: 16px;
	line-height: 1.8;
	color: var(--text);
	margin-bottom: 15px;
}

.explanation-content h3.animate-in,
.explanation-content p.animate-in {
	opacity: 1 !important;
	transform: translateY(0) !important;
}

/* How it works Section */

.how-card {
	text-align: center;
	padding: 40px 30px;
	background: var(--light);
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	opacity: 0;
	transform: translateY(30px);
}

.how-card.animate-in {
	opacity: 1;
	transform: translateY(0);
}

.how-card:nth-child(1) { transition-delay: 0.1s; }
.how-card:nth-child(2) { transition-delay: 0.2s; }
.how-card:nth-child(3) { transition-delay: 0.3s; }

.how-card:hover {
	transform: translateY(-8px) scale(1.02);
	box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.how-card h3 {
	font-size: 22px;
	font-weight: 400;
	margin-bottom: 20px;
	color: var(--dark);
}

.how-card h3 strong {
	font-weight: 800;
}

.how-card p {
	font-size: 15px;
	line-height: 1.7;
	color: var(--text);
}

/* Hero Section */
.hero {
	min-height: 100vh;
	display: flex;
	align-items: flex-end;
	position: relative;
	padding: 0;
	overflow: hidden;
}

.hero-bg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
	background-image: url('hero_back.webp');
	background-size: cover;
	background-position: center;
}

.hero-bg::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0,0,0,0.3);
}

.hero-grid {
	display: flex;
	width: 100%;
	position: relative;
	z-index: 1;
}

.hero-content {
	flex: 1;
}

.hero-title {
	font-size: clamp(2rem, 4vw, 3.5rem);
	font-weight: 400;
	line-height: 1.1;
	margin-bottom: 1.5rem;
	color: var(--dark);
	letter-spacing: -0.02em;
}

.hero-title .highlight {
	color: #83bc37;
	font-weight: 800;
}

.hero-cta .btn {
	text-transform: lowercase;
}

.hero-widget {
	position: absolute;
	right: 6vw;
	bottom: 8vh;
	width: 40%;
	max-width: 580px;
	background: rgba(255, 255, 255, 0.85);
	padding: 3.5vh 3.5vw;
	display: flex;
	align-items: center;
	justify-content: flex-start;
}

.info-card {
	width: 100%;
	text-align: left;
}

.info-card h3 {
	font-size: 18px;
	font-weight: 600;
	margin-bottom: 15px;
	color: var(--dark);
}

.info-card p {
	font-size: 15px;
	line-height: 1.7;
	color: var(--text);
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 16px 36px;
	text-decoration: none;
	border-radius: 4px;
	font-weight: 600;
	font-size: 16px;
	transition: all 0.3s ease;
	border: none;
	cursor: pointer;
}

.btn-primary {
	background: var(--primary);
	color: white;
}

.btn-primary:hover {
	background: var(--primary-dark);
	transform: translateY(-3px);
	box-shadow: 0 8px 25px rgba(166, 206, 57, 0.3);
}

.btn-large {
	padding: 18px 42px;
	font-size: 17px;
}

.btn-right {
	text-align: right;
}

/* Sections */
section {
	padding: 100px 0;
}

/* Benefits Section */

.benefit-card {
	background: var(--grey-100);
	padding: 35px 25px;
	border-radius: 20px;
	text-align: center;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	border: 2px solid transparent;
	opacity: 0;
	transform: translateY(30px);
}

.benefit-card.animate-in {
	opacity: 1;
	transform: translateY(0);
}

.benefit-card:nth-child(1) { transition-delay: 0.1s; }
.benefit-card:nth-child(2) { transition-delay: 0.2s; }
.benefit-card:nth-child(3) { transition-delay: 0.3s; }
.benefit-card:nth-child(4) { transition-delay: 0.4s; }
.benefit-card:nth-child(5) { transition-delay: 0.5s; }

.benefit-card:hover {
	transform: translateY(-8px) scale(1.03);
	border-color: var(--primary);
	box-shadow: 0 15px 40px rgba(131, 188, 55, 0.2);
	background: white;
}

/* Footer */
.footer {
	background: var(--dark);
	color: white;
	padding: 60px 0 30px;
}

.footer-content {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 40px;
	margin-bottom: 40px;
}

.footer-section h3 {
	font-size: 24px;
	margin-bottom: 15px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.footer-section h4 {
	font-size: 18px;
	margin-bottom: 15px;
	color: var(--primary-light);
}

.footer-section p {
	color: rgba(255,255,255,0.7);
	line-height: 1.8;
	margin-bottom: 10px;
}

.footer-section a {
	color: rgba(255,255,255,0.7);
	text-decoration: none;
	transition: color 0.3s ease;
}

.footer-section a:hover {
	color: var(--primary);
}

.footer-logo {
	height: 120px;
	margin-bottom: 20px;
}

.social-links {
	display: flex;
	gap: 15px;
	margin-top: 15px;
}

.social-link {
	width: 45px;
	height: 45px;
	background: rgba(255,255,255,0.1);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	font-size: 20px;
	color: white;
	transition: all 0.3s ease;
}

.social-link:hover {
	background: var(--primary);
	transform: translateY(-3px);
}

.footer-bottom {
	padding-top: 30px;
	border-top: 1px solid rgba(255,255,255,0.1);
	text-align: center;
	color: rgba(255,255,255,0.6);
	font-size: 14px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

/* Lightbox */

.lightbox.active {
	display: flex;
}

/* Responsive */
@media (max-width: 968px) {
	.nav-menu {
			display: none;
	}

	.nav-cta {
			display: none;
	}

	.nav-toggle {
			display: flex;
	}

	.hero-grid {
			grid-template-columns: 1fr;
			gap: 50px;
	}

	.hero-content {
			text-align: center;
	}

	.footer-bottom {
			flex-direction: column;
			gap: 15px;
	}

	/* Info page mobile layout - stack hero content */

}

@media (max-width: 640px) {
	.nav-container {
			padding: 15px 20px;
	}

	.nav-logo img {
			height: 80px;
	}

	.nav.scrolled .nav-logo img {
			height: 60px;
	}

	section {
			padding: 3rem 0;
	}

	.container {
			padding: 0 1.25rem;
	}

	.benefit-card {
			padding: 30px 20px;
	}

	.hero-widget {
			position: static;
			width: 90%;
			max-width: none;
			margin: 0 auto;
			padding: 2rem 1.5rem;
			left: auto;
			right: auto;
	}

	.hero {
			align-items: center;
			padding: 6rem 0 2rem;
			flex-direction: column;
			justify-content: center;
	}

	.hero-grid {
			width: 100%;
			order: 1;
			display: flex;
			justify-content: center;
			align-items: center;
	}

	.btn {
			width: 100%;
	}

}

/* Page header navigation fix */
.page-header + * .nav,
body:not(.home) .nav {
	position: fixed;
	background: transparent;
}

body:not(.home) .nav.scrolled {
	background: rgba(255, 255, 255, 0.98);
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

body:not(.home) .nav .nav-link,
body:not(.home) .nav .logo-text {
	color: white;
}

body:not(.home) .nav .nav-logo img {
	content: url('logo_wit.svg');
}

body:not(.home) .nav.scrolled .nav-link,
body:not(.home) .nav.scrolled .logo-text {
	color: var(--text);
}

body:not(.home) .nav.scrolled .nav-logo img {
	content: url('logo_groen.svg');
}

body:not(.home) .nav .nav-link:hover {
	color: var(--primary-light);
}

body:not(.home) .nav.scrolled .nav-link:hover {
	color: var(--primary);
}

/* Contact Form */

.form-group {
	margin-bottom: 25px;
}

.form-group label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 8px;
	color: var(--dark);
}

.form-group input,
.form-group textarea {
	width: 100%;
	padding: 12px 16px;
	border: 2px solid var(--border);
	border-radius: 8px;
	font-size: 15px;
	font-family: 'Alfabet', sans-serif;
	transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
	outline: none;
	border-color: var(--primary);
}

.form-group textarea {
	resize: vertical;
}

/* Alert Messages */
.alert {
	padding: 20px 25px;
	border-radius: 12px;
	margin-bottom: 30px;
	display: flex;
	align-items: center;
	gap: 15px;
	font-size: 16px;
	line-height: 1.6;
}

.alert i {
	font-size: 24px;
	flex-shrink: 0;
}

.alert-error {
	background: #f8d7da;
	color: #721c24;
	border: 2px solid #f5c6cb;
}

/* Navigation active state */
.nav-link.active {
	color: var(--primary);
}

.nav-link.active::after {
	width: 100%;
}

/* FAQ Categories & Accordion */

.faq-item.active {
	background: white;
	box-shadow: 0 4px 15px rgba(131, 188, 55, 0.15);
}

.faq-item.active .faq-question {
	color: var(--primary);
}

.faq-item.active .faq-question i {
	transform: rotate(180deg);
}

.faq-item.active .faq-answer {
	max-height: 1000px;
	padding: 0 25px 25px 25px;
}

/* Footer Legal Links */
.footer-legal-links {
	margin-top: 15px;
	font-size: 14px;
}

.footer-legal-links a {
	color: rgba(255,255,255,0.7);
	text-decoration: none;
	transition: color 0.3s ease;
}

.footer-legal-links a:hover {
	color: white;
	text-decoration: underline;
}

.footer-legal-links .separator {
	margin: 0 10px;
	color: rgba(255,255,255,0.5);
}

@media (max-width: 640px) {
	.footer-legal-links {
			font-size: 12px;
	}

	.footer-legal-links .separator {
			margin: 0 5px;
	}
}

/* Inloghulp (login.html + /login/pw/1, /login/pw/2 en het herstelscherm uit de
   mail). Die schermen delen de witte .info-card van het inlogformulier; hier
   staat alleen wat de kaart extra nodig heeft voor lopende tekst en links. */
.info-card p {
	margin-bottom: 18px;
}

.info-card form {
	margin-top: 4px;
}

.info-card .btn {
	text-transform: lowercase;
}

.login-links {
	display: flex;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 6px 20px;
	margin-top: 16px;
	font-size: 14px;
}

.login-terug {
	margin-top: 18px;
	margin-bottom: 0;
	text-align: right;
	font-size: 14px;
}

.login-links a,
.login-terug a {
	color: var(--primary-dark);
	font-weight: 600;
	text-decoration: none;
}

.login-links a:hover,
.login-terug a:hover {
	text-decoration: underline;
}

/* De hulpschermen dragen meer tekst dan het inlogformulier. Daarom staat hun
   kaart niet vast onderaan de hero (die groeit dan omhoog en loopt op korte
   schermen achter de nav), maar gewoon in de flow, verticaal gecentreerd. */
@media (min-width: 969px) {
	body.loginhulp .hero {
		align-items: center;
		padding: 7rem 0 3rem;
	}

	body.loginhulp .hero-grid {
		align-items: center;
	}

	body.loginhulp .hero-widget {
		position: static;
		width: 44%;
		max-width: 580px;
		margin-right: 6vw;
		padding: 3rem 2.5rem;
	}
}
