/* =========================================================
   Jens W. Ehlers Hausverwaltung GmbH — Strukturierte Klarheit
   Editorial design system: oklch tokens, 12-col grid, serif
   display type, asymmetric sections, dezente Bewegung.
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
	--jwe-primary: #1B2A4A;
	--jwe-accent: #8A3A1E;

	--primary: oklch(28% 0.06 258);
	--accent: oklch(55% 0.14 45);
	--accent-ink: oklch(32% 0.1 40);
	--bg: oklch(97% 0.01 90);
	--bg-alt: oklch(94% 0.012 80);
	--text: oklch(22% 0.02 258);
	--text-soft: oklch(40% 0.02 258);
	--line: oklch(85% 0.01 90);
	--radius: 2px;
	--radius-feature: 22px;
	--ease-out: cubic-bezier(0.16, 1, 0.3, 1);

	--font-display: "Fraunces", "Iowan Old Style", "Georgia", serif;
	--font-body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

	--space-xs: 1rem;
	--space-sm: 2rem;
	--space-md: 4rem;
	--space-lg: 6rem;
	--space-xl: 8rem;
	--space-2xl: 10rem;

	--header-h: 5.5rem;
	--header-h-compact: 4rem;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 112.5%; scroll-behavior: smooth; overflow-x: hidden; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 1rem;
	line-height: 1.65;
	text-wrap: pretty;
	overflow-x: hidden;
}
img, video, iframe { max-width: 100%; height: auto; display: block; }
svg { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.12; margin: 0; text-wrap: pretty; color: var(--primary); }
p { margin: 0; }

/* Icon guardrail — never let an inline SVG scale to container width */
.icon {
	width: 1.4em;
	height: 1.4em;
	flex: 0 0 auto;
	vertical-align: middle;
	max-width: 28px;
	max-height: 28px;
	color: currentColor;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--primary);
	color: var(--bg);
	padding: 0.75rem 1.25rem;
	z-index: 200;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Typography scale ---------- */
.hero-title, .page-title, .section-heading { color: var(--primary); }
.hero-title { font-size: clamp(3rem, 2.2rem + 4vw, 4.75rem); font-weight: 500; }
.page-title { font-size: clamp(2.6rem, 2rem + 3vw, 3.75rem); }
.section-heading { font-size: clamp(2.1rem, 1.7rem + 2vw, 2.9rem); }
.service-row-title { font-family: var(--font-display); font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.9rem); color: var(--primary); }

.eyebrow {
	font-family: var(--font-body);
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--accent-ink);
	margin: 0 0 0.9rem;
}
.eyebrow--light { color: var(--bg); opacity: 0.92; }

.section-text, .prose p { max-width: 65ch; font-size: 1.1rem; color: var(--text-soft); }
.prose { max-width: 65ch; }
.prose h2 { margin-top: var(--space-md); margin-bottom: 1rem; font-size: clamp(1.8rem, 1.5rem + 1.2vw, 2.4rem); }
.prose h3 { margin-top: var(--space-sm); margin-bottom: 0.75rem; font-size: clamp(1.4rem, 1.2rem + 0.6vw, 1.7rem); }
.prose p { margin-bottom: 1.25rem; font-size: 1.08rem; color: var(--text-soft); }
.prose ul, .prose ol { max-width: 65ch; margin-bottom: 1.25rem; padding-left: 1.4rem; }
.prose li { margin-bottom: 0.5rem; font-size: 1.08rem; color: var(--text-soft); }
.prose li::marker { color: var(--accent-ink); }
.prose a { color: var(--accent-ink); text-underline-offset: 3px; text-decoration: underline; }
.prose figure { margin: var(--space-sm) 0; }

/* ---------- Layout helpers ---------- */
.page-wrap { max-width: 1280px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 3rem); }
.page-content-grid {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	gap: clamp(1.5rem, 3vw, 3rem);
	padding: var(--space-lg) 0 var(--space-xl);
}
.content-main { grid-column: 1 / span 8; }
.content-sidebar { grid-column: 9 / span 4; }

