/**
 * ENCO School Theme - Additional Styles
 *
 * @package ENCO_Theme
 * @since 1.0.0
 */

:root {
	/* ENCO brand palette - Additional colors */
	--accent-soft: rgba(237, 206, 92, 0.25);
	--accent-hover: #d9b84a;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	font-size: 16px;
	scroll-behavior: smooth;
}

body {
	font-family: 'Source Sans 3', sans-serif;
	background: var(--wp--preset--color--paper);
	color: var(--wp--preset--color--ink);
	min-height: 100vh;
	overflow-x: hidden;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 2rem 1.5rem;
	position: relative;
}

body::before {
	content: '';
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background:
		radial-gradient(ellipse 80% 50% at 50% -20%, var(--accent-soft), transparent 60%),
		radial-gradient(ellipse 60% 40% at 100% 100%, rgba(237, 206, 92, 0.12), transparent 50%);
	pointer-events: none;
	z-index: 0;
}

.wp-block-group.alignfull {
	position: relative;
	z-index: 1;
}

.badge {
	display: inline-block;
	font-size: 0.875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	color: var(--wp--preset--color--ink);
	background: var(--wp--preset--color--accent);
	padding: 0.5rem 1.25rem;
	border-radius: 2rem;
	margin-bottom: 2.5rem;
}

.brand {
	margin-bottom: 2.5rem;
}

.brand-logo-img {
	display: block;
	height: auto;
	width: 100%;
	max-width: 280px;
	margin: 0 auto 0.5rem;
	object-fit: contain;
}

.brand-fallback {
	display: none;
	text-align: center;
}

.brand-fallback.is-visible {
	display: block;
}

.brand-fallback .tagline {
	margin-bottom: 0;
}

.brand-wordmark {
	font-family: 'Playfair Display', serif;
	font-size: clamp(2.5rem, 8vw, 4rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--wp--preset--color--ink);
	display: block;
	margin-bottom: 0.25rem;
}

.tagline {
	font-family: 'Source Sans 3', sans-serif;
	font-size: clamp(0.875rem, 2.2vw, 1rem);
	font-weight: 500;
	color: var(--wp--preset--color--muted);
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.headline {
	font-family: 'Playfair Display', serif;
	font-size: clamp(2rem, 5vw, 3rem);
	font-weight: 600;
	line-height: 1.2;
	margin-bottom: 1rem;
	color: var(--wp--preset--color--ink);
}

.subhead {
	font-size: 1.125rem;
	font-weight: 400;
	color: var(--wp--preset--color--muted);
	line-height: 1.6;
	margin-bottom: 2.5rem;
	max-width: 32ch;
	margin-left: auto;
	margin-right: auto;
}

.notify-form {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: center;
	margin-bottom: 3rem;
}

.notify-form input {
	font-family: 'Source Sans 3', sans-serif;
	font-size: 1rem;
	padding: 0.875rem 1.25rem;
	border: 1px solid rgba(62, 61, 62, 0.2);
	border-radius: 0.5rem;
	background: #fff;
	color: var(--wp--preset--color--ink);
	min-width: 260px;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.notify-form input::placeholder {
	color: var(--wp--preset--color--muted);
}

.notify-form input:focus {
	outline: none;
	border-color: var(--wp--preset--color--accent);
	box-shadow: 0 0 0 3px var(--accent-soft);
}

.notify-form button {
	font-family: 'Source Sans 3', sans-serif;
	font-size: 1rem;
	font-weight: 600;
	padding: 0.875rem 1.75rem;
	border: none;
	border-radius: 0.5rem;
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--ink);
	cursor: pointer;
	transition: background 0.2s, transform 0.15s;
}

.notify-form button:hover {
	background: var(--accent-hover);
	transform: translateY(-1px);
}

.notify-form button:active {
	transform: translateY(0);
}

.notify-form button:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.deco-line {
	width: 3rem;
	height: 2px;
	background: var(--wp--preset--color--accent);
	margin: 0 auto 2rem;
	opacity: 0.6;
}

.footer-note {
	font-size: 0.8125rem;
	color: var(--wp--preset--color--muted);
	font-weight: 400;
}

.thank-you-message {
	margin-bottom: 2rem;
	padding: 1rem 1.5rem;
	border-radius: 0.5rem;
	background: var(--accent-soft);
	color: var(--wp--preset--color--ink);
	font-weight: 500;
	font-size: 1.0625rem;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-4px);
	transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s ease;
}

.thank-you-message.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.thank-you-message.is-fading {
	opacity: 0;
	visibility: hidden;
	transform: translateY(-4px);
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
	body {
		padding: 1.5rem 1rem;
	}

	.badge {
		font-size: 0.75rem;
		padding: 0.4rem 1rem;
		margin-bottom: 2rem;
	}

	.brand {
		margin-bottom: 2rem;
	}

	.brand-logo-img {
		max-width: 240px;
	}

	.headline {
		font-size: clamp(1.5rem, 6vw, 2.5rem);
		margin-bottom: 0.75rem;
	}

	.subhead {
		font-size: 1rem;
		margin-bottom: 2rem;
		max-width: 100%;
	}

	.notify-form {
		flex-direction: column;
		align-items: stretch;
		gap: 0.5rem;
		margin-bottom: 2rem;
	}

	.notify-form input {
		min-width: 100%;
		width: 100%;
		font-size: 16px; /* Prevent zoom on iOS */
		padding: 0.75rem 1rem;
	}

	.notify-form button {
		width: 100%;
		padding: 0.75rem 1.5rem;
		font-size: 1rem;
	}

	.deco-line {
		margin-bottom: 1.5rem;
	}

	.footer-note {
		font-size: 0.75rem;
	}

	.thank-you-message {
		font-size: 0.9375rem;
		padding: 0.875rem 1.25rem;
		margin-bottom: 1.5rem;
	}
}

/* Extra small devices */
@media (max-width: 480px) {
	body {
		padding: 1rem 0.75rem;
	}

	.badge {
		font-size: 0.6875rem;
		padding: 0.35rem 0.875rem;
	}

	.brand-logo-img {
		max-width: 200px;
	}

	.headline {
		font-size: clamp(1.25rem, 7vw, 2rem);
		line-height: 1.15;
	}

	.subhead {
		font-size: 0.9375rem;
		line-height: 1.5;
	}

	.notify-form input,
	.notify-form button {
		font-size: 16px; /* Prevent zoom on iOS */
	}
}

/* Landscape orientation on mobile */
@media (max-width: 768px) and (orientation: landscape) {
	body {
		padding: 1rem;
	}

	.brand {
		margin-bottom: 1.5rem;
	}

	.brand-logo-img {
		max-width: 180px;
	}
}
