/* Theme style */

/* ==========================================================================
Base styles
========================================================================== */

/* Headings
========================================================================== */

/* Paragraphs
========================================================================== */

.is-style-lead {
	font-size: var(--wp--preset--font-size--m);
}

/* Typography spacing
========================================================================== */

/* Links
========================================================================== */

p.is-style-arrow-link {
	color: var(--wp--preset--color--blue) !important;
}

p.is-style-arrow-link a {
	text-decoration: none;
}


.is-style-arrow-link a::after {
	content: url("../images/icon-arrow-right.svg");
	margin-left: var(--wp--preset--spacing--xs);
	filter: brightness(0) saturate(100%) invert(16%) sepia(99%) saturate(2038%) hue-rotate(196deg) brightness(101%) contrast(101%);
}

/* Lists
========================================================================== */

.wp-block-heading + .wp-block-list {
	margin-top: var(--wp--preset--spacing--m);
}

/* List of accepted/rejected items */
.is-style-accept-list,
.is-style-reject-list {
	list-style: none;
	margin-left: 0;
}

.is-style-accept-list li,
.is-style-reject-list li {
	position: relative;
	padding-left: 1.75em;
}

.is-style-accept-list li::before {
	content: "✓";
	position: absolute;
	left: 0;
	color: var(--wp--preset--color--blue);
	font-weight: 500;
	font-size: 1.15em;
	line-height: 1.1;
}

.is-style-reject-list li::before {
	content: "×";
	position: absolute;
	left: 0;
	color: #e74c3c;
	font-weight: 500;
	font-size: 1.75em;
	line-height: 0.85;
}

/* 50% of max width */
.is-style-half-width-list {
	max-width: 50%;
	column-count: 2;
	column-gap: calc(2 * var(--wp--style--block-gap));
}

/* Document list */
.is-style-document-list {
	max-width: calc(66% + (2 * var(--wp--style--block-gap)));
	column-count: 2;
	column-fill: balance;
	column-gap: calc(2 * var(--wp--style--block-gap));

	list-style: none;
	padding-left: 0;
	margin-left: 0;
}
.is-style-document-list li {
	position: relative;
	padding-left: 1.25em;
	margin-bottom: 1.25em;
	color: var(--wp--preset--color--blue);
}
.is-style-document-list a:not(:hover) {
	text-decoration: none;
}
.is-style-document-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.225em;
	width: 20px;
	height: 20px;
	background-image: url(../images/icon-chevron-right-blue.svg);
	background-size: contain;
	background-repeat: no-repeat;
	margin-right: 1rem;
}

@media (max-width: 980px) {
	.is-style-half-width-list,
	.is-style-document-list {
		max-width: 100%;
	}
}

@media (max-width: 670px) {
	.is-style-document-list {
		column-count: 1;
	}
}

@media (max-width: 510px) {
	.is-style-half-width-list {
		column-count: 1;
	}
}

/* Buttons
========================================================================== */

.wp-block-buttons {
	margin-top: var(--wp--preset--spacing--l);
}

.wp-block-button__link {
	min-width: 150px;
}

/* Primary button (core) */

/* Secondary button */
.is-style-button-secondary .wp-block-button__link {
	color: var(--wp--preset--color--white);
	background-color: var(--wp--preset--color--dark-blue);
}

/* Outline button (core) */
.is-style-outline .wp-block-button__link {
	font-weight: inherit;
}

.is-style-outline .wp-block-button__link::after {
	content: url("../images/icon-arrow-right.svg");
	margin-left: var(--wp--preset--spacing--s);
}

/* Outline secondary button */

/* Text button */
.is-style-button-text .wp-block-button__link {
	color: var(--wp--preset--color--black);
	text-decoration: none;
	font-weight: 400;
}

.is-style-button-text .wp-block-button__link::before {
	content: url("../images/icon-arrow-right.svg");
	margin-right: var(--wp--preset--spacing--xs);
}

/* Arrow button */
.wp-block-buttons:has(.is-style-button-arrow) {
	margin-top: var(--wp--preset--spacing--s);
}

.is-style-button-arrow .wp-block-button__link {
	background-color: transparent;
	min-width: auto;
	padding: 0;
}

.is-style-button-arrow .wp-block-button__link img {
	width: 40px !important;
	height: 40px;
}

/* Button on background */

/* Button on background inverted */

/* Inputs
========================================================================== */

/* Label */
label {
	font-size: var(--wp--preset--font-size--s);
}