.page-hero { background: var(--bg-alt); padding: var(--space-lg) 0 var(--space-md); }
.page-hero-inner { max-width: 1280px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 3rem); }

.fact-card {
	background: var(--bg);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: clamp(1.5rem, 2vw, 2.25rem);
	position: sticky;
	top: calc(var(--header-h) + 2rem);
}
.fact-card-heading { font-size: 1.2rem; margin-bottom: 1.25rem; }
.fact-line { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.9rem; font-size: 0.98rem; color: var(--text-soft); }
.fact-line:last-of-type { margin-bottom: 1.5rem; }
.fact-line a { display: flex; align-items: center; gap: 0.6rem; transition: color 0.2s var(--ease-out); }
.fact-line a:hover { color: var(--accent-ink); }
.fact-cta {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-weight: 600;
	color: var(--primary);
	border-bottom: 2px solid var(--accent);
	padding-bottom: 2px;
	transition: gap 0.2s var(--ease-out), color 0.2s var(--ease-out);
}
.fact-cta:hover { gap: 0.8rem; color: var(--accent-ink); }

.contact-form-block { margin-top: var(--space-md); padding-top: var(--space-md); border-top: 1px solid var(--line); }
.contact-map { margin-top: var(--space-md); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.contact-map iframe { width: 100%; height: 420px; border: 0; }

/* ---------- Buttons & links ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.7rem;
	padding: 0.95rem 1.75rem;
	border-radius: var(--radius);
	font-weight: 600;
	font-size: 1rem;
	transition: background-color 0.22s var(--ease-out), color 0.22s var(--ease-out), transform 0.18s var(--ease-out);
}
.btn--primary { background: var(--primary); color: var(--bg); }
.btn--primary:hover { background: var(--accent); color: var(--bg); transform: translateY(-2px); }
.btn--primary:active { transform: translateY(0) scale(0.98); }
.btn .icon { transition: transform 0.22s var(--ease-out); }
.btn:hover .icon { transform: translateX(3px); }

.text-link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-weight: 600;
	color: var(--primary);
	padding-bottom: 2px;
	border-bottom: 2px solid var(--line);
	transition: border-color 0.2s var(--ease-out), color 0.2s var(--ease-out), gap 0.2s var(--ease-out);
}
.text-link:hover { border-color: var(--accent); color: var(--accent-ink); gap: 0.75rem; }
.text-link .icon { width: 1.1em; height: 1.1em; }

/* =========================================================
   Header
   ========================================================= */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--bg);
	border-bottom: 1px solid var(--line);
	transition: padding 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.site-header.is-compact { box-shadow: 0 8px 24px -16px rgba(27, 42, 74, 0.35); }
.header-inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 clamp(1.25rem, 4vw, 3rem);
	height: var(--header-h);
	display: flex;
	align-items: center;
	gap: clamp(1.5rem, 3vw, 3rem);
	transition: height 0.25s var(--ease-out);
}
.site-header.is-compact .header-inner { height: var(--header-h-compact); }

.site-logo { display: flex; align-items: center; flex: 1 1 auto; min-width: 0; }
.site-logo img { max-height: 48px; width: auto; transition: max-height 0.25s var(--ease-out); }
.site-header.is-compact .site-logo img { max-height: 36px; }
.site-logo-text {
	font-family: var(--font-display);
	font-size: 1.3rem;
	font-weight: 600;
	color: var(--primary);
	display: block;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	max-width: 100%;
}

.primary-nav { flex: 1 1 auto; }
.primary-menu { display: flex; align-items: center; gap: clamp(1.5rem, 2.5vw, 2.5rem); }
.primary-menu li { position: relative; }
.primary-menu a {
	display: inline-block;
	padding: 0.5rem 0;
	font-weight: 500;
	font-size: 0.98rem;
	color: var(--text);
	white-space: nowrap;
	transition: color 0.2s var(--ease-out);
}
.primary-menu a::after {
	content: "";
	display: block;
	height: 2px;
	width: 0;
	background: var(--accent);
	transition: width 0.22s var(--ease-out);
}
.primary-menu a:hover,
.primary-menu a:focus-visible { color: var(--accent-ink); }
.primary-menu a:hover::after,
.primary-menu a:focus-visible::after { width: 100%; }

