/* ===========================================================================
   CMOS header refinements — client feedback, Nov 2026.

   Loaded AFTER site.css so these rules win without editing the reference
   baseline, which stays byte-identical to reference/cmos_website/assets/site.css
   for future diffing. Every block below maps to one piece of feedback.
   =========================================================================== */

/* ---------------------------------------------------------------------------
   1. Solid header background on every page.

   The reference header was transparent over the hero (`.on_hero`) and only
   picked up a 36% dark tint once scrolled, so red / grey / brown hero imagery
   showed through and the white logo lost contrast. A solid ivory bar means the
   dark logo is always legible, on every page and at every scroll position.
   --------------------------------------------------------------------------- */
.site_header,
.site_header.scrolled,
.site_header.on_hero,
.site_header.on_hero.scrolled,
.site_header.scrolled:not(.on_hero) {
    background: var(--ivory) !important;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-bottom: 1px solid var(--line);
}

.site_header {
    --hdr_ink: var(--ink);
    --hdr_line: rgba(41, 41, 41, .12);
}

/* The header is light everywhere now, so the dark logo is always the right one. */
.site_header .logo_light { display: none !important; }
.site_header .logo_dark { display: block !important; }

/* Drop the glow that only existed to lift white text off hero imagery. */
.site_header .nav_link,
.site_header .nav_end,
.site_header .icon_btn,
.on_hero:not(.scrolled) .nav_link,
.on_hero:not(.scrolled) .nav_end,
.on_hero:not(.scrolled) .icon_btn { text-shadow: none; }

/* ---------------------------------------------------------------------------
   2. The logo anchors the header: no divider, more breathing room, larger mark.

   The header logo is a wordmark-only crop (cmos_logo_mark.svg) — the baked-in
   "Trusted B2B Partner Since 1992" tagline was ~8px tall and illegible at
   header size, so it is cropped out here and carried by the footer lockup and
   the editable site tagline instead. Same rendered height now yields a much
   larger wordmark.
   --------------------------------------------------------------------------- */
.site_header .brand {
    border-right: 0;                                  /* divider removed */
    padding: 0 30px 0 clamp(16px, 2.6vw, 34px);
    flex: none;
}

/* The full lockup is ~3.8:1, and its tagline occupies only the bottom ~18% of
   the artwork. Rendering it taller is the only way to keep that line legible,
   so the bar grows to match rather than cropping the tagline away. */
.site_header .nav_row,
.site_header.scrolled .nav_row { height: 92px !important; }

.site_header .brand img,
.site_header.scrolled .brand img { height: 58px !important; width: auto; }

/* Keep the fixed-header offset in step with the taller bar so there is no
   first-paint jump before site-ui.js measures the real height. */
:root { --hdr_h: 92px; }

/* ---------------------------------------------------------------------------
   3. Responsive: tablet and phone.
   --------------------------------------------------------------------------- */
@media (max-width: 1180px) {
    .site_header .brand { padding: 0 20px 0 clamp(14px, 3vw, 22px); }
}

/* Phone: the full lockup is ~3.8x as wide as it is tall, so its height is
   capped by the width left over after the search, enquiry and menu buttons. */
@media (max-width: 640px) {
    :root { --hdr_h: 86px; }

    .site_header .nav_row,
    .site_header.scrolled .nav_row { height: 86px !important; }

    .site_header .brand img,
    .site_header.scrolled .brand img { height: 50px !important; }

    .site_header .brand { padding: 0 12px; }

    /* Give the tools column a little room so the logo is never crowded. */
    .site_header .nav_tools { gap: 2px; }
}

/* Very narrow phones: shrink the lockup rather than let it push the menu
   button off-screen. */
@media (max-width: 400px) {
    :root { --hdr_h: 78px; }

    .site_header .nav_row,
    .site_header.scrolled .nav_row { height: 78px !important; }

    .site_header .brand img,
    .site_header.scrolled .brand img { height: 42px !important; }

    .site_header .brand { padding: 0 8px; }
    .site_header .nav_tools .icon_btn { width: 38px; }
}

/* ---------------------------------------------------------------------------
   4. Mobile menu header: match the new wordmark treatment.
   --------------------------------------------------------------------------- */
.mob_head img { height: 52px; }

/* ---------------------------------------------------------------------------
   5. Statistics strip — collision and alignment fixes.

   site.css hardcodes `repeat(5, minmax(0,1fr))`, but the content model carries
   six stats (the reference had five). The sixth orphaned onto a second row,
   which is why labels sat at different heights, and because `.stat b` is
   `white-space:nowrap` the squeezed "6,500+" overflowed its column and
   collided with "175+". The column count now follows the real item count.
   --------------------------------------------------------------------------- */
.stats .wrap {
    grid-template-columns: repeat(var(--stat_count, 5), minmax(0, 1fr));
}

/* Size the numerals so even the widest ("6,500+") fits its column without
   overflowing once six columns share the row. */
.stats .stat b {
    font-size: clamp(24px, 2.3vw, 44px);
    white-space: nowrap;
}

/* Common baseline: numerals occupy one line each, so pinning the label to the
   top of its own row makes every label start at the same y across the strip. */