/* Input fields */
input,
textarea,
select {
	background-color: var(--wp--preset--color--white);
	border-color: transparent;
	line-height: inherit;
}

/* Select */

/* Checkbox & radio button */
[type="radio"],
[type="checkbox"],
[type="checkbox"]:checked,
[type="checkbox"]:not(:disabled):checked,
[type="radio"],
[type="radio"]:checked,
[type="radio"]:not(:disabled):checked {
	background-color: var(--wp--preset--color--white);
	border-color: transparent;
}

/* Focus and active statements */
:is(select, input, textarea, radio, checkbox):is(:focus, :checked) {
	background-color: var(--wp--preset--color--white);
}

:is(radio, checkbox):is(:focus, :checked) {
	border-color: transparent;
}

/* Acceptance */

/* Submit */
.submit {
	margin-top: var(--wp--preset--spacing--s);
}

[type="submit"] {
	font-size: var(--wp--preset--font-size--s);
	font-weight: 600;
	background-color: var(--wp--preset--color--blue);
}

/* Contact form 7
========================================================================== */

.wpcf7-form {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wpcf7-form .acceptance,
.wpcf7-form .submit {
	grid-column: 1/-1;
}

.form-customer p:nth-of-type(-n + 1),
.form-customer p:nth-last-of-type(-n + 1) {
	grid-column: 1/-1;
}

.form-book-pickup p:nth-of-type(-n + 1),
.form-book-pickup p:nth-last-of-type(-n + 1) {
	grid-column: 1/-1;
}

.form-book-container p:nth-of-type(-n + 2),
.form-book-container p:nth-last-of-type(-n + 1) {
	grid-column: 1/-1;
}

.form-rfq p:nth-of-type(-n + 1),
.form-rfq p:nth-last-of-type(-n + 1) {
	grid-column: 1/-1;
}

.form-faq p:nth-last-of-type(-n + 1) {
	grid-column: 1/-1;
}

@media (max-width: 670px) {
	.wpcf7-form p {
		grid-column: 1/-1;
	}
}

span.cf7-helper-icon {
    color: var(--wp--custom--color--error);
}

.cf7-helper-text {
    font-size: var(--wp--preset--font-size--xxs);
	display: block;
	margin-bottom: var(--wp--preset--spacing--s);
}


/* Media
========================================================================== */

/* Images */

/* Video */

/* Iframe & embedded */

/* ==========================================================================
Layout
========================================================================== */

/* Paddings and margins
========================================================================== */

.entry-content > .qt-section:is(.is-style-subhero, .is-style-hero):first-of-type {
	padding-top: 0 !important;
}

/* Max widths
========================================================================== */

/* Grids
========================================================================== */

.grid-col-1 {
	grid-gap: calc(1.5 * var(--wp--style--block-gap));
}

.grid-col-2 {
	grid-gap: calc(1.5 * var(--wp--style--block-gap));
}

@media (max-width: 980px) {
	.grid {
		grid-gap: var(--wp--style--block-gap);
	}
}

/* ==========================================================================
Announcement bar
========================================================================== */

.announcement-bar {
	background-color: var(--wp--preset--color--blue);
}

.announcement-bar p,
.announcement-bar a {
	font-size: var(--wp--preset--font-size--xxs);
}

/* ==========================================================================
Top bar
========================================================================== */

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

.is-style-header-top .grid {
	grid-template-columns: auto 1fr;
}

.is-style-header-top .qt-container:has(.mega-menu:not(.mega-menu-mobile)) {
	justify-content: flex-end;
	gap: 0;
}

/* Desktop menu
========================================================================== */

header .menu .menu-item a,
header .menu .menu-item span {
	font-size: var(--wp--preset--font-size--xs);
}

/* 
* Show sub menu on hover
* Only for dropdowns where trigger is <a> and <span>, mega menu is not active
*/
@media (min-width: 1151px) {
	header .menu .menu-item > :is(a, span) + .sub-menu {
		display: none;
		position: absolute;
		left: auto;
		background-color: var(--wp--preset--color--white);
		list-style: none;
		width: 250px;
		max-height: calc(100vh - var(--wp--custom--header-height--total));
		padding: var(--wp--preset--spacing--m) var(--wp--preset--spacing--m);
		box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.1);
		z-index: 1;
		border-radius: 0;
		margin: 0 -1.5rem;
	}

	header .menu .menu-item > :is(a, span):hover + .sub-menu,
	header .menu .menu-item:hover > :is(a, span) + .sub-menu {
		display: flex;
		flex-direction: column;
		gap: var(--wp--preset--spacing--xs);
	}

	header .menu > .menu-item {
		height: var(--wp--custom--header-height--top);
	}

	header .menu .menu-item a,
	header .menu .menu-item span {
		height: 100%;
		display: flex;
		align-items: center;
		cursor: pointer;
	}
}

