/* ==========================================================================
   Luxe Shield — design tokens, base styles, shared header & footer
   Loaded on every page, before site.css. Everything is namespaced with "lx-".
   ========================================================================== */

:root {
    /* Surfaces */
    --color-bg: #f3f1ec;          /* warm concrete paper */
    --color-surface: #fbfaf7;     /* dropdowns */
    --color-text: #17191c;        /* graphite */
    --color-muted: #5b574f;       /* warm stone grey */
    --color-border: #d6d1c6;      /* hairline */

    /* Brand accent — the site's original orange */
    --color-accent: #ff5e15;
    --color-accent-ink: #b23e0b;  /* accent for small text on light surfaces */
    --color-accent-line: #e8520f; /* accent for thin indicators on light surfaces (3:1) */
    --color-on-accent: #17191c;

    /* Dark / footer */
    --color-dark: #141618;
    --color-dark-text: #edeae4;
    --color-dark-muted: #a39e94;
    --color-dark-border: #2d3135;

    --font-ui: "Archivo", "Helvetica Neue", Arial, sans-serif;
    --lx-header-h: 64px;
    --lx-gutter: 16px;
    --lx-ease: cubic-bezier(.2, .7, .2, 1);
}

@media (min-width: 720px) {
    :root { --lx-gutter: 24px; }
}

@media (min-width: 1080px) {
    :root { --lx-header-h: 80px; --lx-gutter: clamp(24px, 3vw, 48px); }
}

/* ---------- Base ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-padding-top: calc(var(--lx-header-h) + 16px);   /* anchor links land below the sticky header */
}

body {
    margin: 0;
    background: var(--color-surface);
    color: var(--color-text);
    font-family: var(--font-ui);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

main { display: block; }
img, svg { vertical-align: middle; }
img { max-width: 100%; border-style: none; }
button, input, select, textarea { font: inherit; }
[hidden] { display: none !important; }

/* "clip" stops sideways scrolling without breaking the sticky header (overflow: hidden would) */
@supports (overflow: clip) {
    html,
    body { overflow-x: clip; }
}

#main:focus { outline: none; }

.lx-sr {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* Shared label style — expanded caps, used for divisions and small captions */
.lx-tag,
.lx-header .lx-tag,
.lx-footer .lx-tag,
.lx-section .lx-tag,
.lx-pagehead .lx-tag,
.lx-hero .lx-tag {
    display: block;
    margin: 0;
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 600;
    font-stretch: 125%;
    line-height: 1.2;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--color-muted);
}

.lx-num {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* Skip link */
.lx-skip {
    position: absolute;
    top: 8px; inset-inline-start: 8px;
    z-index: 10001;
    padding: 12px 16px;
    background: var(--color-text);
    color: var(--color-bg) !important;
    font: 600 14px/1 var(--font-ui);
    transform: translateY(-200%);
}
.lx-skip:focus { transform: none; }

/* Focus rings */
.lx-header a:focus-visible,
.lx-header button:focus-visible,
.lx-skip:focus-visible {
    outline: 2px solid var(--color-accent-ink) !important;
    outline-offset: -2px;
}
.lx-footer a:focus-visible {
    outline: 2px solid var(--color-accent) !important;
    outline-offset: 3px;
}
.lx-header .lx-cta:focus-visible { outline-color: var(--color-text) !important; outline-offset: -5px; }

/* ==========================================================================
   Header
   ========================================================================== */

header.lx-header {
    display: block !important;
    position: sticky;
    top: 0;
    z-index: 9990;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text);
    font-family: var(--font-ui);
}

.lx-header__bar {
    display: flex;
    align-items: stretch;
    height: var(--lx-header-h);
    padding-inline-start: var(--lx-gutter);
}

.lx-header a,
.lx-header button {
    color: inherit;
    text-decoration: none;
    background: none;
    border: 0;
    border-radius: 0;
    font: inherit;
}

.lx-brand {
    display: flex;
    align-items: center;
    flex: none;
    padding-inline-end: var(--lx-gutter);
}
.lx-brand img {
    display: block;
    width: auto;
    height: 38px;
    mix-blend-mode: multiply;    /* the logo artwork has an opaque white box behind the lettering */
}

/* ---------- Primary navigation (desktop) ---------- */

.lx-header .lx-nav {
    padding: 0;
    border-radius: 0;
}
.lx-header .lx-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.lx-header .lx-nav li {
    font: inherit;
    color: inherit;
    line-height: inherit;
    text-transform: none;
    margin: 0;
}

.lx-header .lx-nav__link,
.lx-header .lx-nav__caret {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 100%;
    color: var(--color-text);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: .005em;
    white-space: nowrap;
    cursor: pointer;
    transition: color .16s var(--lx-ease);
}
.lx-header .lx-nav__link svg,
.lx-header .lx-nav__caret svg { transition: transform .2s var(--lx-ease); }

/* ---------- Header actions ---------- */

.lx-phone {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 0 var(--lx-gutter);
    margin-inline-start: auto;
    border-inline-start: 1px solid var(--color-border);
}
.lx-header .lx-phone .lx-num {
    font-size: 17px;
    font-weight: 600;
    font-stretch: 110%;
    transition: color .16s var(--lx-ease);
}
.lx-header .lx-phone:hover .lx-num { color: var(--color-accent-ink); }

.lx-header .lx-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 0 28px;
    background: var(--color-accent);
    color: var(--color-on-accent);
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    transition: background-color .18s var(--lx-ease), color .18s var(--lx-ease);
}
.lx-header .lx-cta svg { transition: transform .18s var(--lx-ease); }
.lx-header .lx-cta:hover {
    background: var(--color-text);
    color: var(--color-bg);
}
.lx-header .lx-cta:hover svg { transform: translateX(4px); }
.lx-cta--bar { display: none !important; }

