/*!
 * Hero Air Conditioning — Mobile Navigation (hacm)
 * Off-canvas drawer in a native <dialog> (top layer + focus trap + Esc).
 *
 * SCROLLING IS THE WHOLE POINT
 * ----------------------------
 * .hacm-nav is a real flex scroll container sized from 100dvh, and the
 * accordions toggle display rather than animating a max-height. The old
 * build capped each accordion at max-height:600px with overflow:hidden,
 * which cut ~10 of the 24 brands off with no way to scroll to them.
 * Nothing here caps content height.
 */

:root {
	--hacm-blue:   #1065bd;
	--hacm-red:    #e00b16;
	--hacm-ink:    #011e3c;
	--hacm-body:   #2a3547;
	--hacm-muted:  #7a8292;
	--hacm-line:   #edf0f4;
	--hacm-tint:   #fff0f0;
	--hacm-font:   'Open Sans', Arial, Helvetica, sans-serif;
	--hacm-w:      min(360px, 92vw);
	--hacm-dur:    .3s;
	--hacm-ease:   cubic-bezier(.4, 0, .2, 1);
}

/* =====================================================================
   1. TRIGGERS — burger + phone pill
   ===================================================================== */
#hacm-burger {
	display: none;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	margin-left: 12px;
	padding: 0;
	flex: none;
	background: rgba(255, 255, 255, .12);
	border: 1px solid rgba(255, 255, 255, .25);
	border-radius: 8px;
	color: #fff;
	cursor: pointer;
	transition: background .2s ease;
}
#hacm-burger:hover { background: rgba(255, 255, 255, .22); }
#hacm-burger:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

.hacm-burger-box {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
}
.hacm-burger-box span {
	display: block;
	width: 20px;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	transition: transform .28s var(--hacm-ease), opacity .2s ease;
}
#hacm-burger[aria-expanded="true"] .hacm-burger-box span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#hacm-burger[aria-expanded="true"] .hacm-burger-box span:nth-child(2) { opacity: 0; transform: scaleX(0); }
#hacm-burger[aria-expanded="true"] .hacm-burger-box span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hacm-phone {
	display: none;
	align-items: center;
	gap: 6px;
	height: 42px;
	padding: 0 14px;
	margin-left: auto;
	flex: none;
	background: var(--hacm-red);
	color: #fff !important;
	border-radius: 8px;
	font-family: var(--hacm-font);
	font-size: 13px;
	font-weight: 700;
	white-space: nowrap;
	text-decoration: none !important;
	transition: background .18s ease;
}
.hacm-phone:hover { background: #c0090f; }
.hacm-phone svg { flex: none; }

/* Show the custom controls, retire Webflow's — only once JS has flagged
   html.hacm-js, so with JS off the <noscript> fallback governs instead. */
@media screen and (max-width: 991px) {
	.hacm-js #hacm-burger { display: inline-flex !important; }
	.hacm-js .hacm-phone  { display: flex !important; }
	.hacm-js .topnavbar .nav-menu-3.w-nav-menu,
	.hacm-js .topnavbar .w-nav-menu { display: none !important; }
	.hacm-js .topnavbar .menu-button.w-nav-button { display: none !important; }
	.hacm-js .topnavbar .link-block-20 { display: none !important; }
}

/* =====================================================================
   2. DIALOG
   ===================================================================== */
#hacm-dialog {
	box-sizing: border-box !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	max-width: none !important;
	max-height: none !important;
	color: var(--hacm-ink);
	font-family: var(--hacm-font);
	font-size: 16px;
	line-height: 1.3;
	/* off-canvas right drawer */
	position: fixed !important;
	inset: 0 0 0 auto !important;
	width: var(--hacm-w) !important;
	height: 100vh;
	height: 100dvh !important;   /* dynamic vh — survives the mobile URL bar */
	background: #fff !important;
	box-shadow: -8px 0 40px rgba(8, 12, 20, .24);
	overflow: hidden !important; /* the inner .hacm-nav does the scrolling */
	transform: translateX(100%);
	transition: transform var(--hacm-dur) var(--hacm-ease);
}
#hacm-dialog.hacm-open { transform: translateX(0) !important; }

#hacm-dialog::backdrop {
	background: rgba(1, 30, 60, 0);
	transition: background var(--hacm-dur) var(--hacm-ease);
}
#hacm-dialog.hacm-open::backdrop { background: rgba(1, 30, 60, .72); }

/* scoped reset */
#hacm-dialog *,
#hacm-dialog *::before,
#hacm-dialog *::after { box-sizing: border-box; }
#hacm-dialog ul { list-style: none; margin: 0; padding: 0; }
#hacm-dialog li { margin: 0; }
#hacm-dialog a { text-decoration: none; color: inherit; background: none; }
#hacm-dialog button {
	font: inherit;
	color: inherit;
	margin: 0;
	background: none;
	border: 0;
	cursor: pointer;
}
#hacm-dialog svg { display: block; flex: none; }

/* lock the page behind the drawer */
html.hacm-lock,
html.hacm-lock body { overflow: hidden !important; }

/* =====================================================================
   3. PANEL LAYOUT — header / quick links / SCROLLING nav / sticky CTAs
   ===================================================================== */
#hacm-dialog .hacm-panel {
	display: flex;
	flex-direction: column;
	height: 100%;
	width: 100%;
}