/* Site logo */
@media (max-width: 670px) {
	.wp-block-site-logo img {
		max-width: 200px;
	}
}

/* Header button */

/* Hamburger icon
========================================================================== */

@media (max-width: 670px) {
	.is-style-header-top .qt-container:has(.mega-menu:not(.mega-menu-mobile)) {
		display: flex;
	}
}

/* User toolbar
========================================================================== */

/* Search bar
========================================================================== */

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

.is-style-footer-top .grid {
	grid-template-columns: 1.5fr 1fr 1fr;
	grid-gap: calc(2 * var(--wp--style--block-gap));
}

.is-style-footer-top .qt-container:first-of-type {
	max-width: 90%;
}

.is-style-footer-bottom .copyright {
	color: var(--wp--preset--color--white);
	font-size: var(--wp--preset--font-size--xxs);
}

.is-style-footer-bottom .wp-block-list {
	color: var(--wp--preset--color--white);
	list-style: none;
	padding-left: 0;
	margin-left: 0;
	display: flex;
	flex-direction: row;
	gap: var(--wp--style--block-gap);
	justify-content: flex-end;
	font-size: var(--wp--preset--font-size--xxs);
}

.is-style-footer-bottom .wp-block-list li {
	padding: 0;
	margin: 0;
}

@media (max-width: 980px) {
	.is-style-footer-top .grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.is-style-footer-top .qt-container:first-of-type {
		grid-column: 1/-1;
	}
}

@media (max-width: 768px) {
	.is-style-footer-bottom .grid {
		grid-template-columns: minmax(0, 1fr);
		grid-gap: var(--wp--preset--spacing--s);
	}

	.is-style-footer-bottom .wp-block-list {
		justify-content: flex-start;
	}
}

@media (max-width: 510px) {
	.is-style-footer-top .grid {
		grid-template-columns: minmax(0, 1fr);
		grid-gap: var(--wp--style--block-gap);
	}
}

/* Navigation
========================================================================== */

.is-style-footer-heading {
	font-weight: 600;
	margin-bottom: 1em !important;
}

footer p {
	margin-bottom: 0.5em !important;
}

footer a {
	font-weight: 400;
}

footer a:not(:hover) {
	text-decoration: none;
}

/* ==========================================================================
Utility classes
========================================================================== */

/* ==========================================================================
Components and modules
========================================================================== */

/* Card */
.card .card__image-img {
	aspect-ratio: var(--wp--custom--aspect-ratio--landscape-wide);
}

/* Breadcrumbs
========================================================================== */

/* Pagination
========================================================================== */

/* Current, hover */
:is(.wp-block-query-pagination, .pagination) .page-numbers.current,
:is(.wp-block-query-pagination, .pagination) .page-numbers:hover {
	background-color: var(--wp--preset--color--blue);
}

.wp-block-query-pagination-previous:hover,
.wp-block-query-pagination-next:hover {
	background-color: var(--wp--preset--color--blue);
}

/* Prev, next */
.pagination .page-numbers:is(.prev, .next):hover {
	background-color: var(--wp--preset--color--blue);
}

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

/* Accordion heading */

/* Accordion content */

/* Accordion icon */
.accordion-item__icon {
	width: 18px;
	height: 18px;
}

.accordion-item__icon::before,
.accordion-item__icon::after {
	height: 2.5px;
}

/* Tabs
========================================================================== */

/* Splide slider
========================================================================== */

/* Slider header */

/* ==========================================================================
Styles for pages, sections, blocks and others.
========================================================================== */

/* Page: Search results 
========================================================================== */

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

.entry-content > .qt-section:is(.is-style-hero):first-of-type {
	margin-bottom: 0;
}

.is-style-hero .wp-block-cover {
	height: calc(100vh - var(--wp--custom--header-height--total));
	max-height: 700px;
}

/* Section: Subhero
========================================================================== */

.is-style-subhero .wp-block-cover {
	min-height: 500px;
}

.is-style-subhero .wp-block-cover__inner-container {
	max-width: var(--wp--style--global--content-size);
	margin-left: auto;
	margin-right: auto;
}

@media (max-width: 768px) {
	.qt-section.is-style-subhero .wp-block-cover {
		min-height: 300px;
	}
}

/* Section: Stacked boxes
========================================================================== */

