/*
 * ELNIQ GEO — header & footer chrome.
 * Loaded on every page (see inc/enqueue.php). Values are copied
 * verbatim from "ELNIQ GEO Homepage.dc.html" inline styles — this is
 * the source of truth per the design handoff README, cross-checked
 * against base.css tokens where they line up 1:1.
 *
 * Breakpoints (from the source file's own JS state, not a generic
 * framework grid):
 *   - 1220px  → header nav collapses to hamburger below this ("isDesktop")
 *   -  900px  → header horizontal padding/gaps step down below this ("isMobile")
 */

/* ------------------------------------------------------------ *
 * Page wrapper — mirrors the source's outer
 * `position:relative;overflow:hidden` div, which is what keeps the
 * negative-positioned decorative glows from ever causing horizontal
 * scroll anywhere on the page.
 * ------------------------------------------------------------ */
.eg-page {
	position: relative;
	overflow: hidden;
}

/* ------------------------------------------------------------ *
 * Header
 * ------------------------------------------------------------ */
.eg-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 50;
	background: rgba(245, 248, 251, 0.86);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--eg-border-light);
}

.eg-header__bar {
	max-width: var(--eg-container-xl);
	margin: 0 auto;
	padding: 0 12px;
	height: 72px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}
@media (min-width: 900px) {
	.eg-header__bar {
		padding: 0 24px;
		gap: 24px;
	}
}

.eg-header__spacer {
	height: 72px;
}

.eg-header__logo {
	flex-shrink: 0;
	display: flex;
}
.eg-header__logo img {
	height: 34px;
	width: auto;
}
.eg-header__logo .custom-logo {
	height: 34px;
	width: auto;
}

/* Desktop nav — hidden below 1220px, where the hamburger takes over. */
.eg-header__nav {
	display: none;
	align-items: center;
	gap: 2px;
	flex: 1;
	justify-content: center;
	min-width: 0;
}
@media (min-width: 1220px) {
	.eg-header__nav {
		display: flex;
	}
}

.eg-header__nav-item {
	position: relative;
}

.eg-header__nav-link {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 10px 10px;
	border-radius: var(--eg-radius-control);
	color: var(--eg-text-heading);
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
	text-decoration: none;
}
.eg-header__nav-link:hover,
.eg-header__nav-link:focus-visible {
	background: var(--eg-blue-tint-bg);
	color: var(--eg-text-heading);
}
.eg-header__nav-caret {
	font-size: 10px;
	color: var(--eg-text-muted);
}

.eg-header__dropdown {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 260px;
	background: #fff;
	border: 1px solid var(--eg-border-light);
	border-radius: var(--eg-radius-card);
	box-shadow: var(--eg-shadow-md);
	padding: 8px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(4px);
	transition: opacity 0.14s ease, transform 0.14s ease, visibility 0.14s;
}
.eg-header__nav-item:hover .eg-header__dropdown,
.eg-header__nav-item:focus-within .eg-header__dropdown {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.eg-header__dropdown-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 12px;
	border-radius: 10px;
	text-decoration: none;
}
.eg-header__dropdown-link:hover,
.eg-header__dropdown-link:focus-visible {
	background: var(--eg-section-bg-light);
}
.eg-header__dropdown-link-label {
	font-size: 14px;
	font-weight: 600;
	color: var(--eg-text-heading);
}
.eg-header__dropdown-badge {
	font-size: 10.5px;
	font-weight: 700;
	color: var(--eg-text-muted);
	background: rgba(100, 116, 139, 0.12);
	padding: 3px 8px;
	border-radius: var(--eg-radius-pill);
	white-space: nowrap;
}

.eg-header__actions {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-shrink: 0;
}
@media (min-width: 900px) {
	.eg-header__actions {
		gap: 10px;
	}
}

.eg-langswitch {
	display: flex;
	align-items: center;
	background: var(--eg-blue-tint-bg);
	border-radius: var(--eg-radius-pill);
	padding: 3px;
}
.eg-langswitch__btn {
	border: none;
	cursor: pointer;
	font-family: inherit;
	font-size: 12.5px;
	font-weight: 700;
	padding: 6px 9px;
	border-radius: var(--eg-radius-pill);
	background: transparent;
	color: var(--eg-text-muted);
}
@media (min-width: 900px) {
	.eg-langswitch__btn {
		padding: 6px 12px;
	}
}
.eg-langswitch__btn.is-active {
	background: #fff;
	color: var(--eg-text-heading);
}

.eg-header__login {
	display: none;
	font-size: 14.5px;
	font-weight: 600;
	color: var(--eg-text-heading);
	padding: 10px 14px;
	text-decoration: none;
}
.eg-header__login:hover,
.eg-header__login:focus-visible {
	color: var(--eg-blue);
	text-decoration: underline;
}

