


/* =========================================================
   PARAMOUNT LOOMS
   HEADER + TOPBAR + NAVIGATION
   RESPONSIVE FIX
========================================================= */

:root {
    --pl-blue: #0A2E67;
    --pl-blue-dark: #071F49;
    --pl-blue-deep: #051B3E;

    --pl-red: #E31E24;
    --pl-red-dark: #C6191F;

    --pl-white: #FFFFFF;
    --pl-soft: #F5F7FA;
    --pl-border: #E1E7EF;

    --pl-text: #14233B;
    --pl-muted: #6D7A8D;
}


/* =========================================================
   BASIC HEADER SAFETY
========================================================= */

body {
    overflow-x: hidden;
}

.site-header *,
.topbar * {
    box-sizing: border-box;
}

.site-header a,
.topbar a {
    text-decoration: none;
}


/* =========================================================
   TOP BAR
========================================================= */

.topbar {
    position: relative;
    z-index: 1002;

    background: var(--pl-blue-dark);
    color: #fff;

    border-bottom: 1px solid rgba(255,255,255,.08);
}

.topbar-inner {
    min-height: 40px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 25px;
}

.topbar-left {
    min-width: 0;

    display: flex;
    align-items: center;

    gap: 26px;
}

.topbar-left span,
.topbar-left a {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    color: rgba(255,255,255,.78);

    font-size: 11px;
    line-height: 1.4;
    font-weight: 500;

    transition: color .3s ease;
}

.topbar-left span {
    min-width: 0;
}

.topbar-left i {
    color: var(--pl-red);
    font-size: 11px;
    flex: 0 0 auto;
}

.topbar-left a:hover {
    color: #fff;
}


/* call area */

.topbar-right {
    flex: 0 0 auto;
}

.top-call {
    min-height: 40px;

    display: flex;
    align-items: center;

    gap: 10px;

    padding: 0 16px;

    background: rgba(255,255,255,.06);

    border-left: 1px solid rgba(255,255,255,.08);
    border-right: 1px solid rgba(255,255,255,.08);

    color: #fff;

    transition: background .3s ease;
}

.top-call:hover {
    background: var(--pl-red);
    color: #fff;
}

.top-call > i {
    font-size: 13px;
    color: #fff;
}

.top-call span {
    display: flex;
    align-items: center;
    gap: 7px;
}

