/* ============================================================
   Qtech — Enterprise B2B SaaS design system
   Full-width, navy-anchored, corporate-blue-accented.
   ============================================================ */

:root {
    /* Brand palette — corporate blue #0071BC IS the base identity.
       The "dark" ramp is a deep→bright blue family (no slate) so every
       dark surface (hero, bands, footer, admin sidebar) reads as blue. */
    --navy-950: #013a5c;   /* deepest blue — footer, sidebar, darkest bands */
    --navy-900: #00517f;
    --navy-800: #0067a6;
    --navy-700: #0071BC;   /* the bright base identity */
    --slate-600: #2f4a63;  /* blue-grey body text on light surfaces */

    --corporate-blue: #0071BC;   /* brand blue — focus + primary CTA */
    --corporate-blue-600: #005b96;
    --corporate-blue-050: #e6f1f9;
    --on-blue: #ffffff;          /* text/icons on blue fills */

    /* Neutral content surfaces — light blue-tinted, high contrast vs the blue */
    --surface: #eef4fa;   /* page background behind panels (light blue tint) */
    --surface-alt: #f8fafc; /* lightest alt section background */
    --panel: #ffffff;     /* content panels/cards stay white for readability */
    --border: #d7e3ef;    /* subtle blue-tinted layout boundaries */
    --border-strong: #c3d5e6;

    /* Typography colors */
    --text: #0f1c30;
    --muted: #5a6b82;
    --on-dark: #ffffff;
    --on-dark-muted: #E0F2FE;   /* crisp light tint — high contrast on solid blue */

    /* Structure */
    --wrap: 1360px;
    --gutter: clamp(1.25rem, 4vw, 4rem);
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 2px rgba(10, 28, 51, .06), 0 8px 24px rgba(10, 28, 51, .06);
    --shadow-lg: 0 24px 60px rgba(10, 28, 51, .16);

    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--text);
    background: var(--surface);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main { flex: 1 0 auto; }

/* ---- Typographic hierarchy ---- */
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 700; }
.display { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 800; letter-spacing: -.03em; }
.h-section { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 800; }
.eyebrow {
    text-transform: uppercase; letter-spacing: .18em; font-size: .78rem;
    font-weight: 700; color: var(--corporate-blue); margin-bottom: .9rem;
}

/* ============================================================
   STRICT CONTRAST — any supporting text/label/caption sitting on
   the solid corporate-blue (hero, page-hero, dark bands) must use
   a high-contrast light tone, never a dark or same-hue-blue tone.
   ============================================================ */
