/*
 * FLOOR360 Site Kit: styles for the quarty-compatible Elementor widgets.
 * Written from scratch against the class names observed in the rendered site.
 * Everything is scoped to the widget wrappers Elementor prints (.elementor-widget-quarty-*).
 */

[class*="elementor-widget-quarty-"] {
	--f360-accent: #b15d26;
	--f360-accent-dark: #8f4a1d;
	--f360-dark: #28292c;
	--f360-text: #2b2727;
	--f360-muted: #5f6166;
	--f360-line: rgba(82, 85, 90, 0.3);
	--f360-col-gap: 20px;
}

/* ---- Grid (replaces the Bootstrap grid the old theme loaded) ---- */
[class*="elementor-widget-quarty-"] .row {
	display: flex;
	flex-wrap: wrap;
	margin-inline: calc(var(--f360-col-gap) / -2);
}

[class*="elementor-widget-quarty-"] [class*="col-"] {
	box-sizing: border-box;
	width: 100%;
	padding-inline: calc(var(--f360-col-gap) / 2);
}

@media (min-width: 576px) {
	[class*="elementor-widget-quarty-"] .col-sm-6 { width: 50%; }
}

@media (min-width: 992px) {
	[class*="elementor-widget-quarty-"] .col-lg-3 { width: 25%; }
	[class*="elementor-widget-quarty-"] .col-lg-4 { width: 33.3333%; }
	[class*="elementor-widget-quarty-"] .col-lg-6 { width: 50%; }
	[class*="elementor-widget-quarty-"] .col-lg-8 { width: 66.6667%; }
	[class*="elementor-widget-quarty-"] .col-lg-12 { width: 100%; }
}

[class*="elementor-widget-quarty-"] .col-6 { width: 50%; }

/* ---- Shared. Heading sizes and families come from the Elementor kit (h1-h6) and saved typography. ---- */
[class*="elementor-widget-quarty-"] .qrt-section {
	position: relative;
	margin: 0;
	padding: 80px 0 40px;
	border-bottom: 1px solid var(--f360-line);
}

[class*="elementor-widget-quarty-"] .qrt-section-sf { padding-bottom: 0; }
.elementor-widget-quarty-numbers .qrt-section { padding-top: 40px; }

[class*="elementor-widget-quarty-"] .qrt-title-h {
	margin: 0 0 40px;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}

[class*="elementor-widget-quarty-"] .qrt-white { color: #fff; }
[class*="elementor-widget-quarty-"] .qrt-mb-5 { margin-bottom: 5px; }

[class*="elementor-widget-quarty-"] .qrt-mb-20,
[class*="elementor-widget-quarty-"] .mb-20 { margin-bottom: 20px; }
[class*="elementor-widget-quarty-"] .qrt-mb-30 { margin-bottom: 30px; }
[class*="elementor-widget-quarty-"] .qrt-mb-40 { margin-bottom: 40px; }

[class*="elementor-widget-quarty-"] .qrt-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 2px 35px 0;
	height: 45px;
	border: 0;
	border-radius: 0;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 2px;
	line-height: 1.5;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

[class*="elementor-widget-quarty-"] .qrt-btn-sm { height: 40px; padding: 1px 30px 0; }
[class*="elementor-widget-quarty-"] .qrt-btn-md { height: 45px; }

[class*="elementor-widget-quarty-"] .qrt-btn-color {
	background-color: var(--f360-accent);
	color: #fff;
}

[class*="elementor-widget-quarty-"] .qrt-btn-color:hover,
[class*="elementor-widget-quarty-"] .qrt-btn-color:focus-visible {
	background-color: var(--f360-accent-dark);
	color: #fff;
}

[class*="elementor-widget-quarty-"] .qrt-btn-border {
	background-color: transparent;
	box-shadow: inset 0 0 0 2px #fff;
	color: #fff;
}

[class*="elementor-widget-quarty-"] .qrt-btn-border:hover,
[class*="elementor-widget-quarty-"] .qrt-btn-border:focus-visible {
	background-color: #fff;
	color: var(--f360-dark);
}

[class*="elementor-widget-quarty-"] :focus-visible {
	outline: 2px solid var(--f360-accent);
	outline-offset: 2px;
}

.f360-icon { flex: none; }

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

/* ---- quarty-cta ---- */
/* Fixed 80px bar as on live; a title taller than the bar overflows it there too. */
.f360-cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 80px;
	padding: 20px 40px;
	box-sizing: border-box;
	background: var(--f360-dark);
	color: #fff;
}

