/*
 * Van den Brink Tegels - Custom Overrides
 * Extra styling en WordPress-specifieke aanpassingen
 *
 * @package BrinkTegels_Clickwave
 * @since 1.0.0
 */

/* ==========================================================================
   WordPress Block Overrides
   ========================================================================== */

/* Reset WordPress block margins */
.wp-site-blocks > * + * {
	margin-top: 0;
}
  /* Fix voor onzichtbare knoptekst bij hover */
  :root a.bg-accent-orange:hover,
  :root a.bg-primary-blue:hover,
  .choice-section-block a:hover {
      color: #FFFFFF !important;
  }
/* Remove any gap/margin between header and main content */
.wp-site-blocks {
	gap: 0;
}

/* Ensure no margin on main element after header */
.wp-site-blocks > header + main,
.wp-site-blocks > header + .wp-block-group,
.site-header + .site-main,
.site-header + main {
	margin-top: 0 !important;
}

/* Hero sections should start at top of viewport (under fixed header) */
.hero-banner-block,
.page-hero-block {
	margin-top: 0 !important;
}

/* Ensure full-width blocks have no margins */
.wp-block-group.alignfull,
.wp-block-cover.alignfull {
	margin-top: 0;
	margin-bottom: 0;
}

/* Fix navigation spacing in FSE */
.wp-block-navigation__container {
	gap: 2rem;
}

.wp-block-navigation-item__content {
	padding: 0.5rem 0;
}

/* ==========================================================================
   ACF Block Preview Styling
   ========================================================================== */

/* Preview mode container */
.acf-block-preview {
	padding: 1rem;
}

/* Preview placeholder */
.block-preview-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 200px;
	background: linear-gradient(135deg, #f8f9fa 0%, #e5e7eb 100%);
	border: 2px dashed #d1d5db;
	border-radius: 0.5rem;
}

.block-preview-placeholder__content {
	text-align: center;
	padding: 2rem;
}

.block-preview-placeholder__icon {
	font-size: 3rem;
	margin-bottom: 1rem;
	opacity: 0.5;
}

.block-preview-placeholder__title {
	font-size: 1.25rem;
	font-weight: 600;
	color: #374151;
	margin-bottom: 0.5rem;
}

.block-preview-placeholder__description {
	color: #6b7280;
	font-size: 0.875rem;
}

/* ==========================================================================
   Icon Styling (SVG Icons)
   ========================================================================== */

.icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.5rem;
	height: 1.5rem;
	flex-shrink: 0;
}

.icon svg {
	width: 100%;
	height: 100%;
}

.icon-sm { width: 1rem; height: 1rem; }
.icon-md { width: 1.25rem; height: 1.25rem; }
.icon-lg { width: 1.5rem; height: 1.5rem; }
.icon-xl { width: 2rem; height: 2rem; }
.icon-2xl { width: 2.5rem; height: 2.5rem; }

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

/* Transparent header on homepage */
.has-transparent-header .site-header {
	background-color: transparent;
}

.has-transparent-header.scrolled .site-header,
.has-transparent-header .site-header.scrolled {
	background-color: rgba(47, 56, 63, 0.95);
}

/* Logo sizing based on scroll state */
.site-header .site-logo img {
	transition: height var(--transition-normal, 300ms);
}

.site-header:not(.scrolled) .site-logo img {
	height: 4rem;
}

.site-header.scrolled .site-logo img {
	height: 2.5rem;
}

/* Navigation underline effect */
.nav-link {
	position: relative;
}

.nav-link::after {
	content: '';
	position: absolute;
	bottom: -4px;
	left: 0;
	width: 0;
	height: 2px;
	background-color: var(--color-accent-orange);
	transition: width var(--transition-normal, 300ms);
}

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

/* Dropdown chevron rotation */
.nav-link .chevron {
	transition: transform var(--transition-normal, 300ms);
}

.nav-item:hover .nav-link .chevron,
.nav-item.open .nav-link .chevron {
	transform: rotate(180deg);
}

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

.hero-section {
	position: relative;
	min-height: 100vh;
	display: flex;
	align-items: center;
}

.hero-section .hero-background {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.hero-section .hero-background img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero-section .hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to right, rgba(47, 56, 63, 0.8), rgba(47, 56, 63, 0.6), transparent);
}

.hero-section .hero-content {
	position: relative;
	z-index: 10;
}

