/**
 * 404 Page — Professional, English-only design
 */

.error-404-page {
	--e404-dark: #2D3748;
	--e404-navy: #215387;
	--e404-gold: #f5a524;
	--e404-light: #F7F8F8;
	--e404-white: #fff;
	--e404-radius: 14px;
	--e404-transition: cubic-bezier(0.4, 0, 0.2, 1);
}

.site-main--404 {
	width: 100%;
	max-width: none;
	padding: 0;
	margin: 0;
}

.error-404-page {
	position: relative;
	min-height: 70vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 80px 24px 100px;
	text-align: center;
	overflow: hidden;
	background: linear-gradient(135deg, var(--e404-dark) 0%, #1a2538 50%, var(--e404-navy) 100%);
}

.error-404-page::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image:
		repeating-linear-gradient(45deg, transparent, transparent 40px, rgba(255,255,255,0.02) 40px, rgba(255,255,255,0.02) 41px),
		repeating-linear-gradient(-45deg, transparent, transparent 40px, rgba(255,255,255,0.02) 40px, rgba(255,255,255,0.02) 41px);
	pointer-events: none;
}

.error-404-page__glow {
	position: absolute;
	border-radius: 50%;
	pointer-events: none;
}
.error-404-page__glow--1 {
	top: -80px;
	right: -60px;
	width: 320px;
	height: 320px;
	background: radial-gradient(circle, rgba(245,165,36,0.1), transparent 70%);
}
.error-404-page__glow--2 {
	bottom: -80px;
	left: -60px;
	width: 280px;
	height: 280px;
	background: radial-gradient(circle, rgba(33,83,135,0.15), transparent 70%);
}

.error-404-page__inner {
	position: relative;
	z-index: 2;
	max-width: 560px;
	margin: 0 auto;
}

.error-404-page__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 20px;
}
.error-404-page__eyebrow-line {
	width: 28px;
	height: 1.5px;
	background: var(--e404-gold);
}
.error-404-page__eyebrow-text {
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 4px;
	color: var(--e404-gold);
}

.error-404-page__title {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: clamp(28px, 4vw, 42px);
	font-weight: 700;
	color: var(--e404-white);
	line-height: 1.2;
	margin: 0 0 12px;
}
.error-404-page__title em {
	font-style: italic;
	color: var(--e404-gold);
	position: relative;
}
.error-404-page__title em::after {
	content: '';
	position: absolute;
	bottom: 2px;
	left: 0;
	width: 100%;
	height: 5px;
	background: rgba(33,83,135,0.35);
	border-radius: 3px;
	z-index: -1;
}

.error-404-page__code {
	font-family: 'Outfit', sans-serif;
	font-size: clamp(72px, 12vw, 120px);
	font-weight: 700;
	color: rgba(255,255,255,0.12);
	line-height: 1;
	margin: 0 0 24px;
	letter-spacing: -0.02em;
}

.error-404-page__desc {
	font-size: 17px;
	color: rgba(255,255,255,0.85);
	line-height: 1.65;
	margin: 0 0 36px;
	font-weight: 300;
}

.error-404-page__search {
	margin-bottom: 32px;
}
.error-404-page__search-form {
	display: flex;
	gap: 0;
	max-width: 400px;
	margin: 0 auto;
	background: var(--e404-white);
	border-radius: var(--e404-radius);
	overflow: hidden;
	box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}
.error-404-page__search-input {
	flex: 1;
	padding: 14px 20px;
	border: none;
	font-size: 15px;
	font-family: inherit;
	color: var(--e404-dark);
	background: transparent;
}
.error-404-page__search-input::placeholder {
	color: rgba(45,55,72,0.5);
}
.error-404-page__search-input:focus {
	outline: none;
}
.error-404-page__search-btn {
	padding: 14px 24px;
	background: linear-gradient(135deg, var(--e404-navy), #1a4570);
	color: var(--e404-white);
	border: none;
	font-size: 14px;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	transition: opacity 0.25s var(--e404-transition);
}
.error-404-page__search-btn:hover {
	opacity: 0.92;
}

.error-404-page__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	justify-content: center;
	margin-bottom: 40px;
}
.error-404-page__btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 28px;
	border-radius: var(--e404-radius);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	transition: transform 0.25s var(--e404-transition), box-shadow 0.25s var(--e404-transition);
}
.error-404-page__btn--primary {
	background: linear-gradient(135deg, var(--e404-gold), #DDA944);
	color: var(--e404-dark);
	box-shadow: 0 4px 20px rgba(245,165,36,0.35);
}
.error-404-page__btn--primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 28px rgba(245,165,36,0.4);
	color: var(--e404-dark);
}
.error-404-page__btn--secondary {
	background: rgba(255,255,255,0.15);
	color: var(--e404-white);
	border: 1.5px solid rgba(255,255,255,0.35);
}
.error-404-page__btn--secondary:hover {
	background: rgba(255,255,255,0.22);
	color: var(--e404-white);
	transform: translateY(-2px);
}

.error-404-page__links {
	font-size: 14px;
	color: rgba(255,255,255,0.7);
}
.error-404-page__links a {
	color: rgba(255,255,255,0.9);
	text-decoration: none;
	transition: color 0.2s ease;
}
.error-404-page__links a:hover {
	color: var(--e404-gold);
}
.error-404-page__sep {
	margin: 0 10px;
	opacity: 0.6;
}

@media (max-width: 600px) {
	.error-404-page {
		padding: 60px 20px 80px;
	}
	.error-404-page__search-form {
		flex-direction: column;
	}
	.error-404-page__search-btn {
		border-top: 1px solid rgba(45,55,72,0.08);
	}
	.error-404-page__actions {
		flex-direction: column;
	}
	.error-404-page__btn {
		justify-content: center;
	}
}
