/* michavorlaender.de — Custom styles
 * Aesthetic direction: Editorial-Refined
 * - asymmetric layouts, oversized typographic numerals
 * - generous negative space, horizontal rule lines
 * - Grasgrün as singular accent, Honiggelb only for primary CTA
 * - subtle motion: fade-on-scroll, hover lifts, animated underlines
 * - layered atmosphere: gentle gradient meshes, micro paper-grain
 */

/* ---------- Foundations ---------- */

/* Subtle paper-grain on body — tactile depth without noise */
body {
	background-image: radial-gradient(circle at 1px 1px, rgba(0, 0, 0, 0.025) 1px, transparent 0);
	background-size: 4px 4px;
	background-attachment: fixed;
}

/* Selection — branded */
::selection {
	background: var(--wp--preset--color--primary);
	color: #fff;
}

/* Smooth scroll for anchor links */
html {
	scroll-behavior: smooth;
}

/* ---------- Typographic atoms ---------- */

.eyebrow,
.is-style-eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.18em;
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--wp--preset--color--text-muted);
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.eyebrow.has-text-align-center {
	justify-content: center;
}

.eyebrow::before {
	content: "";
	flex: 0 0 1.5rem;
	height: 1px;
	background: currentColor;
}

/* Hero display headline — editorial-massive */
.hero-headline {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(2.75rem, 7vw, 6.5rem);
	font-weight: 900;
	line-height: 0.92;
	letter-spacing: -0.04em;
	color: var(--wp--preset--color--text);
	margin: 0;
}

.hero-headline em {
	font-style: normal;
	color: var(--wp--preset--color--primary);
}

.hero-lead {
	font-size: clamp(1.125rem, 1.6vw, 1.375rem);
	line-height: 1.55;
	color: var(--wp--preset--color--text-muted);
	max-width: 36ch;
}

/* Section header pattern: eyebrow + h2 + subhead */
.section-headline {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(2rem, 4.5vw, 3.5rem);
	font-weight: 900;
	line-height: 1.05;
	letter-spacing: -0.02em;
	color: var(--wp--preset--color--text);
	margin: 0;
	max-width: 22ch;
}

.section-subhead {
	font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
	line-height: 1.6;
	color: var(--wp--preset--color--text-muted);
	max-width: 56ch;
	margin-top: 1rem;
}

/* Massive numerals — for stats and process */
.display-numeral {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(4rem, 9vw, 7rem);
	font-weight: 900;
	line-height: 0.9;
	letter-spacing: -0.05em;
	color: var(--wp--preset--color--text);
	display: block;
}

.display-numeral.is-accent {
	color: var(--wp--preset--color--primary);
}

/* Process step numerals — outlined, decorative */
.process-numeral {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(5rem, 10vw, 9rem);
	font-weight: 900;
	line-height: 0.85;
	letter-spacing: -0.06em;
	-webkit-text-stroke: 2px var(--wp--preset--color--primary);
	color: transparent;
	display: block;
	margin-bottom: 1rem;
}

/* Pull quote — for testimonials */
.pull-quote {
	position: relative;
	font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
	line-height: 1.55;
	font-style: normal;
	padding-top: 2.5rem;
}

.pull-quote::before {
	content: "„";
	position: absolute;
	top: -2rem;
	left: -0.5rem;
	font-size: 7rem;
	line-height: 1;
	color: var(--wp--preset--color--primary);
	opacity: 0.4;
	font-weight: 900;
	font-family: var(--wp--preset--font-family--display);
}

/* ---------- Composition ---------- */

/* Section padding rhythm */
.section-pad-xl {
	padding-block: clamp(5rem, 10vw, 10rem);
}
.section-pad-l {
	padding-block: clamp(4rem, 7vw, 7rem);
}
.section-pad-m {
	padding-block: clamp(3rem, 5vw, 5rem);
}

/* Horizontal rule as compositional element */
.section-rule {
	border: 0;
	border-top: 1px solid var(--wp--preset--color--border);
	width: 100%;
	margin: 0;
}

