/* Top bar */
.airtel-topbar {
	background: var(--airtel-primary);
}
.airtel-topbar__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 8px 20px;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 24px;
}
.airtel-topbar__account {
	display: flex;
	align-items: center;
}
.airtel-topbar__inner a {
	color: var(--airtel-white);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
}
.airtel-topbar__inner a:hover {
	color: var(--airtel-primary-hover);
}
.airtel-topbar__account {
	position: relative;
}
.airtel-topbar__account-menu {
	list-style: none;
	margin: 0;
	padding: 8px 0;
	position: absolute;
	top: 100%;
	right: 0;
	min-width: 180px;
	background: var(--airtel-white);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
	border-radius: 8px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: all 0.15s ease;
	z-index: 200;
}
.airtel-topbar {
	position: relative;
	z-index: 200;
}
.airtel-topbar__account:hover .airtel-topbar__account-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
.airtel-topbar__account-menu a {
	display: block;
	padding: 8px 16px;
	color: var(--airtel-text) !important;
	font-weight: 600;
	white-space: nowrap;
}
.airtel-topbar__account-menu a:hover {
	background: var(--airtel-primary);
	color: var(--airtel-white) !important;
}

/* Header — an inset floating card (NOT edge-to-edge), matching Figma exactly:
   red topbar full-width, then a max-width white rounded-bottom-corner card with a
   shadow, sitting directly below it with page background/hero image visible in the gutters. */
