/* ============================================================
   Sabi Logistics — Premium Sticky Header
   ============================================================ */

.sabi-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    padding: 22px 0;
    transition: padding 0.5s var(--ease-expo);
}

.sabi-header.is-scrolled {
    padding: 14px 0;
}

/* Frosted glass — always on, intensifies on scroll (Stripe / Apple style) */
.sabi-header__glass {
    position: absolute;
    inset: 0;
    background: rgba(11, 16, 32, 0.38);
    backdrop-filter: blur(14px) saturate(1.4);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
    transition:
        background 0.5s var(--ease-expo),
        backdrop-filter 0.5s ease,
        border-color 0.5s ease,
        box-shadow 0.5s ease;
}

.sabi-header.is-scrolled .sabi-header__glass {
    background: rgba(11, 16, 32, 0.82);
    backdrop-filter: blur(26px) saturate(1.7);
    -webkit-backdrop-filter: blur(26px) saturate(1.7);
    border-bottom-color: rgba(255, 255, 255, 0.08);
    box-shadow:
        0 12px 48px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}

/* 96% wide — spacious, not boxed */
.sabi-header__wrap {
    position: relative;
    z-index: 2;
    width: 96%;
    max-width: none;
    margin-inline: auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: clamp(24px, 4vw, 56px);
}

/* Navigation */
.sabi-header__nav { justify-self: start; }

.sabi-header__menu {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.sabi-header__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 20px;
    font-family: var(--font-ui);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.78);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.35s ease, text-shadow 0.35s ease;
}

.sabi-header__link-text {
    position: relative;
    z-index: 1;
}

.sabi-header__link::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 20px;
    right: 20px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent), #ffaa55);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.45s var(--ease-expo);
}

.sabi-header__link:hover,
.sabi-header__link:focus-visible,
.sabi-header__item--dropdown.is-open .sabi-header__link--dropdown {
    color: #fff;
    text-shadow: 0 0 24px rgba(255, 107, 0, 0.35);
}

.sabi-header__link:hover::after,
.sabi-header__link:focus-visible::after,
.sabi-header__item--dropdown.is-open .sabi-header__link--dropdown::after {
    transform: scaleX(1);
}

.sabi-header__caret {
    opacity: 0.55;
    transition: transform 0.4s var(--ease-expo);
}

.sabi-header__item--dropdown.is-open .sabi-header__caret {
    transform: rotate(180deg);
}

/* Mega dropdown */
.sabi-header__item--dropdown { position: relative; }

.sabi-mega {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.45s var(--ease-expo), visibility 0.35s;
}

.sabi-header__item--dropdown.is-open .sabi-mega {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.sabi-mega__panel {
    display: grid;
    grid-template-columns: 200px 1fr;
    min-width: 560px;
    background: rgba(12, 18, 36, 0.92);
    backdrop-filter: blur(28px);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 28px 72px rgba(0, 0, 0, 0.5);
}

.sabi-mega__intro {
    padding: 26px 22px;
    background: linear-gradient(160deg, rgba(63, 67, 165, 0.18) 0%, transparent 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.sabi-mega__eyebrow {
    display: block;
    font-family: var(--font-ui);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 8px;
}

.sabi-mega__intro p {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.55;
    color: var(--color-text-muted);
}

.sabi-mega__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    padding: 10px;
}

.sabi-mega__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    border-radius: var(--radius-md);
    transition: background 0.25s ease, transform 0.3s var(--ease-expo);
}

.sabi-mega__item:hover {
    background: rgba(255, 255, 255, 0.04);
    transform: translateX(3px);
}

.sabi-mega__icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: rgba(63, 67, 165, 0.2);
    border: 1px solid rgba(63, 67, 165, 0.3);
    position: relative;
}

.sabi-mega__icon::after {
    content: '';
    position: absolute;
    inset: 0;
    margin: auto;
    width: 18px;
    height: 18px;
    background: var(--color-primary-light);
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
}

.sabi-mega__icon--chart::after {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M2 14L6 10L10 13L18 5' stroke='black' stroke-width='2'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M2 14L6 10L10 13L18 5' stroke='black' stroke-width='2'/%3E%3C/svg%3E");
}

