/* Terra-Watt Content – projecten & nieuws. Sluit aan op de Elementor-kit (Gilroy, #8A1522). */
.twc, .twc-wrap {
	--twc-primary: var(--e-global-color-primary, #8A1522);
	--twc-primary-dark: #6E111B;
	--twc-accent: var(--e-global-color-secondary, #FF4545);
	--twc-text: #333;
	--twc-bg: #F5F5F5;
	font-family: inherit;
	color: var(--twc-text);
}
.twc { padding: 90px 0 0; }
.twc-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; }
.twc-wrap--narrow { max-width: 900px; }

/* Knoppen – zoals de bestaande Elementor-knoppen (bordeaux, vierkant) */
.twc-btn {
	display: inline-block; padding: 12px 24px; background: var(--twc-primary); color: #fff !important;
	font-weight: 500; line-height: 1.2; text-decoration: none; border-radius: 0; transition: background .2s, transform .2s;
}
.twc-btn:hover { background: var(--twc-primary-dark); }
.twc-btn--back::before { content: "‹"; margin-right: 10px; font-size: 1.2em; line-height: 1; }
.twc-btn--light { background: #fff; color: var(--twc-primary) !important; flex: 0 0 auto; }
.twc-btn--light:hover { background: var(--twc-bg); }

/* Kop */
.twc-head { margin: 40px 0 30px; }
.twc-head__title, .twc-blog__title { margin: 0 0 10px; font-size: clamp(28px, 5vw, 52px); overflow-wrap: anywhere; font-weight: 300; line-height: 1.15; color: var(--twc-primary); }
.twc-head__meta { margin: 0 0 4px; color: var(--twc-primary); font-size: 18px; }
.twc-head__type { margin: 0; font-size: 18px; }
.twc-hero-img { margin: 0 auto 40px; }
.twc-hero-img img { display: block; width: 100%; height: auto; max-height: 640px; object-fit: cover; }

/* Tekst */
.twc-prose { font-size: 18px; line-height: 1.7; margin-bottom: 60px; }
.twc-prose h2, .twc-prose h3 { color: var(--twc-primary); font-weight: 500; margin: 1.6em 0 .5em; line-height: 1.25; }
.twc-prose p { margin: 0 0 1.2em; }
.twc-prose a { color: var(--twc-primary); text-decoration: underline; }
.twc-prose img { max-width: 100%; height: auto; }
.twc-prose ul, .twc-prose ol { margin: 0 0 1.2em 1.2em; }

.twc-section-title { margin: 0 0 24px; font-size: clamp(24px, 3vw, 32px); font-weight: 500; color: var(--twc-primary); }

/* Kaartenraster */
.twc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.twc-card { display: flex; flex-direction: column; text-decoration: none; color: var(--twc-text); background: #fff; transition: transform .25s, box-shadow .25s; }
.twc-card, .twc-card:hover, .twc-card span { text-decoration: none !important; }
.twc-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0, 0, 0, .12); }
.twc-card__media { display: block; aspect-ratio: 4 / 3; background: #e4e4e4; overflow: hidden; }
.twc-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.twc-card:hover .twc-card__media img { transform: scale(1.04); }
.twc-card__body { display: flex; flex-direction: column; gap: 6px; padding: 22px 24px 26px; flex: 1; }
.twc-card__title { font-size: 22px; font-weight: 500; line-height: 1.25; color: var(--twc-text); }
.twc-card__meta { color: var(--twc-primary); font-size: 15px; }
.twc-card__text { font-size: 16px; line-height: 1.5; color: var(--twc-text); }
.twc-card__more { margin-top: auto; padding-top: 14px; color: var(--twc-primary); font-weight: 500; }
.twc-card__more::after { content: " →"; }
.twc-empty { padding: 40px 0; font-size: 18px; }

/* Overzicht projecten (in Elementor-pagina) */
.elementor .twc-wrap { padding-bottom: 20px; }

/* Galerij */
.twc-gallery { margin-bottom: 70px; }
.twc-gallery__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.twc-gallery__item { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #e4e4e4; }
.twc-gallery__item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.twc-gallery__item:hover img { transform: scale(1.05); }

.twc-related { margin-bottom: 80px; }

/* Blog-overzicht */
.twc-blog__hero { margin-bottom: 50px; }
.twc-blog__intro { max-width: 700px; font-size: 20px; line-height: 1.6; }
.twc-pagination { margin: 50px 0 20px; }
.twc-pagination ul { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.twc-pagination a, .twc-pagination span { display: block; min-width: 42px; padding: 10px 14px; text-align: center; background: #fff; color: var(--twc-text); text-decoration: none; }
.twc-pagination .current, .twc-pagination a:hover { background: var(--twc-primary); color: #fff; }

/* CTA-band */
.twc-cta { background: var(--twc-primary); color: #fff; margin-top: 20px; }
.twc-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-top: 56px; padding-bottom: 56px; }
.twc-cta__title { margin: 0 0 8px; color: #fff; font-size: clamp(24px, 3vw, 34px); font-weight: 400; }
.twc-cta__text { margin: 0; color: #fff; font-size: 18px; }

/* Lightbox */
.twc-lb { position: fixed; inset: 0; z-index: 99999; display: none; align-items: center; justify-content: center; background: rgba(0, 0, 0, .9); }
.twc-lb.is-open { display: flex; }
.twc-lb img { max-width: 90vw; max-height: 88vh; }
.twc-lb button { position: absolute; background: none; border: 0; color: #fff; font-size: 44px; line-height: 1; cursor: pointer; padding: 12px 18px; }
.twc-lb__close { top: 10px; right: 14px; }
.twc-lb__prev { left: 6px; top: 50%; transform: translateY(-50%); }
.twc-lb__next { right: 6px; top: 50%; transform: translateY(-50%); }

@media (max-width: 1024px) {
	.twc-grid, .twc-gallery__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
	.twc { padding-top: 50px; }
	.twc-grid, .twc-gallery__grid { grid-template-columns: 1fr; gap: 20px; }
	.twc-prose { font-size: 17px; }
	.twc-cta__inner { flex-direction: column; align-items: flex-start; padding-top: 40px; padding-bottom: 40px; }
}
