/* Aerocity Header widget — structural CSS only.
   Every color, size, spacing, and typography value is controlled through the
   widget's own Elementor Style tab (see class-header-widget.php); nothing
   here should need editing to reskin the header. */

.aerocity-topbar {
	overflow: hidden;
}
.aerocity-topbar-inner {
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	max-width: 1600px;
	margin: 0 auto;
	padding: 0 40px;
	flex-wrap: nowrap;
}
.aerocity-topbar-side {
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	min-width: 0;
}
.aerocity-topbar-side a,
.aerocity-topbar-side span {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	white-space: nowrap;
}
.aerocity-topbar i,
.aerocity-topbar svg {
	width: 1em;
	height: 1em;
	display: inline-block;
	vertical-align: middle;
	line-height: 1;
	fill: currentColor;
	flex-shrink: 0;
}

.aerocity-header-bar {
	width: 100%;
	position: relative;
}
.aerocity-nav-wrap {
	max-width: 1600px;
	margin: 0 auto;
	padding: 0 40px;
	display: flex;
	align-items: center;
	gap: 48px;
}

.aerocity-logo {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
}
.aerocity-logo img {
	display: block;
	height: auto;
}

.aerocity-menu-toggle {
	display: none;
	margin-left: auto;
	border: 0;
	background: none;
	cursor: pointer;
	padding: 0;
	line-height: 1;
}
.aerocity-menu-toggle i,
.aerocity-menu-toggle svg {
	width: 1em;
	height: 1em;
	display: inline-block;
	vertical-align: middle;
	fill: currentColor;
}
.aerocity-toggle-icon-close { display: none; }
.aerocity-header-bar button.aerocity-menu-toggle,
.aerocity-header-bar button.aerocity-menu-toggle:focus,
.aerocity-header-bar button.aerocity-menu-toggle:active {
	background: var(--aerocity-toggle-bg, transparent) !important;
	border: 0; box-shadow: none;
}
.aerocity-header-bar button.aerocity-menu-toggle:hover {
	background: var(--aerocity-toggle-hover-bg, transparent) !important;
}
.aerocity-header-bar button.aerocity-menu-toggle:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.aerocity-menu-toggle.is-open .aerocity-toggle-icon-open { display: none; }
.aerocity-menu-toggle.is-open .aerocity-toggle-icon-close { display: inline-flex; }