/* USP Bar at bottom of hero */
.usp-bar {
	position: absolute;
	bottom: 0;
	width: 100%;
	background-color: rgba(47, 56, 63, 0.95);
	backdrop-filter: blur(4px);
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   Services Grid
   ========================================================================== */

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

@media (min-width: 768px) {
	.services-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (min-width: 1024px) {
	.services-grid {
		grid-template-columns: repeat(5, 1fr);
	}
}

.service-card {
	background: white;
	padding: 2rem;
	border-radius: 0.5rem;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
	border: 1px solid #f3f4f6;
	text-align: center;
	transition: all var(--transition-normal, 300ms);
	cursor: pointer;
}

.service-card:hover {
	transform: translateY(-0.5rem);
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.service-card .icon-wrapper {
	width: 4rem;
	height: 4rem;
	margin: 0 auto 1rem;
	padding: 1rem;
	background-color: var(--color-neutral-offwhite);
	border-radius: 50%;
	color: var(--color-primary-blue);
	transition: all var(--transition-normal, 300ms);
}

.service-card:hover .icon-wrapper {
	background-color: #fff7ed;
	color: var(--color-accent-orange);
}

.service-card .title {
	font-weight: 700;
	color: var(--color-primary-dark);
	transition: color var(--transition-normal, 300ms);
}

.service-card:hover .title {
	color: var(--color-accent-orange);
}

/* ==========================================================================
   Projects Gallery (Masonry Style)
   ========================================================================== */

.projects-gallery {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
	grid-auto-rows: 300px;
}

@media (min-width: 768px) {
	.projects-gallery {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.projects-gallery {
		grid-template-columns: repeat(4, 1fr);
	}
}

.project-item {
	position: relative;
	overflow: hidden;
	border-radius: 0.5rem;
	box-shadow: var(--shadow-md);
}

.project-item.large {
	grid-column: span 2;
	grid-row: span 2;
}

.project-item.tall {
	grid-row: span 2;
}

.project-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--transition-slower, 700ms);
}

.project-item:hover img {
	transform: scale(1.1);
}

.project-item .overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.2), transparent);
	opacity: 0.8;
	transition: opacity var(--transition-normal, 300ms);
}

.project-item:hover .overlay {
	opacity: 0.9;
}

.project-item .content {
	position: absolute;
	bottom: 0;
	left: 0;
	padding: 1.5rem;
	width: 100%;
	color: white;
}

.project-item .label {
	font-size: 0.875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--color-accent-orange);
	opacity: 0;
	transform: translateY(1rem);
	transition: all var(--transition-normal, 300ms);
}

.project-item:hover .label {
	opacity: 1;
	transform: translateY(0);
}

.project-item .title {
	font-size: 1.5rem;
	font-weight: 700;
	margin-bottom: 0.5rem;
}

.project-item .arrow {
	display: flex;
	align-items: center;
	font-size: 0.875rem;
	font-weight: 500;
	opacity: 0;
	transform: translateY(1rem);
	transition: all var(--transition-normal, 300ms) 0.1s;
}

.project-item:hover .arrow {
	opacity: 1;
	transform: translateY(0);
}

/* ==========================================================================
   Reviews Carousel
   ========================================================================== */

.reviews-section {
	padding: 5rem 0;
	background: white;
}

.reviews-carousel {
	position: relative;
	max-width: 56rem;
	margin: 0 auto;
}

.review-card {
	background: var(--color-neutral-offwhite);
	border-radius: 1rem;
	padding: 2rem 3rem;
	box-shadow: var(--shadow-sm);
	position: relative;
	overflow: hidden;
}

.review-card .quote-icon {
	position: absolute;
	top: 1.5rem;
	left: 2rem;
	width: 6rem;
	height: 6rem;
	color: var(--color-primary-blue);
	opacity: 0.1;
	transform: scaleX(-1);
}

.review-card .stars {
	display: flex;
	justify-content: center;
	margin-bottom: 1.5rem;
	color: var(--color-accent-orange);
}

.review-card .text {
	font-size: 1.25rem;
	font-style: italic;
	font-weight: 500;
	color: var(--color-neutral-textgray);
	text-align: center;
	margin-bottom: 2rem;
	line-height: 1.6;
}

.review-card .author {
	text-align: center;
}

.review-card .author-name {
	font-weight: 700;
	color: var(--color-primary-dark);
	font-size: 1.125rem;
}

