/* LuperIQ CMS - HVAC Theme
   Ported from WordPress luperiq-hvac theme v1.0.0
   For ComfortAir HVAC demo site */

/* ===== HVAC Theme Variables ===== */
:root {
    --luperiq-hvac-primary: #0f1115;
    --luperiq-hvac-accent: #22c55e;
    --luperiq-hvac-header-bg: #0f1115;
    --luperiq-hvac-header-text: #fff;
    --luperiq-hvac-shell-bg: #f6f7f8;
    --luperiq-hvac-surface: #fff;
    --luperiq-hvac-text: #111;
    --luperiq-hvac-link: #0b57d0;
    --luperiq-hvac-radius: 16px;
    --luperiq-hvac-container: 1100px;
    /* CMS base compat vars */
    --bg: #f6f7f8;
    --surface: #fff;
    --border: #e2e8f0;
    --text: #111;
    --text-muted: #64748b;
    --accent: #22c55e;
    --accent-hover: #16a34a;
    --font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    --mono: 'SF Mono', 'Fira Code', 'Fira Mono', 'Roboto Mono', monospace;
    --max-width: 1100px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--luperiq-hvac-header-bg, #0f1115);
    color: var(--luperiq-hvac-text, #111);
    font-family: var(--font);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; }

a { color: var(--luperiq-hvac-link, #0b57d0); }
a:hover { text-decoration: none; }

/* ===== Shell ===== */
.luperiq-hvac-demo-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--luperiq-hvac-shell-bg, #f6f7f8);
    color: var(--luperiq-hvac-text, #111);
}

.luperiq-hvac-has-sticky-footer {
    --luperiq-hvac-sticky-footer-h: 78px;
}

.luperiq-hvac-has-sticky-footer .luperiq-hvac-demo-shell {
    padding-bottom: calc(var(--luperiq-hvac-sticky-footer-h, 78px) + env(safe-area-inset-bottom));
}

/* ===== Theme Studio Blocks ===== */
.luperiq-ts-blocks { width: 100%; }
.luperiq-ts-block {
    background: var(--luperiq-hvac-surface, #fff);
    color: var(--luperiq-hvac-text, #111);
    border-bottom: 1px solid rgba(15, 17, 21, 0.08);
}
.luperiq-ts-block.is-tone-muted { background: rgba(15, 17, 21, 0.04); }
.luperiq-ts-block.is-tone-accent { background: var(--luperiq-hvac-accent, #22c55e); color: #fff; }
.luperiq-ts-block.is-tone-primary { background: var(--luperiq-hvac-primary, #0f1115); color: #fff; }

.luperiq-ts-block-inner {
    max-width: var(--luperiq-hvac-container, 1100px);
    margin: 0 auto;
    padding: 12px 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
}

.luperiq-ts-announcement {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
    align-items: center;
    justify-content: space-between;
}
.luperiq-ts-announcement-text { font-weight: 850; }
.luperiq-ts-announcement-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    border-radius: calc(var(--luperiq-hvac-radius, 16px) * 0.7);
    text-decoration: none;
    font-weight: 850;
    border: 1px solid rgba(255, 255, 255, 0.38);
    color: inherit;
}
.luperiq-ts-block.is-tone-surface .luperiq-ts-announcement-link,
.luperiq-ts-block.is-tone-muted .luperiq-ts-announcement-link {
    border-color: rgba(15, 17, 21, 0.18);
}
.luperiq-ts-announcement-link:hover { filter: brightness(1.04); }

.luperiq-ts-cta-bar {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
    align-items: center;
    justify-content: space-between;
}
.luperiq-ts-cta-copy { display: grid; gap: 2px; min-width: 220px; }
.luperiq-ts-cta-title { font-weight: 900; font-size: 14px; }
.luperiq-ts-cta-text { font-size: 13px; opacity: 0.9; }

.luperiq-ts-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: calc(var(--luperiq-hvac-radius, 16px) * 0.75);
    text-decoration: none;
    font-weight: 850;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: inherit;
}
.luperiq-ts-block.is-tone-surface .luperiq-ts-cta-button,
.luperiq-ts-block.is-tone-muted .luperiq-ts-cta-button {
    background: rgba(15, 17, 21, 0.06);
    border-color: rgba(15, 17, 21, 0.14);
}
.luperiq-ts-cta-button:hover { filter: brightness(1.05); }
.luperiq-ts-html { width: 100%; }

/* ===== Header ===== */
.luperiq-hvac-demo-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--luperiq-hvac-header-bg, #0f1115);
    color: var(--luperiq-hvac-header-text, #fff);
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    backdrop-filter: saturate(1.1);
}
.luperiq-hvac-demo-header.is-not-sticky { position: relative; top: auto; }

.luperiq-hvac-demo-header-inner {
    max-width: var(--luperiq-hvac-container, 1100px);
    margin: 0 auto;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}
.luperiq-hvac-demo-header.has-ts-layout .luperiq-hvac-demo-header-inner { display: block; }
.luperiq-hvac-demo-header.is-centered .luperiq-hvac-demo-header-inner { justify-content: center; }
.luperiq-hvac-demo-header.is-centered .luperiq-hvac-demo-brand { align-items: center; text-align: center; }
.luperiq-hvac-demo-header.is-centered .luperiq-hvac-demo-nav { justify-content: center; }
.luperiq-hvac-demo-header.is-split .luperiq-hvac-demo-header-inner { justify-content: center; }
.luperiq-hvac-demo-header.is-split .luperiq-hvac-demo-brand { flex-basis: 100%; align-items: center; text-align: center; }
.luperiq-hvac-demo-header.is-split .luperiq-hvac-demo-nav { flex: 1 1 100%; justify-content: space-between; }
.luperiq-hvac-demo-header.is-split .luperiq-hvac-demo-nav-menu { justify-content: flex-start; }
.luperiq-hvac-demo-header.is-split .luperiq-hvac-demo-nav-ctas { margin-left: auto; }

.luperiq-hvac-demo-brand { display: flex; flex-direction: column; gap: 2px; }
.luperiq-hvac-demo-brand-link {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.luperiq-hvac-demo-brand-name { font-size: 18px; font-weight: 900; letter-spacing: 0.2px; line-height: 1.1; }
.luperiq-hvac-demo-brand-name.has-logo { font-size: 16px; }
.luperiq-hvac-demo-logo-wrap { display: inline-flex; align-items: center; justify-content: center; }
.luperiq-hvac-demo-logo { height: 44px; width: auto; max-width: 180px; display: block; }
.luperiq-hvac-demo-brand-subtitle { font-size: 13px; opacity: 0.78; line-height: 1.2; }

/* Nav toggle (hamburger) */
.luperiq-hvac-demo-nav-toggle {
    display: none;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
    color: inherit;
    border-radius: calc(var(--luperiq-hvac-radius, 16px) * 0.75);
    padding: 10px 12px;
    font-weight: 850;
    cursor: pointer;
    align-items: center;
    gap: 10px;
}
.luperiq-hvac-demo-nav-toggle:hover { background: rgba(255, 255, 255, 0.12); }

.luperiq-hvac-demo-nav-toggle-lines {
    position: relative;
    display: inline-block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}
.luperiq-hvac-demo-nav-toggle-lines::before,
.luperiq-hvac-demo-nav-toggle-lines::after {
    content: "";
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}
.luperiq-hvac-demo-nav-toggle-lines::before { top: -6px; }
.luperiq-hvac-demo-nav-toggle-lines::after { top: 6px; }

/* Navigation */
.luperiq-hvac-demo-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
}
.luperiq-hvac-demo-nav-link {
    color: rgba(255, 255, 255, 0.90);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    padding: 8px 10px;
    border-radius: calc(var(--luperiq-hvac-radius, 16px) * 0.7);
}
.luperiq-hvac-demo-nav-link:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.luperiq-hvac-demo-nav-link.is-cta {
    border: 1px solid rgba(255, 255, 255, 0.20);
    color: var(--luperiq-hvac-header-text, #fff);
}

@supports (background: color-mix(in srgb, white 10%, transparent)) {
    .luperiq-hvac-demo-nav-link.is-cta {
        border-color: color-mix(in srgb, var(--luperiq-hvac-accent, #22c55e) 35%, transparent);
        color: color-mix(in srgb, var(--luperiq-hvac-header-text, #fff) 92%, var(--luperiq-hvac-accent, #22c55e));
    }
}

.luperiq-hvac-demo-nav-link.is-cta.is-primary { background: rgba(255, 255, 255, 0.12); }

@supports (background: color-mix(in srgb, white 10%, transparent)) {
    .luperiq-hvac-demo-nav-link.is-cta.is-primary {
        background: color-mix(in srgb, var(--luperiq-hvac-accent, #22c55e) 26%, transparent);
        border-color: color-mix(in srgb, var(--luperiq-hvac-accent, #22c55e) 60%, transparent);
        color: #fff;
    }
}

.luperiq-hvac-demo-nav-link.is-cta.is-outline { background: transparent; }
.luperiq-hvac-demo-nav-link.is-cta.is-ghost { background: rgba(255, 255, 255, 0.08); }
.luperiq-hvac-demo-nav-link.is-cta:hover { background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.32); }

@supports (background: color-mix(in srgb, white 10%, transparent)) {
    .luperiq-hvac-demo-nav-link.is-cta.is-outline:hover {
        background: color-mix(in srgb, var(--luperiq-hvac-accent, #22c55e) 16%, transparent);
        border-color: color-mix(in srgb, var(--luperiq-hvac-accent, #22c55e) 65%, transparent);
    }
    .luperiq-hvac-demo-nav-link.is-cta.is-ghost:hover {
        background: color-mix(in srgb, var(--luperiq-hvac-accent, #22c55e) 14%, transparent);
        border-color: color-mix(in srgb, var(--luperiq-hvac-accent, #22c55e) 45%, transparent);
    }
    .luperiq-hvac-demo-nav-link.is-cta.is-primary:hover {
        background: color-mix(in srgb, var(--luperiq-hvac-accent, #22c55e) 34%, transparent);
        border-color: color-mix(in srgb, var(--luperiq-hvac-accent, #22c55e) 75%, transparent);
    }
}

.luperiq-hvac-demo-nav-menu {
    margin: 0; padding: 0; list-style: none;
    display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: flex-end;
}
.luperiq-hvac-demo-nav-menu a {
    display: inline-flex; align-items: center;
    padding: 8px 10px;
    border-radius: calc(var(--luperiq-hvac-radius, 16px) * 0.7);
    text-decoration: none; font-weight: 700; font-size: 14px;
    color: rgba(255, 255, 255, 0.90);
}
.luperiq-hvac-demo-nav-menu a:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.luperiq-hvac-demo-nav-ctas { display: flex; flex-wrap: wrap; gap: 10px; }

/* ===== Main Content ===== */
.luperiq-hvac-demo-main { flex: 1; }
.luperiq-hvac-demo-container {
    max-width: var(--luperiq-hvac-container, 1100px);
    margin: 0 auto;
    padding: 26px 18px 50px;
}

/* Page content (for blueprint pages) */
.page-article h1 {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin-bottom: 18px;
    color: var(--luperiq-hvac-text, #111);
}

.page-content {
    font-size: 17px;
    line-height: 1.8;
    color: #334155;
}
.page-content h2 { font-size: 24px; font-weight: 600; margin: 40px 0 16px; color: var(--text); }
.page-content h3 { font-size: 20px; font-weight: 600; margin: 32px 0 12px; color: var(--text); }
.page-content p { margin-bottom: 16px; }
.page-content a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.page-content a:hover { color: var(--accent-hover); }
.page-content ul, .page-content ol { margin: 16px 0; padding-left: 24px; }
.page-content li { margin-bottom: 8px; }
.page-content blockquote {
    border-left: 3px solid var(--accent);
    padding: 12px 20px; margin: 24px 0;
    background: var(--surface);
    border-radius: 0 6px 6px 0;
    color: var(--text-muted);
    font-style: italic;
}
.page-content pre {
    background: #0f172a; color: #e2e8f0;
    padding: 20px; border-radius: 8px;
    overflow-x: auto; margin: 24px 0;
    font-family: var(--mono); font-size: 14px; line-height: 1.6;
}
.page-content code { font-family: var(--mono); background: var(--surface); padding: 2px 6px; border-radius: 4px; font-size: 0.9em; }
.page-content pre code { background: transparent; padding: 0; }
.page-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 24px 0; }
.page-content hr { border: none; border-top: 1px solid var(--border); margin: 40px 0; }
.page-content table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.page-content th, .page-content td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border); }
.page-content th { font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); }

/* Section headers & card elements */
.luperiq-hvac-section-header {
    margin: 0 0 18px; padding: 18px;
    border-radius: var(--luperiq-hvac-radius, 16px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: var(--luperiq-hvac-surface, #fff);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}
.luperiq-hvac-muted { margin: 8px 0 0; color: rgba(0, 0, 0, 0.68); font-weight: 650; }

.luperiq-hvac-demo-page { display: grid; gap: 14px; }
.luperiq-hvac-demo-page-header {
    display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.luperiq-hvac-demo-page-title { margin: 0 0 18px; font-size: 32px; letter-spacing: -0.5px; }

/* ===== Footer ===== */
.luperiq-hvac-demo-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    background: var(--luperiq-hvac-surface, #fff);
}
.luperiq-hvac-demo-footer-inner {
    max-width: var(--luperiq-hvac-container, 1100px);
    margin: 0 auto; padding: 22px 18px;
    display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: start;
}
.luperiq-hvac-demo-footer.has-ts-layout .luperiq-hvac-demo-footer-inner { display: block; }
.luperiq-hvac-demo-footer.is-minimal .luperiq-hvac-demo-footer-inner {
    grid-template-columns: 1fr; justify-items: center; text-align: center;
}

.luperiq-hvac-demo-footer-brand { display: grid; gap: 6px; }
.luperiq-hvac-demo-footer-brand-link {
    display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none;
}
.luperiq-hvac-demo-footer-brand-name { font-weight: 900; }
.luperiq-hvac-demo-footer-logo { height: 34px; width: auto; max-width: 160px; display: block; }
.luperiq-hvac-demo-footer-sub {
    display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
    color: rgba(0, 0, 0, 0.65); font-size: 13px; font-weight: 650;
}
.luperiq-hvac-demo-footer-sub a { color: inherit; }

.luperiq-hvac-demo-footer-columns {
    grid-column: 1 / -1;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; padding-top: 8px;
}
.luperiq-hvac-demo-footer-col-title { font-weight: 900; letter-spacing: 0.1px; margin-bottom: 10px; }
.luperiq-hvac-demo-footer-text { color: rgba(0, 0, 0, 0.70); font-size: 13px; line-height: 1.65; }
.luperiq-hvac-demo-footer-menu {
    margin: 0; padding: 0; list-style: none; display: grid; gap: 8px;
}
.luperiq-hvac-demo-footer-menu a { color: rgba(0, 0, 0, 0.72); text-decoration: none; font-size: 13px; font-weight: 700; }
.luperiq-hvac-demo-footer-menu a:hover { text-decoration: underline; }

.luperiq-hvac-demo-footer-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.luperiq-hvac-demo-footer-button {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 9px 12px;
    border-radius: calc(var(--luperiq-hvac-radius, 16px) * 0.7);
    border: 1px solid rgba(15, 17, 21, 0.14);
    background: rgba(15, 17, 21, 0.04);
    color: rgba(15, 17, 21, 0.92);
    text-decoration: none; font-weight: 850; font-size: 13px;
}
.luperiq-hvac-demo-footer-button:hover { background: rgba(15, 17, 21, 0.06); border-color: rgba(15, 17, 21, 0.22); }
.luperiq-hvac-demo-footer-button.is-outline { background: transparent; }
.luperiq-hvac-demo-footer-button.is-ghost { background: rgba(15, 17, 21, 0.02); border-color: rgba(15, 17, 21, 0.10); }

@supports (background: color-mix(in srgb, white 10%, transparent)) {
    .luperiq-hvac-demo-footer-button.is-primary {
        background: color-mix(in srgb, var(--luperiq-hvac-accent, #22c55e) 18%, rgba(255, 255, 255, 1));
        border-color: color-mix(in srgb, var(--luperiq-hvac-accent, #22c55e) 40%, rgba(15, 17, 21, 0.10));
        color: rgba(15, 17, 21, 0.92);
    }
    .luperiq-hvac-demo-footer-button.is-primary:hover {
        background: color-mix(in srgb, var(--luperiq-hvac-accent, #22c55e) 26%, rgba(255, 255, 255, 1));
        border-color: color-mix(in srgb, var(--luperiq-hvac-accent, #22c55e) 55%, rgba(15, 17, 21, 0.10));
    }
    .luperiq-hvac-demo-footer-button.is-outline:hover {
        background: color-mix(in srgb, var(--luperiq-hvac-accent, #22c55e) 10%, rgba(255, 255, 255, 1));
        border-color: color-mix(in srgb, var(--luperiq-hvac-accent, #22c55e) 55%, rgba(15, 17, 21, 0.10));
    }
}

.luperiq-hvac-demo-footer-bottom {
    grid-column: 1 / -1;
    display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between;
    padding-top: 14px; border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.luperiq-hvac-demo-footer.is-minimal .luperiq-hvac-demo-footer-bottom {
    justify-content: center; text-align: center;
}
.luperiq-hvac-demo-footer-social {
    display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
}
.luperiq-hvac-demo-footer-social a { color: rgba(0, 0, 0, 0.65); font-size: 13px; font-weight: 750; text-decoration: none; }
.luperiq-hvac-demo-footer-social a:hover { text-decoration: underline; }
.luperiq-hvac-demo-footer-meta { color: rgba(0, 0, 0, 0.65); font-size: 13px; }

/* ===== Sticky Footer Bar ===== */
.luperiq-hvac-sticky-footer {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.92);
    border-top: 1px solid rgba(0, 0, 0, 0.10);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px) saturate(1.05);
}
.luperiq-hvac-sticky-footer-inner {
    max-width: var(--luperiq-hvac-container, 1100px);
    margin: 0 auto;
    display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between;
}
.luperiq-hvac-sticky-footer-text { font-weight: 800; color: rgba(15, 17, 21, 0.72); font-size: 13px; }
.luperiq-hvac-sticky-footer-buttons { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.luperiq-hvac-sticky-footer-btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 10px 12px;
    border-radius: calc(var(--luperiq-hvac-radius, 16px) * 0.75);
    border: 1px solid rgba(15, 17, 21, 0.14);
    background: rgba(15, 17, 21, 0.04);
    color: rgba(15, 17, 21, 0.92);
    text-decoration: none; font-weight: 850; font-size: 13px;
}
.luperiq-hvac-sticky-footer-btn:hover { background: rgba(15, 17, 21, 0.06); border-color: rgba(15, 17, 21, 0.22); }
.luperiq-hvac-sticky-footer-btn.is-outline { background: transparent; }
.luperiq-hvac-sticky-footer-btn.is-ghost { background: rgba(15, 17, 21, 0.02); border-color: rgba(15, 17, 21, 0.10); }
.luperiq-hvac-sticky-footer-btn.is-primary { background: var(--luperiq-hvac-primary, #0f1115); color: #fff; border-color: transparent; }
.luperiq-hvac-sticky-footer-btn.is-primary:hover { filter: brightness(1.06); }

/* ===== Cards, Heroes, Sections ===== */
.luperiq-hvac-card {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--luperiq-hvac-radius, 16px);
    padding: 18px;
    background: var(--luperiq-hvac-surface, #fff);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

.luperiq-hvac-hero {
    position: relative; overflow: hidden;
    display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; padding: 20px;
    border-radius: var(--luperiq-hvac-radius, 16px);
    background:
        radial-gradient(circle at 18% 18%, rgba(34, 197, 94, 0.12), transparent 55%),
        radial-gradient(circle at 82% 10%, rgba(15, 17, 21, 0.08), transparent 46%),
        var(--luperiq-hvac-surface, #fff);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
    margin: 0 0 18px;
}

@supports (background: color-mix(in srgb, white 10%, transparent)) {
    .luperiq-hvac-hero {
        background:
            radial-gradient(circle at 18% 18%, color-mix(in srgb, var(--luperiq-hvac-accent, #22c55e) 24%, transparent), transparent 55%),
            radial-gradient(circle at 82% 10%, color-mix(in srgb, var(--luperiq-hvac-primary, #0f1115) 14%, transparent), transparent 46%),
            var(--luperiq-hvac-surface, #fff);
    }
}

.luperiq-hvac-hero-bg {
    position: absolute; inset: -28px;
    background-size: cover; background-position: center;
    opacity: 0.24; filter: saturate(0.9) contrast(0.95);
    transform: scale(1.03); pointer-events: none;
}
.luperiq-hvac-hero.has-image::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.76) 55%, rgba(255, 255, 255, 0.9) 100%);
    pointer-events: none;
}
.luperiq-hvac-hero-left, .luperiq-hvac-hero-right { position: relative; z-index: 1; }
.luperiq-hvac-hero-title { margin: 0; font-size: 34px; letter-spacing: -0.6px; }
.luperiq-hvac-hero-subtitle { margin: 8px 0 0; font-weight: 750; color: rgba(0, 0, 0, 0.72); }
.luperiq-hvac-hero-lead { margin: 12px 0 0; color: rgba(0, 0, 0, 0.72); }

.luperiq-hvac-hero-badges {
    margin: 14px 0 0; padding: 0; list-style: none;
    display: flex; flex-wrap: wrap; gap: 8px;
}
.luperiq-hvac-hero-badge {
    display: inline-flex; align-items: center; padding: 6px 10px;
    border-radius: 999px; font-size: 13px; font-weight: 750;
    background: rgba(15, 17, 21, 0.06); border: 1px solid rgba(15, 17, 21, 0.10);
    color: rgba(0, 0, 0, 0.78);
}

@supports (background: color-mix(in srgb, white 10%, transparent)) {
    .luperiq-hvac-hero-badge {
        background: color-mix(in srgb, var(--luperiq-hvac-accent, #22c55e) 14%, rgba(255, 255, 255, 1));
        border-color: color-mix(in srgb, var(--luperiq-hvac-accent, #22c55e) 32%, rgba(15, 17, 21, 0.12));
    }
}

.luperiq-hvac-hero-actions { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px; }
.luperiq-hvac-hero-right .luperiq-hvac-wrap { max-width: none; }

.luperiq-hvac-front-content { padding: 0; margin: 0 0 24px; }
.luperiq-hvac-prose :is(p, ul, ol, pre, blockquote) { margin: 0 0 12px; }
.luperiq-hvac-prose :is(h2, h3) { margin: 18px 0 10px; letter-spacing: -0.2px; }
.luperiq-hvac-prose ul, .luperiq-hvac-prose ol { padding-left: 1.2em; }

.luperiq-hvac-front-section-title { margin: 22px 0 12px; font-size: 22px; letter-spacing: -0.3px; }
.luperiq-hvac-front-section { margin: 24px 0; display: grid; gap: 14px; }
.luperiq-hvac-section-kicker {
    margin: 0; font-size: 11px; letter-spacing: 0.18em;
    text-transform: uppercase; color: rgba(0, 0, 0, 0.58); font-weight: 750;
}
.luperiq-hvac-section-title { margin: 6px 0 0; font-size: 26px; letter-spacing: -0.4px; }
.luperiq-hvac-section-lead { margin: 10px 0 0; color: rgba(0, 0, 0, 0.72); }
.luperiq-hvac-section-header.is-split {
    display: flex; align-items: flex-end; justify-content: space-between; gap: 18px;
}
.luperiq-hvac-section-actions {
    display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end;
}

/* Feature grid */
.luperiq-hvac-feature-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px;
}
.luperiq-hvac-feature-card {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: calc(var(--luperiq-hvac-radius, 16px) * 0.9);
    padding: 16px;
    background: var(--luperiq-hvac-surface, #fff);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.05);
}
.luperiq-hvac-feature-card h3 { margin: 0 0 6px; font-size: 16px; letter-spacing: -0.2px; }
.luperiq-hvac-feature-card p { margin: 0; color: rgba(0, 0, 0, 0.72); }

/* Tags */
.luperiq-hvac-tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.luperiq-hvac-tag {
    display: inline-flex; align-items: center; padding: 6px 10px;
    border-radius: 999px; border: 1px solid rgba(0, 0, 0, 0.10);
    background: rgba(15, 17, 21, 0.06); font-size: 13px; font-weight: 750;
}

/* Steps */
.luperiq-hvac-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.luperiq-hvac-step {
    display: flex; gap: 12px; align-items: flex-start;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: calc(var(--luperiq-hvac-radius, 16px) * 0.9);
    padding: 16px;
    background: var(--luperiq-hvac-surface, #fff);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.05);
}
.luperiq-hvac-step-number {
    width: 34px; height: 34px; border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--luperiq-hvac-primary, #0f1115); color: #fff; font-weight: 800;
}
.luperiq-hvac-step h3 { margin: 0 0 6px; font-size: 16px; letter-spacing: -0.2px; }
.luperiq-hvac-step p { margin: 0; color: rgba(0, 0, 0, 0.72); }

/* Service area */
.luperiq-hvac-location-list { display: flex; flex-wrap: wrap; gap: 8px; }
.luperiq-hvac-service-area-grid {
    display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 16px; align-items: start;
}
.luperiq-hvac-service-area-grid.is-map-only { grid-template-columns: 1fr; }
.luperiq-hvac-service-area-list { display: grid; gap: 12px; }
.luperiq-hvac-location-pill {
    display: inline-flex; align-items: center; padding: 7px 12px;
    border-radius: 999px; border: 1px solid rgba(0, 0, 0, 0.10);
    background: rgba(15, 17, 21, 0.06); font-weight: 750;
}
.luperiq-hvac-service-area-map {
    border-radius: calc(var(--luperiq-hvac-radius, 16px) * 0.9);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(15, 17, 21, 0.06);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.06);
    aspect-ratio: 4 / 3;
}
.luperiq-hvac-service-area-map iframe {
    width: 100%; height: 100%; min-height: 260px; border: 0; display: block;
}

/* CTA Card */
.luperiq-hvac-cta-card {
    border-radius: var(--luperiq-hvac-radius, 16px);
    padding: 20px;
    background: var(--luperiq-hvac-primary, #0f1115);
    color: #fff;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.luperiq-hvac-cta-title { margin: 0 0 6px; font-size: 24px; letter-spacing: -0.4px; }
.luperiq-hvac-cta-text { margin: 0; color: rgba(255, 255, 255, 0.82); }
.luperiq-hvac-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.luperiq-hvac-cta-card .luperiq-hvac-button-link { background: #fff; color: #111; }
.luperiq-hvac-cta-card .luperiq-hvac-link-muted { background: rgba(255, 255, 255, 0.16); color: #fff; }
.luperiq-hvac-cta-card .luperiq-hvac-link-muted:hover { background: rgba(255, 255, 255, 0.24); color: #fff; }

/* Plan cards */
.luperiq-hvac-plan-card-image {
    width: 100%; aspect-ratio: 16 / 9; border-radius: 14px;
    overflow: hidden; background: rgba(15, 17, 21, 0.06); border: 1px solid rgba(15, 17, 21, 0.10);
}
.luperiq-hvac-plan-card-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.luperiq-hvac-plan-card-image.is-placeholder {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.16), rgba(59, 130, 246, 0.10));
}
.luperiq-hvac-plan-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px;
    margin: 0; padding: 0; list-style: none;
}
.luperiq-hvac-plan-card {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--luperiq-hvac-radius, 16px);
    padding: 18px;
    background: var(--luperiq-hvac-surface, #fff);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
    display: flex; flex-direction: column; gap: 10px;
}
.luperiq-hvac-plan-card-title { margin: 0; font-size: 18px; font-weight: 900; letter-spacing: -0.2px; }
.luperiq-hvac-plan-card-title a { color: inherit; text-decoration: none; }
.luperiq-hvac-plan-card-meta {
    display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
    color: rgba(0, 0, 0, 0.68); font-size: 13px; font-weight: 650;
}
.luperiq-hvac-pill {
    display: inline-flex; align-items: center; padding: 6px 10px;
    border-radius: 999px; background: rgba(15, 17, 21, 0.06); border: 1px solid rgba(15, 17, 21, 0.10);
}
.luperiq-hvac-plan-card-actions { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; }

/* Button links */
.luperiq-hvac-button-link {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 12px;
    border-radius: calc(var(--luperiq-hvac-radius, 16px) * 0.75);
    text-decoration: none; font-weight: 850;
    color: #fff; background: var(--luperiq-hvac-primary, #0f1115);
}
.luperiq-hvac-button-link:hover { filter: brightness(1.05); }
.luperiq-hvac-link-muted {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 12px;
    border-radius: calc(var(--luperiq-hvac-radius, 16px) * 0.75);
    text-decoration: none; font-weight: 850;
    color: rgba(15, 17, 21, 0.72); background: rgba(15, 17, 21, 0.06);
}
.luperiq-hvac-link-muted:hover { background: rgba(15, 17, 21, 0.10); color: #111; }

/* Wrap override */
.luperiq-hvac-wrap { max-width: var(--luperiq-hvac-container, 1100px); padding: 0; }

/* Plan detail */
.luperiq-hvac-plan-layout {
    display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 16px; align-items: start;
}

/* ===== Blog listing (CMS compat) ===== */
.blog-listing h1 { font-size: 32px; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 32px; }
.blog-card { padding: 24px 0; border-bottom: 1px solid rgba(0, 0, 0, 0.08); }
.blog-card:last-child { border-bottom: none; }
.blog-card h2 { font-size: 22px; font-weight: 600; margin-bottom: 4px; }
.blog-card h2 a { color: var(--text); text-decoration: none; }
.blog-card h2 a:hover { color: var(--accent); }
.blog-date { font-size: 13px; color: rgba(0, 0, 0, 0.58); display: block; margin-bottom: 8px; }
.blog-excerpt { color: rgba(0, 0, 0, 0.65); line-height: 1.6; }
.blog-empty { color: var(--text-muted); padding: 40px 0; text-align: center; }
.blog-post-date { font-size: 14px; color: rgba(0, 0, 0, 0.58); display: block; margin-bottom: 32px; }
.blog-post-nav { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(0, 0, 0, 0.08); }
.blog-post-nav a { color: var(--accent); text-decoration: none; font-weight: 500; }
.blog-post-nav a:hover { text-decoration: underline; }

/* ===== 404 ===== */
.error-page { text-align: center; padding: 80px 20px; }
.error-page h1 { font-size: 72px; color: rgba(0, 0, 0, 0.12); margin-bottom: 8px; }
.error-subtitle { font-size: 22px; color: var(--text-muted); margin-bottom: 16px; }
.error-detail { color: var(--text-muted); font-size: 15px; margin-bottom: 24px; }
.error-detail code { font-family: var(--mono); background: var(--surface); padding: 2px 8px; border-radius: 4px; }
.btn-link { color: var(--accent); text-decoration: none; font-weight: 500; }
.btn-link:hover { text-decoration: underline; }

/* ===== Products (CMS compat) ===== */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; padding: 20px 0; }
.product-card {
    background: var(--luperiq-hvac-surface, #fff); border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: calc(var(--luperiq-hvac-radius, 16px) * 0.9); padding: 20px;
    transition: box-shadow 0.2s;
}
.product-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.product-card h2 { font-size: 1.1rem; margin: 12px 0 8px; }
.product-card h2 a { color: inherit; text-decoration: none; }
.product-card h2 a:hover { color: var(--accent); }
.product-card-image { width: 100%; height: 180px; object-fit: cover; border-radius: 6px; }
.product-card-desc { color: rgba(0, 0, 0, 0.65); font-size: 0.9rem; margin: 8px 0; }
.product-card-price { font-size: 1.25rem; font-weight: 700; color: var(--accent); }
.product-cat-badge { display: inline-block; background: var(--accent); color: #fff; font-size: 0.75rem; padding: 2px 8px; border-radius: 12px; margin: 4px 4px 0 0; }
.product-single { max-width: 800px; margin: 0 auto; padding: 20px; }
.product-single-image { width: 100%; max-height: 400px; object-fit: cover; border-radius: 8px; margin-bottom: 20px; }
.product-single-price { font-size: 1.5rem; font-weight: 700; color: var(--accent); margin: 16px 0; }
.product-description { line-height: 1.7; }

/* ===== Responsive ===== */
@media (min-width: 980px) {
    .luperiq-hvac-plan-aside { position: sticky; top: 92px; }
}

@media (max-width: 900px) {
    .luperiq-hvac-plan-layout { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
    .luperiq-hvac-demo-header-inner { justify-content: space-between; }
    .luperiq-hvac-demo-nav {
        display: none; width: 100%;
        flex-direction: column; align-items: stretch; justify-content: flex-start;
        padding-top: 6px; gap: 6px;
    }
    .luperiq-hvac-demo-nav.is-open { display: flex; }
    .luperiq-hvac-demo-nav-menu { flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 6px; }
    .luperiq-hvac-demo-nav-ctas { margin-top: 6px; }
    .luperiq-hvac-demo-nav-link,
    .luperiq-hvac-demo-nav-menu a {
        justify-content: space-between; padding: 10px 12px;
        background: rgba(255, 255, 255, 0.06);
    }
    .luperiq-hvac-demo-nav-toggle { display: inline-flex; }
    .luperiq-hvac-hero { grid-template-columns: 1fr; }
    .luperiq-hvac-section-header.is-split { flex-direction: column; align-items: flex-start; }
    .luperiq-hvac-section-actions { justify-content: flex-start; }
    .luperiq-hvac-cta-card { align-items: flex-start; }
    .luperiq-hvac-section-header { padding: 16px; }
    .luperiq-hvac-service-area-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .page-article h1 { font-size: 28px; }
    .page-content { font-size: 16px; }
}

@media (max-width: 560px) {
    .luperiq-hvac-has-sticky-footer { --luperiq-hvac-sticky-footer-h: 70px; }
    .luperiq-hvac-sticky-footer-text { display: none; }
    .luperiq-hvac-sticky-footer-buttons { width: 100%; justify-content: space-between; }
    .luperiq-hvac-sticky-footer-btn { flex: 1; }
    .luperiq-hvac-hero { padding: 16px; }
    .luperiq-hvac-hero-title { font-size: 28px; }
    .luperiq-hvac-section-title { font-size: 22px; }
    .luperiq-hvac-cta-card { padding: 16px; }
    .luperiq-hvac-cta-title { font-size: 20px; }
}
