/* 1. Header & Top Bar Customizations */
.top-contact-bar {
    background-color: var(--xws-nav-contact-red);
    min-height: 40px;
    height: 75px;
}

.main-header {
    box-shadow: 0 0 15px gray;
}

.navbar {
    min-height: 90px;
    max-height: 90px;
}
.main-header.scrolled { background-color: #fff; }

.text-xworks-red { color: var(--xworks-red) !important; }
.text-xworks-teal { color: #26a69a !important; }

/* =========================================
   DESKTOP STYLING (>= 992px)
   ========================================= */
@media (min-width: 992px) {
    .main-header { min-height: 140px; }

    .main-header > .navbar-brand {
        position: absolute;
        left: 2rem;
        top: 0;
        bottom: 0;
        z-index: 1050;
        display: flex;
        align-items: center;
        margin: 0;
    }

    .navbar-brand img {
        height: auto;
        max-height: 80%;
    }

    /* Absolute Slanted Top Bar */
    .top-contact-bar {
        position: relative;
        margin-left: auto;
        width: fit-content;
        right: 0;
        height: 50px;
        min-height: auto;
        padding: 0 40px 0 140px !important;
        clip-path: polygon(0 0, 100% 0, 100% 100%, 50px 100%);
        z-index: 10;
    }

    .navbar, .navbar .container-fluid, .navbar-collapse {
        height: 100%;
    }

    .navbar-collapse { align-items: flex-end; }
    .navbar-nav { height: 90px }
    .nav-item { height: 100%; }

    .nav-link {
        height: 100%;
        display: flex;
        align-items: center;
        padding: 0 13px !important;
        font-size: 15px;
        font-weight: 640;
        color: #222 !important;
        transition: background-color 0.2s ease;
    }

    .nav-item.dropdown:hover .dropdown-menu,
    .nav-item.dropdown:focus-within .dropdown-menu {
        display: block;
        margin-top: 0;
    }

    .nav-item-btn {
        display: flex;
        align-items: center;
        height: 100%;
        padding-left: 10px;
    }
}

/* 4. Dropdown Styling */
.dropdown-menu {
    border: none;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    padding: 0;
    min-width: 100%;
}
.dropdown-item {
    color: #26a69a !important;
    font-weight: 640;
    font-size: 16px;
    line-height: 22px;
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
}
.dropdown-item:last-child {
    border: none;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}
.dropdown-item:hover { background-color: #f8f9fa; }
.main-header .navbar .dropdown-toggle::after { margin-left: 1.2em; }

/* Hover states */
.nav-item.dropdown:hover > .nav-link,
.nav-link:hover {
    background-color: #f0f0f0;
}

/* 5. Button Styling */
.btn-kontakt {
    background-color: var(--xworks-red);
    font-size: 14px;
}

.offcanvas-300 {
    --bs-offcanvas-width: 300px;
}