/* ====== EarthWeave — Global Styles ====== */

/* Local fonts */
@font-face {
	font-family: 'Inter';
	src: url('../fonts/Inter-Regular.ttf') format('truetype');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Playfair Display';
	src: url('../fonts/PlayfairDisplay-Bold.ttf') format('truetype');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

:root {
	--bg: #0e0f0e;
	--ink: #e8ebe7;
	--muted: #aeb4ae;
	--brand: #c6a572; /* sand-gold accent */
	--brand-2: #7d8f84; /* sage-gray */
	--card: #161816;
	--line: rgba(255, 255, 255, 0.08);

	--radius: 20px;
	--shadow: 0 10px 30px rgba(0, 0, 0, 0.35);

	--step-1: clamp(28px, 4vw, 54px);
	--step-0: clamp(18px, 2.2vw, 24px);
	--step--1: clamp(14px, 1.6vw, 18px);
}

* {
	box-sizing: border-box;
}
html,
body {
	height: 100%;
}
body {
	margin: 0;
	font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto,
		'Helvetica Neue', Arial, sans-serif;
	color: var(--ink);
	background: radial-gradient(
			1200px 1200px at 10% -10%,
			#1a1d1a 0,
			transparent 60%
		),
		radial-gradient(1200px 1200px at 110% 10%, #171a17 0, transparent 60%),
		var(--bg);
	line-height: 1.6;
}

/* Containers */
.ew-container {
	width: min(1100px, 92vw);
	margin-inline: auto;
}

/* Accessibility */
.visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Header */
.ew-header {
	position: fixed;
	width: 100%;
	top: 0;
	z-index: 50;
	background: rgba(14, 15, 14, 0.7);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--line);
}
.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 0;
}
.ew-logo {
	font-family: 'Playfair Display', serif;
	font-weight: 700;
	letter-spacing: 0.5px;
	color: var(--ink);
	text-decoration: none;
	font-size: 20px;
	line-height: 1;
}
.ew-nav {
	position: relative;
}
.ew-burger {
	display: inline-flex;
	flex-direction: column;
	gap: 5px;
	width: 38px;
	height: 32px;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: 1px solid var(--line);
	border-radius: 10px;
	cursor: pointer;
	transition: transform 0.2s ease;
}
.ew-burger:hover {
	transform: translateY(-1px);
}
.ew-burger-line {
	display: block;
	width: 20px;
	height: 2px;
	background: var(--ink);
	border-radius: 2px;
	transition: transform 0.3s ease, opacity 0.2s ease;
}
.ew-menu {
	display: flex;
	gap: 22px;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 0;
}
.ew-menu a {
	color: var(--ink);
	text-decoration: none;
	font-size: 15px;
	padding: 8px 10px;
	border-radius: 10px;
	border: 1px solid transparent;
	transition: border-color 0.2s ease, background-color 0.2s ease,
		transform 0.2s ease;
}
.ew-menu a:hover {
	border-color: var(--line);
	background: rgba(255, 255, 255, 0.03);
	transform: translateY(-1px);
}
.ew-menu .is-active {
	color: var(--brand);
}

/* Mobile nav */
@media (max-width: 820px) {
	.ew-menu {
		position: absolute;
		right: 0;
		top: calc(100% + 10px);
		background: var(--card);
		border: 1px solid var(--line);
		padding: 10px;
		border-radius: 14px;
		box-shadow: var(--shadow);
		display: none;
		flex-direction: column;
		gap: 6px;
		min-width: 200px;
	}
	.ew-nav.open #navMenu {
		display: flex;
	}
}

/* Main */
.ew-main {
	padding-top: 22px;
}

/* Container alias to match new footer markup */
.container {
	width: min(1100px, 92vw);
	margin-inline: auto;
}

