/* Urban Floors — phone and tablet layout. Loaded last; re-arranges the concept's desktop-only layouts.
   ufs-* = generated style classes (ufd-inline.css), ufx-* = component roots, ufm-* = "stack me" markers. */

/* ---------- all widths: small fixes ---------- */
.ufd .elementor .ufimg.w-auto, .ufd .elementor .ufimg.w-auto img { width: auto !important; max-width: 100%; }
.ufd .elementor .ufimg.w-auto img { object-fit: contain; }
.ufd .elementor .ufbtn.grid, .ufd .elementor .ufbtn.text-left, .ufd .elementor .ufbtn.grid .elementor-button, .ufd .elementor .ufbtn.text-left .elementor-button { text-align: left; }
.ufd .elementor .ufbtn:not(.rounded-full):not(.ufbtn-b) > .elementor-button { text-align: left; }
.ufd .elementor .ufposts .hfe-post-content { padding-top: 18px !important; }
.ufd .elementor .ufq-choice .mf-radio { margin-top: 12px; }
.ufd .elementor .ufq-choice .mf-radio-option { padding: 0 !important; }
.ufd .elementor .ufq-choice .mf-radio-option, .ufd .elementor .ufq-choice .mf-radio-option label { width: 100% !important; }
/* stray line breaks, empty paragraphs and empty wrapper links were taking up cells in photo grids */
.ufd .elementor .ufd-figs > br, .ufd .elementor .ufd-figs > p:empty, .ufd .elementor .ufd-figs > .ufd-figure:not(:has(*)) { display: none; }
/* captured parallax offset left a gap under this picture */
.ufd .elementor .ufs-0f455890 img, .ufd .elementor .ufs-42146f85 img { top: 0 !important; height: 100% !important; transform: none !important; }

/* ================= tablets and phones ================= */
@media (max-width: 1023px) {
	/* side gutters */
	.ufd .elementor .ufs-94af7d6b, .ufd .elementor .ufs-34a0de57, .ufd .elementor .ufs-25b95a7f, .ufd .elementor .ufs-7821f7fb,
	.ufd .elementor .ufs-ba04d727, .ufd .elementor .ufs-8f3e7a99, .ufd .elementor .ufs-856d57a1, .ufd .elementor .ufs-3c52fc77,
	.ufd .elementor .ufs-fdf53550 { padding-left: 40px !important; padding-right: 40px !important; }
	.ufd .elementor .ufs-5c8a47ba { padding: 56px 40px !important; }
	.ufd .elementor .ufs-9814ffea { padding: 32px !important; }
	.ufd .elementor .ufs-34a0de57 { grid-template-columns: 1fr !important; }
	.ufd .elementor .ufs-7821f7fb { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }

	/* project filter buttons wrap instead of squashing */
	.ufd .elementor .ufs-6753b655 { flex-wrap: wrap !important; }
	.ufd .elementor .ufs-6753b655 > * { flex: 0 0 auto !important; white-space: nowrap; }

	/* finish strips: vertical accordion with readable labels */
	.ufd .elementor .ufs-e8d16537 { flex-direction: column !important; height: auto !important; }
	.ufd .elementor .ufs-e8d16537 > [class*="ufkt-strips-"] {
		flex: 0 0 auto !important; width: 100% !important; height: 60px; min-height: 0; margin: 0 !important;
		border-right: 0 !important; border-bottom: 1px solid rgba(255,255,255,.14); transition: height .5s cubic-bezier(.16,1,.3,1) !important;
	}
	.ufd .elementor .ufs-e8d16537 > [class*="ufkt-strips-"][style*="42%"],
	.ufd .elementor .ufs-e8d16537 > .ufs-485d603b:not([style]) { height: 330px; }
	.ufd .elementor .ufs-e8d16537 .ufs-69a7703e, .ufd .elementor .ufs-e8d16537 .ufs-2e16cb94 { justify-content: flex-start !important; padding: 0 24px !important; }
	.ufd .elementor .ufs-4ccb5a5f { transform: none !important; flex-direction: row !important; gap: 14px !important; }
	.ufd .elementor .ufs-4ccb5a5f span { writing-mode: horizontal-tb !important; transform: none !important; }
	.ufd .elementor .ufs-e8d16537 .ufs-d88eed29, .ufd .elementor .ufs-e8d16537 .ufs-1f5e2366 { padding: 80px 24px 24px !important; background: linear-gradient(to top, rgba(20,14,10,.88) 35%, transparent); }
	.ufd .elementor .ufs-e8d16537 .ufs-1a72bed6 { color: rgba(255,255,255,.86) !important; }
}

