/*
 * Popa Toiture: page sections and the theme blocks.
 */

/* ------------------------------------------------------------------ Hero */

.wm-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background: var(--wm-ink);
	color: var(--wm-white);
	--wm-hero-shade:
		linear-gradient(180deg, rgb(14 14 14 / 0.45) 0%, rgb(14 14 14 / 0) 30%),
		linear-gradient(90deg, rgb(14 14 14 / 0.78) 0%, rgb(14 14 14 / 0.45) 60%, rgb(14 14 14 / 0.12) 100%);
}

.wm-hero > .wm-hero__media,
.wm-hero > .wm-hero__img {
	position: absolute;
	inset: 0;
	z-index: -2;
	margin: 0;
	width: 100%;
	height: 100%;
}

.wm-hero__media img,
.wm-hero > .wm-hero__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.wm-hero:has(> .wm-hero__media, > .wm-hero__img)::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--wm-hero-shade);
}

.wm-hero__inner {
	box-sizing: border-box;
	position: relative;
	max-width: var(--wm-container);
	margin-inline: auto;
	padding: 200px var(--wm-gutter) 96px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 28px;
}

.wm-hero__inner > * {
	margin: 0;
}

.wm-hero__title {
	max-width: 860px;
	font: 800 var(--wm-title-l) / 0.92 var(--wm-font-head);
	text-transform: uppercase;
}

.wm-hero__lead {
	max-width: 560px;
	font-size: 19px;
	line-height: 1.6;
}

