/**
 * LawNest theme styles — slim layout chrome (header, footer, buttons, reveal).
 * Values from migration/lawnest/design-tokens.json; not a 1:1 HubSpot port.
 */

:root {
	--lawnest-bg: #0e1719;
	--lawnest-bg-2: #131f22;
	--lawnest-surface: #18272b;
	--lawnest-border: rgba(143, 160, 166, 0.16);
	--lawnest-border-strong: rgba(143, 160, 166, 0.3);
	--lawnest-text: #f5f0e6;
	--lawnest-text-soft: #e2ddd2;
	--lawnest-text-muted: #9aa8ae;
	--lawnest-accent: #dda85c;
	--lawnest-accent-hover: #e6bb7a;
	--lawnest-accent-press: #c58e45;
	--lawnest-on-accent: #0e1719;
	--lawnest-amber-400: #e6bb7a;
	--lawnest-amber-600: #c58e45;
	--lawnest-gutter: clamp(20px, 5vw, 64px);
	--lawnest-section: clamp(72px, 11vw, 150px);
	--lawnest-section-tight: clamp(48px, 7vw, 90px);
	--lawnest-maxw: 1240px;
	--lawnest-radius-sm: 8px;
	--lawnest-radius-md: 14px;
	--lawnest-radius-pill: 999px;
	--lawnest-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--lawnest-glow-amber: 0 0 0 1px rgba(221, 168, 92, 0.22), 0 24px 60px -24px rgba(221, 168, 92, 0.35);
}

body {
	font-size-adjust: from-font;
	font-weight: 400;
	letter-spacing: 0;
	overflow-x: hidden;
}

h1 {
	font-size-adjust: cap-height from-font;
}

.wp-site-blocks > header,
.wp-site-blocks > main,
.wp-site-blocks > footer {
	margin-block: 0;
}

/* Ambient wash (from HubSpot main.css body::before) */
body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -2;
	pointer-events: none;
	background:
		radial-gradient(1100px 700px at 78% -8%, rgba(221, 168, 92, 0.1), transparent 60%),
		radial-gradient(900px 600px at -5% 12%, rgba(70, 89, 95, 0.22), transparent 55%),
		linear-gradient(180deg, var(--lawnest-bg, #0e1719), var(--lawnest-bg-2, #131f22) 60%, var(--lawnest-bg, #0e1719));
}

/* Dot grid (from HubSpot main.css body::after) */
body::after {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	opacity: 0.4;
	background-image: radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
	background-size: 4px 4px;
}

/* Global paragraph typo — override TT25 ~22px */
p,
.wp-block-paragraph {
	font-size: 1.02rem;
	line-height: 26px;
	font-weight: 400;
	letter-spacing: 0;
	color: var(--lawnest-text-soft);
}

/* --- Skip link --- */
.skip-link {
	position: absolute;
	left: -999px;
	top: 0;
	z-index: 1000;
	padding: 0.6rem 1rem;
	border-radius: 0 0 var(--lawnest-radius-sm) 0;
	background: var(--lawnest-accent);
	color: var(--lawnest-on-accent);
	font-weight: 600;
	text-decoration: none;
}

.skip-link:focus,
.skip-link:focus-visible {
	left: 0;
	outline: 2px solid var(--lawnest-accent-hover);
	outline-offset: 2px;
}

/* --- Container / sections --- */
.lawnest-container,
.container {
	width: 100%;
	max-width: var(--lawnest-maxw);
	margin-inline: auto;
	padding-inline: var(--lawnest-gutter);
}

.section {
	position: relative;
	padding-block: var(--lawnest-section);
}

.section--tight {
	padding-block: var(--lawnest-section-tight);
}

/* --- Header (fixed, transparent over hero) --- */
.site-header,
header:has(.lawnest-header) {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 100;
	width: 100%;
	height: 72px;
	background: transparent;
	border-bottom: none;
	backdrop-filter: none;
}

.lawnest-header {
	position: relative;
	max-width: var(--lawnest-maxw);
	margin-inline: auto;
	padding-inline: var(--lawnest-gutter);
	height: 100%;
}

.lawnest-header__inner {
	height: 72px;
	padding-block: 0;
	gap: 1.5rem;
}

.lawnest-header .wp-block-site-logo {
	line-height: 0;
}

.lawnest-header .wp-block-site-logo img {
	width: 97px;
	height: 34px;
	max-width: 97px;
	object-fit: contain;
}

/* Desktop nav */
.lawnest-nav--desktop {
	gap: 32px;
}

.lawnest-nav .wp-block-navigation-item a {
	font-size: 0.95rem;
	font-weight: 400;
	letter-spacing: 0;
	color: var(--lawnest-text-soft);
	text-decoration: none;
}

.lawnest-nav .wp-block-navigation-item a:hover {
	color: var(--lawnest-text);
}

/* Header CTA — small 36px, light text, gold shadow (not lawnest-btn-lg) */
.lawnest-nav .lawnest-nav__cta a,
.lawnest-nav .wp-block-navigation-item.lawnest-nav__cta > a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 36px;
	min-height: 36px;
	padding: 0 1.6rem;
	border-radius: var(--lawnest-radius-pill);
	background: linear-gradient(180deg, var(--lawnest-amber-400), var(--lawnest-amber-600));
	color: var(--lawnest-text-soft);
	font-weight: 600;
	font-size: 0.95rem;
	box-shadow: var(--lawnest-glow-amber);
}

