/*=========================================================
    SANVI MASALE
    TOP HEADER CSS
=========================================================*/

:root {
    --primary: #C62828;
    --primary-dark: #A61919;
    --secondary: #1B5E20;
    --gold: #FFC107;
    --white: #ffffff;
    --text: #444444;
    --transition: all 0.35s ease;
}


/*=========================================================
    TOP HEADER
=========================================================*/

.top-header {
    position: relative;
    width: 100%;
    height: 56px;

    background:
        linear-gradient(
            90deg,
            #A61919 0%,
            #C62828 50%,
            #E53935 100%
        );

    color: #ffffff;

    overflow: hidden;

    z-index: 999;
}


/*=========================================================
    SHINE EFFECT
=========================================================*/

.top-header::before {
    content: "";

    position: absolute;

    top: 0;
    left: -100%;

    width: 100%;
    height: 100%;

    background: linear-gradient(
        120deg,
        transparent 0%,
        rgba(255,255,255,0.08) 45%,
        rgba(255,255,255,0.18) 50%,
        rgba(255,255,255,0.08) 55%,
        transparent 100%
    );

    animation: topHeaderShine 8s linear infinite;

    pointer-events: none;
}


@keyframes topHeaderShine {

    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }

}


/*=========================================================
    CONTAINER
=========================================================*/

.top-header .container {
    position: relative;

    height: 100%;

    padding-top: 8px;
    padding-bottom: 8px;

    z-index: 2;
}


/*=========================================================
    CONTACT AREA
=========================================================*/

.top-contact {
    display: flex;

    align-items: center;

    gap: 15px;

    height: 40px;

    white-space: nowrap;
}


.top-contact a {
    display: inline-flex;

    align-items: center;

    color: #ffffff;

    text-decoration: none;

    font-size: 13px;

    font-weight: 500;

    transition: var(--transition);
}


.top-contact a:hover {
    color: var(--gold);
}


.top-contact i {
    color: var(--gold);

    margin-right: 6px;

    font-size: 13px;
}


.separator {
    display: inline-block;

    width: 1px;

    height: 16px;

    background: rgba(255,255,255,0.35);
}


/*=========================================================
    ANNOUNCEMENT CONTAINER
=========================================================*/

.top-announcement {
    position: relative;

    width: 100%;

    height: 40px;

    display: flex;

    align-items: center;

    overflow: hidden;

    white-space: nowrap;

    /* Important */
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 5%,
        black 95%,
        transparent 100%
    );

    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 5%,
        black 95%,
        transparent 100%
    );
}


/*=========================================================
    ANNOUNCEMENT MOVING TRACK
=========================================================*/

.announcement-track {

    display: inline-flex;

    align-items: center;

    gap: 55px;

    width: max-content;

    min-width: max-content;

    white-space: nowrap;

    will-change: transform;

    animation: announcementMove 25s linear infinite;
}


/*=========================================================
    ANNOUNCEMENT TEXT
=========================================================*/

.announcement-track span {

    display: inline-flex;

    align-items: center;

    color: #ffffff;

    font-size: 13px;

    font-weight: 600;

    letter-spacing: 0.3px;

    white-space: nowrap;

    flex-shrink: 0;

    text-shadow:
        0 1px 2px rgba(0,0,0,0.15);
}


/*=========================================================
    ANNOUNCEMENT ANIMATION
=========================================================*/

@keyframes announcementMove {

    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }

}


/*=========================================================
    PAUSE ANIMATION ON HOVER
=========================================================*/

.top-announcement:hover .announcement-track {
    animation-play-state: paused;
}


/*=========================================================
    RIGHT AREA
=========================================================*/

.top-right {
    display: flex;

    justify-content: flex-end;

    align-items: center;

    gap: 20px;

    height: 40px;
}


/*=========================================================
    SOCIAL ICONS
=========================================================*/

.top-social {
    display: flex;

    align-items: center;

    gap: 9px;
}


.top-social a {

    width: 32px;
    height: 32px;

    display: flex;

    justify-content: center;

    align-items: center;

    border-radius: 50%;

    background: rgba(255,255,255,0.10);

    border: 1px solid rgba(255,255,255,0.22);

    color: #ffffff;

    text-decoration: none;

    transition: var(--transition);

    position: relative;

    z-index: 3;
}


.top-social a:hover {

    background: #ffffff;

    color: var(--primary);

    transform: translateY(-3px);

    box-shadow:
        0 5px 15px rgba(0,0,0,0.18);
}


/*=========================================================
    LANGUAGE
=========================================================*/

.language {

    display: flex;

    align-items: center;

    gap: 8px;
}


.language span {

    color: rgba(255,255,255,0.50);
}


.language a {

    color: #ffffff;

    text-decoration: none;

    font-size: 13px;

    font-weight: 600;

    transition: var(--transition);
}


.language a:hover {

    color: var(--gold);
}


/*=========================================================
    RESPONSIVE
=========================================================*/

@media (max-width: 991px) {

    .top-header {
        display: none;
    }

}


/*=========================================================
    REDUCE MOTION
=========================================================*/

@media (prefers-reduced-motion: reduce) {

    .top-header::before,
    .announcement-track {

        animation: none;
    }

}