/* ==========================================================================
   Global Route Logistics — site header
   Self-contained component. Does not depend on the theme's header classes.
   ========================================================================== */

:root {
    --grl-navy: #070c26;
    --grl-navy-deep: #04081c;
    --grl-red: #c22130;
    --grl-red-dark: #a41b28;
    --grl-header-h: 80px;
}

/* Top contact strip ------------------------------------------------------ */
.grl-topbar {
    background: var(--grl-navy-deep);
    color: rgba(255, 255, 255, .68);
    font-size: 13px;
    letter-spacing: .01em;
}
.grl-topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 38px;
}
.grl-topbar__label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.grl-topbar__contacts {
    display: flex;
    align-items: center;
    gap: 24px;
    flex: 0 0 auto;
}
.grl-topbar__contacts a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, .8);
    transition: color .16s ease;
}
.grl-topbar__contacts a:hover {
    color: #fff;
}
.grl-topbar__contacts i {
    color: var(--grl-red);
    font-size: 14px;
}

/* Main bar --------------------------------------------------------------- */
.grl-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--grl-navy);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    transition: box-shadow .22s ease;
}
.grl-header.is-scrolled {
    box-shadow: 0 10px 30px rgba(0, 0, 0, .28);
}
.grl-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    min-height: var(--grl-header-h);
}
.grl-logo {
    flex: 0 0 auto;
    display: block;
    line-height: 0;
}
.grl-logo img {
    width: 200px;
    height: auto;
    display: block;
}

/* Navigation ------------------------------------------------------------- */
.grl-nav ul {
    display: flex;
    align-items: center;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.grl-nav a {
    position: relative;
    display: flex;
    align-items: center;
    height: var(--grl-header-h);
    padding: 0 13px;
    color: rgba(255, 255, 255, .8);
    font-family: "Poppins", "Segoe UI", Arial, sans-serif;
    font-size: 14.5px;
    font-weight: 500;
    letter-spacing: .01em;
    transition: color .16s ease;
}
.grl-nav a::after {
    content: "";
    position: absolute;
    left: 13px;
    right: 13px;
    bottom: 19px;
    height: 2px;
    border-radius: 2px;
    background: transparent;
    transition: background-color .18s ease;
}
.grl-nav a:hover {
    color: #fff;
}
.grl-nav a:hover::after {
    background: rgba(255, 255, 255, .32);
}
.grl-nav li.is-active > a {
    color: #fff;
}
.grl-nav li.is-active > a::after {
    background: var(--grl-red);
}

/* Actions ---------------------------------------------------------------- */
.grl-header__actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 0 0 auto;
}
.grl-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 24px;
    border-radius: 6px;
    background: var(--grl-red);
    color: #fff;
    font-family: "Poppins", "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .01em;
    transition: background-color .16s ease, box-shadow .16s ease;
}
.grl-cta:hover {
    background: var(--grl-red-dark);
    color: #fff;
}
.grl-cta.is-active {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, .55);
}

/* Mobile burger ---------------------------------------------------------- */
.grl-burger {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
}
.grl-burger span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    transition: background-color .16s ease;
}
.grl-burger:hover span {
    background: var(--grl-red);
}

/* Focus visibility ------------------------------------------------------- */
.grl-header a:focus-visible,
.grl-burger:focus-visible,
.grl-topbar a:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

/* Mobile drawer ---------------------------------------------------------- */
.grl-drawer {
    position: fixed;
    inset: 0;
    z-index: 2000;
    visibility: hidden;
    pointer-events: none;
}
.grl-drawer.is-open {
    visibility: visible;
    pointer-events: auto;
}
.grl-drawer__overlay {
    position: absolute;
    inset: 0;
    background: rgba(4, 8, 28, .55);
    opacity: 0;
    transition: opacity .22s ease;
}
.grl-drawer.is-open .grl-drawer__overlay {
    opacity: 1;
}
.grl-drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    width: min(340px, 86vw);
    height: 100%;
    padding: 20px 24px 30px;
    background: #fff;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .24s cubic-bezier(.2, .8, .2, 1);
}
.grl-drawer.is-open .grl-drawer__panel {
    transform: translateX(0);
}
.grl-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 18px;
    border-bottom: 1px solid #edeff3;
}
.grl-drawer__head img {
    width: 150px;
    height: auto;
}
.grl-drawer__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 6px;
    background: #f4f5f8;
    color: #14181f;
    font-size: 16px;
    cursor: pointer;
}
.grl-drawer__close:hover {
    background: #e9ebf0;
}
.grl-drawer__nav {
    padding: 10px 0 6px;
}
.grl-drawer__nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.grl-drawer__nav a {
    display: block;
    padding: 14px 2px;
    border-bottom: 1px solid #f0f2f5;
    color: #14181f;
    font-family: "Poppins", "Segoe UI", Arial, sans-serif;
    font-size: 15px;
    font-weight: 600;
}
.grl-drawer__nav a:hover {
    color: var(--grl-red);
}
.grl-drawer__nav li.is-active > a {
    color: var(--grl-red);
}
.grl-drawer__contact {
    margin-top: auto;
    padding-top: 22px;
}
.grl-drawer__contact p {
    margin: 0 0 6px;
    font-size: 13px;
    color: #6b7280;
}
.grl-drawer__contact a {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 0;
    color: #14181f;
    font-size: 14px;
    font-weight: 500;
}
.grl-drawer__contact i {
    color: var(--grl-red);
    width: 16px;
    text-align: center;
}
body.grl-nav-open {
    overflow: hidden;
}

/* Reduced motion --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .grl-header,
    .grl-drawer,
    .grl-drawer__panel,
    .grl-drawer__overlay,
    .grl-nav a,
    .grl-nav a::after,
    .grl-cta {
        transition: none !important;
    }
}

/* Responsive ------------------------------------------------------------- */
@media (max-width: 1199px) {
    .grl-logo img {
        width: 180px;
    }
    .grl-nav a {
        padding: 0 10px;
        font-size: 14px;
    }
    .grl-nav a::after {
        left: 10px;
        right: 10px;
    }
    .grl-header__inner {
        gap: 18px;
    }
}

@media (max-width: 991px) {
    .grl-topbar {
        display: none;
    }
    .grl-nav {
        display: none;
    }
    .grl-burger {
        display: flex;
    }
    .grl-header__inner {
        min-height: 68px;
    }
    .grl-logo img {
        width: 155px;
    }
    .grl-cta {
        height: 40px;
        padding: 0 20px;
    }
}

@media (max-width: 575px) {
    .grl-header__inner {
        min-height: 64px;
        gap: 12px;
    }
    .grl-logo img {
        width: 142px;
    }
    .grl-cta {
        height: 38px;
        padding: 0 15px;
        font-size: 13px;
    }
}

@media (max-width: 359px) {
    .grl-cta {
        display: none;
    }
}