.lawnest-nav .lawnest-nav__cta a:hover,
.lawnest-nav .wp-block-navigation-item.lawnest-nav__cta > a:hover {
	color: var(--lawnest-text-soft);
	filter: brightness(1.05);
}

/* Mobile toggle — 39×39, three bars */
.lawnest-nav-toggle {
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	width: 39px;
	height: 39px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--lawnest-text);
	cursor: pointer;
}

.lawnest-nav-toggle__bar {
	display: block;
	width: 22px;
	height: 2px;
	border-radius: 1px;
	background: currentColor;
}

/* Mobile overlay */
.lawnest-nav-overlay {
	display: none;
	position: fixed;
	inset: 75px 0 0 0;
	z-index: 200;
	padding: 2.5rem var(--lawnest-gutter) 1.6rem;
	background: #0e1719;
}

.lawnest-nav-overlay.is-open,
.lawnest-nav-overlay:not([hidden]) {
	display: block;
}

.lawnest-nav-overlay[hidden] {
	display: none !important;
}

.lawnest-nav-overlay__nav {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.4rem;
	text-align: center;
}

.lawnest-nav-overlay__nav a {
	display: block;
	padding-block: 0.7rem;
	font-size: 1.05rem;
	font-weight: 400;
	color: var(--lawnest-text-soft);
	text-decoration: none;
}

.lawnest-nav-overlay__nav a:hover {
	color: var(--lawnest-text);
}

.lawnest-nav-overlay__cta {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	margin-top: 0.6rem;
	height: 36px;
	min-height: 36px;
	padding: 0 1.6rem !important;
	border-radius: var(--lawnest-radius-pill);
	background: linear-gradient(180deg, var(--lawnest-amber-400), var(--lawnest-amber-600));
	color: var(--lawnest-text-soft) !important;
	font-weight: 600;
	box-shadow: var(--lawnest-glow-amber);
}

@media (prefers-reduced-motion: no-preference) {
	.lawnest-nav-overlay.is-open {
		animation: lawnest-nav-in 0.25s var(--lawnest-ease);
	}
}

@keyframes lawnest-nav-in {
	from {
		opacity: 0;
		transform: translateY(-0.5rem);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@media (max-width: 940px) {
	.site-header,
	header:has(.lawnest-header) {
		height: 75px;
	}

	.lawnest-header__inner {
		height: 75px;
	}

	.lawnest-nav--desktop {
		display: none !important;
	}

	.lawnest-nav-toggle {
		display: inline-flex;
	}
}

@media (min-width: 941px) {
	.lawnest-nav-toggle {
		display: none !important;
	}

	.lawnest-nav-overlay {
		display: none !important;
	}
}

/* --- Footer --- */
.site-footer,
footer:has(.lawnest-footer) {
	border-top: 1px solid var(--lawnest-border);
	background: var(--lawnest-bg-2);
}

.lawnest-footer {
	max-width: var(--lawnest-maxw);
	margin-inline: auto;
	padding: clamp(48px, 6vw, 80px) var(--lawnest-gutter) 2rem;
}

.lawnest-footer__grid {
	gap: clamp(28px, 4vw, 60px);
}

.lawnest-footer__brand .wp-block-site-logo img {
	width: 114px;
	height: 40px;
	max-width: 114px;
	margin-bottom: 1.1rem;
	object-fit: contain;
}

.lawnest-footer__tagline {
	max-width: 34ch;
	font-size: 0.9rem;
	line-height: 1.6;
	font-weight: 400;
	color: var(--lawnest-text-muted);
}

.lawnest-footer__heading {
	margin: 0 0 1rem;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--lawnest-text-muted);
}

.lawnest-footer__address {
	margin: 0;
	font-size: 0.92rem;
	font-weight: 400;
	line-height: 1.7;
	letter-spacing: 0;
	color: var(--lawnest-text-soft);
}

.lawnest-footer__nav .wp-block-navigation-item a,
.lawnest-footer a {
	font-size: 0.92rem;
	font-weight: 400;
	color: var(--lawnest-text-soft);
	text-decoration: none;
}

.lawnest-footer__nav .wp-block-navigation-item a:hover,
.lawnest-footer a:hover {
	color: var(--lawnest-accent);
}

.lawnest-footer__bottom {
	margin-top: clamp(36px, 5vw, 60px);
	padding-top: 1.6rem;
	border-top: 1px solid var(--lawnest-border);
	font-size: 0.82rem;
	color: var(--lawnest-text-muted);
}

.lawnest-footer__bottom p {
	font-size: inherit;
	line-height: inherit;
	color: inherit;
}

.lawnest-footer__legal,
.lawnest-footer__legal a {
	font-size: 13px;
	font-weight: 400;
	color: var(--lawnest-text-muted);
	text-decoration: none;
}

.lawnest-footer__legal a:hover {
	color: var(--lawnest-text);
	text-decoration: none;
}

/* Brand full-width on small screens; Navigation + Anbieter side by side */
@media (max-width: 760px) {
	.lawnest-footer__grid {
		flex-wrap: wrap;
	}

	.lawnest-footer__brand {
		flex-basis: 100% !important;
		width: 100%;
	}

	.lawnest-footer__col {
		flex-basis: calc(50% - 0.5rem) !important;
		width: calc(50% - 0.5rem);
	}
}

/* --- Shared section chrome --- */
.lawnest-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	margin: 0;
	font-family: var(--wp--preset--font-family--inter, "Inter", system-ui, sans-serif);
	font-size: 0.78rem;
	line-height: 20px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--lawnest-accent, #dda85c);
}

