/*
 * Natloans — Mobile Menu CSS
 * assets/css/nl-menu.css
 *
 * Design from Figma (update :root values to exact brand values):
 *
 *  Topbar:    Blue background, white logo, white X close
 *  Wave:      SVG curve at bottom of blue topbar
 *  Body:      Light grey background
 *  L1 items:  Bold, dark text, no divider lines
 *  L2 title:  Large bold BLUE text
 *  L2 items:  Regular weight, dark grey text
 *  Phone btn: Blue outline, blue text, phone icon
 *  CTA btn:   Lime/yellow-green, bold dark text
 *
 * ALL selectors scoped to .nl-mob-panel, .nl-hamburger, .nl-primary
 * Zero impact on any other page element.
 */

/* ── Tokens — update these to match exact Figma values ─────────── */
:root {
	--nl-blue: #1b6eb5; /* topbar bg, phone btn, L2 title, back btn */
	--nl-blue-dark: #155a96; /* topbar hover, button hover states */
	--nl-lime: #a8c800; /* Free Consultation button */
	--nl-lime-hover: #96b300; /* CTA hover */
	--nl-panel-bg: #f0f0f0; /* light grey body background */
	--nl-white: #ffffff; /* topbar text, search bar bg */
	--nl-text-dark: #1a1a1a; /* L1 item text */
	--nl-text-grey: #444444; /* L2 item text */
	--nl-text-muted: #888888; /* search placeholder */
	--nl-z-mob: 999999; /* above Elementor header (z: 9999) */
	--nl-ease: cubic-bezier(0.4, 0, 0.2, 1);
	--nl-dur: 240ms;
}

.nl-mob-panel *,
.nl-mob-panel *::before,
.nl-mob-panel *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}
.nl-mob-panel ul {
	list-style: none;
}
.nl-mob-panel a,
.nl-mob-panel button {
	font-family: inherit;
	text-decoration: none;
	background: none;
	border: none;
	cursor: pointer;
	color: inherit;
}

.nl-hamburger {
	display: none !important;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 35px;
	height: 26px;
	padding: 3px !important;
	background: none !important;
	border: none;
	cursor: pointer !important;
}
.nl-hamburger__bar {
	display: block;
	width: 100%;
	height: 3px;
	background: currentColor !important;
	border-radius: 2px;
	transition:
		transform var(--nl-dur) var(--nl-ease),
		opacity var(--nl-dur) var(--nl-ease);
}
.nl-hamburger[aria-expanded="true"] .nl-hamburger__bar:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}
.nl-hamburger[aria-expanded="true"] .nl-hamburger__bar:nth-child(2) {
	opacity: 0;
}
.nl-hamburger[aria-expanded="true"] .nl-hamburger__bar:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

.nl-secondary-list {
	display: none !important;
}

@media (max-width: 1023px) {
	.nl-hamburger {
		display: flex !important;
	}
	.nl-primary__list {
		display: none !important;
	}
}

.nl-mob-panel {
	position: fixed;
	inset: 0;
	z-index: var(--nl-z-mob);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	font-family: inherit;
	font-size: 16px;
	color: var(--nl-text-dark);
	transform: translateY(100%);
	transition: transform 280ms var(--nl-ease);
}
.nl-mob-panel.is-open {
	transform: translateY(0);
}

.nl-mob-screen {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	background: #f9faf5;
	overflow: hidden;
}
.nl-mob-screen[hidden] {
	display: none !important;
}

.nl-mob-topbar {
	background: var(--nl-blue);
	flex-shrink: 0;
	padding-bottom: 0;
	position: relative;
	z-index: 1;
	margin-bottom: 35px;
}

.nl-mob-panel button.nl-mob-close {
	padding: 0;
	font-size: 34px;
	color: #fff;
	font-weight: normal;
}

.nl-mob-body h2.nl-mob-l1-title {
	color: #1e75c3;
	font-size: 36px;
}

/* Logo + close row */
.nl-mob-topbar__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 20px 12px;
}
.nl-mob-topbar__logo {
	display: flex;
	align-items: center;
}
.nl-mob-logo-img {
	height: 32px;
	width: auto;
	display: block;
}
.nl-mob-logo-text {
	font-size: 20px;
	font-weight: 900;
	color: var(--nl-white);
	letter-spacing: -0.02em;
}

.nl-mob-close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	font-size: 35px;
	font-weight: 300;
	line-height: 1;
	color: var(--nl-white);
	opacity: 0.9;
	transition: opacity var(--nl-dur);
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
}
.nl-mob-close:hover {
	opacity: 1;
}