.hero .eyebrow, .page-hero .eyebrow,
.section--dark .eyebrow, .section--darker .eyebrow { color: #E0F2FE; }

.page-hero .lead, .page-hero .breadcrumbs, .page-hero .muted, .page-hero__intro,
.hero .muted, .section--dark .muted, .section--darker .muted { color: #E0F2FE; }

.page-hero .breadcrumbs a, .page-hero .breadcrumbs a:hover,
.page-hero__intro a { color: #ffffff; text-decoration: underline; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--muted); }
a { color: var(--corporate-blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- Full-width structure ---- */
.section { width: 100%; padding: clamp(2.5rem, 5vw, 4.5rem) var(--gutter); }
.section--tight { padding-top: clamp(1.5rem, 3vw, 2.5rem); padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.section--dark { background: var(--navy-900); color: var(--on-dark); }
.section--darker { background: var(--navy-950); color: var(--on-dark); }
.section--surface { background: var(--surface); }
.section--panel { background: var(--panel); }
.section--dark h1, .section--dark h2, .section--darker h1, .section--darker h2 { color: #fff; }
.section--dark .lead, .section--darker .lead { color: var(--on-dark-muted); }

.wrap { max-width: var(--wrap); margin-inline: auto; width: 100%; }
.wrap--narrow { max-width: 820px; }

.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.center { text-align: center; }
.stack-sm > * + * { margin-top: .35rem; }

/* ---- Top navigation (full-width, dark) ---- */
/* Nav + top utility bar pin together as one unit while scrolling. */
.site-header { position: sticky; top: 0; z-index: 50; }
.topbar {
    background: rgba(7, 20, 38, .92);
    backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.topbar__inner {
    max-width: var(--wrap); margin-inline: auto;
    padding: .85rem var(--gutter);
    display: flex; align-items: center; gap: 2rem;
}
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; color: #fff; font-size: 1.15rem; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand__mark {
    width: 30px; height: 30px; border-radius: 7px;
    background: var(--corporate-blue); color: #fff; font-weight: 800;
    display: grid; place-items: center; font-size: .95rem;
}
.nav { display: flex; align-items: center; gap: .35rem; margin-left: auto; }
.nav a {
    color: var(--on-dark-muted); font-weight: 600; font-size: .95rem;
    padding: .5rem .85rem; border-radius: 8px; transition: color .15s, background .15s;
}
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .07); text-decoration: none; }
.nav a.is-active { color: #fff; }
.nav__cta {
    background: var(--corporate-blue) !important; color: #fff !important;
    padding: .55rem 1.1rem !important; margin-left: .4rem;
}
.nav__cta:hover { background: var(--corporate-blue-600) !important; }

/* Hamburger toggle — hidden on desktop, shown on smaller screens */
.nav-toggle {
    display: none; margin-left: auto;
    width: 44px; height: 44px; padding: 0;
    background: transparent; border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 8px; cursor: pointer;
    flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle__bar {
    display: block; width: 22px; height: 2px; border-radius: 2px;
    background: #fff; transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 820px) {
    /* Phones/tablets: keep the logo on the left and reveal the menu behind a
       hamburger button that expands into a full-width stacked list. */
    .topbar__inner { flex-wrap: wrap; gap: .6rem; padding: .6rem var(--gutter); }
    .brand__logo { height: 50px; }
    .nav-toggle { display: flex; }
    .nav {
        margin-left: 0; order: 3; width: 100%;
        flex-direction: column; align-items: stretch; gap: .15rem;
        max-height: 0; overflow: hidden;
        transition: max-height .25s ease;
    }
    .nav.is-open { max-height: 80vh; overflow: auto; margin-top: .35rem; }
    .nav a { padding: .7rem .85rem; font-size: .95rem; border-radius: 8px; }
}
@media (max-width: 400px) {
    .brand__logo { height: 44px; }
}

/* ---- Top utility / quick-links bar (above the main nav) ---- */
.utilitybar { background: var(--corporate-blue); color: #fff; font-size: .85rem; }
.utilitybar__inner {
    max-width: var(--wrap); margin-inline: auto; padding: .4rem var(--gutter);
    display: flex; align-items: center; justify-content: space-between; gap: .75rem 1.25rem; flex-wrap: wrap;
}
.utilitybar__contact { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.utilitybar__contact a { display: inline-flex; align-items: center; gap: .4rem; color: #fff; font-weight: 600; }
.utilitybar__contact a:hover { color: #fff; text-decoration: none; opacity: .85; }
.utilitybar__contact svg { opacity: .92; flex: none; }

/* ---- Social buttons (shared by the utility bar and the footer) ---- */
.social-links { display: inline-flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.social-link {
    display: inline-flex; align-items: center; gap: .4rem; position: relative;
    padding: .34rem .6rem; border-radius: 8px; color: #fff;
    background: rgba(255, 255, 255, .16);
    font-weight: 700; font-size: .72rem; letter-spacing: .03em;
    transition: background .15s ease, color .15s ease, transform .15s ease;
}
.social-link svg { flex: none; }
.social-label { text-transform: uppercase; white-space: nowrap; }
.social-link:hover, .social-link:focus-visible { text-decoration: none; transform: translateY(-1px); color: #fff; }
.social-link:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
/* Spelled-out labels show in both the top utility bar and the footer. */
.social-link--facebook:hover, .social-link--live:hover { background: #1877F2; }
.social-link--instagram:hover { background: linear-gradient(45deg, #F09433, #E6683C, #DC2743, #CC2366, #BC1888); }
.social-link--tiktok:hover { background: #000; }
.social-link--viber:hover { background: #7360F2; }
.social-link--youtube:hover { background: #FF0000; }
/* Facebook Live "live" indicator */
.social-live-dot {
    position: absolute; top: 3px; right: 3px; width: 7px; height: 7px; border-radius: 50%;
    background: #ff2d2d; box-shadow: 0 0 0 2px rgba(0, 0, 0, .3);
}
@media (max-width: 640px) {
    .utilitybar { font-size: .8rem; }
    .utilitybar__inner { justify-content: center; }
}

/* ---- Buttons ---- */
.btn-qt {
    display: inline-flex; align-items: center; gap: .5rem;
    font-weight: 700; font-size: 1rem; padding: .8rem 1.6rem;
    border-radius: 10px; border: 1px solid transparent; cursor: pointer;
    transition: transform .05s ease, background .15s, border-color .15s; text-decoration: none;
}
.btn-qt:hover { text-decoration: none; }
.btn-qt:active { transform: translateY(1px); }
.btn-primary-qt { background: var(--corporate-blue); color: #fff; }
.btn-primary-qt:hover { background: var(--corporate-blue-600); color: #fff; }
.btn-ghost-qt { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-ghost-qt:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.btn-outline-qt { background: transparent; color: var(--corporate-blue-600); border-color: var(--border-strong); }
.btn-outline-qt:hover { border-color: var(--corporate-blue); color: var(--corporate-blue-600); }

/* ---- Panels / cards ---- */
.panel {
    background: var(--panel); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.6rem;
    box-shadow: var(--shadow); height: 100%;
}
.panel--flat { box-shadow: none; }
.card-hover { transition: transform .18s ease, box-shadow .18s ease, border-color .18s; }
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }

/* Whole-card link: clickable panel with a clear interactive signal. */
.card-link { display: block; color: inherit; text-decoration: none; cursor: pointer; }
.card-link:hover, .card-link:focus-visible { text-decoration: none; color: inherit; }
.card-link:hover .feature-title { color: var(--corporate-blue); }
.card-link:focus-visible { outline: 2px solid var(--corporate-blue); outline-offset: 3px; }

/* Product card on /Products: the body is the link, the actions row sits outside it
   (an <a> may not contain other links), with the buttons pinned to the bottom so
   cards of differing description length still line up. */
.pcard { display: flex; flex-direction: column; }
.pcard__body { flex: 1 1 auto; }
.pcard__actions {
    display: flex; flex-wrap: wrap; gap: .6rem;
    margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--border);
}
.pcard__actions .btn-qt { padding: .55rem 1rem; font-size: .9rem; }

.icon-badge {
    width: 48px; height: 48px; border-radius: 12px;
    display: grid; place-items: center; margin-bottom: 1rem;
    background: var(--corporate-blue-050); color: var(--corporate-blue); font-size: 1.3rem;
    border: 1px solid #f6d3d8;
}

/* ---- Hero ---- */
.hero {
    position: relative; overflow: hidden;
    background:
        radial-gradient(1200px 500px at 80% -10%, rgba(0, 113, 188, .40), transparent 60%),
        linear-gradient(160deg, var(--navy-950), var(--navy-900) 55%, var(--navy-800));
    color: #fff; padding: clamp(2.25rem, 4.5vw, 3.75rem) var(--gutter) clamp(2.25rem, 4.5vw, 3.75rem);
}
.hero__inner { max-width: var(--wrap); margin-inline: auto; }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 2.25rem; align-items: center; }
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; } }
.hero .lead { color: var(--on-dark-muted); max-width: 44ch; }
/* Hero lead is now rich text (CKEditor) — keep nested paragraphs on-size and
   tidy the spacing so a single or multi-paragraph lead both sit right. */
.hero__lead p { margin: 0 0 .75rem; }
.hero__lead > :last-child { margin-bottom: 0; }
.hero__cta { display: flex; gap: .9rem; margin-top: 1.5rem; flex-wrap: wrap; }

/* ---- Stat / counter row ---- */
.stat { text-align: center; padding: 1.4rem 1rem; }
.stat__value { font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 800; color: #fff; letter-spacing: -.03em; line-height: 1; }
.stat__value .suffix { color: var(--corporate-blue); }
.stat__label { color: var(--on-dark-muted); margin-top: .5rem; font-weight: 600; font-size: .95rem; }
.stat-strip {
    display: grid; grid-template-columns: repeat(4, 1fr);
    border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius); overflow: hidden;
}
.stat-strip .stat + .stat { border-left: 1px solid rgba(255, 255, 255, .12); }
@media (max-width: 720px) {
    .stat-strip { grid-template-columns: repeat(2, 1fr); }
    .stat-strip .stat:nth-child(odd) { border-left: none; }
    .stat-strip .stat:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .12); }
}

/* ---- Wrapping stat grid (home milestones, up to 10) ---- */
.stat-grid {
    display: grid; grid-template-columns: repeat(5, 1fr);
    gap: 1px; background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius); overflow: hidden;
}
.stat-grid .stat { background: var(--navy-950); }
@media (max-width: 1000px) { .stat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---- Product / feature cards ---- */
.feature-title { font-size: 1.2rem; margin: 0 0 .35rem; }
.muted { color: var(--muted); }
.tag {
    display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em;
    text-transform: uppercase; color: var(--corporate-blue); background: var(--corporate-blue-050);
    padding: .25rem .55rem; border-radius: 999px; border: 1px solid #f6d3d8;
}

/* ---- Split / feature rows for module pages ---- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
/* Top-aligned variant: keeps a tall column (e.g. a product overview) from
   pushing the shorter media column into the middle with dead space above it. */
.split--top { align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ---- Testimonials ---- */
.quote { font-size: 1.15rem; line-height: 1.6; color: var(--text); }
.quote__author { margin-top: 1.1rem; font-weight: 700; }
.quote__meta { color: var(--muted); font-weight: 500; font-size: .9rem; }

/* ---- Forms on dark ---- */
.form-panel { background: var(--panel); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.5rem); box-shadow: var(--shadow); }
.form-control:focus, .form-select:focus {
    border-color: var(--corporate-blue); box-shadow: 0 0 0 .2rem rgba(0, 113, 188, .18);
}

/* ---- Footer ---- */
.site-footer { background: var(--navy-950); color: var(--on-dark-muted); padding: 3.5rem var(--gutter) 2rem; }
.site-footer__inner { max-width: var(--wrap); margin-inline: auto; }
.site-footer a { color: var(--on-dark-muted); }
.site-footer a:hover { color: #fff; }
.site-footer__bar { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 2.5rem; padding-top: 1.5rem; font-size: .88rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.4fr 1.1fr; gap: 2.5rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-head { color: #fff; font-weight: 700; margin-bottom: .7rem; }
.footer-social { display: flex; gap: 1rem; margin-top: 1.1rem; }
.footer-social a { font-weight: 600; }
.site-footer .stack-sm div { font-size: .92rem; }
.site-footer__bir { display: flex; justify-content: center; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .1); }
/* BIR seal badge: posted as one cropped image (seal + BIR + QR + RSN), per BIR guidance.
   Kept on white and wide enough that the QR code stays scannable. */
.bir-badge { display: block; width: 100%; max-width: 420px; height: auto; background: #fff; border-radius: 10px; padding: 8px; }
.bir-badge--lg { max-width: 600px; margin-inline: auto; border: 1px solid rgba(0, 0, 0, .08); box-shadow: 0 4px 18px rgba(0, 0, 0, .06); }

/* ---- Page hero for module pages (About / Products) ---- */
.page-hero {
    background: linear-gradient(160deg, var(--navy-950), var(--navy-800));
    color: #fff; padding: clamp(2rem, 4vw, 3.25rem) var(--gutter);
}
.page-hero__inner { max-width: var(--wrap); margin-inline: auto; }
/* Two-column banner used when a page has an uploaded feature image. */
.page-hero__inner--split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.page-hero__art { width: 100%; max-width: 480px; margin-inline: auto; display: block;
    border-radius: var(--radius); border: 1px solid rgba(255, 255, 255, .14);
    box-shadow: 0 24px 48px rgba(0, 0, 0, .35); background: rgba(255, 255, 255, .04); }
@media (max-width: 820px) {
    .page-hero__inner--split { grid-template-columns: 1fr; }
    .page-hero__art { max-width: 360px; margin-top: 1.5rem; }
}
.breadcrumbs { color: var(--on-dark-muted); font-size: .85rem; margin-bottom: 1rem; }
.breadcrumbs a { color: var(--on-dark-muted); }

/* ---- Banner accordion ----
   A CMS-authored bullet list in a page-hero intro is rewritten client-side into
   collapsible rows (see the enhancer in ClientsCorner/Index.cshtml). Without
   JavaScript the markup stays a plain <ul>, which is why nothing here changes how
   an un-enhanced list looks. */
.hero-accordion { margin-top: 1.25rem; }
.hero-accordion__list { list-style: none; margin: 0; padding: 0;
    display: flex; flex-direction: column; gap: .5rem; }
.hero-accordion__item {
    border: 1px solid rgba(255, 255, 255, .16); border-radius: 12px;
    background: rgba(255, 255, 255, .06); overflow: hidden;
    transition: background .18s ease, border-color .18s ease;
}
.hero-accordion__item:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .28); }
.hero-accordion__item[open] { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .3); }

/* summary for a collapsible row; the same padding on a static row keeps a
   bullet with no detail text aligned with its neighbours. */
.hero-accordion__head, .hero-accordion__static {
    display: flex; align-items: center; gap: .75rem;
    padding: .8rem 1rem; font-weight: 600; color: #fff; line-height: 1.4;
}
.hero-accordion__head { cursor: pointer; list-style: none; }
.hero-accordion__head::-webkit-details-marker { display: none; }
.hero-accordion__head:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }

/* Chevron, rotated when the row is open. */
.hero-accordion__head::after {
    content: ""; margin-left: auto; flex: none; width: .55rem; height: .55rem;
    border-right: 2px solid rgba(255, 255, 255, .8); border-bottom: 2px solid rgba(255, 255, 255, .8);
    transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s ease;
}
.hero-accordion__item[open] > .hero-accordion__head::after { transform: rotate(-135deg) translate(-2px, -2px); }

.hero-accordion__body { padding: 0 1rem 1rem; color: #E0F2FE; font-size: .95rem; }
.hero-accordion__body > :first-child { margin-top: 0; }
.hero-accordion__body > :last-child { margin-bottom: 0; }
.hero-accordion__body ul, .hero-accordion__body ol { margin: .4rem 0; padding-left: 1.25rem; }

@media (prefers-reduced-motion: reduce) {
    .hero-accordion__item, .hero-accordion__head::after { transition: none; }
}

/* keep bootstrap focus ring subtle for any residual bootstrap buttons */
.btn:focus { box-shadow: 0 0 0 .2rem rgba(0, 113, 188, .2); }

/* ---- Brand logo ---- */
.brand__logo { height: 68px; width: auto; display: block; background: #fff; padding: 7px 14px; border-radius: 12px; }
.brand__logo--plain { background: transparent; padding: 0; }

/* ---- Hero artwork ---- */
.hero__art { width: 100%; max-width: 520px; margin-inline: auto; display: block;
    filter: drop-shadow(0 30px 55px rgba(0, 0, 0, .4)); }

/* ---- "Our Clients" grid (full list page) ---- */
.client-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
@media (max-width: 900px) { .client-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .client-grid { grid-template-columns: 1fr; } }
.client-card {
    display: flex; flex-direction: column; text-align: center;
    padding: 1.5rem; background: var(--panel); border: 1px solid var(--border);
    border-radius: var(--radius); transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.client-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.client-card__logo { display: flex; align-items: center; justify-content: center; min-height: 84px; margin-bottom: .75rem; }
.client-card__logo img { max-width: 100%; max-height: 64px; object-fit: contain; }
.client-card__name { font-weight: 700; color: var(--text); }
.client-card__desc { margin: .4rem 0 0; font-size: .9rem; }

/* ---- Client's Corner document cards ---- */
.doc-card { display: flex; flex-direction: column; align-items: flex-start; }
.doc-card__ext {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 46px; height: 28px; padding: 0 .55rem; margin-bottom: .5rem;
    border-radius: 6px; font-size: .72rem; font-weight: 800; letter-spacing: .04em;
    color: var(--corporate-blue); background: var(--corporate-blue-050); border: 1px solid #f6d3d8;
}
.doc-card .btn-qt { margin-top: auto; }

/* ---- Trusted-by logo strip ---- */
.logo-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 2.5rem; align-items: center; }
@media (max-width: 900px) { .logo-strip { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .logo-strip { grid-template-columns: repeat(2, 1fr); } }
.logo-strip img { max-height: 46px; max-width: 100%; margin-inline: auto; display: block;
    filter: grayscale(1); opacity: .6; transition: filter .2s, opacity .2s; }
.logo-strip img:hover { filter: none; opacity: 1; }

/* ---- Product media ---- */
/* Product card media: fill the slot edge-to-edge, auto-cropping cleanly
   (object-fit: cover) so uploaded photos never letterbox/pillarbox. */
.product-media { display: block; width: 100%; height: 155px; object-fit: cover; object-position: center;
    background: var(--surface); border-radius: var(--radius-sm); border: 1px solid var(--border); }

/* ---- Auth screen (Admin login) ---- */
.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 3rem var(--gutter);
    background:
        radial-gradient(1000px 500px at 50% -10%, rgba(0, 113, 188, .25), transparent 60%),
        linear-gradient(160deg, var(--navy-950), var(--navy-800)); }
.auth-card { width: 100%; max-width: 420px; background: var(--panel); border-radius: var(--radius);
    box-shadow: var(--shadow-lg); padding: clamp(1.6rem, 3vw, 2.4rem); }
.auth-card__brand { display: flex; justify-content: center; margin-bottom: 1.4rem; }
.auth-card__brand img { height: 46px; }
.auth-card h1 { text-align: center; font-size: 1.4rem; }
.auth-note { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 1.2rem; }

/* ---- Visitor chat widget ---- */
.chat-fab {
    position: fixed; right: 22px; bottom: 22px; z-index: 60;
    width: 58px; height: 58px; border-radius: 50%; border: none; cursor: pointer;
    background: var(--corporate-blue); color: #fff; font-size: 1.5rem;
    box-shadow: var(--shadow-lg); transition: transform .12s ease, background .15s;
}
.chat-fab:hover { background: var(--corporate-blue-600); transform: translateY(-2px); }
.chat-panel {
    position: fixed; right: 22px; bottom: 92px; z-index: 60;
    width: 350px; max-width: calc(100vw - 44px);
    height: 470px; max-height: calc(100vh - 130px);
    background: #fff; border: 1px solid var(--border); border-radius: 14px;
    box-shadow: var(--shadow-lg); display: none; flex-direction: column; overflow: hidden;
}
.chat-panel.open { display: flex; }
.chat-head { background: var(--navy-900); color: #fff; padding: .9rem 1rem; display: flex; justify-content: space-between; align-items: center; }
.chat-head strong { font-size: .98rem; }
.chat-status { font-size: .74rem; color: var(--on-dark-muted); display: flex; align-items: center; gap: .38rem; margin-top: .2rem; }
.chat-status .dot { width: 8px; height: 8px; border-radius: 50%; background: #9aa7bd; display: inline-block; }
.chat-status.online .dot { background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .25); }
.chat-status.online { color: #b7f7cd; }
.chat-head button { background: none; border: none; color: #fff; font-size: 1.2rem; cursor: pointer; line-height: 1; }
.chat-intro { padding: 1rem; }
.chat-intro .form-control { margin-bottom: .6rem; }
.chat-body { flex: 1; overflow-y: auto; padding: 1rem; background: var(--surface); }
.chat-foot { padding: .6rem; border-top: 1px solid var(--border); }
.chat-msg { margin-bottom: .5rem; display: flex; }
.chat-msg .bubble { padding: .5rem .75rem; border-radius: 12px; max-width: 80%; font-size: .9rem; white-space: pre-wrap; word-wrap: break-word; }
.chat-msg.visitor { justify-content: flex-end; }
.chat-msg.visitor .bubble { background: var(--corporate-blue); color: #fff; }
.chat-msg.admin { justify-content: flex-start; }
.chat-msg.admin .bubble { background: #fff; border: 1px solid var(--border); color: var(--text); }
.chat-row { display: flex; gap: .4rem; }
.chat-row input { flex: 1; }

/* ============================================================
   Admin panel shell (sidebar dashboard)
   ============================================================ */
.qa { display: flex; min-height: 100vh; background: var(--surface); }

.qa-side {
    width: 248px; flex: none; background: var(--navy-950); color: var(--on-dark-muted);
    display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.qa-side__head { border-bottom: 1px solid rgba(255, 255, 255, .08); display: flex; align-items: center; justify-content: space-between; }
.qa-side__brand {
    padding: 1rem 1.1rem;
    display: flex; align-items: center; gap: .55rem;
}
/* Hamburger toggle — hidden on desktop, shown when the sidebar collapses */
.qa-nav-toggle {
    display: none; margin-right: 1rem;
    width: 42px; height: 42px; padding: 0;
    background: transparent; border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 8px; cursor: pointer;
    flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.qa-nav-toggle__bar { display: block; width: 20px; height: 2px; border-radius: 2px; background: #fff; transition: transform .2s ease, opacity .2s ease; }
.qa-nav-toggle[aria-expanded="true"] .qa-nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.qa-nav-toggle[aria-expanded="true"] .qa-nav-toggle__bar:nth-child(2) { opacity: 0; }
.qa-nav-toggle[aria-expanded="true"] .qa-nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.qa-side__brand img { height: 30px; background: #fff; padding: 4px 7px; border-radius: 7px; }
.qa-side__brand span { color: #fff; font-weight: 800; letter-spacing: -.01em; }

.qa-nav { padding: .6rem .55rem 1.5rem; overflow-y: auto; flex: 1; }
.qa-nav__label { text-transform: uppercase; letter-spacing: .12em; font-size: .66rem; color: #607790; padding: .95rem .7rem .3rem; }
.qa-nav a {
    display: flex; align-items: center; justify-content: space-between; gap: .5rem;
    color: var(--on-dark-muted); padding: .55rem .7rem; border-radius: 9px;
    font-weight: 600; font-size: .92rem; text-decoration: none; margin-bottom: 1px;
}
.qa-nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.qa-nav a.active { background: var(--corporate-blue); color: #fff; }
.qa-nav a.active .badge { background: #fff !important; color: var(--corporate-blue) !important; }

.qa-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.qa-top {
    background: #fff; border-bottom: 1px solid var(--border); padding: .8rem 1.5rem;
    display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 20;
}
.qa-top__title { font-weight: 700; font-size: 1.05rem; color: var(--text); }
.qa-top__user { display: flex; align-items: center; gap: .9rem; font-size: .9rem; color: var(--muted); }
.qa-top__user .who { font-weight: 700; color: var(--text); }
.qa-content { padding: 1.75rem; max-width: 1200px; width: 100%; }
.qa-content > h1 { font-size: 1.5rem; margin-bottom: 1.25rem; }

/* Beautified bootstrap bits inside admin content */
.qa-content .table { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); margin-bottom: 0; }
.qa-content .table > :not(caption) > * > * { padding: .85rem 1rem; }
.qa-content .table thead th {
    background: #f1f4f9; border-bottom: 1px solid var(--border);
    font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted);
}
.qa-content .table tbody tr:hover { background: #fafbfe; }
.qa-content .btn-primary { background: var(--corporate-blue); border-color: var(--corporate-blue); font-weight: 600; }
.qa-content .btn-primary:hover { background: var(--corporate-blue-600); border-color: var(--corporate-blue-600); }
.qa-content .form-control:focus, .qa-content .form-select:focus {
    border-color: var(--corporate-blue); box-shadow: 0 0 0 .2rem rgba(0, 113, 188, .18);
}

/* Admin only: highlight the focused field yellow */
.qa-content input:not([type=checkbox]):not([type=radio]):focus,
.qa-content textarea:focus,
.qa-content select:focus,
.auth-card input:not([type=checkbox]):not([type=radio]):focus,
.auth-card textarea:focus,
.auth-card select:focus {
    background-color: #fff59d;
}
.qa-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem; box-shadow: var(--shadow); }
.qa-content form.col-md-6, .qa-content form.col-md-8, .qa-content .col-md-6 > form, .qa-content .col-md-8 > form { }

@media (max-width: 860px) {
    .qa { flex-direction: column; }
    /* Sidebar becomes a sticky top bar; the nav hides behind the hamburger. */
    .qa-side { width: 100%; height: auto; position: sticky; top: 0; z-index: 30; }
    .qa-nav-toggle { display: flex; }
    .qa-nav {
        display: flex; flex-direction: column; flex-wrap: nowrap; gap: .1rem;
        max-height: 0; overflow: hidden; padding-top: 0; padding-bottom: 0;
        transition: max-height .25s ease;
    }
    .qa-nav.is-open { max-height: 80vh; overflow-y: auto; padding-top: .5rem; padding-bottom: .9rem; }
    .qa-nav__label { width: 100%; padding: .6rem .7rem .2rem; }
    .qa-content { padding: 1.1rem; }
}

/* ---- Prose (Privacy and other text pages) ---- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.35rem; margin-top: 2rem; }
.prose p, .prose li { color: var(--slate-600); }
.prose ul { padding-left: 1.2rem; }

/* ---- Images inside CMS rich text ----
   CKEditor wraps inserted images in <figure>, but the HTML sanitizer strips its
   classes and sizing styles, so the bare figure/img needs its own rules to stay
   inside the surrounding column. <figure> only ever comes from the editor. */
figure { margin: 1.2rem 0; }
figure img { display: block; max-width: 100%; height: auto; margin-inline: auto; border-radius: 10px; }
figcaption { font-size: .85rem; color: var(--slate-600); text-align: center; margin-top: .45rem; }
/* Inline (non-figure) editor images sit directly in a paragraph. */
p > img { max-width: 100%; height: auto; }

/* ---- Video embeds inside CMS rich text ----
   "Insert media" is stored as <div data-oembed-url="…"><iframe …></div> (see
   HtmlContentSanitizer). Class-based sizing doesn't survive the sanitizer, so the
   wrapper is targeted by its data attribute and the frame gets a 16:9 box. */
[data-oembed-url] { margin: 1.2rem 0; max-width: 100%; }
[data-oembed-url] iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; border-radius: 10px; }
figure > [data-oembed-url] { margin: 0; }

/* ============================================================================
   Self-service quotation builder (/Quotation/{retail|restaurant})

   Two panes: the input side (customer details + catalog picker) and a sticky
   preview of the quotation sheet. The .qsheet block is shared by the on-screen
   preview and the printed page, and mirrors the PDF export section for section.
   ========================================================================== */

.qbuilder { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 1.5rem; align-items: start; }
.qbuilder__inputs { display: grid; gap: 1.5rem; min-width: 0; }
.qbuilder__preview { position: sticky; top: 1.5rem; min-width: 0; }
.qbuilder__panel { padding: clamp(1.2rem, 2.5vw, 1.8rem); }
.qbuilder__heading { font-size: 1.3rem; font-weight: 800; margin: .1rem 0 .9rem; }
.qoptional { font-weight: 500; font-size: .95rem; }

.qfield { margin-bottom: .9rem; }
.qfield .form-label { font-weight: 600; font-size: .85rem; letter-spacing: .02em; margin-bottom: .3rem; }
.qfield small { display: block; margin-top: .3rem; font-size: .8rem; }
.qgrid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.qreq { color: #c0392b; }
.qrule { border: 0; border-top: 1px solid var(--border); margin: 1.2rem 0; }

/* ---- Catalog picker ---- */
.qcat {
    font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em;
    color: var(--corporate-blue); margin: 1.4rem 0 .5rem;
}
.qitems { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.qitem {
    display: flex; align-items: center; gap: 1rem; justify-content: space-between;
    padding: .75rem .9rem; border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: var(--surface-alt); transition: border-color .15s ease, background .15s ease;
}
.qitem:focus-within, .qitem:hover { border-color: var(--border-strong); background: #fff; }
.qitem__photo {
    width: 56px; height: 56px; flex: 0 0 auto; object-fit: contain;
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 3px;
}
.qitem__info { min-width: 0; flex: 1 1 auto; }
.qitem__name { display: block; font-weight: 600; margin: 0; cursor: pointer; }
.qitem__spec { font-size: .82rem; color: var(--muted); }
.qitem__price { font-size: .88rem; font-weight: 600; margin-top: .15rem; }
.qitem__off {
    display: inline-block; margin-left: .4rem; padding: .05rem .4rem; border-radius: 999px;
    background: var(--corporate-blue-050); color: var(--corporate-blue); font-size: .75rem; font-weight: 700;
}
.qitem__qty { display: flex; align-items: center; gap: .25rem; flex: 0 0 auto; }
.qstep {
    width: 30px; height: 34px; border: 1px solid var(--border-strong); background: #fff;
    border-radius: var(--radius-sm); font-size: 1.05rem; line-height: 1; cursor: pointer; color: var(--text);
}
.qstep:hover { border-color: var(--corporate-blue); color: var(--corporate-blue); }
.qqty { width: 64px; text-align: center; padding-inline: .3rem; }

/* ---- Preview card ---- */
.qpreview-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.qpreview-card__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.2rem 1.4rem .2rem; }
.qpreview-card__head .qbuilder__heading { margin-bottom: .4rem; }
.qpreview-card__sheet { padding: 0 1.4rem; max-height: 62vh; overflow-y: auto; }

.qspinner {
    width: 18px; height: 18px; border-radius: 50%; flex: 0 0 auto;
    border: 2px solid var(--border-strong); border-top-color: var(--corporate-blue);
    animation: qspin .7s linear infinite;
}
@keyframes qspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .qspinner { animation: none; } }

.qexports { border-top: 1px solid var(--border); background: var(--surface-alt); padding: 1.1rem 1.4rem 1.3rem; }
.qexports__label { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: .6rem; }
.qexports__buttons { display: flex; flex-wrap: wrap; gap: .5rem; }
.qexports .btn-qt { padding: .55rem 1rem; font-size: .9rem; }
.qexports .btn-qt[disabled] { opacity: .5; cursor: not-allowed; }
.qnote { font-size: .8rem; margin: .8rem 0 0; }

.qmessage { margin-top: .8rem; padding: .7rem .9rem; border-radius: var(--radius-sm); font-size: .9rem; border: 1px solid transparent; }
.qmessage--success { background: #e8f6ee; border-color: #b7e0c7; color: #1c6b3d; }
.qmessage--error { background: #fdecea; border-color: #f5c2bd; color: #96261c; }
.qmessage--info { background: var(--corporate-blue-050); border-color: var(--border-strong); color: var(--text); }

/* ---- The quotation sheet itself (preview + print) ---- */
.qsheet { font-size: .84rem; color: var(--text); padding: 1.2rem 0 1.6rem; }
.qsheet--empty { padding: 2.5rem 0; text-align: center; }
.qsheet__head { display: flex; gap: 1.5rem; justify-content: space-between; align-items: flex-start; padding-bottom: .7rem; border-bottom: 2px solid var(--corporate-blue); }
.qsheet__company { font-size: 1.05rem; font-weight: 800; color: var(--corporate-blue); }
.qsheet__logo { display: block; width: 165px; max-width: 100%; height: auto; margin-bottom: .35rem; }
.qsheet__meta { font-size: .76rem; color: var(--muted); }
.qsheet__title { text-align: right; flex: 0 0 auto; }
.qsheet__doctype { font-size: 1.5rem; font-weight: 800; color: var(--corporate-blue); line-height: 1.1; }
.qsheet__ref { display: grid; grid-template-columns: auto auto; gap: .1rem .6rem; justify-content: end; margin: .5rem 0 0; }
.qsheet__ref dt { font-size: .72rem; color: var(--muted); font-weight: 500; }
.qsheet__ref dd { margin: 0; font-weight: 700; }

.qsheet__parties { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin-top: .9rem; }
.qsheet__box { border: 1px solid var(--border); border-radius: 4px; overflow: hidden; }
.qsheet__boxhead { margin: 0; padding: .35rem .55rem; background: var(--surface); font-size: .68rem; font-weight: 800; letter-spacing: .06em; color: var(--muted); }
.qsheet__boxbody { padding: .55rem; }
.qsheet__boxbody p { margin: 0; white-space: pre-wrap; }
.qsheet__party { font-weight: 700; }

.qsheet__terms, .qsheet__lines { width: 100%; border-collapse: collapse; margin-top: .8rem; }
.qsheet__terms th, .qsheet__lines th { text-align: left; font-size: .68rem; font-weight: 800; letter-spacing: .05em; }
.qsheet__terms th { background: var(--surface); color: var(--muted); padding: .35rem .55rem; border: 1px solid var(--border); }
.qsheet__terms td { padding: .4rem .55rem; border: 1px solid var(--border); }
.qsheet__lines th { background: var(--corporate-blue); color: #fff; padding: .45rem .55rem; }
.qsheet__lines td { padding: .45rem .55rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.qsheet__right { text-align: right; }
.qsheet__num { width: 2rem; }
.qsheet__strong { font-weight: 700; }
.qsheet__photocol { width: 62px; }
.qsheet__photo {
    display: block; width: 52px; height: 52px; object-fit: contain;
    background: #fff; border: 1px solid var(--border); border-radius: 4px; padding: 2px;
}

.qsheet__totals { margin: .9rem 0 0 auto; width: min(300px, 100%); }
.qsheet__totals dl { display: grid; grid-template-columns: 1fr auto; gap: .25rem .8rem; margin: 0; }
.qsheet__totals dt { color: var(--muted); }
.qsheet__totals dd { margin: 0; text-align: right; font-weight: 600; }
.qsheet__totals .qsheet__rule { padding-top: .35rem; border-top: 1px solid var(--border); }
.qsheet__grand { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; margin-top: .5rem; padding: .5rem .6rem; background: var(--corporate-blue); color: #fff; border-radius: 4px; }
.qsheet__grand span { font-size: .78rem; font-weight: 800; letter-spacing: .05em; }
.qsheet__grand strong { font-size: 1rem; }

.qsheet__notes { margin-top: .9rem; }
.qsheet__fineprint { margin: .8rem 0 0; font-size: .72rem; font-style: italic; color: var(--muted); }
.qsheet__signatures { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 1.8rem; }
.qsheet__signline { border-top: 1px solid var(--muted); margin-bottom: .25rem; }

@media (max-width: 1080px) {
    .qbuilder { grid-template-columns: 1fr; }
    .qbuilder__preview { position: static; }
    .qpreview-card__sheet { max-height: none; }
}

@media (max-width: 560px) {
    .qgrid-2 { grid-template-columns: 1fr; }
    .qitem { flex-wrap: wrap; }
    .qsheet__head { flex-direction: column; }
    .qsheet__parties, .qsheet__signatures { grid-template-columns: 1fr; }
    .qsheet__title { text-align: left; }
    .qsheet__ref { justify-content: start; }
}

/* ============================================================================
   Product pricing matrix ("Plans to suit your business")

   Shared by the modal (/Products + /Products/Details) and the standalone
   /Products/Pricing/{slug} page — the card grid markup is one partial, so these
   rules must not assume either container.
   ========================================================================== */

.pricing__head { text-align: center; margin-bottom: 1.6rem; }
.pricing__title { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; margin: .2rem 0 .4rem; }
.pricing__sub { color: var(--muted); margin: 0; font-size: .95rem; }

/* --pricing-cols is set inline from the tier count so 2 tiers don't stretch to
   fill a 4-column track. auto-fit keeps it responsive below that width. */
.pricing__grid {
    display: grid; gap: 1.1rem; align-items: stretch;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    max-width: calc(var(--pricing-cols, 4) * 320px);
    margin-inline: auto;
}

.ptier {
    display: flex; flex-direction: column;
    background: var(--panel); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.4rem 1.3rem;
    box-shadow: var(--shadow);
}
/* A tier on promo is the one we want read first. */
.ptier--promo { border-color: var(--corporate-blue); box-shadow: 0 0 0 1px var(--corporate-blue), var(--shadow); }

.ptier__head { border-bottom: 1px solid var(--border); padding-bottom: .9rem; margin-bottom: .9rem; }
.ptier__name { font-size: 1.25rem; font-weight: 800; margin: 0; color: var(--text); }
.ptier__tagline { margin: .3rem 0 0; font-size: .88rem; color: var(--muted); }

.ptier__price { margin-bottom: .9rem; }
.ptier__badge {
    display: inline-block; margin-bottom: .4rem; padding: .15rem .5rem;
    background: var(--corporate-blue-050); color: var(--corporate-blue-600);
    border-radius: 999px; font-size: .7rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: .08em;
}
.ptier__label { font-size: .8rem; font-weight: 600; color: var(--muted); margin-bottom: .15rem; }
.ptier__amount { display: flex; align-items: baseline; gap: .15rem; flex-wrap: wrap; }
.ptier__figure { font-size: clamp(1.6rem, 3.4vw, 2.1rem); font-weight: 800; color: var(--corporate-blue-600); line-height: 1.1; }
.ptier__cycle { font-size: .85rem; color: var(--muted); font-weight: 600; }
.ptier__regular { margin-top: .3rem; font-size: .82rem; color: var(--muted); }
.ptier__regular s { opacity: .8; }

.ptier__for { font-size: .88rem; color: var(--slate-600); margin: 0 0 .9rem; }

.ptier__features { list-style: none; margin: 0 0 1.2rem; padding: 0; display: grid; gap: .45rem; }
.ptier__features li { position: relative; padding-left: 1.35rem; font-size: .88rem; color: var(--slate-600); }
.ptier__features li::before {
    content: "✓"; position: absolute; left: 0; top: -.05rem;
    color: var(--corporate-blue); font-weight: 800;
}

/* Pinned to the bottom so CTAs line up across cards of different heights. */
.ptier__cta { margin-top: auto; width: 100%; justify-content: center; }

/* ---- "Share these plans": the same link the pop-up and the standalone page live at ---- */
.pricing__share {
    max-width: calc(var(--pricing-cols, 4) * 320px);
    margin: 1.6rem auto 0; padding-top: 1.2rem;
    border-top: 1px solid var(--border); text-align: center;
}
.pricing__share-label {
    font-size: .78rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: .1em; color: var(--muted); margin-bottom: .55rem;
}
.pricing__share-row {
    display: flex; gap: .5rem; flex-wrap: wrap;
    justify-content: center; align-items: stretch;
}
.pricing__share-url {
    flex: 1 1 22rem; min-width: 0;
    padding: .55rem .75rem; font-size: .85rem;
    color: var(--slate-600); background: var(--panel);
    border: 1px solid var(--border); border-radius: 8px;
}
.pricing__share-url:focus-visible { outline: 2px solid var(--corporate-blue); outline-offset: 1px; }
.pricing__share-btn { flex: 0 0 auto; white-space: nowrap; }
.pricing__share-hint { margin: .55rem 0 0; font-size: .8rem; color: var(--muted); }

/* ---- The pop-up itself ---- */
.pmodal {
    width: min(1100px, calc(100vw - 2rem));
    max-height: calc(100vh - 3rem);
    padding: 0; border: 0; border-radius: var(--radius);
    background: var(--surface); color: var(--text);
    box-shadow: var(--shadow-lg); overflow: hidden;
}
.pmodal::backdrop { background: rgba(1, 28, 46, .55); }
.pmodal__bar {
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
    padding: .9rem 1.2rem; background: var(--navy-950); color: var(--on-dark);
}
.pmodal__eyebrow { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.pmodal__close {
    background: transparent; border: 0; color: var(--on-dark);
    font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 0 .3rem; border-radius: 6px;
}
.pmodal__close:hover { background: rgba(255, 255, 255, .14); }
.pmodal__close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
/* Only the card area scrolls, so the close button stays reachable. */
.pmodal__body { padding: 1.5rem 1.2rem 1.8rem; overflow-y: auto; max-height: calc(100vh - 7rem); }

@media (max-width: 620px) {
    .pmodal { width: 100vw; max-width: 100vw; max-height: 100vh; border-radius: 0; }
    .pmodal__body { max-height: calc(100vh - 5rem); }
}

/* ---- Print: the quotation sheet only ---- */
@media print {
    .site-header, .site-footer, .page-hero, .chat-fab, .chat-panel,
    .qbuilder__inputs, .qexports, .qpreview-card__head { display: none !important; }
    .qbuilder-section { padding: 0 !important; background: #fff !important; }
    .qbuilder { display: block !important; }
    .qpreview-card { border: 0 !important; box-shadow: none !important; }
    .qpreview-card__sheet { max-height: none !important; overflow: visible !important; padding: 0 !important; }
    .qsheet { padding: 0; font-size: 10pt; }
    .qsheet__lines thead { display: table-header-group; }   /* repeat headers across pages */
    .qsheet__lines tr, .qsheet__box { break-inside: avoid; }
    /* Item photos must survive the browser's "background graphics off" default. */
    .qsheet__photo { width: 13mm; height: 13mm; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .qsheet__photocol { width: 16mm; }
    .qsheet__company, .qsheet__doctype { color: #0071BC !important; }
    /* Letterhead logo must survive the browser's "background graphics off" default. */
    .qsheet__logo { width: 44mm; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .qsheet__lines th, .qsheet__grand {
        background: #0071BC !important; color: #fff !important;
        -webkit-print-color-adjust: exact; print-color-adjust: exact;
    }
    @page { size: A4 portrait; margin: 14mm; }
}
