/*
 * "Statement" page layout: hero (image + gradient overlay + curved bottom edge) and a text section.
 * Markup: blocks with classes wm-statement-hero / wm-statement-body (see docs/pages/tsuria-test.html).
 * Breakpoints follow the reference design: desktop >=1025px, tablet <=1024px, mobile <=767px.
 */

@font-face {
	font-family: "Sugiara";
	font-style: normal;
	font-weight: normal;
	font-display: swap;
	src: url("../fonts/sugiara.woff") format("woff"),
		url("../fonts/sugiara.ttf") format("truetype");
}

:root {
	--wm-hero-image: url("../img/017.jpg");
	--wm-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%23fff' d='M499.99 176h-59.87l-16.64-41.6C406.38 91.63 365.57 64 319.5 64h-127c-46.06 0-86.88 27.63-103.99 70.4L71.87 176H12.01C4.2 176-1.53 183.34.37 190.91l6 24C7.7 220.25 12.5 224 18.01 224h20.07C24.65 235.73 16 252.78 16 272v48c0 16.12 6.16 30.67 16 41.93V416c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-32h256v32c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-54.07c9.84-11.25 16-25.8 16-41.93v-48c0-19.22-8.65-36.27-22.07-48H494c5.51 0 10.31-3.75 11.64-9.09l6-24c1.89-7.57-3.84-14.91-11.65-14.91zm-352.06-17.83c7.29-18.22 24.94-30.17 44.57-30.17h127c19.63 0 37.28 11.95 44.57 30.17L384 208H128l19.93-49.83zM96 319.8c-19.2 0-32-12.76-32-31.9S76.8 256 96 256s48 28.71 48 47.85-28.8 15.95-48 15.95zm320 0c-19.2 0-48 3.19-48-15.95S396.8 256 416 256s32 12.76 32 31.9-12.8 31.9-32 31.9z'/%3E%3C/svg%3E");
	--wm-text: #000;
	--wm-body-font: "Heebo", sans-serif;
	--wm-heading-font: "Sugiara", sans-serif;
}

/* Full-width canvas: sections manage their own width */
body:not([class*="elementor-page-"]) .site-main.wm-fullwidth,
body .site-main.wm-fullwidth {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}

/* ---------- Hero ---------- */
.wm-statement-hero {
	position: relative;
	overflow-x: hidden;
	overflow-x: clip; /* shape is wider than the hero; keep vertical overflow visible so it can overshoot the bottom edge */
	margin: 0;
	padding: 100px 0 140px;
	background-color: #fff;
	background-image: var(--wm-hero-image);
	background-position: center center;
	background-repeat: no-repeat;
	background-size: 100% auto;
	text-align: center;
}

/* gradient overlay */
.wm-statement-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: linear-gradient(0deg, #00000099 76%, #fff 100%);
	opacity: 0.38;
	pointer-events: none;
}

/* curved bottom edge */
.wm-statement-hero::after {
	content: "";
	position: absolute;
	bottom: -1px;
	left: 50%;
	width: calc(113% + 1.3px);
	height: 68px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100' preserveAspectRatio='none'%3E%3Cpath fill='%23fff' d='M1000,4.3V0H0v4.3C0.9,23.1,126.7,99.2,500,100S1000,22.7,1000,4.3z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
	transform: translateX(-50%) rotate(180deg);
	pointer-events: none;
}

.wm-statement-hero__inner {
	position: relative;
	z-index: 1;
	box-sizing: border-box;
	max-width: 700px;
	margin: 0 auto;
	padding: 0;
}

.wm-statement-hero .wm-statement-hero__inner h1 {
	position: relative;
	box-sizing: border-box;
	width: fit-content;
	max-width: 100%;
	margin: 60px auto;
	padding: 0;
	font-family: var(--wm-heading-font);
	font-size: 7vw;
	font-weight: 700;
	line-height: 1.4;
	color: #fff;
	text-align: center;
	text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

/* leaf ornaments on both sides of the heading (Font Awesome "car", inlined) */
.wm-statement-hero .wm-statement-hero__inner h1::before,
.wm-statement-hero .wm-statement-hero__inner h1::after {
	content: "";
	position: absolute;
	top: 53%;
	width: 56px;
	height: 50px;
	background: var(--wm-icon) center / contain no-repeat;
	text-shadow: none;
}

.wm-statement-hero .wm-statement-hero__inner h1::before {
	left: -95px;
	transform: translateY(-70%) scaleX(-1);
}

.wm-statement-hero .wm-statement-hero__inner h1::after {
	right: -95px;
	transform: translateY(-70%);
}

/* ---------- Text section ---------- */
.wm-statement-body {
	margin: 0;
	padding: 80px 0 60px;
	background: transparent;
	font-family: var(--wm-body-font);
	font-size: 16px;
	line-height: 1.857142857;
	color: var(--wm-text);
}

.wm-statement-body__inner {
	box-sizing: border-box;
	max-width: 1140px;
	margin: 0 auto;
	padding: 0;
}

.wm-statement-body .wm-statement-body__inner p,
.wm-statement-body .wm-statement-body__inner li {
	font-family: var(--wm-body-font);
	font-size: inherit;
	font-weight: 400;
	line-height: 1.857142857;
	color: var(--wm-text);
	text-align: start;
}

.wm-statement-body .wm-statement-body__inner p {
	margin: 0 0 1em;
}

.wm-statement-body .wm-statement-body__inner ul {
	margin: 0 3em 1.5em 0;
	padding: 0;
	list-style: disc;
}

.wm-statement-body .wm-statement-body__inner li {
	margin: 0;
}

/* vertical gap that replaces the empty &nbsp; paragraphs of the original */
.wm-statement-body .wm-statement-body__inner .wp-block-spacer {
	height: 2.857142857em !important; /* = empty line (1.857em) + p margin (1em) */
	margin: 0;
}

/* ---------- Tablet (<= 1024px) ---------- */
@media (max-width: 1024px) {
	.wm-statement-hero {
		padding: 160px 0 104px;
		background-size: cover;
	}

	.wm-statement-body {
		padding: 80px 0;
	}

	.wm-statement-body__inner {
		max-width: 1024px;
	}
}

/* ---------- Mobile (<= 767px) ---------- */
@media (max-width: 767px) {
	.wm-statement-hero {
		padding: 120px 0 100px;
	}

	/* the reference site's extra rule wins over its own 30px: heading is 50px on phones */
	.wm-statement-hero .wm-statement-hero__inner h1 {
		margin: 60px auto;
		padding: 0 55px;
		font-size: 50px;
	}

	.wm-statement-hero .wm-statement-hero__inner h1::before,
	.wm-statement-hero .wm-statement-hero__inner h1::after {
		width: 45px;
		height: 40px;
	}

	.wm-statement-hero .wm-statement-hero__inner h1::before {
		left: 3px;
	}

	.wm-statement-hero .wm-statement-hero__inner h1::after {
		right: 3px;
	}

	.wm-statement-body {
		padding: 64px 24px;
	}
}

/* ---------- Small phones (<= 544px): the reference scales its root font to 91.2% ---------- */
@media (max-width: 544px) {
	.wm-statement-body {
		font-size: 14.592px;
	}
}
