/*
 * Fresh Laundromat Site Builder — front end layer.
 *
 * Sits on top of the Cleanox kit rather than replacing it. Three jobs:
 * the motion layer, the app dialogs, and the responsive guards that stop
 * full-bleed Elementor sections producing horizontal scroll on phones.
 *
 * Colour comes from the CSS custom properties written by the brand engine,
 * so this file never hard codes a brand colour.
 */

/* ---------------------------------------------------------------
   1. Responsive guards — no sideways scroll on any device
   --------------------------------------------------------------- */

/*
 * Setting overflow-x on BOTH html and body makes each element its own
 * scroll container, which is what produced two vertical scrollbars on
 * every page. Only body gets it, and `clip` is used rather than `hidden`
 * because `hidden` still creates a scroll container. position:sticky in
 * the header keeps working with clip; it would break with hidden.
 */
html {
	max-width: 100%;
}

body {
	max-width: 100%;
	overflow-x: clip;
}

@supports not (overflow: clip) {
	body {
		overflow-x: hidden;
	}
}

.flsb-page .elementor-section {
	max-width: 100vw;
}

/* Negative margins on stretched sections are the usual cause of a
   sideways scrollbar. Clamp them rather than removing the effect. */
.flsb-page .elementor-section.elementor-section-stretched {
	max-width: 100vw;
	left: 0 !important;
}

.flsb-page img,
.flsb-page video,
.flsb-page iframe,
.flsb-page svg {
	max-width: 100%;
	height: auto;
}

.flsb-page table {
	display: block;
	max-width: 100%;
	overflow-x: auto;
}

/* Long unbroken strings — URLs, emails — otherwise widen the layout. */
.flsb-page .elementor-widget-text-editor,
.flsb-page .elementor-widget-heading,
.flsb-page .elementor-icon-list-text {
	overflow-wrap: anywhere;
	word-break: break-word;
}

@media (max-width: 767px) {
	.flsb-page .elementor-column {
		min-width: 0;
	}

	/* Kit hero paddings are tuned for desktop and crush small screens. */
	.flsb-home-hero .elementor-container,
	.flsb-page-hero .elementor-container {
		padding-left: 1rem;
		padding-right: 1rem;
	}
}

/* ---------------------------------------------------------------
   2. Page loader
   --------------------------------------------------------------- */