.wm-hero__back {
	display: inline-flex;
	padding-bottom: 4px;
	border-bottom: 2px solid var(--wm-yellow);
	font: 700 18px / 1 var(--wm-font-head);
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.wm-hero__back:hover {
	color: var(--wm-yellow);
}

/* Home */
.wm-hero--home {
	--wm-hero-shade:
		linear-gradient(180deg, rgb(14 14 14 / 0.4) 0%, rgb(14 14 14 / 0) 20%),
		linear-gradient(90deg, rgb(14 14 14 / 0.66) 0%, rgb(14 14 14 / 0.38) 50%, rgb(14 14 14 / 0.05) 100%);
}

.wm-hero--home .wm-hero__inner {
	min-height: min(60vh, 560px);
	justify-content: center;
	padding-bottom: 128px;
	gap: 0;
}

.wm-hero--home .wm-hero__title {
	max-width: 820px;
	font-size: var(--wm-title-xl);
}

.wm-hero--home .wm-hero__lead {
	margin-top: 32px;
	max-width: 520px;
}

.wm-hero__buttons {
	margin-top: 40px;
	gap: 28px;
}

.wm-hero--home .wm-hero__buttons .wp-block-button:first-child .wp-block-button__link::after {
	content: "→";
}

.wm-hero__badge {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: 56px;
	font: 600 18px / 1.2 var(--wm-font-head);
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.wm-hero__badge::before {
	content: "";
	flex: none;
	width: 14px;
	height: 14px;
	background: var(--wm-yellow);
}

/* Overlapping blocks under the hero need room. */
.wm-hero--overlap .wm-hero__inner {
	padding-bottom: 136px;
}

/* Plain dark hero (privacy, archives, pages without image). */
.wm-hero--plain .wm-hero__inner,
.wm-hero--archive .wm-hero__inner,
.wm-hero--page:not(.has-image) .wm-hero__inner {
	padding-top: 184px;
	padding-bottom: 72px;
}

.wm-hero--plain .wm-hero__title,
.wm-hero--archive .wm-hero__title {
	max-width: 900px;
	font-size: clamp(44px, 5.6vw, 88px);
}

.wm-hero__date {
	font: 600 18px / 1 var(--wm-font-head);
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

/* Project and service pages */
.wm-hero--entry .wm-hero__inner {
	padding-top: 190px;
	padding-bottom: 88px;
}

.wm-hero--entry .wm-hero__title {
	max-width: 900px;
	font-size: clamp(44px, 6vw, 96px);
}

/* Article */
.wm-hero--article .wm-hero__inner {
	padding-top: 176px;
	padding-bottom: 96px;
}

.wm-entry-hero.has-cover .wm-hero--article .wm-hero__inner {
	padding-bottom: 200px;
}

.wm-hero--article .wm-hero__title {
	max-width: 1000px;
	font-size: clamp(42px, 5.6vw, 88px);
}

.wm-hero__crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	font: 600 18px / 1 var(--wm-font-head);
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.wm-hero__crumb {
	padding-bottom: 3px;
	border-bottom: 2px solid var(--wm-yellow);
}

.wm-hero__cat {
	background: var(--wm-yellow);
	color: var(--wm-ink);
	padding: 5px 9px;
}

.wm-hero__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 28px;
	font: 600 18px / 1 var(--wm-font-head);
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.wm-article-cover {
	box-sizing: border-box;
	position: relative;
	max-width: var(--wm-container);
	margin: -140px auto 0;
	padding-inline: var(--wm-gutter);
}

.wm-article-cover__img {
	display: block;
	width: 100%;
	aspect-ratio: 21 / 9;
	min-height: 280px;
	object-fit: cover;
	border: var(--wm-border);
	box-sizing: border-box;
}

/* 404 */
.wm-hero--404 {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	--wm-hero-shade:
		linear-gradient(180deg, rgb(14 14 14 / 0.55) 0%, rgb(14 14 14 / 0.15) 30%),
		linear-gradient(90deg, rgb(14 14 14 / 0.88) 0%, rgb(14 14 14 / 0.55) 60%, rgb(14 14 14 / 0.3) 100%);
}

.wm-hero--404 .wm-hero__inner {
	flex: 1;
	width: 100%;
	justify-content: center;
	padding-top: 180px;
}

.wm-hero__code {
	color: var(--wm-yellow);
	font: 800 clamp(120px, 22vw, 320px) / 0.8 var(--wm-font-head);
	letter-spacing: -0.02em;
}

.wm-hero--404 .wm-hero__title {
	font-size: clamp(40px, 5vw, 76px);
}

/* ------------------------------------------------------------------ Marquee */

.wm-marquee {
	overflow: hidden;
	padding: 22px 0;
	background: var(--wm-ink);
	color: var(--wm-white);
	border-top: 3px solid var(--wm-yellow);
	border-bottom: 2px solid var(--wm-ink);
}

.wm-marquee__track {
	display: flex;
	width: max-content;
}

.wm-marquee__track.is-running {
	animation: wm-marquee 36s linear infinite;
}

/* Longer list (words repeated for wide screens), same speed. */
.wm-marquee__track[data-repeat="2"] {
	animation-duration: 72s;
}

.wm-marquee__track[data-repeat="3"] {
	animation-duration: 108s;
}

.wm-marquee__track[data-repeat="4"] {
	animation-duration: 144s;
}

.wm-marquee__track[data-repeat="5"] {
	animation-duration: 180s;
}

.wm-marquee__track[data-repeat="6"] {
	animation-duration: 216s;
}

.wm-marquee__track[data-repeat="7"] {
	animation-duration: 252s;
}

.wm-marquee__track[data-repeat="8"] {
	animation-duration: 288s;
}

.wm-marquee__list {
	display: flex;
	gap: 44px;
	margin: 0;
	padding: 0 0 0 44px;
	list-style: none;
	font: 800 44px / 1 var(--wm-font-head);
	text-transform: uppercase;
	white-space: nowrap;
}

.wm-marquee__list li {
	display: flex;
	align-items: center;
	gap: 44px;
}

.wm-marquee__list li::after {
	content: "";
	flex: none;
	width: 16px;
	height: 16px;
	background: var(--wm-yellow);
}

@keyframes wm-marquee {
	to {
		transform: translateX(-50%);
	}
}

@media (prefers-reduced-motion: reduce) {
	.wm-marquee__track.is-running {
		animation: none;
	}
}

/* ------------------------------------------------------------------ Services: cards */

/* At most 3 cards a row (6 services: two full rows), 2 on tablets, 1 on phones. */
.wm-service-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, max(290px, calc((100% - 4px) / 3))), 1fr));
	gap: 2px;
	background: var(--wm-ink);
	border: var(--wm-border);
}

.wm-service-card {
	display: flex;
	flex-direction: column;
	background: var(--wm-white);
	color: var(--wm-ink);
}

.wm-service-card:hover,
.wm-service-card:focus-visible {
	background: var(--wm-yellow);
}

.wm-service-card:focus-visible {
	outline-offset: -6px;
	outline-color: var(--wm-ink);
}

.wm-service-card__img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.wm-service-card__body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 24px 24px 28px;
}

.wm-service-card__head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
}

.wm-service-card__title {
	font: 700 30px / 1 var(--wm-font-head);
	text-transform: uppercase;
}

.wm-service-card__num {
	font: 700 18px / 1 var(--wm-font-head);
}

.wm-service-card__text {
	margin: 0;
	font-size: 16px;
	line-height: 1.55;
}

.wm-service-card--cta {
	justify-content: space-between;
	gap: 32px;
	min-height: 320px;
	padding: 32px;
	background: var(--wm-ink);
	color: var(--wm-white);
}

.wm-service-card--cta:hover,
.wm-service-card--cta:focus-visible {
	color: var(--wm-ink);
}

.wm-service-card__mark {
	width: 44px;
	height: 44px;
	border: 6px solid var(--wm-yellow);
	box-sizing: border-box;
}