.stats .stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-inline: 12px;
}
.stats .stat span {
    display: block;
    margin-top: 10px;
    text-wrap: balance;        /* avoids one-word orphans on wrapped labels */
}

@media (max-width: 1100px) {
    .stats .wrap { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
    .stats .stat { border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
    .stats .stat:nth-child(3n + 1) { border-left: 0; }
    .stats .stat:nth-child(-n + 3) { border-top: 0; }
    .stats .stat:last-child { grid-column: auto; }
}

@media (max-width: 700px) {
    .stats .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .stats .stat b { font-size: clamp(26px, 7vw, 38px); }
    .stats .stat:nth-child(3n + 1) { border-left: 1px solid var(--line); }
    .stats .stat:nth-child(odd) { border-left: 0; }
    .stats .stat:nth-child(-n + 2) { border-top: 0; }
    .stats .stat:nth-child(3), .stats .stat:nth-child(4),
    .stats .stat:nth-child(5), .stats .stat:nth-child(6) { border-top: 1px solid var(--line); }
    .stats .stat:last-child { grid-column: auto; }
}

/* ---------------------------------------------------------------------------
   6. Hero stat columns — keep the caption line on a common baseline.

   `.hv_col` is a space-between flex column: the numeral block sits at the top
   and the caption at the bottom, so captions align across all four columns
   regardless of how the numeral or short label wraps.
   --------------------------------------------------------------------------- */
.hv_col { justify-content: space-between; }
.hv_col > div { min-width: 0; }
.hv_col b { white-space: nowrap; }
.hv_col span { text-wrap: balance; }

/* Narrow desktops: shrink the numerals before they can touch a neighbour. */
@media (max-width: 1280px) {
    .hv_col b { font-size: clamp(30px, 2.9vw, 46px); }
}

/* ---------------------------------------------------------------------------
   7. Bulk enquiry card — always fully reachable.

   On wide screens site.css docks the card absolutely above the stats band
   (`bottom:100%`) inside `.hero_v`, which is `overflow:hidden`. On short
   viewports the card is taller than the space above the band, so it was
   clipped and the Quantity field and Continue button became unreachable.
   Below 900px tall it returns to the normal flow instead of being docked, and
   it can always scroll internally as a final safeguard.
   --------------------------------------------------------------------------- */
.hv_band > .quick_card {
    max-height: calc(100vh - var(--hdr_h) - 40px);
    overflow-y: auto;
    overscroll-behavior: contain;
}

@media (max-height: 900px) and (min-width: 1101px) {
    .hv_band > .quick_card {
        position: relative !important;
        right: auto;
        bottom: auto;
        width: auto;
        min-width: 0;
        max-height: none;
        overflow-y: visible;
        grid-column: 1 / -1;
        order: -1;
        border-radius: 0;
        box-shadow: none;
        margin: 0 !important;
    }
}

/* The in-flow card (mobile, and short desktops above) should never be taller
   than the screen; keep its submit button reachable by scrolling the page. */
@media (max-width: 1100px) {
    .hv_band > .quick_card {
        max-height: none;
        overflow-y: visible;
    }
}

/* Floating state: cap height on small screens so Continue is always visible. */
.quick_card.floating {
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    overscroll-behavior: contain;
}

/* ===========================================================================
   SECOND REVIEW ROUND — typography, spacing and floating elements.
   =========================================================================== */

/* ---------------------------------------------------------------------------
   8. Floating "Get a Quote": smaller, and only after the hero.

   It previously sat over category labels, "Open the studio" and the process
   steps from the very top of the page, duplicating the hero CTA.
   --------------------------------------------------------------------------- */
@media (max-width: 700px) {
    .mob_quote {
        min-height: 42px !important;
        padding: 0 18px !important;
        font-size: 13.5px !important;
        left: auto !important;
        right: 14px !important;
        bottom: 14px !important;
        opacity: 0;
        transform: translateY(14px);
        pointer-events: none;
        transition: opacity .3s ease, transform .3s ease;
    }
    body.past_hero .mob_quote {
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }
}

/* ---------------------------------------------------------------------------
   9. Typography.

   site.css sets -.04em tracking on every heading, which is fine at 60px+ but
   makes 40px mobile headlines collide. Tracking is now proportional to size.
   --------------------------------------------------------------------------- */
@media (max-width: 760px) {
    h1, .hero_v h1 { letter-spacing: -.015em; }
    h2 { letter-spacing: -.015em; }
    h3 { letter-spacing: -.005em; }
}

@media (max-width: 480px) {
    h1, .hero_v h1, h2 { letter-spacing: -.005em; }
    h3 { letter-spacing: 0; }
}

/* Standardised heading weights: one scale everywhere. site.css drifted between
   600, 700 and 800 for equivalent levels across sections. */
h1, h2, h3, h4,
.hv_col b, .stat b, .sb_num b, .why_card h3, .sol_card h3,
.cat_tile .cap b, .quick_card h3, .mega_promo h4 { font-weight: 600; }

.stats .stat b, .why_card b, .brand_track span { font-weight: 600; }

/* Hero subtext over bright photography: darker scrim plus higher-contrast
   text, so the lead stays readable on every slide. */
.hv_shade {
    background:
        linear-gradient(180deg, rgba(20, 17, 14, .55) 0%, rgba(20, 17, 14, .28) 38%, rgba(18, 16, 13, .82) 100%),
        linear-gradient(90deg, rgba(18, 16, 13, .62) 0%, rgba(18, 16, 13, .18) 62%, transparent 100%) !important;
}

.hero_v .lead {
    color: rgba(255, 255, 255, .95) !important;
    text-shadow: 0 1px 14px rgba(0, 0, 0, .45);
}
.hero_v h1 { text-shadow: 0 2px 18px rgba(0, 0, 0, .4); }

/* ---------------------------------------------------------------------------
   10. "Why CMOS" cards: tighter, so all nine points need less scrolling.
   --------------------------------------------------------------------------- */
.why_cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* Equal padding top and bottom. The heading is now the first child (the index
   number was removed), so its old top margin goes too. */
.why_card { padding: 20px; height: 100%; }
.why_card h3 { margin: 0 0 8px; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.2; }
.why_card p { font-size: 14.5px; line-height: 1.5; }
.why_card b { font-size: 13px; }

.num_cols .num_col { padding-block: 18px; }
.num_cols .num_col h3 { font-size: clamp(17px, 1.5vw, 20px); margin: 0 0 8px; }
.num_cols .num_col p { font-size: 14.5px; line-height: 1.55; margin: 0; }

@media (max-width: 860px) {
    .why_cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .why_cards { grid-template-columns: 1fr; }
    .why_card { padding: 16px 18px 18px; }
}

/* ---------------------------------------------------------------------------
   11. Category tiles: equal label boxes with aligned arrows.

   The caption box previously hugged its text, so boxes differed in height and
   the arrow drifted whenever a name wrapped to two lines.
   --------------------------------------------------------------------------- */
.cat_tile .cap {
    min-height: 62px;
    align-items: center;
    padding: 10px 14px;
}
.cat_tile .cap b {
    display: block;
    min-width: 0;
    line-height: 1.2;
    overflow-wrap: anywhere;
}
.cat_tile .cap i {
    flex: none;
    width: 22px;
    text-align: right;
    line-height: 1;
}
.cat_tile.big .cap { min-height: 72px; }

@media (max-width: 480px) {
    .cat_tile .cap { min-height: 54px; padding: 8px 12px; }
}

/* ---------------------------------------------------------------------------
   12. Industry tabs: one horizontal scroll row, lighter selected state.

   They wrapped onto ragged multi-line rows and the selected chip was a heavy
   solid charcoal block.
   --------------------------------------------------------------------------- */
/* Matches the catalogue category filter (.tabs_line): wrapped rows of plain
   text with an underline marking the active tab — no pill chips, no sideways
   scrolling, every sector visible at once. */
.ind_tabs {
    display: flex;
    flex-wrap: wrap;
    overflow: visible;
    gap: 6px 22px;
    margin-bottom: 26px;
    padding-bottom: 0;
}

.ind_tab {
    flex: none;
    min-height: 36px;
    padding: 0 0 6px;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    background: none;
    color: var(--muted);
    font: 500 14.5px var(--serif);
    white-space: nowrap;
    transition: color .2s ease, border-color .2s ease;
}

.ind_tab:hover { color: var(--ink); }

.ind_tab[aria-selected="true"] {
    background: none;
    color: var(--ink);
    border-bottom-color: var(--red);
}

/* ---------------------------------------------------------------------------
   13. "How an order works" band: readable over the photograph.
   --------------------------------------------------------------------------- */
.sb_shade {
    background: linear-gradient(180deg, rgba(20, 18, 15, .80) 0%, rgba(20, 18, 15, .88) 45%, rgba(16, 14, 12, .95) 100%) !important;
}
.step_band .sb_img { filter: saturate(.55) contrast(.9); }

/* ---------------------------------------------------------------------------
   14. Brand strip: render supplied logos at a consistent height; the plain
       text fallback is tightened until real logo files are uploaded.
   --------------------------------------------------------------------------- */
.brand_track img {
    height: 34px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    filter: grayscale(1);
    opacity: .72;
    transition: filter .3s ease, opacity .3s ease;
}
.brand_track a:hover img { filter: none; opacity: 1; }
.brand_track span { font-size: 24px; color: #9a948c; }

/* ---------------------------------------------------------------------------
   15. Brand direction: beige/gold led, red reserved for action.

   The reference used CMOS red for both primary actions AND decoration (chips,
   kickers, arrows, rules, bullets), which read as loud retail against the
   ivory/champagne palette. Red now means one thing — "this is the button that
   starts an enquiry" — and every decorative use moves to champagne gold.
   Revert by deleting this block; nothing else depends on it.
   --------------------------------------------------------------------------- */

/* Decorative accents -> gold */
.kicker,
.hero_copy .kicker,
.page_head .kicker {
    background: rgba(197, 164, 109, .10) !important;
    border-color: rgba(197, 164, 109, .32) !important;
    color: var(--gold_dk) !important;
}

.cat_tile .cap i { color: var(--gold_dk); }
.slogan { color: var(--gold_dk); }
.timeline b { color: var(--gold_dk); }
.util_bar b { color: var(--gold_dk); }
.why_card b { color: var(--gold_dk); }

/* Section rule under the header: gold hairline, not a red/gold split bar. */
.site_header::after {
    background: linear-gradient(90deg, transparent, var(--gold) 15%, var(--gold) 85%, transparent) !important;
    opacity: .55 !important;
}

/* Numbered markers and tick bullets: gold rather than red discs. */
.step_no {
    background: var(--gold_dk) !important;
    box-shadow: 0 0 0 6px rgba(197, 164, 109, .12) !important;
}
.vm > div::before {
    background-color: var(--gold_dk) !important;
    box-shadow: 0 0 0 6px rgba(197, 164, 109, .12) !important;
}
.why_list li::before { background-color: var(--gold_dk) !important; }

/* Industry tabs deliberately keep the red underline so they read identically
   to the catalogue category filter (see section 12); the two are the same
   control in two places and should not diverge. */

/* Red is retained only for primary calls to action (.btn_red) and the
   enquiry-count badge, so it always signals "act here". */

/* ---------------------------------------------------------------------------
   16. Trust band: client logos and testimonials.
   --------------------------------------------------------------------------- */
/* Fixed-width cells in a centred flex row. Equal widths make the columns line
   up like a grid, while `justify-content: center` keeps every row centred —
   including the partial last row, which a real CSS grid would strand against
   the left edge. */
.client_row {
    list-style: none;
    margin: 30px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 10px;
    background: none;
    border: 0;
}

/* One fixed cell size for every entry — logo or text — so the list reads as an
   even, deliberate grid instead of boxes of assorted widths. */
.client_row li {
    flex: 0 0 auto;
    width: 172px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 76px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid var(--line);
    text-align: center;
}

/* Logo tiles sit on white so marks with transparent or white backgrounds
   (Adani, Federal Bank, Pidilite) read cleanly against the ivory page. */
.client_row li:has(img) { padding: 10px 16px; }

/* Text entries: company name until a logo is uploaded. Sized so the longest
   name ("Kerala Government Secretariat Association") still fits the cell. */
.client_row li.is_name {
    font: 500 13px/1.35 var(--serif);
    letter-spacing: -.01em;
    color: var(--char);
    overflow-wrap: break-word;
    hyphens: auto;
}

.client_row a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    text-decoration: none;
}
.client_row a:hover { color: var(--gold_dk); }

/* Brand colours shown as-is: these marks rely on colour for recognition, and
   desaturating them (the usual "client strip" treatment) would flatten Asian
   Paints, Adani and V-Guard into grey. `contain` keeps very wide marks
   (V-Guard, Adani) and square ones (Pidilite, Eastern) on the same baseline
   without distortion. */
.client_row img {
    height: 46px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    object-position: center;
    filter: none;
    opacity: 1;
    transition: transform .3s ease;
}
.client_row li:hover img { transform: scale(1.04); }

@media (max-width: 700px) {
    .client_row { gap: 8px; }
    .client_row li { min-height: 60px; padding: 10px 14px; }
    .client_row li.is_name { font-size: 13px; }
    .client_row img { height: 36px; max-width: 112px; }
}

@media (max-width: 400px) {
    .client_row { gap: 6px; }
    .client_row li { min-height: 54px; padding: 8px 12px; }
    .client_row li.is_name { font-size: 12.5px; }
    .client_row img { height: 32px; max-width: 96px; }
}

/* Background of well-known partner logos. Static, in a frame that starts
   below the heading: the logo columns run beside the tile grid, from its
   first row down to a bottom row under the grid. */
.trust_band {
    overflow: hidden;
    /* Side margin beside the content (outer gutter + wrap padding); the
       logo columns are centred in it. */
    --tb_gut: calc(max(0px, (100% - 1240px) / 2) + max(4vw, 18px));
    --tb_gc: calc(var(--tb_gut) / 2);
    /* One box size for every logo: as wide as the margin allows, max 150px. */
    --tb_bw: clamp(84px, calc(var(--tb_gut) - 28px), 150px);
}
/* Wider heading column so "Some of the reputed companies / we have worked
   with" sits on two lines at the standard heading size; the intro text takes
   a narrower column on the right. */
.trust_band .vhead {
    /* Heading column fits the heading (up to 800px — enough for "Some of
       the reputed companies" at 54px) and only shrinks when space runs out;
       this holds on very wide screens where the wrap padding grows. */
    grid-template-columns: fit-content(800px) minmax(200px, 1fr);
    column-gap: 32px;
}
/* Body = tile grid + room under it for the bottom row of logos. The logo
   frame is measured against this box, not the whole section. */
.tb_body {
    position: relative;
    margin-top: 30px;
    padding-bottom: 104px;
}
.trust_band .tb_body .client_row { margin-top: 0; }
.tb_body > .wrap { position: relative; z-index: 1; }
.tb_watermarks {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    user-select: none;
}
/* Uniform frame: 8 rows in 7 equal steps, from level with the top of the
   grid (row 0) to the bottom of the body (row 7, the bottom row). 35px is
   half the largest logo box, so row 0 and row 7 boxes sit flush with the
   frame edges. Columns are centred in each side margin; the bottom row
   divides the space between the two columns into 5 equal steps. */
.tb_mark {
    position: absolute;
    top: calc(35px + var(--row) * (100% - 70px) / 7);
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--tb_bw);
    aspect-ratio: 150 / 69;
    font: 700 22px/1 var(--serif);
    letter-spacing: -.03em;
    text-align: center;
    color: var(--ink);
    opacity: .5;
}
.tb_mark.col_L { left: var(--tb_gc); }
.tb_mark.col_R { left: calc(100% - var(--tb_gc)); }
.tb_mark.col_B { left: calc(var(--tb_gc) + (100% - 2 * var(--tb_gc)) * var(--i) / 5); }

/* Logos keep their brand colours but muted (less saturation and contrast,
   half opacity), so they read as a quiet background and the tile grid
   stays the focus. */
.tb_mark img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: saturate(.55) contrast(.85);
}
/* Text fallback (logo missing) stays faint, like a watermark. */
.tb_mark:not(:has(img)) { opacity: .1; }
/* Thin, light-coloured line art (V-Guard) needs a little more to read. */
.tb_mark.solid { opacity: .75; }

