
/* ==========================================================
   PALMETTO STATE TRANSPORTATION, LLC
   TM4Web - CUSTOM NAVIGATION STYLING
   ==========================================================

   Application    : Trimble TruckMate / TM4Web v26.3
   File           : custom/custom_style.css
   Environment    : PST_LIVE (Production)

   Customized By  : Aaron Fisher
   Department     : PST Information Technology
   Updated        : 2026-11-19

   PURPOSE
   ----------------------------------------------------------
   Company branding and navigation enhancements for MyPST.

   FEATURES
   ----------------------------------------------------------
   - PST green gradient navigation header
   - Enlarged company logo
   - Improved navigation spacing and typography
   - Subtle hover highlighting
   - Animated underline for navigation links
   - Keyboard accessibility
   - Reduced-motion support

   MAINTENANCE
   ----------------------------------------------------------
   This file overrides standard TM4Web styles.

   ========================================================== */


/* ==========================================================
   1. MAIN NAVIGATION BAR
   ========================================================== */

/*
   TM4Web dynamically supplies the following rule:

   .Color {
       background-color: #666666 !important;
   }

   Override only the main navigation header.

   Other TM4Web components using .Color will retain
   their default application behavior.
*/

html body header.header.Color {

    background-color: #105C49 !important;

    background-image: linear-gradient(
        110deg,
        #105C49 0%,
        #168568 100%
    ) !important;

    border-bottom: 1px solid #0C493B !important;
}


/* ==========================================================
   2. NAVIGATION MENU BACKGROUND
   ========================================================== */

/*
   The Kendo UI navigation menu also uses the Color class.

   Remove its default gray background so the underlying
   PST navigation gradient remains visible.
*/

html body header.header #menu.Color {

    background-color: transparent !important;
    background-image: none !important;

    border: none !important;
}


/* ==========================================================
   3. COMPANY LOGO
   ========================================================== */

/*
   Default TM4Web logo height is approximately 22px.

   PST logo is increased to 40px for improved visibility
   while maintaining a compact navigation header.
*/

header.header .Logo {

    display: flex;
    align-items: center;

    padding: 5px 0 5px 16px;
}

header.header .Logo img {

    display: block;

    height: 40px !important;
    width: auto !important;

    max-width: none;
}


/* ==========================================================
   4. NAVIGATION MENU POSITIONING
   ========================================================== */

/*
   Position navigation links alongside the enlarged logo.

   Keep the menu aligned with the logo without introducing
   unnecessary header height or extra horizontal spacing.
*/

header.header .MenuContainer {

    margin-top: 5px;
    margin-left: 24px;
}


/* ==========================================================
   5. TOP-LEVEL NAVIGATION LINKS
   ========================================================== */

/*
   Applies to:
   - Home
   - Customer Login
   - Register
   - Additional top-level menus when authenticated

   Nested dropdown menus retain their existing styling.
*/

header.header .MenuContainer #menu > li.k-item > .k-link {

    position: relative;
    display: block;

    color: #FFFFFF !important;

    font-size: 14px !important;
    font-weight: 600 !important;
    letter-spacing: 0.2px;

    padding: 9px 15px !important;

    border-radius: 4px;

    text-decoration: none !important;

    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}


/* ==========================================================
   6. NAVIGATION HOVER EFFECT
   ========================================================== */

/*
   Adds a subtle translucent highlight when a user
   hovers over a navigation link.
*/

header.header .MenuContainer #menu > li.k-item > .k-link:hover {

    background-color: rgba(
        255,
        255,
        255,
        0.14
    ) !important;

    color: #FFFFFF !important;
}


/* ==========================================================
   7. ANIMATED GREEN UNDERLINE
   ========================================================== */

/*
   A thin mint-green underline animates into view
   when a navigation link is hovered or focused.
*/

header.header .MenuContainer #menu > li.k-item > .k-link::after {

    content: "";

    position: absolute;

    bottom: 3px;
    left: 15px;
    right: 15px;

    height: 2px;

    background-color: #A8E6C5;

    transform: scaleX(0);
    transform-origin: center;

    transition: transform 0.25s ease;
}


/* Display underline on hover */

header.header .MenuContainer #menu > li.k-item > .k-link:hover::after {

    transform: scaleX(1);
}


/* Display underline on keyboard focus */

header.header .MenuContainer #menu > li.k-item > .k-link:focus-visible::after {

    transform: scaleX(1);
}


/* ==========================================================
   8. KEYBOARD ACCESSIBILITY
   ========================================================== */

/*
   Ensure navigation links remain accessible to users
   navigating with a keyboard.
*/

header.header .MenuContainer #menu > li.k-item > .k-link:focus-visible {

    outline: 2px solid #A8E6C5;
    outline-offset: -2px;

    color: #FFFFFF !important;
}


/* ==========================================================
   9. REDUCED MOTION ACCESSIBILITY
   ========================================================== */

/*
   Disable navigation animations for users who prefer
   reduced motion in their operating system settings.
*/

@media (prefers-reduced-motion: reduce) {

    header.header .MenuContainer #menu > li.k-item > .k-link,
    header.header .MenuContainer #menu > li.k-item > .k-link::after {

        transition: none;
    }

}


/* ==========================================================
   10. SMALL SCREEN NAVIGATION ADJUSTMENTS
   ========================================================== */

/*
   Reduce spacing and logo size on smaller screens.

   This preserves the default TM4Web menu functionality
   without forcing a custom mobile navigation layout.
*/

@media (max-width: 700px) {

    header.header .Logo {

        padding-left: 8px;
    }

    header.header .Logo img {

        height: 32px !important;
    }

    header.header .MenuContainer {

        margin-left: 8px;
        margin-top: 3px;
    }

    header.header .MenuContainer #menu > li.k-item > .k-link {

        font-size: 13px !important;
        padding: 8px 10px !important;
    }

}


/* ==========================================================
   END OF PST CUSTOM NAVIGATION STYLING

   MyPST Customer Portal
   Palmetto State Transportation, LLC

   Site Customization & Design:
   Aaron Fisher - PST Information Technology
   ========================================================== */
