/*
Theme Name:   NAB Solutions Members (Hello Elementor Child)
Theme URI:    https://a2webcraft.com
Description:  Child theme of Hello Elementor for the NAB Solutions members portal landing page. Customizer-driven header/footer, ACF Free page content, dynamic menus and a working member login form.
Author:       A2 Webcraft
Author URI:   https://a2webcraft.com
Template:     hello-elementor
Version:      1.0.4
Requires at least: 6.0
Requires PHP: 7.4
License:      GNU General Public License v2 or later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  nab-child
*/

/* ==========================================================================
   Base
   ========================================================================== */
@media (hover: hover) and (min-width: 821px) {
	html { scroll-behavior: smooth; }
}
body { overflow-x: hidden; }

.nab-site {
	font-family: 'Poppins', sans-serif;
	background: #fff;
	min-height: 100vh;
	overflow-x: clip;
	color: #1b3a6b;
	line-height: normal;
}
.nab-site img { max-width: 100%; }
.nab-site h1, .nab-site h2, .nab-site h3, .nab-site h4, .nab-site p { font-family: inherit; }
.nab-site a { color: inherit; }
.nab-main { display: block; }

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.nab-header {
	position: sticky;
	top: 0;
	z-index: 200;
	background: linear-gradient(155deg, #eef4ff 0%, #e8efff 50%, #fff 100%);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid #e4e9f2;
	box-shadow: 0 1px 8px rgba(27, 58, 107, 0.06);
}
.admin-bar .nab-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .nab-header { top: 46px; } }
.nab-header--static { position: relative; }

.nab-header__inner {
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 28px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 64px;
}
.nab-logo { display: inline-flex; align-items: center; text-decoration: none; }
.nab-logo img { display: block; object-fit: contain; height: 38px; width: auto; }

.desk-nav { display: flex; align-items: center; gap: 0; }

