/* ===== Desktop enhancement: timeline becomes a horizontal line ===== */
@media (min-width: 901px) {
	.timeline {
		grid-template-columns: repeat(4, 1fr);
	}

	.timeline__step {
		border-left: none;
		padding-left: 0;
		padding-top: var(--space-md);
	}

	.timeline::before {
		content: '';
		position: absolute;
		top: 0.9rem;
		left: var(--gutter);
		right: var(--gutter);
		height: 1px;
		background: var(--border);
	}

	.timeline__index {
		position: relative;
		z-index: 1;
		display: inline-block;
		background: var(--bg-alt);
		padding-right: 0.9rem;
	}
}

/* ===== Tablet squeeze zone: keep the navbar from crushing together ===== */
@media (min-width: 901px) and (max-width: 1200px) {
	.site-header__menu {
		gap: var(--space-xs);
	}

	.site-header__actions {
		gap: var(--space-2xs);
	}

	.site-header__phone span {
		display: none;
	}
}

/* ===== Burger breakpoint ===== */
@media (max-width: 900px) {
	.site-header__nav {
		display: none;
	}

	.site-header__phone,
	.site-header__cta {
		display: none;
	}

	.burger {
		display: flex;
	}

	/* Desktop :hover/:focus-within rules must be reset here — a higher-specificity
	   desktop rule surviving into mobile is the most common reason a burger fails to open. */
	.site-header__menu a:hover::after,
	.site-header__menu a:focus-visible::after {
		right: 100%;
	}

	.contact-section {
		grid-template-columns: 1fr;
	}

	.contact-section__facts {
		position: static;
	}

	.site-footer__inner {
		grid-template-columns: 1fr 1fr;
	}

	.site-footer__col--brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 680px) {
	.service-row {
		grid-template-columns: 56px 1fr;
		grid-template-areas:
			"num main"
			"facts facts";
		row-gap: var(--space-xs);
	}

	.service-row__number {
		grid-area: num;
		font-size: var(--text-md);
	}

	.service-row__main {
		grid-area: main;
	}

	.service-row__facts {
		grid-area: facts;
		border-left: none;
		border-top: 1px solid var(--border);
		padding-left: 0;
		padding-top: var(--space-xs);
	}

	.site-footer__inner {
		grid-template-columns: 1fr;
	}

	.site-footer__col--brand {
		grid-column: 1;
	}

	.hero__inner {
		margin-left: 0;
	}

	.kaeding-slider__slide {
		width: 86vw;
	}

	.kaeding-slider__slide img {
		height: 70vw;
	}
}

@media (max-width: 480px) {
	.mobile-drawer {
		width: 100vw;
	}
}