/* On phones the margins are too narrow for side columns, and a 6-logo
   bottom row would crowd; the tiles alone carry the section there. */
@media (max-width: 760px) {
    .trust_band .vhead { grid-template-columns: 1fr; }
    .tb_watermarks { display: none; }
    .tb_body { padding-bottom: 0; }
}

/* Client list on phones: 3 fluid columns instead of one 172px tile per row,
   and only the first 15 until "Show all" is pressed (15 matches
   MOBILE_PREVIEW in TrustBand.svelte). */
.client_more { display: none; }

/* Faded background logo in the call-to-action band and in plain page
   headers. site.css placed it partly outside the section (top -40px, right
   -60px, 520px wide), so the section's overflow cut off its top, bottom and
   right side. It now fits inside, vertically centred with a margin, and keeps
   its own proportions (static/cmos_icon_full.png). */
.cta_band .art,
.page_head .art {
    top: 50%;
    right: max(4vw, 18px);
    width: auto;
    max-width: 45%;
    height: min(440px, calc(100% - 64px));
    object-fit: contain;
    transform: translateY(-50%);
}
.page_head .art { height: min(340px, calc(100% - 48px)); }
/* Wide screens: the CTA band has an empty margin to the right of the
   contact card. The logo sits centred in that margin, fully visible —
   neither cut off by the band nor hidden behind the card. Below this width
   there is no room beside the card, so it stays a faint watermark behind
   it (rule above). */
