/* ==========================================================================
   FITOORNAMA — KHAT / NEWSLETTER
   ========================================================================== */

.newsletter-section,
.khat {
	position: relative;
	text-align: center;
	background: var(--color-background-soft);
}

.newsletter-section .editorial-container,
.khat .editorial-container {
	max-width: 880px;
}

.newsletter-section h2,
.khat h2 {
	max-width: 820px;
	margin: 0 auto 28px;
	color: var(--color-text);
	font-family: var(--font-heading);
	font-size: clamp(2.8rem, 5vw, 4.8rem);
	font-weight: 500;
	letter-spacing: -0.025em;
	line-height: 1.05;
	text-wrap: balance;
}

.newsletter-section p,
.khat p {
	max-width: 620px;
	margin: 0 auto 48px;
	color: var(--color-muted);
	font-size: var(--body);
	line-height: 1.9;
}

.newsletter-section form,
.khat form {
	display: flex;
	align-items: flex-end;
	max-width: 680px;
	margin: 0 auto;
	border-bottom: 1px solid var(--color-border);
}

.newsletter-section input[type="email"],
.khat input[type="email"] {
	flex: 1 1 auto;
	min-width: 0;
	padding: 18px 4px;
	border: 0;
	color: var(--color-text);
	background: transparent;
	font-family: var(--font-body);
	font-size: 1rem;
	outline: none;
}

.newsletter-section input[type="email"]::placeholder,
.khat input[type="email"]::placeholder {
	color: var(--color-muted-light);
}

.newsletter-section button,
.newsletter-section input[type="submit"],
.khat button,
.khat input[type="submit"] {
	flex: 0 0 auto;
	padding: 18px 4px 18px 28px;
	border: 0;
	color: var(--color-text);
	background: transparent;
	font-family: var(--font-body);
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	line-height: 1;
	text-transform: uppercase;
	cursor: pointer;
	transition:
		color var(--transition-editorial),
		transform var(--transition-editorial);
}

.newsletter-section button:hover,
.newsletter-section button:focus-visible,
.newsletter-section input[type="submit"]:hover,
.newsletter-section input[type="submit"]:focus-visible,
.khat button:hover,
.khat button:focus-visible,
.khat input[type="submit"]:hover,
.khat input[type="submit"]:focus-visible {
	color: var(--color-gold-dark);
	transform: translateX(3px);
}

.newsletter-section form:focus-within,
.khat form:focus-within {
	border-color: var(--color-gold);
}

.newsletter-section .newsletter-note,
.khat .newsletter-note {
	margin-top: 20px;
	color: var(--color-muted-light);
	font-size: 0.75rem;
	line-height: 1.6;
}

@media (max-width: 620px) {

	.newsletter-section form,
	.khat form {
		display: block;
		border-bottom: 0;
	}

	.newsletter-section input[type="email"],
	.khat input[type="email"] {
		display: block;
		width: 100%;
		border-bottom: 1px solid var(--color-border);
		text-align: center;
	}

	.newsletter-section button,
	.newsletter-section input[type="submit"],
	.khat button,
	.khat input[type="submit"] {
		margin-top: 22px;
		padding: 16px 24px;
		border: 1px solid var(--color-text);
	}

	.newsletter-section button:hover,
	.newsletter-section input[type="submit"]:hover,
	.khat button:hover,
	.khat input[type="submit"]:hover {
		border-color: var(--color-green);
		color: var(--color-background);
		background: var(--color-green);
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {

	.newsletter-section button,
	.newsletter-section input[type="submit"],
	.khat button,
	.khat input[type="submit"] {
		transition: none;
	}
}