/*--------------------------------------------------------------
# Homesmith home template
# Loaded only on page-home.php. Everything is scoped to .hs so the
# holding page and the base theme styles are left untouched.
--------------------------------------------------------------*/

.hs {
	--hs-black: #000;
	--hs-ivy: #0c1810;
	--hs-lime: #dcff2d;
	--hs-lime-dim: rgba(220, 255, 45, 0.62);
	--hs-lime-line: rgba(220, 255, 45, 0.24);
	--hs-paper: #f4f0e3;
	--hs-ink: #17241a;
	--hs-ink-muted: #545c48;
	--hs-ink-line: rgba(23, 36, 26, 0.18);
	--hs-font: "Maison Neue Extended", "Helvetica Neue", arial, sans-serif;
	--hs-gutter: clamp(20px, 5vw, 72px);
	--hs-max: 1320px;
	--hs-ease: cubic-bezier(0.2, 0.7, 0.2, 1);

	margin: 0;
	background: var(--hs-black);
	color: var(--hs-lime);
	font-family: var(--hs-font);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizelegibility;
}

html.js {
	scroll-behavior: smooth;
}

/* The brand font has a single weight, so never let the browser fake bold. */
.hs h1,
.hs h2,
.hs h3,
.hs strong,
.hs button {
	font-weight: 400;
}

.hs ::selection {
	background: var(--hs-lime);
	color: var(--hs-black);
}

.hs a,
.hs a:visited,
.hs a:hover,
.hs a:active {
	color: inherit;
}

.hs a:focus-visible,
.hs button:focus-visible {
	outline: 2px solid currentcolor;
	outline-offset: 4px;
}

.hs-wrap {
	width: min(100% - 2 * var(--hs-gutter), var(--hs-max));
	margin-inline: auto;
}

.hs-kicker {
	margin: 0 0 clamp(28px, 4vw, 56px);
	font-size: 12px;
	line-height: 1.4;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.hs-statement {
	max-width: 1120px;
	margin: 0;
	font-size: clamp(26px, 3.6vw, 54px);
	line-height: 1.16;
	letter-spacing: -0.012em;
}

.hs-section {
	padding: clamp(96px, 14vw, 200px) 0;
}

/* Masthead
--------------------------------------------- */
.hs .hs-masthead {
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	width: auto;
	padding: 26px var(--hs-gutter);
}

.hs-masthead__name,
.hs-masthead__tag {
	margin: 0;
	font-size: 12px;
	letter-spacing: 0.16em;
	text-decoration: none;
	text-transform: uppercase;
}

/* Dock: pill navigation fixed to the bottom of the viewport
--------------------------------------------- */
.hs-dock {
	position: fixed;
	right: 12px;
	bottom: 12px;
	left: 12px;
	z-index: 40;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	--hs-dock-fg: var(--hs-lime);
	--hs-dock-bg: rgba(6, 9, 7, 0.72);
	--hs-dock-active-fg: var(--hs-black);
}

.hs-dock.is-light {
	--hs-dock-fg: var(--hs-ink);
	--hs-dock-bg: rgba(244, 240, 227, 0.78);
	--hs-dock-active-fg: var(--hs-paper);
}

.hs .hs-dock a {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 42px;
	border: 1px solid var(--hs-dock-fg);
	border-radius: 999px;
	background: var(--hs-dock-bg);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	color: var(--hs-dock-fg);
	font-size: 12px;
	letter-spacing: 0.16em;
	text-decoration: none;
	text-transform: uppercase;
	transition: background-color 0.3s var(--hs-ease), color 0.3s var(--hs-ease), border-color 0.3s var(--hs-ease);
}

.hs .hs-dock a:hover,
.hs .hs-dock a[aria-current="true"] {
	background: var(--hs-dock-fg);
	color: var(--hs-dock-active-fg);
}

/* Hero
--------------------------------------------- */
.hs-hero {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	min-height: 100svh;
	padding: 120px var(--hs-gutter) 150px;
	overflow: hidden;
	isolation: isolate;
	text-align: center;
}

.hs-hero__media {
	position: absolute;
	inset: 0;
	z-index: -2;
	background: var(--hs-black) url(../background.jpg) center / cover no-repeat;
	background-image: image-set(url(../img/hero-door.webp) type("image/webp"), url(../background.jpg) type("image/jpeg"));
	animation: hs-settle 2.4s var(--hs-ease) both;
}

.hs-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.08) 30%, rgba(0, 0, 0, 0.2) 65%, rgba(0, 0, 0, 0.8) 100%);
}

.hs-hero__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: clamp(28px, 4.5vh, 52px);
}

.hs-emblem {
	display: block;
	width: auto;
	color: var(--hs-lime);
}