.sabi-mega__icon--truck::after {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Crect x='2' y='7' width='11' height='7' rx='1' stroke='black' stroke-width='2'/%3E%3Cpath d='M13 9h3l2 3v2h-5V9z' stroke='black' stroke-width='2'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Crect x='2' y='7' width='11' height='7' rx='1' stroke='black' stroke-width='2'/%3E%3Cpath d='M13 9h3l2 3v2h-5V9z' stroke='black' stroke-width='2'/%3E%3C/svg%3E");
}

.sabi-mega__icon--warehouse::after {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M3 17h14M5 17V8l5-4 5 4v9' stroke='black' stroke-width='2'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M3 17h14M5 17V8l5-4 5 4v9' stroke='black' stroke-width='2'/%3E%3C/svg%3E");
}

.sabi-mega__icon--clock::after {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Ccircle cx='10' cy='10' r='7' stroke='black' stroke-width='2'/%3E%3Cpath d='M10 6v4l3 2' stroke='black' stroke-width='2'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Ccircle cx='10' cy='10' r='7' stroke='black' stroke-width='2'/%3E%3Cpath d='M10 6v4l3 2' stroke='black' stroke-width='2'/%3E%3C/svg%3E");
}

.sabi-mega__text { display: flex; flex-direction: column; gap: 3px; }

.sabi-mega__text strong {
    font-family: var(--font-ui);
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
}

.sabi-mega__text small {
    font-size: 0.75rem;
    line-height: 1.4;
    color: var(--color-text-muted);
}

/* Logo — glass backing + glow for visibility on dark bg */
.sabi-header__logo {
    position: relative;
    justify-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 22px;
    transition: transform 0.45s var(--ease-expo);
}

.sabi-header__logo:hover { transform: scale(1.04); }

.sabi-header__logo-backdrop {
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow:
        0 0 48px rgba(255, 255, 255, 0.1),
        0 8px 32px rgba(0, 0, 0, 0.25);
    transition: box-shadow 0.4s ease, background 0.4s ease;
}

.sabi-header.is-scrolled .sabi-header__logo-backdrop {
    background: rgba(255, 255, 255, 0.12);
    box-shadow:
        0 0 56px rgba(255, 255, 255, 0.12),
        0 6px 24px rgba(0, 0, 0, 0.3);
}

.sabi-header__logo-img {
    position: relative;
    z-index: 1;
    height: var(--logo-h);
    width: auto;
    max-width: min(240px, 32vw);
    object-fit: contain;
    filter:
        drop-shadow(0 0 18px rgba(255, 255, 255, 0.35))
        brightness(1.12)
        contrast(1.06);
    transition: height 0.5s var(--ease-expo), filter 0.4s ease;
}

.sabi-header.is-scrolled .sabi-header__logo-img {
    height: var(--logo-h-sm);
}

.sabi-header__logo-fallback {
    position: relative;
    z-index: 1;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    color: #fff;
}

/* Actions */
.sabi-header__actions {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 16px;
}

.sabi-header__hotline {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    font-family: var(--font-ui);
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.sabi-header__hotline svg { color: var(--color-accent); flex-shrink: 0; }

.sabi-header__hotline:hover {
    border-color: rgba(255, 107, 0, 0.35);
    background: rgba(255, 107, 0, 0.08);
    box-shadow: 0 0 28px rgba(255, 107, 0, 0.15);
}

.sabi-header__cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: var(--radius-pill);
    font-family: var(--font-ui);
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    overflow: hidden;
    box-shadow: 0 6px 28px rgba(255, 107, 0, 0.35);
    transition: box-shadow 0.35s ease, transform 0.35s var(--ease-expo);
}

.sabi-header__cta-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #ff8129, var(--color-accent), #e05500);
}

.sabi-header__cta-text { position: relative; z-index: 1; }

.sabi-header__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(255, 107, 0, 0.5);
}

/* Burger */
.sabi-header__burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 48px;
    height: 48px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm);
    cursor: pointer;
    justify-self: end;
}