/* Desktop dropdown for items with children (e.g. "Leistungen").
   Hidden entirely below 900px since .primary-nav itself is display:none there. */
.primary-menu .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 240px;
	background: var(--bg);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: 0 16px 32px -20px rgba(27, 42, 74, 0.35);
	padding: 0.5rem;
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out), visibility 0.2s;
	z-index: 10;
}
.primary-menu li.menu-item-has-children:hover > .sub-menu,
.primary-menu li.menu-item-has-children:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
.primary-menu .sub-menu li { border: 0; }
.primary-menu .sub-menu a { padding: 0.65rem 0.75rem; border-radius: var(--radius); width: 100%; }
.primary-menu .sub-menu a:hover { background: var(--bg-alt); }
.primary-menu .sub-menu a::after { display: none; }

.header-cta {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	flex: 0 0 auto;
	font-weight: 600;
	color: var(--primary);
	white-space: nowrap;
}
.header-cta .icon { color: var(--accent-ink); }

.burger-toggle { display: none; background: none; border: 0; padding: 0.4rem; flex: 0 0 auto; }
.burger-box { width: 28px; height: 20px; display: inline-block; position: relative; }
.burger-inner,
.burger-inner::before,
.burger-inner::after {
	position: absolute;
	left: 0;
	width: 28px;
	height: 2px;
	background: var(--primary);
	border-radius: 1px;
	transition: transform 0.25s var(--ease-out), top 0.25s var(--ease-out), opacity 0.25s var(--ease-out);
}
.burger-inner { top: 9px; }
.burger-inner::before { content: ""; top: -8px; }
.burger-inner::after { content: ""; top: 8px; }

.burger-toggle[aria-expanded="true"] .burger-inner { background: transparent; }
.burger-toggle[aria-expanded="true"] .burger-inner::before { top: 0; transform: rotate(45deg); }
.burger-toggle[aria-expanded="true"] .burger-inner::after { top: 0; transform: rotate(-45deg); }

/* =========================================================
   Mobile drawer — lives at body level, never inside <header>,
   so a sticky header can never intercept its clicks or clip it.
   ========================================================= */
.drawer-overlay {
	position: fixed;
	inset: 0;
	background: rgba(27, 42, 74, 0.45);
	z-index: 190;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s var(--ease-out);
}
.drawer-overlay.is-open { opacity: 1; visibility: visible; }

.mobile-drawer {
	position: fixed;
	top: 0;
	right: 0;
	height: 100%;
	width: min(85vw, 360px);
	background: var(--bg);
	z-index: 200;
	transform: translateX(100%);
	transition: transform 0.3s var(--ease-out);
	display: flex;
	flex-direction: column;
	padding: 1.5rem;
	box-shadow: -24px 0 48px -24px rgba(27, 42, 74, 0.3);
}
.mobile-drawer.is-open { transform: translateX(0); }

