/*
Theme Name: DUCTIL
Description: Lightweight WordPress theme with an editable homepage pattern for Ductil Co., Limited.
Version: 1.1.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: ductil
*/

@font-face {
	font-family: Overpass;
	src: url("assets/overpass.woff2") format("woff2");
	font-weight: 400 900;
	font-display: swap;
}

@font-face {
	font-family: Poppins;
	src: url("assets/poppins.woff2") format("woff2");
	font-weight: 400;
	font-display: swap;
}

@font-face {
	font-family: Poppins;
	src: url("assets/poppins-bold.woff2") format("woff2");
	font-weight: 700;
	font-display: swap;
}

.ductil-site {
	margin: 0;
	background: #fff;
	color: #5d6063;
	font: 14px/1.84 Poppins, Arial, sans-serif;
}

.ductil-header-inner,
.ductil-intro,
.ductil-reading {
	box-sizing: border-box;
	width: min(100% - 48px, 1140px);
	margin-inline: auto;
}

.ductil-header-inner {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	flex-wrap: wrap;
	column-gap: 24px;
	padding: 34px 15px 0;
	min-height: 112px;
}

.ductil-brand {
	max-width: min(100%, 400px);
	height: 100px;
}

.ductil-brand a,
.ductil-brand img {
	display: block;
}

.ductil-brand img {
	width: 400px;
	max-width: 100%;
	height: auto;
}

.ductil-brand img.custom-logo {
	max-height: 100px;
	width: auto;
	object-fit: contain;
}

.ductil-nav {
	box-sizing: border-box;
	max-width: 100%;
	margin-inline-start: auto;
	padding: 0 16px 25px 0;
	font: 700 14px/1.3 Overpass, Arial, sans-serif;
}

.ductil-nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 24px;
	list-style: none;
	padding: 0;
	margin: 0;
}

.ductil-nav a {
	overflow-wrap: anywhere;
	color: #006f9b;
	text-decoration: none;
}

.ductil-nav a:hover,
.ductil-nav a:focus-visible {
	text-decoration: underline;
}

.ductil-skip {
	position: absolute;
	z-index: 100000;
	inset-inline-start: 12px;
	top: 12px;
	padding: 8px 12px;
	background: #fff;
	color: #20262b;
}

.ductil-skip:not(:focus) {
	clip-path: inset(50%);
}

.ductil-home {
	overflow: hidden;
	background: #fff;
	color: #5d6063;
	font: 14px/1.84 Poppins, Arial, sans-serif;
}

.ductil-home > .ductil-intro {
	display: grid;
	grid-template-columns: 42.8% clamp(395px, calc(50vw - 230px), 445px) 1fr;
	align-items: center;
	padding: 95px 0 105px;
	margin-block: 0;
	position: relative;
}

.ductil-intro::after {
	content: "";
	position: absolute;
	inset: auto 15px 45px;
	border-top: 1px solid #e9e9e9;
}

.ductil-home > .ductil-intro::before {
	content: "";
	position: absolute;
	z-index: 0;
	left: min(-24px, (1140px - 100vw) / 2);
	bottom: 0;
	width: 217px;
	height: 240px;
	background: url("assets/arch-plan-3.jpg") left bottom / contain no-repeat;
	pointer-events: none;
}

.ductil-home > .ductil-intro > .ductil-gallery {
	box-sizing: border-box;
	justify-self: end;
	width: min(100% - 38px, 386px);
	margin: 0 7px 0 0;
	transform: translateY(14px);
	background: url("assets/arch-plan-2.png") left center / min(80%, 318px) auto no-repeat;
}

.ductil-gallery .wp-block-image {
	margin: 0;
}

.ductil-gallery img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: auto 1;
	mix-blend-mode: multiply;
}

.ductil-home > .ductil-intro > .ductil-copy {
	position: relative;
	margin: 0;
	isolation: isolate;
}

.ductil-copy::before {
	content: "HIGH TECH\A FOR YOUR\A CONCRETE" / "";
	position: absolute;
	z-index: -1;
	left: 9px;
	top: 148px;
	white-space: pre;
	color: transparent;
	-webkit-text-stroke: 1px #f0f1f2;
	font: 900 clamp(84px, 11.6vw, 145px)/.75 Overpass, Arial, sans-serif;
	letter-spacing: -.055em;
	pointer-events: none;
}

.ductil-copy > .wp-block-heading,
.ductil-contact h2 {
	margin: 0;
	color: #212529;
	font: 700 21px/1.2 Overpass, Arial, sans-serif;
	letter-spacing: -.025em;
}

.ductil-copy > .wp-block-heading {
	padding-left: 48px;
}

.ductil-copy > .wp-block-heading::after {
	content: "";
	display: block;
	width: 120px;
	height: 15px;
	margin: 15px 0 22px;
	background: url("assets/divider.jpg") center / contain no-repeat;
}

.ductil-copy > p {
	margin: 0 0 34px;
}

.ductil-copy > p:last-child {
	margin-bottom: 0;
}

.ductil-contact {
	margin: 0;
	padding: 94px 24px 86px;
	background: #33b5bf;
	color: #123437;
}

.ductil-contact > .ductil-contact-inner {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
	width: min(100%, 744px);
	margin: 0 auto;
}

.ductil-contact h2,
.ductil-contact p,
.ductil-contact a {
	color: inherit;
}

.ductil-contact-inner p {
	margin: 0;
	font-size: 13px;
	font-weight: 700;
	overflow-wrap: anywhere;
}

.ductil-contact > .ductil-copyright {
	margin: 64px auto 0;
	padding-top: 61px;
	max-width: 1110px;
	border-top: 1px solid rgb(18 52 55 / 13%);
	text-align: center;
	font-size: 13px;
}

.ductil-reading {
	padding-block: 48px;
}

@media (max-width: 1199px) {
	.ductil-header-inner,
	.ductil-intro,
	.ductil-reading {
		max-width: 960px;
	}

	.ductil-home > .ductil-intro {
		grid-template-columns: 42% 52% 1fr;
	}
}

@media (max-width: 991px) {
	.ductil-header-inner,
	.ductil-intro,
	.ductil-reading {
		max-width: 720px;
	}

	.ductil-home > .ductil-intro {
		grid-template-columns: 1fr;
		gap: 46px;
		padding: 53px 15px 80px;
	}

	.ductil-home > .ductil-intro > .ductil-gallery {
		justify-self: center;
		width: min(78%, 360px);
		margin: 0;
		transform: none;
	}

	.ductil-home > .ductil-intro::before {
		opacity: .25;
	}

	.ductil-copy::before {
		left: 0;
		font-size: clamp(55px, 11.2vw, 115px);
	}

	.ductil-copy > .wp-block-heading {
		padding-left: 0;
	}
}

@media (max-width: 580px) {
	.ductil-header-inner {
		width: calc(100% - 36px);
		padding: 18px 0 0;
		min-height: 0;
		align-items: center;
		column-gap: 16px;
	}

	.ductil-brand {
		max-width: min(69%, 260px);
		height: auto;
	}

	.ductil-nav {
		padding: 8px 0;
	}

	.ductil-home > .ductil-intro {
		width: calc(100% - 36px);
		padding-inline: 0;
	}

	.ductil-intro::after {
		inset-inline: 0;
	}

	.ductil-contact {
		padding: 48px 20px;
	}

	.ductil-contact > .ductil-contact-inner {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.ductil-contact-inner p + h2 {
		margin-top: 18px;
	}

	.ductil-contact > .ductil-copyright {
		margin-top: 36px;
		padding-top: 29px;
	}
}
