/* ============================================================
   Homepage responsiveness — extra-small through large screens
   Loads after section sync files. Prevents overflow and overlap.
   ============================================================ */

html:has(body.vault-storage-landing),
body.vault-storage-landing {
	overflow-x: clip;
	max-width: 100%;
}

.vault-home,
.vault-home > section,
.vault-footer--landing {
	max-width: 100%;
	box-sizing: border-box;
}

.vault-home > section .vault-container,
.vault-footer--landing .vault-container {
	max-width: min(1240px, 100%);
}

/* Header: hamburger until 1280px so dense WP menus never overlap Contact Us */
@media (max-width: 1279.98px) {
	.vault-header--desktop {
		display: none !important;
	}

	.vault-header--mobile {
		display: block;
	}
}

@media (min-width: 1280px) {
	.vault-header--desktop {
		display: block;
	}

	.vault-header--mobile {
		display: none;
	}
}

.vault-header--mobile .vault-header__inner--mobile {
	min-width: 0;
	min-height: 64px;
	height: auto;
	padding-block: 0.5rem;
}

.vault-header--mobile .vault-header__logo--center {
	max-width: 100%;
	line-height: 0;
}

.vault-header--mobile .vault-header__logo img {
	width: auto;
	height: auto;
	max-width: min(136px, 100%);
	max-height: 58px;
	object-fit: contain;
}

@media (max-width: 379.98px) {
	.vault-header--mobile .vault-header__logo img {
		max-width: min(100px, 100%);
		max-height: 44px;
	}
}

@media (min-width: 480px) and (max-width: 1279.98px) {
	.vault-header--mobile .vault-header__inner--mobile {
		min-height: 68px;
	}

	.vault-header--mobile .vault-header__logo img {
		max-width: min(148px, 100%);
		max-height: 64px;
	}
}

@media (min-width: 640px) and (max-width: 1279.98px) {
	.vault-header--mobile .vault-header__inner--mobile {
		min-height: 72px;
	}

	.vault-header--mobile .vault-header__logo img {
		max-width: min(160px, 100%);
		max-height: 70px;
	}
}

.vault-header--mobile .vault-header__contact--mobile {
	flex-shrink: 1;
	align-self: center;
	box-sizing: border-box;
	min-height: 36px;
	height: 36px;
	padding: 0 0.625rem;
	font-size: 12px;
	line-height: 1;
	white-space: nowrap;
}

.vault-header--desktop .vault-header__logo,
.vault-header--desktop .vault-header__actions {
	flex-shrink: 0;
}

.vault-header--desktop .vault-header__account-name {
	max-width: 8rem;
}

/* Hero search stays stacked until lg; keep fields inside the viewport */
.vault-home .vault-search--landing,
.vault-home .vault-hero__text,
.vault-home .vault-hero__description {
	max-width: 100%;
}

.vault-home .vault-search-picker__menu {
	max-width: 100%;
}

@media (max-width: 1023.98px) {
	.vault-home .vault-search--landing .vault-search__fields {
		grid-template-columns: 1fr;
	}

	.vault-home .vault-search--landing .vault-search__submit-btn {
		width: 100%;
	}
}

/* Units: single column on phones, 2-up from sm, 4-up from lg */
@media (max-width: 639.98px) {
	.vault-home .vault-units--landing .vault-units__grid--landing {
		grid-template-columns: 1fr;
	}
}

.vault-home .vault-unit-card--landing {
	max-width: 100%;
}

.vault-home .vault-unit-card__title-row h3 {
	min-width: 0;
}

.vault-home .vault-units--landing .vault-units__location {
	max-width: 100%;
	white-space: normal;
}

/* Features / reviews carousels stay inside the section */
.vault-home .vault-features--landing .vault-features__grid--landing,
.vault-home .vault-reviews--landing .vault-reviews__track--landing {
	max-width: 100%;
}

.vault-home .vault-section-intro,
.vault-home .vault-section-intro h2,
.vault-home .vault-section-intro > p {
	max-width: 100%;
	overflow-wrap: break-word;
}

.vault-home .vault-home__experience,
.vault-home .vault-experience__copy,
.vault-home .vault-experience__copy h2,
.vault-home .vault-experience__body,
.vault-home .vault-experience__body p,
.vault-home .vault-experience__actions,
.vault-home .vault-experience__actions .vault-app__pills,
.vault-home .vault-experience__media,
.vault-home .vault-experience__media img {
	max-width: 100%;
}

.vault-home .vault-experience__copy h2,
.vault-home .vault-experience__body p {
	overflow-wrap: break-word;
}

