﻿/* Full-width bar with a subtle separation; content is centered by .header. */
.site-top-bar.e-appbar {
    border: none;
    border-bottom: 1px solid #eaecef;
    height: auto;
    width: 100%;
    margin: 0;
    padding: 14px 28px;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
}

/* The Firmware wordmark — larger, crisp. */
.company-logo {
    height: 48px;
    width: auto;
    display: block;
}

.site-top-bar .e-menu-item .e-caret::before {
    content: "☰" !important;
    font-size: 18px;
    font-weight: bold;
    padding: 5px !important;
}

.site-top-bar .e-menu-container ul .e-menu-item .e-caret {
    right: 7px !important;
    line-height: 30px !important;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.menu-item {
    margin-left: 4px;
    background: none;
    border: none;
    color: #334155;
    font-size: 17.5px;
    line-height: 1.5;
    padding: 8px 14px;
    font-weight: 600;
    white-space: nowrap;
    border-radius: 8px;
    transition: color 0.15s ease, background 0.15s ease;
}

.e-btn.menu-item:hover,
.e-btn.menu-item:focus,
.e-btn.menu-item:active {
    background: #f1f5f9 !important;
    color: #004777 !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.create-account-button {
    background-color: #004777;
    border: none;
    color: white;
    padding: 9px 20px;
    font-size: 17px;
    line-height: 1.5;
    font-weight: 700;
    margin-left: 14px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 71, 119, 0.25);
    transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

    .create-account-button:hover {
        background-color: #003d52;
        border: none;
        color: white!important;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0, 71, 119, 0.32);
    }

.navbar > .container {
    display: initial !important;
}

.menu-icon {
    font-size: 26px;
    cursor: pointer;
}

.menu-full-width {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 16px;
}

.site-top-bar-left {
    flex: 0 0 auto;
}

.site-top-bar-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
    flex-wrap: wrap;
    overflow: hidden;
    max-width: 100%;
}

/* Always-visible Login button on the mobile bar — filled brand style so returning users
   spot the way in without opening the hamburger. */
.e-btn.mobile-login-button {
    background-color: #004777;
    border: none;
    color: white;
    padding: 7px 16px;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 700;
    white-space: nowrap;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 71, 119, 0.25);
    transition: background 0.15s ease;
}

    .e-btn.mobile-login-button:hover,
    .e-btn.mobile-login-button:focus,
    .e-btn.mobile-login-button:active {
        background-color: #003d52 !important;
        color: white !important;
        border: none !important;
        box-shadow: 0 2px 6px rgba(0, 71, 119, 0.25) !important;
    }

@media (max-width: 650px) {
    .desktop {
        display: none !important;
    }

    .mobile {
        display: flex !important;
        justify-content: flex-end;
        align-items: center;
        gap: 10px;
        flex: 1;
    }

    /* Tighter bar so logo + login + hamburger fit on narrow phones. */
    .site-top-bar.e-appbar {
        padding: 10px 16px;
    }

    /* Scale the wordmark down and let it shrink further on very narrow screens. */
    .company-logo {
        height: 28px;
        max-width: 46vw;
    }

    /* Popup (drawer) items span the popup's width for comfortable tap targets. The root
       hamburger item is excluded — a blanket .e-menu-item rule used to stretch it across
       the whole bar. */
    .header ul.e-ul .e-menu-item {
        width: 100%;
    }

    /* Compact, touch-friendly hamburger (the root menu item renders only the ☰ caret). */
    .mobile .e-menu-container ul.e-menu > .e-menu-item {
        min-width: 44px;
        min-height: 40px;
    }
}

@media (min-width: 651px) {
    .desktop {
        display: flex !important;
        justify-content: flex-end;
        flex: 1;
        overflow: auto;
    }

    .mobile {
        display: none !important;
    }
}