.nab-menu { list-style: none; margin: 0; padding: 0; }
.desk-nav .nab-menu { display: flex; align-items: center; }
.nab-menu__item { margin: 0; padding: 0; list-style: none; }
.nab-menu__divider { width: 1px; height: 20px; background: #e4e9f2; list-style: none; }
.nab-site .nab-menu__link {
	display: flex;
	align-items: center;
	gap: 6px;
	color: #1b3a6b;
	font-size: 13px;
	font-weight: 500;
	padding: 0 18px;
	text-decoration: none;
}
.nab-menu__icon { display: inline-flex; color: #1b3a6b; opacity: 0.7; }
.nab-site .nab-menu__item--login .nab-menu__link {
	font-size: 13.5px;
	font-weight: 600;
	padding: 8px 22px;
	border: 1.5px solid #1b3a6b;
	border-radius: 7px;
	margin-left: 6px;
	transition: background 0.15s, color 0.15s;
}
.nab-site .nab-menu__item--login .nab-menu__link:hover,
.nab-site .nab-menu__item--login .nab-menu__link:focus {
	background: #1b3a6b;
	color: #fff;
}

.ham-btn {
	display: none !important;
	background: none;
	border: 0;
	cursor: pointer;
	color: #1b3a6b;
	padding: 4px;
}
.nab-site .ham-btn:hover,
.nab-site .ham-btn:focus { background: none; color: #1b3a6b; }

.nab-mobile-nav {
	display: none;
	background: #fff;
	border-top: 1px solid #e4e9f2;
	box-shadow: 0 8px 20px rgba(27, 58, 107, 0.08);
	padding: 8px 0 16px;
}
.nab-mobile-nav.is-open { display: block; }
.nab-menu--mobile { display: flex; flex-direction: column; }
.nab-site .nab-menu--mobile .nab-menu__link { padding: 14px 28px; font-size: 14px; }
.nab-menu--mobile .nab-menu__divider { width: auto; height: 1px; margin: 0 28px; }
.nab-menu--mobile .nab-menu__item--login { padding: 12px 28px 0; }
.nab-site .nab-menu--mobile .nab-menu__item--login .nab-menu__link {
	justify-content: center;
	margin-left: 0;
	padding: 11px 22px;
}

@media (max-width: 820px) {
	.desk-nav { display: none !important; }
	.ham-btn { display: flex !important; }
}
@media (min-width: 821px) {
	.nab-mobile-nav,
	.nab-mobile-nav.is-open { display: none !important; }
}

/* ==========================================================================
   Shared bits
   ========================================================================== */
.nab-badge {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	background: #fef0e2;
	border: 1px solid rgba(240, 122, 26, 0.25);
	border-radius: 100px;
	padding: 5px 14px;
	font-size: 11.5px;
	font-weight: 700;
	color: #f07a1a;
	letter-spacing: 0.5px;
	margin-bottom: 18px;
}
.nab-badge--section { margin-bottom: 14px; }
.nab-badge__dot { width: 7px; height: 7px; background: #f07a1a; border-radius: 50%; display: inline-block; }

.nab-section-title {
	font-size: clamp(22px, 3vw, 38px);
	font-weight: 800;
	color: #1b3a6b;
	letter-spacing: -0.8px;
	margin: 0 0 12px;
	line-height: 1.2;
}
.nab-section-title span { color: #168acb; }
.nab-section-text {
	font-size: clamp(14px, 1.4vw, 16px);
	color: #6b7a99;
	margin: 0 auto;
	line-height: 1.7;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.nab-hero {
	background: linear-gradient(155deg, #eef4ff 0%, #e8efff 50%, #fff 100%);
	padding: 56px 24px 72px;
	position: relative;
	overflow: hidden;
}
.nab-hero__glow { position: absolute; border-radius: 50%; pointer-events: none; }
.nab-hero__glow--orange {
	top: -140px; right: -100px; width: 520px; height: 520px;
	background: radial-gradient(circle, rgba(240, 122, 26, 0.075) 0%, transparent 70%);
}
.nab-hero__glow--blue {
	bottom: -80px; left: -80px; width: 320px; height: 320px;
	background: radial-gradient(circle, rgba(27, 58, 107, 0.027) 0%, transparent 70%);
}
.hero-wrap {
	max-width: 1240px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 44% 56%;
	gap: 32px 24px;
	align-items: center;
}
.nab-hero__content { padding-bottom: 8px; }
.nab-hero__title {
	font-size: clamp(26px, 3.4vw, 48px);
	font-weight: 800;
	color: #1b3a6b;
	line-height: 1.13;
	letter-spacing: -1.5px;
	margin: 0 0 14px;
}
.nab-hero__title span { color: #f07a1a; }
.nab-hero__text {
	font-size: clamp(14px, 1.4vw, 15.5px);
	color: #6b7a99;
	line-height: 1.75;
	margin: 0 0 28px;
	max-width: 480px;
}
.mascot-phone-wrap { display: flex; align-items: flex-end; justify-content: center; position: relative; }
.mascot-phone-wrap img { width: 100%; max-width: 620px; height: auto; object-fit: contain; display: block; }

/* Login card */
.login-card {
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 8px 40px rgba(27, 58, 107, 0.13);
	padding: 28px;
	border: 1px solid #e4e9f2;
	width: 100%;
	max-width: 420px;
	box-sizing: border-box;
	scroll-margin-top: 90px;
}
.login-card__title { font-size: 18px; font-weight: 700; color: #1b3a6b; margin: 0 0 3px; line-height: 1.3; }
.login-card__sub { font-size: 12.5px; color: #6b7a99; margin: 0 0 22px; }
.nab-site .login-card label {
	display: block;
	font-size: 12.5px;
	font-weight: 600;
	color: #1b3a6b;
	margin-bottom: 5px;
	line-height: 1.4;
}
.nab-field { position: relative; margin-bottom: 14px; }
.nab-field--password { margin-bottom: 16px; }
.nab-site .login-card .nab-input {
	width: 100%;
	padding: 11px 14px;
	border: 1.5px solid #e4e9f2;
	border-radius: 9px;
	font-size: 14px;
	color: #1b3a6b;
	background: #f8fafd;
	outline: none;
	font-family: 'Poppins', sans-serif;
	box-sizing: border-box;
	height: auto;
	box-shadow: none;
}
.nab-site .login-card .nab-input:focus {
	border-color: #f07a1a;
	box-shadow: 0 0 0 3px rgba(240, 122, 26, 0.12);
	background: #fff;
}
.nab-site .login-card .nab-input--password { padding-right: 42px; }
.nab-field__icon {
	position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
	color: #6b7a99; display: flex; pointer-events: none;
}
.nab-site .nab-pw-toggle {
	position: absolute; right: 11px; top: 50%; transform: translateY(-50%);
	background: none; border: 0; color: #6b7a99; cursor: pointer;
	padding: 0; display: flex; border-radius: 0; min-width: 0;
}
.nab-site .nab-pw-toggle:hover,
.nab-site .nab-pw-toggle:focus { background: none; color: #1b3a6b; }
.nab-pw-toggle .nab-eye { display: none; }
.nab-pw-toggle.is-visible .nab-eye { display: block; }
.nab-pw-toggle.is-visible .nab-eye-off { display: none; }

.nab-login-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; gap: 10px; }
.nab-site .login-card .nab-remember {
	display: flex; align-items: center; gap: 7px;
	font-size: 12.5px; font-weight: 400; color: #6b7a99; cursor: pointer; margin: 0;
}
.nab-remember input { accent-color: #f07a1a; width: 14px; height: 14px; margin: 0; }
.nab-site .nab-forgot { font-size: 12.5px; color: #f07a1a; font-weight: 600; text-decoration: none; }
.nab-site .nab-forgot:hover { color: #d96910; }

.nab-site .nab-submit {
	display: block;
	width: 100%;
	padding: 13px;
	background: linear-gradient(135deg, #f07a1a, #d96910);
	color: #fff;
	border: 0;
	border-radius: 9px;
	font-size: 15px;
	font-weight: 700;
	font-family: 'Poppins', sans-serif;
	cursor: pointer;
	box-shadow: 0 4px 16px rgba(240, 122, 26, 0.25);
	text-align: center;
	text-decoration: none;
	line-height: 1.4;
}
.nab-site .nab-submit:hover,
.nab-site .nab-submit:focus {
	background: linear-gradient(135deg, #f07a1a, #d96910);
	color: #fff;
	filter: brightness(1.05);
}
.nab-login-msg {
	font-size: 12.5px; line-height: 1.5; border-radius: 8px;
	padding: 10px 12px; margin-bottom: 14px;
	background: #fdecea; border: 1px solid #f5c6c1; color: #b3261e;
}
.nab-logout { display: block; text-align: center; margin-top: 14px; font-size: 12.5px; color: #6b7a99; text-decoration: none; }
.nab-site .nab-logout:hover { color: #f07a1a; }

/* Trust bar */
.trust-bar {
	max-width: 1240px;
	margin: 52px auto 0;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 14px;
}
.nab-trust {
	display: flex; align-items: flex-start; gap: 12px;
	background: #fff; border-radius: 12px; padding: 16px;
	box-shadow: 0 2px 12px rgba(27, 58, 107, 0.06);
	border: 1px solid #e4e9f2;
}
.nab-trust__icon { font-size: 26px; line-height: 1; flex-shrink: 0; }
.nab-trust__title { font-size: 13.5px; font-weight: 700; color: #1b3a6b; margin-bottom: 3px; }
.nab-trust__text { font-size: 12px; color: #6b7a99; line-height: 1.5; }

/* ==========================================================================
   Member tools
   ========================================================================== */
.nab-tools { padding: 80px 24px; background: #fff; }
.nab-container { max-width: 1200px; margin: 0 auto; }
.nab-section-head { text-align: center; margin-bottom: 52px; }
.nab-tools .nab-section-text { max-width: 540px; }
.tools-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.nab-card {
	background: #fff; border-radius: 16px; padding: 10px;
	border: 1px solid #e4e9f2;
	box-shadow: 0 4px 18px rgba(27, 58, 107, 0.06);
	transform: translateY(0);
	transition: transform 0.2s, box-shadow 0.2s;
	display: flex; flex-direction: column; min-height: 300px; box-sizing: border-box;
}
@media (hover: hover) {
	.nab-card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(27, 58, 107, 0.12); }
}
.nab-card__media {
	width: 100%; height: 130px; border-radius: 10px; overflow: hidden;
	display: flex; align-items: center; justify-content: center; background: transparent;
}
.nab-card__media img { width: 100%; height: 100%; object-fit: contain; display: block; }
.nab-card__body { padding: 12px 4px 2px; display: flex; flex-direction: column; flex: 1 1 0%; }
.nab-card__title { font-size: 15px; font-weight: 700; color: #168acb; margin: 0 0 6px; line-height: 1.3; }
.nab-card__text { font-size: 11.5px; color: #6b7a99; margin: 0; line-height: 1.55; }
.nab-card__foot { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; }
.nab-site .nab-card__foot { text-decoration: none; }
.nab-card__label { font-size: 10.5px; font-weight: 700; color: #1b3a6b; }
.nab-card__arrow {
	width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 1px solid #e4e9f2;
	display: flex; align-items: center; justify-content: center;
	color: #2558c8; font-size: 16px; line-height: 1;
	box-shadow: 0 2px 8px rgba(27, 58, 107, 0.08);
}

/* ==========================================================================
   Stats
   ========================================================================== */
.nab-stats { padding: 80px 24px; background: linear-gradient(160deg, #eef4ff 0%, #e8efff 100%); }
.nab-stats .nab-section-title { text-align: center; margin-bottom: 48px; }
.stats-grid {
	background: #fff; border-radius: 20px; padding: 40px 16px;
	box-shadow: 0 4px 32px rgba(27, 58, 107, 0.08);
	display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 28px;
}
.nab-stat { text-align: center; padding: 8px 16px; border-right: 1px solid #e4e9f2; }
.nab-stat:last-child { border-right: 0; }
.nab-stat__num {
	font-size: clamp(24px, 3vw, 36px); font-weight: 800; color: #1b3a6b;
	letter-spacing: -1px; line-height: 1.1;
}
.nab-stat__label { font-size: 13px; color: #6b7a99; margin-top: 6px; font-weight: 500; }
.callouts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.nab-callout {
	background: #fff; border-radius: 13px; padding: 18px 22px;
	box-shadow: 0 2px 12px rgba(27, 58, 107, 0.06);
	border: 1px solid #e4e9f2; display: flex; align-items: center; gap: 12px;
}
.nab-callout__icon {
	width: 38px; height: 38px; border-radius: 10px; background: #fef0e2;
	display: flex; align-items: center; justify-content: center; color: #f07a1a; flex-shrink: 0;
}
.nab-callout__label { font-size: 14px; font-weight: 600; color: #1b3a6b; }

/* ==========================================================================
   Resources + CTA
   ========================================================================== */
.nab-resources { padding: 80px 24px; background: #fff; }
.nab-resources .nab-section-head { margin-bottom: 48px; }
.nab-resources .nab-section-text { max-width: 600px; }
.res-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 56px; }
.nab-res {
	display: block; background: #fff; border-radius: 14px; padding: 26px 22px;
	box-shadow: 0 2px 16px rgba(27, 58, 107, 0.07); border: 1px solid #e4e9f2;
	text-decoration: none;
}
.nab-res__icon {
	width: 50px; height: 50px; border-radius: 13px;
	background: linear-gradient(135deg, #1b3a6b, #2558c8);
	display: flex; align-items: center; justify-content: center; color: #fff; margin-bottom: 16px;
}
.nab-res__title { font-size: 15px; font-weight: 700; color: #1b3a6b; margin: 0 0 9px; line-height: 1.3; }
.nab-res__text { font-size: 13.5px; color: #6b7a99; margin: 0; line-height: 1.65; }

.cta-banner {
	background: linear-gradient(135deg, #1b3a6b, #2558c8);
	border-radius: 20px; padding: 52px 44px;
	display: flex; align-items: center; justify-content: space-between; gap: 28px;
	position: relative; overflow: hidden;
}
.cta-banner::before {
	content: ''; position: absolute; top: -60px; right: -60px;
	width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 255, 255, 0.05);
}
.nab-cta__content { position: relative; }
.nab-cta__title {
	font-size: clamp(18px, 2.5vw, 30px); font-weight: 800; color: #fff;
	margin: 0 0 8px; letter-spacing: -0.5px; line-height: 1.25;
}
.nab-cta__text { font-size: 14px; color: rgba(255, 255, 255, 0.7); margin: 0; }
.nab-site .nab-btn-cta {
	flex-shrink: 0; padding: 14px 32px;
	background: linear-gradient(135deg, #f07a1a, #d96910);
	color: #fff; border: 0; border-radius: 10px;
	font-size: 15px; font-weight: 700; font-family: 'Poppins', sans-serif;
	cursor: pointer; white-space: nowrap; text-decoration: none; text-align: center;
	box-shadow: 0 4px 20px rgba(240, 122, 26, 0.333); position: relative;
}
.nab-site .nab-btn-cta:hover,
.nab-site .nab-btn-cta:focus { color: #fff; filter: brightness(1.06); }

/* ==========================================================================
   Footer
   ========================================================================== */
.nab-footer { background: #0f2347; color: #fff; padding: 52px 24px 28px; }
.footer-grid {
	display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
	margin-bottom: 36px; padding-bottom: 36px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.nab-footer__logo { margin-bottom: 16px; }
.nab-footer__logo img { display: block; object-fit: contain; height: 36px; width: auto; }
.nab-footer__address { font-size: 13px; color: rgba(255, 255, 255, 0.55); line-height: 1.85; margin: 0 0 14px; }
.nab-footer__contact { display: flex; flex-direction: column; gap: 5px; font-size: 13px; }
.nab-site .nab-footer__contact a { color: rgba(255, 255, 255, 0.7); text-decoration: none; }
.nab-site .nab-footer__contact a:hover { color: #fff; }
.nab-footer__col { display: flex; justify-content: flex-end; }
.nab-footer__col-title {
	font-size: 11px; font-weight: 700; color: rgba(255, 255, 255, 0.35);
	letter-spacing: 1.2px; margin-bottom: 16px; text-transform: uppercase;
}
.nab-footer-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.nab-footer-menu li { margin: 0; padding: 0; }
.nab-site .nab-footer-menu a {
	font-size: 13.5px; color: rgba(255, 255, 255, 0.7); text-decoration: none; font-weight: 500;
}
.nab-site .nab-footer-menu a:hover { color: #fff; }
.nab-footer__copy { text-align: center; font-size: 12.5px; color: rgba(255, 255, 255, 0.35); }

/* Focus rings */
.nab-site a:focus-visible,
.nab-site button:focus-visible { outline: 2px solid #f07a1a; outline-offset: 2px; border-radius: 4px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
	.hero-wrap { grid-template-columns: 1fr !important; }
	.mascot-phone-wrap { justify-content: center !important; }
}
@media (max-width: 600px) {
	.mascot-phone-wrap { flex-direction: column !important; align-items: center !important; gap: 20px !important; }
	.login-card { max-width: 100% !important; padding: 22px; }
	.nab-header__inner { padding: 0 18px; }
}
@media (max-width: 820px) { .trust-bar { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 440px) { .trust-bar { grid-template-columns: 1fr !important; } }
@media (max-width: 880px) { .tools-grid { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 520px) { .tools-grid { grid-template-columns: 1fr !important; } }
@media (max-width: 700px) {
	.stats-grid { grid-template-columns: repeat(2, 1fr) !important; }
	.stats-grid > div { border-right: none !important; border-bottom: 1px solid #e4e9f2 !important; }
	.stats-grid > div:nth-child(odd) { border-right: 1px solid #e4e9f2 !important; }
	.stats-grid > div:nth-last-child(-n+2) { border-bottom: none !important; }
}
@media (max-width: 360px) {
	.stats-grid { grid-template-columns: 1fr !important; }
	.stats-grid > div { border-right: none !important; }
	.stats-grid > div:last-child { border-bottom: none !important; }
}
@media (max-width: 640px) { .callouts-grid { grid-template-columns: 1fr !important; } }
@media (max-width: 820px) { .res-grid { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 520px) { .res-grid { grid-template-columns: 1fr !important; } }
@media (max-width: 620px) {
	.cta-banner { flex-direction: column !important; text-align: center !important; padding: 36px 22px !important; gap: 18px !important; }
	.cta-banner .nab-btn-cta { width: 100% !important; }
}
@media (max-width: 560px) {
	.footer-grid { grid-template-columns: 1fr !important; }
	.nab-footer__col { justify-content: flex-start !important; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.nab-card, .nab-card:hover { transition: none; transform: none; }
}

/* Honeypot (hidden from users) */
.nab-site .nab-hp { position: absolute !important; left: 0; top: 0; width: 1px !important; height: 1px !important; padding: 0 !important; border: 0 !important; opacity: 0; overflow: hidden; clip: rect(0, 0, 0, 0); pointer-events: none; }

/* ==========================================================================
   Mobile edge-to-edge fix (v1.0.3)
   ========================================================================== */
@supports (overflow: clip) {
	html, body { overflow-x: clip; }
}
.nab-site, .nab-site section, .nab-header, .nab-footer { max-width: 100%; }
.hero-wrap { grid-template-columns: minmax(0, 44%) minmax(0, 56%); }
.hero-wrap > * { min-width: 0; }
.mascot-phone-wrap img { max-width: 100%; }

@media (max-width: 960px) {
	.hero-wrap { grid-template-columns: minmax(0, 1fr) !important; }
}
@media (max-width: 600px) {
	.nab-site .nab-hero { padding: 40px 20px 56px; }
	.nab-site .nab-tools,
	.nab-site .nab-stats,
	.nab-site .nab-resources { padding: 56px 20px; }
	.nab-site .nab-footer { padding: 44px 20px 24px; }
	.nab-site .nab-header__inner { padding: 0 20px; }
	.nab-site .trust-bar { margin-top: 36px; }
}

/* iOS: 16px inputs stop the auto-zoom / page shift when the keyboard opens */
@media (max-width: 820px) {
	.nab-site .login-card .nab-input { font-size: 16px; }
	.nab-site .login-card { transform: none; }
}