@media (min-width: 1500px) {
    .cta_band {
        /* space between the content's right edge and the band's edge */
        --cta_margin: calc(max(0px, (100% - 1240px) / 2) + max(4vw, 18px));
    }
    .cta_band .art {
        right: calc(var(--cta_margin) / 2);
        width: min(380px, calc(var(--cta_margin) - 40px));
        max-width: none;
        height: auto;
        max-height: calc(100% - 64px);
        transform: translate(50%, -50%);
    }
}

/* Mega menus (Products, Solutions): positioned by Header.svelte so the
   panel's right edge sits just past its trigger, instead of being centred on
   the whole nav. That replaces the -50% centring transform. */
.main_nav .mega_item > .drop_panel { transform: translate(0, 10px); }
.main_nav .nav_item.mega_item.open > .drop_panel { transform: translate(0, 0); }
/* Options column next to the trigger, promo card on the far side, so the
   pointer no longer has to cross the logo to reach the first option. */
.main_nav .mega,
.main_nav .mega_sol { grid-template-columns: 270px minmax(0, 1fr); }
.main_nav .mega .mega_promo { order: -1; }
/* The promo card shows the CMOS icon (a portrait 137×150 graphic). site.css
   fits it into a 4:3 photo box with object-fit: cover, which cut the top and
   bottom off the logo. Show it whole, at its own proportions. */