/* Reuse reveal animation for class-based trigger */
.animate-on-scroll {
	opacity: 0;
	transform: translateY(18px) scale(0.98);
	transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.in-view {
	opacity: 1;
	transform: none;
}

/* ====== Footer (TuneForge format) ====== */
.footer {
	border-top: 1px solid var(--line);
	background: #111311;
	margin-top: 64px;
}
.footer-container {
	display: grid;
	gap: 16px;
	align-items: center;
	grid-template-columns: 1.2fr 0.6fr 0.2fr;
	padding: 26px 0;
}
.footer-column a {
	color: var(--ink);
	text-decoration: none;
	border-bottom: 1px dashed transparent;
	transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.footer-column a:hover {
	color: var(--brand);
	border-bottom-color: var(--brand);
	transform: translateY(-1px);
}

.footer-brand {
	font-family: 'Playfair Display', serif;
	font-weight: 700;
	letter-spacing: 0.3px;
	margin: 0.2rem 0 0.6rem;
	color: var(--ink);
}

.footer-links {
	display: flex;
	gap: 16px;
	justify-self: start;
	flex-wrap: wrap;
}

.back-to-top {
	justify-self: end;
	background: transparent;
	color: var(--ink);
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 8px 12px;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.back-to-top:hover {
	background: rgba(255, 255, 255, 0.04);
	transform: translateY(-1px);
	box-shadow: 0 8px 22px rgba(198, 165, 114, 0.25);
}

@media (max-width: 820px) {
	.footer-container {
		grid-template-columns: 1fr;
		gap: 12px;
	}
	.footer-links {
		justify-self: start;
	}
	.back-to-top {
		justify-self: start;
	}
}

/* Images — global constraints */
img {
	display: block;
	width: 100%;
	height: auto;
	max-width: 350px;
	border-radius: 14px;
}

/* Buttons */
.btn {
	display: inline-block;
	text-decoration: none;
	padding: 10px 16px;
	border-radius: 12px;
	border: 1px solid var(--line);
	transition: transform 0.2s ease, background-color 0.2s ease,
		border-color 0.2s ease, box-shadow 0.2s ease;
	will-change: transform;
}
.btn:hover {
	transform: translateY(-1px);
}
.btn-primary {
	background: var(--brand);
	color: #111;
	border-color: transparent;
}
.btn-primary:hover {
	box-shadow: 0 8px 22px rgba(198, 165, 114, 0.35);
}
.btn-ghost {
	color: var(--ink);
	background: transparent;
}
.btn-ghost:hover {
	border-color: var(--brand);
}

/* Reveal-on-scroll baseline */
[data-reveal] {
	opacity: 0;
	transform: translateY(18px) scale(0.98);
	transition: opacity 0.6s ease, transform 0.6s ease;
}
.in-view {
	opacity: 1;
	transform: none;
}

/* Responsive layout helpers */
@media (max-width: 640px) {
	.footer-inner {
		grid-template-columns: 1fr;
		gap: 10px;
	}
	.to-top {
		justify-self: start;
	}
}
/* ДОБАВЬ это рядом с мобильными правками меню */
@media (min-width: 821px) {
	.ew-burger {
		display: none;
	}
	.ew-menu {
		display: flex !important;
		position: static;
		background: transparent;
		border: 0;
		padding: 0;
		box-shadow: none;
	}
}
html {
	overflow-x: hidden;
}
/* ===== EarthWeave — Thank You page ===== */
.thankyou-section {
	min-height: 100dvh;
	display: grid;
	place-items: center;
	padding: 8vh 4vw;
	position: relative;
	overflow: hidden;
	background: radial-gradient(
			1200px 800px at 80% 0%,
			rgba(125, 143, 132, 0.08),
			transparent 60%
		),
		radial-gradient(
			900px 700px at 10% 100%,
			rgba(198, 165, 114, 0.08),
			transparent 55%
		);
}
.thankyou-section::before {
	content: '';
	position: absolute;
	inset: -40% -20% -20% -20%;
	pointer-events: none;
	background: repeating-linear-gradient(
		135deg,
		rgba(255, 255, 255, 0.03) 0 2px,
		transparent 2px 10px
	);
	mask-image: radial-gradient(60% 60% at 50% 40%, #000 35%, transparent 70%);
	transform: rotate(-2deg);
}
.thankyou-container {
	position: relative;
	z-index: 1;
	width: min(760px, 92vw);
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 20px;
	padding: 22px;
	box-shadow: var(--shadow);
	text-align: center;
	transform: translateY(8px);
	opacity: 0;
	animation: ty-reveal 0.6s ease forwards;
}
@keyframes ty-reveal {
	to {
		opacity: 1;
		transform: none;
	}
}
.thankyou-title {
	font-family: 'Playfair Display', serif;
	font-size: clamp(28px, 4vw, 40px);
	margin: 0 0 10px;
	line-height: 1.1;
}
.thankyou-message {
	color: var(--muted);
	margin: 0 0 16px;
	font-size: clamp(14px, 2vw, 16px);
}
.thankyou-container .cta-button {
	display: inline-block;
	padding: 12px 16px;
	border-radius: 12px;
	background: var(--brand);
	color: #111;
	border: 1px solid transparent;
	font-weight: 600;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.thankyou-container .cta-button:hover {
	transform: translateY(-1px);
	box-shadow: 0 10px 22px rgba(198, 165, 114, 0.35);
}

@media (prefers-reduced-motion: reduce) {
	.thankyou-container {
		animation: none;
		opacity: 1;
		transform: none;
	}
}
