/* ==========================================================================
   Header (.hlp-header): fixed; transparent over the hero, frosted glass once
   the page has scrolled (js/hlp.js toggles .is-solid). Free widgets only:
   the brand is a link container, the nav an inline Icon List.
   ========================================================================== */
.e-con.hlp-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	background-color: transparent;
	transition: background-color .4s ease, box-shadow .4s ease, backdrop-filter .4s ease;
}
.admin-bar .e-con.hlp-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .e-con.hlp-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .e-con.hlp-header { top: 0; } }

/* 18px above and below at rest, 12px once solid (Elementor holds the padding in variables) */
.e-con.hlp-header { transition: background-color .4s ease, box-shadow .4s ease, backdrop-filter .4s ease, padding .4s ease; }
.e-con.hlp-header.is-solid { --padding-top: 12px !important; --padding-bottom: 12px !important; }
.hlp-header > .e-con-inner { position: relative; }

.e-con.hlp-header.is-solid {
	background-color: rgba(251, 250, 247, .82);
	-webkit-backdrop-filter: blur(14px) saturate(1.2);
	backdrop-filter: blur(14px) saturate(1.2);
	box-shadow: 0 1px 0 rgba(180, 173, 163, .5);
}

/* Brand and nav size to their content; Elementor would otherwise stretch them. */
.hlp-header > .e-con-inner > .hlp-brand,
.hlp-header > .e-con-inner > .hlp-nav { --width: auto; width: auto; flex: 0 1 auto; }
.hlp-header .hlp-brand { text-decoration: none; min-height: 44px; }

/* The boxed "HLP" mark stands in for the logo SVG until it arrives. */
.hlp-mark .elementor-heading-title {
	width: 40px;
	height: 40px;
	display: grid;
	place-items: center;
	border: 2px solid var(--hlp-tan);
	background: rgba(251, 250, 247, .88);   /* the design uses .6; over a photograph the letters need a firmer plate */
	transition: border-color .4s ease, color .4s ease, background-color .4s ease;
}

/* Nav: bold links with a soft tan hover wash */
.hlp-nav .elementor-icon-list-item > a {
	min-height: 40px;
	display: inline-flex;
	align-items: center;
	padding: 9px 14px;
	border-radius: 2px;
	transition: background-color .3s ease;
}
.hlp-nav .elementor-icon-list-item > a:hover { background-color: rgba(165, 131, 90, .16); }
.hlp-nav .elementor-icon-list-item > a:hover .elementor-icon-list-text { color: var(--hlp-ink); }

/* Menu button (js/hlp.js), shown at 1024px and below */
.hlp-header .hlp-menu-toggle,
.hlp-header .hlp-menu-toggle:hover,
.hlp-header .hlp-menu-toggle:focus {
	display: none;
	font: 700 12px/1 Arial, Helvetica, sans-serif;
	letter-spacing: .1em;
	text-transform: uppercase;
	background: var(--hlp-white);
	color: var(--hlp-ink);
	border: 1.5px solid var(--hlp-ink);
	border-radius: 2px;
	padding: 11px 14px;
	min-height: 40px;
}

/* The header keeps dark text over every slide: each slide carries a light top
   band for it (css/hlp/20-hero.css), whatever the tone of its caption. */

@media (max-width: 1024px) {
	.hlp-header .hlp-menu-toggle,
	.hlp-header .hlp-menu-toggle:hover,
	.hlp-header .hlp-menu-toggle:focus { display: inline-block; }

	/* Only hide the nav once the script has taken over; without JS it stays visible. */
	.hlp-header[data-hlp-ready="1"] > .e-con-inner > .hlp-nav { display: none; }
	.hlp-header.is-menu-open > .e-con-inner > .hlp-nav {
		display: block;
		position: absolute;
		top: calc(100% + 4px);
		right: 0;
		width: auto;
		min-width: 200px;
		padding: 10px !important;
		background-color: var(--hlp-white);
		box-shadow: var(--hlp-shadow-2);
	}
	/* Elementor gives inline icon lists a negative side margin to absorb item spacing */
	.hlp-header.is-menu-open .hlp-nav .elementor-icon-list-items { flex-direction: column; align-items: stretch; margin: 0 !important; gap: 2px; }
	.hlp-header.is-menu-open .hlp-nav .elementor-icon-list-item { margin: 0 !important; padding: 0 !important; }
	.hlp-header.is-menu-open .hlp-nav .elementor-icon-list-item::after { display: none; }
	.hlp-header.is-menu-open .hlp-nav .elementor-icon-list-item > a { width: 100%; min-height: 44px; }
	.hlp-header.is-menu-open .hlp-nav .elementor-icon-list-text { color: var(--hlp-ink) !important; }

	/* Without JS the inline list wraps instead of overflowing. */
	.hlp-header:not([data-hlp-ready="1"]) .hlp-nav .elementor-icon-list-items { flex-wrap: wrap; }
}
@media (max-width: 767px) {
	/* the name is the page's h1: hide it visually only, never display:none */
	.hlp-header .hlp-brand-name { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
}

/* Transparent over the photo: a tight light halo on the letters keeps the
   header legible on dark or busy tops without a white band across the photo. */
.hlp-header:not(.is-solid) .hlp-brand-name .elementor-heading-title,
.hlp-header:not(.is-solid) .hlp-nav .elementor-icon-list-text {
	text-shadow: 0 0 2px rgba(255, 255, 255, .9), 0 0 8px rgba(255, 255, 255, .85), 0 0 20px rgba(255, 255, 255, .6);
	transition: color .4s ease, text-shadow .4s ease;
}
/* the brand name sits over the darkest part of some photos: a firmer halo */
.hlp-header:not(.is-solid) .hlp-brand-name .elementor-heading-title {
	text-shadow: 0 0 2px rgba(255, 255, 255, .95), 0 0 6px rgba(255, 255, 255, .95), 0 0 14px rgba(255, 255, 255, .8), 0 0 28px rgba(255, 255, 255, .55);
}