.flsb-loader {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: grid;
	place-content: center;
	justify-items: center;
	gap: 1.25rem;
	background: var(--flsb-white, #fff);
	transition: opacity 0.45s ease, visibility 0.45s ease;

	/*
	 * The overlay hides itself after 3s whether or not JavaScript ever runs.
	 * Relying on a script to remove a full-viewport white layer means any
	 * script failure blanks the entire page — which is exactly what happened
	 * inside the Elementor editor.
	 */
	animation: flsb-loader-out 0.4s ease 3s forwards;
}

@keyframes flsb-loader-out {
	to {
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
	}
}

/* Never paint over the builder canvas. */
body.elementor-editor-active .flsb-loader,
body.elementor-editor-preview .flsb-loader {
	display: none !important;
}

.flsb-loader.is-done {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.flsb-loader__drum {
	position: relative;
	width: 84px;
	height: 84px;
	border: 6px solid var(--flsb-line, #D3E3F5);
	border-top-color: var(--flsb-accent, #1266C7);
	border-radius: 50%;
	animation: flsb-spin 1.1s cubic-bezier(0.65, 0.05, 0.36, 1) infinite;
}

.flsb-loader__bubble {
	position: absolute;
	width: 12px;
	height: 12px;
	background: var(--flsb-brand, #1266C7);
	border-radius: 50%;
	opacity: 0.85;
	animation: flsb-bob 1.8s ease-in-out infinite;
}

.flsb-loader__bubble:nth-child(1) { top: 18px; left: 22px; animation-delay: 0s; }
.flsb-loader__bubble:nth-child(2) { top: 38px; left: 44px; animation-delay: 0.3s; }
.flsb-loader__bubble:nth-child(3) { top: 50px; left: 20px; animation-delay: 0.6s; }

.flsb-loader__text {
	margin: 0;
	font-family: Manrope, system-ui, sans-serif;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--flsb-dark, #08192C);
}

@keyframes flsb-spin {
	to { transform: rotate(360deg); }
}

@keyframes flsb-bob {
	0%, 100% { transform: translateY(0); opacity: 0.85; }
	50%      { transform: translateY(-9px); opacity: 0.35; }
}

/* ---------------------------------------------------------------
   3. Scroll reveals
   --------------------------------------------------------------- */

.flsb-motion .flsb-reveal {
	opacity: 0;
	transform: translate3d(0, 28px, 0);
	transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
	            transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
	will-change: opacity, transform;
}

.flsb-motion .flsb-reveal.is-visible {
	opacity: 1;
	transform: none;
	will-change: auto;
}

/* Cards inside a stagger section arrive one after another. */
.flsb-motion .flsb-stagger .elementor-widget {
	opacity: 0;
	transform: translate3d(0, 20px, 0);
	transition: opacity 0.55s ease, transform 0.55s ease;
}

.flsb-motion .flsb-stagger.is-visible .elementor-widget {
	opacity: 1;
	transform: none;
}

.flsb-motion .flsb-stagger.is-visible .elementor-widget:nth-child(1) { transition-delay: 0.05s; }
.flsb-motion .flsb-stagger.is-visible .elementor-widget:nth-child(2) { transition-delay: 0.12s; }
.flsb-motion .flsb-stagger.is-visible .elementor-widget:nth-child(3) { transition-delay: 0.19s; }
.flsb-motion .flsb-stagger.is-visible .elementor-widget:nth-child(4) { transition-delay: 0.26s; }
.flsb-motion .flsb-stagger.is-visible .elementor-widget:nth-child(5) { transition-delay: 0.33s; }
.flsb-motion .flsb-stagger.is-visible .elementor-widget:nth-child(6) { transition-delay: 0.40s; }

/* Icon boxes and buttons lift slightly on hover. */
.flsb-page .elementskit-infobox,
.flsb-page .elementor-widget-price-table .elementor-price-table {
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.flsb-page .elementskit-infobox:hover,
.flsb-page .elementor-widget-price-table .elementor-price-table:hover {
	transform: translateY(-6px);
	box-shadow: 0 18px 40px rgba(8, 25, 44, 0.16);
}

.flsb-page .elementor-button {
	transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
}

.flsb-page .elementor-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(8, 25, 44, 0.22);
}

/* Numbered step connectors draw in as the section arrives. */
.flsb-steps .eael-feature-list-item {
	opacity: 0;
	transform: translate3d(-14px, 0, 0);
	transition: opacity 0.5s ease, transform 0.5s ease;
}

.flsb-steps.is-visible .eael-feature-list-item {
	opacity: 1;
	transform: none;
}

.flsb-steps.is-visible .eael-feature-list-item:nth-child(2) { transition-delay: 0.1s; }
.flsb-steps.is-visible .eael-feature-list-item:nth-child(3) { transition-delay: 0.2s; }
.flsb-steps.is-visible .eael-feature-list-item:nth-child(4) { transition-delay: 0.3s; }
.flsb-steps.is-visible .eael-feature-list-item:nth-child(5) { transition-delay: 0.4s; }

/* ---------------------------------------------------------------
   4. Dialogs — app popup and location pin
   --------------------------------------------------------------- */

.flsb-modal[hidden] {
	display: none;
}

.flsb-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: grid;
	place-items: center;
	padding: 1rem;
}

.flsb-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(4, 14, 26, 0.80);
	backdrop-filter: blur(3px);
	animation: flsb-fade 0.3s ease both;
}

.flsb-modal__panel {
	position: relative;
	width: min(680px, 100%);
	max-height: 90vh;
	overflow-y: auto;
	padding: clamp(1.5rem, 5vw, 3rem);
	background: rgba(10, 28, 48, 0.96);
	color: #fff;
	border-radius: 14px;
	box-shadow: 0 30px 70px rgba(4, 14, 26, 0.50);
	animation: flsb-pop 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
	text-align: center;
}

.flsb-modal__panel--pin {
	width: min(440px, 100%);
}

.flsb-modal__close {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	width: 34px;
	height: 34px;
	display: grid;
	place-items: center;
	font-size: 22px;
	line-height: 1;
	color: #fff;
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 6px;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.flsb-modal__close:hover,
.flsb-modal__close:focus-visible {
	background: rgba(255, 255, 255, 0.16);
}

.flsb-modal__title {
	margin: 0 0 1.25rem;
	font-family: Manrope, system-ui, sans-serif;
	font-size: clamp(1.5rem, 4vw, 2.35rem);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.03em;
	color: #fff;
}

.flsb-modal__list {
	margin: 0 auto 1.75rem;
	padding: 0;
	list-style: none;
	text-align: left;
	max-width: 30rem;
	font-size: 1rem;
	line-height: 1.75;
}

.flsb-modal__list li::before {
	content: "·";
	margin-right: 0.6rem;
	color: var(--flsb-brand, #1266C7);
	font-weight: 700;
}

.flsb-modal__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 0.9rem;
	justify-content: center;
}

.flsb-modal__badges--compact {
	margin-top: 1.5rem;
}

.flsb-modal__pin {
	margin: 1.5rem 0 0.35rem;
	font-size: 0.95rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.75);
}

.flsb-modal__pin strong {
	color: var(--flsb-brand, #1266C7);
	letter-spacing: 0.18em;
}

.flsb-modal__link {
	display: inline-block;
	margin-top: 0.5rem;
	color: rgba(255, 255, 255, 0.8);
	text-decoration: underline;
	font-size: 0.9rem;
}

.flsb-modal__link:hover {
	color: #fff;
}

/* Store badges */

.flsb-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.7rem;
	padding: 0.7rem 1.3rem;
	min-width: 190px;
	background: #000;
	border: 1px solid rgba(255, 255, 255, 0.5);
	border-radius: 9px;
	color: #fff;
	text-decoration: none;
	transition: transform 0.22s ease, border-color 0.22s ease;
}

.flsb-badge:hover,
.flsb-badge:focus-visible {
	transform: translateY(-2px);
	border-color: #fff;
	color: #fff;
}

.flsb-badge__icon {
	width: 26px;
	height: 26px;
	flex: 0 0 auto;
}

.flsb-badge__text {
	display: flex;
	flex-direction: column;
	line-height: 1.15;
	text-align: left;
}

.flsb-badge__text small {
	font-size: 0.62rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	opacity: 0.85;
}

.flsb-badge__text strong {
	font-size: 1.05rem;
	font-weight: 600;
}

/* Location pin dialog */

.flsb-pin__label {
	margin: 0 0 0.75rem;
	font-size: 0.8rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.7);
}

.flsb-pin__code {
	display: flex;
	justify-content: center;
	gap: 0.4rem;
	margin: 0 0 1rem;
}

.flsb-pin__code span {
	display: grid;
	place-items: center;
	width: 2.6rem;
	height: 3.2rem;
	font-family: Manrope, system-ui, sans-serif;
	font-size: 1.6rem;
	font-weight: 800;
	color: var(--flsb-dark, #08192C);
	background: #fff;
	border-radius: 8px;
	animation: flsb-pop 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.flsb-pin__code span:nth-child(2) { animation-delay: 0.05s; }
.flsb-pin__code span:nth-child(3) { animation-delay: 0.10s; }
.flsb-pin__code span:nth-child(4) { animation-delay: 0.15s; }
.flsb-pin__code span:nth-child(5) { animation-delay: 0.20s; }
.flsb-pin__code span:nth-child(6) { animation-delay: 0.25s; }

.flsb-pin__help {
	margin: 0 0 1.25rem;
	font-size: 0.92rem;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.82);
}

.flsb-pin__copy {
	padding: 0.6rem 1.5rem;
	font-weight: 600;
	color: var(--flsb-on-brand, #fff);
	background: var(--flsb-brand, #1266C7);
	border: 0;
	border-radius: 6px;
	cursor: pointer;
	transition: transform 0.2s ease, filter 0.2s ease;
}

.flsb-pin__copy:hover {
	transform: translateY(-2px);
	filter: brightness(1.08);
}

/* Trigger buttons used by the shortcodes */

.flsb-trigger {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 1.5rem;
	font-family: Manrope, system-ui, sans-serif;
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--flsb-on-brand, #fff);
	background: var(--flsb-brand, #1266C7);
	border: 0;
	border-radius: 6px;
	cursor: pointer;
	transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.flsb-trigger:hover,
.flsb-trigger:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(8, 25, 44, 0.28);
	color: var(--flsb-on-brand, #fff);
}

.flsb-trigger--pin {
	color: var(--flsb-fresh, #31C5E8);
	background: var(--flsb-dark, #08192C);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	font-size: 0.85rem;
}

.flsb-trigger--pin:hover,
.flsb-trigger--pin:focus-visible {
	color: var(--flsb-fresh, #31C5E8);
}

.flsb-trigger__icon {
	font-size: 1.05em;
}

@keyframes flsb-fade {
	from { opacity: 0; }
	to   { opacity: 1; }
}

@keyframes flsb-pop {
	from { opacity: 0; transform: translateY(18px) scale(0.97); }
	to   { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------
   5. Focus visibility and reduced motion
   --------------------------------------------------------------- */

.flsb-page a:focus-visible,
.flsb-modal :focus-visible,
.flsb-trigger:focus-visible {
	outline: 3px solid var(--flsb-brand, #1266C7);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.flsb-motion .flsb-reveal,
	.flsb-motion .flsb-stagger .elementor-widget,
	.flsb-steps .eael-feature-list-item {
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
	}

	.flsb-loader,
	.flsb-loader__drum,
	.flsb-loader__bubble,
	.flsb-modal__panel,
	.flsb-modal__backdrop,
	.flsb-pin__code span {
		animation: none !important;
	}

	.flsb-page .elementor-button:hover,
	.flsb-page .elementskit-infobox:hover,
	.flsb-trigger:hover {
		transform: none;
	}
}

/* ---------------------------------------------------------------
   6. Instruction blocks (How To Use Machine / Speed Queen App)
   --------------------------------------------------------------- */

.flsb-instructions__bar .elementor-heading-title {
	font-size: clamp(1.1rem, 2.6vw, 1.6rem);
	letter-spacing: -0.01em;
}

.flsb-instructions .flsb-steps-list {
	margin: 0;
	padding-left: 1.4rem;
	font-size: 1rem;
	line-height: 1.85;
}

.flsb-instructions .flsb-steps-list > li {
	margin-bottom: 0.55rem;
	padding-left: 0.25rem;
}

.flsb-instructions .flsb-steps-list > li::marker {
	color: var(--flsb-accent, #1266C7);
	font-weight: 700;
}

/* Sub-points, e.g. where the detergent, softener and bleach each go. */
.flsb-instructions .flsb-steps-list ul {
	margin: 0.5rem 0 0.75rem;
	padding-left: 1.2rem;
	list-style: disc;
}

.flsb-instructions .flsb-steps-list ul li {
	margin-bottom: 0.3rem;
	line-height: 1.7;
}

.flsb-instructions__photo img {
	width: 100%;
	object-fit: cover;
	box-shadow: 0 14px 34px rgba(8, 25, 44, 0.14);
}

@media (max-width: 1024px) {
	/* Photo always sits above the steps on tablet and phone, whichever
	   side it takes on desktop, so the reading order stays correct. */
	.flsb-instructions .elementor-inner-section .elementor-column {
		width: 100% !important;
	}

	.flsb-instructions__photo {
		margin-bottom: 1.5rem;
	}
}

@media (max-width: 767px) {
	.flsb-instructions .flsb-steps-list {
		padding-left: 1.15rem;
		font-size: 0.95rem;
	}
}
