/*
 * BeTended Newsletter Landing Page — v2
 * Matches Figma "💌 Newsletter Landing" mockup
 * Prefix: bnl- (betended newsletter landing)
 *
 * Design tokens (sourced from bft-design-system.css):
 *   --bnl-teal:       #3b8d99
 *   --bnl-teal-dark:  #29606a
 *   --bnl-teal-light: #eef7f8
 *   --bnl-coral:      #e8886f
 *   --bnl-cream:      #faf8f5
 *   --bnl-sage:       #cedee1
 *   --bnl-navy:       #18242d
 *   --bnl-charcoal:   #333231
 *   --bnl-mid-grey:   #72716f
 *   --bnl-white:      #ffffff
 */

/* =========================================================================
   0. PAGE SHELL
   ========================================================================= */

.bnl-page {
	font-family: 'Source Sans 3', 'Source Sans Pro', sans-serif;
	color: #333231;
	background: #faf8f5;
	margin: 0;
	padding: 0;
}

/* =========================================================================
   1. SHARED SECTION & TYPOGRAPHY
   ========================================================================= */

.bnl-section {
	padding: 64px 80px;
	max-width: 100%;
}

.bnl-eyebrow {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 2px;
	text-transform: uppercase;
	text-align: center;
	margin: 0 0 12px;
}

