:root {
	--qcv-radius: 8px;
	--qcv-shadow: 0 16px 40px rgba(17, 24, 39, 0.08);
}

html {
	scroll-behavior: smooth;
}

body {
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

.qcv-site-header {
	z-index: 50;
	background: rgba(255, 255, 255, 0.94);
	border-bottom: 1px solid var(--wp--preset--color--line);
	backdrop-filter: blur(12px);
}

body.qcv-header-fixed .qcv-site-header {
	position: sticky;
	top: 0;
}

body.qcv-header-hidden .qcv-site-header,
body.qcv-header-hidden .qcv-legacy-site-header {
	display: none;
}

body.qcv-legacy-header-active .qcv-site-header {
	display: none;
}

.qcv-legacy-site-header {
	position: relative;
	z-index: 60;
	background: #fff;
	border-bottom: 1px solid var(--wp--preset--color--line);
}

body.qcv-header-fixed .qcv-legacy-site-header {
	position: sticky;
	top: 0;
}

.qcv-header-inner {
	min-height: 72px;
}

body.qcv-page-boxed .wp-site-blocks {
	width: min(1240px, calc(100% - 24px));
	margin: 0 auto;
	background: #fff;
	box-shadow: 0 20px 60px rgba(17, 24, 39, 0.08);
}

body.qcv-title-hidden .qcv-page > .wp-block-post-title {
	display: none;
}

.qcv-site-title a {
	color: var(--wp--preset--color--ink);
	font-weight: 800;
}

.qcv-hero {
	padding-top: clamp(48px, 8vw, 96px);
	padding-bottom: clamp(48px, 8vw, 96px);
	background:
		linear-gradient(135deg, rgba(15, 118, 110, 0.10), rgba(245, 158, 11, 0.10)),
		#fff;
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.qcv-eyebrow {
	margin-bottom: 12px;
	color: var(--wp--preset--color--brand);
	font-size: 0.9rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0;
}

.qcv-hero-panel,
.qcv-card,
.qcv-step,
.qcv-faq details {
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--qcv-radius);
	background: #fff;
	box-shadow: var(--qcv-shadow);
}

.qcv-hero-panel,
.qcv-card,
.qcv-step {
	padding: clamp(20px, 3vw, 32px);
}

.qcv-section {
	padding-top: clamp(48px, 7vw, 88px);
	padding-bottom: clamp(48px, 7vw, 88px);
}

.qcv-section-muted {
	background: var(--wp--preset--color--surface);
}

.qcv-card-grid {
	margin-top: 32px;
}

.qcv-media-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 260px;
	padding: 24px;
	border: 1px dashed var(--wp--preset--color--muted);
	border-radius: var(--qcv-radius);
	color: var(--wp--preset--color--muted);
	background: var(--wp--preset--color--surface);
	text-align: center;
	font-weight: 700;
}

.qcv-step-number {
	color: var(--wp--preset--color--accent);
	font-weight: 900;
	font-size: 0.9rem;
}

.qcv-faq {
	max-width: 860px;
}

.qcv-faq details {
	margin-bottom: 12px;
	padding: 18px 20px;
}

.qcv-faq summary {
	cursor: pointer;
	font-weight: 800;
}

.qcv-cta {
	color: #fff;
	background: var(--wp--preset--color--brand);
}

.qcv-site-footer {
	padding-top: 56px;
	padding-bottom: 32px;
	color: #d1d5db;
	background: #111827;
}

.qcv-site-footer a,
.qcv-site-footer .wp-block-site-title a {
	color: #fff;
}

.qcv-footer-bottom {
	margin-top: 32px;
	padding-top: 24px;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.qcv-page {
	padding-top: 48px;
	padding-bottom: 72px;
}

.qcv-post-meta {
	color: var(--wp--preset--color--muted);
}

.qcv-contact-bar {
	position: fixed;
	right: 16px;
	bottom: 16px;
	z-index: 80;
	display: flex;
	gap: 8px;
	padding: 8px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 999px;
	background: #fff;
	box-shadow: var(--qcv-shadow);
}

.qcv-contact-bar a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 48px;
	height: 40px;
	padding: 0 14px;
	border-radius: 999px;
	color: #fff;
	background: var(--wp--preset--color--brand);
	font-size: 0.9rem;
	font-weight: 800;
}