.lx-icon-btn,
.lx-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    border-inline-start: 1px solid var(--color-border) !important;
    cursor: pointer;
}
.lx-icon-btn { width: var(--lx-header-h); margin-inline-start: auto; }

.lx-menu-btn {
    gap: 10px;
    padding: 0 var(--lx-gutter);
    min-width: 104px;
}
.lx-menu-btn__label {
    font-size: 11px;
    font-weight: 600;
    font-stretch: 125%;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.lx-menu-btn__bars {
    position: relative;
    width: 18px;
    height: 10px;
}
.lx-menu-btn__bars span {
    position: absolute;
    inset-inline-start: 0;
    width: 100%;
    height: 2px;
    background: currentColor;
    transition: transform .22s var(--lx-ease), top .22s var(--lx-ease);
}
.lx-menu-btn__bars span:first-child { top: 0; }
.lx-menu-btn__bars span:last-child  { top: 8px; }
.lx-menu-btn[aria-expanded="true"] .lx-menu-btn__bars span:first-child { top: 4px; transform: rotate(45deg); }
.lx-menu-btn[aria-expanded="true"] .lx-menu-btn__bars span:last-child  { top: 4px; transform: rotate(-45deg); }

/* ---------- Mobile / tablet panel (below 1080px) ---------- */

@media (max-width: 1079.98px) {
    .lx-brand img { height: 34px; }

    .lx-js .lx-header .lx-nav {
        position: fixed;
        top: var(--lx-panel-top, var(--lx-header-h));
        inset-inline-start: 0; inset-inline-end: 0; bottom: 0;
        z-index: 9989;
        display: flex;
        flex-direction: column;
        overflow-y: auto;
        overscroll-behavior: contain;
        background: var(--color-bg);
        visibility: hidden;
        opacity: 0;
        transform: translateY(-6px);
        transition: opacity .2s var(--lx-ease), transform .2s var(--lx-ease), visibility 0s linear .2s;
    }
    .lx-js .lx-header .lx-nav[data-open] {
        visibility: visible;
        opacity: 1;
        transform: none;
        transition: opacity .2s var(--lx-ease), transform .2s var(--lx-ease);
    }
    html.lx-menu-open { overflow: hidden; }

    .lx-header .lx-nav > .lx-nav__list {
        padding: 24px var(--lx-gutter) 8px;
    }
    .lx-header .lx-nav__item { border-bottom: 1px solid var(--color-border); }
    .lx-header .lx-nav__item:first-child { border-top: 1px solid var(--color-border); }

    .lx-header .lx-nav__link {
        min-height: 56px;
        font-size: 22px;
        font-weight: 600;
        font-stretch: 105%;
    }
    .lx-header .lx-nav__item.is-current > .lx-nav__link { color: var(--color-accent-ink); }

    /* Sub-menus become labelled groups; no second tap needed */
    .lx-header .lx-nav__link--split,
    .lx-header .lx-nav__toggle,
    .lx-header .lx-nav__caret { display: none; }

    .lx-menu { padding: 16px 0 12px; }
    .lx-header .lx-menu .lx-menu__group {
        display: block;
        margin: 0 0 4px;
        font-family: var(--font-ui);
        line-height: 1.2;
        font-size: 11px;
        font-weight: 600;
        font-stretch: 125%;
        letter-spacing: .08em;
        text-transform: uppercase;
        color: var(--color-muted);
    }

    .lx-header .lx-menu__link,
    .lx-header .lx-service-link {
        display: flex;
        align-items: baseline;
        gap: 12px;
        min-height: 48px;
        padding: 12px 0;
        font-size: 19px;
        font-weight: 500;
        color: var(--color-text);
    }
    .lx-header .lx-menu li + li > a { border-top: 1px dashed var(--color-border); }
    .lx-header .lx-service-link .lx-tag { order: 2; margin-inline-start: auto; color: var(--color-muted); }
    .lx-header .lx-service-link__summary { display: none; }
    .lx-header .lx-menu a[aria-current="page"] { color: var(--color-accent-ink); }

    .lx-nav__actions {
        position: sticky;
        bottom: 0;
        display: grid;
        grid-template-columns: auto 1fr;
        margin-top: 16px;
        border-top: 1px solid var(--color-border);
        background: var(--color-bg);
        padding-bottom: env(safe-area-inset-bottom);
    }
    .lx-header .lx-nav__call {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 4px;
        min-height: 64px;
        padding: 0 var(--lx-gutter);
    }
    .lx-header .lx-nav__call .lx-num { font-size: 17px; font-weight: 600; }
    .lx-header .lx-nav__actions .lx-cta { min-height: 64px; }
}

/* Tablet: phone number and quote button fit in the bar */
@media (min-width: 720px) and (max-width: 1079.98px) {
    .lx-phone { display: flex; }
    .lx-cta--bar { display: flex !important; }
    .lx-icon-btn--call { display: none; }
    .lx-nav__actions { display: none !important; }
}

/* Phones: links sit toward the bottom of the screen, within thumb reach */
@media (max-width: 719.98px) {
    .lx-header .lx-nav > .lx-nav__list { margin-top: auto; }
}

@media (max-width: 419.98px) {
    .lx-header .lx-nav__call .lx-tag { display: none; }   /* the bar already has a call button */
}

@media (max-width: 339.98px) {
    .lx-menu-btn { min-width: 0; }
    .lx-menu-btn__label { display: none; }
}

/* ---------- Desktop (1080px and up) ---------- */

@media (min-width: 1080px) {
    .lx-brand {
        border-inline-end: 1px solid var(--color-border);
        padding-inline-end: clamp(24px, 3vw, 48px);
    }
    .lx-brand img { height: 40px; }

    .lx-header .lx-nav { display: flex; padding-inline-start: clamp(8px, 1.5vw, 24px); }
    .lx-header .lx-nav__list { display: flex; height: 100%; }
    .lx-nav__actions,
    .lx-icon-btn,
    .lx-menu-btn { display: none !important; }
    .lx-phone { display: flex; }
    .lx-cta--bar { display: flex !important; }

    .lx-header .lx-nav__item {
        position: relative;
        display: flex;
        padding: 0 clamp(12px, 1.3vw, 20px);
    }
    .lx-header .lx-nav__link--split { padding-inline-end: 0; }
    .lx-header .lx-nav__caret {
        width: 32px;
        justify-content: center;
        margin-inline-end: -10px;
    }

    /* Dimension-line indicator: a measured bar with end ticks, sitting on the header rule */
    .lx-header .lx-nav__item::after {
        content: "";
        position: absolute;
        inset-inline-start: clamp(12px, 1.3vw, 20px);
        inset-inline-end: clamp(12px, 1.3vw, 20px);
        bottom: -5px;
        height: 9px;
        border-inline-start: 2px solid currentColor;
        border-inline-end: 2px solid currentColor;
        background: linear-gradient(currentColor, currentColor) 0 50% / 100% 2px no-repeat;
        color: var(--color-text);
        opacity: 0;
        transform: scaleX(.6);
        transition: opacity .18s var(--lx-ease), transform .22s var(--lx-ease);
        pointer-events: none;
    }
    .lx-header .lx-nav__item:hover::after {
        opacity: .35;
        transform: none;
    }
    .lx-header .lx-nav__item.is-current::after {
        color: var(--color-accent-line);
        opacity: 1;
        transform: none;
    }
    .lx-header .lx-nav__item:hover > .lx-nav__link,
    .lx-header .lx-nav__item:hover > .lx-nav__caret { color: var(--color-text); }
    .lx-header .lx-nav__item.is-current > .lx-nav__link { font-weight: 600; }

    /* Dropdowns */
    .lx-menu {
        position: absolute;
        top: calc(100% + 1px);
        inset-inline-start: 0;
        z-index: 2;
        min-width: 240px;
        background: var(--color-surface);
        border: 1px solid var(--color-border);
        border-top: 2px solid var(--color-text);
        box-shadow: 0 18px 30px -18px rgba(23, 25, 28, .35);
        visibility: hidden;
        opacity: 0;
        transform: translateY(-4px);
        transition: opacity .16s var(--lx-ease), transform .16s var(--lx-ease), visibility 0s linear .16s;
    }
    .lx-menu__group { display: none; }

    .lx-has-menu [aria-expanded="true"] ~ .lx-menu {
        visibility: visible;
        opacity: 1;
        transform: none;
        transition: opacity .16s var(--lx-ease), transform .16s var(--lx-ease);
    }
    .lx-has-menu [aria-expanded="true"] svg { transform: rotate(180deg); }

    .lx-header .lx-menu__link {
        display: block;
        padding: 14px 20px;
        font-size: 15px;
        font-weight: 500;
        color: var(--color-text);
        border-inline-start: 2px solid transparent;
        transition: background-color .14s var(--lx-ease), border-color .14s var(--lx-ease);
    }
    .lx-header .lx-menu li + li { border-top: 1px solid var(--color-border); }
    .lx-header .lx-menu__link:hover { background: var(--color-bg); color: var(--color-text); }
    .lx-header .lx-menu__link[aria-current="page"] { border-inline-start-color: var(--color-accent-line); font-weight: 600; }

    /* Services: two divisions side by side */
    .lx-menu--services { width: min(600px, 80vw); }
    .lx-menu--services ul {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    .lx-header .lx-menu--services li + li {
        border-top: 0;
        border-inline-start: 1px solid var(--color-border);
    }
    .lx-header .lx-service-link {
        display: flex;
        flex-direction: column;
        gap: 8px;
        height: 100%;
        padding: 22px 24px 24px;
        color: var(--color-text);
        transition: background-color .14s var(--lx-ease);
    }
    .lx-header .lx-service-link .lx-tag { color: var(--color-accent-ink); }
    .lx-header .lx-service-link__name {
        font-size: 18px;
        font-weight: 600;
        font-stretch: 108%;
        line-height: 1.2;
    }
    .lx-header .lx-service-link__summary {
        font-size: 13.5px;
        line-height: 1.45;
        color: var(--color-muted);
    }
    .lx-header .lx-service-link:hover { background: var(--color-bg); color: var(--color-text); }
    .lx-header .lx-service-link[aria-current="page"] .lx-service-link__name {
        text-decoration: underline;
        text-decoration-color: var(--color-accent-line);
        text-decoration-thickness: 2px;
        text-underline-offset: 5px;
    }
}

/* Mouse users get hover-to-open; touch and keyboard use the toggle buttons */
@media (min-width: 1080px) and (hover: hover) and (pointer: fine) {
    .lx-has-menu:hover > .lx-menu {
        visibility: visible;
        opacity: 1;
        transform: none;
        transition: opacity .16s var(--lx-ease), transform .16s var(--lx-ease);
    }
}

/* Laptop: tighten the phone block */
@media (min-width: 1080px) and (max-width: 1439.98px) {
    .lx-phone .lx-tag { display: none; }
    .lx-header .lx-cta { padding: 0 22px; }
}

/* Without JavaScript the mobile nav simply sits open under the bar */
@media (max-width: 1079.98px) {
    html:not(.lx-js) .lx-menu-btn { display: none; }
    html:not(.lx-js) .lx-header__bar { flex-wrap: wrap; height: auto; min-height: var(--lx-header-h); }
    html:not(.lx-js) .lx-header .lx-nav { order: 5; flex-basis: 100%; }
}

/* ==========================================================================
   Footer
   ========================================================================== */

footer.lx-footer {
    display: block;
    background: var(--color-dark);
    color: var(--color-dark-text);
    font-family: var(--font-ui);
}
.lx-footer a { color: inherit; text-decoration: none; }
.lx-footer nav { padding: 0; border-radius: 0; }
.lx-footer ul { margin: 0; padding: 0; list-style: none; }
.lx-footer ul li,
.lx-footer p,
.lx-footer dd,
.lx-footer dt {
    font-family: inherit;
    font-weight: inherit;
    color: inherit;
    font-size: inherit;
    line-height: inherit;
    text-transform: none;
    margin: 0;
}
.lx-footer .lx-tag { color: var(--color-dark-muted); }
.lx-footer .lx-tag--accent { color: var(--color-accent); }

.lx-footer__inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: clamp(56px, 8vw, 104px) var(--lx-gutter) 0;
}

/* ---------- CTA ---------- */

.lx-footer__cta {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px 48px;
    padding-bottom: clamp(40px, 5vw, 64px);
    border-bottom: 1px solid var(--color-dark-border);
}
.lx-footer__title {
    margin: 14px 0 0;
    font-family: var(--font-ui);
    font-size: clamp(2.5rem, 6vw, 4.75rem);
    font-weight: 600;
    font-stretch: 112%;
    line-height: .95;
    letter-spacing: -.015em;
    color: var(--color-dark-text);
}
.lx-footer .lx-cta--footer {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 64px;
    padding: 0 28px;
    background: var(--color-accent);
    color: var(--color-on-accent);
    font-size: 16px;
    font-weight: 600;
    transition: background-color .18s var(--lx-ease), color .18s var(--lx-ease);
}
.lx-footer .lx-cta--footer svg { transition: transform .18s var(--lx-ease); }
.lx-footer .lx-cta--footer:hover { background: var(--color-dark-text); color: var(--color-dark); }
.lx-footer .lx-cta--footer:hover svg { transform: translateX(4px); }



/* ---------- Base: brand / links / title block ---------- */

.lx-footer__base {
    display: grid;
    gap: 40px;
    padding: clamp(40px, 5vw, 64px) 0;
}
.lx-footer__brand img {
    display: block;
    width: auto;
    height: 40px;
    filter: invert(1);           /* the logo artwork is black on white */
    mix-blend-mode: screen;      /* ...so the inverted black box disappears into the footer */
}
.lx-social { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 20px !important; }
.lx-social a { font-size: 14px; border-bottom: 1px solid var(--color-dark-border); }
.lx-social a:hover { border-color: var(--color-accent); }

.lx-footer__nav ul { margin-top: 14px; }
.lx-footer__nav a {
    display: inline-block;
    padding: 7px 0;
    font-size: 15.5px;
    background: linear-gradient(var(--color-accent), var(--color-accent)) 0 100% / 0 1px no-repeat;
    transition: background-size .25s var(--lx-ease);
}
.lx-footer__nav a:hover { background-size: 100% 1px; }

/* Title block — contact details laid out like a drawing sheet's title block */
.lx-titleblock {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
    margin: 0;
    align-self: start;
    background: var(--color-dark-border);
    border: 1px solid var(--color-dark-border);
}
.lx-titleblock__cell {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px 20px;
    background: var(--color-dark);
}
.lx-footer .lx-titleblock dd {
    font-size: 15.5px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}
.lx-titleblock a { transition: color .16s var(--lx-ease); }
.lx-titleblock a:hover { color: var(--color-accent); }

@media (min-width: 560px) {
    .lx-titleblock { grid-template-columns: 1fr 1fr; }
    .lx-titleblock__cell--wide { grid-column: 1 / -1; }
}

@media (min-width: 720px) {
    .lx-footer__base { grid-template-columns: 1fr 1fr 1fr; }
    .lx-titleblock { grid-column: 1 / -1; }
}

@media (min-width: 1080px) {
    .lx-footer__base {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 2fr);
        gap: 48px;
    }
    .lx-titleblock { grid-column: auto; }
}