.bnl-eyebrow--coral { color: #e8886f; }
.bnl-eyebrow--teal  { color: #3b8d99; }

.bnl-section__heading {
	font-family: 'DM Serif Display', serif;
	font-style: normal;
	font-weight: 400;
	text-align: center;
	margin: 0 auto 16px;
	max-width: 700px;
}

.bnl-section__heading--teal      { font-size: clamp(28px, 3.5vw, 48px); color: #3b8d99; line-height: 1.15; }
.bnl-section__heading--teal-dark { font-size: clamp(26px, 3vw, 40px);  color: #29606a; line-height: 1.25; }

.bnl-section__sub {
	font-size: 17px;
	color: #72716f;
	text-align: center;
	max-width: 560px;
	margin: 0 auto 48px;
	line-height: 1.6;
}

/* =========================================================================
   3. WAVE DIVIDERS
   ========================================================================= */

.bnl-wave {
	line-height: 0;
	overflow: hidden;
}

.bnl-wave svg {
	display: block;
	width: 100%;
	height: 80px;
}

/* =========================================================================
   4. SECTION: VALUE PROP (teal hero)
   ========================================================================= */

.bnl-valueprop {
	background: #3b8d99;
	text-align: center;
	padding: 52px 80px 64px;
}

.bnl-valueprop__heading {
	font-family: 'DM Serif Display', serif;
	font-style: normal;
	font-weight: 400;
	font-size: clamp(32px, 4vw, 44px);
	line-height: 1.05;
	color: #ffffff;
	max-width: 700px;
	margin: 12px auto 20px;
}

.bnl-valueprop__sub {
	font-size: 17px;
	color: #e5f2f5;
	max-width: 560px;
	margin: 0 auto 32px;
	line-height: 1.6;
}

/* =========================================================================
   5. NEWSLETTER FORM (shared)
   ========================================================================= */

.bnl-form {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.bnl-form__row {
	display: flex;
	align-items: center;
	gap: 0;
	max-width: 520px;
	width: 100%;
}

.bnl-form__input {
	flex: 1;
	height: 48px;
	border-radius: 24px 0 0 24px;
	border: none;
	padding: 0 20px;
	font-size: 16px;
	color: #333231;
	background: #fff;
	outline: none;
	min-width: 0;
}

.bnl-form__input:focus {
	box-shadow: 0 0 0 3px rgba(59, 141, 153, 0.35);
}

.bnl-form__btn {
	height: 48px;
	border-radius: 0 24px 24px 0;
	border: none;
	padding: 0 28px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
	transition: opacity 0.2s;
}

.bnl-form__btn:hover { opacity: 0.88; }

.bnl-form__btn--coral {
	background: #e8886f;
	color: #fff;
}

/* =========================================================================
   6. ARTICLE SHOWCASE
   ========================================================================= */

.bnl-articles {
	background: #faf8f5;
}

.bnl-articles__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	max-width: 1280px;
	margin: 0 auto;
}

.bnl-article-card {
	background: #fff;
	border-radius: 16px;
	padding: 24px;
	box-shadow: 0 4px 16px rgba(0,0,0,0.08);
	display: flex;
	flex-direction: column;
}

.bnl-article-card__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 12px;
}

.bnl-article-card__pill {
	display: inline-block;
	font-size: 12px;
	font-weight: 600;
	padding: 4px 12px;
	border-radius: 14px;
	opacity: 0.85;
}

.bnl-article-card__date {
	font-size: 13px;
	color: #72716f;
	flex-shrink: 0;
}

.bnl-article-card__divider {
	border: none;
	border-top: 1px solid #e6e6e6;
	margin: 0 0 16px;
}

.bnl-article-card__title {
	font-family: 'DM Serif Display', serif;
	font-style: normal;
	font-weight: 400;
	font-size: 22px;
	color: #333232;
	margin: 0 0 12px;
	line-height: 1.3;
}

.bnl-article-card__title a {
	color: inherit;
	text-decoration: none;
}

.bnl-article-card__title a:hover {
	color: #3b8d99;
}

.bnl-article-card__excerpt {
	font-size: 15px;
	color: #72716f;
	line-height: 1.6;
	flex: 1;
	margin: 0 0 24px;
}

.bnl-article-card__read {
	font-size: 14px;
	font-weight: 600;
	color: #e8886f;
	text-decoration: none;
	margin-top: auto;
}

.bnl-article-card__read:hover {
	color: #c96a50;
}

/* =========================================================================
   7. WHAT'S INSIDE EVERY ISSUE
   ========================================================================= */

.bnl-wyg {
	background: #ffffff;
	text-align: center;
}

.bnl-wyg__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	max-width: 1280px;
	margin: 0 auto;
}

.bnl-feature-card {
	background: #eef7f8;
	border-radius: 16px;
	padding: 28px;
	text-align: left;
}

.bnl-feature-card__icon-bg {
	width: 48px;
	height: 48px;
	background: #3b8d99;
	border-radius: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	color: #fff;
	margin-bottom: 24px;
}

.bnl-feature-card__title {
	font-family: 'DM Serif Display', serif;
	font-style: normal;
	font-weight: 400;
	font-size: 22px;
	color: #3b8d99;
	margin: 0 0 8px;
}

.bnl-feature-card__desc {
	font-size: 15px;
	color: #72716f;
	line-height: 1.55;
	margin: 0;
}

/* =========================================================================
   8. SAMPLE ISSUE
   ========================================================================= */

.bnl-sample {
	background: #cedee1;
	text-align: center;
}

.bnl-preview-card {
	background: #fff;
	border-radius: 16px;
	padding: 28px 32px;
	box-shadow: 0 8px 24px rgba(0,0,0,0.08);
	max-width: 880px;
	margin: 32px auto 0;
	text-align: left;
}

.bnl-preview-card__badge {
	display: inline-block;
	background: #3b8d99;
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	padding: 4px 16px;
	border-radius: 50px;
	margin-bottom: 20px;
}

.bnl-preview-card__title {
	font-family: 'DM Serif Display', serif;
	font-style: normal;
	font-weight: 400;
	font-size: 28px;
	color: #333231;
	line-height: 1.3;
	margin: 0 0 12px;
}

.bnl-preview-card__body {
	font-size: 15px;
	color: #72716f;
	line-height: 1.6;
	margin: 0 0 28px;
}

.bnl-preview-card__btn {
	display: inline-block;
	background: #3b8d99;
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	padding: 10px 28px;
	border-radius: 50px;
	text-decoration: none;
	transition: background 0.2s;
}

.bnl-preview-card__btn:hover {
	background: #29606a;
}

/* =========================================================================
   9. TESTIMONIALS
   ========================================================================= */

.bnl-testimonials {
	background: #faf8f5;
	text-align: center;
}

.bnl-testimonials__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px;
	max-width: 1280px;
	margin: 0 auto;
}

.bnl-quote-card {
	background: #eef7f8;
	border-radius: 16px;
	padding: 32px;
	margin: 0;
	text-align: left;
}

.bnl-quote-card__text {
	font-family: 'DM Serif Display', serif;
	font-style: italic;
	font-size: 20px;
	color: #3b8d99;
	line-height: 1.5;
	margin: 0 0 28px;
}

.bnl-quote-card__author {
	display: flex;
	align-items: center;
	gap: 12px;
}

.bnl-quote-card__avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #cedde1;
	flex-shrink: 0;
}

.bnl-quote-card__name {
	font-style: normal;
	font-size: 14px;
	color: #72716f;
}

/* =========================================================================
   10. FINAL CTA (coral)
   ========================================================================= */

.bnl-cta {
	background: #e8886f;
	text-align: center;
}

.bnl-cta__heading {
	font-family: 'DM Serif Display', serif;
	font-style: normal;
	font-weight: 400;
	font-size: clamp(36px, 5vw, 60px);
	color: #fff;
	line-height: 1.1;
	margin: 0 0 16px;
}

.bnl-cta__sub {
	font-size: 20px;
	color: #fff;
	margin: 0 0 32px;
}

.bnl-cta__form-row {
	background: transparent;
}

.bnl-cta__input {
	border-radius: 50px 0 0 50px;
}

.bnl-cta__btn {
	background: #29606a;
	color: #fff;
	border-radius: 0 50px 50px 0;
	font-size: 16px;
	font-weight: 600;
	border: none;
	height: 56px;
	padding: 0 32px;
}