.review-card .author-location {
	font-size: 0.875rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--color-neutral-textgray);
	opacity: 0.8;
}

.reviews-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 3rem;
	height: 3rem;
	border-radius: 50%;
	background: white;
	box-shadow: var(--shadow-md);
	border: 1px solid #f3f4f6;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--color-primary-blue);
	cursor: pointer;
	transition: all var(--transition-normal, 300ms);
	z-index: 20;
}

.reviews-nav:hover {
	color: var(--color-accent-orange);
	box-shadow: var(--shadow-lg);
}

.reviews-nav.prev {
	left: -1rem;
}

.reviews-nav.next {
	right: -1rem;
}

@media (min-width: 768px) {
	.reviews-nav.prev { left: -3rem; }
	.reviews-nav.next { right: -3rem; }
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */

.faq-section {
	padding: 5rem 0;
	background: var(--color-neutral-offwhite);
}

.faq-list {
	max-width: 48rem;
	margin: 0 auto;
}

.faq-item {
	background: white;
	border-radius: 0.5rem;
	margin-bottom: 1rem;
	overflow: hidden;
	box-shadow: var(--shadow-sm);
	border: 1px solid #f3f4f6;
	transition: box-shadow var(--transition-normal, 300ms);
}

.faq-item.open {
	box-shadow: var(--shadow-md);
}

.faq-question {
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1.5rem;
	font-weight: 700;
	font-size: 1.125rem;
	color: var(--color-primary-dark);
	background: none;
	border: none;
	cursor: pointer;
	text-align: left;
	transition: background-color var(--transition-normal, 300ms);
}

.faq-question:hover {
	background-color: var(--color-neutral-offwhite);
}

.faq-question .icon {
	color: var(--color-accent-orange);
	transition: transform var(--transition-normal, 300ms);
}

.faq-item.open .faq-question .icon {
	transform: rotate(45deg);
}

.faq-answer {
	max-height: 0;
	opacity: 0;
	overflow: hidden;
	transition: max-height var(--transition-normal, 300ms), opacity var(--transition-normal, 300ms);
}

.faq-item.open .faq-answer {
	max-height: 500px;
	opacity: 1;
}

.faq-answer-content {
	padding: 0 1.5rem 1.5rem;
	color: var(--color-neutral-textgray);
	line-height: 1.625;
	border-top: 1px solid #f9fafb;
	background: rgba(248, 249, 250, 0.3);
}

/* ==========================================================================
   Showroom CTA
   ========================================================================== */

.showroom-cta {
	position: relative;
	padding: 6rem 0;
	background: var(--color-primary-dark);
	overflow: hidden;
}

.showroom-cta .background-image {
	position: absolute;
	inset: 0;
	opacity: 0.2;
}

.showroom-cta .background-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: grayscale(100%);
}

.showroom-cta .content {
	position: relative;
	z-index: 10;
}

.showroom-cta .info-card {
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(12px);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 0.75rem;
	padding: 2rem 2.5rem;
	color: white;
}

.showroom-cta .info-card h3 {
	color: var(--color-accent-orange);
	font-size: 1.25rem;
	font-weight: 700;
	margin-bottom: 1rem;
}

/* Opening hours table */
.opening-hours {
	font-size: 0.875rem;
}

.opening-hours li {
	display: flex;
	justify-content: space-between;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	margin-bottom: 0.5rem;
}

.opening-hours li:last-child {
	border-bottom: none;
	margin-bottom: 0;
}

/* ==========================================================================
   Instagram Feed
   ========================================================================== */

.instagram-feed {
	padding: 5rem 0;
	background: white;
}

.instagram-carousel {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.instagram-carousel::-webkit-scrollbar {
	display: none;
}

.instagram-item {
	flex: 0 0 auto;
	width: 16rem;
	height: 16rem;
	position: relative;
	overflow: hidden;
	scroll-snap-align: start;
}

@media (min-width: 768px) {
	.instagram-item {
		width: 20rem;
		height: 20rem;
	}
}

.instagram-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--transition-slow, 500ms);
}

.instagram-item:hover img {
	transform: scale(1.1);
}

.instagram-item .hover-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity var(--transition-normal, 300ms);
}

.instagram-item:hover .hover-overlay {
	opacity: 1;
}

.instagram-item .hover-overlay svg {
	width: 2.5rem;
	height: 2.5rem;
	color: white;
}

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

