/* BrizeFix — layout: header, navigation, footer call to action, footer. */

/* Header ----------------------------------------------------------------- */
.site-header {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 50;
	color: var(--c-white);
	background-image: linear-gradient(to right, rgba(255, 255, 255, 0.2) 50%, transparent 0);
	background-size: 12px 1px;
	background-repeat: repeat-x;
	background-position: left bottom;
	transition: background-color 0.3s var(--ease);
}
.site-header__bar {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	height: 96px;
}
.brand {
	position: relative;
	z-index: 2;
	display: block;
	flex: none;
}
.brand__logo {
	width: auto;
	height: 56px;
}
.site-header__actions {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 12px;
}

/* Sticky state: after scrolling past the hero top, the bar pins to the top. */
.site-header.is-stuck {
	position: fixed;
	background-color: rgba(20, 31, 29, 0.94);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	animation: header-in 0.35s var(--ease);
}
.site-header.is-stuck .site-header__bar {
	height: 80px;
}
.site-header.is-stuck .brand__logo {
	height: 48px;
}
@keyframes header-in {
	from {
		transform: translateY(-100%);
	}
	to {
		transform: none;
	}
}
/* Logged-in admin bar: keep the header below it (it scrolls away on small phones). */
.admin-bar .site-header {
	top: var(--wp-admin--admin-bar--height, 32px);
}
@media (max-width: 600px) {
	.admin-bar .site-header.is-stuck {
		top: 0;
	}
}

/* Desktop navigation ----------------------------------------------------- */
.nav {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(calc(-50% - 15.5px), -50%);
}
.menu--primary {
	display: flex;
	align-items: center;
	gap: 48px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.menu--primary > li {
	position: relative;
	display: flex;
	align-items: center;
}
.menu--primary > li > a,
.menu__parent {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 0;
	border: 0;
	background: none;
	color: var(--c-white);
	font-family: var(--f-alt);
	font-size: var(--fs-18);
	font-weight: 400;
	line-height: 1.4;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	white-space: nowrap;
	transition: color 0.2s var(--ease);
}
.menu--primary > li > a:hover,
.menu__parent:hover {
	color: var(--c-lime);
}
.menu__toggle {
	display: inline-grid;
	place-items: center;
	width: 20px;
	height: 28px;
	margin-left: 4px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--c-white);
}
.menu__caret {
	width: 7px;
	height: 7px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	opacity: 0.7;
	transform: translateY(-2px) rotate(45deg);
	transition: transform 0.25s var(--ease);
}
.menu-item-has-children.is-open .menu__caret {
	transform: translateY(1px) rotate(225deg);
}
.menu--primary .sub-menu {
	position: absolute;
	top: calc(100% + 14px);
	left: -20px;
	min-width: 230px;
	margin: 0;
	padding: 10px;
	list-style: none;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: var(--radius-sm);
	background: rgba(20, 31, 29, 0.97);
	box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
}
.menu--primary .sub-menu::before {
	content: "";
	position: absolute;
	inset: -16px 0 auto;
	height: 16px;
}
.menu--primary .menu-item-has-children:hover > .sub-menu,
.menu--primary .menu-item-has-children:focus-within > .sub-menu,
.menu--primary .menu-item-has-children.is-open > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
}
.menu--primary .sub-menu a {
	display: block;
	padding: 10px 14px;
	border-radius: 10px;
	color: rgba(255, 255, 255, 0.8);
	font-family: var(--f-alt);
	font-size: var(--fs-16);
	letter-spacing: 0.01em;
	transition: background-color 0.2s, color 0.2s;
}
.menu--primary .sub-menu a:hover,
.menu--primary .sub-menu .current-menu-item > a {
	background: rgba(255, 255, 255, 0.08);
	color: var(--c-lime);
}
.nav__extras {
	display: none;
}

