/* =========================================================
   SLO Header & Footer
   Scoped front-end styles. Variables are printed inline by PHP.
   ========================================================= */

.slo-hf {
	box-sizing: border-box;
	color: var(--slo-hf-ink);
	font-family: var(--slo-hf-sans);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

.slo-hf *,
.slo-hf *::before,
.slo-hf *::after {
	box-sizing: border-box;
}

.slo-hf img {
	display: block;
	max-width: 100%;
	height: auto;
}

.slo-hf a {
	color: inherit;
}

.slo-hf p,
.slo-hf h2,
.slo-hf h3,
.slo-hf ul,
.slo-hf figure,
.slo-hf address {
	margin: 0;
	padding: 0;
}

.slo-hf ul {
	padding: 0;
	list-style: none;
}

.slo-hf button,
.slo-hf input {
	font: inherit;
}

.slo-hf :focus-visible {
	border-radius: 2px;
	outline: 2px solid var(--slo-hf-accent);
	outline-offset: 3px;
}

.slo-hf .slo-hf-container {
	width: min(calc(100% - (var(--slo-hf-gutter) * 2)), var(--slo-hf-container));
	margin-inline: auto;
}

.slo-hf .slo-hf-sr-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* ---------- Header ---------- */

.slo-hf-header {
	position: relative;
	z-index: 100;
	background: var(--slo-hf-header-bg);
}

.slo-hf-header--has-utility {
	--slo-hf-utility-height: 44px;
}

.slo-hf-header--sticky {
	position: sticky;
	top: 0;
}

.slo-hf-header--sticky.slo-hf-header--has-utility.slo-hf-header--scroll-away {
	top: calc(-1 * var(--slo-hf-utility-height, 44px));
}

.admin-bar .slo-hf-header--sticky {
	top: 32px;
}

.admin-bar .slo-hf-header--sticky.slo-hf-header--has-utility.slo-hf-header--scroll-away {
	top: calc(32px - var(--slo-hf-utility-height, 44px));
}

@media (max-width: 782px) {
	.admin-bar .slo-hf-header--sticky {
		top: 46px;
	}

	.admin-bar .slo-hf-header--sticky.slo-hf-header--has-utility.slo-hf-header--scroll-away {
		top: calc(46px - var(--slo-hf-utility-height, 44px));
	}
}

/* Utility bar */

.slo-hf-utility {
	background: var(--slo-hf-utility-bg);
	color: var(--slo-hf-utility-text);
	font-size: 12.5px;
	font-weight: 400;
	letter-spacing: 0.015em;
}

.slo-hf-utility__inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 24px;
	min-height: var(--slo-hf-utility-height, 44px);
}

.slo-hf-utility__inner > * {
	align-self: center;
}

.slo-hf .slo-hf-utility p {
	margin: 0;
	padding: 0;
	line-height: 1.3;
}

.slo-hf-utility__right {
	text-align: right;
}

.slo-hf-utility a {
	border-bottom: 1px solid transparent;
	text-decoration: none;
	transition: border-color 0.2s ease;
}

.slo-hf-utility a:hover {
	border-bottom-color: currentColor;
}

.slo-hf-utility__or {
	margin: 0 4px;
	opacity: 0.7;
}

/* Masthead */

.slo-hf-masthead {
	position: relative;
	border-bottom: 1px solid var(--slo-hf-line);
	background: var(--slo-hf-header-bg);
	transition: box-shadow 0.25s ease;
}

.slo-hf-header--shadow.is-scrolled .slo-hf-masthead {
	box-shadow: 0 7px 24px rgba(1, 30, 70, 0.09);
}

.slo-hf-masthead__inner {
	display: flex;
	align-items: center;
	gap: 30px;
	min-height: 90px;
}

.slo-hf-brand {
	display: block;
	flex: none;
	line-height: 0;
	text-decoration: none;
}

.slo-hf-brand img {
	width: 194px;
	max-width: 100%;
}

/* Navigation */

.slo-hf-nav {
	display: flex;
	align-items: center;
	margin-left: auto;
}

.slo-hf-nav__list {
	display: flex;
	align-items: center;
	gap: 24px;
}

.slo-hf-nav__list > li {
	position: relative;
}

.slo-hf-nav__list a {
	position: relative;
	display: inline-block;
	padding: 8px 0;
	color: var(--slo-hf-nav-color);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.05em;
	line-height: 1.2;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
}

.slo-hf-nav__list a::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 1px;
	left: 0;
	height: 1px;
	background: var(--slo-hf-accent);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.2s ease;
}

.slo-hf-nav__list a:hover::after,
.slo-hf-nav__list a:focus-visible::after,
.slo-hf-nav__list .current-menu-item > a::after {
	transform: scaleX(1);
}