.main_nav .mega_promo img {
    width: auto;
    height: 96px;
    max-width: 100%;
    aspect-ratio: auto;
    object-fit: contain;
    /* Compact, complete icon, centred in the card, with clear space before
       the heading below. */
    align-self: center;
    margin: 4px 0 18px;
}
/* Products category names use the same type as the Solutions options
   (Inter, regular, 15px, charcoal) instead of semi-bold Plus Jakarta Sans,
   so both mega menus read alike. Tighter line height keeps two-line names
   ("Promotional Merchandise") compact beside their thumbnails. */
.main_nav .mega_cats b {
    font: 400 15px/1.35 var(--sans);
    letter-spacing: normal;
    color: var(--char);
}
/* Solutions: the main "Corporate gifting" list goes in the column directly
   under the trigger; Industries sits beside it. */
.main_nav .mega_sol .mega_cols > div:first-child { order: 2; }
/* Invisible strip under each dropdown trigger that covers the 10px gap down
   to the panel; it belongs to the menu item, so moving down never counts as
   leaving the menu. */
.main_nav .nav_item.has_drop > .nav_link::before {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    width: auto;
    height: 14px;
    background: transparent;
    border: 0;
    transform: none;
}

/* Main nav: one underline at a time. The current page's item (.active)
   keeps its underline until another item is hovered or its dropdown is
   opened; then only that item is underlined, and the current-page line
   returns when the pointer leaves the menu. */
