/* Header styles - transparent with opacity */
@import url('../css/root-style.css');
@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@500&display=swap');

.site-header {
    background: transparent;
    border-bottom: 1px solid rgba(36, 49, 95, 0.06);
    z-index: 1030;
    padding: 12px 0;
}

.site-header .brand img {
    display: block;
}

/* Header link styles using provided tokens from root-style.css */
.header-link {
    font-family: 'Barlow', sans-serif;
    font-weight: 500;
    font-size: 15px;
    line-height: 18px;
    letter-spacing: 0px;
    text-align: left;
    color: #24315F;
    text-transform: uppercase;
    opacity: 1;
    padding: 6px 10px;
    position: relative;
}

.header-link:hover,
.header-link:focus,
.header-link.active {
    color: var(--unnamed-color-516ddd);
    text-decoration: none;
}

.header-link.active::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 3px;
    background-color: var(--unnamed-color-516ddd);
}

/* Phone link and My Account button */
.phone-link {
    font-weight: 500;
    color: #24315F;
    text-decoration: none;
}

.my-account-btn {
    background-color: var(--unnamed-color-19296a);
    border-color: var(--unnamed-color-19296a);
    border-radius: 20px;
    padding: 8px 24px;
}

/* Industries Dropdown */
.industries-dropdown:hover .industries-card {
    display: flex;
    margin-top: 0;
}

.industries-card {
    display: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 509px;
    background: #F3F9FF 0% 0% no-repeat padding-box;
    box-shadow: 0px 4px 12px #1A2B6662;
    border-radius: 8px;
    opacity: 1;
    padding: 1rem;
    flex-direction: column;
}

.industries-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.industries-card ul li {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 2px dashed #DDEBFF;
    flex-grow: 1;
}

.industry-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.3s ease;
    border-radius: 8px;
    padding: 1rem;
    margin: -1rem;
    /* Counteract the padding on the li */
}

.industry-link:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.industries-card ul li:last-child {
    border-bottom: none;
}

.industries-card img {
    width: 30px;
}

.industries-card h5 {
    font: var(--unnamed-font-style-normal) normal var(--unnamed-font-weight-medium) 15px/18px var(--unnamed-font-family-ubuntu);
    letter-spacing: var(--unnamed-character-spacing-0);
    text-align: left;
    font: normal normal medium 15px/18px Ubuntu;
    letter-spacing: 0px;
    color: #2B308A;
    opacity: 1;
}

.industries-card p {
    font: var(--unnamed-font-style-normal) normal var(--unnamed-font-weight-normal) 12px/16px var(--unnamed-font-family-ubuntu);
    letter-spacing: var(--unnamed-character-spacing-0);
    text-align: left;
    font: normal normal normal 12px/16px Ubuntu;
    letter-spacing: 0px;
    color: #2B308A;
    opacity: 1;
    /* font-size: 16px; */
}

/* Dropdown menu */
.dropdown-menu {
    border-radius: 8px;
    border: 1px solid rgba(36, 49, 95, 0.08);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.dropdown-item {
    text-transform: uppercase;
    font-size: 14px;
}

/* Mobile adjustments */
@media (max-width: 991.98px) {
    .site-header {
        background-color: #fff;
    }

    .site-header .navbar-collapse {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #fff;
        z-index: 1050;
        padding: 1rem;
        flex-direction: column;
    }

    .site-header .navbar-collapse.show {
        display: flex;
    }

    .mobile-menu-header {
        padding-bottom: 1rem;
        border-bottom: 1px solid #eee;
    }

    .site-header .navbar-nav {
        width: 100%;
    }

    .site-header .nav-item {
        border-bottom: 1px solid #eee;
    }

    .site-header .nav-link {
        padding: 1rem;
    }

    .site-header .navbar-toggler {
        border: none;
        display: block;
    }
}

/* Responsive adjustments for 1366px viewport */
@media (max-width: 1366px) {
    .header-link {
        font-size: 14px;
        padding: 6px 8px;
    }

    .phone-link {
        font-size: 14px;
    }

    .my-account-btn {
        padding: 6px 20px;
        font-size: 14px;
    }

    .industries-card {
        width: 450px;
    }
}