.slo-hf-nav__list .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 230px;
	padding: 8px 0;
	background: var(--slo-hf-header-bg);
	box-shadow: 0 14px 30px rgba(1, 30, 70, 0.14);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
	z-index: 20;
}

.slo-hf-nav__list .sub-menu a {
	display: block;
	padding: 9px 18px;
	font-size: 11.5px;
	white-space: nowrap;
}

.slo-hf-nav__list .sub-menu a::after {
	display: none;
}

.slo-hf-nav__list li:hover > .sub-menu,
.slo-hf-nav__list li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.slo-hf .slo-hf-nav .slo-hf-nav__cta {
	display: none;
}

.slo-hf-submenu-toggle {
	display: none;
}

/* Buttons */

.slo-hf .slo-hf-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	min-height: 44px;
	padding: 0 22px;
	border: 0;
	border-radius: var(--slo-hf-radius);
	color: #fff;
	cursor: pointer;
	font-family: var(--slo-hf-sans);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.slo-hf .slo-hf-btn--navy {
	background: var(--slo-hf-navy);
	color: #fff;
}

.slo-hf .slo-hf-btn--navy:hover {
	background: var(--slo-hf-navy-deep);
	color: #fff;
}

.slo-hf .slo-hf-btn--accent {
	background: var(--slo-hf-accent);
	color: #fff;
}

.slo-hf .slo-hf-btn--accent:hover {
	background: var(--slo-hf-accent-dark);
	color: #fff;
}

.slo-hf .slo-hf-btn--ghost {
	border: 1px solid currentColor;
	background: transparent;
	color: var(--slo-hf-navy);
}

.slo-hf .slo-hf-btn--ghost:hover {
	border-color: var(--slo-hf-navy);
	background: var(--slo-hf-navy);
	color: #fff;
}

.slo-hf-arrow {
	width: 26px;
	height: 10px;
	flex: none;
	fill: currentColor;
}

.slo-hf-masthead__cta {
	min-height: 44px;
	padding: 0 18px;
	font-size: 14px;
	gap: 16px;
	border-radius: var(--slo-hf-radius);
}

/* Icon buttons */

.slo-hf-icon-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--slo-hf-nav-color);
	cursor: pointer;
	text-decoration: none;
	transition: color 0.2s ease;
}

.slo-hf-icon-button:hover {
	color: var(--slo-hf-accent);
}

.slo-hf-icon-button svg {
	width: 21px;
	height: 21px;
	fill: none;
}

.slo-hf-cart {
	position: relative;
}

.slo-hf-cart__count {
	position: absolute;
	top: 1px;
	right: 0;
	display: grid;
	place-items: center;
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	border-radius: 999px;
	background: var(--slo-hf-accent);
	color: #fff;
	font-size: 9.5px;
	font-weight: 600;
	line-height: 1;
}

/* Search */

.slo-hf-search {
	display: none;
	border-top: 1px solid var(--slo-hf-line);
	background: var(--slo-hf-header-bg);
	padding: 14px 0;
}

.slo-hf-search.is-open {
	display: block;
}

.slo-hf-search__form {
	display: flex;
	gap: 10px;
	max-width: 640px;
	margin: 0 auto;
}

.slo-hf-search__form input[type="search"] {
	flex: 1;
	min-height: 44px;
	padding: 0 14px;
	border: 1px solid var(--slo-hf-line);
	border-radius: var(--slo-hf-radius);
	background: #fff;
	color: var(--slo-hf-ink);
}

/* Mobile toggle */

.slo-hf-nav-toggle {
	display: none;
	width: 46px;
	height: 46px;
	margin-left: auto;
	padding: 0;
	border: 0;
	border-radius: 4px;
	background: transparent;
	color: var(--slo-hf-ink);
	cursor: pointer;
}

.slo-hf-nav-toggle__bar {
	display: block;
	width: 24px;
	height: 2px;
	margin: 5px auto;
	background: currentColor;
	transition: transform 0.25s ease, opacity 0.2s ease;
}

.slo-hf-nav-toggle[aria-expanded="true"] .slo-hf-nav-toggle__bar:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.slo-hf-nav-toggle[aria-expanded="true"] .slo-hf-nav-toggle__bar:nth-child(2) {
	opacity: 0;
}

.slo-hf-nav-toggle[aria-expanded="true"] .slo-hf-nav-toggle__bar:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Footer ---------- */

.slo-hf-footer {
	background: var(--slo-hf-footer-bg);
	color: var(--slo-hf-footer-text);
}