.hs-hero__emblem {
	height: clamp(96px, 16vh, 150px);
	animation: hs-rise 1.2s 0.3s var(--hs-ease) both;
}

/* !important to beat the base theme's global `h1 { font-size: 12px !important }`. */
.hs .hs-hero__title {
	margin: 0;
	color: var(--hs-lime);
	font-size: clamp(28px, 4.6vw, 64px) !important;
	line-height: 1.1;
	letter-spacing: -0.012em;
	text-transform: none;
	animation: hs-rise 1.2s 0.55s var(--hs-ease) both;
}

.hs-hero__title span {
	display: block;
}

.hs-hero__where {
	position: absolute;
	right: 0;
	bottom: 88px;
	left: 0;
	margin: 0;
	font-size: 12px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	animation: hs-rise 1.2s 0.8s var(--hs-ease) both;
}

@keyframes hs-settle {

	from {
		opacity: 0;
		transform: scale(1.06);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes hs-rise {

	from {
		opacity: 0;
		transform: translateY(16px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

/* About
--------------------------------------------- */
.hs-about {
	background: var(--hs-black);
}

/* Services
--------------------------------------------- */
.hs-services {
	background: var(--hs-paper);
	color: var(--hs-ink);
}

.hs-services__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	gap: clamp(40px, 6vw, 110px);
	align-items: start;
}

.hs-services__items {
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--hs-ink-line);
	list-style: none;
}

.hs-service {
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr);
	column-gap: 16px;
	padding: clamp(24px, 3vw, 38px) 0;
	border-bottom: 1px solid var(--hs-ink-line);
}

.hs-service__num {
	grid-row: span 2;
	padding-top: 0.7em;
	color: var(--hs-ink-muted);
	font-size: 12px;
	letter-spacing: 0.16em;
}

.hs-service__title {
	margin: 0 0 10px;
	font-size: clamp(22px, 2.3vw, 34px);
	line-height: 1.15;
	letter-spacing: -0.01em;
}

.hs-service__desc {
	max-width: 34em;
	margin: 0;
	color: var(--hs-ink-muted);
	font-size: 15px;
	line-height: 1.6;
}

/* Sticky makes this its own stacking context, so give the image something to blend against. */
.hs-services__art {
	position: sticky;
	top: clamp(80px, 14vh, 140px);
	margin: 0;
	background: var(--hs-paper);
}

/*
 * The illustration's paper is lighter than --hs-paper on every channel, so `darken`
 * swaps it for the section colour and leaves the paint untouched. The mask feathers
 * the edges of the wash so it reads as painted onto the page.
 */
.hs-services__art img {
	display: block;
	width: 100%;
	height: auto;
	mix-blend-mode: darken;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent), linear-gradient(180deg, transparent, #000 5%, #000 92%, transparent);
	-webkit-mask-composite: source-in;
	mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent), linear-gradient(180deg, transparent, #000 5%, #000 92%, transparent);
	mask-composite: intersect;
}

/* Enquire
--------------------------------------------- */
.hs-enquire {
	background: var(--hs-ivy);
}

.hs-notice {
	display: inline-block;
	margin: clamp(32px, 4vw, 48px) 0 0;
	padding: 16px 22px;
	border: 1px solid var(--hs-lime);
	border-radius: 16px;
	font-size: 15px;
}

.hs-notice--error {
	border-color: #ffa48f;
	color: #ffa48f;
}

.hs-form {
	position: relative;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px clamp(24px, 4vw, 64px);
	max-width: 1120px;
	margin-top: clamp(48px, 6vw, 88px);
	--hs-field-size: clamp(20px, 2.1vw, 30px);
}

.hs-form__trap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.hs-field {
	position: relative;
}

.hs-field--full,
.hs-form__actions {
	grid-column: 1 / -1;
}

.hs .hs-field input,
.hs .hs-field textarea {
	display: block;
	width: 100%;
	margin: 0;
	padding: 30px 0 12px;
	border: 0;
	border-bottom: 1px solid var(--hs-lime-line);
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: var(--hs-lime);
	font-family: var(--hs-font);
	font-size: var(--hs-field-size);
	line-height: 1.3;
	transition: border-color 0.3s var(--hs-ease), box-shadow 0.3s var(--hs-ease);
}

.hs .hs-field textarea {
	min-height: 160px;
	resize: vertical;
}

.hs .hs-field input:focus,
.hs .hs-field textarea:focus {
	border-bottom-color: var(--hs-lime);
	box-shadow: 0 1px 0 var(--hs-lime);
	outline: none;
}

.hs .hs-field input:-webkit-autofill {
	-webkit-text-fill-color: var(--hs-lime);
	box-shadow: 0 0 0 1000px var(--hs-ivy) inset;
	caret-color: var(--hs-lime);
}

/* The label sits in the field like a placeholder, then lifts once there is focus or content. */
.hs-field label {
	position: absolute;
	top: 30px;
	left: 0;
	color: var(--hs-lime-dim);
	font-size: var(--hs-field-size);
	line-height: 1.3;
	pointer-events: none;
	transition: top 0.25s var(--hs-ease), font-size 0.25s var(--hs-ease), letter-spacing 0.25s var(--hs-ease), color 0.25s var(--hs-ease);
}

.hs-field input:focus + label,
.hs-field input:not(:placeholder-shown) + label,
.hs-field textarea:focus + label,
.hs-field textarea:not(:placeholder-shown) + label {
	top: 4px;
	color: var(--hs-lime);
	font-size: 11px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.hs-form__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 20px 32px;
	margin-top: 36px;
}

.hs .hs-button {
	display: inline-flex;
	align-items: center;
	gap: 16px;
	height: 58px;
	padding: 0 32px;
	border: 1px solid var(--hs-lime);
	border-radius: 999px;
	background: var(--hs-lime);
	color: var(--hs-black);
	font-family: var(--hs-font);
	font-size: 13px;
	line-height: 1;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.3s var(--hs-ease), color 0.3s var(--hs-ease);
}

.hs .hs-button span {
	font-size: 18px;
	letter-spacing: 0;
	transition: transform 0.3s var(--hs-ease);
}

.hs .hs-button:hover {
	background: transparent;
	color: var(--hs-lime);
}

.hs .hs-button:hover span {
	transform: translateX(4px);
}

.hs .hs-button:disabled {
	opacity: 0.6;
	cursor: progress;
}

.hs-form__alt {
	margin: 0;
	color: var(--hs-lime-dim);
	font-size: 14px;
}

.hs-form__alt a {
	color: var(--hs-lime);
	text-underline-offset: 4px;
}

/* Footer
--------------------------------------------- */
.hs-footer {
	padding: clamp(80px, 10vw, 140px) 0 96px;
	background: var(--hs-black);
}

.hs-footer__top {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 32px;
	padding-bottom: clamp(40px, 6vw, 72px);
	border-bottom: 1px solid var(--hs-lime-line);
}

.hs-footer__emblem {
	height: 88px;
}

.hs .hs-footer__email {
	border-bottom: 1px solid var(--hs-lime-line);
	font-size: clamp(22px, 3.4vw, 48px);
	line-height: 1.2;
	text-decoration: none;
	transition: border-color 0.3s var(--hs-ease);
}

.hs .hs-footer__email:hover {
	border-bottom-color: var(--hs-lime);
}

.hs-footer__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 32px;
	padding: 40px 0;
}

.hs-footer__grid p,
.hs-footer__social {
	margin: 0;
	font-size: 14px;
	line-height: 1.7;
}

.hs-footer__grid .hs-kicker {
	margin-bottom: 10px;
	color: var(--hs-lime-dim);
	font-size: 11px;
}

.hs-footer__grid a {
	text-decoration: none;
}

.hs-footer__grid a:hover {
	text-decoration: underline;
	text-underline-offset: 4px;
}

.hs-footer__social {
	padding: 0;
	list-style: none;
}

.hs-footer__legal {
	margin: 0;
	color: var(--hs-lime-dim);
	font-size: 11px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

/* Scroll reveal (only when JS is running)
--------------------------------------------- */
.js .hs-reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 1s var(--hs-ease), transform 1s var(--hs-ease);
}

.js .hs-reveal.is-visible {
	opacity: 1;
	transform: none;
}

/* Responsive
--------------------------------------------- */
@media (max-width: 900px) {

	.hs-services__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.hs-services__art {
		position: static;
		order: -1;
	}

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

@media (max-width: 640px) {

	.hs-masthead__tag {
		display: none;
	}

	.hs .hs-masthead {
		justify-content: center;
	}

	.hs-dock {
		right: 8px;
		bottom: 8px;
		left: 8px;
		gap: 6px;
	}

	.hs .hs-dock a {
		height: 40px;
		font-size: 11px;
		letter-spacing: 0.12em;
	}

	.hs-hero__where {
		bottom: 76px;
	}

	.hs-service {
		grid-template-columns: 40px minmax(0, 1fr);
		column-gap: 8px;
	}

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

	.hs .hs-button {
		justify-content: center;
		width: 100%;
	}

	.hs-footer__emblem {
		height: 64px;
	}
}

@media (prefers-reduced-motion: reduce) {

	html.js {
		scroll-behavior: auto;
	}

	.hs-hero__media,
	.hs-hero__emblem,
	.hs .hs-hero__title,
	.hs-hero__where {
		animation: none;
	}

	.js .hs-reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}
}