.qcv-scroll-top {
	position: fixed;
	right: 18px;
	bottom: 78px;
	z-index: 79;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border: 0;
	border-radius: 999px;
	color: #fff;
	background: var(--qcv-button-color, var(--wp--preset--color--brand));
	box-shadow: var(--qcv-shadow);
	cursor: pointer;
	font-size: 20px;
	font-weight: 900;
	opacity: 0;
	transform: translateY(8px);
	pointer-events: none;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.qcv-scroll-top.is-visible {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.qcv-legacy-row {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	width: 100%;
	max-width: var(--wp--style--global--wide-size, 1180px);
	margin-right: auto;
	margin-left: auto;
	padding: 24px 16px;
	box-sizing: border-box;
}

.qcv-legacy-row-full {
	max-width: none;
}

.qcv-legacy-col {
	flex: 1 1 0;
	min-width: 0;
	box-sizing: border-box;
}

.qcv-legacy-col-1-6 { flex-basis: calc(16.666% - 24px); }
.qcv-legacy-col-1-5 { flex-basis: calc(20% - 24px); }
.qcv-legacy-col-1-4 { flex-basis: calc(25% - 24px); }
.qcv-legacy-col-1-3 { flex-basis: calc(33.333% - 24px); }
.qcv-legacy-col-5-12 { flex-basis: calc(41.666% - 24px); }
.qcv-legacy-col-1-2 { flex-basis: calc(50% - 24px); }
.qcv-legacy-col-2-3 { flex-basis: calc(66.666% - 24px); }
.qcv-legacy-col-3-4 { flex-basis: calc(75% - 24px); }

.qcv-legacy-text > *:first-child {
	margin-top: 0;
}

.qcv-legacy-text > *:last-child {
	margin-bottom: 0;
}

.qcv-legacy-image {
	margin: 0;
}

.qcv-legacy-image img {
	max-width: 100%;
	height: auto;
}

.qcv-align-center {
	text-align: center;
}

.qcv-align-right {
	text-align: right;
}

.qcv-legacy-button a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 16px;
	border-radius: 2px;
	color: #fff;
	background: var(--wp--preset--color--brand);
	font-weight: 800;
	text-decoration: none;
}

.qcv-legacy-logo {
	display: flex;
	align-items: center;
	justify-content: center;
}

.qcv-legacy-logo img {
	max-height: 72px;
	width: auto;
}

.qcv-legacy-logo-text {
	color: var(--wp--preset--color--brand);
	font-size: 28px;
	font-weight: 900;
}

.qcv-legacy-menu-list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.qcv-legacy-menu-list a {
	color: var(--wp--preset--color--ink);
	font-weight: 800;
	text-decoration: none;
}

.qcv-legacy-menu-list a:hover {
	color: var(--wp--preset--color--brand);
}

.qcv-legacy-phone {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	justify-content: center;
	gap: 2px;
	font-weight: 800;
}

.qcv-legacy-phone span {
	color: var(--wp--preset--color--muted);
	font-size: 0.85rem;
}

.qcv-legacy-phone a {
	color: var(--wp--preset--color--brand);
	text-decoration: none;
}

.qcv-legacy-search {
	display: flex;
	gap: 8px;
	width: 100%;
}

.qcv-legacy-search input {
	flex: 1;
	min-width: 0;
	padding: 10px 12px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 4px;
}

.qcv-legacy-search button,
.qcv-legacy-actions a {
	padding: 10px 14px;
	border: 0;
	border-radius: 4px;
	color: #fff;
	background: var(--wp--preset--color--brand);
	font-weight: 800;
	text-decoration: none;
}

.qcv-legacy-actions {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
}

.qcv-legacy-slider {
	display: flex;
	align-items: center;
	min-height: 360px;
	padding: clamp(48px, 8vw, 96px) 16px;
	color: #fff;
	background:
		linear-gradient(135deg, rgba(207, 32, 39, 0.92), rgba(17, 24, 39, 0.86)),
		var(--wp--preset--color--brand);
}

.qcv-legacy-slider > div {
	width: min(1120px, 100%);
	margin: 0 auto;
}

.qcv-legacy-slider h1 {
	max-width: 760px;
	font-size: clamp(36px, 7vw, 72px);
	line-height: 1.05;
}

.qcv-legacy-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 20px;
	width: 100%;
}