.eg-btn-gradient {
	display: inline-block;
	font-weight: 700;
	color: #fff;
	border-radius: var(--eg-radius-control);
	background: var(--eg-blue-gradient);
	white-space: nowrap;
	border: none;
	cursor: pointer;
	text-align: center;
	text-decoration: none;
	transition: box-shadow 0.15s ease, filter 0.15s ease;
}
.eg-btn-gradient:hover,
.eg-btn-gradient:focus-visible {
	color: #fff;
	box-shadow: var(--eg-shadow-lg);
	filter: brightness(1.06);
}

.eg-header__cta {
	font-size: 13px;
	padding: 8px 12px;
	flex-shrink: 0;
}
@media (min-width: 1220px) {
	.eg-header__login {
		display: inline-block;
	}
	.eg-header__cta {
		font-size: 14.5px;
		padding: 10px 20px;
	}
}

.eg-header__hamburger {
	border: none;
	background: none;
	font-size: 22px;
	cursor: pointer;
	color: var(--eg-text-heading);
	padding: 4px 2px;
	flex-shrink: 0;
	line-height: 1;
}
@media (min-width: 1220px) {
	.eg-header__hamburger {
		display: none;
	}
}

.eg-header__mobile-panel {
	padding: 12px 24px 24px;
	border-top: 1px solid var(--eg-border-light);
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.eg-header__mobile-panel[hidden] {
	display: none;
}
@media (min-width: 1220px) {
	.eg-header__mobile-panel {
		display: none !important;
	}
}
.eg-header__mobile-link {
	display: block;
	padding: 12px 4px;
	font-size: 15px;
	font-weight: 600;
	color: var(--eg-text-heading);
	border-bottom: 1px solid var(--eg-border-light);
	text-decoration: none;
}
.eg-header__mobile-login {
	padding: 14px 4px;
	font-size: 15px;
	font-weight: 600;
	color: var(--eg-text-heading);
	text-decoration: none;
}
.eg-header__mobile-login:hover {
	color: var(--eg-blue);
	text-decoration: underline;
}
.eg-header__mobile-cta {
	margin-top: 8px;
	text-align: center;
	font-size: 15px;
	padding: 14px 20px;
}

/* ------------------------------------------------------------ *
 * Breadcrumb — inner pages only (source: Platform.dc.html etc.)
 * ------------------------------------------------------------ */
.eg-breadcrumb-wrap {
	max-width: var(--eg-container-xl);
	margin: 0 auto;
	padding: 20px 24px 0;
}
.eg-breadcrumb {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13.5px;
	color: var(--eg-text-muted-2);
}
.eg-breadcrumb__link {
	color: var(--eg-text-muted);
	font-weight: 600;
	text-decoration: none;
}
.eg-breadcrumb__link:hover,
.eg-breadcrumb__link:focus-visible {
	color: var(--eg-blue);
	text-decoration: underline;
}
.eg-breadcrumb__current {
	color: var(--eg-text-heading);
	font-weight: 600;
}

/* ------------------------------------------------------------ *
 * Footer
 * ------------------------------------------------------------ */
.eg-footer-band {
	background: var(--eg-dark-gradient);
	position: relative;
	overflow: hidden;
}
.eg-footer-band__glow-a {
	position: absolute;
	top: -220px;
	right: -160px;
	width: 560px;
	height: 560px;
	border-radius: 50%;
	background: radial-gradient(circle, var(--eg-dark-glow), rgba(70, 143, 255, 0) 70%);
	pointer-events: none;
}
.eg-footer-band__glow-b {
	position: absolute;
	bottom: -260px;
	left: -160px;
	width: 520px;
	height: 520px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(70, 143, 255, 0.1), rgba(70, 143, 255, 0) 70%);
	pointer-events: none;
}
.eg-footer-band__dotgrid {
	position: absolute;
	inset: 0;
	background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
	background-size: 22px 22px;
	-webkit-mask-image: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.5) 30%, transparent 85%);
	mask-image: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.5) 30%, transparent 85%);
	pointer-events: none;
}
.eg-footer-band__noise {
	position: absolute;
	inset: 0;
	opacity: 0.5;
	pointer-events: none;
	background-image: url('data:image/svg+xml;utf8,<svg xmlns=%22http://www.w3.org/2000/svg%22 width=%22120%22 height=%22120%22><filter id=%22n%22><feTurbulence type=%22fractalNoise%22 baseFrequency=%220.9%22 numOctaves=%222%22 stitchTiles=%22stitch%22/></filter><rect width=%22100%25%22 height=%22100%25%22 filter=%22url(%23n)%22 opacity=%220.05%22/></svg>');
}

