/*
===============================================
HEADER ENHANCEMENTS - PREMIUM STYLING
Modern & Professional Header Design
Version: 1.0
===============================================
*/

/*
===============================================
MAIN HEADER SECTION
===============================================
*/

.header__section {
    background: white;
    position: relative;
    z-index: 100;
    border-bottom: 3px solid #ed1d24;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.header__section::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ed1d24 0%, #d41920 100%);
    animation: borderGlow 2s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 10px rgba(237, 29, 36, 0.3);
    }
    50% {
        opacity: 0.8;
        box-shadow: 0 0 20px rgba(237, 29, 36, 0.5);
    }
}

/*
===============================================
LOGO STYLING
===============================================
*/

.main__logo {
    flex-shrink: 0;
}

.main__logo--link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.main__logo--link:hover {
    transform: scale(1.05);
}

.main__logo--img {
    height: 40px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.main__logo--link:hover .main__logo--img {
    transform: scale(1.1);
}

.main__logo--title {
    font-size: 24px;
    font-weight: 800;
    margin: 0;
    background: linear-gradient(135deg, #283891 0%, #ed1d24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

/*
===============================================
HEADER NAVIGATION
===============================================
*/

.header__menu--navigation {
    display: flex;
    align-items: center;
}

.header__menu--wrapper {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 5px;
}

.header__menu--items {
    transition: all 0.3s ease;
}

.header__menu--items.active {
    border-bottom: 3px solid #ed1d24;
    padding-bottom: 2px;
}

.header__menu--link {
    display: block;
    padding: 8px 20px;
    color: #283891;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 4px;
}

.header__menu--link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ed1d24, transparent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.header__menu--items:hover .header__menu--link::after {
    transform: scaleX(1);
    transform-origin: left;
}

.header__menu--link:hover {
    color: #ed1d24;
    background: rgba(237, 29, 36, 0.05);
}

.header__menu--items.active .header__menu--link {
    color: #ed1d24;
    background: rgba(237, 29, 36, 0.1);
}

/*
===============================================
MAIN HEADER INNER
===============================================
*/

.main__header--inner {
    padding: 15px 0;
    transition: all 0.3s ease;
}

.main__header.header__sticky {
    position: sticky;
    top: 0;
    background: white;
    z-index: 99;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.main__header.header__sticky .main__header--inner {
    padding: 10px 0;
}

/*
===============================================
OFFCANVAS MENU
===============================================
*/

.offcanvas__header--menu__open--btn {
    display: none;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #ed1d24 0%, #d41920 100%);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px;
    align-items: center;
    justify-content: center;
}

.offcanvas__header--menu__open--btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(237, 29, 36, 0.4);
}

.offcanvas__header--menu__open--svg {
    width: 24px;
    height: 24px;
}

/*
===============================================
RESPONSIVE HEADER
===============================================
*/

@media (max-width: 1024px) {
    .header__menu--wrapper {
        gap: 0px;
    }

    .header__menu--link {
        padding: 8px 15px;
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .offcanvas__header--menu__open--btn {
        display: flex;
    }

    .header__menu.style3 {
        display: none;
    }

    .main__logo--title {
        display: none;
    }

    .main__logo--img {
        height: 35px;
    }

    .main__header--inner {
        padding: 12px 0;
    }
}

@media (max-width: 480px) {
    .header__section {
        border-bottom: 2px solid #ed1d24;
    }

    .main__logo--img {
        height: 30px;
    }

    .offcanvas__header--menu__open--btn {
        width: 40px;
        height: 40px;
    }
}

/*
===============================================
OFFCANVAS MENU STYLING
===============================================
*/

.offcanvas__header {
    background: white;
    position: fixed;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100vh;
    transition: left 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
}

.offcanvas__header[data-offcanvas-active="true"] {
    left: 0;
}

.offcanvas__logo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.offcanvas__logo_link {
    display: block;
}

.offcanvas__logo_link img {
    height: 40px;
    width: auto;
}

.offcanvas__close--btn {
    background: #f0f0f0;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    color: #333;
    transition: all 0.3s ease;
}

.offcanvas__close--btn:hover {
    background: #ed1d24;
    color: white;
}

.offcanvas__menu {
    padding: 20px 0;
}

.offcanvas__menu_ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.offcanvas__menu_li {
    border-bottom: 1px solid #f0f0f0;
}

.offcanvas__menu_item {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.offcanvas__menu_item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #ed1d24;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.offcanvas__menu_li:hover .offcanvas__menu_item {
    background: rgba(237, 29, 36, 0.05);
    padding-left: 25px;
}

.offcanvas__menu_li:hover .offcanvas__menu_item::before {
    transform: scaleY(1);
}

/*
===============================================
ANIMATION UTILITIES
===============================================
*/

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header__section {
    animation: slideDown 0.5s ease-out;
}

/*
===============================================
ACCESSIBILITY
===============================================
*/

.offcanvas__header--menu__open--btn:focus {
    outline: 2px solid #ed1d24;
    outline-offset: 2px;
}

.header__menu--link:focus {
    outline: 2px solid #283891;
    outline-offset: 4px;
}

/*
===============================================
END OF HEADER ENHANCEMENTS
===============================================
*/
