/**
 * Theme Name:     Spectra One Child
 * Author:         Wizarts
 * Template:       spectra-one
 * Text Domain:	   spectra-one-child
 * Description:    Custom theme
 */



html{
	scroll-behavior: smooth;
}
.wp-block-list li {
    list-style: none;
    padding-left: 1.5em;
    position: relative;
	font-weight: 600;
}
.wp-block-list{
	padding-left: 0;
}
.wp-block-list li::before {
    content: "✓";
    color: var(--wp--preset--color--primary);
    font-weight: 400;
    position: absolute;
    left: 0;
}

body.hide_footer_form .contact-form-footer{
	display: none !important;
}

body .gform_wrapper.gravity-theme .gform_validation_errors>h2{
	line-height: 1;
}
.hover-grid article *,
.hover-grid > div > div *{
	transition: 0.2s;
}
.hover-grid article:has( > a):hover *,
.hover-grid > div > div:has( > a):hover *{
	z-index: 1 !important;
	color: white !important;
}
.hover-grid article::after,
.hover-grid > div > div::after{
	content: '';
	z-index: 0;
	position: absolute;
	height: 0;
	bottom: 0%;
	width: 100%;
	left: 0;
	transition: 0.2s;
	background-color: var(--wp--preset--color--primary);
}
.hover-grid article:has( > a):hover::after,
.hover-grid > div > div:has(> a):hover::after{
	height: 100%;
}
footer nav li:first-child a{
	color: black !important;
}
.stroke *{
	color: white !important;
	-webkit-text-stroke: 1px var(--wp--preset--color--body);
	margin-bottom: 0 !important;
}

.gform_required_legend{
	display: none !important;
}

.cases-archive-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.cases-archive-nav ul li a {
  display: inline-block;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 400;
  color: #555;
  background-color: var(--light);
  border: 1px solid #ccc;
  border-radius: 2px;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.cases-archive-nav ul li a:hover {
  border-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--primary);
}

.cases-archive-nav ul li a.active-item {
  background-color: var(--wp--preset--color--primary);
  border-color: var(--wp--preset--color--primary);
  color: #fff;
  font-weight: 500;
}

.mb-0 > p,
.mb-0{
	margin-bottom: 0 !important;
}

.diensten-loop-item{
	margin-left: auto !important;
	margin-right: auto !important;
}
h1,
h2,
h3,
h4,
h5,
h6,
.wp-block-uagb-advanced-heading .uagb-heading-text{
	margin-bottom: 0.5em !important;
}
.wp-block-uagb-advanced-heading p.uagb-heading-text{
	margin-bottom: 0 !important;
}
.wp-block-uagb-advanced-heading ~ p{
	margin-top: 0;
}
li.wp-block-post {
	margin-top: 0;
	
}
.diensten-loop-div > div > ul > li,
.diensten-loop-div > ul > li{
	display: flex;
	justify-content: center;
}
.diensten-loop-div > div > ul > li:nth-child(odd),
.diensten-loop-div > ul > li:nth-child(odd){
	background-color: var(--wp--preset--color--secondary);
}
.diensten-loop-div > div > ul > li:nth-child(even) > div,
.diensten-loop-div > ul > li:nth-child(even) > div{
	flex-direction: row-reverse;
}
p:last-child{
	margin-bottom: 0;
}


/* BREADCRUMBS */
.yoast-breadcrumbs *{
	text-transform: uppercase;
	font-size: 14px;
	font-weight: 500;
	color: var(--wp--preset--color--body) !important;
}
.yoast-breadcrumbs span{
	gap: 8px;
    display: flex;
}


