/*
 * Sticky header and dark footer — present on every page.
 * Source: "HILO Design files/HILO Home.dc.html":30-42 (header), 164-174 (footer).
 */

/* ---------------------------------------------------------------------
   Header
   --------------------------------------------------------------------- */
.hl-header {
	position: sticky;
	top: 0;
	z-index: 9;
	height: var(--hl-header-h);
	background: rgba(7, 8, 10, 0.82);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--hl-cyan-hairline);
}

/* The blurred bar spans the viewport; this holds its contents to the same
   1320px as every other section. */
.hl-header__inner {
	max-width: var(--hl-maxw);
	margin-inline: auto;
	height: 100%;
	padding-inline: var(--hl-pad-x);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.hl-header__logo {
	display: block;
	flex: none;
	line-height: 0;
}
/* 42px inside a 76px bar leaves 17px of breathing room top and bottom. The
   design's 30px reads small for a wordmark that is the only brand mark on
   the page; anything past ~46px starts crowding the hairline border. */
.hl-header__logo img {
	height: 42px;
	width: auto;
	display: block;
}

.hl-nav {
	display: flex;
	gap: clamp(16px, 2.2vw, 30px);
	font: 600 12px/1 var(--hl-font-head);
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.hl-nav__link {
	text-decoration: none;
	color: var(--hl-nav);
	white-space: nowrap;
}
.hl-nav__link:hover,
.hl-nav__link[aria-current="page"] {
	color: var(--hl-cyan);
}

.hl-header__end {
	display: flex;
	align-items: center;
	gap: 14px;
	flex: none;
}

.hl-header__locale {
	font: 500 11px/1 var(--hl-font-mono);
	letter-spacing: 0.08em;
	color: var(--hl-cyan);
	white-space: nowrap;
}

/* The header CTA is a tighter version of .hl-btn--primary — 13/20 rather
   than 17/28, so it fits a 76px bar without crowding the hairline. */
.hl-header__cta,
.hl-nav__cta {
	font-size: 12px;
	padding: 13px 20px;
	white-space: nowrap;
}

/* Hamburger — hidden until the nav collapses (see the breakpoint below).
   Rendered as a real <button> rather than a checkbox hack so it carries
   aria-expanded for screen readers. */
.hl-header__toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 40px;
	height: 40px;
	padding: 0;
	background: none;
	border: none;
	cursor: pointer;
}
.hl-header__toggle span:not(.screen-reader-text) {
	display: block;
	width: 22px;
	height: 2px;
	background: var(--hl-text);
	margin: 0 auto;
	transition: transform 0.2s, opacity 0.2s;
}
.hl-header__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hl-header__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hl-header__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------- */
.hl-footer {
	padding-block: clamp(40px, 4.4vw, 56px) 40px;
	background: var(--hl-black);
	border-top: 1px solid var(--hl-line-2);
}

.hl-footer__top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 40px;
	flex-wrap: wrap;
}

.hl-footer__brand img {
	height: 28px;
	width: auto;
	display: block;
}

.hl-footer__tagline {
	margin: 18px 0 0;
	max-width: 300px;
	font: 400 13px/1.6 var(--hl-font-body);
	color: var(--hl-mono);
}

.hl-footer__cols {
	display: flex;
	gap: clamp(28px, 4vw, 56px);
}

.hl-footer__col {
	display: flex;
	flex-direction: column;
	font: 400 13px/2 var(--hl-font-body);
	color: var(--hl-muted);
}

/* A real <h2> rather than a styled div — the footer's three groups are the
   only structure below the page content, and a screen reader user landing
   here should be able to tell "Range" from "Company". */
.hl-footer__col-title {
	margin: 0 0 12px;
	font: 500 10px/1 var(--hl-font-mono);
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--hl-text);
}

.hl-footer__col a {
	text-decoration: none;
	color: inherit;
}
.hl-footer__col a:hover { color: var(--hl-cyan); }

/* ---- Branch details ---- */
.hl-footer__branches {
	margin-top: clamp(32px, 4vw, 48px);
	padding-top: clamp(26px, 3vw, 34px);
	border-top: 1px solid var(--hl-line);
}

.hl-footer__branch-grid {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
	margin: 18px 0 0;
	padding: 0;
}

.hl-footer__branch-city {
	margin: 0;
	font: 700 14px/1 var(--hl-font-head);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--hl-cyan);
}

/* <address> defaults to italic in every browser, which fights the mono/head
   type on this page. */
.hl-footer__branch-address {
	margin: 10px 0 0;
	font: 400 13px/1.6 var(--hl-font-body);
	font-style: normal;
	color: var(--hl-mono);
}

.hl-footer__branch-phone {
	display: inline-block;
	margin-top: 8px;
	font: 500 12px/1 var(--hl-font-mono);
	letter-spacing: 0.04em;
	color: var(--hl-body);
	text-decoration: none;
}
.hl-footer__branch-phone:hover { color: var(--hl-cyan); }

.hl-footer__rule {
	margin-top: 40px;
	padding-top: 20px;
	border-top: 1px solid var(--hl-line);
	font: 500 10px/1 var(--hl-font-mono);
	letter-spacing: 0.14em;
	color: var(--hl-mono-2);
	text-transform: uppercase;
}

/* ---------------------------------------------------------------------
   Collapse
   Four nav items plus a locale label plus a CTA stop fitting well before
   the 900px the rest of the design collapses at, so the header gets its
   own, earlier breakpoint.
   --------------------------------------------------------------------- */
@media (max-width: 1024px) {
	.hl-header__toggle { display: flex; }

	.hl-nav {
		position: absolute;
		top: var(--hl-header-h);
		left: 0;
		right: 0;
		flex-direction: column;
		gap: 0;
		padding: 8px var(--hl-pad-x) 20px;
		background: rgba(7, 8, 10, 0.97);
		backdrop-filter: blur(14px);
		-webkit-backdrop-filter: blur(14px);
		border-bottom: 1px solid var(--hl-cyan-hairline);
		font-size: 14px;
	}
	/* Closed by default; nav.js flips the attribute on the toggle and this
	   sibling selector does the showing, so the markup stays declarative. */
	.hl-nav:not(.is-open) { display: none; }

	.hl-nav__link,
	.hl-nav__cta {
		padding: 16px 0;
		border-bottom: 1px solid var(--hl-line);
	}
	.hl-nav__cta {
		align-self: flex-start;
		margin-top: 16px;
		padding: 14px 22px;
		border-bottom: none;
	}

	/* The locale label is decoration; the CTA already lives in the nav on
	   mobile via the menu, so the header keeps only the logo and toggle. */
	.hl-header__locale { display: none; }
}

@media (max-width: 900px) {
	.hl-footer__branch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
	.hl-header__cta { display: none; }
	/* The wordmark is the only brand mark left once the CTA goes; keep it
	   readable but give the hamburger room. */
	.hl-header__logo img { height: 34px; }

	.hl-footer__top { gap: 32px; }
	.hl-footer__cols {
		flex-wrap: wrap;
		gap: 28px 40px;
	}
	.hl-footer__branch-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
}