/* ================= phones ================= */
@media (max-width: 767px) {
	/* stacked blocks keep their own height (was stretching and leaving blank gaps) */
	.ufd .elementor .ufm-full { flex: 0 0 auto !important; }
	.ufd .elementor .ufx-strips > .ufm-col { height: auto !important; }

	/* vertical rhythm */
	.ufd .elementor .py-20 { padding-top: 56px !important; padding-bottom: 56px !important; }
	.ufd .elementor .py-16 { padding-top: 48px !important; padding-bottom: 48px !important; }

	/* gutters: 24px everywhere, as on the inner pages */
	.ufd .elementor .ufs-94af7d6b { padding: 56px 24px 32px !important; gap: 24px !important; }
	.ufd .elementor .ufs-34a0de57 { padding: 0 24px 56px !important; gap: 20px !important; }
	.ufd .elementor .ufs-25b95a7f { padding: 56px 24px 32px !important; gap: 20px !important; align-items: flex-start !important; }
	.ufd .elementor .ufs-7821f7fb { padding: 0 24px 40px !important; grid-template-columns: 1fr !important; }
	.ufd .elementor .ufs-ba04d727 { padding: 28px 24px !important; }
	.ufd .elementor .ufs-8f3e7a99 { padding: 56px 24px !important; gap: 36px !important; }
	.ufd .elementor .ufs-856d57a1 { padding: 0 24px !important; }
	.ufd .elementor .ufs-5c8a47ba { padding: 48px 24px 56px !important; }
	.ufd .elementor .ufs-3c52fc77 { padding: 56px 24px 28px !important; align-items: flex-start !important; gap: 14px !important; }
	.ufd .elementor .ufs-cdd9eab7 { display: none !important; } /* "Hover any strip…" makes no sense on touch */
	.ufd .elementor .ufs-fdf53550 { padding: 24px 24px 56px !important; gap: 20px !important; align-items: flex-start !important; }

	/* --- hero --- */
	.ufd .elementor .ufx-hero { height: calc(100vh - 68px) !important; height: calc(100svh - 68px) !important; min-height: 600px !important; max-height: 800px; }
	.ufd .elementor .ufx-hero .hero-content { padding: 92px 24px 84px !important; }
	.ufd .elementor .ufs-7dd268a6 { font-size: clamp(4.2rem, 21vw, 5.6rem) !important; }
	.ufd .elementor .ufs-7b1d31ae { font-size: 14px !important; color: rgba(42,32,24,.82) !important; margin-top: 20px !important; }
	.ufd .elementor .hero-features { gap: 10px 18px !important; }
	.ufd .elementor .ufs-477a59ba > [class*="ufkt-hero-"] { min-width: 0 !important; padding: 17px 2px !important; justify-content: center !important; text-align: center; }
	.ufd .elementor .ufs-477a59ba > * > .e-con:first-child { width: 100%; }
	.ufd .elementor .ufs-477a59ba > * > .e-con:first-child > :first-child { font-size: 12px !important; letter-spacing: .03em !important; color: rgba(42,32,24,.72) !important; white-space: nowrap; }
	.ufd .elementor .ufs-477a59ba > * > .e-con:first-child > :nth-child(2),
	.ufd .elementor .ufs-477a59ba > * > .e-con:nth-child(2) { display: none !important; }

	/* --- solutions tabs --- */
	.ufd .elementor .ufs-9b3fef49 > .ufbtn { min-width: 0 !important; padding: 14px 2px !important; gap: 0 !important; }
	.ufd .elementor .ufs-9b3fef49 > .ufbtn .elementor-button-text > span { font-size: 12.5px !important; letter-spacing: .02em !important; white-space: nowrap; }
	.ufd .elementor .ufs-9b3fef49 > .ufbtn .elementor-button-text > span:not(:first-child):empty { display: none !important; }
	.ufd .elementor .ufs-a234cdc0 { display: none !important; }
	.ufd .elementor .ufx-solutions .ufs-96fc6e57 { width: auto !important; height: 260px !important; margin: 20px 24px 0 !important; border-radius: 16px !important; }
	.ufd .elementor .ufs-9814ffea { padding: 28px 24px 48px !important; border-left: 0 !important; }

	/* --- projects --- */
	.ufd .elementor .ufs-fbdbb0af { margin-bottom: 28px !important; }
	.ufd .elementor .ufs-b07cad76 { padding-top: 0 !important; }
	.ufd .elementor .ufs-a92d6983 img { height: 240px !important; }

	/* --- about / why --- */
	.ufd .elementor .ufs-c463f421 { min-height: 0 !important; }
	.ufd .elementor .ufs-8910dc9a { min-height: 0 !important; height: 360px !important; }
	.ufd .elementor .ufs-8910dc9a > .ufimg img { top: 0 !important; height: 100% !important; transform: none !important; }
	.ufd .elementor .ufs-a9106db5 { right: 0 !important; bottom: 24px !important; padding: 16px 20px !important; min-width: 0 !important; }
	.ufd .elementor .ufs-f1da4b7a > * { min-width: 0; flex: 1 1 0 !important; padding-left: 10px !important; padding-right: 0 !important; }
	.ufd .elementor .ufs-5058a398 { flex-wrap: wrap !important; gap: 14px 20px !important; }
	.ufd .elementor .ufs-5058a398 > * { white-space: nowrap; }
	.ufd .elementor .ufs-7a1cc4ac, .ufd .elementor .ufs-e5c3e831 { display: none !important; } /* rotating badges, clipped at this size */
	.ufd .elementor .ufs-1061a9dc { height: 400px !important; }
	.ufd .elementor .ufs-09fcb837 > * { flex: 1 1 0 !important; min-width: 0; }

	.ufd .elementor .ufs-243cd218 { background: linear-gradient(to top, rgba(20,14,10,.72) 10%, transparent 70%) !important; }

	/* --- process --- */
	.ufd .elementor .ufs-7821f7fb > .e-con { padding: 24px !important; gap: 12px !important; }
	.ufd .elementor .ufs-f13a668c { flex-wrap: wrap !important; flex-shrink: 1 !important; }

	/* --- comparison video: was a fixed 420px-high 16:9 box, wider than the screen --- */
	.ufd .elementor .aspect-video { min-height: 0 !important; width: 100% !important; }
	.ufd .elementor [class*="aspect-["] { max-width: 100%; }

	/* --- client stories: names become a swipe row above/below the quote --- */
	.ufd .elementor .ufx-quotes .grid > .max-h-\[640px\] { display: flex !important; max-height: none !important; overflow-x: auto !important; overflow-y: hidden !important; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
	.ufd .elementor .ufx-quotes .grid > .max-h-\[640px\] > .ufbtn { flex: 0 0 auto !important; width: auto !important; min-width: 168px; gap: 18px; padding: 16px 18px !important; border-bottom: 0 !important; border-right: 1px solid #d8ccbf; scroll-snap-align: start; white-space: nowrap; }
	.ufd .elementor .ufx-quotes .grid > .e-con:first-child { min-height: 0 !important; padding: 28px 24px !important; gap: 28px; }

	/* --- blog rail on the home page: swipe row --- */
	.ufd .elementor .ufposts-rail .hfe-posts-grid { display: flex !important; gap: 16px !important; overflow-x: auto; scroll-snap-type: x mandatory; margin-right: -24px; padding-right: 24px; -webkit-overflow-scrolling: touch; }
	.ufd .elementor .ufposts-rail .hfe-post-card { flex: 0 0 78% !important; width: 78% !important; scroll-snap-align: start; }

	/* --- cards with a fixed desktop height --- */
	.ufd .elementor [class*="min-h-["]:not(.aspect-video):not(:has(.ufimg, .ufpm)):has(> .elementor-widget-heading, > .elementor-widget-text-editor) { min-height: 0 !important; }

	/* --- gallery: two columns --- */
	.ufd .elementor .x-uf-lightbox.columns-1 { columns: 2 !important; column-gap: 8px !important; }
	.ufd .elementor .x-uf-lightbox.columns-1 > .mb-4 { margin-bottom: 8px !important; }
	.ufd .elementor .x-uf-lightbox.columns-1 > .mb-4 > .elementor-widget-heading { padding: 36px 10px 10px !important; }

	/* buttons that stretch to full width keep their label centred; comfortable tap size for form buttons */
	.ufd .elementor .ufbtn.rounded-full { justify-content: center; text-align: center; }
	.ufd .elementor .flex-col > .ufbtn.rounded-full { align-self: flex-start; }
	/* iOS zooms the page when a focused field is under 16px */
	.ufd .elementor .ufmetform .mf-input:not(.mf-radio-input) { font-size: 16px !important; }
	/* long words never push the page sideways */
	.ufd .elementor :is(h1, h2, h3, p, .elementor-heading-title) { overflow-wrap: break-word; }
}

/* ================= very narrow phones ================= */
@media (max-width: 374px) {
	.ufd .elementor .ufs-9b3fef49 > .ufbtn .elementor-button-text > span, .ufd .elementor .ufs-477a59ba > * > .e-con:first-child > :first-child { font-size: 11px !important; letter-spacing: 0 !important; }
	.ufd .elementor .ufs-f1da4b7a > * { padding-left: 6px !important; }
	.ufd .elementor .ufs-f1da4b7a .elementor-heading-title, .ufd .elementor .ufs-f1da4b7a .elementor-widget { overflow-wrap: normal; letter-spacing: -.02em; }
}