.sabi-header__burger span {
    display: block;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.45s var(--ease-expo), opacity 0.3s ease;
}

.sabi-header__burger.is-active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.sabi-header__burger.is-active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.sabi-header__burger.is-active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Fullscreen mobile menu */
.sabi-mobile {
    position: fixed;
    inset: 0;
    z-index: 2000;
    pointer-events: none;
    visibility: hidden;
}

.sabi-mobile.is-open {
    pointer-events: auto;
    visibility: visible;
}

.sabi-mobile__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(11, 16, 32, 0.88);
    backdrop-filter: blur(16px);
    opacity: 0;
    transition: opacity 0.45s ease;
}

.sabi-mobile.is-open .sabi-mobile__backdrop { opacity: 1; }

.sabi-mobile__screen {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 28px 40px;
    background: linear-gradient(165deg, #0f1528 0%, #0B1020 100%);
    transform: translateY(-100%);
    transition: transform 0.6s var(--ease-expo);
}

.sabi-mobile.is-open .sabi-mobile__screen { transform: translateY(0); }

.sabi-mobile__close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: #fff;
    cursor: pointer;
}

.sabi-mobile__logo-wrap {
    position: relative;
    margin: 52px 0 44px;
    padding: 12px 28px;
}

.sabi-mobile__logo-backdrop {
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.1);
}

.sabi-mobile__logo {
    position: relative;
    z-index: 1;
    height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.3)) brightness(1.1);
}

.sabi-mobile__logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: #fff;
}

.sabi-mobile__nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 96%;
    max-width: 420px;
}

.sabi-mobile__link {
    display: flex;
    align-items: center;
    gap: 18px;
    width: 100%;
    padding: 18px 0;
    font-family: var(--font-heading);
    font-size: clamp(1.375rem, 4.5vw, 1.875rem);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.88);
    background: none;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    text-align: left;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.sabi-mobile__link span {
    font-family: var(--font-ui);
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--color-accent);
}

.sabi-mobile__link:hover { color: #fff; padding-left: 6px; }

.sabi-mobile__sub {
    max-height: 0;
    overflow: hidden;
    padding-left: 40px;
    transition: max-height 0.4s var(--ease-expo);
}

.sabi-mobile__services.is-open .sabi-mobile__sub { max-height: 220px; }

.sabi-mobile__sub a {
    display: block;
    padding: 11px 0;
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.sabi-mobile__sub a:hover { color: var(--color-accent); }

.sabi-mobile__footer {
    width: 96%;
    max-width: 420px;
    display: grid;
    gap: 14px;
    padding-top: 20px;
}

.sabi-mobile__phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-ui);
    font-weight: 600;
    color: #fff;
}

.sabi-mobile__phone svg { color: var(--color-accent); }

.sabi-mobile__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, var(--color-accent), #e05500);
    font-family: var(--font-ui);
    font-weight: 700;
    color: #fff;
    box-shadow: 0 8px 32px rgba(255, 107, 0, 0.4);
}

@media (max-width: 1140px) {
    .sabi-header__nav,
    .sabi-header__actions { display: none; }

    .sabi-header__burger { display: flex; }

    .sabi-header__wrap { grid-template-columns: 1fr auto; }

    .sabi-header__logo { justify-self: start; }
}

@media (max-width: 768px) {
    :root {
        --logo-h: 48px;
        --logo-h-sm: 40px;
    }

    .sabi-header { padding: 16px 0; }
    .sabi-header.is-scrolled { padding: 12px 0; }
}

/* Announcement bar */
.site-announcement {
    position: relative;
    z-index: 1001;
    background: linear-gradient(90deg, rgba(63, 67, 165, 0.95), rgba(255, 107, 0, 0.85));
    color: #fff;
    text-align: center;
    font-size: 0.875rem;
    font-family: var(--font-ui);
}
.site-announcement__inner {
    max-width: min(96%, 1440px);
    margin: 0 auto;
    padding: 10px 20px;
}
.site-announcement p { margin: 0; }

/* Sticky header toggle */
body.header-not-sticky .site-header {
    position: relative;
    top: auto;
}