.vault-home .vault-home__uses,
.vault-home .vault-uses__grid,
.vault-home .vault-uses .vault-feature--landing,
.vault-home .vault-uses__card,
.vault-home .vault-uses__card h3,
.vault-home .vault-uses__card p {
	max-width: 100%;
}

.vault-home .vault-uses__card h3,
.vault-home .vault-uses__card p {
	overflow-wrap: break-word;
}

/* App band: copy and store buttons wrap instead of overflowing */
.vault-home .vault-home__certified,
.vault-home .vault-certified__grid,
.vault-home .vault-certified__copy,
.vault-home .vault-certified__copy h2,
.vault-home .vault-certified__body,
.vault-home .vault-certified__body p,
.vault-home .vault-certified__media,
.vault-home .vault-certified__media img {
	max-width: 100%;
}

.vault-home .vault-certified__copy h2,
.vault-home .vault-certified__body p {
	overflow-wrap: break-word;
}

.vault-home .vault-home__moving,
.vault-home .vault-home-moving__grid,
.vault-home .vault-home-moving__copy,
.vault-home .vault-home-moving__copy h2,
.vault-home .vault-home-moving__body,
.vault-home .vault-home-moving__body p,
.vault-home .vault-home-moving__media,
.vault-home .vault-home-moving__media img {
	max-width: 100%;
}

.vault-home .vault-home-moving__copy h2,
.vault-home .vault-home-moving__body p {
	overflow-wrap: break-word;
}

.vault-home .vault-home__faqs,
.vault-home .vault-home-faq__list,
.vault-home .vault-home-faq__item,
.vault-home .vault-home-faq__question,
.vault-home .vault-home-faq__answer,
.vault-home .vault-home-faq__answer p {
	max-width: 100%;
}

.vault-home .vault-home-faq__question,
.vault-home .vault-home-faq__answer p {
	overflow-wrap: break-word;
}

.vault-home .vault-home__app {
	max-width: 100%;
}

.vault-home .vault-app__copy,
.vault-home .vault-app__copy h2,
.vault-home .vault-app__copy > p {
	max-width: 100%;
}

/* Pills + store buttons share one content-sized width band */
.vault-home .vault-app__actions {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	width: fit-content;
	max-width: 100%;
	margin-top: 1.5rem;
	gap: 1.75rem;
	box-sizing: border-box;
}

.vault-home .vault-app__actions .vault-app__pills {
	margin-top: 0;
	width: auto;
	max-width: 100%;
}

.vault-home .vault-app__actions .vault-app__store-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.5rem;
	width: 100%;
	margin-top: 0;
	flex-wrap: unset;
	overflow: visible;
	padding-bottom: 0;
}

.vault-home .vault-app-store-btn {
	flex: unset;
	width: 100%;
	min-width: 0;
	justify-content: center;
	padding-inline: 0.75rem;
}

.vault-home .vault-app-store-btn img,
.vault-home .vault-app-store-btn__icon {
	display: block;
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

@media (max-width: 379.98px) {
	.vault-home .vault-app__actions {
		width: 100%;
	}

	.vault-home .vault-app__actions .vault-app__store-row {
		grid-template-columns: 1fr;
	}
}

@media (min-width: 640px) {
	.vault-home .vault-app__actions .vault-app__store-row {
		gap: 0.5rem;
	}

	.vault-home .vault-app-store-btn {
		padding-inline: 1.25rem;
	}
}

@media (max-width: 639.98px) {
	.vault-home .vault-app__inner--landing {
		grid-template-columns: 1fr;
	}
}

/* CTA stays stacked on small tablets so the heading is readable */
@media (max-width: 899.98px) {
	.vault-home .vault-home__cta .vault-container.vault-cta__inner--landing {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.vault-home .vault-home__cta .vault-cta__actions {
		width: 100%;
		justify-content: center;
	}

	.vault-home .vault-home__cta .vault-cta__btn {
		width: min(100%, 20rem);
	}
}

@media (min-width: 900px) {
	.vault-home .vault-home__cta .vault-container.vault-cta__inner--landing {
		flex-direction: row;
		text-align: left;
	}

	.vault-home .vault-home__cta .vault-cta__actions {
		width: auto;
	}
}

.vault-home .vault-cta__btn {
	max-width: 100%;
}

/* Footer contact lines already wrap; keep columns from overflowing */
.vault-footer--landing .vault-footer__grid > * {
	min-width: 0;
}

@media (max-width: 639.98px) {
	.vault-footer--landing .vault-footer__bottom {
		flex-direction: column;
		text-align: center;
	}
}
