/* home-storelocator.css — task_0027 search-first homepage locator
 * Pure CSS, tokens-only.
 */

.home-storelocator {
	--storelocator-control-h: 60px;
	padding: 3.5rem 1rem;
	background:
		linear-gradient(180deg, var(--c-white) 0%, rgba(244, 111, 12, .04) 100%),
		var(--c-white);
	border-top: 1px solid rgba(35, 31, 32, .06);
}

.home-storelocator__container {
	max-width: 760px;
	margin: 0 auto;
	text-align: center;
}

.home-storelocator__eyebrow {
	margin: 0 auto .5rem;
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--c-orange-brand);
}

.home-storelocator__heading {
	margin: 0 auto .75rem;
	font-size: clamp(1.75rem, 4vw, 2.25rem);
	font-weight: 900;
	letter-spacing: -.015em;
	line-height: 1.1;
	color: var(--c-dark);
}

.home-storelocator__heading-accent {
	color: var(--c-orange-brand);
}

.home-storelocator__intro {
	margin: 0 auto 2rem;
	font-size: 1rem;
	line-height: 1.55;
	color: var(--c-dark);
	opacity: .8;
	max-width: 56ch;
}

.home-storelocator__form {
	display: flex;
	flex-direction: column;
	gap: .75rem;
	margin: 0 auto;
	max-width: 560px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0,0,0,0);
	white-space: nowrap; border: 0;
}

.home-storelocator__field {
	position: relative;
	display: flex;
	align-items: center;
	box-sizing: border-box;
	height: var(--storelocator-control-h, 60px);
	background: var(--c-white);
	border: 2px solid rgba(35, 31, 32, .15);
	border-radius: 10px;
	transition: border-color .2s ease, box-shadow .2s ease;
}

.home-storelocator__field:focus-within {
	border-color: var(--c-orange-brand);
	box-shadow: 0 0 0 3px rgba(244, 111, 12, .25);
}

.home-storelocator__field-icon {
	flex-shrink: 0;
	margin-left: 1rem;
	color: var(--c-orange-brand);
	stroke: currentColor;
	fill: none;
}

.home-storelocator__input {
	flex: 1 1 auto;
	min-width: 0;
	padding: .875rem .75rem;
	border: 0;
	background: transparent;
	font-family: inherit;
	font-size: 1rem;
	color: var(--c-dark);
	outline: none;
	width: 100%;
}

.home-storelocator__input::placeholder {
	color: var(--c-dark);
	opacity: .55;
}

.home-storelocator__input::-webkit-search-cancel-button {
	cursor: pointer;
}

.home-storelocator__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	box-sizing: border-box;
	padding: 1rem 1.5rem;
	height: var(--storelocator-control-h, 60px);
	border: 0;
	border-radius: 10px;
	background: var(--c-orange-brand);
	color: var(--c-white);
	font-family: inherit;
	font-size: 1rem;
	font-weight: 800;
	letter-spacing: .03em;
	text-transform: uppercase;
	cursor: pointer;
	line-height: 1;
	box-shadow: 0 6px 18px rgba(244, 111, 12, .3);
	transition: background .15s ease, color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.home-storelocator__submit:hover,
.home-storelocator__submit:focus-visible {
	background: var(--c-dark);
	color: var(--c-orange-brand);
	transform: translateY(-1px);
	box-shadow: 0 10px 24px rgba(0, 0, 0, .35);
	outline: none;
}

.home-storelocator__submit:focus-visible {
	box-shadow: 0 10px 24px rgba(0, 0, 0, .35), 0 0 0 3px rgba(244, 111, 12, .55);
}

.home-storelocator__submit-icon {
	flex-shrink: 0;
	stroke: currentColor;
	fill: none;
}

.home-storelocator__form.is-loading .home-storelocator__submit {
	opacity: .7;
	cursor: progress;
}

/* ── Result block ─────────────────────────────────────────── */
.home-storelocator__result {
	margin-top: 1.75rem;
}

.home-storelocator__result.has-result {
	margin-top: 2rem;
}