.lawnest-eyebrow::before {
	content: "";
	width: 26px;
	height: 1px;
	background: linear-gradient(90deg, var(--lawnest-accent, #dda85c), transparent);
}

.lawnest-lead {
	margin-top: 1.1rem;
	max-width: 60ch;
	font-size: clamp(1.05rem, 1.6vw, 1.3rem);
	font-weight: 400;
	letter-spacing: 0;
	color: var(--lawnest-text-soft, #e2ddd2);
}

.lawnest-section-head {
	max-width: 760px;
	margin-bottom: clamp(40px, 6vw, 72px);
}

.lawnest-section-head .wp-block-heading {
	margin-top: 0.45rem;
	font-family: var(--wp--preset--font-family--fraunces, "Fraunces", Georgia, serif);
	font-weight: 500;
	font-size: clamp(2rem, 4vw, 3.25rem);
	line-height: 1.1;
	letter-spacing: -0.02em;
	color: var(--lawnest-text, #f5f0e6);
	text-wrap: balance;
}

/* --- Buttons --- */
.btn,
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	padding: 0.95rem 1.6rem;
	border-radius: var(--lawnest-radius-pill);
	border: 1px solid transparent;
	font-weight: 600;
	font-size: 0.98rem;
	text-decoration: none;
	transition:
		transform 0.25s var(--lawnest-ease),
		background 0.25s var(--lawnest-ease),
		border-color 0.25s var(--lawnest-ease),
		box-shadow 0.25s var(--lawnest-ease),
		color 0.25s var(--lawnest-ease);
}

.btn-primary,
.wp-block-button:not(.is-style-outline) .wp-block-button__link {
	background: linear-gradient(180deg, var(--lawnest-amber-400), var(--lawnest-amber-600));
	color: var(--lawnest-on-accent);
	box-shadow: var(--lawnest-glow-amber);
}

.btn-primary:hover,
.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
	transform: translateY(-2px);
	color: var(--lawnest-on-accent);
	box-shadow: 0 0 0 1px rgba(221, 168, 92, 0.4), 0 30px 70px -22px rgba(221, 168, 92, 0.6);
}

.btn-ghost,
.wp-block-button.is-style-outline .wp-block-button__link {
	background: rgba(245, 240, 230, 0.04);
	color: var(--lawnest-text);
	border-color: var(--lawnest-border-strong);
	backdrop-filter: blur(6px);
}

.btn-ghost:hover,
.wp-block-button.is-style-outline .wp-block-button__link:hover {
	border-color: var(--lawnest-accent);
	color: var(--lawnest-accent);
	transform: translateY(-2px);
}

/* Large CTA buttons (Hero / Angebot / CTA) — class set in patterns */
.wp-block-button.lawnest-btn-lg .wp-block-button__link {
	min-height: 64px;
	padding: 1.1rem 2rem;
	font-size: 1.05rem;
	font-weight: 600;
	gap: 0.6rem;
}

.wp-block-button.lawnest-btn-lg .wp-block-button__link::after {
	content: "→";
	display: inline-block;
	transition: transform 0.25s var(--lawnest-ease);
}

.wp-block-button.lawnest-btn-lg .wp-block-button__link:hover::after {
	transform: translateX(4px);
}

@media (prefers-reduced-motion: reduce) {
	.wp-block-button.lawnest-btn-lg .wp-block-button__link::after,
	.wp-block-button.lawnest-btn-lg .wp-block-button__link:hover::after {
		transition: none;
		transform: none;
	}

	.lawnest-nav-overlay.is-open {
		animation: none;
	}
}

/* --- Reveal on scroll (HubSpot main.css). Class "in" comes from reveal.js --- */
.reveal {
	opacity: 0;
	transform: translateY(28px);
	transition:
		opacity 0.8s var(--lawnest-ease),
		transform 0.8s var(--lawnest-ease);
}

.reveal.in {
	opacity: 1;
	transform: none;
}

.reveal.d1 {
	transition-delay: 0.08s;
}

.reveal.d2 {
	transition-delay: 0.16s;
}

.reveal.d3 {
	transition-delay: 0.24s;
}

@media (prefers-reduced-motion: reduce) {
	.reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

:focus-visible {
	outline: 2px solid var(--lawnest-accent);
	outline-offset: 3px;
	border-radius: 4px;
}
