/* Public page shell: the platform's base styles for every page the Rust
   shell renders (site_pages::base_templates::render_document_layout).
   Served as a cacheable file; only the brand colour variables stay inline.
   Edit here, not in the Rust source. */
/* Heading permalink anchors (emitted by the heading block for SEO
   deep-linking) must not read as a stray "#" beside every heading —
   only one theme hid them, so every other tenant showed the raw
   character. Hidden until the heading is hovered or the link is
   keyboard-focused. */
a.heading-anchor {
    color: inherit;
    text-decoration: none;
    font-weight: 400;
    font-size: 0.6em;
    margin-left: 0.4em;
    opacity: 0;
    transition: opacity .15s;
    vertical-align: super;
}
h1:hover a.heading-anchor,
h2:hover a.heading-anchor,
h3:hover a.heading-anchor,
h4:hover a.heading-anchor,
a.heading-anchor:focus-visible {
    opacity: .55;
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
h1, h2, h3, h4 { font-family: var(--luperiq-heading-font, var(--font-sans)); }
h1 { font-size: var(--luperiq-heading-size, 2rem); }
body { font-family: var(--font-sans); font-size: var(--luperiq-body-size, 16px); color: var(--color-text); background: var(--color-bg); line-height: var(--luperiq-body-line-height, 1.6); -webkit-font-smoothing: antialiased; overflow-x: hidden; }

/* ── Header ── */
.site-header { background: var(--luperiq-header-bg, var(--color-primary)); color: var(--luperiq-header-text, #fff); position: sticky; top: 0; z-index: 1000; box-shadow: var(--shadow); overflow: visible; }
.header-inner { max-width: var(--max-width); margin: 0 auto; padding: 12px 16px 10px; display: flex; flex-direction: column; align-items: stretch; justify-content: center; min-height: auto; gap: 8px; }
.header-brand-row { display: flex; align-items: center; justify-content: center; width: 100%; }
.header-brand { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; max-width: 100%; font-size: 20px; font-weight: 800; line-height: 1.15; color: var(--luperiq-header-text, #fff); text-align: center; text-decoration: none; white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
.header-brand-logo { display: block; max-width: min(380px, 92vw); max-height: 108px; width: auto; height: auto; object-fit: contain; }
.header-brand-name { display: block; max-width: 100%; }
.header-nav-row { display: flex; align-items: center; justify-content: center; width: 100%; gap: 12px; }
.header-phone { color: var(--luperiq-header-text, #fff); text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap; }
.header-phone:hover { opacity: 0.9; }
.header-nav { display: flex; gap: 4px; align-items: center; justify-content: center; flex: 1 1 auto; flex-wrap: wrap; min-width: 0; }
.nav-link { color: var(--luperiq-header-text, #fff); opacity: 0.85; text-decoration: none; padding: 8px 14px; border-radius: var(--radius); font-size: 14px; font-weight: 500; transition: background 0.2s, opacity 0.2s; white-space: nowrap; }
.nav-link:hover { background: rgba(0,0,0,0.06); opacity: 1; }
.nav-link-cta { background: var(--luperiq-accent, var(--color-accent, #2563eb)); color: var(--luperiq-button-text, #fff); opacity: 1; font-weight: 700; box-shadow: 0 6px 18px rgba(0,0,0,0.14); }
.nav-link-cta:hover { background: var(--luperiq-accent, var(--color-accent, #2563eb)); filter: brightness(1.08); }
.header-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.mobile-toggle { display: none; background: none; border: none; color: var(--luperiq-header-text, #fff); font-size: 24px; cursor: pointer; padding: 8px; min-width: 44px; min-height: 44px; }
.header-phone-mobile { display: none; }

/* ── Main ── */
.site-main { min-height: 60vh; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 16px; }
.section { padding: 60px 0; }
.section-alt { background: var(--color-bg-alt); }

/* ── Cards ── */
.card-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); transition: transform 0.2s, box-shadow 0.2s; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.card h2, .card h3 { font-size: 18px; margin-bottom: 8px; color: var(--luperiq-primary, var(--color-primary, #1e3a5f)); }
.card p { color: var(--color-text-light); font-size: 15px; }
.card .price { font-size: 16px; font-weight: 700; color: var(--luperiq-accent, var(--color-accent, #b45309)); margin-top: 12px; }

/* ── Block editor marketing blocks inside site pages ── */
.mktg-block-hero { padding: 34px 20px; border-radius: var(--radius); background: linear-gradient(135deg, var(--luperiq-primary, var(--color-primary, #0e7490)), var(--luperiq-accent, var(--color-accent, #22d3ee))); color: #fff; margin: 0 0 28px; box-shadow: var(--shadow-lg); }
.mktg-block-hero__kicker { text-transform: uppercase; letter-spacing: 0.12em; font-weight: 800; font-size: 12px; opacity: 0.9; margin-bottom: 10px; }
.mktg-block-hero__title { font-size: clamp(30px, 8vw, 54px); line-height: 1.04; margin: 0 0 16px; color: #fff; }
.mktg-block-hero__text { font-size: 17px; line-height: 1.72; max-width: 760px; margin: 0 0 18px; color: rgba(255,255,255,0.94); }
.mktg-block-hero__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 20px; }
.mktg-block-hero__chip { display: inline-flex; padding: 7px 11px; border-radius: var(--radius); background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.28); color: #fff; font-size: 13px; font-weight: 700; }
.mktg-block-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.mktg-block-hero__actions .btn { flex: 1 1 180px; }
.mktg-block-hero__actions .btn-outline { border-color: rgba(255,255,255,0.72); color: #fff; }
.mktg-block-hero__actions .btn-outline:hover { background: rgba(255,255,255,0.16); }
.mktg-feature-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 22px 0 30px; }
.mktg-feature-grid--cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mktg-feature-grid--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mktg-feature-grid--cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (min-width: 768px) and (max-width: 1023px) {
    .mktg-feature-grid--cols-3, .mktg-feature-grid--cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.mktg-feature-card { padding: 20px; border: 1px solid var(--color-border); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.mktg-feature-card__eyebrow { color: var(--luperiq-primary, var(--color-primary)); font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 6px; }
.mktg-feature-card__title { font-size: 20px; line-height: 1.24; color: var(--luperiq-primary, var(--color-primary)); margin: 0 0 8px; }
.mktg-feature-card__text { color: var(--color-text-light); font-size: 15px; line-height: 1.65; }
.mktg-note { border: 1px solid var(--color-border); border-left: 4px solid var(--luperiq-primary, var(--color-primary)); border-radius: var(--radius); background: var(--color-bg-alt); padding: 18px 20px; margin: 22px 0; }
.mktg-note strong { display: block; color: var(--luperiq-primary, var(--color-primary)); margin-bottom: 6px; }
.mktg-note p { color: var(--color-text-light); margin: 0; }

/* ── Buttons ── */
.btn { display: inline-block; padding: 12px 28px; border-radius: var(--radius); font-size: 16px; font-weight: 600; text-decoration: none; text-align: center; cursor: pointer; border: none; transition: background 0.2s, transform 0.1s; min-height: 44px; }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--luperiq-accent, var(--color-accent, #2563eb)); color: var(--luperiq-button-text, #fff); }
.btn-primary:hover { filter: brightness(1.1); }
.btn-outline { background: transparent; color: var(--luperiq-primary, var(--color-primary, #1e3a5f)); border: 2px solid var(--luperiq-primary, var(--color-primary, #1e3a5f)); }
.btn-outline:hover { background: var(--luperiq-primary, var(--color-primary, #1e3a5f)); color: var(--luperiq-button-text, #fff); }
.btn-lg { padding: 16px 36px; font-size: 18px; }

/* ── Hero ── */
.hero { background: linear-gradient(135deg, var(--luperiq-primary, var(--color-primary, #2563eb)) 0%, var(--luperiq-accent, var(--color-secondary, #1d4ed8)) 100%); color: #fff; padding: 80px 0; text-align: center; }
.hero h1 { font-size: 36px; font-weight: 800; margin-bottom: 48px; line-height: 1.2; }
.hero p { font-size: 18px; opacity: 0.9; max-width: 600px; margin: 0 auto 24px; }
.liq-hero { min-height: 400px; display: flex; align-items: flex-end; padding: 0 0 48px; background-size: cover; background-position: center; }
.liq-hero-headline { color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,0.4); font-size: clamp(1.8rem, 5vw, 2.8rem); }
.liq-hero-sub { color: rgba(255,255,255,0.9); text-shadow: 0 1px 6px rgba(0,0,0,0.3); font-size: clamp(0.9rem, 2.5vw, 1.1rem); }
.liq-hero .btn-primary { background: var(--color-accent, var(--luperiq-accent)); color: var(--luperiq-button-text, #fff); }
.liq-hero .btn-primary:hover { filter: brightness(1.15); }

/* ── Trust signals ── */
.trust-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 32px; padding: 32px 0; }
.trust-item { text-align: center; }
.trust-icon { font-size: 32px; margin-bottom: 4px; }
.trust-value { font-size: 20px; font-weight: 700; color: var(--luperiq-primary, var(--color-primary, #1e3a5f)); }
.trust-label { font-size: 13px; color: var(--color-text-light); }

/* ── Footer ── */
.site-footer { background: var(--color-text); color: rgba(255,255,255,0.8); padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 32px; margin-bottom: 32px; }
.footer-col h4, .footer-col .footer-col-title { color: #fff; margin: 1.33em 0 12px; font-size: 16px; }
.footer-col p, .footer-col a { font-size: 14px; color: rgba(255,255,255,0.7); text-decoration: none; line-height: 1.8; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; text-align: center; font-size: 13px; color: rgba(255,255,255,0.5); }

/* ── Forms ── */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--color-text); }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px; border: 1px solid var(--color-border); border-radius: var(--radius); font-size: 16px; font-family: var(--font-sans); min-height: 44px; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--luperiq-primary, var(--color-primary, #2563eb)); box-shadow: 0 0 0 3px rgba(0,0,0,0.05); }
.form-group textarea { min-height: 100px; resize: vertical; }

/* ── Steps ── */
.step { display: none; }
.step.active { display: block; }
.step-indicators { display: flex; justify-content: center; gap: 8px; margin-bottom: 32px; }
.step-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--color-border); }
.step-dot.active { background: var(--luperiq-primary, var(--color-primary, #2563eb)); }
.step-dot.done { background: var(--luperiq-accent, var(--color-accent, #b45309)); }

/* ── Responsive ── */
@media (min-width: 768px) {
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .hero h1 { font-size: 44px; }
}
@media (min-width: 1024px) {
    .card-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: repeat(4, 1fr); }
    .hero h1 { font-size: 52px; }
    .hero { padding: 100px 0; }
}
@media (max-width: 767px) {
    .header-inner { padding: 10px 16px 0; gap: 6px; }
    .header-brand { font-size: 18px; }
    .header-brand-logo { max-height: 92px; }
    .header-nav-row { min-height: 0; }
    .header-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--luperiq-header-bg, var(--color-primary)); flex-direction: column; padding: 16px; box-shadow: var(--shadow-lg); z-index: 999; }
    .header-nav.open { display: flex; }
    .header-right { display: none; }
    .mobile-toggle { display: flex; align-items: center; justify-content: center; }
    .header-phone-mobile { display: flex; align-items: center; padding: 2px 16px 10px; order: 3; width: 100%; }
    .header-phone-mobile .mobile-toggle { display: flex; flex-shrink: 0; }
    .header-phone-mobile a { color: var(--luperiq-header-text, #fff); text-decoration: none; font-size: 14px; font-weight: 600; flex: 1; text-align: center; }
    .header-phone-mobile .mobile-spacer { width: 44px; flex-shrink: 0; }
    .mktg-feature-grid--cols-2, .mktg-feature-grid--cols-3, .mktg-feature-grid--cols-4 { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    table { display: block; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    table::-webkit-scrollbar { display: none; }
    [style*="grid-template-columns:repeat(3,1fr)"],
    [style*="grid-template-columns: repeat(3,1fr)"],
    [style*="grid-template-columns: repeat(3, 1fr)"],
    [style*="grid-template-columns:repeat(2,1fr)"],
    [style*="grid-template-columns: repeat(2,1fr)"],
    [style*="grid-template-columns: repeat(2, 1fr)"] { grid-template-columns: 1fr !important; }
    [style*="display:flex"]:has(> input[style], > textarea[style], > select[style]) { flex-direction: column !important; }
    [style*="display:flex"]:has(> input[style], > textarea[style], > select[style]) > * { width: 100%; }
}

/* ── Page not found (routes::not_found) ── */
.liq-404 { max-width: 720px; margin: 0 auto; padding: 48px 18px 64px; }
.liq-404 h1 { font-size: clamp(2rem, 6vw, 2.75rem); line-height: 1.15; margin: 0 0 12px; }
.liq-404__text { font-size: 1.125rem; color: var(--color-text-light); margin: 0 0 28px; }
.liq-404__search { margin: 0 0 36px; }
.liq-404__label { display: block; font-weight: 600; margin: 0 0 8px; }
.liq-404__row { display: flex; flex-wrap: wrap; gap: 8px; }
.liq-404__row input[type="search"] { flex: 1 1 240px; min-height: 44px; padding: 10px 14px; border: 1px solid var(--color-border); border-radius: var(--radius); font: inherit; color: inherit; background: #fff; }
.liq-404__row input[type="search"]:focus { outline: 2px solid var(--luperiq-accent, var(--color-accent)); outline-offset: 1px; }
.liq-404__row button { min-height: 44px; padding: 10px 22px; border: 0; border-radius: var(--radius); background: var(--luperiq-accent, var(--color-accent)); color: var(--luperiq-button-text, #fff); font: inherit; font-weight: 600; cursor: pointer; }
.liq-404__row button:hover { filter: brightness(1.08); }
.liq-404__links-title { font-size: 1.25rem; margin: 0 0 12px; }
.liq-404__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.liq-404__links a { color: var(--luperiq-link, var(--color-primary)); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ── "Last updated" line on owner pages ([site] show_updated_date) ── */
.liq-updated { color: var(--color-text-light); font-size: 0.9rem; margin: 4px 0 20px; }