/* CTA band ("Ready to grow your AI visibility?") */
.eg-cta-band-wrap {
	padding: 88px 24px 0;
	position: relative;
}
.eg-cta-band {
	max-width: var(--eg-container-xl);
	margin: 0 auto;
	transform: translateY(-52px);
	background: linear-gradient(115deg, #155DFC, #0084D1);
	border-radius: var(--eg-radius-card-lg);
	padding: 40px 44px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	box-shadow: 0 24px 56px rgba(4, 14, 48, 0.4);
}
.eg-cta-band__title {
	font-size: 26px;
	font-weight: 800;
	color: #fff;
	margin: 0 0 8px;
	letter-spacing: -0.01em;
}
.eg-cta-band__copy {
	font-size: 14.5px;
	color: #DCE9FF;
	margin: 0;
}
.eg-cta-band__form {
	display: flex;
	flex-direction: column;
	gap: 12px;
	flex-wrap: wrap;
	flex-shrink: 0;
	width: 100%;
}
@media (min-width: 900px) {
	.eg-cta-band__form {
		flex-direction: row;
		width: auto;
	}
}
.eg-cta-band__input {
	flex: 1;
	min-width: 170px;
	padding: 13px 16px;
	border-radius: var(--eg-radius-control);
	border: 1.5px solid rgba(255, 255, 255, 0.35);
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	font-size: 14.5px;
	font-family: inherit;
	outline: none;
}
.eg-cta-band__input::placeholder {
	color: rgba(255, 255, 255, 0.65);
}
.eg-cta-band__input:focus {
	border-color: #fff;
	background: rgba(255, 255, 255, 0.14);
}
.eg-cta-band__submit {
	font-size: 14.5px;
	font-weight: 700;
	color: #155DFC;
	background: #fff;
	padding: 13px 22px;
	border-radius: var(--eg-radius-control);
	white-space: nowrap;
	text-align: center;
	border: none;
	cursor: pointer;
}
.eg-cta-band__submit:hover,
.eg-cta-band__submit:focus-visible {
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
	filter: brightness(0.97);
}

/* Footer columns */
.eg-footer {
	padding: 80px 24px 40px;
	position: relative;
}
.eg-footer__inner {
	max-width: var(--eg-container-xl);
	margin: 0 auto;
}
.eg-footer__grid {
	display: grid;
	grid-template-columns: 1fr;
	align-items: start;
	gap: 24px;
	padding-bottom: 48px;
	margin-bottom: 32px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
@media (min-width: 900px) {
	.eg-footer__grid {
		grid-template-columns: minmax(220px, 1.6fr) repeat(4, minmax(100px, 1fr));
	}
}
.eg-footer__brand {
	position: relative;
	padding-right: 24px;
	border-right: 1px solid rgba(255, 255, 255, 0.1);
}
.eg-footer__brand-glow {
	position: absolute;
	top: -60px;
	left: -40px;
	width: 260px;
	height: 200px;
	background: radial-gradient(circle, rgba(70, 143, 255, 0.3), rgba(70, 143, 255, 0) 70%);
	pointer-events: none;
}
.eg-footer__logo {
	position: relative;
	height: 40px;
	width: auto;
	display: block;
	margin-bottom: 20px;
}
.eg-footer__tagline {
	position: relative;
	font-size: 15.5px;
	color: #7C8CB8;
	line-height: 1.65;
	margin: 0;
	max-width: 300px;
}
.eg-footer__col-title {
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #5B76B8;
	margin-bottom: 16px;
}
.eg-footer__col-links {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.eg-footer__col-links a {
	font-size: 14px;
	color: #7C8CB8;
	font-weight: 500;
	text-decoration: none;
}
.eg-footer__col-links a:hover,
.eg-footer__col-links a:focus-visible {
	color: #fff;
	text-decoration: underline;
}
.eg-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}
.eg-footer__copyright {
	font-size: 13px;
	color: #7186B9;
}
.eg-footer__social {
	display: flex;
	align-items: center;
	gap: 12px;
}
.eg-footer__social a {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.07);
	border: 1px solid rgba(255, 255, 255, 0.16);
	display: flex;
	align-items: center;
	justify-content: center;
}
.eg-footer__social a:hover,
.eg-footer__social a:focus-visible {
	background: rgba(255, 255, 255, 0.16);
	border-color: rgba(255, 255, 255, 0.32);
}

/* Scroll-to-top */
.eg-scrolltop {
	position: fixed;
	bottom: 28px;
	right: 28px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.7);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	border: 1.5px solid var(--eg-text-heading);
	color: var(--eg-text-heading);
	font-size: 16px;
	cursor: pointer;
	box-shadow: var(--eg-shadow-sm);
	z-index: 300;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.2s ease, visibility 0.2s ease;
	opacity: 0;
	visibility: hidden;
}
.eg-scrolltop.is-visible {
	opacity: 1;
	visibility: visible;
}
.eg-scrolltop:hover,
.eg-scrolltop:focus-visible {
	transform: translateY(-3px);
	box-shadow: 0 8px 20px rgba(16, 35, 95, 0.18);
}