/* Asymmetric grid for hero */
.layout-asymmetric {
	display: grid;
	grid-template-columns: 1fr;
	gap: 3rem;
	align-items: end;
}
@media (min-width: 900px) {
	.layout-asymmetric {
		grid-template-columns: 7fr 5fr;
		gap: 4rem;
	}
}

/* Subtle atmospheric gradient on hero / accent sections */
.gradient-atmosphere {
	background:
		radial-gradient(ellipse 70% 60% at 12% 20%, rgba(142, 172, 48, 0.10), transparent 70%),
		radial-gradient(ellipse 60% 50% at 90% 80%, rgba(255, 184, 0, 0.07), transparent 70%);
}

/* ---------- Cards ---------- */

.card {
	background: var(--wp--preset--color--background);
	border-radius: 12px;
	padding: clamp(1.5rem, 2.5vw, 2.25rem);
	border: 1px solid var(--wp--preset--color--border);
	transition: transform 360ms cubic-bezier(0.2, 0.6, 0.3, 1),
		box-shadow 360ms cubic-bezier(0.2, 0.6, 0.3, 1),
		border-color 360ms ease;
}

.card:hover {
	transform: translateY(-4px);
	box-shadow: 0 24px 48px -24px rgba(45, 57, 64, 0.18);
	border-color: var(--wp--preset--color--primary);
}

/* Logo placeholder cards — refined grey, no border, soft */
.logo-placeholder {
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--text-muted);
	border-radius: 8px;
	padding: 1.25rem 2.5rem;
	min-height: 64px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	min-width: 120px;
	transition: background 240ms ease;
}
.logo-placeholder:hover {
	background: var(--wp--preset--color--border);
}

/* ---------- Header ---------- */

.site-header {
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.wordmark {
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.375rem;
	font-weight: 900;
	line-height: 0.95;
	letter-spacing: -0.03em;
	color: var(--wp--preset--color--text);
	text-decoration: none !important;
	display: inline-block;
}

.wordmark .accent {
	color: var(--wp--preset--color--primary);
}

/* ---------- Buttons ---------- */

.wp-block-button .wp-block-button__link {
	transition: transform 240ms cubic-bezier(0.2, 0.6, 0.3, 1),
		box-shadow 240ms ease;
	will-change: transform;
}
.wp-block-button .wp-block-button__link:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 24px -12px rgba(45, 57, 64, 0.25);
}

.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent !important;
	color: var(--wp--preset--color--primary) !important;
	border: 2px solid var(--wp--preset--color--primary) !important;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--wp--preset--color--primary) !important;
	color: #fff !important;
	box-shadow: 0 12px 24px -12px rgba(142, 172, 48, 0.5);
}

/* ---------- Animated link underline (for inline content links) ---------- */

main a:not(.wp-block-button__link):not(.wordmark) {
	background-image: linear-gradient(currentColor, currentColor);
	background-size: 0 1.5px;
	background-position: 0 100%;
	background-repeat: no-repeat;
	text-decoration: none;
	transition: background-size 280ms cubic-bezier(0.2, 0.6, 0.3, 1);
	padding-bottom: 1px;
}
main a:not(.wp-block-button__link):not(.wordmark):hover {
	background-size: 100% 1.5px;
}

/* ---------- Motion: scroll-driven reveals (modern browsers) ---------- */

@supports (animation-timeline: view()) {
	.reveal {
		animation: fadeUp 1s cubic-bezier(0.2, 0.6, 0.3, 1) both;
		animation-timeline: view();
		animation-range: entry 0% entry 50%;
	}
}

@keyframes fadeUp {
	from {
		opacity: 0;
		transform: translateY(28px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Staggered hero reveal on page load (always-on) */
.hero-stagger > * {
	opacity: 0;
	animation: fadeUp 900ms cubic-bezier(0.2, 0.6, 0.3, 1) forwards;
}
.hero-stagger > *:nth-child(1) { animation-delay: 100ms; }
.hero-stagger > *:nth-child(2) { animation-delay: 220ms; }
.hero-stagger > *:nth-child(3) { animation-delay: 340ms; }
.hero-stagger > *:nth-child(4) { animation-delay: 460ms; }
.hero-stagger > *:nth-child(5) { animation-delay: 580ms; }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
