/* ==========================================================================
   BAS Vendor Showcase — Newsletter Popup
   Matches the Butter & Sage palette used in bvs-styles.css.
   ========================================================================== */

.bas-np,
.bas-np-tab {
	--np-green: #70ac43;
	--np-lime: #c2e86b;
	--np-green-dark: #1d741b;
	--np-tomato: #ff4c25;
	--np-cream: #fffbef;
	--np-ink: #313131;
	--np-panel: #2a2a2a;
	--np-panel-2: #1f1f1f;
	--np-font-display: 'Playfair Display', Georgia, serif;
	--np-font-body: 'Lato', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

.bas-np[hidden],
.bas-np-tab[hidden] {
	display: none !important;
}

/* --------------------------------------------------------------------------
   Shell
   -------------------------------------------------------------------------- */

.bas-np {
	position: fixed;
	inset: 0;
	z-index: 999990;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px 16px;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-font-smoothing: antialiased;
}

.bas-np__overlay {
	position: fixed;
	inset: 0;
	background: rgba(20, 18, 14, 0.62);
	backdrop-filter: blur(2px);
	-webkit-backdrop-filter: blur(2px);
	opacity: 0;
	transition: opacity 0.28s ease;
	cursor: pointer;
}

.bas-np__modal {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 620px;
	margin: auto;
	border-radius: 18px;
	background: radial-gradient(120% 80% at 80% 0%, #3a3a3a 0%, var(--np-panel) 58%, var(--np-panel-2) 100%);
	box-shadow: 0 26px 70px rgba(0, 0, 0, 0.45), 0 2px 0 rgba(255, 255, 255, 0.05) inset;
	overflow: hidden;
	opacity: 0;
	transform: translateY(18px) scale(0.98);
	transition: opacity 0.32s ease, transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.bas-np.is-open .bas-np__overlay {
	opacity: 1;
}

.bas-np.is-open .bas-np__modal {
	opacity: 1;
	transform: translateY(0) scale(1);
}

.bas-np__inner {
	position: relative;
	z-index: 2;
	padding: 40px 44px 34px;
}

/* Decorative doodles — the loose hand-drawn scribbles from the brand kit. */
.bas-np__doodle {
	position: absolute;
	border-radius: 50%;
	pointer-events: none;
	z-index: 1;
	opacity: 0.5;
}

.bas-np__doodle--orange {
	top: -46px;
	right: -34px;
	width: 190px;
	height: 190px;
	background: radial-gradient(circle at 40% 40%, rgba(255, 76, 37, 0.32), rgba(255, 76, 37, 0) 68%);
}

.bas-np__doodle--green {
	bottom: -60px;
	left: -50px;
	width: 210px;
	height: 210px;
	background: radial-gradient(circle at 60% 40%, rgba(112, 172, 67, 0.3), rgba(112, 172, 67, 0) 68%);
}

/* --------------------------------------------------------------------------
   Close button
   -------------------------------------------------------------------------- */

.bas-np__close {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 5;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--np-green);
	color: #fff;
	cursor: pointer;
	line-height: 0;
	transition: background 0.18s ease, transform 0.18s ease;
}

.bas-np__close:hover,
.bas-np__close:focus-visible {
	background: var(--np-green-dark);
	transform: rotate(90deg);
}

/* --------------------------------------------------------------------------
   Copy
   -------------------------------------------------------------------------- */

.bas-np__title {
	margin: 0 0 12px;
	padding: 0;
	font-family: var(--np-font-display);
	font-size: clamp(24px, 3.4vw, 33px);
	font-weight: 700;
	line-height: 1.16;
	letter-spacing: -0.01em;
	color: var(--np-cream);
}

.bas-np__body {
	margin: 0 0 22px;
	font-family: var(--np-font-body);
	font-size: 14px;
	line-height: 1.62;
	color: rgba(255, 251, 239, 0.76);
}

/* --------------------------------------------------------------------------
   Form
   -------------------------------------------------------------------------- */

.bas-np__form {
	margin: 0;
	font-family: var(--np-font-body);
}

.bas-np__field {
	margin-bottom: 12px;
}

.bas-np__form input[type='text'],
.bas-np__form input[type='email'] {
	width: 100%;
	box-sizing: border-box;
	height: 50px;
	padding: 0 20px;
	border: 1.5px solid transparent;
	border-radius: 8px;
	background: #fff;
	color: var(--np-ink);
	font-family: var(--np-font-body);
	font-size: 15px;
	line-height: 1.4;
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.bas-np__form input::placeholder {
	color: #9a9a9a;
	opacity: 1;
}

.bas-np__form input[type='text']:focus,
.bas-np__form input[type='email']:focus {
	outline: none;
	border-color: var(--np-lime);
	box-shadow: 0 0 0 3px rgba(194, 232, 107, 0.28);
}

.bas-np__form input.is-invalid {
	border-color: var(--np-tomato);
	box-shadow: 0 0 0 3px rgba(255, 76, 37, 0.25);
}

/* Interests -------------------------------------------------------------- */

.bas-np__interests {
	margin: 4px 0 18px;
	padding: 14px 16px 12px;
	border: 1px solid rgba(255, 251, 239, 0.14);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.035);
}

.bas-np__legend {
	padding: 0 6px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--np-lime);
}

.bas-np__check {
	display: flex;
	align-items: flex-start;
	gap: 11px;
	margin: 9px 0;
	cursor: pointer;
	font-size: 14.5px;
	line-height: 1.4;
	color: rgba(255, 251, 239, 0.9);
}

.bas-np__check input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.bas-np__box {
	flex: 0 0 auto;
	position: relative;
	width: 20px;
	height: 20px;
	margin-top: 1px;
	border: 1.6px solid rgba(255, 251, 239, 0.42);
	border-radius: 5px;
	background: transparent;
	transition: background 0.16s ease, border-color 0.16s ease;
}

.bas-np__box::after {
	content: '';
	position: absolute;
	top: 3px;
	left: 6.5px;
	width: 5px;
	height: 10px;
	border: solid #1f1f1f;
	border-width: 0 2.4px 2.4px 0;
	transform: rotate(45deg) scale(0.4);
	opacity: 0;
	transition: opacity 0.14s ease, transform 0.14s ease;
}

.bas-np__check input:checked + .bas-np__box {
	background: var(--np-lime);
	border-color: var(--np-lime);
}

.bas-np__check input:checked + .bas-np__box::after {
	opacity: 1;
	transform: rotate(45deg) scale(1);
}

.bas-np__check input:focus-visible + .bas-np__box {
	box-shadow: 0 0 0 3px rgba(194, 232, 107, 0.35);
}

/* Honeypot --------------------------------------------------------------- */

.bas-np__hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Submit ----------------------------------------------------------------- */

.bas-np__submit {
	display: block;
	width: 100%;
	height: 50px;
	margin: 0;
	padding: 0 20px;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(135deg, #c2e86b 0%, #70ac43 60%, #1d741b 100%);
	color: #fff;
	font-family: var(--np-font-body);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.02em;
	cursor: pointer;
	box-shadow: 0 8px 20px rgba(112, 172, 67, 0.3);
	transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
}

.bas-np__submit:hover:not(:disabled) {
	transform: translateY(-1px);
	box-shadow: 0 12px 26px rgba(112, 172, 67, 0.38);
}

.bas-np__submit:disabled {
	opacity: 0.65;
	cursor: default;
	transform: none;
}

.bas-np__note {
	margin: 10px 0 0;
	text-align: center;
	font-size: 12px;
	color: rgba(255, 251, 239, 0.5);
}

.bas-np__msg {
	margin: 12px 0 0;
	font-size: 14px;
	line-height: 1.5;
	color: rgba(255, 251, 239, 0.9);
}

.bas-np__msg:empty {
	margin: 0;
}

.bas-np__msg.is-error {
	color: #ffb3a1;
}

.bas-np__msg.is-success {
	color: var(--np-lime);
	font-weight: 700;
}

/* Success state — swap the form out for a clean confirmation. */
.bas-np__form.is-done .bas-np__field,
.bas-np__form.is-done .bas-np__interests,
.bas-np__form.is-done .bas-np__submit,
.bas-np__form.is-done .bas-np__note {
	display: none;
}

.bas-np__form.is-done .bas-np__msg {
	margin: 6px 0 0;
	font-size: 16px;
}

/* --------------------------------------------------------------------------
   Social row
   -------------------------------------------------------------------------- */

.bas-np__social {
	display: flex;
	gap: 9px;
	margin-top: 22px;
}

.bas-np__social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 7px;
	background: var(--np-green);
	color: #fff;
	text-decoration: none;
	box-shadow: none;
	transition: background 0.18s ease, transform 0.18s ease;
}

.bas-np__social-link:hover,
.bas-np__social-link:focus-visible {
	background: var(--np-lime);
	color: #1f1f1f;
	transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   Re-open tab
   -------------------------------------------------------------------------- */

.bas-np-tab {
	position: fixed;
	bottom: 18px;
	z-index: 999980;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 42px;
	padding: 0 18px;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(135deg, #c2e86b 0%, #70ac43 62%, #1d741b 100%);
	color: #fff;
	font-family: var(--np-font-body);
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
	opacity: 0;
	transform: translateY(14px);
	transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.18s ease;
}

.bas-np-tab.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.bas-np-tab:hover {
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.bas-np-tab--left {
	left: 18px;
}

.bas-np-tab--right {
	right: 18px;
}

.bas-np-tab svg {
	flex: 0 0 auto;
}

/* --------------------------------------------------------------------------
   Small screens
   -------------------------------------------------------------------------- */

@media (max-width: 600px) {
	.bas-np {
		padding: 14px 12px;
		align-items: flex-start;
	}

	.bas-np__modal {
		border-radius: 14px;
	}

	.bas-np__inner {
		padding: 34px 22px 26px;
	}

	.bas-np__body {
		font-size: 13.5px;
		margin-bottom: 18px;
	}

	.bas-np__social {
		justify-content: center;
	}

	.bas-np-tab {
		bottom: 14px;
		height: 38px;
		padding: 0 15px;
		font-size: 13px;
	}

	.bas-np-tab--left {
		left: 12px;
	}

	.bas-np-tab--right {
		right: 12px;
	}
}

/* Very short viewports (landscape phones) */
@media (max-height: 620px) {
	.bas-np {
		align-items: flex-start;
	}

	.bas-np__inner {
		padding-top: 30px;
		padding-bottom: 24px;
	}

	.bas-np__body {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bas-np__overlay,
	.bas-np__modal,
	.bas-np-tab,
	.bas-np__close,
	.bas-np__submit {
		transition: none !important;
	}

	.bas-np__modal {
		transform: none;
	}
}

/* Keep the page from scrolling behind the modal. */
html.bas-np-lock,
body.bas-np-lock {
	overflow: hidden !important;
}