.wm-service-card__cta-title {
	display: block;
	margin-bottom: 12px;
	font: 800 40px / 0.95 var(--wm-font-head);
	text-transform: uppercase;
}

.wm-service-card__cta-link {
	font: 700 20px / 1 var(--wm-font-head);
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

/* ------------------------------------------------------------------ Services: detailed list */

.wm-subnav {
	position: sticky;
	top: var(--wm-sticky-top);
	z-index: 40;
	background: var(--wm-yellow);
	color: var(--wm-ink);
	border-bottom: var(--wm-border);
	transition: top 0.35s;
}

.wm-subnav__inner {
	box-sizing: border-box;
	max-width: var(--wm-container);
	margin-inline: auto;
	padding: 0 var(--wm-gutter);
	display: flex;
	gap: 4px;
	overflow-x: auto;
	scrollbar-width: none;
	font: 700 18px / 1 var(--wm-font-head);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	white-space: nowrap;
}

.wm-subnav__link {
	padding: 18px 14px;
}

.wm-subnav__link:hover,
.wm-subnav__link:focus-visible {
	background: var(--wm-white);
}

.wm-subnav__link:focus-visible {
	outline-offset: -3px;
	outline-color: var(--wm-ink);
}

.wm-service-list {
	box-sizing: border-box;
	max-width: var(--wm-container);
	margin-inline: auto;
	padding: 96px var(--wm-gutter) 40px;
	display: flex;
	flex-direction: column;
	gap: 120px;
}

.wm-service-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
	gap: 56px;
	align-items: center;
	scroll-margin-top: calc(var(--wm-admin-bar) + 150px);
}

.wm-service-row__media {
	order: 1;
}

.wm-service-row__body {
	order: 2;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 24px;
}

.wm-service-row__body > * {
	margin: 0;
}

.wm-service-row.is-flipped .wm-service-row__media {
	order: 3;
}

.wm-service-row__title {
	font: 800 var(--wm-title-s) / 0.95 var(--wm-font-head);
	text-transform: uppercase;
}

.wm-service-row__text {
	max-width: 540px;
	font-size: 18px;
	line-height: 1.65;
}

.wm-service-row__links {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 32px;
}

/* Image with the yellow block behind its corner. */
.wm-offset {
	position: relative;
	padding: 0 24px 24px 0;
}

.wm-offset::before {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	width: 70%;
	height: 75%;
	background: var(--wm-yellow);
}

.is-flipped .wm-offset {
	padding: 0 0 24px 24px;
}

.is-flipped .wm-offset::before {
	right: auto;
	left: 0;
}

