/**
 * Nehar Newsletter blocks — front-end + editor styles.
 * Ported from the approved index.html mockup. All rules are scoped under
 * .ntb-newsletter so the theme (Hello Elementor) is never affected.
 */

.ntb-newsletter {
	--ntb-navy: #18354c;
	--ntb-navy-soft: #33475b;
	--ntb-green: #208d36;
	--ntb-card-bg: #ffffff;
	--ntb-radius: 6px;

	max-width: 820px;
	margin: 32px auto;
	background: var(--ntb-card-bg);
	box-shadow: 0 12px 40px rgba(24, 53, 76, .10);
	overflow: hidden;
	font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	color: var(--ntb-navy);
	line-height: 1.6;
}

.ntb-newsletter *,
.ntb-newsletter *::before,
.ntb-newsletter *::after {
	box-sizing: border-box;
}

/* Blank-canvas safety: core block-library CSS is not loaded on this template. */
.ntb-newsletter figure {
	margin: 0;
}

.ntb-newsletter img {
	max-width: 100%;
	height: auto; /* neutralise the img height attribute so aspect-ratio wins */
}

/* ---------------------------------------------------------------- Hero */
.ntb-nl-hero {
	position: relative;
	display: block;
	overflow: hidden;
	line-height: 1.1;
}

/* CSS "autumn sky" variant — no background image required. */
.ntb-nl-hero--sky {
	background: linear-gradient(180deg, #62aeda 0%, #93c9e8 40%, #cfe8f6 72%, #eef6fb 100%);
}

/* Soft sun glow, upper-centre. */
.ntb-nl-hero--sky::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(120% 90% at 68% 8%, rgba(255, 249, 235, .55) 0%, rgba(255, 249, 235, 0) 55%);
	pointer-events: none;
}

/* Optional photo-background variant. */
.ntb-nl-hero__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 0;
}

/* Frosted scrim keeps the navy title readable over any photo. */
.ntb-nl-hero--image::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	background: radial-gradient(120% 100% at 50% 45%, rgba(255, 255, 255, .82) 0%, rgba(255, 255, 255, .55) 45%, rgba(255, 255, 255, .28) 100%);
	pointer-events: none;
}

.ntb-nl-hero__overlay {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	line-height: 1.1;
	padding: clamp(40px, 10vw, 104px) 6%;
	color: var(--ntb-navy);
}

.ntb-nl-hero__script {
	font-family: 'Great Vibes', cursive;
	font-size: clamp(2rem, 6.5vw, 4.2rem);
	line-height: 1;
	margin-bottom: .04em;
}

.ntb-nl-hero__yearrow {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .35em;
	margin: 0 0 .4em;
}

.ntb-nl-hero__leaf {
	width: clamp(34px, 6.5vw, 58px);
	height: auto;
	display: block;
	flex: 0 0 auto;
}

.ntb-nl-hero__year {
	font-family: 'Playfair Display', Georgia, serif;
	font-weight: 600;
	font-size: clamp(1.6rem, 5.2vw, 3.1rem);
	letter-spacing: .04em;
}

.ntb-nl-hero__title {
	font-family: 'Playfair Display', Georgia, serif;
	font-style: italic;
	font-weight: 700;
	font-size: clamp(2rem, 8vw, 4.8rem);
	text-transform: uppercase;
	letter-spacing: .01em;
	margin: 0;
}

/* ---------------------------------------------------------------- Body / grid */
.ntb-tours-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 44px 40px;
	padding: 40px 32px 8px;
}

/* Guard against WP wrapping inner blocks in an inner-container. */
.ntb-tours-grid > .wp-block-group__inner-container {
	display: contents;
}

/* ---------------------------------------------------------------- Tour card */
.ntb-tour-card {
	display: flex;
	flex-direction: column;
	margin: 0;
}

.ntb-tour-card__link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.ntb-tour-card__media {
	display: block;
	width: 100%;
	aspect-ratio: 358 / 269;
	object-fit: cover;
	border-radius: var(--ntb-radius);
	transition: transform .35s ease, box-shadow .35s ease;
}

.ntb-tour-card__link:hover .ntb-tour-card__media {
	transform: translateY(-3px);
	box-shadow: 0 14px 26px rgba(24, 53, 76, .18);
}

.ntb-tour-card__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 358 / 269;
	border-radius: var(--ntb-radius);
	background: #e7edf2;
	color: var(--ntb-navy-soft);
	font-size: .85rem;
}

.ntb-tour-card__title {
	font-family: 'Playfair Display', Georgia, serif;
	font-weight: 700;
	font-size: 1.5rem;
	letter-spacing: .3px;
	color: var(--ntb-navy);
	text-transform: uppercase;
	margin: 18px 0 10px;
	line-height: 1.15;
}

.ntb-tour-card__route {
	font-size: .95rem;
	font-weight: 500;
	color: var(--ntb-navy-soft);
	margin: 0 0 16px;
}

.ntb-tour-card__price {
	font-size: 1.6rem;
	font-weight: 700;
	color: var(--ntb-navy);
	margin: 0 0 14px;
}

.ntb-tour-card__date {
	font-size: .9rem;
	font-weight: 600;
	color: var(--ntb-green);
	margin: 0;
}

/* ---------------------------------------------------------------- Footer */
.ntb-nl-footer {
	padding: 20px 32px 44px;
	text-align: right;
}

.ntb-nl-footer img {
	width: 190px;
	max-width: 60%;
	height: auto;
	display: inline-block;
}

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 600px) {
	.ntb-newsletter {
		margin: 0;
		box-shadow: none;
	}

	.ntb-tours-grid {
		grid-template-columns: 1fr;
		gap: 34px;
		padding: 28px 20px 4px;
	}

	.ntb-tour-card__title {
		font-size: 1.35rem;
	}

	.ntb-nl-footer {
		text-align: center;
		padding: 16px 20px 36px;
	}
}