.qcv-legacy-card,
.qcv-legacy-block {
	box-sizing: border-box;
}

.qcv-legacy-card {
	padding: 18px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--qcv-radius);
	background: #fff;
	box-shadow: 0 12px 30px rgba(17, 24, 39, 0.06);
}

.qcv-legacy-card h3 {
	margin-top: 10px;
	margin-bottom: 8px;
	font-size: 1.05rem;
}

.qcv-legacy-card p {
	color: var(--wp--preset--color--muted);
}

.qcv-legacy-card a {
	color: var(--wp--preset--color--brand);
	font-weight: 700;
	text-decoration: none;
}

.qcv-legacy-card img,
.qcv-legacy-grid img {
	width: 100%;
	height: auto;
	border-radius: var(--qcv-radius);
}

.qcv-legacy-block-title {
	margin: 0 0 20px;
	text-align: center;
}

.qcv-legacy-carousel {
	display: grid;
	grid-auto-columns: minmax(240px, 1fr);
	grid-auto-flow: column;
	gap: 18px;
	overflow-x: auto;
	padding: 4px 0 14px;
	scroll-snap-type: x mandatory;
}

.qcv-legacy-carousel > * {
	scroll-snap-align: start;
}

.qcv-legacy-banner {
	min-height: 220px;
	background: var(--wp--preset--color--surface);
}

.qcv-legacy-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	margin-bottom: 10px;
	border-radius: 50%;
	color: #fff;
	background: var(--wp--preset--color--brand);
	font-weight: 800;
}

.qcv-legacy-image-placeholder {
	display: block;
	aspect-ratio: 16 / 9;
	border-radius: var(--qcv-radius);
	background:
		linear-gradient(135deg, rgba(207, 32, 39, 0.12), rgba(15, 118, 110, 0.12)),
		var(--wp--preset--color--surface);
}

.qcv-legacy-tabs {
	display: grid;
	gap: 16px;
	width: 100%;
}

.qcv-legacy-tab-section {
	padding: 18px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--qcv-radius);
	background: #fff;
}

.qcv-legacy-form {
	padding: 18px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--qcv-radius);
	color: var(--wp--preset--color--muted);
	background: var(--wp--preset--color--surface);
}

.qcv-legacy-newsletter {
	display: flex;
	gap: 8px;
}

.qcv-legacy-newsletter input {
	flex: 1;
	min-width: 0;
	padding: 10px 12px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 4px;
}

.qcv-legacy-newsletter button,
.qcv-legacy-mini-cart {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 14px;
	border: 0;
	border-radius: 4px;
	color: #fff;
	background: var(--wp--preset--color--brand);
	font-weight: 800;
	text-decoration: none;
}

.qcv-legacy-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.qcv-legacy-tags a,
.qcv-legacy-language {
	display: inline-flex;
	padding: 6px 10px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 999px;
	color: var(--wp--preset--color--ink);
	background: #fff;
	text-decoration: none;
}

@media (max-width: 720px) {
	.qcv-header-inner {
		min-height: 64px;
	}

	.qcv-contact-bar {
		right: 8px;
		bottom: 8px;
		left: 8px;
		justify-content: center;
		border-radius: 12px;
	}

	.qcv-contact-bar a {
		flex: 1;
		min-width: 0;
	}

	.qcv-scroll-top {
		right: 12px;
		bottom: 76px;
	}

	.qcv-legacy-row {
		display: block;
		padding: 18px 12px;
	}

	.qcv-legacy-col {
		margin-bottom: 18px;
	}

	.qcv-legacy-menu-list,
	.qcv-legacy-actions {
		justify-content: center;
	}

	.qcv-legacy-carousel {
		grid-auto-columns: minmax(78%, 1fr);
	}

	.qcv-legacy-phone {
		align-items: center;
	}
}