/* BUTTONS */
.intro-hero div.is-style-outline > .wp-block-button__link{
	border: 2px solid white;
	color: white;
	background-color: unset;
}
div:not(.is-style-outline) > .wp-block-button__link{
	border: 2px solid transparent;
}
.intro-hero div:not(.is-style-outline) > .wp-block-button__link:hover{
	background-color: white !important;
	color: var(--wp--preset--color--primary) !important;
	border:  2px solid white !important;	
}
.home .intro-hero p{
	color: white !important;
}
.intro-hero p{
	opacity: 78%;
	color: var(--wp--preset--color--secondary) !important;
}
div:not(.is-style-outline) > .wp-block-button__link:hover{
	background-color: transparent !important;
	color: var(--wp--preset--color--primary) !important;
	border:  2px solid var(--wp--preset--color--primary) !important;	
}
.about p > a:nth-child(2):hover,
.is-style-outline > .wp-block-button__link:hover{
	background-color: var(--wp--preset--color--primary) !important;	
	color: white !important;
	border-color:  var(--wp--preset--color--primary) !important;	
}
.gform_wrapper.gravity-theme input.button[type='button'],
.btn-rood,
.about p > a{
	padding: 14px 24px;
	cursor: pointer;
	padding-top: calc(0.667em + 2px);
    padding-right: calc(1.333em + 2px);
    padding-bottom: calc(0.667em + 2px);
    padding-left: calc(1.333em + 2px);
	background-color: var(--wp--preset--color--primary);
	color: white;
	border: 2px solid var(--wp--preset--color--primary);
	line-height: 1;
    font-size: 16px;
}
.about p > a:nth-child(2){
	border-color: black;
	color: black;
	background-color: unset;
}
.btn-rood{
	background-color: var(--wp--preset--color--primary);
}
.about p:has( > a){
	margin-top: 1.5rem;
	display: flex;
	gap: 18px;
}
.gform_wrapper.gravity-theme input.button[type='button']:hover,
.btn-rood:hover{
	color: var(--wp--preset--color--primary);;
	border: 2px solid var(--wp--preset--color--primary);;
	background-color: unset;
}
.about p > a:hover{
	color: var(--wp--preset--color--primary);;
	background-color: unset;
}
.wp-block-buttons:not(:first-child){
	margin-top: 2rem;
}
.entry-content form textarea,
.entry-content form input:not([type='submit']){
	border-bottom: 1px solid var(--wp--preset--color--body);	
}
.entry-content .gform_wrapper.gravity-theme .gfield_label{
	color: black;
}
form input[type='submit']{
	background-color: var(--wp--preset--color--primary);
    border-radius: 0em;
	outline: unset;
    border-color: var(--wp--preset--color--primary);
	border-bottom-width: 2px !important;
    border-width: 2px !important;
    color: white;
    font-family: inherit;
    font-size: var(--wp--preset--font-size--small);
    font-style: inherit;
    font-weight: var(--wp--custom--font-weight--medium);
    letter-spacing: inherit;
    line-height: var(--wp--custom--line-height--initial);
    padding-top: calc(0.667em + 2px);
    padding-right: calc(1.333em + 2px);
    padding-bottom: calc(0.667em + 2px);
    padding-left: calc(1.333em + 2px);
	cursor: pointer;
    text-decoration: none;
    text-transform: inherit;
}
body .gform_wrapper.gravity-theme .gform_fields{
	row-gap: 40px;
}
form input[type='submit']:hover{
	color: var(--wp--preset--color--primary);;
	border: 2px solid var(--wp--preset--color--primary);
	background-color: unset;
}
footer form input[type='submit']:hover{
	color: white !important;
	border: 2px solid white !important;
	background-color: unset !important;
}

/* LANGUAGE SWITCHER */
.language-switcher ul{
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.language-switcher ul li{
	position: relative;
	margin-right: 16px;
}
.language-switcher ul li:not(.active) a{
	color: var(--wp--preset--color--body);
}
.language-switcher ul li a{
	color: black;
	font-size: 14px;
}
.language-switcher ul li:not(:last-child)::after{
	content:'/';
	position: absolute;
	right: -16px;
	top: 4px;
	font-size: 14px;
}


/* FORMS */
form br{
	display: none;
}
form p{
	margin: 0;
}
footer .form-block > p,
p:has( > script:only-child),
p:empty{
	display: none;
}
textarea,
form input:not([type='submit']){
	background-color: unset;
	border: unset;
}
footer form input:not([type='submit']),
footer textarea{
	border-bottom: 1px solid white;
	color: white;
}
.gform_wrapper.gravity-theme .gfield_label{
	font-weight: 400;
}
footer .gform_wrapper.gravity-theme .gfield_label{
	color: white;
}
form *{
	font-family: Inter, sans-serif;
	line-height: 1.1;
}
.gform_wrapper.gravity-theme .gfield {
    display: flex;
    flex-direction: column;
}


/* FOOTER */
footer .socials{
	display: flex;
    gap: 5px;
}
.contact-blok > h2{
	margin-top: 0;
}
.contact-blok table,
.contact-blok a,
.contact-blok p,
.contact-blok h2{
	color: white;
}
.contact-blok table{
	border-spacing: 20px;
    -webkit-border-vertical-spacing: 10px;
    margin-left: -20px;
}



.idk-wrapper {
	--idk-gap: 1px;
	--idk-radius: 0rem;
	--idk-accent: #e63946;
	position: relative;
	overflow: hidden;
}

/* Slides */
.idk-slide {
	display: none;
}
.idk-slide.idk-active {
	display: block;
}

/* Grid: 1 groot links, 2 klein rechts */
.idk-grid {
	display: grid;

	gap: var(--idk-gap);
    margin-right: -1px;
    background: var(--wp--preset--color--body);
}


.idk-grid:has( > article:nth-child(1)){
	grid-template-columns: 1fr;
	grid-template-rows: auto;
}
.idk-grid:has( > article:nth-child(2)){
	grid-template-columns: 1fr 1fr;
	grid-template-rows: auto;
}
.idk-grid:has( > article:nth-child(3)){
	grid-template-columns: 2fr 1fr;
	grid-template-rows: auto auto;
}
.idk-item--main {
	grid-column: 1;
	grid-row: 1 / 3;
}

.idk-item--small {
	grid-column: 2;
}

/* Items */
.idk-item {
	position: relative;
	border-radius: var(--idk-radius);
	overflow: hidden;
	background: #fff;
	box-shadow: 0 2px 8px rgba(0,0,0,.08);
	transition: box-shadow .2s ease;
}
.idk-item:hover {
	box-shadow: 0 6px 20px rgba(0,0,0,.14);
}

.idk-link {
	display: flex;
	flex-direction: column;
	height: 100%;
	text-decoration: none;
	color: inherit;
}
h1{
	font-size: clamp(2.5rem, 1.7347rem + 7.6531vw, 4.25rem) !important;
}
h2{
	font-size: clamp(1.875rem, 1.301rem + 4.3048vw, 3.25rem) !important;
}
h3{
	font-size: clamp(1.5rem, 1.1173rem + 2.1684vw, 2.25rem) !important;
}
h4, h5,h6{
	font-size: clamp(1.25rem, 1.0587rem + 0.7972vw, 1.475rem) !important;
}
/* Thumbnail */
.idk-thumb {
	overflow: hidden;
	background: #f0f0f0;
}
.idk-item--main .idk-thumb {
	aspect-ratio: 16/9;
}
.idk-item--small .idk-thumb {
	aspect-ratio: 3/2;
}
.idk-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .35s ease;
}
.idk-item:hover .idk-thumb img {
	transform: scale(1.04);
}
.idk-thumb--placeholder {
	background: linear-gradient(135deg, #e8e8e8 25%, #d5d5d5 100%);
}

/* Content */
.idk-content {
	padding: 2rem;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: .4rem;
}

.idk-label {
	font-size: .7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--idk-accent);
}

