/* ==========================================================
   Custom Site Header — AutoInsurance.org Competitor Redesign
   ========================================================== */
:root {
	--iq-header-h: 76px;
	--iq-navy: #0A192F;
	--iq-navy-dark: #07111E;
	--iq-navy-light: #1E293B;
	--iq-blue: #0066FF;
	--iq-blue-hover: #0052CC;
	--iq-green: #00C853;
	--iq-green-glow: rgba(0, 200, 83, 0.3);
	--iq-text: #0F172A;
	--iq-text-muted: #64748B;
	--iq-border: #E2E8F0;
	--iq-bg: rgba(255, 255, 255, 0.96);
	--iq-shadow: 0 4px 20px -2px rgba(10, 25, 47, 0.08);
	--iq-shadow-scrolled: 0 10px 30px -5px rgba(10, 25, 47, 0.15);
	--iq-font: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

/* Top Announcement Banner */
.iq-header-top-bar {
	background: linear-gradient(90deg, #0A192F 0%, #1E3A8A 50%, #0066FF 100%);
	color: #FFFFFF;
	font-family: var(--iq-font);
	font-size: 13px;
	font-weight: 600;
	padding: 8px 16px;
	text-align: center;
	letter-spacing: 0.2px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
}

.iq-header-top-bar span.badge {
	background: var(--iq-green);
	color: #0A192F;
	font-size: 11px;
	font-weight: 800;
	padding: 2px 8px;
	border-radius: 99px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* Header Container */
.iq-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 999999;
	height: var(--iq-header-h);
	background: var(--iq-bg);
	backdrop-filter: blur(16px) saturate(160%);
	-webkit-backdrop-filter: blur(16px) saturate(160%);
	border-bottom: 1px solid var(--iq-border);
	box-shadow: var(--iq-shadow);
	transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
	font-family: var(--iq-font);
}

.iq-header.iq-header-scrolled {
	box-shadow: var(--iq-shadow-scrolled);
	background: rgba(255, 255, 255, 0.98);
	height: 68px;
}

body.admin-bar .iq-header { top: 32px; }
@media screen and (max-width: 782px) {
	body.admin-bar .iq-header { top: 46px; }
}

.iq-header-inner {
	max-width: 1320px;
	margin: 0 auto;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	padding: 0 24px;
}

/* Logo */
.iq-header-logo a,
.iq-header-logo .custom-logo-link {
	display: flex;
	align-items: center;
	text-decoration: none;
	gap: 10px;
}

.iq-logo-img,
.iq-header-logo img,
.iq-header-logo .custom-logo {
	max-height: 48px;
	width: auto;
	object-fit: contain;
	display: block;
	transition: transform 0.25s ease;
}

.iq-header-logo:hover .iq-logo-img,
.iq-header-logo:hover .custom-logo {
	transform: scale(1.02);
}

.iq-logo-text {
	font-size: 24px;
	font-weight: 800;
	color: var(--iq-navy);
	letter-spacing: -0.6px;
	line-height: 1.1;
}

/* Navigation Menu */
.iq-header-nav {
	flex: 1;
	display: flex;
	justify-content: center;
	height: 100%;
}

ul.iq-menu {
	list-style: none;
	display: flex;
	align-items: center;
	height: 100%;
	gap: 4px;
	margin: 0;
	padding: 0;
}

.iq-menu-item {
	position: relative;
	height: 100%;
	display: flex;
	align-items: center;
}

.iq-top-link {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	color: var(--iq-text);
	text-decoration: none;
	font-size: 15px;
	font-weight: 600;
	border-radius: 8px;
	transition: all 0.2s ease;
	white-space: nowrap;
}

.iq-top-link:hover,
.iq-menu-item:hover > .iq-top-link,
.iq-menu-item.current-menu-item > .iq-top-link {
	background: #F1F5F9;
	color: var(--iq-blue);
}

.iq-caret {
	width: 6px;
	height: 6px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	margin-top: -3px;
	opacity: 0.6;
	transition: transform 0.2s ease;
}

.iq-menu-item:hover .iq-caret {
	transform: rotate(225deg);
	margin-top: 3px;
}

/* Dropdown Submenu */
ul.iq-sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 230px;
	background: #FFFFFF;
	border: 1px solid var(--iq-border);
	border-radius: 12px;
	box-shadow: 0 12px 32px -4px rgba(10, 25, 47, 0.12);
	padding: 10px 6px;
	margin: 0;
	list-style: none;
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
	z-index: 1000;
}

.iq-menu-item:hover > ul.iq-sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.iq-sub-link {
	display: block;
	padding: 10px 14px;
	color: var(--iq-text);
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	border-radius: 8px;
	transition: all 0.15s ease;
}

.iq-sub-link:hover {
	background: #F8FAFC;
	color: var(--iq-blue);
	padding-left: 18px;
}

/* Action Buttons (Phone & CTA) */
.iq-header-actions {
	display: flex;
	align-items: center;
	gap: 14px;
}

.iq-phone-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--iq-navy);
	text-decoration: none;
	font-size: 14px;
	font-weight: 700;
	padding: 8px 14px;
	background: #F8FAFC;
	border: 1px solid var(--iq-border);
	border-radius: 99px;
	transition: all 0.2s ease;
}

.iq-phone-pill:hover {
	background: #EDF2F7;
	color: var(--iq-blue);
	border-color: #CBD5E1;
}

.iq-phone-icon {
	width: 14px;
	height: 14px;
	background-color: var(--iq-green);
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.62 10.79a15.053 15.053 0 006.59 6.59l2.2-2.2a1 1 0 011.11-.27c1.21.49 2.53.76 3.88.76a1 1 0 011 1V20a1 1 0 01-1 1C10.07 21 3 13.93 3 5a1 1 0 011-1h3.5a1 1 0 011 1c0 1.35.27 2.67.76 3.88a1 1 0 01-.27 1.11l-2.37 2.4z'/%3E%3C/svg%3E");
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.62 10.79a15.053 15.053 0 006.59 6.59l2.2-2.2a1 1 0 011.11-.27c1.21.49 2.53.76 3.88.76a1 1 0 011 1V20a1 1 0 01-1 1C10.07 21 3 13.93 3 5a1 1 0 011-1h3.5a1 1 0 011 1c0 1.35.27 2.67.76 3.88a1 1 0 01-.27 1.11l-2.37 2.4z'/%3E%3C/svg%3E");
	display: inline-block;
}

.iq-cta-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 22px;
	background: linear-gradient(135deg, #00C853 0%, #009624 100%);
	color: #FFFFFF !important;
	text-decoration: none !important;
	font-size: 15px;
	font-weight: 700;
	border-radius: 99px;
	box-shadow: 0 4px 14px var(--iq-green-glow);
	transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
	white-space: nowrap;
}

.iq-cta-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(0, 200, 83, 0.45);
	background: linear-gradient(135deg, #00E676 0%, #00A82D 100%);
}

/* Mobile Toggle */
.iq-mobile-toggle {
	display: none;
	flex-direction: column;
	justify-content: space-between;
	width: 28px;
	height: 20px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
}

.iq-mobile-toggle span {
	width: 100%;
	height: 2.5px;
	background: var(--iq-navy);
	border-radius: 2px;
	transition: all 0.3s ease;
}

/* Mobile Responsive Adjustments */
@media (max-width: 1024px) {
	.iq-header-nav { display: none; }
	.iq-mobile-toggle { display: flex; }
	.iq-phone-pill { display: none; }
}