.f360-cta h4 {
	margin: 0 80px 0 0;
	color: #fff;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}

@media (max-width: 767.98px) {
	.f360-cta { flex-direction: column; height: auto; padding: 40px; }
	.f360-cta h4 { margin: 0 0 40px; font-size: 22px; }
}

/* ---- quarty-numbers ---- */
.f360-numbers .qrt-counter-frame { margin-bottom: 40px; }
.f360-numbers .qrt-counter-box { color: var(--f360-text); }

.f360-numbers .qrt-counter {
	display: inline-block;
	margin-bottom: 10px;
	font-size: 22px;
	font-weight: 800;
	line-height: 1.5;
}

.f360-numbers .qrt-counter-plus { margin-left: 5px; vertical-align: super; }

.f360-numbers h5 {
	margin: 0;
	letter-spacing: 2px;
	text-transform: uppercase;
}

/* ---- quarty-services ---- */
.f360-services .qrt-icon-box { margin-bottom: 40px; }

/* Image optimisers wrap the icon in <picture> and move the mb-20 class onto it. */
.f360-services .qrt-icon-box picture { display: block; }

.f360-services .qrt-icon-box img {
	display: block;
	width: 50px;
	height: 50px;
	object-fit: contain;
}

.f360-services .qrt-service-title { text-transform: uppercase; }
.f360-services .qrt-service-title a { color: inherit; text-decoration: none; }
.f360-services .qrt-service-desc { color: var(--f360-text); line-height: 1.5; }

/* ---- quarty-team ---- */
.f360-team .qrt-team-member { margin-bottom: 40px; }

.f360-team .qrt-team-item {
	overflow: hidden;
	aspect-ratio: 300 / 315;
	border-radius: 5px 5px 0 0;
	background: #e9e9e9;
}

.f360-team .qrt-team-item img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.f360-team .qrt-team-member:hover .qrt-team-item img { transform: scale(1.04); }

.f360-team .qrt-team-member-description {
	padding: 15px 20px;
	background: var(--f360-dark);
}

.f360-team .qrt-member-name h4 {
	margin: 0 0 5px;
	color: #fff;
	text-transform: uppercase;
}

.f360-team .qrt-member-name > span { display: block; color: #c9c9c9; }

/* ---- quarty-hero-slider ---- */
.f360-slider {
	position: relative;
	overflow: hidden;
	height: calc(100vh - 100px);
	min-height: 420px;
	background: var(--f360-dark);
}

@media (max-width: 991.98px) {
	.f360-slider { height: calc(100vh - 80px); }
}

/*
 * Slides stack in place and cross-fade. Elementor loads Swiper's stylesheet after this one on some
 * pages (.swiper-wrapper { display: flex } .swiper-slide { position: relative; width: 100% }), which
 * would lay the slides out side by side, so these selectors must stay above (0,1,0).
 */
.f360-slider .swiper-wrapper {
	position: absolute;
	inset: 0;
	display: block;
	width: auto;
	height: auto;
	transform: none;
}

.f360-slider .swiper-wrapper > .f360-slider__slide {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	visibility: hidden;
	transform: none;
	transition: opacity 0.8s ease, visibility 0s linear 0.8s;
}

.f360-slider .swiper-wrapper > .f360-slider__slide.is-active {
	z-index: 1;
	opacity: 1;
	visibility: visible;
	transition: opacity 0.8s ease;
}

.f360-slider .qrt-project-cover,
.f360-slider .qrt-image-frame { position: absolute; inset: 0; }

.f360-slider .qrt-image-frame img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scale(1.08);
	transition: transform 6s ease-out;
}

.f360-slider__slide.is-active .qrt-image-frame img { transform: scale(1); }

.f360-slider .qrt-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	padding: 40px;
	background: rgba(40, 41, 44, 0.6);
}