/* Menu toggle (mobile) */
.menu-toggle {
	display: none;
	place-items: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
}
.menu-toggle__bars {
	position: relative;
	display: block;
	width: 20px;
	height: 14px;
}
.menu-toggle__bars span {
	position: absolute;
	left: 0;
	width: 100%;
	height: 2px;
	border-radius: 2px;
	background: var(--c-white);
	transition: transform 0.3s var(--ease), opacity 0.2s;
}
.menu-toggle__bars span:nth-child(1) {
	top: 0;
}
.menu-toggle__bars span:nth-child(2) {
	top: 6px;
}
.menu-toggle__bars span:nth-child(3) {
	top: 12px;
}
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(1) {
	transform: translateY(6px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(2) {
	opacity: 0;
}
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(3) {
	transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 1100px) {
	.menu-toggle {
		display: grid;
	}
	.nav {
		position: fixed;
		inset: 0;
		z-index: 1;
		display: flex;
		flex-direction: column;
		gap: 40px;
		padding: calc(120px + var(--wp-admin--admin-bar--height, 0px)) var(--gutter) 40px;
		overflow-y: auto;
		background: var(--c-dark);
		transform: none;
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.3s var(--ease), visibility 0.3s;
	}
	.nav.is-open {
		opacity: 1;
		visibility: visible;
	}
	.menu--primary {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}
	.menu--primary > li {
		flex-wrap: wrap;
		justify-content: space-between;
		border-bottom: 1px solid var(--line-dark);
	}
	.menu--primary > li > a,
	.menu__parent {
		flex: 1;
		justify-content: space-between;
		padding: 18px 0;
		font-family: var(--f-sans);
		font-size: var(--fs-28);
		font-weight: 600;
		letter-spacing: -0.02em;
		text-transform: none;
	}
	.menu__toggle {
		width: 48px;
		height: 48px;
	}
	.menu--primary .sub-menu {
		position: static;
		display: none;
		flex-basis: 100%;
		min-width: 0;
		margin: 0 0 16px;
		padding: 0;
		border: 0;
		background: none;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
	}
	.menu--primary .sub-menu::before {
		content: none;
	}
	.menu--primary .menu-item-has-children.is-open > .sub-menu {
		display: block;
	}
	.menu--primary .sub-menu a {
		padding: 10px 0;
		font-size: var(--fs-18);
	}
	.nav__extras {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		gap: 20px;
	}
	.nav__phone {
		color: rgba(255, 255, 255, 0.7);
		font-size: var(--fs-20);
	}
	body.nav-open {
		overflow: hidden;
	}
	/* A backdrop filter or animation on the header would trap the fixed menu panel inside it. */
	body.nav-open .site-header {
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
		animation: none;
	}
}
@media (max-width: 640px) {
	.site-header__cta {
		display: none;
	}
	.brand__logo {
		height: 44px;
	}
}

/* Footer call to action ("Breathe Into Better Comfort") ------------------ */
.site-footer {
	background: var(--c-dark);
	color: var(--c-white);
}
.cta {
	position: relative;
	padding-top: calc(clamp(300px, 38.2vw, 611px) + clamp(40px, 5vw, 80px));
	text-align: center;
	isolation: isolate;
}
.cta__media {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: -1;
	height: clamp(300px, 38.2vw, 611px);
	overflow: hidden;
}
.cta__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(20, 31, 29, 0) 0%, rgba(20, 31, 29, 0.2) 55%, rgba(20, 31, 29, 0.4) 64.243%, rgba(20, 31, 29, 0.75) 75.072%, rgba(20, 31, 29, 0.95) 85.902%, #141f1d 100%);
}
.cta__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 48% 23%;
	transform: scale(1.079);
	transform-origin: 48% 23%;
}
.cta__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 48px;
}
.cta__title {
	width: min(734px, 100%);
}

/* Footer ----------------------------------------------------------------- */
.site-footer__inner {
	padding-top: clamp(80px, 11.12vw, 160px);
	padding-bottom: 24px;
}
.footer-grid {
	display: flex;
	justify-content: space-between;
	gap: 40px;
}
.footer-news {
	flex: 0 1 383px;
}
.footer-title {
	font-size: var(--fs-28);
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: -0.02em;
}
.footer-news .footer-title {
	margin-bottom: 32px;
}
.newsletter {
	position: relative;
	display: flex;
	align-items: center;
	padding: 4px 4px 4px 40px;
	border-radius: 40px;
	background: rgba(255, 255, 255, 0.1);
	transition: box-shadow 0.2s;
}
.newsletter:focus-within {
	box-shadow: 0 0 0 2px var(--c-lime);
}
.newsletter__input {
	flex: 1;
	min-width: 0;
	height: 60px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--c-white);
	font-size: var(--fs-18);
	outline: 0;
}
.newsletter__input::placeholder {
	color: rgba(255, 255, 255, 0.6);
}
.newsletter__submit {
	flex: none;
	width: 60px;
	height: 60px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: none;
	transition: transform 0.25s var(--ease);
}
.newsletter__submit:hover {
	transform: scale(1.05);
}
.newsletter__icon {
	width: 60px;
	height: 60px;
}
.newsletter .form-status {
	position: absolute;
	top: 100%;
	left: 24px;
	margin-top: 10px;
	color: var(--c-lime);
}
.footer-cols {
	display: flex;
	gap: 80px;
}
.footer-col {
	display: flex;
	flex-direction: column;
	gap: 32px;
	width: 160px;
}
.footer-col--contact {
	width: 250px;
}
.footer-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: var(--fs-18);
	line-height: 1.5;
}
.footer-list a,
.footer-list address {
	color: rgba(255, 255, 255, 0.7);
	transition: color 0.2s;
}
.footer-list a:hover {
	color: var(--c-lime);
}
.footer-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px 24px;
	min-height: 72px;
	margin-top: 140px;
	padding: 12px 24px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.05);
	color: rgba(255, 255, 255, 0.7);
	font-size: var(--fs-18);
}
.legal-links {
	display: flex;
	margin: 0;
	padding: 0;
	list-style: none;
}
.legal-links li + li::before {
	content: "|";
	padding: 0 0.25em;
}
.legal-links a:hover {
	color: var(--c-lime);
}

@media (max-width: 1180px) {
	.footer-grid {
		flex-direction: column;
		gap: 56px;
	}
	.footer-news {
		flex-basis: auto;
		max-width: 480px;
	}
	.footer-cols {
		gap: 48px;
	}
}
@media (max-width: 720px) {
	.footer-cols {
		flex-wrap: wrap;
		gap: 40px 32px;
	}
	.footer-col {
		width: calc(50% - 16px);
		gap: 20px;
	}
	.footer-col--contact {
		width: 100%;
	}
	.footer-bar {
		flex-direction: column;
		margin-top: 64px;
		padding: 20px;
		text-align: center;
		font-size: var(--fs-16);
	}
	.newsletter {
		padding-left: 24px;
	}
	.cta__inner {
		gap: 32px;
	}
}