.contact-form-wrapper {
	background: white;
	border-radius: 1rem;
	box-shadow: var(--shadow-xl);
	padding: 2rem;
	border: 1px solid #f3f4f6;
}

.contact-form-wrapper.sticky {
	position: sticky;
	top: 6rem;
}

.contact-form .form-group {
	margin-bottom: 1.5rem;
}

.contact-form label {
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--color-neutral-textgray);
	margin-bottom: 0.5rem;
}

.contact-form input,
.contact-form textarea {
	width: 100%;
	padding: 0.75rem;
	background: var(--color-neutral-offwhite);
	border: 1px solid #e5e7eb;
	border-radius: 0.5rem;
	font-size: 1rem;
	transition: border-color var(--transition-normal, 300ms);
}

.contact-form input:focus,
.contact-form textarea:focus {
	outline: none;
	border-color: var(--color-accent-orange);
}

.contact-form textarea {
	min-height: 120px;
	resize: vertical;
}

.contact-form .submit-btn {
	width: 100%;
	padding: 1rem;
	background: var(--color-primary-dark);
	color: white;
	font-weight: 700;
	border: none;
	border-radius: 0.5rem;
	cursor: pointer;
	transition: background-color var(--transition-normal, 300ms);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
}

.contact-form .submit-btn:hover {
	background: var(--color-primary-blue);
}

/* Contact info cards */
.contact-info-card {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
}

.contact-info-card .icon-wrapper {
	width: 3rem;
	height: 3rem;
	background: var(--color-neutral-offwhite);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--color-accent-orange);
	flex-shrink: 0;
}

.contact-info-card h4 {
	font-weight: 700;
	color: var(--color-primary-dark);
	font-size: 1.125rem;
	margin-bottom: 0.25rem;
}

.contact-info-card p {
	color: var(--color-neutral-textgray);
	font-size: 0.875rem;
}

/* ==========================================================================
   Choice Section (DIY vs Professional)
   ========================================================================== */

.choice-section {
	padding: 5rem 0;
	background: var(--color-neutral-offwhite);
}

.choice-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	max-width: 72rem;
	margin: 0 auto;
}
  /* ==========================================================================                                                                                                                                             
     Choice Section - Fix hover link visibility
     Prevents orange text on orange background when hovering buttons
     ========================================================================== */
  :root a.bg-accent-orange:hover,
  :root a.bg-primary-blue:hover,
  .choice-section-block a:hover {
        color: #FFFFFF !important;
  }

@media (min-width: 768px) {
	.choice-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

.choice-card {
	position: relative;
	height: 500px;
	border-radius: 1rem;
	overflow: hidden;
	box-shadow: var(--shadow-xl);
	cursor: pointer;
}

.choice-card .background {
	position: absolute;
	inset: 0;
}

.choice-card .background img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--transition-slower, 700ms);
}

.choice-card:hover .background img {
	transform: scale(1.1);
}

.choice-card .gradient-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.5), transparent);
}

.choice-card .content {
	position: relative;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 2rem 3rem;
	color: white;
}

.choice-card .icon-badge {
	width: 4rem;
	height: 4rem;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 1.5rem;
	box-shadow: var(--shadow-lg);
	transition: transform var(--transition-normal, 300ms);
}

.choice-card:hover .icon-badge {
	transform: scale(1.1);
}

.choice-card .icon-badge.orange {
	background: var(--color-accent-orange);
}

.choice-card .icon-badge.blue {
	background: var(--color-primary-blue);
}

.choice-card h3 {
	font-size: 1.875rem;
	font-weight: 700;
	margin-bottom: 1rem;
	color: white;
}

.choice-card p {
	color: #e5e7eb;
	margin-bottom: 2rem;
	max-width: 28rem;
}

.choice-card .link {
	display: inline-flex;
	align-items: center;
	font-weight: 700;
	color: white;
	background: rgba(255, 255, 255, 0.2);
	backdrop-filter: blur(4px);
	padding: 0.75rem 1.5rem;
	border-radius: 0.5rem;
	width: fit-content;
	transition: all var(--transition-normal, 300ms);
}

.choice-card:hover .link {
	transform: translateX(0.25rem);
}

.choice-card:hover .link.orange {
	background: var(--color-accent-orange);
}

.choice-card:hover .link.blue {
	background: var(--color-primary-blue);
}

/* ==========================================================================
   Page Hero (Subpages)
   ========================================================================== */