.storelocator-result {
	display: flex;
	flex-direction: column;
	gap: .65rem;
	margin: 0 auto;
	padding: 1.75rem;
	max-width: 560px;
	background: var(--c-white);
	border: 1px solid rgba(35, 31, 32, .1);
	border-radius: 14px;
	box-shadow: 0 8px 24px rgba(35, 31, 32, .06);
	text-align: left;
}

.storelocator-result__eyebrow {
	margin: 0;
	font-size: .7rem;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--c-orange-brand);
}

.storelocator-result__name {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 900;
	color: var(--c-dark);
	line-height: 1.2;
	letter-spacing: -.005em;
}

.storelocator-result__address,
.storelocator-result__locality,
.storelocator-result__message {
	margin: 0;
	font-size: .9375rem;
	line-height: 1.5;
	color: var(--c-dark);
	opacity: .85;
}

.storelocator-result__phone, a.storelocator-result__phone:link, a.storelocator-result__phone:visited {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	margin: .25rem 0 0;
	font-size: 1rem;
	font-weight: 800;
	color: var(--c-dark);
	text-decoration: none;
}

.storelocator-result__phone svg {
	color: var(--c-orange-brand);
	stroke: currentColor;
	fill: none;
}

.storelocator-result__phone:hover,
.storelocator-result__phone:focus-visible {
	color: var(--c-orange-brand);
	outline: none;
}

.storelocator-result__cta, a.storelocator-result__cta:link, a.storelocator-result__cta:visited {
	display: inline-flex;
	align-items: center;
	gap: .35rem;
	align-self: flex-start;
	margin-top: .5rem;
	padding: .75rem 1.25rem;
	border-radius: 8px;
	background: var(--c-orange-brand);
	color: var(--c-dark);
	text-decoration: none;
	font-size: .9375rem;
	font-weight: 800;
	letter-spacing: .02em;
	text-transform: uppercase;
	transition: background .15s ease, color .15s ease, transform .15s ease;
}

.storelocator-result__cta:hover,
.storelocator-result__cta:focus-visible {
	background: var(--c-dark);
	color: var(--c-orange-brand);
	transform: translateY(-1px);
	outline: none;
}

.storelocator-result__distance {
	margin: 0;
	padding: .65rem .85rem;
	font-size: .9375rem;
	line-height: 1.4;
	color: var(--c-dark);
	background: rgba(244, 111, 12, .08);
	border-left: 3px solid var(--c-orange-brand);
	border-radius: 6px;
}

.storelocator-result__distance strong {
	font-weight: 800;
	color: var(--c-orange-brand);
}

.storelocator-result__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .75rem 1rem;
	margin-top: .25rem;
}

.storelocator-result--nearby {
	border-left: 4px solid var(--c-orange-brand);
}

.storelocator-result--fallback {
	border-color: rgba(244, 111, 12, .35);
	background: linear-gradient(180deg, rgba(244, 111, 12, .04) 0%, var(--c-white) 100%);
}

.storelocator-result--error {
	border-color: rgba(192, 0, 0, .35);
	background: rgba(255, 245, 245, 1);
}

/* ── Tablet (≥640) ─────────────────────────────────────────── */
@media (min-width: 640px) {
	.home-storelocator { padding: 4rem 1.5rem; }

	.home-storelocator__form {
		flex-direction: row;
		align-items: stretch;
	}

	.home-storelocator__field {
		flex: 1 1 auto;
	}

	.home-storelocator__submit {
		flex: 0 0 auto;
		min-width: 200px;
	}
}

/* ── Wide desktop (≥1200) ──────────────────────────────────── */
@media (min-width: 1200px) {
	.home-storelocator { padding: 5rem 2rem; }
}

@media (prefers-reduced-motion: reduce) {
	.home-storelocator__field,
	.home-storelocator__submit,
	.storelocator-result__cta { transition: none; }
	.home-storelocator__submit:hover,
	.home-storelocator__submit:focus-visible,
	.storelocator-result__cta:hover,
	.storelocator-result__cta:focus-visible { transform: none; }
}
