/*--------------------------------------------------------------
# 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-accent: #b39b74;
	--hs-accent-soft: rgba(179, 155, 116, 0.8);
	--hs-accent-line: rgba(179, 155, 116, 0.36);
	--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-accent);
	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-accent);
	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-lede {
	max-width: 38em;
	margin: clamp(28px, 3vw, 44px) 0 0;
	color: var(--hs-accent);
	font-size: clamp(16px, 1.35vw, 19px);
	line-height: 1.6;
}

.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);
}

/* Clear the WordPress admin bar for logged-in users (32px, or 46px on small screens). */
.hs.admin-bar .hs-masthead {
	top: 32px;
}

@media (max-width: 782px) {

	.hs.admin-bar .hs-masthead {
		top: 46px;
	}
}

.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-accent);
	--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-accent);
}

.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-accent);
	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-ivy);
}

/* 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;
}

.hs-services__note {
	max-width: 36em;
	margin: 28px 0 0;
	color: var(--hs-ink-muted);
	font-size: 12px;
	line-height: 1.6;
}

/*
 * The illustrations' 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. Both wrappers get the
 * paper colour because sticky and transforms isolate them from the section behind.
 */
.hs-services__art,
.hs-service__media {
	background: var(--hs-paper);
}

.hs-services__art img,
.hs-service__media 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;
}

/* Wide screens: a sticky panel that crossfades to the illustration for the service in view. */
.hs-services__art {
	position: sticky;
	top: clamp(80px, 14vh, 140px);
	aspect-ratio: 3 / 2;
	margin: 0;
}

.hs-services__art img {
	position: absolute;
	inset: 0;
	height: 100%;
	object-fit: contain;
	opacity: 0;
	transition: opacity 0.8s var(--hs-ease);
}

.hs-services__art img.is-active {
	opacity: 1;
}

.hs-services.is-tracking .hs-service {
	cursor: pointer;
	transition: opacity 0.5s var(--hs-ease), transform 1s var(--hs-ease);
}

.hs-services.is-tracking .hs-service.is-visible:not(.is-current) {
	opacity: 0.5;
}

.hs-services.is-tracking .hs-service.is-visible:not(.is-current):hover {
	opacity: 0.8;
}

.hs-service:focus-visible {
	outline: 2px solid var(--hs-ink);
	outline-offset: 6px;
}

/* Small screens show each illustration inline instead. */
.hs-service__media {
	display: none;
}

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

/*
 * Enquiry form: Gravity Forms ("gravity-theme" markup), styled to match the page.
 * Everything is prefixed with `.hs .hs-form .gform_wrapper.gravity-theme` so it sits over Gravity Forms' own stylesheet.
 */
.hs-form {
	max-width: 1120px;
	margin-top: clamp(48px, 6vw, 88px);
	--hs-field-size: clamp(20px, 2.1vw, 30px);
	--hs-error: #ffa48f;
}

/* Optional fields say so in their labels, so drop the "(Required)" markers and their legend. */
.hs-form .gform_heading,
.hs .hs-form .gform_wrapper.gravity-theme .gfield_required {
	display: none;
}

.hs .hs-form .gform_wrapper.gravity-theme .gform_fields {
	grid-column-gap: clamp(24px, 4vw, 64px);
	grid-row-gap: 8px;
}

.hs .hs-form .gform_wrapper.gravity-theme .gfield {
	position: relative;
}

