/* Stay Hygge Newsletter — all styles scoped to .shn-* */

/* =========================================================================
   CSS custom properties — defaults, overridden by inline style from PHP
   ========================================================================= */

:root {
	--shn-primary:    #2c2c2c;
	--shn-gold:       #b8956a;
	--shn-text:       #3a3a3a;
	--shn-text-light: #8a8a8a;
	--shn-bg:         #ffffff;
	--shn-bg-alt:     #faf8f5;
	--shn-border:     #e8e4df;
	--shn-font:       'Quicksand', sans-serif;
}

/* =========================================================================
   Modal
   ========================================================================= */

.shn-modal {
	position: fixed;
	inset: 0;
	z-index: 10001;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.3s ease, visibility 0.3s ease;
	font-family: var(--shn-font);
}

.shn-modal--active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.shn-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(4px);
}

.shn-modal__dialog {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: calc(100% - 32px);
	max-width: 900px;
	max-height: calc(100vh - 48px);
	overflow-y: auto;
	background: var(--shn-bg);
	box-shadow: 0 16px 64px rgba(0, 0, 0, 0.12);
}

.shn-modal__close {
	position: absolute;
	top: 12px;
	right: 16px;
	background: none;
	border: none;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	color: var(--shn-text-light);
	z-index: 1;
	padding: 4px 8px;
	transition: color 0.2s;
}

.shn-modal__close:hover {
	color: var(--shn-primary);
}

.shn-modal__panel {
	display: grid;
	grid-template-columns: 1fr 1fr;
}

.shn-modal__pitch {
	background: var(--shn-bg-alt);
	padding: 56px 48px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.shn-modal__eyebrow {
	display: block;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--shn-gold);
	margin-bottom: 16px;
}

.shn-modal__title {
	font-size: 26px;
	font-weight: 300;
	color: var(--shn-primary);
	margin: 0 0 20px;
	line-height: 1.3;
}

.shn-modal__benefits {
	list-style: none;
	padding: 0;
	margin: 0 0 20px;
}

.shn-modal__benefits li {
	position: relative;
	padding-left: 20px;
	margin-bottom: 10px;
	font-size: 14px;
	color: var(--shn-text);
	line-height: 1.5;
}

.shn-modal__benefits li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 8px;
	width: 8px;
	height: 1px;
	background: var(--shn-gold);
}

.shn-modal__subtext {
	font-size: 13px;
	color: var(--shn-text-light);
	font-style: italic;
	margin: 0;
	line-height: 1.6;
}

.shn-modal__form-wrap {
	padding: 56px 48px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

/* =========================================================================
   Shared button
   ========================================================================= */

.shn-btn {
	display: inline-block;
	padding: 14px 32px;
	background: var(--shn-primary);
	color: #ffffff;
	border: none;
	cursor: pointer;
	font-size: 13px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-family: inherit;
	transition: background 0.2s;
	text-decoration: none;
	line-height: 1;
}

.shn-btn:hover {
	background: var(--shn-gold);
	color: #ffffff;
}

/* =========================================================================
   Shared form elements
   ========================================================================= */

.shn-form {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.shn-form__input {
	width: 100%;
	padding: 14px 16px;
	border: 1px solid var(--shn-border);
	background: var(--shn-bg);
	font-size: 15px;
	font-family: inherit;
	outline: none;
	box-sizing: border-box;
	transition: border-color 0.2s;
}

.shn-form__input:focus {
	border-color: var(--shn-gold);
}

.shn-form__submit {
	width: 100%;
	padding: 14px 24px;
}

.shn-form__disclaimer {
	font-size: 12px;
	color: var(--shn-text-light);
	margin: 4px 0 0;
}

.shn-form__success {
	font-size: 14px;
	color: var(--shn-text);
	padding: 12px 0;
	line-height: 1.6;
}

/* =========================================================================
   Sticky re-open notice
   ========================================================================= */

.shn-notice {
	position: fixed;
	bottom: 24px;
	left: 24px;
	z-index: 10000;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	background: var(--shn-primary);
	color: #ffffff;
	border: none;
	cursor: pointer;
	font-family: var(--shn-font);
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
	opacity: 0;
	transform: translateY(12px);
	pointer-events: none;
	transition: opacity 0.35s ease, transform 0.35s ease, background 0.2s;
}

.shn-notice--visible {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.shn-notice:hover {
	background: var(--shn-gold);
}

.shn-notice__icon {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

/* =========================================================================
   Shortcode — inline
   ========================================================================= */

.shn-shortcode--inline .shn-form {
	flex-direction: row;
	align-items: stretch;
	flex-wrap: wrap;
	gap: 8px;
}

.shn-shortcode--inline .shn-form__input {
	flex: 1;
	min-width: 200px;
}

.shn-shortcode--inline .shn-form__submit {
	width: auto;
	white-space: nowrap;
}

/* =========================================================================
   Shortcode — panel
   ========================================================================= */

.shn-shortcode--panel {
	display: grid;
	grid-template-columns: 1fr 1fr;
}

.shn-shortcode__pitch {
	background: var(--shn-bg-alt);
	padding: 48px 40px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.shn-shortcode__eyebrow {
	display: block;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--shn-gold);
	margin-bottom: 12px;
}

.shn-shortcode__title {
	font-size: 22px;
	font-weight: 300;
	color: var(--shn-primary);
	margin: 0 0 12px;
	line-height: 1.3;
}

.shn-shortcode__subtext {
	font-size: 14px;
	color: var(--shn-text-light);
	margin: 0;
	line-height: 1.6;
}

.shn-shortcode--panel .shn-shortcode__form-wrap {
	background: var(--shn-bg);
	padding: 48px 40px;
	display: flex;
	align-items: center;
}

.shn-shortcode--panel .shn-form {
	width: 100%;
}

/* =========================================================================
   Responsive
   ========================================================================= */

@media (max-width: 680px) {
	.shn-modal__panel {
		grid-template-columns: 1fr;
	}

	.shn-modal__pitch {
		padding: 32px 24px 24px;
	}

	.shn-modal__form-wrap {
		padding: 24px;
	}

	.shn-shortcode--panel {
		grid-template-columns: 1fr;
	}

	.shn-shortcode__pitch,
	.shn-shortcode--panel .shn-shortcode__form-wrap {
		padding: 28px 20px;
	}

	.shn-shortcode--inline .shn-form {
		flex-direction: column;
	}

	.shn-shortcode--inline .shn-form__input {
		min-width: 0;
		width: 100%;
	}

	.shn-shortcode--inline .shn-form__submit {
		width: 100%;
	}
}