.page-hero {
	position: relative;
	min-height: 60vh;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.page-hero .background {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.page-hero .background img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.page-hero .overlay {
	position: absolute;
	inset: 0;
	background: rgba(47, 56, 63, 0.7);
}

.page-hero .content {
	position: relative;
	z-index: 10;
	text-align: center;
	color: white;
	padding-top: 5rem;
}

.page-hero .breadcrumb {
	font-size: 0.875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	margin-bottom: 1rem;
	opacity: 0.8;
}

.page-hero .breadcrumb .separator {
	color: var(--color-accent-orange);
	margin: 0 0.5rem;
}

.page-hero h1 {
	font-size: clamp(2.5rem, 5vw, 3.75rem);
	font-weight: 700;
	margin-bottom: 1.5rem;
	color: white;
}

.page-hero .description {
	font-size: 1.25rem;
	max-width: 42rem;
	margin: 0 auto 2.5rem;
	line-height: 1.625;
	color: #e5e7eb;
}

/* Page hero USP bar */
.page-hero .usp-bar {
	position: absolute;
	bottom: 0;
	width: 100%;
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(12px);
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.site-footer {
	background: var(--color-primary-dark);
	color: #9ca3af;
	padding-top: 5rem;
	padding-bottom: 2.5rem;
}

.footer-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 3rem;
	margin-bottom: 4rem;
}

@media (min-width: 768px) {
	.footer-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.footer-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

.footer-column h4 {
	color: white;
	font-weight: 700;
	font-size: 1.125rem;
	margin-bottom: 1.5rem;
}

.footer-column ul {
	list-style: none;
	padding: 0;
}

.footer-column ul li {
	margin-bottom: 0.75rem;
}

.footer-column ul a {
	color: #9ca3af;
	display: flex;
	align-items: center;
	transition: color var(--transition-normal, 300ms);
}

.footer-column ul a:hover {
	color: var(--color-accent-orange);
}

.footer-column ul a .arrow {
	opacity: 0;
	margin-right: 0.5rem;
	transition: opacity var(--transition-normal, 300ms);
}

.footer-column ul a:hover .arrow {
	opacity: 1;
}

.footer-column ul a span {
	transition: transform var(--transition-normal, 300ms);
}

.footer-column ul a:hover span {
	transform: translateX(0.25rem);
}

/* Social icons */
.social-icons {
	display: flex;
	gap: 1rem;
}

.social-icon {
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	transition: all var(--transition-normal, 300ms);
}

.social-icon:hover {
	background: var(--color-accent-orange);
	color: white;
}

/* Footer bottom */
.footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding-top: 2rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	font-size: 0.875rem;
}

@media (min-width: 768px) {
	.footer-bottom {
		flex-direction: row;
		justify-content: space-between;
	}
}

.footer-links {
	display: flex;
	gap: 1.5rem;
}

.footer-links a {
	color: #9ca3af;
	transition: color var(--transition-normal, 300ms);
}

.footer-links a:hover {
	color: white;
}

/* ==========================================================================
   Gravity Forms / WPForms Styling
   ========================================================================== */

.gform_wrapper,
.wpforms-container {
	font-family: var(--font-sans);
}

.gform_wrapper .gfield,
.wpforms-field {
	margin-bottom: 1.5rem !important;
}

.gform_wrapper .gfield_label,
.wpforms-field-label {
	font-size: 0.875rem !important;
	font-weight: 700 !important;
	color: var(--color-neutral-textgray) !important;
	margin-bottom: 0.5rem !important;
}

.gform_wrapper input[type="text"],
.gform_wrapper input[type="email"],
.gform_wrapper input[type="tel"],
.gform_wrapper textarea,
.wpforms-field input,
.wpforms-field textarea {
	width: 100% !important;
	padding: 0.75rem !important;
	background: var(--color-neutral-offwhite) !important;
	border: 1px solid #e5e7eb !important;
	border-radius: 0.5rem !important;
	font-size: 1rem !important;
	transition: border-color var(--transition-normal, 300ms) !important;
}

.gform_wrapper input:focus,
.gform_wrapper textarea:focus,
.wpforms-field input:focus,
.wpforms-field textarea:focus {
	outline: none !important;
	border-color: var(--color-accent-orange) !important;
}

.gform_wrapper .gform_button,
.wpforms-submit {
	width: 100% !important;
	padding: 1rem 2rem !important;
	background: var(--color-primary-dark) !important;
	color: white !important;
	font-weight: 700 !important;
	border: none !important;
	border-radius: 0.5rem !important;
	cursor: pointer !important;
	transition: background-color var(--transition-normal, 300ms) !important;
}

.gform_wrapper .gform_button:hover,
.wpforms-submit:hover {
	background: var(--color-primary-blue) !important;
}

/* ==========================================================================
   Button Hover Fix
   ========================================================================== */

/* Ensure button text stays white on hover (overrides link hover color) */
.wp-block-button__link:hover,
.wp-block-button__link:focus,
.wp-element-button:hover,
.wp-element-button:focus {
	color: white !important;
}

/* ==========================================================================
   Single Post Template
   ========================================================================== */

/* Single post hero cover */
.single-post-hero {
	margin-top: 0 !important;
}

.single-post-hero .wp-block-cover__inner-container {
	max-width: 100%;
	padding: 0;
}

/* Post content styling */
.single-post .wp-block-post-content {
	font-size: 1.125rem;
	line-height: 1.8;
	color: var(--color-neutral-textgray);
}

.single-post .wp-block-post-content h2,
.single-post .wp-block-post-content h3,
.single-post .wp-block-post-content h4 {
	color: var(--color-primary-dark);
	font-weight: 700;
	margin-top: 2rem;
	margin-bottom: 1rem;
}

.single-post .wp-block-post-content h2 {
	font-size: 1.875rem;
}

.single-post .wp-block-post-content h3 {
	font-size: 1.5rem;
}

.single-post .wp-block-post-content p {
	margin-bottom: 1.5rem;
}

.single-post .wp-block-post-content a {
	color: var(--color-accent-orange);
	text-decoration: none;
}

.single-post .wp-block-post-content a:hover {
	text-decoration: underline;
}

.single-post .wp-block-post-content ul,
.single-post .wp-block-post-content ol {
	margin-bottom: 1.5rem;
	padding-left: 1.5rem;
}

.single-post .wp-block-post-content li {
	margin-bottom: 0.5rem;
}

.single-post .wp-block-post-content img {
	border-radius: 0.5rem;
	margin: 2rem 0;
}

.single-post .wp-block-post-content blockquote {
	border-left: 4px solid var(--color-accent-orange);
	padding-left: 1.5rem;
	font-style: italic;
	color: var(--color-primary-dark);
	margin: 2rem 0;
}

/* Related articles grid */
.single-post .wp-block-post-template {
	display: grid !important;
	grid-template-columns: repeat(1, 1fr);
	gap: 2rem;
}

@media (min-width: 768px) {
	.single-post .wp-block-post-template {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* Related article cards */
.single-post .wp-block-post-template .wp-block-post-featured-image {
	margin-bottom: 0;
}

.single-post .wp-block-post-template .wp-block-post-featured-image img {
	margin: 0;
	border-radius: 0.5rem 0.5rem 0 0;
}

/* ==========================================================================
   Project Gallery Lightbox
   ========================================================================== */

.project-lightbox {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.project-lightbox.active {
	opacity: 1;
	visibility: visible;
}

.project-lightbox .lightbox-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.9);
	cursor: pointer;
}

.project-lightbox .lightbox-container {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	max-width: 1200px;
	max-height: 90vh;
	padding: 1rem;
}

.project-lightbox .lightbox-content {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	max-width: 100%;
	max-height: 80vh;
}

.project-lightbox .lightbox-image {
	max-width: 100%;
	max-height: 80vh;
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 0.5rem;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
	user-select: none;
	-webkit-user-drag: none;
	pointer-events: none;
}

.project-lightbox .lightbox-content {
	touch-action: pan-y pinch-zoom;
}

.project-lightbox.active {
	touch-action: none;
}

.project-lightbox .lightbox-close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	z-index: 10;
	width: 3rem;
	height: 3rem;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.1);
	border: none;
	border-radius: 50%;
	color: white;
	cursor: pointer;
	transition: background-color 0.3s ease, transform 0.3s ease;
}

.project-lightbox .lightbox-close:hover {
	background: var(--color-accent-orange, #E56239);
	transform: scale(1.1);
}

.project-lightbox .lightbox-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	width: 3rem;
	height: 3rem;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.1);
	border: none;
	border-radius: 50%;
	color: white;
	cursor: pointer;
	transition: background-color 0.3s ease, transform 0.3s ease;
}