/* Override height for CTA form inputs */
.bnl-cta .bnl-form__input {
	height: 56px;
}

.bnl-cta__footnote {
	font-size: 14px;
	color: rgba(255,255,255,0.85);
	margin: 16px 0 0;
}

/* =========================================================================
   11. FOOTER
   ========================================================================= */

.bnl-footer {
	background: #18242d;
	padding: 52px 80px 40px;
	display: grid;
	grid-template-columns: 1fr auto;
	grid-template-rows: auto auto;
	gap: 16px 48px;
	align-items: start;
}

.bnl-footer__left {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.bnl-footer__brand {
	font-family: 'DM Serif Display', serif;
	font-style: normal;
	font-size: 22px;
	color: #faf8f5;
}

.bnl-footer__tagline {
	font-size: 13px;
	color: #505050;
}

.bnl-footer__links {
	display: flex;
	gap: 32px;
	align-items: center;
	justify-content: flex-end;
}

.bnl-footer__links a {
	font-size: 14px;
	color: #a0a09e;
	text-decoration: none;
	transition: color 0.2s;
}

.bnl-footer__links a:hover { color: #faf8f5; }

.bnl-footer__copy {
	font-size: 13px;
	color: #505050;
	margin: 0;
	grid-column: 1 / -1;
}

/* =========================================================================
   12. FORM FEEDBACK MESSAGES
   ========================================================================= */

.betended-newsletter__msg {
	margin: 12px 0 0;
	font-size: 14px;
	min-height: 20px;
}

.betended-newsletter__msg--success { color: #fff; font-weight: 600; }
.betended-newsletter__msg--error   { color: rgba(255,255,255,0.9); }

/* On cream/white sections, use coloured messages */
.bnl-valueprop .betended-newsletter__msg--success { color: #e5f2f5; }
.bnl-cta .betended-newsletter__msg--success       { color: #fff; }

/* =========================================================================
   13. RESPONSIVE — TABLET (≤ 1024px)
   ========================================================================= */

@media (max-width: 1024px) {
	.bnl-section {
		padding: 48px 40px;
	}

	.bnl-valueprop {
		padding: 48px 40px 56px;
	}

	.bnl-articles__grid,
	.bnl-wyg__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.bnl-testimonials__grid {
		grid-template-columns: 1fr;
		max-width: 680px;
	}

	.bnl-footer {
		padding: 48px 40px 36px;
	}
}

/* =========================================================================
   14. RESPONSIVE — MOBILE (≤ 680px)
   ========================================================================= */

@media (max-width: 680px) {
	/* Sections */
	.bnl-section {
		padding: 40px 20px;
	}

	.bnl-valueprop {
		padding: 40px 20px 48px;
	}

	.bnl-valueprop__heading {
		font-size: 30px;
	}

	/* Forms — stack on mobile */
	.bnl-form__row {
		flex-direction: column;
		gap: 12px;
	}

	.bnl-form__input {
		border-radius: 24px;
		width: 100%;
	}

	.bnl-form__btn,
	.bnl-cta__btn {
		border-radius: 24px;
		width: 100%;
		justify-content: center;
	}

	.bnl-cta .bnl-form__input {
		border-radius: 24px;
	}

	/* Article cards — single column */
	.bnl-articles__grid,
	.bnl-wyg__grid,
	.bnl-testimonials__grid {
		grid-template-columns: 1fr;
	}

	/* Preview card */
	.bnl-preview-card {
		padding: 24px 20px;
	}

	/* Footer */
	.bnl-footer {
		padding: 40px 20px 32px;
		grid-template-columns: 1fr;
	}

	.bnl-footer__links {
		justify-content: flex-start;
		flex-wrap: wrap;
		gap: 16px;
	}

	/* CTA */
	.bnl-cta .bnl-form__row {
		max-width: 100%;
	}
}

/* =========================================================================
   15. WORDPRESS LAYOUT INTEGRATION (CAR-187)
   ========================================================================= */

/*
 * The Kadence child header.php opens <main class="betended-main"> which has
 * padding-top:62px for the fixed header. page-newsletter.php opens a second
 * <main id="bnl-page"> inside it, creating a nested-main + 62px blank gap.
 * Fix: move the fixed-header offset into the hero section, zero out the outer
 * wrapper's padding. Hide the duplicate site footer — bnl-footer replaces it.
 */

/* Remove outer-wrapper padding — bnl-valueprop takes over the header offset.
 * Target by page-id body class (template resolved via slug, not editor assignment). */
.page-id-302 .betended-main {
	padding-top: 0;
}

/* First section absorbs the fixed-header height (62px) */
.page-id-302 .bnl-valueprop {
	padding-top: calc(52px + 62px);
}

/* Hide the regular site footer — the newsletter page renders its own bnl-footer */
.page-id-302 #betended-footer {
	display: none;
}
