@font-face {
	font-family: "HMH GT Walsheim";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("/wp-content/themes/homemadehomes/src/assets/fonts/GT-Walsheim-Regular.woff2") format("woff2");
}

@font-face {
	font-family: "HMH GT Walsheim";
	font-style: normal;
	font-weight: 500 700;
	font-display: swap;
	src: url("/wp-content/themes/homemadehomes/src/assets/fonts/GT-Walsheim-Medium.woff2") format("woff2");
}

@font-face {
	font-family: "HMH Clearface";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("/wp-content/themes/homemadehomes/src/assets/fonts/3B107E_0_0.woff2") format("woff2");
}

:where(.hmh-popup-layer, .hmh-announcement-root) {
	--hmh-raspberry: #db365e;
	--hmh-navy: #2e4066;
	--hmh-navy-dark: #213252;
	--hmh-yellow: #faeb89;
	--hmh-ink: #201e28;
	--hmh-white: #fff;
	--hmh-surface: #f0f0f0;
	--hmh-line: rgba(46, 64, 102, 0.28);
	--hmh-serif: "HMH Clearface", "ClearfaceStd-Regular", "Clearface Std", "Lora", Georgia, serif;
	--hmh-sans: "HMH GT Walsheim", "GT-Walsheim-Regular", "GT Walsheim", "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.hmh-popup-layer *,
.hmh-popup-layer *::before,
.hmh-popup-layer *::after,
.hmh-announcement-root *,
.hmh-announcement-root *::before,
.hmh-announcement-root *::after {
	box-sizing: border-box;
}

.hmh-popup-layer[hidden],
.hmh-announcement-root[hidden] {
	display: none !important;
}

.hmh-popup .screen-reader-text {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	clip-path: inset(50%) !important;
	border: 0 !important;
	white-space: nowrap !important;
}

.hmh-popup-layer {
	position: fixed;
	z-index: 999980;
	left: 26px;
	bottom: 26px;
	width: min(420px, calc(100vw - 52px));
	pointer-events: none;
}

.hmh-popup {
	position: relative;
	width: 100%;
	border: 1px solid var(--hmh-line);
	border-top: 5px solid var(--hmh-raspberry);
	border-radius: 12px;
	padding: 28px;
	color: var(--hmh-ink);
	background: var(--hmh-white);
	box-shadow: 0 22px 55px rgba(32, 30, 40, 0.22), 8px 8px 0 rgba(46, 64, 102, 0.1);
	font-family: var(--hmh-sans);
	font-size: 16px;
	line-height: 1.55;
	pointer-events: auto;
	animation: hmh-popup-in 360ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hmh-popup__close,
.hmh-announcement__close {
	display: inline-grid;
	place-items: center;
	border: 0;
	padding: 0;
	cursor: pointer;
}

.hmh-popup__close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	color: var(--hmh-navy);
	background: var(--hmh-surface);
}

.hmh-popup__close:hover,
.hmh-popup__close:focus-visible {
	color: var(--hmh-white);
	background: var(--hmh-navy);
}

.hmh-popup__close svg,
.hmh-announcement__close svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
}

