/**
 * BiologicaPress — Responsive layout & mobile optimizations.
 *
 * @package BiologicaPress
 */

/* Prevent horizontal overflow sitewide */
html {
	overflow-x: clip;
}

.ba-site,
.ba-site-main {
	min-width: 0;
	max-width: 100%;
}

img,
video,
svg,
iframe {
	max-width: 100%;
	height: auto;
}

/* Touch-friendly interactive targets */
@media (max-width: 1023px) {
	.ba-submit-btn,
	.ba-menu-toggle,
	.ba-search-submit,
	.ba-home-hero__cta,
	.ba-primary-nav .ba-mobile-menu a {
		min-height: 2.75rem;
	}

	.ba-sidebar {
		display: none;
	}

	.ba-layout--home .ba-home-layout__col--left,
	.ba-layout--home .ba-home-layout__col--right {
		display: none !important;
	}

	.ba-layout--home {
		grid-template-columns: 1fr !important;
	}

	.ba-universal-search .ba-search-form--ribbon .ba-search-form__core {
		border-radius: 4px;
	}

	.ba-universal-search .ba-search-form--ribbon .ba-search-field,
	.ba-universal-search .ba-search-form--ribbon .ba-search-submit {
		min-height: 2.75rem;
	}

	.ba-footer-widgets {
		grid-template-columns: 1fr !important;
	}

	.ba-copyright__inner {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.5rem;
	}
}

@media (max-width: 639px) {
	.ba-container {
		padding-inline: 1rem;
	}

	.ba-main-bar__inner {
		padding-block: 0.65rem;
	}

	.ba-home-hero__title {
		font-size: clamp(1.35rem, 6vw, 1.65rem);
	}

	.ba-home-hero__cta-row {
		flex-direction: column;
	}

	.ba-home-hero__cta {
		width: 100%;
		justify-content: center;
	}

	.ba-featured-slider__nav {
		display: none;
	}

}

@media (min-width: 1024px) {
	.ba-sidebar--home {
		position: sticky;
		top: 1rem;
		align-self: start;
	}
}

@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;
	}
}