#hacm-dialog .hacm-bar {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 16px;
	padding-top: max(14px, env(safe-area-inset-top));
	background: var(--hacm-blue);
	color: #fff;
}
#hacm-dialog .hacm-title {
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .04em;
	text-transform: uppercase;
}
#hacm-dialog .hacm-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: -8px -8px -8px 0;
	border-radius: 8px;
	color: #fff;
}
#hacm-dialog .hacm-close:hover { background: rgba(255, 255, 255, .16); }

#hacm-dialog .hacm-quick {
	flex: 0 0 auto;
	display: flex;
	border-bottom: 2px solid var(--hacm-line);
}
#hacm-dialog .hacm-quick a {
	flex: 1;
	padding: 11px 2px;
	border-right: 1px solid var(--hacm-line);
	color: var(--hacm-ink);
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: .03em;
	text-align: center;
	text-transform: uppercase;
	white-space: nowrap;
	transition: background .15s ease, color .15s ease;
}
#hacm-dialog .hacm-quick a:last-child { border-right: 0; }
#hacm-dialog .hacm-quick a:hover { background: var(--hacm-tint); color: var(--hacm-red); }

/* THE scroll container. flex:1 + min-height:0 is what lets it shrink
   inside the flex column instead of pushing the CTAs off-screen. */
#hacm-dialog .hacm-nav {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
}

/* =====================================================================
   4. MENU ITEMS
   ===================================================================== */
#hacm-dialog .hacm-item { border-bottom: 1px solid var(--hacm-line); }

#hacm-dialog .hacm-row { display: flex; align-items: stretch; }

#hacm-dialog .hacm-link {
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	min-height: 52px;
	padding: 14px 8px 14px 18px;
	color: var(--hacm-ink);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .01em;
}
#hacm-dialog .hacm-link-static { cursor: default; }
#hacm-dialog a.hacm-link:hover { background: #f8f9fb; }

#hacm-dialog .hacm-acc {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	color: var(--hacm-muted);
	border-left: 1px solid var(--hacm-line);
}
#hacm-dialog .hacm-acc:hover { background: #f8f9fb; color: var(--hacm-red); }
#hacm-dialog .hacm-chev { transition: transform .25s var(--hacm-ease); }
#hacm-dialog .hacm-acc[aria-expanded="true"] {
	color: var(--hacm-red);
	background: #fff5f5;
}
#hacm-dialog .hacm-acc[aria-expanded="true"] .hacm-chev { transform: rotate(180deg); }

/* Sublist: shown by a display toggle. No max-height anywhere — the drawer
   scrolls, the list is never clipped, however long it gets. */
#hacm-dialog .hacm-sublist {
	display: none;
	background: #fafbfc;
	border-top: 1px solid var(--hacm-line);
}
#hacm-dialog .hacm-sublist.hacm-sub-open { display: block; }

#hacm-dialog .hacm-sublink {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 46px;
	padding: 11px 20px 11px 38px;
	border-bottom: 1px solid var(--hacm-line);
	color: var(--hacm-body);
	font-size: 13.5px;
	font-weight: 500;
	line-height: 1.35;
	transition: background .14s ease, color .14s ease;
}
#hacm-dialog .hacm-subitem:last-child .hacm-sublink { border-bottom: 0; }
#hacm-dialog .hacm-sublink::before {
	content: "";
	flex: none;
	width: 4px;
	height: 4px;
	margin-left: -14px;
	border-radius: 50%;
	background: #bcc3cd;
	transition: background .14s ease;
}
#hacm-dialog .hacm-sublink:hover { background: var(--hacm-tint); color: var(--hacm-red); }
#hacm-dialog .hacm-sublink:hover::before { background: var(--hacm-red); }

/* =====================================================================
   5. STICKY CTAs
   ===================================================================== */
#hacm-dialog .hacm-cta {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 14px 16px;
	padding-bottom: max(14px, env(safe-area-inset-bottom));
	background: #fff;
	border-top: 1px solid var(--hacm-line);
}
#hacm-dialog .hacm-cta-call {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 14px;
	border-radius: 10px;
	background: var(--hacm-red);
	color: #fff;
	font-size: 17px;
	font-weight: 800;
	box-shadow: 0 3px 12px rgba(224, 11, 22, .3);
	transition: background .18s ease;
}
#hacm-dialog .hacm-cta-call:hover { background: #c00913; }
#hacm-dialog .hacm-cta-quote {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 12px;
	border: 2px solid var(--hacm-blue);
	border-radius: 10px;
	color: var(--hacm-blue);
	font-size: 14px;
	font-weight: 700;
	transition: background .18s ease, color .18s ease;
}
#hacm-dialog .hacm-cta-quote:hover { background: var(--hacm-blue); color: #fff; }

/* =====================================================================
   6. FOCUS / MOTION / CONTRAST
   ===================================================================== */
#hacm-dialog a:focus-visible,
#hacm-dialog button:focus-visible {
	outline: 3px solid var(--hacm-blue);
	outline-offset: -3px;
	border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
	#hacm-dialog,
	#hacm-dialog::backdrop,
	#hacm-dialog .hacm-chev,
	.hacm-burger-box span { transition-duration: .01ms !important; }
}

@media (forced-colors: active) {
	#hacm-dialog { border: 1px solid CanvasText !important; background: Canvas !important; }
	#hacm-dialog .hacm-link,
	#hacm-dialog .hacm-sublink { color: LinkText; }
}

/* =====================================================================
   7. DESKTOP — the drawer never applies
   ===================================================================== */
@media screen and (min-width: 992px) {
	#hacm-burger,
	.hacm-phone { display: none !important; }
	#hacm-dialog { display: none !important; }
}
