/*
 * FLOOR360 theme.
 * Layout: framed app (10px inset), sticky top bar, optional left social rail on desktop, content frame
 * with 40px gutters for Elementor.
 * The qrt-* class names match the markup existing Additional CSS and Elementor content target.
 */

:root {
	--f360-rust: #b15d26;
	--f360-rust-dark: #8f4a1d;
	--f360-ink: #27282c;
	--f360-muted: #5e6066;
	--f360-line: #e4e5e8;
	--f360-paper: #fff;
	--f360-soft: #f4f5f7;
	--f360-bar: 80px;
	--f360-rail: 80px;
	--f360-container: 1180px;
	--f360-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
	--f360-font-heading: var(--f360-font);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-padding-top: calc(var(--f360-bar) + 12px); }

body {
	margin: 0;
	background: #edf0f5;
	color: var(--f360-ink);
	font-family: var(--f360-font);
	font-size: 17px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

p,
ul,
ol,
dl { margin: 0 0 16px; }

blockquote {
	margin: 0 0 16px;
	padding: 0 50px;
	color: #52555a;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.5;
}

small { font-size: 16px; }

img,
svg,
video { max-width: 100%; height: auto; }

/* Inline images sit on the middle of the line, as with the Bootstrap reset the old theme loaded. */
img,
svg { vertical-align: middle; }

a { color: var(--f360-rust); }
a:hover { color: var(--f360-rust-dark); }

:focus-visible { outline: 2px solid var(--f360-rust); outline-offset: 2px; }

h1, h2, h3, h4, h5, h6 {
	margin: 0;
	font-family: var(--f360-font-heading);
	font-weight: 700;
	letter-spacing: 0.5px;
	line-height: 1.2;
}

/*
 * Live heading scale for the sizes the Elementor kit leaves unset. Kept at (0,0,1) as on live, so any
 * page or widget rule such as an HTML block's ".f360-consult h4 { font-size: 1.1em }" still wins.
 */
:where(.qrt-app.f360-site) h4 { font-size: 53.33px; }
:where(.qrt-app.f360-site) h5 { font-size: 16px; letter-spacing: 2px; }
:where(.qrt-app.f360-site) h6 { font-size: 16px; }

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

.skip-link:focus {
	z-index: 100000;
	top: 8px;
	left: 8px;
	width: auto;
	height: auto;
	margin: 0;
	padding: 12px 18px;
	clip: auto;
	background: var(--f360-paper);
	color: var(--f360-ink);
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

/* ---------- Buttons ---------- */
.qrt-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: 0;
	background: var(--f360-ink);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.18em;
	line-height: 1;
	text-decoration: none;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.qrt-btn:hover,
.qrt-btn:focus-visible { color: #fff; transform: translateY(-1px); }
.qrt-btn-md { min-height: 44px; padding: 0 24px; }
.qrt-btn-sm { min-height: 38px; padding: 0 20px; }
.qrt-btn.qrt-btn-color { background: var(--f360-rust); }
.qrt-btn.qrt-btn-color:hover,
.qrt-btn.qrt-btn-color:focus-visible { background: var(--f360-rust-dark); }

/* ---------- Frame ----------
 * Same geometry as the live site: the app sits 10px inside the viewport on an opaque #edf0f5 panel,
 * and content plus footer sit on an opaque #f7f8f8 frame with 40px gutters. Both backgrounds must
 * stay opaque, otherwise Elementor page-level body backgrounds (e.g. the home page image) show
 * through sections that have no background of their own.
 */
.qrt-app.f360-site {
	--f360-gutter: 40px;
	position: relative;
	margin: 10px;
	background-color: #edf0f5;
}

.f360-frame {
	position: relative;
	min-height: 800px;
	padding: 0 var(--f360-gutter);
	background-color: #f7f8f8;
}

.f360-frame > .f360-site-content { padding-top: var(--f360-gutter); }

/* Live starts content 60px under the bar on desktop, except on Layout Builder pages (40px). */
@media (min-width: 769px) {
	.f360-frame > .f360-site-content { padding-top: calc(var(--f360-gutter) + 20px); }
	.page-template-template-layout-builder .f360-frame > .f360-site-content { padding-top: var(--f360-gutter); }
}

/*
 * Full-frame-width widgets, as on live. The heroes also pull up by one gutter: the saved page data
 * (section margin -80px, widget padding-top 40px) was built around that.
 */
.f360-frame .elementor-widget-quarty-hero-slider .qrt-body,
.f360-frame .elementor-widget-quarty-hero-image .qrt-body {
	margin: calc(-1 * var(--f360-gutter)) calc(-1 * var(--f360-gutter)) 0;
}

.f360-frame .elementor-widget-quarty-cta .qrt-call-to-action {
	margin-right: calc(-1 * var(--f360-gutter));
	margin-left: calc(-1 * var(--f360-gutter));
}

/* ---------- Header ----------
 * Selectors use .qrt-app .qrt-top-bar (0,3,0) so they beat the Elementor kit's global a/button rules
 * (0,1,1) but still lose to the site's Additional CSS, which targets the same bar with longer selectors.
 */
.f360-header {
	position: sticky;
	top: 0;
	z-index: 900;
	display: flex;
	align-items: center;
	height: var(--f360-bar);
	padding-right: 30px;
	background: var(--f360-paper);
	box-shadow: 0 1px 2px rgba(45, 45, 60, 0.1);
}

.admin-bar .f360-header { top: 32px; }

.qrt-symbol {
	display: flex;
	flex: 0 0 var(--f360-rail);
	align-items: center;
	justify-content: center;
	width: var(--f360-rail);
	height: var(--f360-bar);
	background: var(--f360-rust);
	color: #fff;
	text-decoration: none;
}

.qrt-symbol:hover { color: #fff; }
.qrt-symbol__img { width: 22px; height: 22px; object-fit: contain; }
.qrt-symbol__text { font-size: 15px; font-weight: 800; letter-spacing: 0.04em; }

.f360-header .qrt-menu { flex: 1 1 auto; min-width: 0; margin-left: 20px; }

.qrt-buttons {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 0;
	margin-left: auto;
}

.qrt-app .qrt-top-bar .qrt-btn {
	height: 45px;
	min-height: 0;
	padding: 2px 35px 0;
	font-family: "Brandon", sans-serif;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 2px;
	line-height: 1;
	white-space: nowrap;
}

.qrt-app .qrt-top-bar .qrt-search-btn,
.qrt-app .qrt-top-bar .f360-menu-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: var(--f360-ink);
	font-size: 16px;
	text-shadow: none;
	cursor: pointer;
}

.qrt-app .qrt-top-bar .qrt-search-btn { display: inline-flex; margin-right: 10px; }

.qrt-app .qrt-top-bar .qrt-search-btn:hover,
.qrt-app .qrt-top-bar .qrt-search-btn:focus,
.qrt-app .qrt-top-bar .f360-menu-toggle:hover,
.qrt-app .qrt-top-bar .f360-menu-toggle:focus {
	background: transparent;
	color: var(--f360-rust);
}

/* Header search: slides down under the bar. It stays in the tab order (live's Additional CSS hides the
 * toggle button), so keyboard users reveal it by focusing the field. */
.f360-header-search {
	position: absolute;
	top: 100%;
	right: 0;
	left: var(--f360-rail);
	z-index: -1;
	display: flex;
	align-items: center;
	height: var(--f360-bar);
	padding: 0 20px;
	background: var(--f360-paper);
	box-shadow: 0 1px 2px rgba(45, 45, 60, 0.1);
	opacity: 0;
	pointer-events: none;
	clip-path: inset(0 0 100% 0);
	transform: translateY(-12px);
	transition: opacity 0.2s ease, transform 0.2s ease, clip-path 0.2s ease;
}

.f360-header-search.is-open,
.f360-header-search:focus-within {
	opacity: 1;
	pointer-events: auto;
	clip-path: inset(0 0 -10px 0);
	transform: none;
}

.f360-header-search__form { display: flex; align-items: center; width: 100%; }

.qrt-app .qrt-top-bar .f360-header-search__field {
	flex: 1;
	min-width: 0;
	height: 40px;
	padding: 0 20px;
	border: 0;
	background: transparent;
	color: var(--f360-ink);
	font: inherit;
	font-size: 14px;
}

.qrt-app .qrt-top-bar .f360-header-search__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: var(--f360-ink);
	text-shadow: none;
	cursor: pointer;
}

.f360-menu-toggle__bars,
.f360-menu-toggle__bars::before,
.f360-menu-toggle__bars::after {
	display: block;
	width: 20px;
	height: 2px;
	background: currentColor;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.f360-menu-toggle__bars { position: relative; }
.f360-menu-toggle__bars::before,
.f360-menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
.f360-menu-toggle__bars::before { top: -6px; }
.f360-menu-toggle__bars::after { top: 6px; }
.f360-menu-toggle[aria-expanded="true"] .f360-menu-toggle__bars { background: transparent; }
.f360-menu-toggle[aria-expanded="true"] .f360-menu-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.f360-menu-toggle[aria-expanded="true"] .f360-menu-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Menu without the site kit walker: plain CSS dropdowns. The site kit styles .f360-menu itself. */
.qrt-main-menu:not(.f360-menu),
.qrt-main-menu:not(.f360-menu) ul { margin: 0; padding: 0; list-style: none; }

.qrt-main-menu:not(.f360-menu) a {
	display: block;
	padding: 10px 8px;
	color: var(--f360-ink);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1.2;
	text-decoration: none;
	text-transform: uppercase;
}

.qrt-main-menu:not(.f360-menu) a:hover,
.qrt-main-menu:not(.f360-menu) .current-menu-item > a { color: var(--f360-rust); }

@media (min-width: 992px) {
	.qrt-main-menu:not(.f360-menu) { display: flex; flex-wrap: wrap; align-items: center; }
	.qrt-main-menu:not(.f360-menu) li { position: relative; }

	.qrt-main-menu:not(.f360-menu) .sub-menu {
		position: absolute;
		top: 100%;
		left: 0;
		z-index: 1000;
		min-width: 220px;
		padding: 10px 0;
		background: var(--f360-rust);
		box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.18s ease, visibility 0s linear 0.18s;
	}

	.qrt-main-menu:not(.f360-menu) .sub-menu .sub-menu { top: -10px; left: 100%; }

	.qrt-main-menu:not(.f360-menu) li:hover > .sub-menu,
	.qrt-main-menu:not(.f360-menu) li:focus-within > .sub-menu {
		opacity: 1;
		visibility: visible;
		transition: opacity 0.18s ease;
	}

	.qrt-main-menu:not(.f360-menu) .sub-menu a { padding: 9px 20px; color: #fff; font-size: 12px; }
	.qrt-main-menu:not(.f360-menu) .sub-menu a:hover { background: rgba(0, 0, 0, 0.12); color: #fff; }
}

/* ---------- Left social rail ---------- */
.f360-left-bar {
	position: fixed;
	top: 10px;
	left: 10px;
	z-index: 800;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	width: var(--f360-rail);
	height: 100vh;
	padding-bottom: 80px;
	background: var(--f360-paper);
	box-shadow: 1px 0 0 var(--f360-line);
}

.admin-bar .f360-left-bar { top: 42px; }

/* Rotated page label, measured on live: a 300x90 box turned -90deg, text reading bottom to top. */
.f360-left-bar .qrt-current-page-title {
	position: absolute;
	top: 195px;
	left: -110px;
	display: flex;
	align-items: center;
	width: 300px;
	height: 90px;
	padding-right: 40px;
	transform: rotate(-90deg);
	font-family: "Josefin Sans", sans-serif;
	font-size: 20px;
	font-weight: 800;
	line-height: 1.5;
	letter-spacing: 2px;
	text-transform: uppercase;
}

.f360-left-bar .qrt-current-page-title a,
.f360-left-bar .qrt-current-page-title span {
	display: block;
	color: #28292c;
	text-decoration: none;
}

.qrt-social-links { display: flex; flex-direction: column; align-items: center; gap: 5px; }

.qrt-social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	color: var(--f360-ink);
}

.qrt-social-link:hover,
.qrt-social-link:focus-visible { color: var(--f360-rust); }

.f360-has-left-bar .f360-frame { margin-left: var(--f360-rail); }

.f360-site-content:focus { outline: 0; }

/* ---------- Mobile header ----------
 * The menu needs about 990px for one row, so it collapses below 992px. The frame (rail, outer margin,
 * gutters) follows live's own breakpoints further down: 768px and 767px.
 */
@media (max-width: 991.98px) {
	.f360-header { padding-right: 20px; }
	.f360-header .qrt-buttons { margin-left: 13px; }
	.qrt-app .qrt-top-bar .f360-menu-toggle { display: inline-flex; }
	.qrt-app .qrt-top-bar .qrt-send-request { display: none; }
	.f360-header-search { left: 0; }

	.f360-header .f360-nav-panel {
		position: fixed;
		top: var(--f360-bar);
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 950;
		overflow-y: auto;
		padding: 8px 0 32px;
		background: var(--f360-paper);
		overscroll-behavior: contain;
	}

	.admin-bar .f360-header .f360-nav-panel { top: calc(var(--f360-bar) + 46px); }
	.f360-header .f360-nav-panel:not(.is-open) { display: none; }
	.f360-nav-open { overflow: hidden; }

	.qrt-main-menu:not(.f360-menu) a { padding: 14px 20px; font-size: 15px; }
	.qrt-main-menu:not(.f360-menu) .sub-menu { padding-left: 16px; }
	.qrt-main-menu:not(.f360-menu) .sub-menu a { font-size: 14px; text-transform: none; letter-spacing: 0; }
}

/* The app still has its 10px margin here, so the open menu hangs off the sticky header instead. */
@media (min-width: 769px) and (max-width: 991.98px) {
	.qrt-app.f360-site .f360-header .f360-nav-panel {
		position: absolute;
		top: 100%;
		bottom: auto;
		height: calc(100vh - var(--f360-bar) - 10px);
	}
}

@media (max-width: 768.98px) {
	.qrt-app.f360-site { margin: 0; }
	.f360-frame { min-height: calc(100vh - var(--f360-bar)); }
	.f360-left-bar { display: none; }
	.f360-has-left-bar .f360-frame { margin-left: 0; }
}

@media (max-width: 767.98px) {
	.qrt-app.f360-site { --f360-gutter: 20px; }
}

@media (max-width: 782px) {
	.admin-bar .f360-header { top: 46px; }
}

@media (max-width: 600px) {
	.admin-bar .f360-header { top: 0; }
}

/* ---------- Content ---------- */
.f360-container {
	width: 100%;
	max-width: var(--f360-container);
	margin-right: auto;
	margin-left: auto;
	padding-right: 24px;
	padding-left: 24px;
}

.f360-container--narrow { max-width: 820px; }

.f360-main { padding-top: 48px; padding-bottom: 72px; }
.f360-main--builder { padding: 0; }

.f360-page-header { margin-bottom: 32px; }

.f360-page-title {
	font-size: clamp(30px, 4vw, 48px);
	letter-spacing: 0.01em;
	text-transform: uppercase;
}

.f360-entry__meta { margin: 0; color: var(--f360-muted); font-size: 14px; }
.f360-entry__thumb { margin: 0 0 32px; }
.f360-entry__thumb img { display: block; width: 100%; }
.f360-entry__content > * + * { margin-top: 1.1em; }
.f360-entry__content > :first-child { margin-top: 0; }

.f360-post-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 32px;
}

.f360-card { display: flex; flex-direction: column; background: var(--f360-soft); }
.f360-card__thumb img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.f360-card__body { padding: 24px; }
.f360-card__title { font-size: 21px; }
.f360-card__title a { color: var(--f360-ink); text-decoration: none; }
.f360-card__title a:hover { color: var(--f360-rust); }
.f360-card__excerpt p { margin: 0.6em 0 0; }

.f360-pagination,
.f360-post-nav { margin-top: 48px; }

.nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; }
.f360-pagination .nav-links { justify-content: center; }

.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	background: var(--f360-soft);
	color: var(--f360-ink);
	text-decoration: none;
}

.page-numbers.current,
a.page-numbers:hover { background: var(--f360-rust); color: #fff; }

/* ---------- Search & 404 ---------- */
.f360-search-form { display: flex; max-width: 520px; margin: 24px 0; }

.f360-search-form__field {
	flex: 1;
	min-width: 0;
	height: 48px;
	padding: 0 16px;
	border: 1px solid var(--f360-line);
	border-right: 0;
	font: inherit;
}

.f360-search-form__submit {
	width: 52px;
	height: 48px;
	border: 0;
	background: var(--f360-rust);
	color: #fff;
	cursor: pointer;
}

.f360-404__code {
	margin: 0;
	color: var(--f360-rust);
	font-size: clamp(72px, 14vw, 160px);
	font-weight: 800;
	line-height: 1;
}

/* ---------- Comments ---------- */
.f360-comments { margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--f360-line); }
.f360-comments__list { padding-left: 0; list-style: none; }
.f360-comments__list .children { list-style: none; }
.comment-body { padding: 16px 0; border-bottom: 1px solid var(--f360-line); }
.comment-form input:not([type="submit"]):not([type="checkbox"]),
.comment-form textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--f360-line); font: inherit; }
.comment-form .submit { padding: 14px 24px; border: 0; background: var(--f360-rust); color: #fff; font-weight: 700; cursor: pointer; }

/* ---------- Footer ---------- */
.f360-footer--simple { padding: 40px 0; background: var(--f360-ink); color: #c9cacd; font-size: 14px; }
.f360-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.f360-footer__menu { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; padding: 0; list-style: none; }
.f360-footer__menu a { color: #fff; text-decoration: none; }
.f360-footer__menu a:hover { color: #f0b48b; }
.f360-footer__copy { margin: 0; }

/* ---------- WordPress core classes ---------- */
.alignleft { float: left; margin: 0.3em 1.5em 1em 0; }
.alignright { float: right; margin: 0.3em 0 1em 1.5em; }
.aligncenter { display: block; margin-right: auto; margin-left: auto; }
.alignwide { margin-right: calc(50% - min(50vw, 640px)); margin-left: calc(50% - min(50vw, 640px)); }
.alignfull { margin-right: calc(50% - 50vw); margin-left: calc(50% - 50vw); }
.wp-caption { max-width: 100%; }
.wp-caption-text,
figcaption { color: var(--f360-muted); font-size: 14px; }
.sticky { position: relative; }
.bypostauthor { display: block; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
