/**
 * Mobile-first optimizations & polish
 */

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	overflow-x: hidden;
}

img,
video,
iframe {
	max-width: 100%;
	height: auto;
}

/* Touch-friendly targets */
a,
button,
.menu-toggle,
.mobile-menu__close,
.hero-carousel__nav,
.back-to-top {
	-webkit-tap-highlight-color: transparent;
}

.menu-toggle,
.mobile-menu__close,
.hero-carousel__nav {
	min-width: 44px;
	min-height: 44px;
}

@media (max-width: 992px) {
	:root {
		--section-spacing: 4rem;
		--header-height: 72px;
	}

	.container {
		width: min(100% - 1.5rem, var(--container-width));
	}

	.section-label {
		margin-bottom: 1.25rem;
		letter-spacing: 0.12em;
	}

	.section-header {
		text-align: left;
		margin-bottom: 2rem;
	}

	.section-header__title {
		font-size: clamp(1.65rem, 6vw, 2.25rem);
		line-height: 1.2;
	}

	.section-header__desc {
		font-size: 0.98rem;
		line-height: 1.65;
	}

	.section-header--split {
		gap: 1.25rem;
	}

	.section-header--split .section-header__cta {
		width: 100%;
	}

	.intro-section__heading {
		font-size: clamp(1.75rem, 7vw, 2.5rem);
	}

	.intro-section__body {
		font-size: 1rem;
	}

	.hero-slide__title {
		font-size: clamp(1.65rem, 7vw, 2.35rem);
	}

	.hero-slide__subtitle {
		font-size: 0.92rem;
		line-height: 1.55;
	}

	.hero-slide__eyebrow {
		margin-bottom: 0.65rem;
	}

	.hero-carousel__nav {
		width: 44px;
		height: 44px;
	}

	.hero-carousel__nav--prev { left: 0.5rem; }
	.hero-carousel__nav--next { right: 0.5rem; }

	.contact-strip {
		padding-block: 3.5rem;
	}

	.contact-strip__heading {
		font-size: clamp(1.35rem, 5vw, 1.85rem);
	}

	.contact-strip__sub {
		font-size: 0.95rem;
		margin-bottom: 1.75rem;
	}

	.contact-strip__details {
		gap: 1.5rem;
		margin-bottom: 1.75rem;
	}

	.services-section__item,
	.values-section__item {
		padding: 1.75rem;
	}

	.project-card__media {
		min-height: 280px !important;
	}

	.showcase-block__content {
		padding: 1.25rem;
	}

	.showcase-block__title {
		font-size: 1.35rem;
	}

	.news-feature__title {
		font-size: 1.15rem;
	}

	.page-hero__title {
		font-size: clamp(1.75rem, 6vw, 2.5rem);
	}

	.interest-modal__panel {
		width: min(100% - 1rem, 520px);
		max-height: calc(100dvh - 1rem);
		overflow-y: auto;
		margin: 0.5rem;
		padding: 1.5rem;
	}

	.project-interest__inner {
		padding: 1.5rem;
	}

	.contact-page__form-header,
	.contact-page__form .interest-form {
		padding-left: 1.5rem;
		padding-right: 1.5rem;
	}

	.contact-page__form-header {
		padding-top: 1.75rem;
	}

	.site-footer__main {
		padding-block: 3rem 2.25rem;
		gap: 2rem;
	}

	.site-footer__col--cta {
		padding: 1.35rem;
	}
}

@media (max-width: 640px) {
	:root {
		--section-spacing: 3.25rem;
	}

	.container {
		width: min(100% - 1.25rem, var(--container-width));
	}

	.btn,
	a.btn,
	button.btn {
		min-height: 46px;
		padding: 0.8rem 1.35rem;
	}

	.header__inner {
		gap: 0.75rem;
	}

	.site-logo__title {
		font-size: 1.05rem;
	}

	.hero-slide__caption {
		padding-bottom: 0.25rem;
	}

	.hero-slide__actions {
		margin-top: 1.25rem;
	}

	.intro-section__stats {
		gap: 1.25rem;
	}

	.intro-section__stat-value {
		font-size: 2rem;
	}

	.all-projects__grid,
	.featured-projects__grid,
	.projects-showcase__blocks {
		gap: 1rem;
	}

	.project-gallery__grid {
		grid-template-columns: 1fr !important;
	}

	.project-gallery__grid .project-gallery__item:first-child {
		grid-column: span 1 !important;
	}

	.navigation.pagination .nav-links {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		gap: 0.35rem;
	}

	.navigation.pagination a,
	.navigation.pagination span {
		min-width: 40px;
		min-height: 40px;
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}

	.legal-meta {
		padding: 1rem 1.15rem;
	}

	.legal-page .entry-content h2 {
		font-size: 1.2rem;
	}

	.site-footer__legal-nav {
		flex-direction: column;
		gap: 0.35rem;
	}

	.site-footer__legal-sep {
		display: none;
	}

	.back-to-top {
		width: 100%;
		justify-content: center;
	}
}

@supports (padding: max(0px)) {
	.site-header {
		padding-left: max(0px, env(safe-area-inset-left));
		padding-right: max(0px, env(safe-area-inset-right));
	}

	.site-footer__bottom,
	.mobile-menu {
		padding-bottom: max(1rem, env(safe-area-inset-bottom));
	}
}