/* ---------- Services Mega Menu (matches reference build exactly) ---------- */
.aerocity-nav-services { height: 100%; display: flex; align-items: center; }
.aerocity-nav-services-trigger {
	height: 100%; padding: 0; border: 0; background: transparent; cursor: pointer;
	display: flex; align-items: center; gap: 7px; position: relative;
	color: #071826; font: 600 15px "Inter", Arial, sans-serif;
}
.aerocity-nav-services-trigger .aerocity-caret { font-size: 10px; transition: transform .2s; margin-left: 0; }
/* Keep the native button accessible without inheriting theme button fills. */
.aerocity-nav button.aerocity-nav-services-trigger,
.aerocity-nav button.aerocity-nav-services-trigger:hover,
.aerocity-nav button.aerocity-nav-services-trigger:focus,
.aerocity-nav button.aerocity-nav-services-trigger:active {
	background: transparent !important;
	border: 0; border-radius: 0; box-shadow: none;
	color: var(--aerocity-nav-text, #071826);
}
.aerocity-nav .aerocity-nav-services:hover > .aerocity-nav-services-trigger,
.aerocity-nav .aerocity-nav-services:focus-within > .aerocity-nav-services-trigger,
.aerocity-nav .aerocity-nav-services.open > .aerocity-nav-services-trigger,
.aerocity-nav .aerocity-nav-services.active > .aerocity-nav-services-trigger {
	color: var(--aerocity-nav-hover-text, #071826);
}
.aerocity-nav button.aerocity-nav-services-trigger:focus-visible {
	outline: 2px solid var(--aerocity-nav-underline, #ED1C24); outline-offset: 3px;
}
.aerocity-nav-services:hover .aerocity-nav-services-trigger:after,
.aerocity-nav-services:focus-within .aerocity-nav-services-trigger:after,
.aerocity-nav-services.open .aerocity-nav-services-trigger:after,
.aerocity-nav-services.active .aerocity-nav-services-trigger:after {
	content: ""; position: absolute; bottom: 22px; left: 0; right: 0; height: var(--aerocity-nav-underline-thickness, 3px); background: var(--aerocity-nav-underline, #ED1C24);
}
.aerocity-nav-services:hover .aerocity-nav-services-trigger .aerocity-caret,
.aerocity-nav-services:focus-within .aerocity-nav-services-trigger .aerocity-caret,
.aerocity-nav-services.open .aerocity-nav-services-trigger .aerocity-caret {
	transform: rotate(180deg);
}
.aerocity-nav-services .aerocity-services-mega-menu {
	position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-top: 1px solid #DBE5EA;
	box-shadow: 0 22px 40px rgba(7,24,38,.15); opacity: 0; visibility: hidden; pointer-events: none;
	transform: translateY(10px); transition: opacity .2s, transform .2s, visibility .2s; display: block;
}
.aerocity-nav-services:hover .aerocity-services-mega-menu,
.aerocity-nav-services:focus-within .aerocity-services-mega-menu,
.aerocity-nav-services.open .aerocity-services-mega-menu {
	opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0);
}
.aerocity-mega-menu-inner { max-width: 1600px; margin: 0 auto; display: grid; grid-template-columns: 270px 1fr; gap: 32px; padding: 28px 40px 30px; align-items: start; }
.aerocity-mega-menu-intro { padding: 5px 28px 5px 0; border-right: 1px solid #DBE5EA; align-self: start; }
.aerocity-mega-menu-intro .eyebrow { margin: 0 0 5px; text-transform: uppercase; color: #ED1C24; font: 800 15px "Barlow Condensed", Arial, sans-serif; letter-spacing: .3px; }
.aerocity-mega-menu-intro h2 { margin: 5px 0 12px; text-transform: uppercase; color: #071826; font: 800 35px/0.95 "Barlow Condensed", Arial, sans-serif; }
.aerocity-mega-menu-intro > p:not(.eyebrow) { margin: 0 0 18px; color: #60707C; font-size: 13px; line-height: 1.55; }
.aerocity-mega-menu-intro > a { display: inline-flex; align-items: center; gap: 8px; color: #ED1C24; font: 700 17px "Barlow Condensed", Arial, sans-serif; text-decoration: none; align-self: flex-start; height: auto; flex: 0 0 auto; max-width: max-content; }
.aerocity-mega-services-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px 14px; }
.aerocity-mega-service-link:after,
.aerocity-mega-menu-intro > a:after {
	display: none !important;
}
.aerocity-mega-service-link {
	min-height: 82px; min-width: 0; display: grid; grid-template-columns: 44px minmax(0, 1fr) 14px; align-items: center;
	gap: 12px; padding: 12px 13px; border: 1px solid transparent; border-radius: 4px;
	text-decoration: none; transition: .2s;
}
.aerocity-mega-service-link:hover { background: #f4f8fa; border-color: #DBE5EA; transform: translateY(-1px); }
.aerocity-mega-service-icon { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #FFE7E8; color: #ED1C24; font-size: 18px; }
.aerocity-mega-service-icon i, .aerocity-mega-service-icon svg { width: 18px !important; height: 18px !important; font-size: 18px !important; display: inline-flex !important; align-items: center; justify-content: center; color: #ED1C24; fill: #ED1C24; }
.aerocity-mega-service-link strong { display: block; color: #071826; font: 800 19px/1.05 "Barlow Condensed", Arial, sans-serif; }
.aerocity-nav .aerocity-mega-service-link { white-space: normal; }
.aerocity-mega-service-link > span:not(.aerocity-mega-service-icon) { min-width: 0; width: 100%; }
.aerocity-mega-service-link small {
	display: -webkit-box; -webkit-box-orient: vertical;
	-webkit-line-clamp: var(--aerocity-mega-description-lines, 2);
	max-width: var(--aerocity-mega-description-width, 220px); width: 100%;
	white-space: normal; overflow-wrap: anywhere; text-wrap: balance; overflow: hidden;
	margin-top: 5px; color: #60707C; font-size: 11px; line-height: 1.3;
}
.aerocity-mega-service-arrow { color: #ED1C24; font-size: 11px !important; width: 11px !important; height: 11px !important; opacity: 0; transform: translateX(-5px); transition: .2s; }
.aerocity-mega-service-link:hover .aerocity-mega-service-arrow { opacity: 1; transform: translateX(0); }

/* Dropdown / Mega Menu */
.aerocity-nav-item { position: relative; height: 100%; display: flex; align-items: center; }
.aerocity-caret { font-size: 10px !important; width: 10px !important; height: 10px !important; margin-left: 6px; display: inline-flex !important; align-items: center; justify-content: center; transition: transform .2s; }
.aerocity-nav-item.aerocity-dropdown-open .aerocity-caret { transform: rotate(180deg); }
.aerocity-dropdown {
	position: absolute; top: 100%; left: 0; min-width: 230px; width: 230px;
	background: #fff; box-shadow: 0 12px 30px rgba(7,24,38,.15);
	display: none; flex-direction: column; padding: 8px 0; z-index: 50;
}
.aerocity-dropdown a { display: block; padding: 10px 20px; text-decoration: none; height: auto; color: #071826; }
.aerocity-dropdown a:hover { background: #F6FAFC; color: #ED1C24; }
.aerocity-mega-menu {
	position: absolute; top: 100%; left: 0; width: 780px; background: #fff;
	box-shadow: 0 16px 40px rgba(7,24,38,.18); display: none; padding: 28px; z-index: 50;
}
.aerocity-mega-menu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 24px; }
.aerocity-mega-menu-link { display: block; padding: 12px 14px; border-radius: 4px; text-decoration: none; transition: background-color .2s; }
.aerocity-mega-menu-link:hover { background: #F6FAFC; }
.aerocity-mega-menu-title { display: block; font: 700 15px "Barlow Condensed", Arial, sans-serif; text-transform: uppercase; color: #071826; }
.aerocity-mega-menu-desc { display: block; font-size: 12px; color: #60707C; margin-top: 3px; }

@media (max-width: 1200px) and (min-width: 1025px) {
	.aerocity-mega-menu-inner { grid-template-columns: 220px 1fr; gap: 22px; }
	.aerocity-mega-menu-intro h2 { font-size: 30px; }
	.aerocity-mega-service-link { grid-template-columns: 38px minmax(0, 1fr); min-height: 76px; padding: 10px; }
	.aerocity-mega-service-icon { width: 36px; height: 36px; }
	.aerocity-mega-service-icon i, .aerocity-mega-service-icon svg { width: 16px !important; height: 16px !important; }
	.aerocity-mega-service-link strong { font-size: 17px; }
	.aerocity-mega-service-link small { font-size: 10px; }
	.aerocity-mega-service-arrow { display: none; }
}

@media (min-width: 1025px) {
	.aerocity-nav-item.aerocity-has-dropdown:hover .aerocity-dropdown,
	.aerocity-nav-item.aerocity-has-mega:hover .aerocity-mega-menu,
	.aerocity-nav-item.aerocity-dropdown-open .aerocity-dropdown,
	.aerocity-nav-item.aerocity-dropdown-open .aerocity-mega-menu {
		display: flex;
	}
	.aerocity-mega-menu.aerocity-dropdown-open, .aerocity-nav-item.aerocity-dropdown-open .aerocity-mega-menu { display: block; }
}

.aerocity-nav {
	margin-left: auto;
	display: flex;
	align-items: center;
	height: 100%;
}
.aerocity-nav a {
	position: relative;
	display: grid;
	place-items: center;
	height: 100%;
	text-decoration: none;
	white-space: nowrap;
}
.aerocity-nav > a:hover:after,
.aerocity-nav > a.active:after {
	content: "";
	position: absolute;
	bottom: 22px;
	left: 0;
	right: 0;
}

.aerocity-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	text-decoration: none;
	border: 0;
	cursor: pointer;
	white-space: nowrap;
	transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
	flex-shrink: 0;
}

/* Mobile menu panel: becomes a dropdown below the given breakpoint.
   Uses Elementor's own responsive breakpoint classes so it always matches
   whatever breakpoints are set in Site Settings → Layout. */
@media (max-width: 1024px) {
	.aerocity-header-bar, .aerocity-nav-wrap { box-sizing: border-box; }
	.aerocity-header-bar .aerocity-nav-wrap { flex-wrap: nowrap; gap: 16px; }
	.aerocity-logo { min-width: 0; max-width: calc(100% - 60px); flex-shrink: 1; }
	.aerocity-logo img { max-width: 100%; object-fit: contain; }
	.aerocity-menu-toggle { flex: 0 0 44px; min-height: 44px; }
	.aerocity-header-bar .aerocity-nav-wrap > .aerocity-cta { display: none; }
	.aerocity-nav { max-height: calc(100dvh - 125px); overflow-y: auto; overscroll-behavior: contain; }
	/* Expanded services must scroll, never compress sibling navigation rows. */
	.aerocity-nav > * { flex-shrink: 0; }
	.aerocity-nav > a:not(.aerocity-cta) { min-height: 48px; }
	.aerocity-nav > .aerocity-nav-services { flex-basis: auto; }
	.aerocity-nav .aerocity-mega-services-grid { grid-template-columns: minmax(0, 1fr); }
	.aerocity-nav-wrap {
		flex-wrap: wrap;
	}
	.aerocity-menu-toggle {
		display: block;
	}
	.aerocity-nav {
		display: none;
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		height: auto;
		flex-direction: column;
		align-items: stretch;
		gap: 0 !important;
		padding: 15px;
		z-index: 40;
	}
	.aerocity-nav.aerocity-nav--open {
		display: flex;
	}
	.aerocity-nav a {
		height: 48px;
		width: 100%;
		place-items: center start;
		justify-items: start;
		padding-left: 4px;
	}
	.aerocity-nav > a:hover:after,
	.aerocity-nav > a.active:after {
		bottom: 4px;
		left: 4px;
		right: auto;
		width: 32px;
	}
	.aerocity-header-bar {
		position: relative;
	}
	.aerocity-nav-item {
		height: auto;
		display: block;
		width: 100%;
	}
	.aerocity-nav-item a {
		display: flex;
		align-items: center;
		justify-content: space-between;
	}
	.aerocity-dropdown, .aerocity-mega-menu {
		position: static;
		width: 100%;
		box-shadow: none;
		display: none;
		padding-left: 16px;
	}
	.aerocity-nav-item.aerocity-dropdown-open .aerocity-dropdown,
	.aerocity-nav-item.aerocity-dropdown-open .aerocity-mega-menu {
		display: block;
	}
	.aerocity-mega-menu-grid {
		grid-template-columns: 1fr !important;
	}
	.aerocity-dropdown a, .aerocity-mega-menu-link {
		height: auto;
	}
	.aerocity-nav-services {
		height: auto;
		width: 100%;
		display: block;
	}
	.aerocity-nav-services-trigger {
		width: 100%;
		height: 48px;
		justify-content: flex-start;
		padding-left: 4px;
	}
	.aerocity-nav-services:hover .aerocity-nav-services-trigger:after,
	.aerocity-nav-services:focus-within .aerocity-nav-services-trigger:after,
	.aerocity-nav-services.open .aerocity-nav-services-trigger:after,
	.aerocity-nav-services.active .aerocity-nav-services-trigger:after {
		bottom: 4px; left: 4px; right: auto; width: 32px;
	}
	.aerocity-nav-services .aerocity-services-mega-menu {
		position: static; display: none; opacity: 1; visibility: visible;
		pointer-events: auto; transform: none; box-shadow: none; border: 0; background: #F3F7F9;
	}
	.aerocity-nav-services:hover .aerocity-services-mega-menu, .aerocity-nav-services:focus-within .aerocity-services-mega-menu { display: none; }
	.aerocity-nav-services.open .aerocity-services-mega-menu { display: block; }
	.aerocity-mega-menu-inner { width: 100%; display: block; padding: 8px 12px 12px; }
	.aerocity-mega-menu-intro { display: none; }
	.aerocity-mega-services-grid { grid-template-columns: 1fr; gap: 5px; }
	.aerocity-mega-service-link { width: 100%; min-height: 56px; grid-template-columns: 36px minmax(0, 1fr) 12px; text-align: left; background: #fff; border-color: #E0E8EC; padding: 8px 10px; }
	.aerocity-mega-service-icon { width: 34px; height: 34px; font-size: 15px; }
	.aerocity-mega-service-icon i, .aerocity-mega-service-icon svg { width: 15px !important; height: 15px !important; font-size: 15px !important; }
	.aerocity-mega-service-link strong { font-size: 17px; }
	.aerocity-mega-service-link small { display: none; }
	.aerocity-mega-service-arrow { display: block; opacity: 1; transform: none; }
}

.aerocity-header-bar .aerocity-nav > .aerocity-mobile-cta { display: none; }
.aerocity-header-bar .aerocity-nav > .aerocity-mobile-cta:after { display: none; }
@media (max-width: 1024px) {
	.aerocity-header-bar .aerocity-nav > .aerocity-mobile-cta { display: flex; min-width: 0; height: auto; min-height: 48px; margin-top: 12px; white-space: normal; }
}