.slo-hf-footer__top {
	display: grid;
	grid-template-columns: var(--slo-hf-footer-columns, 1.45fr 0.9fr 0.9fr 1.05fr);
	gap: 48px;
	padding: 56px 0 46px;
}

.slo-hf-footer__brand {
	max-width: 350px;
}

.slo-hf-footer__logo {
	display: inline-block;
	line-height: 0;
	text-decoration: none;
}

.slo-hf-footer__logo img {
	width: 190px;
}

.slo-hf .slo-hf-footer__tagline {
	margin-top: 16px;
	padding: 0;
	color: var(--slo-hf-footer-heading);
	font-family: var(--slo-hf-serif);
	font-size: 21px;
	font-weight: 400;
	line-height: 1.35;
}

.slo-hf .slo-hf-footer__practice {
	margin-top: 9px;
	padding: 0;
	color: var(--slo-hf-footer-heading);
	font-size: 10.5px;
	font-weight: 500;
	letter-spacing: 0.13em;
	line-height: 1.5;
	text-transform: uppercase;
}

.slo-hf .slo-hf-footer__social {
	display: flex;
	gap: 10px;
	margin-top: 20px;
	padding: 0;
}

.slo-hf-footer__social a {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border: 1px solid currentColor;
	border-radius: 50%;
	color: var(--slo-hf-footer-heading);
	opacity: 0.75;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.slo-hf-footer__social a:hover {
	border-color: var(--slo-hf-navy);
	background: var(--slo-hf-navy);
	color: #fff;
	opacity: 1;
}

.slo-hf-footer__social svg {
	width: 16px;
	height: 16px;
	fill: currentColor;
}

.slo-hf .slo-hf-footer__col h2 {
	margin: 0 0 14px;
	padding: 0;
	color: var(--slo-hf-footer-heading);
	font-family: var(--slo-hf-sans);
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: 0.13em;
	line-height: 1.3;
	text-transform: uppercase;
}

.slo-hf-footer__col ul {
	display: grid;
	gap: 8px;
}

.slo-hf-footer__col li,
.slo-hf-footer__visit p,
.slo-hf-footer__visit address {
	font-size: 14px;
	line-height: 1.55;
}

.slo-hf-footer__col ul a,
.slo-hf-footer__visit address a,
.slo-hf-footer__visit p a {
	color: var(--slo-hf-footer-text);
	text-decoration: none;
}

.slo-hf-footer__col ul a:hover,
.slo-hf-footer__visit address a:hover,
.slo-hf-footer__visit p a:hover {
	color: var(--slo-hf-accent-dark);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.slo-hf .slo-hf-footer__visit address {
	margin-bottom: 9px;
	padding: 0;
	font-style: normal;
}

.slo-hf .slo-hf-footer__visit p {
	margin: 0 0 3px;
	padding: 0;
}

.slo-hf-footer__cta {
	width: 100%;
	min-height: 44px;
	margin-top: 16px;
	font-size: 13.5px;
}

.slo-hf-footer__bottom {
	padding: 14px 0;
	background: var(--slo-hf-bottom-bg);
	color: var(--slo-hf-bottom-text);
}

.slo-hf-footer__bottom-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	font-size: 12px;
	line-height: 1.5;
}

.slo-hf-footer__legal {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 22px;
}

.slo-hf-footer__legal a {
	color: inherit;
	text-decoration: none;
}

.slo-hf-footer__legal a:hover {
	color: var(--slo-hf-bottom-text);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.slo-hf-back-to-top {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

/* ---------- Mobile ---------- */

@media (max-width: 1120px) {
	.slo-hf-masthead__inner {
		min-height: 74px;
		gap: 14px;
	}

	.slo-hf .slo-hf-masthead .slo-hf-masthead__cta {
		display: none;
	}

	.slo-hf-nav-toggle {
		display: block;
	}

	.slo-hf-nav {
		position: absolute;
		top: 100%;
		right: 0;
		left: 0;
		display: none;
		flex-direction: column;
		align-items: stretch;
		max-height: calc(100vh - 120px);
		margin: 0;
		overflow-y: auto;
		border-top: 1px solid var(--slo-hf-line);
		background: var(--slo-hf-header-bg);
		box-shadow: 0 14px 24px rgba(1, 30, 70, 0.12);
		z-index: 30;
	}

	.slo-hf-nav.is-open {
		display: flex;
	}

	.slo-hf-nav__list {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.slo-hf-nav__list > li {
		border-bottom: 1px solid var(--slo-hf-line);
	}

	.slo-hf-nav__list a {
		display: block;
		padding: 14px 24px;
		font-size: 13px;
	}

	.slo-hf-nav__list a::after {
		display: none;
	}

	.slo-hf-nav__list .sub-menu {
		position: static;
		display: none;
		min-width: 0;
		padding: 0 0 8px 18px;
		background: transparent;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.slo-hf-nav__list .sub-menu a {
		padding: 10px 24px;
	}

	.slo-hf-nav__list li.is-open > .sub-menu {
		display: block;
	}

	.slo-hf .slo-hf-nav .slo-hf-nav__cta {
		display: flex;
		margin: 16px 24px;
	}

	.slo-hf-submenu-toggle {
		position: absolute;
		top: 7px;
		right: 16px;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 34px;
		height: 34px;
		padding: 0;
		border: 0;
		background: transparent;
		color: var(--slo-hf-nav-color);
		cursor: pointer;
	}

	.slo-hf-submenu-toggle__icon {
		width: 7px;
		height: 7px;
		border-right: 1.5px solid currentColor;
		border-bottom: 1.5px solid currentColor;
		transform: rotate(45deg);
		transition: transform 0.2s ease;
	}

	.slo-hf-submenu-toggle[aria-expanded="true"] .slo-hf-submenu-toggle__icon {
		transform: rotate(-135deg);
	}

	.slo-hf-utility__left {
		display: none;
	}

	.slo-hf-utility__inner {
		grid-template-columns: 1fr auto;
	}

	.slo-hf-utility__center {
		text-align: left;
	}
}

@media (min-width: 1121px) {
	.slo-hf-nav__list > li.menu-item-has-children > a {
		padding-right: 13px;
	}

	.slo-hf-nav__list > li.menu-item-has-children > a::before {
		content: "";
		position: absolute;
		top: 50%;
		right: 0;
		width: 6px;
		height: 6px;
		margin-top: -3px;
		border-right: 1.5px solid currentColor;
		border-bottom: 1.5px solid currentColor;
		transform: rotate(45deg);
		transition: transform 0.2s ease;
	}

	.slo-hf-nav__list > li.menu-item-has-children:hover > a::before,
	.slo-hf-nav__list > li.menu-item-has-children:focus-within > a::before {
		transform: rotate(-135deg);
	}

	.slo-hf-nav__list > li.menu-item-has-children > a::after {
		right: 13px;
	}
}

@media (max-width: 1000px) {
	.slo-hf-footer__top {
		--slo-hf-footer-columns: 1fr 1fr;
		gap: 36px 48px;
	}

	.slo-hf-footer__brand {
		grid-column: 1 / -1;
		max-width: 460px;
	}

	.slo-hf-footer__visit {
		grid-column: 1 / -1;
		max-width: 460px;
	}
}

@media (max-width: 767px) {
	.slo-hf-utility__right {
		display: none;
	}

	.slo-hf-utility__inner {
		grid-template-columns: 1fr;
		justify-items: center;
		text-align: center;
	}

	.slo-hf-utility__center {
		text-align: center;
	}

	.slo-hf-utility__or,
	.slo-hf-utility__email {
		display: none;
	}

	.slo-hf-masthead__inner {
		min-height: 68px;
	}

	.slo-hf-brand img {
		max-width: 160px;
	}

	.slo-hf-icon-button {
		width: 34px;
		height: 34px;
	}
}

@media (max-width: 600px) {
	.slo-hf-footer__top {
		--slo-hf-footer-columns: 1fr;
		padding: 40px 0 34px;
		gap: 30px;
	}

	.slo-hf-footer__brand,
	.slo-hf-footer__visit {
		grid-column: auto;
		max-width: none;
	}

	.slo-hf-footer__logo img {
		max-width: 172px;
	}

	.slo-hf .slo-hf-footer__tagline {
		font-size: 20px;
	}

	.slo-hf-footer__bottom-inner {
		flex-direction: column;
		align-items: flex-start;
		gap: 7px;
		padding-top: 0;
		padding-bottom: 0;
	}
}

@media (max-width: 1120px) {
	html.slo-hf-nav-open,
	html.slo-hf-nav-open body {
		overflow: hidden;
	}
}

/* ---------- Device visibility ---------- */

@media (max-width: 767px) {
	.slo-hf--hide-mobile {
		display: none !important;
	}
}

@media (min-width: 768px) {
	.slo-hf--hide-desktop {
		display: none !important;
	}
}

/* ---------- Divi Visual Builder root shell ---------- */

body.et-vb-root-ancestor > .slo-hf-header,
body.et-vb-root-ancestor > .slo-hf-footer {
	display: none !important;
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
	.slo-hf *,
	.slo-hf *::before,
	.slo-hf *::after {
		scroll-behavior: auto !important;
		transition: none !important;
		animation: none !important;
	}
}
