/* ==========================================================================
   Modules - Schildersbedrijf J. Bastiaansen
   Component styling voor homepage en pagina's
   ========================================================================== */

.site-section--full-width {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

.site-section--full-width > .container {
	width: calc(100% - 3rem);
	max-width: none;
}

/* ---------- Content block (text + image) ---------- */
.content-block {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
	align-items: center;
}

.content-block--reverse .content-block__media { order: -1; }

.content-block__media img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 8px;
}

.content-block__body h2 { 
	margin-bottom: 1rem; 
	font-size: 1.875rem;
}

.content-block__body p { 
	color: var(--text-soft); 
	line-height: 1.6;
}

/* ---------- Text block ---------- */
.text-block {
	max-width: 800px;
}

.text-block--center {
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

/* ---------- USP / Waarom kiezen grid ---------- */
.usp-grid,
.features-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
}

.usp-card,
.feature-card {
	padding: 2rem;
	background: var(--bg-soft);
	border-radius: 8px;
}

.usp-card .hex-icon,
.feature-card .hex-icon,
.feature-icon {
	color: var(--accent);
	width: 32px;
	height: 32px;
	margin-bottom: 1rem;
}

.usp-card h3,
.feature-card h3 { 
	font-size: 1.125rem; 
	font-weight: 600; 
	margin: 0 0 0.5rem; 
}

.usp-card p,
.feature-card p { 
	margin: 0; 
	color: var(--text-soft); 
	font-size: 0.875rem; 
	line-height: 1.6;
}

/* ---------- Diensten grid ---------- */
.services-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.5rem;
}

.service-card {
	display: block;
	position: relative;
	aspect-ratio: 4 / 3;
	border-radius: 8px;
	overflow: hidden;
}

.service-card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 400ms ease;
}

.service-card:hover img {
	transform: scale(1.05);
}

.service-card__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 1.5rem;
	color: #ffffff;
}

.service-card__title {
	font-size: 1.25rem;
	font-weight: 600;
	margin-bottom: 0.5rem;
}

.service-card__desc {
	font-size: 0.875rem;
	opacity: 0.9;
	margin: 0;
}

/* ---------- Werkwijze / Steps grid ---------- */
.steps-grid,
.process-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.5rem;
	counter-reset: step;
}

.step-card,
.process-step {
	text-align: center;
}

.step-card::before,
.process-step::before {
	counter-increment: step;
	content: counter(step);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	margin: 0 auto 1rem;
	border-radius: 50%;
	background: var(--accent);
	color: #fff;
	font-size: 1.25rem;
	font-weight: 600;
}

.step-card h3,
.process-step h3 { 
	font-size: 1rem; 
	font-weight: 600; 
	margin: 0 0 0.5rem; 
}

.step-card p,
.process-step p { 
	margin: 0; 
	font-size: 0.875rem; 
	color: var(--text-soft);
	line-height: 1.6;
}

/* ---------- CTA panel ---------- */
.cta-panel {
	display: grid;
	grid-template-columns: 1fr 1fr;
	overflow: hidden;
	background: var(--bg-soft);
	border-radius: 8px;
}

.cta-panel img {
	width: 100%;
	height: 100%;
	min-height: 300px;
	object-fit: cover;
}

.cta-content {
	padding: 3rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 1.5rem;
}

.cta-content h2 {
	margin: 0;
	color: var(--text);
	font-size: 1.875rem;
	font-weight: 600;
}

.cta-content p { 
	margin: 0; 
	color: var(--text-soft); 
	font-size: 1rem; 
	line-height: 1.6; 
}

.cta-buttons { 
	display: flex; 
	flex-wrap: wrap; 
	gap: 1rem; 
}

/* ---------- About section ---------- */
.about-section {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
	align-items: center;
}

.about-image {
	position: relative;
}

.about-image img {
	width: 100%;
	border-radius: 8px;
}

.about-badge {
	position: absolute;
	bottom: -1.5rem;
	right: -1.5rem;
	background: var(--accent);
	color: #ffffff;
	padding: 1.5rem;
	border-radius: 8px;
	text-align: center;
}

.about-badge span {
	display: block;
	font-size: 2rem;
	font-weight: 600;
	line-height: 1;
}

.about-badge small {
	font-size: 0.75rem;
}

.about-content h2 {
	font-size: 1.875rem;
	margin-bottom: 1.5rem;
}

.about-content p {
	color: var(--text-soft);
	margin-bottom: 1.5rem;
	line-height: 1.6;
}

.about-list {
	list-style: none;
	padding: 0;
	margin: 0 0 2rem;
	display: grid;
	gap: 0.75rem;
}

.about-list li {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	color: var(--text);
}

.about-list .hex-icon {
	color: var(--accent);
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

/* ---------- Trust strip ---------- */
.trust-section {
	padding: 3rem 0;
	background: var(--bg-soft);
}

.trust-strip {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 2rem;
}

.trust-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 0.5rem;
}

.trust-item .hex-icon {
	width: 32px;
	height: 32px;
	color: var(--accent);
}

.trust-item span {
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--text);
}

/* ---------- Tabs ---------- */
.tab-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem;
	margin: 0 0 1.5rem;
	padding: 0;
	list-style: none;
	border-bottom: 1px solid var(--border);
}

.tab-btn {
	appearance: none;
	border: 0;
	background: transparent;
	color: var(--text-muted);
	font-size: 0.875rem;
	font-weight: 500;
	padding: 1rem 1.25rem;
	margin-bottom: -1px;
	border-bottom: 2px solid transparent;
	cursor: pointer;
	transition: color 200ms ease, border-color 200ms ease;
}

.tab-btn:hover { color: var(--text); }

.tab-btn[aria-selected="true"] {
	color: var(--accent);
	border-bottom-color: var(--accent);
}

.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

/* ---------- Responsive modules ---------- */
@media (max-width: 1020px) {
	.content-block,
	.cta-panel,
	.about-section { 
		grid-template-columns: 1fr; 
		gap: 2rem;
	}
	
	.content-block--reverse .content-block__media { order: 0; }
	
	.trust-strip,
	.usp-grid,
	.features-grid,
	.services-grid { 
		grid-template-columns: 1fr 1fr; 
	}
	
	.steps-grid,
	.process-grid { 
		grid-template-columns: 1fr 1fr; 
	}
	
	.about-badge {
		bottom: 1rem;
		right: 1rem;
	}
}

@media (max-width: 720px) {
	.trust-strip,
	.usp-grid,
	.features-grid,
	.steps-grid,
	.process-grid { 
		grid-template-columns: 1fr; 
	}
	
	.services-grid {
		grid-template-columns: 1fr;
	}
	
	.cta-content { padding: 1.5rem; }
	.tab-btn { padding: 0.75rem; font-size: 0.8125rem; }

	.site-section--full-width > .container {
		width: calc(100% - 2rem);
	}
	
	.about-badge {
		position: relative;
		bottom: auto;
		right: auto;
		display: inline-block;
		margin-top: 1rem;
	}
}