.drawer-close { align-self: flex-end; background: none; border: 0; padding: 0.5rem; color: var(--primary); }
.drawer-nav { margin-top: 1rem; }
.drawer-menu li { border-bottom: 1px solid var(--line); }
.drawer-menu a { display: block; padding: 1.1rem 0.25rem; font-family: var(--font-display); font-size: 1.3rem; color: var(--primary); }
.drawer-contact { margin-top: auto; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.drawer-contact a { display: flex; align-items: center; gap: 0.6rem; font-weight: 600; color: var(--primary); }
.drawer-contact .icon { color: var(--accent-ink); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
	position: relative;
	min-height: 86vh;
	display: flex;
	align-items: flex-end;
	overflow: hidden;
	background: var(--primary);
}
.hero-media { position: absolute; inset: 0; }
.hero-img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(27, 42, 74, 0.1) 0%, rgba(20, 28, 46, 0.78) 100%);
}
.hero-content {
	position: relative;
	z-index: 2;
	max-width: 1280px;
	width: 100%;
	margin: 0 auto;
	padding: 0 clamp(1.25rem, 4vw, 3rem) var(--space-xl);
	color: var(--bg);
}
.hero-title { color: var(--bg); max-width: 16ch; margin-bottom: 1.25rem; }
.hero-subtitle { display: block; max-width: 48ch; font-size: clamp(1.05rem, 1rem + 0.3vw, 1.25rem); color: rgba(246, 244, 239, 0.88); margin-bottom: 2rem; }

/* =========================================================
   Generic editorial sections
   ========================================================= */
.section { padding: var(--space-xl) 0; max-width: 1280px; margin: 0 auto; padding-left: clamp(1.25rem, 4vw, 3rem); padding-right: clamp(1.25rem, 4vw, 3rem); }
.section--about { padding-top: var(--space-2xl); }
.section-grid {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	gap: clamp(1.5rem, 3vw, 3rem);
	align-items: start;
}
.section-main { grid-column: 1 / span 7; }
.section-aside { grid-column: 9 / span 4; }
.section--left .section-main { text-align: left; }
.section-grid--mirrored { grid-template-columns: repeat(12, 1fr); }
.section-grid--mirrored .section-aside { grid-column: 1 / span 4; }
.section-grid--mirrored .section-main--right { grid-column: 6 / span 7; text-align: right; }
.section-main--right .text-link,
.section-main--right .btn { margin-left: auto; }
.section-main--right .eyebrow,
.section-main--right .section-heading,
.section-main--right .section-text { margin-left: auto; }

.section-head { margin-bottom: var(--space-md); max-width: 46ch; }
.section--right .section-head { margin-left: auto; text-align: right; }
.section-head--narrow { max-width: 38ch; }

/* ---------- Leistungen: editorial rows, not a card grid ---------- */
.service-rows { display: flex; flex-direction: column; gap: var(--space-lg); }
.service-row {
	display: grid;
	grid-template-columns: 5fr 7fr;
	gap: clamp(1.5rem, 3vw, 3rem);
	align-items: center;
}
.service-row--reverse { grid-template-columns: 7fr 5fr; }
.service-row--reverse .service-row-media { order: 2; }
.service-row--reverse .service-row-text { order: 1; }
.service-row-media { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); }
.service-row-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease-out); }
.service-row:hover .service-row-media img { transform: scale(1.04); }
.service-row-title { margin-bottom: 0.9rem; }
.service-row-excerpt p { color: var(--text-soft); margin-bottom: 1rem; max-width: 52ch; }

/* ---------- Slider ---------- */
.slider { position: relative; }
.slider-track {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	gap: 1.25rem;
	padding-bottom: 0.5rem;
	scrollbar-width: none;
}
.slider-track::-webkit-scrollbar { display: none; }
.slide {
	scroll-snap-align: start;
	flex: 0 0 min(560px, 86vw);
	margin: 0;
	position: relative;
	border-radius: var(--radius);
	overflow: hidden;
}
.slide img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.slide-caption {
	position: absolute;
	left: 0;
	bottom: 0;
	right: 0;
	padding: 1.5rem;
	background: linear-gradient(180deg, transparent, rgba(20, 28, 46, 0.82));
	color: var(--bg);
}
.slide-caption h3 { color: var(--bg); font-size: 1.25rem; margin-bottom: 0.35rem; }
.slide-caption p { font-size: 0.92rem; color: rgba(246, 244, 239, 0.85); max-width: 42ch; }
.slider-controls { display: flex; gap: 0.75rem; margin-top: 1.5rem; }
.slider-btn {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid var(--line);
	background: var(--bg);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.2s var(--ease-out), border-color 0.2s var(--ease-out), transform 0.18s var(--ease-out);
}
.slider-btn:hover { background: var(--primary); border-color: var(--primary); color: var(--bg); transform: translateY(-2px); }
.slider-btn:active { transform: translateY(0) scale(0.95); }