.top-call small {
    color: rgba(255,255,255,.55);

    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.top-call strong {
    color: #fff;

    font-size: 11px;
    font-weight: 600;
}


/* =========================================================
   MAIN HEADER
========================================================= */

.site-header {
    position: sticky;
    top: 0;

    z-index: 1000;

    width: 100%;

    background: rgba(255,255,255,.98);

    border-bottom: 1px solid var(--pl-border);

    box-shadow:
        0 8px 30px rgba(10,46,103,.06);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    transition:
        box-shadow .3s ease,
        background .3s ease;
}


/* navigation shell */

.nav-wrap {
    min-height: 84px;

    display: flex;
    align-items: center;

    gap: 24px;

    position: relative;
}


/* =========================================================
   LOGO
========================================================= */

.brand {
    flex: 0 0 auto;

    display: inline-flex;
    align-items: center;

    margin-right: auto;
}

.brand img {
    display: block;

    width: 180px !important;
    max-width: 180px !important;
    height: 67px !important;

    object-fit: contain;
    object-position: left center;
}


/* =========================================================
   DESKTOP NAV
========================================================= */

.main-nav {
    display: flex;
    align-items: center;

    gap: 3px;

    margin-left: auto;
}

.nav-link {
    position: relative;

    min-height: 84px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    padding: 0 12px;

    border: 0;
    background: transparent;

    color: #26364E;

    font-family: inherit;

    font-size: 12px;
    line-height: 1;
    font-weight: 600;

    white-space: nowrap;

    cursor: pointer;

    transition:
        color .25s ease,
        background .25s ease;
}


/* red underline */

.nav-link::after {
    content: "";

    position: absolute;

    left: 50%;
    bottom: 0;

    width: 0;
    height: 3px;

    background: var(--pl-red);

    transform: translateX(-50%);

    transition: width .3s ease;
}

.nav-link:hover,
.nav-link.active,
.nav-dropdown.active > .nav-link {
    color: var(--pl-blue);
}

.nav-link:hover::after,
.nav-link.active::after,
.nav-dropdown.active > .nav-link::after {
    width: calc(100% - 24px);
}

.dropdown-toggle i {
    font-size: 9px;

    transition: transform .25s ease;
}


/* =========================================================
   DROPDOWNS
========================================================= */

.nav-dropdown {
    position: relative;
}


/* common dropdown */

.dropdown-menu {
    position: absolute;

    top: calc(100% + 10px);
    left: 0;

    min-width: 300px;

    padding: 14px;

    background: #fff;

    border: 1px solid var(--pl-border);
    border-radius: 14px;

    box-shadow:
        0 24px 60px rgba(10,46,103,.15);

    opacity: 0;
    visibility: hidden;

    transform: translateY(8px);

    pointer-events: none;

    transition:
        opacity .25s ease,
        visibility .25s ease,
        transform .25s ease;
}


/* dropdown arrow */

.dropdown-menu::before {
    content: "";

    position: absolute;

    top: -6px;
    left: 30px;

    width: 12px;
    height: 12px;

    background: #fff;

    border-left: 1px solid var(--pl-border);
    border-top: 1px solid var(--pl-border);

    transform: rotate(45deg);
}


/* open desktop dropdown */

@media (min-width: 992px) {

    .nav-dropdown:hover > .dropdown-menu,
    .nav-dropdown:focus-within > .dropdown-menu,
    .nav-dropdown.open > .dropdown-menu {
        opacity: 1;
        visibility: visible;

        transform: translateY(0);

        pointer-events: auto;
    }

    .nav-dropdown:hover > .dropdown-toggle i,
    .nav-dropdown:focus-within > .dropdown-toggle i {
        transform: rotate(180deg);
    }
}


/* =========================================================
   DROPDOWN KICKER
========================================================= */

.dropdown-kicker {
    padding: 5px 8px 12px;

    color: var(--pl-red);

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 1.6px;
    text-transform: uppercase;

    border-bottom: 1px solid var(--pl-border);

    margin-bottom: 7px;
}


/* =========================================================
   PRODUCT MEGA MENU
========================================================= */

.product-mega {
    width: 660px;

    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 5px 8px;
}

.product-mega .dropdown-kicker,
.product-mega .menu-all {
    grid-column: 1 / -1;
}


/* product item */

.product-mega > a:not(.menu-all) {
    min-width: 0;

    display: grid;

    grid-template-columns: 36px minmax(0,1fr);

    align-items: center;

    gap: 10px;

    padding: 10px;

    border-radius: 9px;

    color: var(--pl-text);

    transition:
        background .25s ease,
        transform .25s ease;
}

.product-mega > a:not(.menu-all):hover {
    background: var(--pl-soft);

    transform: translateX(2px);
}


/* icon */

.menu-icon {
    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;

    background: rgba(10,46,103,.07);

    color: var(--pl-blue);

    transition:
        background .25s ease,
        color .25s ease;
}

.product-mega > a:hover .menu-icon {
    background: var(--pl-red);
    color: #fff;
}


/* text */

.product-mega b {
    display: block;

    overflow: hidden;

    color: var(--pl-blue);

    font-size: 11px;
    line-height: 1.3;
    font-weight: 600;

    text-overflow: ellipsis;
}

.product-mega small {
    display: block;

    margin-top: 3px;

    color: var(--pl-muted);

    font-size: 9px;
    line-height: 1.3;
}


/* view all */

.menu-all {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-top: 7px;
    padding: 12px 13px;

    border-radius: 9px;

    background: var(--pl-blue);

    color: #fff;

    font-size: 10px;
    font-weight: 600;

    transition: background .25s ease;
}

.menu-all:hover {
    background: var(--pl-red);
    color: #fff;
}


/* =========================================================
   COMPACT DROPDOWNS
========================================================= */

.compact-menu {
    width: 310px;
}

.compact-menu > a {
    display: flex;
    align-items: center;

    gap: 9px;

    min-height: 40px;

    padding: 8px 10px;

    border-radius: 8px;

    color: #34445B;

    font-size: 11px;
    font-weight: 500;

    transition:
        background .25s ease,
        color .25s ease,
        padding-left .25s ease;
}

.compact-menu > a i {
    width: 15px;

    color: var(--pl-red);

    font-size: 9px;
}

.compact-menu > a:hover {
    padding-left: 14px;

    background: var(--pl-soft);
    color: var(--pl-blue);
}


/* Company dropdown alignment */

.company-dropdown .dropdown-menu {
    left: auto;
    right: 0;
}

.company-dropdown .dropdown-menu::before {
    left: auto;
    right: 30px;
}


/* =========================================================
   GET QUOTE
========================================================= */

.nav-cta {
    flex: 0 0 auto;

    min-height: 46px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    padding: 0 18px;

    border-radius: 7px;

    background: var(--pl-red);

    color: #fff;

    font-size: 11px;
    font-weight: 600;

    box-shadow:
        0 9px 20px rgba(227,30,36,.18);

    white-space: nowrap;

    transition:
        background .3s ease,
        transform .3s ease,
        box-shadow .3s ease;
}

.nav-cta:hover {
    background: var(--pl-blue);

    color: #fff;

    transform: translateY(-2px);

    box-shadow:
        0 12px 25px rgba(10,46,103,.20);
}

.nav-cta i {
    font-size: 10px;
}


/* =========================================================
   MOBILE TOGGLE
========================================================= */

.mobile-toggle {
    display: none;

    width: 44px;
    height: 44px;

    align-items: center;
    justify-content: center;

    flex: 0 0 44px;

    padding: 0;

    border: 1px solid var(--pl-border);
    border-radius: 8px;

    background: #fff;

    color: var(--pl-blue);

    font-size: 18px;

    cursor: pointer;
}


/* =========================================================
   NAV BACKDROP
========================================================= */

.nav-backdrop {
    position: fixed;

    inset: 0;

    z-index: 998;

    background: rgba(5,20,45,.54);

    opacity: 0;
    visibility: hidden;

    pointer-events: none;

    backdrop-filter: blur(2px);

    transition:
        opacity .3s ease,
        visibility .3s ease;
}

.nav-backdrop.active,
.nav-backdrop.show,
body.menu-open .nav-backdrop {
    opacity: 1;
    visibility: visible;

    pointer-events: auto;
}


/* =========================================================
   MEDIUM DESKTOP
========================================================= */

@media (max-width: 1280px) {

    .nav-wrap {
        gap: 15px;
    }

    .brand img {
        width: 165px !important;
        max-width: 165px !important;
        height: 61px !important;
    }

    .nav-link {
        padding: 0 8px;

        font-size: 11px;
    }

    .nav-cta {
        padding: 0 14px;
    }

    .product-mega {
        width: 600px;
    }
}


/* =========================================================
   TABLET / MOBILE NAVIGATION
========================================================= */

@media (max-width: 991px) {

    /* topbar */

    .topbar-inner {
        min-height: 38px;
    }

    .topbar-left {
        overflow: hidden;
    }

    .topbar-left span {
        max-width: 430px;

        overflow: hidden;

        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .topbar-left a {
        display: none;
    }


    /* header */

    .site-header {
        min-height: 74px;
    }

    .nav-wrap {
        min-height: 74px;

        gap: 12px;
    }

    .brand img {
        width: 155px !important;
        max-width: 155px !important;
        height: 57px !important;
    }

    .mobile-toggle {
        display: inline-flex;
    }


    /* CTA */

    .nav-cta {
        order: 2;

        min-height: 42px;

        padding: 0 15px;
    }

    .mobile-toggle {
        order: 3;
    }


    /* off canvas */

    .main-nav {
        position: fixed;

        z-index: 1001;

        top: 0;
        right: 0;

        width: min(380px, 88vw);
        height: 100dvh;

        display: block;

        margin: 0;

        padding:
            85px 18px 30px;

        overflow-y: auto;
        overscroll-behavior: contain;

        background: #fff;

        border-left: 1px solid var(--pl-border);

        box-shadow:
            -20px 0 50px rgba(10,46,103,.16);

        transform: translateX(105%);

        transition:
            transform .35s cubic-bezier(.2,.7,.2,1);
    }


    .main-nav.active,
    .main-nav.open,
    .main-nav.show,
    body.menu-open .main-nav {
        transform: translateX(0);
    }


    /* base links */

    .main-nav > .nav-link,
    .main-nav > .nav-dropdown > .nav-link {
        width: 100%;
        min-height: 49px;

        justify-content: space-between;

        padding: 0 12px;

        border-bottom: 1px solid #edf0f4;

        color: var(--pl-blue);

        font-size: 13px;
    }

    .main-nav > .nav-link::after,
    .main-nav > .nav-dropdown > .nav-link::after {
        display: none;
    }


    /* dropdown wrapper */

    .nav-dropdown {
        width: 100%;
    }


    /* disable desktop absolute layout */

    .dropdown-menu,
    .product-mega,
    .compact-menu,
    .company-dropdown .dropdown-menu {
        position: static;

        width: 100%;
        min-width: 0;
        max-width: none;

        display: none;

        margin: 0;

        padding: 10px 8px 14px;

        border: 0;
        border-radius: 0;

        border-bottom: 1px solid var(--pl-border);

        box-shadow: none;

        opacity: 1;
        visibility: visible;

        transform: none;

        pointer-events: auto;

        background: #f8fafc;
    }


    .dropdown-menu::before {
        display: none;
    }


    /* support common JS classes */

    .nav-dropdown.open > .dropdown-menu,
    .nav-dropdown.active > .dropdown-menu,
    .nav-dropdown.show > .dropdown-menu {
        display: block;
    }


    .nav-dropdown.open > .dropdown-toggle i,
    .nav-dropdown.show > .dropdown-toggle i {
        transform: rotate(180deg);
    }


    /* product mega becomes one column */

    .product-mega {
        grid-template-columns: 1fr;

        gap: 4px;
    }

    .product-mega .dropdown-kicker,
    .product-mega .menu-all {
        grid-column: auto;
    }


    .product-mega > a:not(.menu-all) {
        padding: 8px;

        grid-template-columns:
            33px minmax(0,1fr);
    }

    .menu-icon {
        width: 33px;
        height: 33px;
    }

    .product-mega b {
        font-size: 11px;
    }

    .product-mega small {
        font-size: 9px;
    }


    .dropdown-kicker {
        padding-left: 7px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    /* topbar simpler */

    .topbar-inner {
        min-height: 34px;

        gap: 8px;
    }

    .topbar-left {
        width: 100%;
    }

    .topbar-left span {
        width: 100%;
        max-width: none;

        font-size: 9px;
    }

    .topbar-right {
        display: none;
    }


    /* main header */

    .nav-wrap {
        min-height: 70px;
    }

    .brand img {
        width: 145px !important;
        max-width: 145px !important;
        height: 54px !important;
    }


    .nav-cta {
        min-height: 40px;

        padding: 0 12px;

        font-size: 10px;
    }

    .nav-cta span {
        display: inline;
    }


    .mobile-toggle {
        width: 42px;
        height: 42px;

        flex-basis: 42px;
    }


    .main-nav {
        width: min(360px, 92vw);

        padding:
            75px 15px 25px;
    }


    .main-nav > .nav-link,
    .main-nav > .nav-dropdown > .nav-link {
        min-height: 48px;

        padding: 0 9px;

        font-size: 12px;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 575px) {

    .topbar {
        display: none;
    }

    .site-header {
        top: 0;
    }

    .nav-wrap {
        min-height: 68px;

        gap: 8px;
    }

    .brand {
        min-width: 0;

        margin-right: auto;
    }

    .brand img {
        width: 135px !important;
        max-width: 135px !important;
        height: 50px !important;
    }


    /* keep header clean */

    .nav-cta {
        width: 39px;
        height: 39px;

        min-height: 39px;

        padding: 0;

        border-radius: 8px;
    }

    .nav-cta span {
        display: none;
    }

    .nav-cta i {
        font-size: 12px;
    }


    .mobile-toggle {
        width: 39px;
        height: 39px;

        flex-basis: 39px;

        font-size: 16px;
    }


    .main-nav {
        width: min(330px, 94vw);

        padding:
            70px 13px 22px;
    }


    .product-mega > a:not(.menu-all) {
        grid-template-columns:
            30px minmax(0,1fr);

        gap: 8px;
    }


    .menu-icon {
        width: 30px;
        height: 30px;

        font-size: 10px;
    }
}


/* =========================================================
   VERY SMALL DEVICES
========================================================= */

@media (max-width: 380px) {

    .brand img {
        width: 122px !important;
        max-width: 122px !important;
        height: 46px !important;
    }

    .nav-wrap {
        gap: 6px;
    }

    .nav-cta,
    .mobile-toggle {
        width: 37px;
        height: 37px;

        min-height: 37px;
        flex-basis: 37px;
    }
}