@media (min-width: 769px) {
	.is-style-stacked-boxes .is-style-text-column {
		padding: var(--wp--preset--spacing--l) var(--wp--preset--spacing--l);
	}
}

@media (max-width: 768px) {
    .is-style-stacked-boxes .is-style-text-column:not(.has-background) {
        padding: 0 var(--wp--preset--spacing--m);
    }
}

/* Block: Slider - Logos
========================================================================== */

/* Archive: Category
========================================================================== */

/* Articles
========================================================================== */

/* Card */
.card--article {
	gap: var(--wp--preset--spacing--xs);
}

.card--article .card__image {
	aspect-ratio: var(--wp--custom--aspect-ratio--landscape-wide);
}

.card--article .card__postmeta-category {
	font-weight: 500;
	font-size: var(--wp--preset--font-size--xs);
	color: var(--wp--preset--color--blue);
}

/* Filter buttons */
.qt-container:has(.articles__filter-buttons) {
	display: grid;
	grid-gap: calc(2 * var(--wp--style--block-gap));
}

.articles__filter-buttons {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--s);
}

.is-style-button-secondary .wp-block-button__link:hover,
.is-style-button-secondary .wp-block-button__link.active {
	background-color: var(--wp--preset--color--blue);
}

/* Single: Article
========================================================================== */

.single .post-meta__categories a {
	font-weight: 500;
	color: var(--wp--preset--color--blue);
}

.single .post-meta__categories a:not(:hover) {
	text-decoration: none;
}

.single .post-meta__categories::before {
	display: none;
}

.single .wp-block-post-featured-image img {
	aspect-ratio: var(--wp--custom--aspect-ratio--landscape-wide);
}

/* Employees
========================================================================== */

/* Block: Testimonial slider
========================================================================== */

/* Testimonial card */

/* Block: Image gallery with lightbox
========================================================================== */

.image-gallery .pswp-gallery__item img {
	aspect-ratio: var(--wp--custom--aspect-ratio--landscape);
	height: 100%;
	width: 100%;
	object-fit: cover;
}

@media (max-width: 670px) {
	.image-gallery {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-gap: var(--wp--preset--spacing--m);
	}
}

/* Block: FAQ
========================================================================== */

.wp-block-heading + .faq {
	margin-top: var(--wp--preset--spacing--l);
}

.faq .accordion-item {
	padding: var(--wp--preset--font-size--s) var(--wp--preset--spacing--m);
	background-color: var(--wp--preset--color--neutral-2);
}

.faq .accordion-item__heading {
	align-items: baseline;
}

.faq .accordion-item__heading h2 {
	font-weight: 400;
}

/* All containers
========================================================================== */

/* Card */
.card--container .card__image {
    background-color: var(--wp--preset--color--white);
}

.card--container .card__image-img {
	aspect-ratio: var(--wp--custom--aspect-ratio--landscape-wide);
}

.card--container .card__content {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	grid-gap: var(--wp--preset--spacing--xs);
}

.card--container .card__title {
	font-size: var(--wp--preset--font-size--l);
	font-weight: 700;
	grid-column: span 4;
}

.card--container .card__details {
	display: flex;
	gap: var(--wp--preset--spacing--l);
	grid-column: span 3;
	font-size: var(--wp--preset--font-size--xs);
}

.card--container .card__detail {
	display: flex;
	flex-direction: column;
}

.card--container .card__buttons {
	align-self: baseline;
	margin-top: 0;
	justify-content: flex-end;
	display: flex;
	height: max-content;
}

@media (max-width: 980px) {
	.card--container .card__details {
		grid-column: span 4;
	}

	.card--container .card__buttons {
		grid-column: span 4;
		margin-top: var(--wp--preset--spacing--xs);
		justify-content: flex-start;
	}
}

@media (max-width: 670px) {
	.card--container .card__details {
		grid-column: span 3;
	}

	.card--container .card__buttons {
		grid-column: span 1;
		margin-top: 0;
		justify-content: flex-end;
	}
}

@media (max-width: 510px) {
	.card--container .card__details {
		grid-column: span 4;
	}

	.card--container .card__buttons {
		grid-column: span 4;
		margin-top: var(--wp--preset--spacing--xs);
		justify-content: flex-start;
	}
}

/* All fractions
========================================================================== */

/* Card */
.card--fraction {
	text-decoration: none;
}

.card--fraction .card__image {
	aspect-ratio: var(--wp--custom--aspect-ratio--landscape-wide);
	background-color: var(--wp--preset--color--neutral-2);
}