/* ---------- Stat band: the one deliberate structural break ---------- */
.stat-band { padding: var(--space-md) clamp(1.25rem, 4vw, 3rem); }
.stat-band-panel {
	max-width: 1280px;
	margin: 0 auto;
	background: var(--primary);
	border-radius: var(--radius-feature);
	padding: clamp(2.5rem, 4vw, 4rem) clamp(1.75rem, 4vw, 3.5rem);
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(2rem, 4vw, 3rem);
}
.stat-item { text-align: left; }
.stat-number { font-family: var(--font-display); font-size: clamp(2.6rem, 2rem + 3vw, 4rem); color: var(--bg); line-height: 1; margin-bottom: 0.5rem; }
.stat-text { font-family: var(--font-display); font-size: clamp(1.4rem, 1.2rem + 1vw, 2rem); color: var(--bg); margin-bottom: 0.5rem; }
.stat-label { font-size: 0.92rem; color: rgba(246, 244, 239, 0.75); }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--line); margin-top: var(--space-xl); }
.footer-grid {
	max-width: 1280px;
	margin: 0 auto;
	padding: var(--space-lg) clamp(1.25rem, 4vw, 3rem) var(--space-md);
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	gap: clamp(1.5rem, 3vw, 3rem);
}
.footer-col--brand { grid-column: 1 / span 4; }
.footer-col--contact { grid-column: 5 / span 4; }
.footer-col--menu { grid-column: 9 / span 4; }
.footer-brand { font-family: var(--font-display); font-size: 1.4rem; color: var(--primary); margin-bottom: 0.5rem; }
.footer-tagline { color: var(--text-soft); }
.footer-heading { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-soft); margin-bottom: 1.1rem; }
.footer-line { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.8rem; font-size: 0.95rem; }
.footer-line a { display: flex; align-items: center; gap: 0.6rem; transition: color 0.2s var(--ease-out); }
.footer-line a:hover { color: var(--accent-ink); }
.footer-line .icon { color: var(--accent-ink); }
.footer-menu { columns: 2; column-gap: 1.5rem; }
.footer-menu li { margin-bottom: 0.75rem; break-inside: avoid; }
.footer-menu a { font-size: 0.95rem; transition: color 0.2s var(--ease-out); }
.footer-menu a:hover { color: var(--accent-ink); }

.drawer-menu .sub-menu { padding-left: 1rem; }
.drawer-menu .sub-menu a { font-size: 1.05rem; padding: 0.85rem 0.25rem; }
.footer-bottom {
	max-width: 1280px;
	margin: 0 auto;
	padding: 1.5rem clamp(1.25rem, 4vw, 3rem) 2rem;
	border-top: 1px solid var(--line);
	font-size: 0.85rem;
	color: var(--text-soft);
}

/* =========================================================
   Scroll reveals — transform only, NEVER an opacity:0 start.
   Final state is the default so headless renders never see a
   blank page; JS only adds the starting transform for visitors.
   ========================================================= */