.project-lightbox .lightbox-nav:hover {
	background: var(--color-accent-orange, #E56239);
	transform: translateY(-50%) scale(1.1);
}

.project-lightbox .lightbox-prev {
	left: 1rem;
}

.project-lightbox .lightbox-next {
	right: 1rem;
}

.project-lightbox .lightbox-counter {
	position: absolute;
	bottom: 1.5rem;
	left: 50%;
	transform: translateX(-50%);
	color: white;
	font-size: 0.875rem;
	font-weight: 500;
	background: rgba(0, 0, 0, 0.5);
	padding: 0.5rem 1rem;
	border-radius: 2rem;
}

/* Mobile adjustments */
@media (max-width: 768px) {
	.project-lightbox .lightbox-nav {
		width: 2.5rem;
		height: 2.5rem;
	}

	.project-lightbox .lightbox-prev {
		left: 0.5rem;
	}

	.project-lightbox .lightbox-next {
		right: 0.5rem;
	}

	.project-lightbox .lightbox-close {
		top: 0.5rem;
		right: 0.5rem;
		width: 2.5rem;
		height: 2.5rem;
	}
}

 /* Fix onzichtbare link tekst op knoppen bij hover */                                                                                                                                                                     
  .choice-section-block a.bg-accent-orange,                                                                                                                                                                                 
  .choice-section-block a.bg-accent-orange:hover,
  .choice-section-block a.bg-primary-blue,
  .choice-section-block a.bg-primary-blue:hover {
      color: #FFFFFF !important;
  }
/* ==========================================================================                                                                                                                                                  Contact Form 7 - Simpele structuur
     ========================================================================== */                                                                                                                                          
  
  /* Form card container */
  .form-card {
        background: #fff;
        padding: 2rem;
        border-radius: 1rem;
  }

  .form-card .form-title {
        font-size: 1.5rem;
        font-weight: 700;
        color: #1e3a5f;
        margin: 0 0 1.5rem 0;
  }

  /* Hide CF7 default paragraph margins */
  .wpcf7-form p {
        margin: 0 0 1rem 0;
  }

  /* Labels */
  .wpcf7-form label {
        display: block;
        font-size: 0.875rem;
        font-weight: 600;
        color: #1e3a5f;
        margin-bottom: 0.5rem;
  }

  /* Remove br after label */
  .wpcf7-form label + br {
        display: none;
  }

  /* Input fields */
  .wpcf7-form input[type="text"],
  .wpcf7-form input[type="email"],
  .wpcf7-form input[type="tel"],
  .wpcf7-form textarea {
        width: 100% !important;
        padding: 0.75rem 1rem !important;
        font-size: 1rem !important;
        border: 1px solid #e5e7eb !important;
        border-radius: 0.5rem !important;
        background: #f9fafb !important;
        color: #1e3a5f !important;
        box-sizing: border-box !important;
  }

  .wpcf7-form input[type="text"]:focus,
  .wpcf7-form input[type="email"]:focus,
  .wpcf7-form input[type="tel"]:focus,
  .wpcf7-form textarea:focus {
        outline: none !important;
        border-color: #e56239 !important;
        box-shadow: 0 0 0 3px rgba(229, 98, 57, 0.1) !important;
        background: #fff !important;
  }

  /* Textarea */
  .wpcf7-form textarea {
        min-height: 150px !important;
        resize: vertical;
  }

  /* Submit button */
  .wpcf7-form input[type="submit"] {
        background: #e56239 !important;
        color: #fff !important;
        font-weight: 600 !important;
        padding: 0.875rem 2rem !important;
        border: none !important;
        border-radius: 0.5rem !important;
        cursor: pointer !important;
        font-size: 1rem !important;
        width: 100% !important;
        margin-top: 0.5rem;
  }

  .wpcf7-form input[type="submit"]:hover {
        background: #d4532e !important;
  }

  /* Error styling */
  .wpcf7-form .wpcf7-not-valid {
        border-color: #dc2626 !important;
  }

  .wpcf7-form .wpcf7-not-valid-tip {
        color: #dc2626;
        font-size: 0.75rem;
        margin-top: 0.25rem;
  }

  /* Response messages */
  .wpcf7-form .wpcf7-response-output {
        margin: 1rem 0 0 0 !important;
        padding: 1rem !important;
        border-radius: 0.5rem !important;
  }