.card--fraction .card__image-img {
	aspect-ratio: var(--wp--custom--aspect-ratio--landscape-wide);
}

/* Section: Word list
========================================================================== */

.is-style-word-list .qt-container.is-horizontally-stretched {
	margin-bottom: var(--wp--style--block-gap);
}

.is-style-word-list .grid {
	grid-row-gap: 0;
}

.is-style-word-list .qt-container:not(.is-horizontally-stretched, :last-of-type) {
	margin-bottom: 1em;
}

/* Section: Two columns (has .text-columm)
========================================================================== */

.is-style-text-column {
	padding: 0;
	display: flex;
	flex-direction: column;
}

.is-style-text-column p {
	font-size: var(--wp--preset--font-size--xs);
}

.is-style-text-column p:last-of-type {
	margin-bottom: var(--wp--preset--spacing--l);
}

.is-style-text-column .wp-block-buttons {
	margin-top: auto;
}

/* Block: Timeline
========================================================================== */

.timeline {
	grid-gap: calc(2 * var(--wp--style--block-gap)) var(--wp--style--block-gap);
}

.card--timeline {
	border-left: 1px solid var(--wp--preset--color--neutral-1);
	padding-left: var(--wp--preset--spacing--m);
}

.card--timeline .card__year {
	font-size: var(--wp--preset--font-size--display);
	font-weight: 600;
	line-height: 1;
	margin-bottom: var(--wp--preset--spacing--s);
}

.card--timeline .card__event {
	font-size: var(--wp--preset--font-size--xs);
}

@media (max-width: 510px) {
	.timeline {
		grid-gap: 0;
	}

	.card--timeline:not(:last-of-type) {
		padding-bottom: calc(1.5 * var(--wp--style--block-gap));
	}

	.card.card--timeline {
		position: relative;
	}

	.card.card--timeline::before {
		position: absolute;
		border-radius: 50px;
		content: "";
		height: 16px;
		width: 16px;
		background: var(--wp--preset--color--blue);
		left: -8px;
		margin-top: 0.5rem;
	}
}

/* Block: Dropdown button
========================================================================== */

.dropdown-toggle {
	margin-top: var(--wp--preset--spacing--l);
}

.dropdown-button {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: var(--wp--preset--spacing--xs);

	padding: var(--wp--preset--spacing--xs) var(--wp--preset--spacing--m);
	border-radius: 0;
	border: 1px solid var(--wp--preset--color--black);
	background-color: transparent;

	font-family: var(--wp--preset--font-family--button);
	font-size: var(--wp--preset--font-size--s);
	line-height: 1;
}

.dropdown-content[hidden] {
	display: none;
}

.dropdown-content {
	margin-top: -1px;
	border: 1px solid var(--wp--preset--color--black);
	background-color: transparent;
	padding: var(--wp--preset--spacing--xs) var(--wp--preset--spacing--m);
}

.dropdown-content li {
	line-height: 2;
}

.dropdown-content a {
	text-decoration: none;
	font-weight: inherit;
}

/* Section: Grid 70% 30%
========================================================================== */

.is-style-grid-70-30 {
	display: grid;
	grid-template-columns: 2fr minmax(0, 1fr);
	grid-gap: var(--wp--style--block-gap);
}

.is-style-grid-70-30 .wp-block-heading {
	margin-bottom: 0;
}

.is-style-grid-70-30 .wp-block-buttons {
	margin: 0;
	align-items: flex-end;
	justify-content: flex-end;
}

@media (max-width: 768px) {
	.is-style-grid-70-30 {
		grid-template-columns: minmax(0, 1fr);
		grid-gap: 0;
	}

	.is-style-grid-70-30 .wp-block-buttons {
		margin-top: var(--wp--preset--spacing--l);
		justify-content: flex-start;
	}
}

/* Demolitions
========================================================================== */

/* Card */
.card--demolition {
	text-decoration: none;
}

.card--demolition .card__title {
	font-size: var(--wp--preset--font-size--l);
	margin-bottom: var(--wp--preset--spacing--tiny);
}

.card--demolition .card__excerpt {
	font-weight: 400;
}

/* Section header
========================================================================== */

.is-style-section-header {
	display: flex;
	justify-content: space-between;
}

.is-style-section-header .wp-block-heading,
.is-style-section-header .wp-block-buttons {
	margin: 0;
}

@media (max-width: 670px) {
	.is-style-section-header {
		flex-direction: column;
		gap: var(--wp--preset--spacing--m);
	}
}
