/* QUEENTILE — site-wide styles that sit under the Elementor templates.
   Colors and fonts come from Elementor's global kit (Site Settings); these are
   the pieces the free Elementor/Xpro widgets can't express, ported from the
   Astro site's global.css. */

:root {
	--qt-slate: var(--e-global-color-primary, #363636);
	--qt-accent: var(--e-global-color-accent, #8c6900);
	--qt-accent-dark: var(--e-global-color-secondary, #6e5200);
	--qt-ink: var(--e-global-color-text, #363636);
	--qt-bone: #ffffff;
	--qt-gold: #cc9900;
	--qt-gold-hover: #b38600;
	--qt-soft: #cc9900;
	--qt-bone-2: #f5f5f5;
	--qt-line: #e6e6e6;
	--qt-gray: #5c5c5c;
}

body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: var(--qt-accent); color: #fff; }
:where(a, button, summary, [tabindex]):focus-visible { outline: 3px solid var(--qt-accent); outline-offset: 3px; }

/* Elementor's kit button style targets every <button> (.elementor-kit-N button).
   The plugin's picker buttons are not call-to-action buttons, so reset them with
   a higher-specificity selector. */
.qt-colors .qt-colors__swatch,
.qt-visualizer .qt-visualizer__swatch,
.qt-video .qt-video__clips button {
	background: transparent !important;
	color: inherit !important;
	box-shadow: none;
	font-family: inherit;
	font-size: .85rem;
	font-weight: 600;
	letter-spacing: normal;
	text-transform: none;
	line-height: 1.3;
}
.qt-colors .qt-colors__swatch { padding: .4em; border: 2px solid transparent; border-radius: 8px; }
.qt-colors .qt-colors__swatch.is-active, .qt-colors .qt-colors__swatch:hover { border-color: var(--qt-accent); }
.qt-colors .qt-colors__swatch small { font-weight: 400; color: var(--qt-gray); }
.qt-visualizer .qt-visualizer__swatch { padding: 0; border: 0; color: var(--qt-gray) !important; }
.qt-visualizer .qt-visualizer__swatch.is-active { color: var(--qt-accent) !important; }
.qt-video .qt-video__clips button { padding: 0; border: 2px solid transparent; border-radius: 6px; }
.qt-video .qt-video__clips button.is-active { border-color: var(--qt-accent); }

/* Header CTA never wraps */
.qt-header .elementor-button { white-space: nowrap; }

/* Breadcrumbs ([qt_breadcrumbs]) */
.qt-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 0 0 1.25rem; padding: 0; list-style: none; font-size: .78rem; }
.qt-crumbs li { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.qt-crumbs li + li::before { content: '›'; color: #b8b8b9; }
.qt-crumbs a { color: var(--qt-gray); text-decoration: none; }
.qt-crumbs a:hover { color: var(--qt-accent); text-decoration: underline; text-underline-offset: 3px; }
.qt-crumbs [aria-current='page'] { color: var(--qt-slate); font-weight: 600; }

/* Section titles printed by shortcodes (title="…") */
.qt-block-title { margin: 0 0 1.25rem; color: var(--qt-slate); font-size: clamp(1.5rem, 2.8vw, 2.1rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
.qt-lead { max-width: 46rem; color: var(--qt-gray); font-size: 1.08rem; line-height: 1.7; }
.qt-local-note { max-width: 46rem; }
.qt-title, .qt-location-title { margin: 0 0 .75rem; color: var(--qt-slate); font-size: clamp(1.9rem, 3.8vw, 2.7rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.12; }

/* Eyebrow label — add CSS class "qt-eyebrow" to any Elementor Heading/Text widget */
/* (Color comes from the widget's own Text Color, so eyebrows on dark bands can
   use the lighter green; a plain <p class="qt-eyebrow"> falls back to the accent.) */
.qt-eyebrow, .qt-eyebrow .elementor-heading-title { font-size: .72rem !important; font-weight: 600 !important; letter-spacing: .22em !important; text-transform: uppercase; }
p.qt-eyebrow { color: var(--qt-accent); }

/* Rich text in templates */
.qt-prose p { max-width: 48rem; line-height: 1.75; }
.qt-prose h2 { margin-top: 2rem; }
.qt-prose h3 { margin-top: 1.5rem; }

/* Header (Xpro header template) */
.qt-utility { font-size: .8rem; }
.qt-utility a { color: inherit; text-decoration: none; }
.qt-utility a:hover { color: #fff; }
.qt-utility p { margin: 0; }
.qt-header .xpro-elementor-horizontal-menu .sub-menu, .qt-header .xpro-elementor-horizontal-menu ul ul { min-width: 220px; }

/* Footer (Xpro footer template) */
.qt-footer h3, .qt-footer h4 { color: #fff; font-size: .75rem !important; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 1.1rem; }
.qt-footer ul { margin: 0; padding: 0; list-style: none; font-size: .92rem; }
.qt-footer li + li { margin-top: .55rem; }
.qt-footer a { color: rgba(255, 255, 255, .7); text-decoration: none; }
.qt-footer a:hover { color: #fff; }
.qt-legal a { color: rgba(255, 255, 255, .5); margin-left: .9rem; }
.qt-legal a:hover { color: #fff; }
.qt-legal p { margin: 0; }

/* Cards on dark backgrounds */
.qt-on-dark .qt-card__meta { opacity: .8; }

/* Plain pages (privacy, terms, FAQ…) rendered by Hello Elementor without an
   Elementor layout: give them the same page-hero band and reading width. */
body.page:not(.elementor-page) .site-main { max-width: none; padding: 0; }
body.page:not(.elementor-page) .page-header { background: var(--qt-bone-2); border-bottom: 1px solid var(--qt-line); padding: 2.2rem max(20px, calc((100% - 1200px) / 2)) 2.4rem; }
body.page:not(.elementor-page) .page-header .entry-title { margin: 0; color: var(--qt-slate); font-size: clamp(1.8rem, 3.6vw, 2.5rem); letter-spacing: -.02em; }
body.page:not(.elementor-page) .page-content { max-width: 1200px; margin: 0 auto; padding: 2.5rem 20px 4rem; }
body.page:not(.elementor-page) .page-content > p, body.page:not(.elementor-page) .page-content > ul { max-width: 48rem; line-height: 1.75; }
body.page:not(.elementor-page) .page-content h2 { margin-top: 2.2rem; }

/* "How it works" numbered steps: <div class="qt-steps"> with .qt-steps__grid > .qt-step */
.qt-steps { margin: 0 0 3rem; padding: 2.5rem clamp(1.25rem, 3vw, 2.5rem); background: var(--qt-bone-2); border-radius: 12px; }
.qt-steps .qt-eyebrow { margin: 0 0 .5rem; color: var(--qt-accent); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
body.page .page-content .qt-steps h2, .qt-steps h2 { margin: 0 0 1.75rem; color: var(--qt-slate); font-size: clamp(1.5rem, 2.8vw, 2.1rem); letter-spacing: -.02em; line-height: 1.15; }
.qt-steps__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.qt-step { padding: 1.6rem 1.5rem; background: #fff; border: 1px solid var(--qt-line); border-radius: 10px; }
.qt-step__no { margin: 0 0 .9rem; color: var(--qt-accent); font-size: 2.2rem; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
body.page .page-content .qt-step h3, .qt-step h3 { margin: 0 0 .5rem; color: var(--qt-slate); font-size: 1.2rem; }
.qt-steps .qt-step p { margin: 0; max-width: none; color: var(--qt-gray); line-height: 1.6; }
@media (max-width: 767px) { .qt-steps__grid { grid-template-columns: 1fr; } }

/* Two-tone display heading: wrap the second line in <span> */
.qt-two-tone span, .qt-two-tone .elementor-heading-title span { display: block; color: var(--qt-accent); }
.qt-on-dark.qt-two-tone span, .qt-on-dark .qt-two-tone span { color: var(--qt-soft, #cc9900); }

/* Home hero assurance bar */
.qt-assurances .elementor-icon-list-items { gap: .5rem 2rem; }

/* Photo gallery ([qt_photo_gallery]) */
.qt-photos__filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.qt-photos .qt-photos__filters button { padding: .5rem .95rem !important; border: 1px solid #d6d6d6 !important; border-radius: 999px !important; background: #fff !important; color: var(--qt-slate) !important; font: inherit; font-size: .85rem !important; font-weight: 600; letter-spacing: normal !important; text-transform: none !important; cursor: pointer; }
.qt-photos .qt-photos__filters button small { color: var(--qt-gray); font-weight: 400; margin-left: .2rem; }
.qt-photos .qt-photos__filters button.is-active { background: var(--qt-slate) !important; border-color: var(--qt-slate) !important; color: #fff !important; }
.qt-photos .qt-photos__filters button.is-active small { color: rgba(255, 255, 255, .7); }
.qt-photos__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.qt-photos__grid li[hidden] { display: none; }
.qt-photos__grid a { display: block; overflow: hidden; border-radius: 2px; }
.qt-photos__grid img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .35s ease; }
.qt-photos__grid a:hover img { transform: scale(1.04); }

/* Comparison table (home "by the numbers") */
.qt-compare { width: 100%; border-collapse: collapse; background: rgba(255, 255, 255, .97); color: var(--qt-ink); font-size: .88rem; }
.qt-compare th, .qt-compare td { padding: .7rem .8rem; border-bottom: 1px solid var(--qt-line); text-align: left; vertical-align: top; }
.qt-compare thead th { font-size: .8rem; letter-spacing: .04em; }
.qt-compare thead th small { display: block; font-weight: 400; color: var(--qt-gray); letter-spacing: 0; }
.qt-compare tbody th { font-weight: 600; color: var(--qt-slate); white-space: nowrap; }
.qt-compare .own { background: rgba(204, 153, 0, .12); color: var(--qt-accent-dark); font-weight: 600; }
.qt-compare-wrap { overflow-x: auto; }
.qt-footnote { font-size: .75rem; opacity: .75; margin-top: .75rem; }

/* Numbered lists (8 layers, goals) */
.qt-numbered ol { counter-reset: qt-n; list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.qt-numbered li { counter-increment: qt-n; position: relative; padding-left: 2.6rem; }
.qt-numbered li::before { content: counter(qt-n); position: absolute; left: 0; top: .1rem; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--qt-accent); color: #fff; font-size: .8rem; font-weight: 700; display: grid; place-items: center; }
.qt-numbered li strong { display: block; color: var(--qt-slate); }
.qt-numbered li p { margin: .15rem 0 0; color: var(--qt-gray); font-size: .92rem; }

/* Facts bar (About) */
.qt-fact .elementor-heading-title { color: var(--qt-slate); }

/* Hello Elementor: archive/page title spacing when no template overrides it */
.page-header .entry-title { color: var(--qt-slate); }

/* Roof tile "The range" switcher strip */
.qt-range { display: flex; align-items: center; gap: 24px; padding: 16px 0; }
.qt-range__label { flex: none; font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--qt-gray, #5c5c5c); }
.qt-range__list { display: flex; flex: 1; gap: 8px; margin: 0; padding: 0; list-style: none; flex-wrap: wrap; }
.qt-range__item { display: flex; align-items: center; gap: 12px; padding: 6px 12px 6px 6px; border: 1px solid transparent; border-radius: 3px; color: var(--qt-text, #363636); text-decoration: none; transition: border-color .15s, background-color .15s; }
.qt-range__item:hover { border-color: var(--qt-line, #e6e6e6); background: var(--qt-bone-2, #f5f5f5); color: var(--qt-text, #363636); }
.qt-range__item.is-current { border-color: var(--qt-gold, #cc9900); background: rgba(204,153,0,.08); }
.qt-range__img { width: 50px; height: 50px; object-fit: cover; border-radius: 2px; flex: none; }
.qt-range__text { display: flex; flex-direction: column; line-height: 1.3; }
.qt-range__name { font-size: 16px; font-weight: 600; }
.qt-range__item.is-current .qt-range__name { color: var(--qt-accent, #8c6900); }
.qt-range__tag { font-size: 14px; color: var(--qt-gray, #5c5c5c); }
.qt-range__all { flex: none; padding: 10px 18px; background: var(--qt-gold, #cc9900); color: var(--qt-ink, #363636); font-weight: 700; font-size: 14px; text-decoration: none; border-radius: 3px; white-space: nowrap; }
.qt-range__all:hover { background: var(--qt-gold-hover, #b38600); color: var(--qt-ink, #363636); }
@media (max-width: 1024px) {
	.qt-range { flex-wrap: wrap; gap: 12px; }
	.qt-range__label { width: 100%; }
	.qt-range__list { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 4px; }
	.qt-range__list li { flex: none; }
}
.qt-range-wrap { border-bottom: 1px solid var(--qt-line, #e6e6e6); margin-bottom: 8px; }
@media (min-width: 1025px) {
	.qt-range { gap: 16px; }
	.qt-range__list { flex-wrap: nowrap; gap: 4px; min-width: 0; }
	.qt-range__list li { flex: 0 1 auto; min-width: 0; }
	.qt-range__item { gap: 10px; padding: 5px 10px 5px 5px; min-width: 0; }
	.qt-range__img { width: 44px; height: 44px; }
	.qt-range__text { min-width: 0; }
	.qt-range__name { font-size: 15px; }
	.qt-range__tag { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
