/* ============================================================
   Star Aluminium — Header
   Font: Axiforma | Colors: #e01f27 #1c4586 #000
   ============================================================ */

/* ── Axiforma @font-face ────────────────────────────────────── */
@font-face {
    font-family: 'Axiforma';
    src: url('../fonts/Axiforma/Axiforma-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Axiforma';
    src: url('../fonts/Axiforma/Axiforma-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Axiforma';
    src: url('../fonts/Axiforma/Axiforma-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Axiforma';
    src: url('../fonts/Axiforma/Axiforma-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Axiforma';
    src: url('../fonts/Axiforma/Axiforma-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Axiforma';
    src: url('../fonts/Axiforma/Axiforma-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Axiforma';
    src: url('../fonts/Axiforma/Axiforma-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* ── Reset ──────────────────────────────────────────────────── */
.sa-header *,
.sa-header *::before,
.sa-header *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ── Page scrim — dims content when any dropdown is open ────── */
.sa-scrim {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .42);
    z-index: 1000000;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
}
.sa-scrim.visible {
    opacity: 1;
    visibility: visible;
}

/* ── Header wrapper ─────────────────────────────────────────── */
body {
    padding-top: 100px !important;
}

.site-main,
#primary {
    margin-top: 0 !important;
}

.sa-header {
    width: 100%;
    background: #fff;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000001;
    border-bottom: 1px solid rgba(0, 0, 0, .1);
    overflow: visible;
    transition: box-shadow 0.3s ease;
}

.sa-header.is-scrolled {
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.10);
}

.sa-header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "logo nav cta";
    align-items: stretch;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
    height: 100px;
    position: relative;
    overflow: visible;
}

/* ── Logo ───────────────────────────────────────────────────── */
.sa-logo {
    grid-area: logo;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-right: 0;
}
.sa-logo a { display: block; line-height: 0; }
.sa-logo img { height: 70px; width: auto; }

/* ── Navigation ─────────────────────────────────────────────── */
.sa-nav {
    grid-area: nav;
    min-width: 0;
    display: flex;
    align-items: stretch;
}
.sa-nav > ul {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    width: 100%;
    list-style: none;
    margin: 0;
    padding: 0;
}
.sa-nav > ul > li {
    display: flex;
    align-items: center;
    position: relative;
}
.sa-nav > ul > li > a {
    display: flex;
    align-items: center;
    font-family: 'Axiforma', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #1d1d1f;
    text-decoration: none;
    padding: 0 8px;
    height: 100%;
    white-space: nowrap;
    letter-spacing: .2px;
    transition: color .15s;
}
.sa-nav > ul > li > a:hover {
    color: #6e6e73; /* Apple-style subtle dim on hover */
}

/* ── Custom Solutions — lighthouse beacon pulse ───────────── */
@keyframes saLighthousePulse {
    0%, 100% {
        color: #e01f27;
        text-shadow: 0 0 0 rgba(224,31,39,0);
    }
    50% {
        color: #ff4040;
        text-shadow: 0 0 10px rgba(224,31,39,0.55), 0 0 22px rgba(224,31,39,0.2);
    }
}

.sa-custom-solutions-nav > .sa-custom-solutions-link {
    font-family: 'Axiforma', sans-serif !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    letter-spacing: .2px !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    padding: 0 8px !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    color: #e01f27 !important;
    animation: saLighthousePulse 4s ease-in-out infinite;
    transition: none !important;
}

.sa-custom-solutions-nav > .sa-custom-solutions-link:hover {
    color: #b01520 !important;
    animation: none;
    text-shadow: none;
}
.sa-nav > ul > li.current-menu-item > a,
.sa-nav > ul > li.current-menu-parent > a {
    color: #e01f27 !important;
    background: transparent !important;
    background-color: transparent !important;
}

/* Chevron — rotates upward when dropdown is open */
.sa-has-dropdown > a::after {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    margin-left: 6px;
    opacity: .45;
    flex-shrink: 0;
    transition: transform .22s ease, opacity .22s;
}
.sa-has-dropdown:hover > a::after {
    transform: rotate(225deg) translateY(2px);
    opacity: .75;
}

/* ── Standard dropdown ──────────────────────────────────────── */
.sa-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    list-style: none;
    margin: 0;
    padding: 10px 0;
    background: #fff;
    border-radius: 0 0 12px 12px;
    border-top: 3px solid #e01f27;
    box-shadow: 0 12px 36px rgba(0, 0, 0, .13);
    min-width: 240px;
    z-index: 1000002;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
}
.sa-dropdown > li > a {
    display: block;
    font-family: 'Axiforma', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #1d1d1f;
    text-decoration: none;
    padding: 10px 22px;
    white-space: nowrap;
    transition: color .12s, background .12s;
}
.sa-dropdown > li > a:hover {
    color: #e01f27;
}

/* ── Wide dropdown (Products mega menu) — DJI-style ─────────── */
.sa-nav > ul > li:has(> .sa-dropdown--wide) {
    position: static;
}
.sa-dropdown--wide {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

/* Each column — 3-per-row like DJI */
.sa-dropdown-group {
    flex: 0 0 33.333%;
    padding: 0;
    box-sizing: border-box;
    position: relative;
    transition: background .15s;
}
.sa-dropdown-group:hover {
    background: #fafafa;
}

/* Vertical separator */
.sa-dropdown-group::after {
    content: '';
    position: absolute;
    right: 0;
    top: 16px;
    bottom: 16px;
    width: 1px;
    background: #e8e8ed;
}
.sa-dropdown-group:nth-child(3n)::after { display: none; }

/* Row separator: top border starting from 2nd row */
.sa-dropdown-group:nth-child(n+4) .sa-dg-inner { border-top: 1px solid #f0f0f0; }

/* Solutions dropdown — 4 columns (short subtitles, no nested lists) */
.sa-has-solutions .sa-dropdown-group { flex: 0 0 25%; }
.sa-has-solutions .sa-dropdown-group::after { display: block; }
.sa-has-solutions .sa-dropdown-group:nth-child(3n)::after { display: block; }
.sa-has-solutions .sa-dropdown-group:nth-child(4n)::after { display: none; }
.sa-has-solutions .sa-dropdown-group:nth-child(n+4) .sa-dg-inner { border-top: 0; }
.sa-has-solutions .sa-dropdown-group:nth-child(n+5) .sa-dg-inner { border-top: 1px solid #f0f0f0; }

/* Inner flex: image left + content right */
.sa-dg-inner {
    display: flex;
    flex-direction: row;
    gap: 18px;
    padding: 22px 20px 22px 28px;
    height: 100%;
    box-sizing: border-box;
}

/* Product image */
.sa-dg-img {
    flex-shrink: 0;
    width: 96px;
    display: flex;
    align-items: flex-start;
    padding-top: 2px;
}
.sa-dg-img img {
    width: 96px;
    height: 80px;
    object-fit: contain;
    border-radius: 6px;
    background: #f5f5f7;
    padding: 6px;
}

/* 360° iframe image slot */
.sa-dg-img--360 {
    width: 120px !important;
    height: 90px !important;
    align-items: stretch !important;
    padding-top: 0 !important;
    overflow: hidden;
    border-radius: 6px;
    background: #f5f5f7 url('/wp-content/themes/star-aluminium/360/modular-systems/webp/5_9.webp') center/cover no-repeat;
}
.sa-dg-img--360 iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    pointer-events: auto;
    transform: scale(1.5);
    transform-origin: center 25%;
}
.sa-dg-360-badge {
    display: inline-flex;
    align-items: center;
    margin-top: 6px;
    font-family: 'Axiforma', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #e01f27;
    gap: 4px;
}
.sa-dg-360-badge::before {
    content: '↻';
    font-size: 13px;
    line-height: 1;
}

/* Text area */
.sa-dg-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* Column heading */
.sa-dropdown-heading {
    display: block;
    font-family: 'Axiforma', sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #1d1d1f !important;
    letter-spacing: 0;
    padding-bottom: 0;
    margin-bottom: 3px;
    text-decoration: none !important;
    transition: color .12s;
    line-height: 1.35;
}
a.sa-dropdown-heading:hover { color: #e01f27 !important; }

/* Category subtitle */
.sa-dropdown-sub {
    font-family: 'Axiforma', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #8a8a8f;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

/* Sub-links list */
.sa-dg-content > ul,
.sa-dropdown-group > ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}
.sa-dg-content > ul > li > a,
.sa-dropdown-group > ul > li > a {
    display: block;
    font-family: 'Axiforma', sans-serif;
    font-size: 12.5px;
    font-weight: 400;
    color: #3d3d3d;
    text-decoration: none;
    padding: 3px 0;
    line-height: 1.7;
    transition: color .12s;
}
.sa-dg-content > ul > li > a:hover,
.sa-dropdown-group > ul > li > a:hover { color: #e01f27; }

/* ── Industries mega menu — DJI left-tab layout ─────────────── */
.sa-nav > ul > li:has(> .sa-dropdown--industries),
.sa-has-industries,
.sa-nav > ul > li:has(> .sa-dropdown--solutions),
.sa-has-solutions,
.sa-nav > ul > li:has(> .sa-dropdown--services),
.sa-has-services,
.sa-nav > ul > li:has(> .sa-dropdown--aboutus),
.sa-has-aboutus,
.sa-nav > ul > li:has(> .sa-dropdown--resources),
.sa-has-resources {
    position: static !important;
}
/* ── Shared full-width dropdown container ── */
.sa-dropdown--wide,
.sa-dropdown--industries,
.sa-dropdown--solutions,
.sa-dropdown--services,
.sa-dropdown--aboutus,
.sa-dropdown--resources {
    left: 0 !important;
    right: 0 !important;
    width: auto !important;
    min-width: 0 !important;
    padding: 0 !important;
    border-top: 3px solid #e01f27 !important;
    border-radius: 0 0 12px 12px !important;
    box-shadow: 0 16px 48px rgba(0, 0, 0, .15) !important;
    overflow: hidden !important;
}
/* ── Solutions tab overrides — wider column for longer labels ── */
.sa-dropdown--solutions .sa-ind-tabs {
    width: 230px !important;
}
.sa-dropdown--solutions .sa-ind-tab {
    white-space: normal !important;
    line-height: 1.35 !important;
}

/* ── Solutions mega menu — DJI Ecosystem card-grid style ────── */
.sa-sol-wrapper {
    display: flex !important;
    flex-direction: row !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff;
}
.sa-sol-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 28px 32px;
    border-right: 1px solid #e8e8ed;
}
.sa-sol-col:last-child { border-right: none; }
.sa-sol-item {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    padding: 11px 0;
    border-bottom: 1px solid #f0f0f5;
    transition: color .12s;
}
.sa-sol-item:first-child { padding-top: 0; }
.sa-sol-item:last-child  { border-bottom: none; padding-bottom: 0; }
.sa-sol-title {
    font-family: 'Axiforma', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 3px;
    line-height: 1.3;
    transition: color .12s;
}
.sa-sol-item:hover .sa-sol-title { color: #e01f27; }
.sa-sol-desc {
    font-family: 'Axiforma', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #6e6e73;
    line-height: 1.5;
}
.sa-ind-wrapper {
    display: flex;
    flex-direction: row;
    min-height: 620px;
    list-style: none;
}
.sa-ind-tabs {
    width: 190px;
    flex-shrink: 0;
    background: #f5f5f7;
    border-right: 1px solid #e8e8ed;
    padding: 8px 0;
    display: flex;
    flex-direction: column;
}
.sa-ind-tab {
    display: block;
    font-family: 'Axiforma', sans-serif;
    font-size: 13.5px;
    font-weight: 500;
    color: #1d1d1f;
    text-decoration: none;
    padding: 13px 20px;
    border-left: 3px solid transparent;
    transition: background .12s, color .12s, border-color .12s;
    white-space: nowrap;
}
.sa-ind-tab:hover,
.sa-ind-tab--active {
    background: #fff;
    color: #e01f27;
    border-left-color: #e01f27;
}
.sa-ind-panels {
    flex: 1;
    position: relative;
    background: #fff;
}
.sa-ind-panel {
    display: none !important;
    flex-direction: row;
    gap: 32px;
    padding: 32px 36px;
    align-items: flex-start;
    position: absolute;
    inset: 0;
}
.sa-ind-panel--active { display: flex !important; }
.sa-ind-panel > img {
    width: 185px;
    height: 555px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}
.sa-ind-panel-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-top: 4px;
}
.sa-ind-panel-title {
    font-family: 'Axiforma', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #1d1d1f;
    margin: 0 0 10px 0;
}
.sa-ind-panel-desc {
    font-family: 'Axiforma', sans-serif;
    font-size: 13.5px;
    font-weight: 400;
    color: #6e6e73;
    line-height: 1.65;
    margin: 0 0 22px 0;
    max-width: 400px;
}
.sa-ind-more {
    display: inline-flex;
    align-items: center;
    font-family: 'Axiforma', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #e01f27;
    text-decoration: none;
    gap: 5px;
    transition: color .12s;
}
.sa-ind-more::after { content: '›'; font-size: 18px; line-height: 1; transition: transform .15s; }
.sa-ind-more:hover { color: #b01520; }
.sa-ind-more:hover::after { transform: translateX(3px); }

/* ── Show dropdown (JS adds .sa-open, 1s close delay) ───────── */
.sa-header .sa-has-dropdown.sa-open > .sa-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}
.sa-has-dropdown.sa-open > a::after {
    transform: rotate(225deg) translateY(2px);
    opacity: .75;
}

/* Hidden on desktop — shown only via mobile media query */
.sa-sub-toggle  { display: none; }
.sa-drawer-head { display: none; }

/* ── CTA (phone + quote button + account menu) ─────────────── */
.sa-cta {
    grid-area: cta;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
    gap: 10px;
    padding: 0 16px 0 12px;
}
.sa-cta-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 5px;
}
.sa-cta-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}
.sa-phone {
    font-family: 'Axiforma', sans-serif;
    font-size: 21px;
    font-weight: 800;
    color: #e01f27;
    text-decoration: none;
    letter-spacing: .3px;
    white-space: nowrap;
    transition: color .15s;
}
.sa-phone:hover { color: #b01520; }
.sa-quote {
    display: inline-flex;
    align-items: center;
    font-family: 'Axiforma', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #fff !important;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .8px;
    white-space: nowrap;
    background: #e01f27;
    padding: 9px 22px 9px 32px;
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 16px 100%);
    transition: background .15s;
}
.sa-quote:hover { background: #b01520; color: #fff !important; }

/* ── Hamburger (hidden on desktop) ─────────────────────────── */
.sa-hamburger {
    display: none;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    align-self: center;
}
.sa-hb-line {
    position: absolute;
    left: 9px;
    width: 26px;
    height: 2px;
    background: #000;
    transition: transform .3s ease, opacity .3s ease;
    transform-origin: center;
}
.sa-hb-1 { top: 13px; }
.sa-hb-2 { top: 21px; }
.sa-hb-3 { top: 29px; }
.sa-hamburger.open .sa-hb-1 { transform: translateY(8px) rotate(45deg); }
.sa-hamburger.open .sa-hb-2 { opacity: 0; transform: scaleX(0); }
.sa-hamburger.open .sa-hb-3 { transform: translateY(-8px) rotate(-45deg); }

.sa-nav-mobile-cta { display: none; }

/* ── Tablet ─────────────────────────────────────────────────── */
@media (max-width: 1440px) {
    .sa-nav > ul > li > a { font-size: 12px; padding: 0 6px; }
    .sa-custom-solutions-nav > .sa-custom-solutions-link { font-size: 12px !important; padding: 0 6px !important; }
    .sa-phone { font-size: 16px; }
    .sa-quote { font-size: 12px; padding: 7px 14px 7px 22px; }
    .sa-signin { font-size: 11px; padding: 6px 10px; }
}

/* ── Mobile ─────────────────────────────────────────────────── */
@media (max-width: 1100px) {
    body { padding-top: 72px !important; }

    .sa-header-inner { display: flex; height: 72px; padding: 0 16px; justify-content: center; }
    .sa-logo img { height: 56px; }
    .sa-logo { margin-right: 0; }
    .sa-cta { display: none; }

    .sa-hamburger {
        display: flex;
        order: 3;
        position: absolute;
        right: 16px;
        top: 50%;
        transform: translateY(-50%);
    }
    button.sa-hamburger,
    button.sa-hamburger:hover,
    button.sa-hamburger:focus,
    button.sa-hamburger:active,
    button.sa-hamburger:focus-visible {
        background: none !important;
        background-color: transparent !important;
        border: none !important;
        box-shadow: none !important;
        outline: none !important;
    }

    /* Scrim stays below the header stacking context (9999) so it dims content but not the drawer */
    .sa-scrim { z-index: 9997 !important; }

    /* ── Drawer: slides in from right ── */
    .sa-nav {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        left: auto !important;
        width: 85% !important;
        max-width: 360px !important;
        height: 100% !important;
        height: 100dvh !important;
        background: #fff !important;
        z-index: 99999 !important;
        display: flex !important;
        flex-direction: column !important;
        transform: translateX(105%) !important;
        transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1) !important;
        box-shadow: -8px 0 48px rgba(0, 0, 0, .22) !important;
        overflow: hidden !important;
        align-items: stretch !important;
        border-top: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    .sa-nav.open { transform: translateX(0) !important; }

    /* ── Drawer header bar (injected by JS) ── */
    .sa-drawer-head {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 0 12px 0 24px !important;
        height: 58px !important;
        border-bottom: 3px solid #e01f27 !important;
        flex-shrink: 0 !important;
        background: #fff !important;
    }
    .sa-drawer-label {
        font-family: 'Axiforma', sans-serif;
        font-size: 10px;
        font-weight: 800;
        letter-spacing: 2.5px;
        color: #aaa;
        text-transform: uppercase;
    }
    .sa-drawer-close {
        width: 40px;
        height: 40px;
        background: transparent !important;
        background-color: transparent !important;
        border: none !important;
        box-shadow: none !important;
        outline: none !important;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: relative;
        padding: 0;
        flex-shrink: 0;
        border-radius: 50%;
        transition: background 0.15s;
    }
    .sa-drawer-close:hover { background: #f5f5f5 !important; }
    .sa-drawer-close span {
        display: block;
        width: 18px;
        height: 2px;
        background: #222;
        position: absolute;
        transition: background 0.15s;
        border-radius: 1px;
    }
    .sa-drawer-close span:first-child { transform: rotate(45deg); }
    .sa-drawer-close span:last-child  { transform: rotate(-45deg); }
    .sa-drawer-close:hover span { background: #e01f27; }

    /* ── Scrollable nav list ── */
    .sa-nav > ul {
        flex: 1 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 0 !important;
        margin: 0 !important;
        display: flex !important;
    }
    .sa-nav > ul > li {
        display: block !important;
        border-bottom: 1px solid #f0f0f0 !important;
        position: relative !important;
    }
    .sa-nav > ul > li > a {
        display: block !important;
        font-size: 15px !important;
        font-weight: 600 !important;
        padding: 17px 24px !important;
        height: auto !important;
        color: #111 !important;
        background: transparent !important;
        background-color: transparent !important;
        text-decoration: none !important;
        border-bottom: none !important;
        letter-spacing: 0.1px !important;
        transition: color 0.15s !important;
    }
    .sa-nav > ul > li > a:hover { color: #e01f27 !important; }
    .sa-nav > ul > li.current-menu-item > a,
    .sa-nav > ul > li.current-menu-parent > a {
        color: #e01f27 !important;
        background: transparent !important;
    }
    .sa-nav > ul > li:last-child > a { border-bottom: none !important; }

    /* Hide the ::after chevron on desktop links — the toggle button handles it */
    .sa-nav > ul > li > a::after { display: none !important; }

    /* ── Mobile dropdown links: inline ▾ arrow via ::after ── */
    .sa-nav > ul > li.sa-has-dropdown > a.sa-has-arr::after {
        content: '\25BE' !important;
        display: inline-block !important;
        font-size: 13px !important;
        line-height: 1 !important;
        margin-left: 6px !important;
        vertical-align: middle !important;
        color: #aaa !important;
        border: none !important;
        width: auto !important;
        height: auto !important;
        transform: rotate(0deg) !important;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s !important;
    }
    .sa-nav > ul > li.sa-has-dropdown.sa-sub-open > a.sa-has-arr::after {
        transform: rotate(180deg) !important;
        color: #e01f27 !important;
    }

    /* ── Sub-menus: accordion via max-height ── */
    .sa-dropdown,
    .sa-dropdown--wide {
        display: block !important;
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        pointer-events: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        border-top: none !important;
        background: #f5f6f8 !important;
        padding: 0 !important;
        min-width: unset !important;
        width: 100% !important;
        max-height: 0 !important;
        overflow: hidden !important;
        transition: max-height 0.38s cubic-bezier(0.4, 0, 0.2, 1) !important;
        flex-direction: column !important;
    }
    .sa-has-dropdown.sa-sub-open > .sa-dropdown,
    .sa-has-dropdown.sa-sub-open > .sa-dropdown--wide {
        max-height: 1400px !important;
        pointer-events: auto !important;
    }

    /* Standard sub-menu items */
    .sa-dropdown > li > a {
        display: block !important;
        padding: 12px 24px 12px 32px !important;
        font-size: 13.5px !important;
        font-weight: 500 !important;
        color: #333 !important;
        border-bottom: 1px solid #ebebed !important;
        background: transparent !important;
        white-space: normal !important;
        transition: color 0.12s, padding-left 0.15s !important;
    }
    .sa-dropdown > li:last-child > a { border-bottom: none !important; }
    .sa-dropdown > li > a:hover { color: #e01f27 !important; padding-left: 38px !important; }

    /* ── Unified mobile dropdown: all patterns look identical ── */

    /* Products mega menu — stack groups full-width */
    .sa-dropdown-group {
        flex: 0 0 100% !important;
        width: 100% !important;
        padding: 0 !important;
        border-top: 1px solid #ebebed !important;
        border-left: none !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        background: transparent !important;
    }
    .sa-dropdown-group:first-child { border-top: none !important; }
    .sa-dropdown-group::after { display: none !important; }
    .sa-dropdown-group:nth-child(n+4) .sa-dg-inner { border-top: none !important; }
    .sa-dg-inner {
        flex-direction: column !important;
        padding: 0 !important;
        gap: 0 !important;
        height: auto !important;
        border-top: none !important;
    }
    .sa-dg-img,
    .sa-dg-img--360 { display: none !important; }
    .sa-dropdown-sub { display: none !important; }
    .sa-dg-content { width: 100% !important; }
    /* Products category heading */
    .sa-dropdown-heading {
        display: block !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        letter-spacing: 0 !important;
        text-transform: none !important;
        color: #1d1d1f !important;
        padding: 13px 24px !important;
        margin: 0 !important;
    }
    .sa-dropdown-heading:hover { color: #e01f27 !important; }
    /* Products sub-links */
    .sa-dg-content > ul,
    .sa-dropdown-group > ul {
        padding: 0 0 8px 36px !important;
        margin: 0 !important;
    }
    .sa-dg-content > ul > li > a,
    .sa-dropdown-group > ul > li > a {
        font-size: 13px !important;
        font-weight: 400 !important;
        padding: 5px 0 !important;
        color: #555 !important;
        border-bottom: none !important;
    }
    .sa-dg-content > ul > li > a:hover,
    .sa-dropdown-group > ul > li > a:hover { color: #e01f27 !important; padding-left: 0 !important; }

    /* Industries & Solutions — tab list, hide panels */
    .sa-dropdown--industries .sa-ind-wrapper,
    .sa-dropdown--solutions .sa-ind-wrapper {
        flex-direction: column !important;
        min-height: unset !important;
    }
    .sa-dropdown--industries .sa-ind-tabs,
    .sa-dropdown--solutions .sa-ind-tabs {
        width: 100% !important;
        border-right: none !important;
        padding: 0 !important;
        background: transparent !important;
    }
    .sa-dropdown--industries .sa-ind-panels,
    .sa-dropdown--solutions .sa-ind-panels { display: none !important; }
    .sa-ind-tab {
        padding: 13px 24px !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        border-left: none !important;
        border-bottom: 1px solid #ebebed !important;
        background: transparent !important;
        color: #1d1d1f !important;
        white-space: normal !important;
        line-height: 1.4 !important;
    }
    .sa-ind-tab:last-child { border-bottom: none !important; }
    .sa-ind-tab:hover,
    .sa-ind-tab--active {
        background: transparent !important;
        border-left: none !important;
        color: #e01f27 !important;
    }

    /* Services / About Us / Resources — card grid to flat list */
    .sa-sol-wrapper { flex-direction: column !important; }
    .sa-sol-col {
        border-right: none !important;
        border-bottom: none !important;
        padding: 0 !important;
    }
    .sa-sol-item {
        padding: 13px 24px !important;
        border-bottom: 1px solid #ebebed !important;
    }
    .sa-sol-item:last-child { border-bottom: none !important; }
    .sa-sol-desc { display: none !important; }
    .sa-sol-title {
        font-size: 14px !important;
        font-weight: 600 !important;
        color: #1d1d1f !important;
    }
    .sa-sol-item:hover .sa-sol-title { color: #e01f27 !important; }

    /* ── Bottom CTA bar ── */
    .sa-nav-mobile-cta {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0 !important;
        padding: 0 !important;
        border-top: 3px solid #e01f27 !important;
        flex-shrink: 0 !important;
    }
    .sa-nav-mobile-phone {
        display: block !important;
        text-align: center !important;
        font-family: 'Axiforma', sans-serif !important;
        font-size: 22px !important;
        font-weight: 800 !important;
        color: #e01f27 !important;
        text-decoration: none !important;
        padding: 14px 24px !important;
        border-bottom: 1px solid #f0f0f0 !important;
        background: #fff !important;
        white-space: nowrap !important;
        transition: color 0.15s !important;
    }
    .sa-nav-mobile-phone:hover { color: #b01520 !important; }
    .sa-nav-mobile-quote {
        display: block !important;
        text-align: center !important;
        font-family: 'Axiforma', sans-serif !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        color: #fff !important;
        text-decoration: none !important;
        background: #e01f27 !important;
        padding: 16px 24px !important;
        clip-path: none !important;
        letter-spacing: 1.2px !important;
        text-transform: uppercase !important;
        transition: background 0.15s !important;
    }
    .sa-nav-mobile-quote:hover { background: #b01520 !important; }

    .sa-custom-solutions-nav > .sa-custom-solutions-link {
        display: block !important;
        padding: 17px 24px !important;
        height: auto !important;
        animation: none !important;
    }
}

/* ── Small mobile ───────────────────────────────────────────── */
@media (max-width: 480px) {
    body { padding-top: 62px !important; }
    .sa-header-inner { height: 62px; }
    .sa-logo img { height: 48px; }
    .sa-nav > ul > li > a { font-size: 14px !important; padding: 15px 56px 15px 20px !important; }
    .sa-nav-mobile-phone { font-size: 18px !important; }
    .sa-nav-mobile-quote { font-size: 12px !important; padding: 14px 20px !important; }
    .sa-drawer-head { padding: 0 8px 0 18px !important; }
    .sa-custom-solutions-nav > .sa-custom-solutions-link {
        padding: 15px 20px !important;
    }
}

/* ==========================================================================
   HEADER — Trade Account member state (F5)
   ========================================================================== */

.sa-signin {
    display: inline-block;
    padding: 7px 12px;
    background: #fff;
    color: #1c4586 !important;
    font-weight: 700;
    font-size: 12px;
    text-decoration: none;
    border: 1.5px solid #1c4586;
    letter-spacing: 0.04em;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}
.sa-signin:hover {
    background: #1c4586;
    color: #fff !important;
}

.sa-account-menu {
    position: relative;
    display: inline-block;
}
.sa-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #1c4586;
    color: #fff;
    border: 0;
    cursor: pointer;
    font: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, transform 0.15s;
    padding: 0;
}
.sa-avatar:hover {
    background: #163b73;
    transform: translateY(-1px);
}
.sa-avatar-initials {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.sa-account-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 240px;
    background: #fff;
    border: 1px solid #e7e9ee;
    box-shadow: 0 16px 40px rgba(28, 69, 134, 0.12);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.15s, visibility 0.15s, transform 0.15s;
    z-index: 1000;
}
.sa-account-menu.is-open .sa-account-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sa-account-dropdown-head {
    padding: 12px;
    border-bottom: 1px solid #e7e9ee;
    margin-bottom: 6px;
}
.sa-account-dropdown-head strong {
    display: block;
    color: #1a1a1a;
    font-size: 14px;
    line-height: 1.2;
}
.sa-account-dropdown-head span {
    display: block;
    color: #6b7280;
    font-size: 12px;
    margin-top: 2px;
}

.sa-account-dropdown a {
    display: block;
    padding: 9px 12px;
    font-size: 14px;
    color: #1a1a1a;
    text-decoration: none;
    transition: background 0.1s, color 0.1s;
}
.sa-account-dropdown a:hover {
    background: #f5f5f3;
    color: #1c4586;
}
.sa-account-dropdown-logout {
    border-top: 1px solid #e7e9ee;
    margin-top: 6px;
    color: #e01f27 !important;
    font-weight: 600;
}
.sa-account-dropdown-logout:hover {
    background: #fef2f2;
    color: #e01f27 !important;
}

/* Mobile drawer — member shortcuts */
.sa-nav-mobile-account {
    display: block;
    padding: 12px 16px;
    background: #1c4586;
    color: #fff !important;
    text-decoration: none;
    font-weight: 700;
    text-align: center;
    margin-top: 8px;
}
.sa-nav-mobile-logout {
    display: block;
    padding: 12px 16px;
    background: #fef2f2;
    color: #e01f27 !important;
    text-decoration: none;
    font-weight: 700;
    text-align: center;
    margin-top: 4px;
}

/* Avatar hidden on narrow viewports — mobile drawer takes over */
@media (max-width: 1023px) {
    .sa-cta .sa-account-menu,
    .sa-cta .sa-signin {
        display: none;
    }
}