.reveal-up {
	transform: translateY(0);
	transition: transform 0.6s var(--ease-out);
}
.js-reveal-ready .reveal-up:not(.is-revealed) { transform: translateY(28px); }
.js-reveal-ready .reveal-up.is-revealed { transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
	* { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
	.js-reveal-ready .reveal-up:not(.is-revealed) { transform: none; }
	html { scroll-behavior: auto; }
}

/* =========================================================
   Contact Form 7 — rewritten to fit the editorial system
   ========================================================= */
.wpcf7-form p { margin-bottom: 1.1rem; }
.wpcf7-form label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 0.4rem; color: var(--primary); }
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
	width: 100%;
	padding: 0.85rem 1rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--bg);
	font-family: var(--font-body);
	font-size: 1rem;
	color: var(--text);
	transition: border-color 0.2s var(--ease-out);
}
.wpcf7-form input:focus-visible,
.wpcf7-form textarea:focus-visible {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 3px rgba(138, 58, 30, 0.15);
}
.wpcf7-form input[type="submit"] {
	background: var(--primary);
	color: var(--bg);
	border: 0;
	padding: 0.95rem 2rem;
	border-radius: var(--radius);
	font-weight: 600;
	transition: background-color 0.2s var(--ease-out), transform 0.18s var(--ease-out);
}
.wpcf7-form input[type="submit"]:hover { background: var(--accent); transform: translateY(-2px); }
.wpcf7-form input[type="submit"]:active { transform: translateY(0) scale(0.98); }
.wpcf7-spinner { margin-left: 0.75rem; }
.wpcf7-not-valid-tip { color: #a3321f; font-size: 0.85rem; margin-top: 0.3rem; }
.wpcf7-response-output { border-radius: var(--radius); padding: 0.9rem 1.1rem; margin-top: 1rem; border: 1px solid var(--line); }

/* General focus visibility (accessibility) */
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

/* =========================================================
   Breakpoints
   ========================================================= */
@media (max-width: 900px) {
	.content-main { grid-column: 1 / -1; }
	.content-sidebar { grid-column: 1 / -1; }
	.fact-card { position: static; }

	.section-main,
	.section-aside,
	.section-grid--mirrored .section-aside,
	.section-grid--mirrored .section-main--right {
		grid-column: 1 / -1;
	}
	.section-main--right,
	.section-main--right .eyebrow,
	.section-main--right .section-heading,
	.section-main--right .section-text,
	.section--right .section-head { text-align: left; margin-left: 0; }
	.section-main--right .text-link,
	.section-main--right .btn { margin-left: 0; }
	.section-grid--mirrored { display: flex; flex-direction: column-reverse; gap: var(--space-md); }

	.service-row,
	.service-row--reverse { grid-template-columns: 1fr; }
	.service-row--reverse .service-row-media,
	.service-row--reverse .service-row-text { order: initial; }

	.stat-band-panel { grid-template-columns: 1fr; gap: 1.75rem; }

	.footer-col--brand,
	.footer-col--contact,
	.footer-col--menu { grid-column: 1 / -1; }

	/* Burger menu takes over navigation below 900px */
	.primary-nav { display: none; }
	.header-cta { display: none; }
	.burger-toggle { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
	.site-logo-text { font-size: 1.05rem; }

	/* Re-assert the collapsed burger state inside the mobile query so a
	   desktop :hover/:focus-within rule with a transform can never win on
	   specificity once we are in mobile layout. */
	.burger-toggle:not([aria-expanded="true"]) .burger-inner { transform: none; top: 9px; background: var(--primary); }
	.burger-toggle:not([aria-expanded="true"]) .burger-inner::before { top: -8px; transform: none; }
	.burger-toggle:not([aria-expanded="true"]) .burger-inner::after { top: 8px; transform: none; }
}

@media (max-width: 600px) {
	:root { --space-xl: 5rem; --space-2xl: 6rem; --space-lg: 4rem; --space-md: 3rem; }

	body { font-size: 1rem; }
	.hero { min-height: 92vh; align-items: flex-end; }
	.hero-content { padding-bottom: var(--space-lg); }
	.hero-title { max-width: 14ch; }

	.page-content-grid,
	.section-grid { gap: 1.5rem; }

	.slide { flex: 0 0 90vw; }

	.footer-grid { padding-top: var(--space-md); }
}

/* Touch target comfort on small screens */
@media (pointer: coarse) {
	.btn, .text-link, .slider-btn, .burger-toggle, .drawer-close, .primary-menu a, .drawer-menu a {
		min-height: 44px;
	}
	.text-link, .primary-menu a { display: inline-flex; align-items: center; }
}