.idk-title {
	margin: 0;
	font-size: 1.1rem;
	line-height: 1.3;
}
.idk-item--main .idk-title {
	font-size: 1.45rem;
}

.idk-excerpt {
	margin: 0;
	font-size: .875rem;
	color: #555;
	line-height: 1.5;
}

/* Navigatie */
.idk-nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	margin-top: 1.5rem;
}

.idk-nav__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	border: 2px solid currentColor;
	background: transparent;
	cursor: pointer;
	transition: background .15s ease, color .15s ease;
	color: #222;
}
.idk-nav__btn:disabled {
	opacity: .3;
	cursor: default;
}
.idk-nav__btn:not(:disabled):hover {
	background: #222;
	color: #fff;
}

.idk-nav__count {
	font-size: .9rem;
	font-variant-numeric: tabular-nums;
	color: #555;
}

.idk-empty {
	color: #999;
	font-style: italic;
}


@media screen and (min-width: 1800px){
	.intro-hero{
		min-height: unset !important;
		padding-top: 150px !important;
		padding-bottom: 150px !important;
	}
}
@media screen and (max-width: 768px){
	.language-switcher{
		display: none;
	}
	li.dienst:nth-child(odd){
		background-color: unset;
	}
	li.dienst:nth-child(even) > div{
		flex-direction: column-reverse;
	}
	
	.idk-grid {
		grid-template-columns: 1fr !important;
		grid-template-rows: auto;
	}
	.idk-item--main,
	.idk-item--small {
		grid-column: 1;
		grid-row: auto;
	}
}

/* === Sectoren-pagina: sectorkaarten consistent uitlijnen (geen 'dansende' tekst) === */
/* Inhoud bovenaan i.p.v. onderaan uitlijnen (override UAGB flex-end) */
.hover-grid .sector-card.wp-block-uagb-container {
	justify-content: flex-start !important;
}
/* Titel altijd minimaal 2 regels hoog -> paragraaf start overal op dezelfde hoogte,
   en de titels van klikbare en niet-klikbare kaarten lijnen uit */
.hover-grid .sector-card h3.uagb-heading-text {
	min-height: 2.6em; /* ~2 regels bij line-height 1.3 */
	margin-top: 0;
}
/* Niet-klikbare kaart mist de 'Bekijk onze cases'-badge: reserveer die hoogte
   via extra top-padding, zodat de titel uitlijnt met de klikbare kaarten.
   (Geen ::before gebruiken: dat is bij Spectra al de donkere foto-overlay.)
   20px basis-padding + 41px badge-hoogte = 61px. */
.hover-grid .sector-card--plain.wp-block-uagb-container {
	padding-top: 61px !important;
}