.hmh-popup__eyebrow {
	margin: 0 48px 8px 0 !important;
	color: var(--hmh-raspberry) !important;
	font-family: var(--hmh-sans) !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	line-height: 1.3 !important;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.hmh-popup h2 {
	margin: 0 44px 12px 0 !important;
	color: var(--hmh-navy) !important;
	font-family: var(--hmh-serif) !important;
	font-size: clamp(28px, 3vw, 36px) !important;
	font-weight: 400 !important;
	line-height: 1.12 !important;
	letter-spacing: normal !important;
}

.hmh-popup__description {
	margin: 0 0 20px !important;
	color: var(--hmh-ink) !important;
	font-family: var(--hmh-sans) !important;
	font-size: 16px !important;
	line-height: 1.55 !important;
}

.hmh-popup__meta {
	display: grid;
	gap: 9px;
	margin: 0 0 22px;
	border-top: 1px solid var(--hmh-line);
	padding-top: 16px;
}

.hmh-popup__meta > div {
	display: grid;
	grid-template-columns: 22px minmax(0, 1fr);
	gap: 10px;
	align-items: center;
}

.hmh-popup__meta svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: var(--hmh-raspberry);
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.hmh-popup__meta dd {
	margin: 0 !important;
	color: var(--hmh-navy) !important;
	font-family: var(--hmh-sans) !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	line-height: 1.35 !important;
}

.hmh-popup__cta {
	display: inline-flex;
	min-height: 48px;
	align-items: center;
	justify-content: center;
	gap: 10px;
	border: 2px solid var(--hmh-raspberry);
	border-radius: 999px;
	padding: 12px 24px;
	color: var(--hmh-white) !important;
	background: var(--hmh-raspberry);
	font-family: var(--hmh-sans) !important;
	font-size: 16px !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
	text-decoration: none !important;
	transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.hmh-popup__cta:hover {
	border-color: var(--hmh-navy);
	color: var(--hmh-white) !important;
	background: var(--hmh-navy);
	transform: translateY(-2px);
}

.hmh-popup__cta svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.hmh-popup :where(a, button):focus-visible,
.hmh-announcement :where(a, button):focus-visible {
	outline: 3px solid var(--hmh-yellow);
	outline-offset: 3px;
}

.hmh-announcement-root {
	position: sticky;
	z-index: 999990;
	top: 0;
	width: 100%;
}

.hmh-announcement {
	position: relative;
	display: flex;
	min-height: 58px;
	align-items: center;
	justify-content: center;
	padding: 10px 58px 10px 20px;
	color: var(--hmh-white);
	background: var(--hmh-navy);
	box-shadow: 0 3px 12px rgba(32, 30, 40, 0.15);
	font-family: var(--hmh-sans);
}

.hmh-announcement__inner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
	max-width: 1180px;
	text-align: center;
}

.hmh-announcement p {
	margin: 0 !important;
	color: var(--hmh-white) !important;
	font-family: var(--hmh-sans) !important;
	font-size: 16px !important;
	font-weight: 500 !important;
	line-height: 1.4 !important;
}

.hmh-announcement__cta {
	display: inline-flex;
	flex: 0 0 auto;
	min-height: 38px;
	align-items: center;
	justify-content: center;
	border: 2px solid var(--hmh-yellow);
	border-radius: 999px;
	padding: 7px 18px;
	color: var(--hmh-navy) !important;
	background: var(--hmh-yellow);
	font-family: var(--hmh-sans) !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	text-decoration: none !important;
}

.hmh-announcement__cta:hover {
	border-color: var(--hmh-white);
	color: var(--hmh-navy) !important;
	background: var(--hmh-white);
}

.hmh-announcement__close {
	position: absolute;
	top: 50%;
	right: 16px;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	color: var(--hmh-white);
	background: transparent;
	transform: translateY(-50%);
}

.hmh-announcement__close:hover {
	color: var(--hmh-navy);
	background: var(--hmh-yellow);
}

@keyframes hmh-popup-in {
	from { opacity: 0; transform: translateY(18px) scale(0.98); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 640px) {
	.hmh-popup-layer {
		inset: 0;
		display: grid;
		width: auto;
		place-items: center;
		padding: 18px;
	}

	.hmh-popup {
		width: min(100%, 390px);
		max-height: calc(100vh - 36px);
		max-height: calc(100dvh - 36px);
		overflow-y: auto;
		padding: 25px 22px 24px;
	}

	.hmh-popup h2 {
		font-size: 30px !important;
	}

	.hmh-popup__cta {
		width: 100%;
	}

	.hmh-announcement {
		padding: 13px 52px 13px 16px;
	}

	.hmh-announcement__inner {
		align-items: stretch;
		flex-direction: column;
		gap: 10px;
		text-align: left;
	}

	.hmh-announcement__cta {
		align-self: flex-start;
	}

	.hmh-announcement__close {
		right: 8px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hmh-popup {
		animation: none;
	}

	.hmh-popup__cta {
		transition: none;
	}
}