.main_nav:is(:has(.nav_item.open), :has(.nav_link:hover))
    .nav_link.active:not(:hover):not(.nav_item.open > .nav_link)::after {
    transform: scaleX(0);
    transform-origin: right;
}

/* Product card buttons: site.css gives both `flex: 1` (equal widths), which
   left "Add to Enquiry" cramped while "Details" had space to spare. Each now
   starts at its label width and both share the leftover space equally, so the
   padding around each label matches. When the card is too narrow for both,
   the row wraps and each button fills its own line. */
.prod_card .acts .btn { white-space: nowrap; flex: 1 1 auto; padding: 0 12px; }

/* Skip link: off-screen until focused with the keyboard. */
.skip_link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1000;
    padding: 12px 18px;
    background: var(--ink);
    color: #fff;
    font: 600 14px var(--serif);
    text-decoration: none;
    border-radius: 6px;
    transform: translateY(-160%);
    transition: transform .2s ease;
}
.skip_link:focus { transform: none; outline: 2px solid var(--red); outline-offset: 2px; }
main:focus { outline: none; }

/* Hero: slides 2+ are h2 (one h1 per page) but must look identical to the
   h1 on slide 1. */
.hero_v h2.hero_title {
    font: 600 clamp(40px, 4.8vw, 70px)/1 var(--serif);
    letter-spacing: -.045em;
    max-width: 12ch;
    margin: 0;
    color: #fff;
    text-wrap: balance;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .4);
}
@media (max-width: 560px) { .hero_v h2.hero_title { font-size: 40px; } }
/* Pause / play control at the end of the slide numbers. */
.slide_nav .slide_toggle {
    flex: none;
    width: 44px;
    min-height: 44px;
    padding: 14px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, .75);
}
.slide_nav .slide_toggle svg { width: 14px; height: 14px; }
.slide_nav .slide_toggle:hover { color: #fff; }
.slide_nav .slide_toggle:focus-visible,
.slide_nav button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
/* The progress bar freezes while the slideshow is paused. */
.hv_top.paused .slide_nav button.is_on i::after { animation-play-state: paused; }
@media (max-width: 760px) {
    .trust_band .client_row {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
    }
    .trust_band .client_row li {
        width: auto;
        min-height: 64px;
        padding: 8px 6px;
    }
    .trust_band .client_row li.is_name { font-size: 12.5px; }
    .trust_band .client_row:not(.show_all) li:nth-child(n+16) { display: none; }
    .client_more {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 48px;
        margin-top: 12px;
        background: #fff;
        border: 1px solid var(--line);
        font: 600 14px var(--serif);
        color: var(--ink);
        cursor: pointer;
    }
    .client_more:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
}
.quote_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 20px;
    margin-top: 36px;
}
.quote_card {
    margin: 0;
    padding: 26px 26px 22px;
    background: #fff;
    border: 1px solid var(--line);
    border-top: 2px solid var(--gold);
}
.quote_card blockquote {
    margin: 0 0 18px;
    font: 500 clamp(16px, 1.4vw, 18px)/1.5 var(--serif);
    letter-spacing: -.01em;
    color: var(--ink);
}
.quote_card figcaption { display: flex; align-items: center; gap: 12px; }
.quote_card figcaption img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.quote_card figcaption b { display: block; font-size: 15px; }
.quote_card figcaption small { color: var(--muted); font-size: 13px; }

@media (max-width: 560px) {
    .client_row img { height: 36px; max-width: 110px; }
    .quote_card { padding: 20px 20px 18px; }
}

/* ---------------------------------------------------------------------------
   22. Catalogue category filter on phones.

   Chips WRAP onto multiple rows so every category is visible at once with no
   sideways scrolling — all twelve readable without interaction. The filter
   block and the search field each take their own full-width row.
   --------------------------------------------------------------------------- */
@media (max-width: 860px) {
    .cat_bar {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        margin-bottom: 22px;
    }

    .tabs_line {
        flex-wrap: wrap;          /* every category visible, no side-scroll */
        overflow: visible;
        gap: 6px 20px;
        width: 100%;
    }

    .tabs_line .chip {
        flex: none;
        white-space: nowrap;      /* names never break mid-word across rows */
    }

    .search_box { width: 100%; }
}

/* ---------------------------------------------------------------------------
   23. Scroll performance.

   site.css line 647 pins two large radial gradients to the viewport with
   `background-attachment: fixed`. Fixed backgrounds must be repainted on every
   scroll frame — the single biggest cause of the page feeling stuck, and
   especially bad on mobile, where iOS handles it poorly. Letting them scroll
   with the page is visually near-identical on these soft gradients and removes
   the per-frame repaint entirely.
   --------------------------------------------------------------------------- */