.f360-slider .qrt-banner-title,
.f360-hero-image .qrt-banner-title { color: #fff; }

.f360-slider .title--h1,
.f360-hero-image .title--h1 {
	font-size: clamp(40px, 5.35vw, 77px);
	font-weight: 800;
	line-height: 1.18;
}

.f360-slider .qrt-divider-2,
.f360-hero-image .qrt-divider-2 {
	width: 90px;
	height: 2px;
	margin: 0 0 20px;
	background: var(--f360-accent);
}

.f360-slider .qrt-text,
.f360-hero-image .qrt-text { max-width: 400px; font-size: clamp(20px, 2vw, 29px); line-height: 1.1; }

.f360-slider .qrt-banner-title .qrt-btn,
.f360-hero-image .qrt-banner-title .qrt-btn { margin-right: 15px; }

.qrt-video-background {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.f360-slider .qrt-slider-navigation {
	position: absolute;
	right: 0;
	bottom: 0;
	z-index: 3;
	display: flex;
	background: #fff;
}

.f360-slider .qrt-slider-nav-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	width: 175px;
	height: 70px;
	justify-content: center;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--f360-text);
	font: inherit;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 2px;
	text-transform: uppercase;
	cursor: pointer;
}

.f360-slider .qrt-slider-nav-btn:hover { color: var(--f360-accent); }
.f360-slider .qrt-slider-nav-btn:focus-visible { outline: 2px solid var(--f360-accent); outline-offset: -4px; }

.f360-slider [hidden] { display: none !important; }
.f360-slider .f360-slider__play { width: 70px; }
.f360-slider__icon--play,
.f360-slider.is-paused .f360-slider__icon--pause { display: none; }
.f360-slider.is-paused .f360-slider__icon--play { display: block; }

.f360-slider .qrt-slider-pagination {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	height: 3px;
	background: rgba(255, 255, 255, 0.35);
}

.f360-slider__progress-fill {
	display: block;
	width: 0;
	height: 100%;
	background: var(--f360-accent);
	transition: width 0.6s ease;
}

@media (max-width: 767.98px) {
	.f360-slider .qrt-overlay { text-align: center; justify-content: center; background: rgba(0, 0, 0, 0.45); }
	.f360-slider .qrt-divider-2 { margin-inline: auto; }
	.f360-slider .qrt-overlay { padding: 20px 20px 90px; }
	.f360-slider .qrt-slider-navigation { left: 0; }
	.f360-slider .qrt-slider-nav-btn { flex: 1; width: auto; }
}

/* ---- quarty-blog-grid ---- */
.f360-blog-grid .qrt-post-frame { display: flex; flex-direction: column; margin-bottom: 40px; }

.f360-blog-grid .qrt-post-thumb {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 5 / 3;
	margin-bottom: 15px;
	background: #e6e6e6;
}

.f360-blog-grid .qrt-post-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.f360-blog-grid .qrt-post-frame:hover .qrt-post-thumb img { transform: scale(1.04); }

.f360-blog-grid .qrt-post-date {
	position: absolute;
	top: 0;
	left: 0;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 10px 5px 10px;
	background: #f7f8f8;
	color: var(--f360-dark);
	font-size: 9px;
	font-weight: 600;
	letter-spacing: 1px;
	line-height: 1.5;
	text-transform: uppercase;
}

.f360-blog-grid .qrt-post-date .f360-icon { width: 1em; height: 1em; }

/* Title and excerpt are clamped to two lines as on live, which also clips the inline "read more". */
.f360-blog-grid .qrt-post-title,
.f360-blog-grid .qrt-port-short-text {
	display: -webkit-box;
	overflow: hidden;
	text-overflow: ellipsis;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.f360-blog-grid .qrt-post-title { margin: 0 0 10px; text-transform: none; }

.f360-blog-grid .qrt-post-title a {
	color: var(--f360-dark);
	font-size: 20px;
	font-weight: 700;
	letter-spacing: 0.5px;
	line-height: 24px;
	text-decoration: none;
}
.f360-blog-grid .qrt-post-title a:hover { color: var(--f360-accent); }

.f360-blog-grid .qrt-port-short-text p { margin: 0 0 16px; color: var(--f360-text); }

.f360-blog-grid .qrt-el-more { display: block; margin-top: 16px; }

.f360-blog-grid .qrt-el-more a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding-right: 10px;
	color: var(--f360-dark);
	font-weight: 800;
	letter-spacing: 2px;
	text-decoration: none;
	text-transform: uppercase;
}