.airtel-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: transparent;
}
.airtel-header__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	background: var(--airtel-white);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	border-radius: 0 0 20px 20px;
}
.airtel-header__logo img,
.airtel-header__logo .custom-logo {
	height: 53px;
	width: auto;
	display: block;
}
.airtel-header__nav-list {
	display: flex;
	align-items: center;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.airtel-header__nav-list li {
	position: relative;
}
.airtel-header__nav-list a {
	display: block;
	padding: 8px 16px;
	color: var(--airtel-text);
	font-weight: 600;
	font-size: 15px;
	text-decoration: none;
	border-radius: 999px;
}
/* Top-level items: red underlined text on hover/active — matches Figma (no filled pill).
   WordPress marks the top-level item as current-menu-parent/current-menu-ancestor (not
   current-menu-item) when the visitor is on a CHILD page inside its dropdown (e.g. viewing
   /gigafy-networks/ marks "Networks" this way, not "current-menu-item") — style all three
   states the same way so the parent nav item stays visibly active on every page beneath it. */
.airtel-header__nav-list > li > a:hover,
.airtel-header__nav-list > li.current-menu-item > a,
.airtel-header__nav-list > li.current-menu-parent > a,
.airtel-header__nav-list > li.current-menu-ancestor > a {
	background: transparent;
	color: var(--airtel-primary);
	text-decoration: underline;
	text-underline-offset: 4px;
}
/* Dropdown submenu items keep the filled hover treatment — standard menu UX.
   The active submenu item (current-menu-item inside a sub-menu) gets the same filled
   treatment permanently, not just on hover, so it's visibly marked as the current page. */
.airtel-header__nav-list ul a:hover,
.airtel-header__nav-list ul li.current-menu-item > a {
	background: var(--airtel-primary);
	color: var(--airtel-white);
	text-decoration: none;
}
.airtel-header__nav-list ul {
	list-style: none;
	margin: 0;
	padding: 8px 0;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	background: var(--airtel-white);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	border-radius: 8px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: all 0.15s ease;
}
.airtel-header__nav-list li:hover > ul {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
.airtel-header__nav-list ul a {
	border-radius: 0;
	white-space: nowrap;
}
.airtel-header__ctas {
	display: flex;
	gap: 12px;
}

/* Buttons */
.airtel-btn {
	display: inline-block;
	padding: 14px 28px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 14px;
	text-decoration: none;
	text-align: center;
	white-space: nowrap;
}
.airtel-btn--primary {
	background: var(--airtel-primary);
	color: var(--airtel-white);
}
.airtel-btn--primary:hover {
	background: var(--airtel-primary-hover);
	color: var(--airtel-white);
}
.airtel-btn--outline {
	background: transparent;
	color: var(--airtel-primary);
	border: 2px solid var(--airtel-primary);
}
.airtel-btn--outline:hover {
	background: var(--airtel-primary);
	color: var(--airtel-white);
}

/* Footer */
.airtel-footer {
	background: #F7F7F8;
	color: var(--airtel-text);
	padding: 64px 20px 0;
}
.airtel-footer__inner {
	max-width: 1200px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
	gap: 32px;
	padding-bottom: 48px;
}
.airtel-footer__logo,
.airtel-footer__logo img,
.airtel-footer__logo .custom-logo {
	height: 53px;
	width: auto;
	margin-bottom: 16px;
}
.airtel-footer__brand p {
	font-size: 14px;
	color: var(--airtel-dark-grey);
	margin: 4px 0;
}
.airtel-footer__col h5 {
	font-size: 15px;
	font-weight: 700;
	margin: 0 0 16px;
}
.airtel-footer__col ul {
	list-style: none;
	margin: 0 0 24px;
	padding: 0;
}
.airtel-footer__col li {
	margin-bottom: 10px;
}
.airtel-footer__col a {
	color: var(--airtel-dark-grey);
	text-decoration: none;
	font-size: 14px;
}
.airtel-footer__col a:hover {
	color: var(--airtel-primary);
}
.airtel-footer__bottom {
	border-top: 1px solid var(--airtel-light-grey);
	padding: 20px 0;
	text-align: center;
}
.airtel-footer__bottom p {
	font-size: 13px;
	color: var(--airtel-dark-grey);
	margin: 0;
}

/* Mobile hamburger toggle — hidden on desktop */
.airtel-header__toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 40px;
	height: 40px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
}
.airtel-header__toggle span {
	display: block;
	width: 100%;
	height: 2px;
	background: var(--airtel-text);
	transition: transform 0.2s ease, opacity 0.2s ease;
}
.airtel-header__toggle.is-open span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}
.airtel-header__toggle.is-open span:nth-child(2) {
	opacity: 0;
}
.airtel-header__toggle.is-open span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 900px) {
	.airtel-header__toggle {
		display: flex;
	}
	.airtel-header__inner {
		flex-wrap: wrap;
	}
	.airtel-header__ctas {
		order: 3;
	}

	/* Nav becomes a full-width collapsible panel under the header, not a hidden block */
	.airtel-header__nav {
		display: block;
		flex-basis: 100%;
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.25s ease;
		order: 4;
	}
	.airtel-header__nav.is-open {
		max-height: 1200px;
	}
	.airtel-header__nav-list {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 12px 0;
	}
	.airtel-header__nav-list a {
		border-radius: 0;
		padding: 12px 4px;
	}
	.airtel-header__nav-list li {
		border-bottom: 1px solid var(--airtel-light-grey);
	}

	/* Submenus become inline accordions instead of hover overlays */
	.airtel-header__nav-list ul {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		border-radius: 0;
		max-height: 0;
		overflow: hidden;
		padding: 0;
		transition: max-height 0.2s ease;
	}
	.airtel-header__nav-list li.is-open > ul {
		max-height: 600px;
		padding: 4px 0 8px;
	}
	.airtel-header__nav-list ul a {
		padding-left: 24px;
		font-weight: 500;
	}

	/* Top bar account dropdown: tap-toggled via JS on mobile */
	.airtel-topbar__account-menu {
		position: static;
		opacity: 0;
		visibility: hidden;
		max-height: 0;
		overflow: hidden;
		box-shadow: none;
		transform: none;
		transition: max-height 0.2s ease;
	}
	.airtel-topbar__account.is-open .airtel-topbar__account-menu {
		opacity: 1;
		visibility: visible;
		max-height: 300px;
	}
	.airtel-topbar__account-menu a {
		color: var(--airtel-white) !important;
	}
	.airtel-topbar__account-menu a:hover {
		background: transparent;
		color: var(--airtel-primary-hover) !important;
	}

	.airtel-footer__inner {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 600px) {
	.airtel-header__ctas .airtel-btn {
		padding: 10px 18px;
		font-size: 13px;
	}
	.airtel-footer__inner {
		grid-template-columns: 1fr;
	}
	.airtel-topbar__inner {
		gap: 16px;
	}
}