body { background-attachment: scroll, scroll, scroll, scroll, scroll !important; }

/* Hint the compositor for the elements that genuinely do move, and make sure
   nothing else is left permanently promoted to its own layer. */
.hv_slides img { will-change: opacity; }
.reveal, .stagger > *, .blur_up, .fade_up, .pic_anim, .pic_mask { will-change: auto; }

/* Never let a horizontal overflow create the rubber-band "stuck" feel. */
html, body { overflow-x: clip; }

/* ---------------------------------------------------------------------------
   21. Footer admin lock.

   A discreet staff entry point to /wp/admin. Deliberately low-contrast so it
   reads as a utility rather than a visitor-facing link, but still a 32px
   target and keyboard reachable.
   --------------------------------------------------------------------------- */
.foot_base .admin_lock {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-left: 4px;
    border: 1px solid transparent;
    border-radius: 50%;
    color: var(--muted);
    opacity: .6;
    vertical-align: middle;
    transition: color .25s ease, opacity .25s ease, border-color .25s ease;
}

.foot_base .admin_lock:hover,
.foot_base .admin_lock:focus-visible {
    color: var(--gold_dk);
    border-color: var(--line);
    opacity: 1;
}

.foot_base .admin_lock:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 2px;
}

/* ---------------------------------------------------------------------------
   17. Mobile menu density.

   Twelve categories in a single vertical list turned the phone menu into a
   long scroll. They now sit in two columns, with an explicit full-catalogue
   link at the top so the route to /products is never ambiguous.
   --------------------------------------------------------------------------- */
/* site.css styles `.mob_panel nav > a` but never the <nav> itself, so any
   stray `nav{display:flex}` turns the menu into an overlapping row. Pin it. */
.mob_panel nav {
    display: block;
    width: 100%;
}

/* The menu is taller than the screen once a category list is expanded, so it
   must scroll on its own. `dvh` keeps the full height usable while mobile
   browser chrome shows and hides; `overscroll-behavior` stops the scroll
   chaining through to the locked page behind it. */
.mob_panel {
    height: 100dvh;
    max-height: 100dvh;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    /* Clear the home indicator / browser bar at the bottom. */
    padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px)) !important;
}

.enq_drawer {
    height: 100dvh;
    max-height: 100dvh;
    overscroll-behavior: contain;
}