.f360-blog-grid .qrt-el-more a:hover { color: var(--f360-accent); }

.f360-blog-grid .qrt-blog-pagination { display: flex; flex-wrap: wrap; gap: 10px; }

.f360-blog-grid .qrt-blog-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	background: #fff;
	color: var(--f360-dark);
	font-weight: 700;
	text-decoration: none;
}

.f360-blog-grid .qrt-blog-pagination .current { background: var(--f360-dark); color: #fff; }

/* ---- quarty-about-us ---- */
.f360-about-us .qrt-section-title {
	margin: 0;
	padding: 0 0 30px;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}

.f360-about-us .qrt-section-description p:last-child { margin-bottom: 0; }

.f360-about-us .qrt-quote {
	margin: 20px 0 0;
	padding-left: 20px;
	border-left: 2px solid var(--f360-accent);
	font-style: italic;
}

/* ---- Carousels (testimonials, blog carousel, clients): two cards per view on desktop. ---- */
/* Same Swiper load-order guard as the hero slider: keep these above (0,1,0). */
.f360-carousel { position: relative; }

.f360-carousel .f360-carousel__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 20px) / 2);
	gap: 20px;
	width: auto;
	height: auto;
	box-sizing: border-box;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	transform: none;
}

.f360-carousel .f360-carousel__track::-webkit-scrollbar { display: none; }

@media (max-width: 991.98px) {
	.f360-carousel .f360-carousel__track { grid-auto-columns: 100%; }
}

.f360-carousel .f360-carousel__track > .f360-carousel__item {
	width: auto;
	min-width: 0;
	height: auto;
	scroll-snap-align: start;
	transform: none;
}

.f360-carousel .qrt-slider-nav {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	height: 30px;
}

.f360-carousel .qrt-slider-prev,
.f360-carousel .qrt-slider-next {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 24px;
	height: 24px;
	margin-left: 20px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--f360-dark);
	font-size: 12px;
	cursor: pointer;
}

.f360-carousel .qrt-slider-prev:hover,
.f360-carousel .qrt-slider-next:hover { color: var(--f360-accent); }

.f360-carousel .qrt-slider-prev[aria-disabled="true"],
.f360-carousel .qrt-slider-next[aria-disabled="true"] { opacity: 0.35; cursor: default; }

/* ---- quarty-testimonials ---- */
.f360-testimonials .qrt-testimonial { margin: 0 0 20px; }

.f360-testimonials .qrt-testimonial-header {
	display: flex;
	align-items: center;
	margin: 0 0 20px;
}

.f360-testimonials .qrt-testimonial-header img {
	flex: none;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	object-fit: cover;
}

.f360-testimonials .qrt-testimonial-name { padding-left: 15px; }
.f360-testimonials .qrt-testimonial-name h4 { margin: 0 0 5px; text-transform: uppercase; }
.f360-testimonials .qrt-testimonial-text p { margin: 0 0 16px; }

.f360-testimonials .qrt-stars {
	display: inline-flex;
	margin: 20px 0 0;
	padding: 3px 10px;
	border-radius: 10px;
	background: var(--f360-dark);
	list-style: none;
}

.f360-testimonials .qrt-stars li { padding: 0 2px; color: var(--f360-accent); font-size: 11px; line-height: 30px; }

/* ---- quarty-blog-carousel ---- */
.f360-blog-carousel .qrt-post-frame { margin-bottom: 40px; }

/* ---- quarty-clients ---- */
.f360-clients .f360-carousel__track { grid-auto-columns: calc((100% - 60px) / 4); align-items: center; }

@media (max-width: 991.98px) {
	.f360-clients .f360-carousel__track { grid-auto-columns: calc((100% - 20px) / 2); }
}

.f360-clients .f360-carousel__item { display: flex; align-items: center; justify-content: center; }