.hs .hs-form .gform_wrapper.gravity-theme .gfield input:not([type="hidden"]),
.hs .hs-form .gform_wrapper.gravity-theme .gfield textarea {
	display: block;
	width: 100%;
	height: auto;
	margin: 0;
	padding: 30px 0 12px;
	border: 0;
	border-bottom: 1px solid var(--hs-accent-line);
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: var(--hs-accent);
	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-form .gform_wrapper.gravity-theme .gfield textarea {
	height: 160px;
	min-height: 160px;
	resize: vertical;
}

.hs .hs-form .gform_wrapper.gravity-theme .gfield input:focus,
.hs .hs-form .gform_wrapper.gravity-theme .gfield textarea:focus {
	border-bottom-color: var(--hs-accent);
	box-shadow: 0 1px 0 var(--hs-accent);
	outline: none;
}

.hs .hs-form .gform_wrapper.gravity-theme .gfield input:-webkit-autofill {
	-webkit-text-fill-color: var(--hs-accent);
	box-shadow: 0 0 0 1000px var(--hs-ivy) inset;
	caret-color: var(--hs-accent);
}

/* The label sits in the field like a placeholder, then lifts once there is focus or content. */
.hs .hs-form .gform_wrapper.gravity-theme .gfield_label {
	position: absolute;
	top: 30px;
	left: 0;
	z-index: 1;
	margin: 0;
	padding: 0;
	color: var(--hs-accent-soft);
	font-size: var(--hs-field-size);
	font-weight: 400;
	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 .hs-form .gform_wrapper.gravity-theme .gfield:focus-within .gfield_label,
.hs .hs-form .gform_wrapper.gravity-theme .gfield:has(input:not([type="hidden"]):not(:placeholder-shown)) .gfield_label,
.hs .hs-form .gform_wrapper.gravity-theme .gfield:has(textarea:not(:placeholder-shown)) .gfield_label {
	top: 4px;
	color: var(--hs-accent);
	font-size: 11px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

/* Visually hidden labels (the Turnstile field) stay hidden. */
.hs .hs-form .gform_wrapper.gravity-theme .hidden_label .gfield_label {
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
}

.hs .hs-form .gform_wrapper.gravity-theme .gfield--type-turnstile {
	margin-top: 24px;
}

/* Validation */
.hs .hs-form .gform_wrapper.gravity-theme .gform_validation_errors {
	margin: 0 0 24px;
	padding: 16px 22px;
	border: 1px solid var(--hs-error);
	border-radius: 16px;
	background: transparent;
	box-shadow: none;
}

.hs .hs-form .gform_wrapper.gravity-theme .gform_validation_errors .gform_submission_error {
	margin: 0;
	color: var(--hs-error);
	font-family: var(--hs-font);
	font-size: 15px;
	font-weight: 400;
	line-height: 1.5;
}

.hs .hs-form .gform_wrapper.gravity-theme .gform_validation_errors .gform-icon {
	display: none;
}

.hs .hs-form .gform_wrapper.gravity-theme .gfield_error .gfield_label {
	color: var(--hs-error);
}

.hs .hs-form .gform_wrapper.gravity-theme .gfield_error input:not([type="hidden"]),
.hs .hs-form .gform_wrapper.gravity-theme .gfield_error textarea {
	border: 0;
	border-bottom: 1px solid var(--hs-error);
}

.hs .hs-form .gform_wrapper.gravity-theme .gfield_validation_message {
	margin: 8px 0 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--hs-error);
	font-size: 13px;
}

.hs .hs-form .gform_wrapper.gravity-theme .gform_footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 20px 32px;
	margin: 36px 0 0;
	padding: 0;
}

.hs .hs-form .gform_wrapper.gravity-theme .gform_footer .hs-button {
	margin: 0;
}

/* Thank-you message shown in place of the form after sending. */
.hs-form .gform_confirmation_message {
	display: inline-block;
	padding: 16px 22px;
	border: 1px solid var(--hs-accent);
	border-radius: 16px;
	color: var(--hs-accent);
	font-size: 15px;
}

.hs .hs-button {
	display: inline-flex;
	align-items: center;
	gap: 16px;
	height: 58px;
	padding: 0 32px;
	border: 1px solid var(--hs-accent);
	border-radius: 999px;
	background: var(--hs-accent);
	color: var(--hs-black);
	font-family: var(--hs-font);
	font-size: 13px;
	line-height: 1;
	letter-spacing: 0.16em;
	text-decoration: none;
	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-accent);
}

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

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

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

.hs-form__alt a {
	color: var(--hs-accent);
	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-accent-line);
}

.hs-footer__emblem {
	height: 88px;
}

.hs .hs-footer__email {
	border-bottom: 1px solid var(--hs-accent-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-accent);
}

.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-accent);
	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-accent);
	font-size: 11px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

/* 404
--------------------------------------------- */
.hs-notfound {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	min-height: 100svh;
	padding: 120px var(--hs-gutter);
	background: var(--hs-ivy);
	text-align: center;
}

.hs-notfound__emblem {
	height: clamp(88px, 14vh, 130px);
	margin-bottom: clamp(32px, 5vh, 56px);
}

.hs-notfound .hs-kicker {
	margin-bottom: 20px;
}

/* !important to beat the base theme's global `h1 { font-size: 12px !important }`. */
.hs .hs-notfound__title {
	margin: 0;
	color: var(--hs-accent);
	font-size: clamp(28px, 4vw, 56px) !important;
	line-height: 1.1;
	letter-spacing: -0.012em;
	text-transform: none;
}

.hs-notfound__text {
	margin: 20px 0 40px;
	font-size: 16px;
	line-height: 1.6;
}

/* 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 {
		display: none;
	}

	.hs-service__media {
		display: block;
		grid-column: 1 / -1;
		margin-bottom: 20px;
	}

	.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;
		left: 8px;
		gap: 6px;
	}

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

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

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

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

/*
 * Phones (portrait, or landscape on a short touch screen): move the dock to the top.
 * Mobile browsers float their own toolbars over the bottom of the screen (iOS 26 Safari
 * won't draw fixed content beneath them), so bottom-fixed buttons can't be relied on.
 */
@media (max-width: 640px), (max-height: 500px) and (pointer: coarse) {

	.hs-dock {
		top: calc(8px + env(safe-area-inset-top, 0px));
		bottom: auto;
	}

	.hs.admin-bar .hs-dock {
		top: 54px;
	}

	.hs .hs-masthead {
		top: 56px;
	}

	.hs.admin-bar .hs-masthead {
		top: 102px;
	}

	.hs-hero__where {
		bottom: 40px;
	}

	.hs-footer {
		padding-bottom: 48px;
	}
}

@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;
	}

	.hs-services__art img {
		transition: none;
	}

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