.enq_drawer .enq_items {
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

/* --- Enquiry drawer: header ------------------------------------------- */
.enq_drawer .enq_head { align-items: center; padding: 22px 24px; }
.enq_drawer .enq_head h3 {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 10px;
    font-size: 24px;
    line-height: 1.15;
}
.enq_count_pill {
    font: 600 12px/1 var(--sans);
    letter-spacing: 0;
    color: var(--red);
    background: rgba(215, 25, 32, .08);
    border-radius: 20px;
    padding: 5px 10px;
}
/* 40px round close button (was a bare 12px "×"). */
.enq_close {
    flex: none;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    color: var(--char);
    cursor: pointer;
    transition: background .2s, border-color .2s;
}
.enq_close:hover { background: var(--ivory); border-color: #d8cfc0; }
.enq_close:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* --- Enquiry drawer: empty state -------------------------------------- */
.enq_drawer .enq_empty {
    padding: 28px 0 8px;
    text-align: center;
    color: var(--muted);
}
.enq_empty_icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--ivory);
    color: var(--red);
}
.enq_empty h4 {
    margin: 0 0 6px;
    font: 600 18px/1.3 var(--serif);
    letter-spacing: -.01em;
    color: var(--ink);
}
.enq_empty > p {
    margin: 0 auto;
    max-width: 30ch;
    font-size: 14px;
    line-height: 1.55;
}
.enq_block {
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    text-align: left;
}
.enq_block h5 {
    margin: 0 0 12px;
    font: 600 12px var(--sans);
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--gold_dk);
}
/* Category shortcuts: two columns of thumbnail + name. */
.enq_cats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
.enq_cats a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    text-decoration: none;
    font: 400 14px/1.3 var(--sans);
    color: var(--char);
    transition: background .2s, border-color .2s;
}
.enq_cats a:hover { background: var(--ivory); border-color: #d8cfc0; }
.enq_cats img {
    flex: none;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    object-fit: cover;
}
/* How it works: numbered steps. */
.enq_steps {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: enq_step;
    display: grid;
    gap: 14px;
}
.enq_steps li {
    counter-increment: enq_step;
    position: relative;
    padding-left: 40px;
    min-height: 28px;
}
.enq_steps li::before {
    content: counter(enq_step);
    position: absolute;
    left: 0;
    top: 0;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    font: 600 13px var(--sans);
}
.enq_steps b {
    display: block;
    font: 600 14px/1.35 var(--sans);
    color: var(--ink);
}
.enq_steps span {
    display: block;
    font-size: 13px;
    line-height: 1.45;
    color: var(--muted);
}

.search_results {
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.acc_body .acc_cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 10px;
    row-gap: 2px;
    /* Stretch both cells in a row to the same height, so a two-line name like
       "Promotional Merchandise" no longer leaves its single-line neighbour
       floating with a ragged gap beneath it. */
    align-items: stretch;
}

.acc_body .acc_cols a {
    display: flex;
    align-items: center;          /* centre text within the equalised cell */
    min-height: 46px;             /* comfortable touch target */
    margin: 0;
    padding: 8px 10px;
    font-size: 13.5px;
    line-height: 1.25;
    border-left: 1px solid var(--gold);
    overflow-wrap: anywhere;
}

/* The catalogue link spans both columns and reads as the primary action. */
.acc_body .acc_cols .acc_all {
    grid-column: 1 / -1;
    margin-bottom: 4px;
    padding: 11px 12px;
    border-left: 0;
    background: rgba(197, 164, 109, .12);
    color: var(--gold_dk);
    font-weight: 600;
}

/* Solutions and Industries keep a single readable column. */
.acc_body > div:not(.acc_cols) a { padding: 9px 14px; font-size: 14.5px; }

/* Tighten the top-level rows so more of the menu fits above the fold. */
.mob_panel nav > a,
.mob_panel .acc > button { padding: 13px 2px; }

@media (max-width: 360px) {
    .acc_body .acc_cols { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------------------
   18. Bulk enquiry reopen control.

   Closing the card used to leave a position:fixed pill that covered page
   content on every screen. This replacement is absolutely positioned inside
   the hero band, so it occupies the card's own slot and scrolls away with the
   hero — the form stays recoverable without anything overlaying the page.
   --------------------------------------------------------------------------- */
/* Closing the enquiry card leaves the reference's pill docked to the
   bottom-right of the screen, as requested. It stays there while scrolling,
   so it is kept compact and given a safe-area-aware offset. */
.hv_band > .qc_pill,
.qc_pill {
    position: fixed !important;
    right: calc(20px + env(safe-area-inset-right, 0px)) !important;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px)) !important;
    left: auto !important;
    top: auto !important;
    z-index: 45;
    margin: 0 !important;
    /* .hv_band carries .stagger, whose reveal animation transforms its direct
       children; clear it so the pill sits exactly where it is pinned. */
    transform: none !important;
    opacity: 1 !important;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: auto;
    min-width: 0;
    padding: 7px 20px 7px 7px;
    border: 1px solid var(--line);
    border-radius: 40px;
    background: #fff;
    color: var(--ink);
    font: 600 14px var(--serif);
    letter-spacing: -.01em;
    cursor: pointer;
    box-shadow: 0 18px 40px -18px rgba(41, 41, 41, .5);
    transition: border-color .25s ease, color .25s ease;
}

.qc_pill img {
    width: 40px;
    height: 40px;
    padding: 6px;
    border-radius: 50%;
    background: var(--ivory);
    border: 1px solid var(--gold);
}

.qc_pill:hover { border-color: var(--gold); color: var(--gold_dk); }
.qc_pill:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* The floating "Get a Quote" button also lives bottom-right on phones, so hide
   it while the pill is shown — they would otherwise sit on top of each other.
   site.css already uses :has() for the same purpose on the floating card. */
@media (max-width: 700px) {
    body:has(.qc_pill) .mob_quote { display: none !important; }

    .qc_pill {
        right: calc(14px + env(safe-area-inset-right, 0px)) !important;
        bottom: calc(14px + env(safe-area-inset-bottom, 0px)) !important;
        padding: 6px 18px 6px 6px;
        font-size: 13.5px;
    }
    .qc_pill img { width: 36px; height: 36px; }
}

/* ---------------------------------------------------------------------------
   19. Hero stats band on phones — collision fix.

   site.css line 859 sets the correct two-column mobile layout, but line 950
   ("v22: form docked on the band line") re-declares `.hv_band` with a
   five-column desktop track OUTSIDE any media query. Same specificity, later
   in the file, so it won the cascade at every width and crushed five columns
   into ~70px each on a phone — "6,500+" then overlapped "175+".

   Restoring the two-column track below 1100px, and scaling the numerals so
   even the widest value clears its column on a 320px screen.
   --------------------------------------------------------------------------- */
@media (max-width: 1100px) {
    .hv_band {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
    .hv_intro { grid-column: 1 / -1; }
    .hv_col { min-height: 0; }
}

@media (max-width: 560px) {
    .hv_intro { padding: 22px max(4vw, 16px) 24px; }
    .hv_intro p { font-size: 16px; line-height: 1.35; max-width: none; }

    .hv_col {
        padding: 20px 14px 22px;
        gap: 16px;
        min-height: 0;
    }
    /* Numerals shrink with the viewport instead of overflowing it. */
    .hv_col b { font-size: clamp(26px, 8vw, 36px) !important; }
    .hv_col em { font-size: clamp(18px, 5.5vw, 26px) !important; }
    .hv_col small { font-size: 11.5px; margin-top: 6px; }
    .hv_col span { font-size: 13.5px; line-height: 1.3; }
}

/* Very narrow phones: one stat per row so nothing is ever cramped. */
@media (max-width: 340px) {
    .hv_band { grid-template-columns: 1fr !important; }
    .hv_col { border-left: 0 !important; }
}