/* ---------- Legal ---------- */

.lx-footer__legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
    padding: 22px 0 calc(22px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--color-dark-border);
    font-size: 13px;
    color: var(--color-dark-muted);
}
.lx-footer__legal a:hover { color: var(--color-dark-text); }

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .lx-header *,
    .lx-header *::before,
    .lx-header *::after,
    .lx-header .lx-nav,
    .lx-footer *,
    .lx-footer *::before,
    .lx-footer *::after {
        transition: none !important;
    }
}

/* ==========================================================================
   Client logos (top of footer.php)
   ========================================================================== */

section.lx-clients {
    padding: clamp(40px, 5vw, 64px) 0;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    font-family: var(--font-ui);
}
.lx-clients .lx-tag { margin-bottom: 20px; }
.lx-clients__list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--color-border);
    border-inline-start: 1px solid var(--color-border);
}
.lx-clients__list li {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 96px;
    padding: 16px;
    border-inline-end: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}
.lx-clients__list img {
    width: auto;
    height: auto;
    max-height: 44px;
    mix-blend-mode: multiply;
    filter: grayscale(1);
    opacity: .75;
    transition: opacity .2s var(--lx-ease), filter .2s var(--lx-ease);
}
.lx-clients__list li:hover img { filter: none; opacity: 1; }
@media (min-width: 720px) {
    .lx-clients__list { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1080px) {
    .lx-clients__list { grid-template-columns: repeat(6, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
    .lx-clients__list img { transition: none; }
}

/* ==========================================================================
   Arabic / right-to-left
   Spacing and positions use logical properties (inline-start/end), so the layout
   mirrors automatically. This block covers what logical properties cannot.
   ========================================================================== */

html[lang="ar"] {
    --font-ui: "IBM Plex Sans Arabic", "Archivo", Tahoma, sans-serif;
}
/* Letter-spacing breaks the joins in Arabic script; uppercase does not exist in Arabic */
html[lang="ar"] * { letter-spacing: 0 !important; }
html[lang="ar"] .lx-tag,
html[lang="ar"] .lx-menu-btn__label { font-size: 13px; font-weight: 600; }

/* Phone numbers and email addresses stay left-to-right inside Arabic text */
.lx-num,
.lx-ltr { direction: ltr; unicode-bidi: isolate; }

/* Arrows point the way the text reads */
[dir="rtl"] :is(.lx-btn, .lx-cta, .lx-division__link, .lx-lightbox__nav button) svg { scale: -1 1; }

/* Lines that grow or underline from the start side */
[dir="rtl"] .lx-progress { transform-origin: right; }
[dir="rtl"] .lx-footer__nav a { background-position: 100% 100%; }
[dir="rtl"] .lx-field select { background-position: left 16px center; }
@media (min-width: 900px) {
    [dir="rtl"] .lx-steps.lx-reveal::after { transform-origin: right; }
}

/* Language switch */
.lx-lang {
    display: flex;
    align-items: center;
    flex: none;
    margin-inline-start: auto;
    padding: 0 var(--lx-gutter);
    border-inline-start: 1px solid var(--color-border);
    color: var(--color-text) !important;
    font: 600 15px/1 var(--font-ui);
    text-decoration: none;
    transition: color .16s var(--lx-ease), background-color .16s var(--lx-ease);
}
.lx-lang[lang="ar"] { font-family: "IBM Plex Sans Arabic", Tahoma, sans-serif; font-size: 16px; }
.lx-lang[lang="en"] { font-family: "Archivo", "Helvetica Neue", Arial, sans-serif; }
.lx-lang:hover { background: var(--color-surface); }
.lx-lang:focus-visible { outline: 2px solid var(--color-accent-ink) !important; outline-offset: -2px; }
.lx-lang ~ .lx-phone,
.lx-lang ~ .lx-icon-btn { margin-inline-start: 0; }
.lx-lang__short { display: none; }
@media (max-width: 719.98px) {
    .lx-lang { padding: 0 14px; }
    .lx-lang__long { display: none; }
    .lx-lang__short { display: inline; }
}

/* ---------- Brand mark: round badge + wordmark ---------- */
.lx-header .lx-brand { gap: 12px; }
.lx-header .lx-brand img,
.lx-footer__logo img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    mix-blend-mode: normal;
    filter: none;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .08);
}
.lx-brand__name {
    font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;
    font-stretch: 125%;
    letter-spacing: .08em !important;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--color-text);
}
@media (min-width: 1080px) {
    .lx-header .lx-brand img { width: 46px; height: 46px; }
    .lx-header .lx-brand__name { font-size: 17px; }
}
/* Phones: the bar also holds language, call and menu buttons, so show the badge only */
@media (max-width: 479.98px) {
    .lx-header .lx-brand__name { display: none; }
}
.lx-footer__logo { display: inline-flex; align-items: center; gap: 14px; }
.lx-footer__logo img { width: 56px; height: 56px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); }
.lx-footer__logo .lx-brand__name { color: var(--color-dark-text); font-size: 17px; }

.lx-lang { min-width: 44px; justify-content: center; }

