/* ============================================================
   NAV — NoisyPixel.com
   Header layout, nav links, dropdowns, mobile drawer.
   ============================================================ */

/* ===== Header Bar Layout ===== */
/* Inner flex row — logo | nav | CTA */
.nav-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 64px;
}
@media (min-width: 1024px) {
	.nav-bar {
		height: 80px;
	}
}

/* ===== Logo ===== */
/* Logo link — icon + wordmark */
.nav-logo {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
}

/* Wordmark text */
.nav-logo-text {
	font-weight: 700;
	font-size: 1.25rem;
	letter-spacing: -0.02em;
	color: var(--np-navy);
	transition: color 0.2s ease;
}
.nav-logo:hover .nav-logo-text {
	color: var(--np-cyan);
}

/* Logo image scale on hover */
.nav-logo:hover img {
	transform: scale(1.05);
}
.nav-logo img {
	border-radius: 6px;
	transition: transform 0.2s ease;
}

/* ===== Desktop Navigation ===== */
/* Hidden on mobile, flex row on desktop */
.nav-desktop {
	display: none;
}
@media (min-width: 1024px) {
	.nav-desktop {
		display: flex;
		align-items: center;
		gap: 4px;
	}
}

/* ===== Desktop CTA Area ===== */
/* Hidden on mobile, flex row on desktop */
.nav-cta-desktop {
	display: none;
}
@media (min-width: 1024px) {
	.nav-cta-desktop {
		display: flex;
		align-items: center;
		gap: 12px;
	}
}

/* ===== Hamburger Button ===== */
/* Mobile menu toggle — hidden on desktop */
.nav-hamburger {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 8px;
	border-radius: 8px;
	color: var(--np-charcoal);
	background: none;
	border: none;
	cursor: pointer;
	transition: background 0.15s ease;
}
.nav-hamburger:hover {
	background: var(--np-light);
}
@media (min-width: 1024px) {
	.nav-hamburger {
		display: none;
	}
}

/* ===== Nav Links ===== */
/* Desktop nav link */
.nav-link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 8px 14px;
	font-size: 0.9375rem;
	font-weight: 500;
	color: var(--np-charcoal);
	border-radius: 8px;
	transition:
		color 0.15s ease,
		background 0.15s ease;
	background: none;
	border: none;
	cursor: pointer;
	text-decoration: none;
}
.nav-link:hover,
.nav-link.active {
	color: var(--np-cyan);
	background: rgba(0, 136, 255, 0.06);
}

/* ===== Dropdown Items ===== */
/* Individual item in a nav dropdown panel */
.dropdown-item {
	display: flex;
	flex-direction: column;
	padding: 10px 12px;
	border-radius: 8px;
	transition: background 0.15s ease;
	text-decoration: none;
}
.dropdown-item:hover {
	background: rgba(0, 136, 255, 0.05);
}

/* Dropdown item primary text */
.dropdown-item-title {
	font-weight: 600;
	color: var(--np-charcoal);
	font-size: 0.875rem;
}

/* Dropdown item secondary descriptor */
.dropdown-item-desc {
	font-size: 0.75rem;
	color: var(--np-gray);
	margin-top: 2px;
}

/* ===== Mobile Navigation Overlay ===== */
/* Full-screen backdrop behind mobile drawer — hidden on desktop */
.nav-mobile-overlay {
	position: fixed;
	inset: 0;
	z-index: 40;
}
@media (min-width: 1024px) {
	.nav-mobile-overlay {
		display: none;
	}
}

/* Semi-transparent navy backdrop */
.nav-mobile-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(10, 14, 39, 0.6);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}

/* ===== Mobile Drawer ===== */
/* Slide-in panel from the right — hidden on desktop */
.nav-mobile-drawer {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 50;
	width: 320px;
	max-width: 90vw;
	background: white;
	box-shadow: -4px 0 40px rgba(0, 0, 0, 0.15);
	display: flex;
	flex-direction: column;
}
@media (min-width: 1024px) {
	.nav-mobile-drawer {
		display: none;
	}
}

/* Mobile drawer header — logo + close button */
.nav-mobile-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px;
	border-bottom: 1px solid var(--np-border);
}

/* Mobile drawer close button */
.nav-mobile-close {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 6px;
	border-radius: 8px;
	background: none;
	border: none;
	cursor: pointer;
	transition: background 0.15s ease;
}
.nav-mobile-close:hover {
	background: var(--np-light);
}

/* Mobile drawer scrollable links area */
.nav-mobile-links {
	flex: 1;
	overflow-y: auto;
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

/* Sub-nav indent group (services / industries list) */
.nav-mobile-subnav {
	padding-left: 16px;
	border-left: 2px solid var(--np-border);
	margin-block: 4px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

/* Mobile drawer footer — CTA button */
.nav-mobile-footer {
	padding: 20px;
	border-top: 1px solid var(--np-border);
}

/* ===== Mobile Nav Links ===== */
/* Top-level mobile nav link */
.mobile-nav-link {
	display: block;
	padding: 10px 12px;
	font-size: 1rem;
	font-weight: 600;
	color: var(--np-charcoal);
	border-radius: 8px;
	transition:
		color 0.15s ease,
		background 0.15s ease;
	text-decoration: none;
}
.mobile-nav-link:hover {
	color: var(--np-cyan);
	background: rgba(0, 136, 255, 0.06);
}

/* Sub-level mobile nav link (services / industries) */
.mobile-nav-sub {
	display: block;
	padding: 6px 10px;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--np-gray);
	border-radius: 6px;
	transition:
		color 0.15s ease,
		background 0.15s ease;
	text-decoration: none;
}
.mobile-nav-sub:hover {
	color: var(--np-cyan);
	background: rgba(0, 136, 255, 0.06);
}

/* ===== Footer Navigation ===== */
/* Footer section heading */
.footer-heading {
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--np-gray);
	margin-bottom: 14px;
}

/* Footer nav link */
.footer-link {
	display: inline-block;
	font-size: 0.875rem;
	color: var(--np-gray);
	text-decoration: none;
	transition: color 0.15s ease;
}
.footer-link:hover {
	color: white;
}

/* Footer social icon button */
.footer-social-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 8px;
	color: var(--np-gray);
	text-decoration: none;
	transition:
		background 0.15s ease,
		border-color 0.15s ease,
		color 0.15s ease;
}
.footer-social-link:hover {
	background: rgba(0, 136, 255, 0.15);
	border-color: rgba(0, 136, 255, 0.3);
	color: var(--np-cyan);
}

/* ===== Chevron icon rotation (dropdown open/closed state) ===== */
.nav-chevron {
	transition: transform 0.2s ease;
}
.nav-chevron.open {
	transform: rotate(180deg);
}

/* Full-width CTA button inside mobile nav footer */
.nav-mobile-footer .btn-primary {
	width: 100%;
	justify-content: center;
}

/* External link icon inside footer navigation links */
.footer-external-icon {
	display: inline;
	margin-left: 4px;
	margin-top: 4px;
}