.nl-mob-search {
	padding: 20px;
}
.nl-mob-panel .nl-mob-search form,
.nl-mob-panel .nl-mob-search .search-form {
	display: flex;
	align-items: center;
	background: var(--nl-white);
	border: none;
	border-radius: 9999px;
	overflow: hidden;
	width: 100%;
	box-shadow: none;
	padding: 2px 15px;
}
.nl-mob-panel .nl-mob-search input[type="search"],
.nl-mob-panel .nl-mob-search input[type="text"] {
	flex: 1;
	border: none;
	outline: none;
	background: transparent;
	padding: 10px 16px;
	font-size: 16px;
	color: var(--nl-text-dark);
	box-shadow: none;
	width: auto;
	height: auto;
}
.nl-mob-panel .nl-mob-search input::placeholder {
	color: var(--nl-text-muted);
}
.nl-mob-panel .nl-mob-search button[type="submit"],
.nl-mob-panel .nl-mob-search .search-submit {
	padding: 8px 12px;
	color: var(--nl-text-muted);
	display: flex;
	align-items: center;
	background: none;
	border: none;
	flex-shrink: 0;
}

.nl-mob-wave {
	display: block;
	width: 100%;
	height: 40px;
	color: var(--nl-blue);
	margin-bottom: -36px;
}

.nl-mob-body {
	flex: 1;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	background: #f9faf5;
	-webkit-overflow-scrolling: touch;
}

.nl-mob-list--l1 {
	flex: 1;
	padding: 38px 0 0 10px;
}

.nl-mob-panel .nl-mob-link {
	display: flex;
	align-items: center;
	width: 100%;
	text-align: left;
	font-size: 18px;
	font-weight: 600;
	color: var(--nl-text-dark);
	padding: 14px 26px;
	line-height: 1.3;
	background: none;
	border: none;
	text-decoration: none;
	transition: color var(--nl-dur);
}
.nl-mob-panel .nl-mob-link:hover {
	color: var(--nl-blue);
}
.nl-mob-item.is-current > .nl-mob-link {
	color: var(--nl-blue);
}

.nl-mob-ctas {
	padding: 50px 29px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	flex-shrink: 0;
}

.nl-mob-panel .nl-mob-phone-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 9px 20px;
	border: 2px solid var(--nl-blue);
	border-radius: 9999px;
	font-size: 16px;
	font-weight: 600;
	color: var(--nl-blue);
	text-decoration: none;
	background: transparent;
	box-shadow: none;
	transition:
		background var(--nl-dur),
		color var(--nl-dur);
}
.nl-mob-panel .nl-mob-phone-btn:hover {
	background: var(--nl-blue);
	color: var(--nl-white);
}

.nl-mob-panel .nl-mob-consult-btn {
	display: block;
	padding: 13px 20px;
	background: var(--nl-lime);
	color: var(--nl-text-dark);
	border-radius: 9999px;
	font-size: 14px;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
	border: none;
	box-shadow: none;
	transition: background var(--nl-dur);
}
.nl-mob-panel .nl-mob-consult-btn:hover {
	background: var(--nl-lime-hover);
}

.nl-mob-panel .nl-mob-back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 15px;
	font-weight: 400;
	color: var(--nl-blue);
	padding: 40px 13px 0;
	background: none;
	cursor: pointer;
	transition: opacity var(--nl-dur);
	flex-shrink: 0;
	border-radius: 0;
	border: none !important;
}

.nl-mob-panel .nl-mob-back:hover {
	opacity: 0.75;
}

.nl-mob-l1-title {
	font-size: clamp(28px, 8vw, 40px);
	font-weight: 800;
	color: var(--nl-blue);
	line-height: 1.1;
	letter-spacing: -0.02em;
	padding: 29px 40px 15px;
	flex-shrink: 0;
	font-size: 36px;
}

.nl-mob-list--l2 {
	flex: 1;
	overflow-y: auto;
	padding: 0;
	scrollbar-width: thin;
	scrollbar-color: var(--nl-blue) transparent;
}
.nl-mob-list--l2::-webkit-scrollbar {
	width: 3px;
}
.nl-mob-list--l2::-webkit-scrollbar-thumb {
	background: var(--nl-blue);
	border-radius: 2px;
}

.nl-mob-panel .nl-mob-link--l2 {
	font-weight: 400;
	color: var(--nl-text-grey);
	font-size: 18px;
	padding: 13px 40px;
}
.nl-mob-panel .nl-mob-item--l2.is-current > .nl-mob-link--l2 {
	color: var(--nl-blue) !important;
}

.header-state-blue .nl-hamburger,
.header-state-blue .nl-hamburger__bar {
	color: #ffffff;
	background: #ffffff;
}

.header-state-white .nl-hamburger,
.header-state-white .nl-hamburger__bar,
.elementor-sticky--active .nl-hamburger,
.elementor-sticky--active .nl-hamburger__bar {
	background: transparent;
	border: none;
	border-radius: 0;
}

.elementor-sticky--active .nl-hamburger__bar {
	background-color: #fff;
}

.elementor-sticky--effects.elementor-sticky--active .nl-hamburger__bar {
	background-color: #1e75c3 !important;
}

.nl-mob-panel .nl-mob-search svg,
.nl-mob-panel .nl-mob-search img {
	width: 20px;
	height: 20px;
	max-width: 20px;
	max-height: 20px;
	flex-shrink: 0;
}
.nl-mob-panel .nl-mob-search button,
.nl-mob-panel .nl-mob-search input[type="submit"] {
	width: auto;
	height: auto;
	min-width: unset;
	background-image: none;
	box-shadow: none;
	padding: 8px 12px;
}