.wm-offset img,
.wm-offset__img {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.wm-offset--wide img {
	aspect-ratio: 16 / 10;
}

.wm-offset.wp-block-image {
	margin: 0;
	max-width: 480px;
	padding: 0 20px 20px 0;
}

.wm-offset.wp-block-image::before {
	height: 70%;
}

.wm-outline-num {
	color: transparent;
	-webkit-text-stroke: 2px var(--wm-ink);
	font: 800 88px / 0.8 var(--wm-font-head);
}

.wm-check-list {
	align-self: stretch;
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: var(--wm-border);
}

.wm-check-list li {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 0;
	border-bottom: 1px solid var(--wm-ink);
	font-size: 16px;
}

.wm-check-list li::before {
	content: "";
	flex: none;
	width: 10px;
	height: 10px;
	background: var(--wm-ink);
}

/* Service page: introduction then the text */
.wm-service-top {
	padding-bottom: var(--wm-section-pad);
}

.wm-service-intro .wm-service-row {
	scroll-margin-top: 0;
}

/* ------------------------------------------------------------------ Layers */

.wm-layers {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.wm-layer {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin: 0;
	padding: 0 22px;
	font: 700 22px / 1 var(--wm-font-head);
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.wm-layer--5 {
	height: 64px;
	background: repeating-radial-gradient(circle at 30% 40%, #3a3a3a 0 1px, #1c1c1c 1px 3px);
	border: 1px solid var(--wm-white);
}

.wm-layer--4 {
	height: 52px;
	background: var(--wm-black);
	border: 1px solid var(--wm-white);
}

.wm-layer--3 {
	height: 104px;
	background: var(--wm-yellow);
	color: var(--wm-ink);
}

.wm-layer--2 {
	height: 40px;
	background: repeating-linear-gradient(90deg, var(--wm-white) 0 18px, #e9e9e9 18px 20px);
	color: var(--wm-ink);
}

.wm-layer--1 {
	height: 72px;
	background: repeating-linear-gradient(90deg, var(--wm-white) 0 30px, var(--wm-ink) 30px 32px, var(--wm-white) 32px 60px);
	color: var(--wm-ink);
	border: 1px solid var(--wm-white);
}

.wm-layer--1 span {
	background: var(--wm-white);
	padding: 4px 6px;
}

/* Bottom layer first, top layer last. */
.wm-layers .wm-reveal:nth-child(1) {
	--wm-delay: 500ms;
}

.wm-layers .wm-reveal:nth-child(2) {
	--wm-delay: 400ms;
}

.wm-layers .wm-reveal:nth-child(3) {
	--wm-delay: 300ms;
}

.wm-layers .wm-reveal:nth-child(4) {
	--wm-delay: 200ms;
}

.wm-layers .wm-reveal:nth-child(5) {
	--wm-delay: 100ms;
}

/* ------------------------------------------------------------------ Reasons */

.wm-reasons {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
	gap: 56px 48px;
}

.wm-reason {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.wm-reason > * {
	margin: 0;
}

.wm-reason__title {
	font: 700 30px / 1 var(--wm-font-head);
	text-transform: uppercase;
}

.wm-reason__text {
	font-size: 16px;
	line-height: 1.6;
}

/* ------------------------------------------------------------------ Projects */

.wm-project-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
	gap: 32px;
}

.wm-project-card {
	display: flex;
	flex-direction: column;
	gap: 18px;
	color: inherit;
}

.wm-project-card[hidden] {
	display: none;
}

.wm-project-card__media {
	position: relative;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background: var(--wm-ink);
}

.wm-project-card--tall .wm-project-card__media {
	aspect-ratio: 4 / 5;
}

.wm-project-card__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s;
}

.wm-project-card:hover .wm-project-card__img {
	transform: scale(1.05);
}

.wm-project-card__media .wm-badge {
	position: absolute;
	top: 0;
	left: 0;
}

.wm-project-card__meta {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	font: 600 17px / 1 var(--wm-font-head);
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.wm-project-card__title {
	font: 700 32px / 1 var(--wm-font-head);
	text-transform: uppercase;
}

.wm-project-card:hover .wm-project-card__title {
	text-decoration: underline;
	text-decoration-color: var(--wm-yellow);
	text-decoration-thickness: 3px;
	text-underline-offset: 6px;
}

.wm-project-card__facts {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	padding-top: 14px;
	border-top: 1px solid var(--wm-ink);
	font-size: 15px;
}

.wm-project-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr));
	gap: 56px 32px;
}

.wm-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 28px;
	margin-bottom: 56px;
	border-bottom: var(--wm-border);
}

.wm-filter[hidden] {
	display: none;
}

.wm-filter__button {
	margin-bottom: -2px;
	padding: 0 0 14px;
	background: none;
	border: 0;
	border-bottom: 4px solid transparent;
	color: var(--wm-ink);
	font: 700 20px / 1 var(--wm-font-head);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	cursor: pointer;
}

.wm-filter__button:hover {
	border-bottom-color: var(--wm-ink);
}

.wm-filter__button[aria-pressed="true"] {
	border-bottom-color: var(--wm-yellow);
}

/* Project facts: location, surface, year and services, in a box beside the project's text */
.wm-facts {
	align-self: start;
	padding: 40px;
	background: var(--wm-ink);
	color: var(--wm-white);
}

.wm-facts__list {
	margin: 0;
}

.wm-facts__item {
	display: grid;
	grid-template-columns: 120px minmax(0, 1fr);
	gap: 6px 20px;
	align-items: baseline;
	padding: 18px 0;
	border-bottom: 1px solid var(--wm-white);
}

.wm-facts__item:first-child {
	padding-top: 0;
}

.wm-facts__item dt {
	color: var(--wm-yellow);
	font: 600 16px / 1.2 var(--wm-font-head);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.wm-facts__item dd {
	margin: 0;
	font: 700 24px / 1.15 var(--wm-font-head);
}

/* Project story */
.wm-project-content > .wm-project-story {
	box-sizing: border-box;
	max-width: var(--wm-container);
	margin-inline: auto;
	padding: 104px var(--wm-gutter) 88px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
	gap: 64px;
}

.wm-project-story__text {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.wm-project-story__text > * {
	margin: 0;
}

.wm-project-story .wm-lead {
	max-width: none;
	font-size: 20px;
	line-height: 1.6;
}

/* Project gallery */
.wm-project-content > .wm-gallery-section {
	box-sizing: border-box;
	max-width: var(--wm-container);
	margin-inline: auto;
	padding: 0 var(--wm-gutter) 112px;
}

.wm-gallery-section .wm-section-head {
	margin-bottom: 40px;
}

.wm-gallery-section h2 {
	font: 800 var(--wm-title-s) / 0.95 var(--wm-font-head);
	text-transform: uppercase;
}

.wm-gallery-count {
	margin: 0;
	font: 600 18px / 1 var(--wm-font-head);
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

/* Previous / next project */
.wm-post-nav {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
	border-block: var(--wm-border);
}

.wm-post-nav__link {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 48px var(--wm-gutter);
}

.wm-post-nav__link--prev {
	border-right: var(--wm-border);
}

.wm-post-nav__link--next {
	align-items: flex-end;
	text-align: right;
}

.wm-post-nav__link:hover,
.wm-post-nav__link:focus-visible {
	background: var(--wm-yellow);
}

.wm-post-nav__label {
	font: 600 17px / 1 var(--wm-font-head);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.wm-post-nav__title {
	font: 700 clamp(26px, 2.6vw, 36px) / 1 var(--wm-font-head);
	text-transform: uppercase;
}

@media (max-width: 860px) {
	.wm-post-nav__link--prev {
		border-right: 0;
		border-bottom: var(--wm-border);
	}
}

/* Lightbox */
.wm-lightbox {
	position: fixed;
	inset: 0;
	z-index: 1000;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 72px 88px;
	background: var(--wm-shade);
	color: var(--wm-white);
}

.wm-lightbox[hidden] {
	display: none;
}

.wm-lightbox__img {
	display: block;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.wm-lightbox__bar {
	position: absolute;
	top: 20px;
	left: 24px;
	right: 24px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font: 700 20px / 1 var(--wm-font-head);
	letter-spacing: 0.06em;
}

.wm-lightbox__close {
	padding: 10px 16px;
	background: none;
	border: 2px solid var(--wm-white);
	color: var(--wm-white);
	font: 700 18px / 1 var(--wm-font-head);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
}

.wm-lightbox__close:hover {
	background: var(--wm-white);
	color: var(--wm-ink);
}

.wm-lightbox__nav {
	position: absolute;
	top: 50%;
	width: 56px;
	height: 56px;
	transform: translateY(-50%);
	border: 0;
	background: var(--wm-yellow);
	color: var(--wm-ink);
	font: 700 26px / 1 var(--wm-font-head);
	cursor: pointer;
}

.wm-lightbox__nav:hover {
	background: var(--wm-white);
}

.wm-lightbox__nav--prev {
	left: 20px;
}

.wm-lightbox__nav--next {
	right: 20px;
}

@media (max-width: 700px) {
	.wm-lightbox {
		padding: 72px 12px 96px;
	}

	.wm-lightbox__nav {
		top: auto;
		bottom: 20px;
		transform: none;
	}
}

/* ------------------------------------------------------------------ Testimonials */

.wm-testimonial--band,
.wm-testimonial--plain {
	background: var(--wm-yellow);
	color: var(--wm-ink);
	border-block: var(--wm-border);
}

.wm-testimonial__inner {
	box-sizing: border-box;
	max-width: var(--wm-narrow);
	margin: 0 auto;
	padding: var(--wm-section-pad) var(--wm-gutter);
	display: flex;
	flex-direction: column;
	gap: 40px;
}

.wm-testimonial--plain .wm-testimonial__inner {
	padding-block: 96px;
	gap: 32px;
}

.wm-testimonial__mark {
	height: 56px;
	font: 800 140px / 0.6 var(--wm-font-head);
}

.wm-testimonial__text {
	margin: 0;
	padding: 0;
	border: 0;
}

.wm-testimonial__text p {
	margin: 0;
	font: 600 clamp(30px, 3.4vw, 46px) / 1.15 var(--wm-font-head);
	text-wrap: pretty;
}

.wm-testimonial--plain .wm-testimonial__text p {
	font-size: clamp(28px, 3vw, 40px);
	line-height: 1.18;
}

.wm-testimonial__author {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
	font-size: 18px;
}

.wm-testimonial__author cite {
	font-style: normal;
	font-weight: 700;
	font-size: 20px;
}

/* Framed box inside an article */
.wm-testimonial--box .wm-testimonial__inner {
	max-width: none;
	margin: 16px 0;
	padding: clamp(28px, 4vw, 48px);
	gap: 24px;
	background: var(--wm-yellow);
	border: var(--wm-border);
}

.wm-testimonial--box .wm-testimonial__text p {
	font-size: clamp(26px, 2.8vw, 34px);
	line-height: 1.2;
}

.wm-testimonial--box .wm-testimonial__author {
	font-size: 16px;
}

.wm-testimonial--box .wm-testimonial__author cite {
	font-size: 18px;
}

/* ------------------------------------------------------------------ Calls to action */

.wm-cta-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background: var(--wm-ink);
	color: var(--wm-white);
}

.wm-cta-hero__media {
	position: absolute;
	inset: -10% 0 auto;
	z-index: -1;
	height: 120%;
	margin: 0;
	opacity: 0.35;
}

.wm-cta-hero__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Slow parallax where the browser supports scroll-driven animations. */
@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		.wm-cta-hero__media {
			animation: wm-parallax linear both;
			animation-timeline: view();
		}
	}
}

@keyframes wm-parallax {
	from {
		transform: translateY(6%);
	}

	to {
		transform: translateY(-6%);
	}
}

.wm-cta-hero__inner {
	box-sizing: border-box;
	position: relative;
	max-width: var(--wm-container);
	margin-inline: auto;
	padding: clamp(96px, 11vw, 140px) var(--wm-gutter);
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 36px;
}

.wm-cta-hero__inner > * {
	margin: 0;
}

.wm-cta-hero__title {
	max-width: 960px;
	font: 800 clamp(52px, 7vw, 112px) / 0.9 var(--wm-font-head);
	text-transform: uppercase;
}

.wm-cta--yellow {
	background: var(--wm-yellow);
	color: var(--wm-ink);
	border-block: var(--wm-border);
}

.wm-cta--dark {
	background: var(--wm-ink);
	color: var(--wm-white);
}

.wm-cta__inner {
	box-sizing: border-box;
	max-width: var(--wm-container);
	margin-inline: auto;
	padding: 96px var(--wm-gutter);
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 40px;
}

.wm-cta__inner > * {
	margin: 0;
}

.wm-cta__title {
	max-width: 760px;
	font: 800 clamp(44px, 5.6vw, 88px) / 0.92 var(--wm-font-head);
	text-transform: uppercase;
}

/* ------------------------------------------------------------------ Process steps */

.wm-steps {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
	gap: 2px;
	background: var(--wm-white);
	border: 2px solid var(--wm-white);
}

.wm-step {
	display: flex;
	flex-direction: column;
	gap: 18px;
	min-height: 260px;
	padding: 32px;
	background: var(--wm-ink);
	box-sizing: border-box;
}

.wm-step > * {
	margin: 0;
}

.wm-step__num {
	color: var(--wm-yellow);
	font: 800 64px / 1 var(--wm-font-head);
}

.wm-step__title {
	font: 700 28px / 1 var(--wm-font-head);
	text-transform: uppercase;
}

.wm-step__text {
	font-size: 16px;
	line-height: 1.6;
}

/* ------------------------------------------------------------------ Contact page */

.wm-contact-cards {
	position: relative;
	z-index: 1;
	margin-top: -48px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
	gap: 2px;
	background: var(--wm-ink);
	border: var(--wm-border);
}

.wm-contact-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 32px;
	background: var(--wm-white);
	color: var(--wm-ink);
	transition: background-color 0.25s;
}

.wm-contact-card > * {
	margin: 0;
}

.wm-contact-card:first-child {
	background: var(--wm-yellow);
}

.wm-contact-card:hover,
.wm-contact-card:focus-within {
	background: var(--wm-yellow);
}

.wm-contact-card:first-child:hover,
.wm-contact-card:first-child:focus-within {
	background: var(--wm-white);
}

.wm-contact-card__label {
	font: 600 18px / 1 var(--wm-font-head);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.wm-contact-card__value {
	font: 800 36px / 1 var(--wm-font-head);
	overflow-wrap: anywhere;
}

.wm-contact-card__value--s {
	font-size: 32px;
}

/* Opening hours: days in bold, the hours under them. */
.wm-contact-card__value--hours {
	font-size: 20px;
	font-weight: 600;
	line-height: 1.35;
}

.wm-contact-card__value--hours strong {
	font-weight: 800;
}

/* The whole card is the link. */
.wm-contact-card__value a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.wm-contact-card__value a:focus-visible {
	outline: 0;
}

.wm-contact-card:has(a:focus-visible) {
	outline: 3px solid var(--wm-ink);
	outline-offset: -6px;
}

/* Phones and tablets: slim contact rows, then the form before the service area. */
@media (max-width: 979px) {
	.wm-contact-card {
		display: grid;
		grid-template-columns: 36px minmax(0, 1fr);
		align-items: center;
		gap: 4px 16px;
		padding: 14px 18px;
	}

	.wm-contact-card > .wm-icon-block {
		grid-row: span 2;
	}

	/* Two per row on tablets: a card alone on its row takes the whole row. */
	.wm-contact-card:last-child:nth-child(odd) {
		grid-column: 1 / -1;
	}

	.wm-contact-card .wm-icon-block svg {
		width: 36px;
		height: 36px;
	}

	.wm-contact-card__label {
		font-size: 14px;
	}

	.wm-contact-card__value,
	.wm-contact-card__value--s {
		font-size: 24px;
	}

	.wm-contact-card__value--hours {
		font-size: 17px;
	}

	.wm-split > .wm-form-box {
		order: -1;
	}
}

.wm-regions {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 2px;
	max-width: 480px;
	background: var(--wm-ink);
	border: var(--wm-border);
}

.wm-regions > p {
	margin: 0;
	padding: 22px 18px;
	background: var(--wm-white);
	font: 700 22px / 1 var(--wm-font-head);
	text-transform: uppercase;
}

.wm-regions > p:first-child {
	background: var(--wm-yellow);
}

.wm-form-box {
	display: flex;
	flex-direction: column;
	gap: 22px;
	padding: clamp(24px, 4vw, 48px);
	border: var(--wm-border);
}

.wm-form-box > * {
	margin: 0;
}

.wm-form-box > h2 {
	font: 800 clamp(36px, 3.6vw, 52px) / 0.95 var(--wm-font-head);
	text-transform: uppercase;
}

.wm-form-box:has(.wmcf-form--sent) > :not(.wp-block-wm-contact-form-form) {
	display: none;
}

/* ------------------------------------------------------------------ Quote page */

.wm-quote {
	box-sizing: border-box;
	max-width: var(--wm-container);
	margin-inline: auto;
	padding: 72px var(--wm-gutter) 120px;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 56px;
	align-items: start;
}

@media (min-width: 980px) {
	.wm-quote {
		grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
	}

	.wm-quote__aside {
		position: sticky;
		top: calc(var(--wm-sticky-top) + 24px);
		transition: top 0.35s;
	}
}

.wm-quote__aside {
	display: flex;
	flex-direction: column;
	gap: 36px;
	max-width: 360px;
}

.wm-quote__aside > * {
	margin: 0;
}

/* Phones and tablets: the form first (it shows its own progress), the call box after it. */
@media (max-width: 979px) {
	.wm-quote {
		padding-top: 40px;
		gap: 40px;
	}

	.wm-quote__form {
		order: -1;
	}

	.wm-quote__aside {
		max-width: none;
	}

	.wm-quote__aside .wm-stepper {
		display: none;
	}
}

.wm-stepper {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: var(--wm-border);
}

.wm-stepper__item {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 18px 0;
	border-bottom: 1px solid var(--wm-ink);
}

.wm-stepper__mark {
	flex: none;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: var(--wm-white);
	border: var(--wm-border);
	font: 800 20px / 1 var(--wm-font-head);
	transition: background-color 0.3s, color 0.3s;
}

.wm-stepper__item.is-current .wm-stepper__mark {
	background: var(--wm-yellow);
}

.wm-stepper__item.is-done .wm-stepper__mark {
	background: var(--wm-ink);
	color: var(--wm-yellow);
	font-size: 0;
}

.wm-stepper__item.is-done .wm-stepper__mark::after {
	content: "✓";
	font-size: 20px;
}

.wm-stepper__label {
	font: 700 22px / 1 var(--wm-font-head);
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

.wm-call-box {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 28px;
	background: var(--wm-ink);
	color: var(--wm-white);
}

.wm-call-box > * {
	margin: 0;
}

.wm-call-box__title {
	font: 700 22px / 1.1 var(--wm-font-head);
	text-transform: uppercase;
}

.wm-call-box__phone {
	color: var(--wm-yellow);
	font: 800 36px / 1 var(--wm-font-head);
}

.wm-call-box__phone a:hover {
	color: var(--wm-white);
}

.wm-call-box .wm-squares {
	margin-top: 8px;
	font-size: 15px;
}

/* ------------------------------------------------------------------ Legal pages (privacy, cookies, legal notice) */

.wm-policy {
	box-sizing: border-box;
	max-width: var(--wm-container);
	margin-inline: auto;
	padding: 88px var(--wm-gutter) 120px;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 64px;
}

.wm-policy__toc {
	flex: 1 1 240px;
	max-width: 300px;
}

@media (min-width: 900px) {
	.wm-policy__toc {
		position: sticky;
		top: calc(var(--wm-sticky-top) + 24px);
	}
}

.wm-policy__body {
	flex: 999 1 520px;
	max-width: 800px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	font-size: 17px;
	line-height: 1.7;
	counter-reset: wm-policy;
}

.wm-policy__body > * {
	margin: 0;
}

.wm-policy__body > h2 {
	margin-top: 48px;
	font: 800 clamp(30px, 3vw, 42px) / 1 var(--wm-font-head);
	text-transform: uppercase;
	scroll-margin-top: calc(var(--wm-admin-bar) + 110px);
	counter-increment: wm-policy;
}

.wm-policy__body > h2:first-child {
	margin-top: 0;
}

.wm-policy__body > h2::before {
	content: counter(wm-policy, decimal-leading-zero);
	margin-right: 10px;
	padding: 0 6px;
	background: var(--wm-yellow);
}

.wm-policy__body a:not(.wp-block-button__link) {
	font-weight: 700;
	border-bottom: 2px solid var(--wm-yellow);
}

.wm-policy__body > .wm-policy__buttons {
	margin-block: 8px;
}

.wm-toc__list {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: var(--wm-border);
	font: 700 19px / 1.15 var(--wm-font-head);
	text-transform: uppercase;
}

.wm-toc__link {
	display: flex;
	gap: 8px;
	padding: 12px 0;
	border-bottom: 1px solid var(--wm-ink);
	transition: padding 0.2s, background-color 0.2s;
}

.wm-toc__link:hover {
	padding-left: 8px;
	background: var(--wm-yellow);
}

.wm-toc__num {
	flex: none;
	white-space: nowrap;
}

.wm-toc__num::after {
	content: " ·";
}

/* Cards of the data collected */
.wm-data-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
	gap: 2px;
	background: var(--wm-ink);
	border: var(--wm-border);
}

.wm-data-card {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 24px;
	background: var(--wm-white);
}

.wm-data-card > * {
	margin: 0;
}

.wm-data-card h3 {
	font: 800 24px / 1 var(--wm-font-head);
	text-transform: uppercase;
}

.wm-data-card p {
	font-size: 16px;
	line-height: 1.6;
}

/* Label / explanation rows */
.wm-defs {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: var(--wm-border);
	border-bottom: var(--wm-border);
}

.wm-defs li {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
	gap: 8px 32px;
	padding: 18px 0;
}

.wm-defs li + li {
	border-top: 1px solid var(--wm-ink);
}

.wm-defs li strong {
	font-weight: 700;
}

.wm-boxed-note {
	padding: 20px 24px;
	background: var(--wm-yellow);
	border: var(--wm-border);
	font-weight: 500;
}

.wm-authority {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 24px;
	border: var(--wm-border);
}

.wm-authority > * {
	margin: 0;
}

/* ------------------------------------------------------------------ Blog */

.wm-pinned-wrap {
	box-sizing: border-box;
	max-width: var(--wm-container);
	margin-inline: auto;
	padding-inline: var(--wm-gutter);
}

.wm-pinned {
	position: relative;
	z-index: 1;
	margin-top: -64px;
}

.wm-pinned__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.wm-feature-card {
	position: relative;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
	background: var(--wm-white);
	border: var(--wm-border);
	transition: background-color 0.25s;
}

.wm-feature-card:hover {
	background: var(--wm-yellow);
}

.wm-feature-card__media {
	margin: 0;
	min-height: 320px;
	overflow: hidden;
}

.wm-feature-card__media a,
.wm-feature-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 320px;
	object-fit: cover;
}

.wm-feature-card__body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 20px;
	padding: clamp(28px, 4vw, 56px);
}

.wm-feature-card__body > * {
	margin: 0;
}

.wm-feature-card__title {
	font: 800 clamp(34px, 3.6vw, 54px) / 0.95 var(--wm-font-head);
	text-transform: uppercase;
}

.wm-feature-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.wm-feature-card__excerpt {
	max-width: 560px;
	font-size: 17px;
	line-height: 1.6;
}

.wm-feature-card__excerpt p {
	margin: 0;
}

.wm-card-meta--inline .wm-feature-card__badge {
	margin: 0;
}

.wm-pin {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	background: var(--wm-ink);
	color: var(--wm-yellow);
	font: 700 16px / 1 var(--wm-font-head);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.wm-pin::before {
	content: "";
	width: 12px;
	height: 14px;
	background: currentColor;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3 1h8M4 1v5L2 9h10L10 6V1M7 9v5' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat;
}

.wm-read-more--big {
	position: relative;
	z-index: 1;
	border: 0;
	padding: 0;
	font-size: 20px;
}

.wm-posts {
	padding-top: 96px;
	padding-bottom: 120px;
}

.wm-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.wm-chip {
	padding: 12px 16px;
	background: var(--wm-white);
	border: var(--wm-border);
	font: 700 17px / 1 var(--wm-font-head);
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.wm-chip:hover,
.wm-chip.is-current {
	background: var(--wm-yellow);
}

.wm-empty {
	margin: 0;
	padding: 40px;
	border: 2px dashed var(--wm-ink);
	font-size: 17px;
}

/* The article ends with its own bottom space (prose.css), whether "Read next" follows or not. */
.wm-related-section {
	padding-top: 0;
	padding-bottom: 120px;
}

/* No other post yet: no "Read next" section. */
.wm-related-section:not(:has(.wm-post-card)) {
	display: none;
}

/* Once the request is sent, only the summary stays. */
.wm-quote__form:has(.wmcf-form--sent) > .wm-note {
	display: none;
}