.f360-clients img {
	display: block;
	max-width: 100%;
	max-height: 80px;
	object-fit: contain;
	opacity: 0.7;
	transition: opacity 0.2s ease;
}

.f360-clients a:hover img,
.f360-clients a:focus-visible img { opacity: 1; }

/* ---- quarty-pricing ---- */
.f360-pricing .qrt-price {
	height: 100%;
	margin-bottom: 20px;
	padding: 40px;
	box-sizing: border-box;
	background: #fff;
	box-shadow: 0 1px 2px rgba(45, 45, 60, 0.1);
}

.f360-pricing .qrt-popular-price { background: var(--f360-dark); color: #fff; }
.f360-pricing .qrt-popular-price h5,
.f360-pricing .qrt-popular-price .qrt-number { color: #fff; }

.f360-pricing .qrt-price-body h5 { margin: 0 0 20px; letter-spacing: 2px; text-transform: uppercase; }

.f360-pricing .qrt-price-cost { margin-bottom: 20px; }
.f360-pricing .qrt-number { font-size: clamp(32px, 3vw, 44px); font-weight: 800; line-height: 1.2; }
.f360-pricing .qrt-number-span { font-size: 0.4em; font-weight: 600; }
.f360-pricing .f360-price-was { font-size: 0.5em; font-weight: 600; opacity: 0.7; }

.f360-pricing .f360-price-badge {
	display: inline-block;
	margin-bottom: 20px;
	padding: 4px 10px;
	background: var(--f360-accent);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.f360-pricing .qrt-price-list ul { margin: 0 0 30px; padding: 0; list-style: none; }
.f360-pricing .qrt-price-list li { padding: 5px 0; border-bottom: 1px solid var(--f360-line); }

.f360-pricing .qrt-asterisk { margin-top: 20px; font-size: 0.8em; opacity: 0.8; }

/* ---- quarty-banner ---- */
.f360-banner .qrt-page-cover {
	position: relative;
	overflow: hidden;
	min-height: 400px;
	background: var(--f360-dark);
}

.f360-banner .qrt-page-cover > img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.f360-banner .qrt-about-info {
	position: absolute;
	right: 0;
	bottom: 0;
	padding: 30px 40px;
	background: rgba(40, 41, 44, 0.8);
	color: #fff;
}

.f360-banner .qrt-table { margin: 0; padding: 0; list-style: none; }

.f360-banner .qrt-table li {
	display: flex;
	justify-content: space-between;
	gap: 30px;
	padding: 5px 0;
}

.f360-banner .qrt-table h5 { margin: 0; letter-spacing: 1px; text-transform: uppercase; }

@media (max-width: 767.98px) {
	.f360-banner .qrt-about-info { position: relative; padding: 20px; }
}

/* ---- quarty-hero-image ---- */
.f360-hero-image {
	position: relative;
	overflow: hidden;
	height: calc(100vh - 100px);
	min-height: 420px;
	background: var(--f360-dark);
}

@media (max-width: 991.98px) {
	.f360-hero-image { height: calc(100vh - 80px); }
}

.f360-hero-image .qrt-image-frame { position: absolute; inset: 0; }

.f360-hero-image .qrt-image-frame img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.f360-hero-image.qrt-animated-zoom .qrt-image-frame img { animation: f360-zoom 10s ease-out both; }

@keyframes f360-zoom {
	from { transform: scale(1.08); }
	to { transform: scale(1); }
}

.f360-hero-image .qrt-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	padding: 40px;
	background: rgba(40, 41, 44, 0.6);
}

/* ---- Editor-only notices ---- */
.f360-editor-notice {
	padding: 12px 16px;
	border: 1px dashed #b15d26;
	background: #fff8f3;
	color: #6b3a17;
	font: 13px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-reduced-motion: reduce) {
	.f360-slider__slide,
	.f360-slider .qrt-image-frame img,
	.f360-team .qrt-team-item img,
	.f360-blog-grid .qrt-post-thumb img,
	.f360-hero-image .qrt-image-frame img { animation: none !important; transition: none !important; transform: none !important; }

	.f360-carousel__track { scroll-behavior: auto; }
}
