/*==============================================================
BERGER PAINTS
HERO SECTION
==============================================================*/

/*==============================================================
HERO WRAPPER
==============================================================*/

.hero{
    position:relative;
    overflow:hidden;
    background:#111;
}

/*==============================================================
SWIPER
==============================================================*/

.heroSwiper{
    width:100%;
    height:850px;
}

.heroSwiper .swiper-wrapper{
    height:100%;
}

.heroSwiper .swiper-slide{
    position:relative;
    width:100%;
    height:100%;
    overflow:hidden;
    display:flex;
    align-items:center;
}

/*==============================================================
BACKGROUND IMAGE
==============================================================*/

.hero-image{
    position:absolute;
    inset:0;
    z-index:1;
}

.hero-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center;
}

/*==============================================================
OVERLAY
==============================================================*/

.hero-overlay{
    position:absolute;
    inset:0;
    z-index:2;
    background:linear-gradient(
        90deg,
        rgba(0,0,0,.75) 0%,
        rgba(0,0,0,.45) 45%,
        rgba(0,0,0,.15) 100%
    );
}

/*==============================================================
CONTENT
==============================================================*/

.hero .container{
    position:relative;
    z-index:5;
    height:100%;
    display:flex;
    align-items:center;
}

.hero-content{
    max-width:680px;
}

/*==============================================================
SUBTITLE
==============================================================*/

.hero-content span{
    display:inline-flex;
    align-items:center;
    gap:12px;
    color:#FFD54F;
    font-size:14px;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:2px;
    margin-bottom:20px;
}

.hero-content span::before{
    content:"";
    width:45px;
    height:2px;
    background:#FFD54F;
}

/*==============================================================
TITLE
==============================================================*/

.hero-content h1{
    color:#fff;
    font-size:64px;
    font-weight:800;
    line-height:1.1;
    margin-bottom:25px;
}

.hero-content h1 span{
    color:var(--primary);
}

/*==============================================================
DESCRIPTION
==============================================================*/

.hero-content p{
    color:rgba(255,255,255,.85);
    font-size:18px;
    line-height:1.9;
    margin-bottom:40px;
    max-width:620px;
}

/*==============================================================
BUTTONS
==============================================================*/

.hero-action{
    display:flex;
    align-items:center;
    gap:18px;
    flex-wrap:wrap;
}

.hero-action .btn{
    height:58px;
    padding:0 34px;
    border-radius:999px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    font-weight:600;
    transition:.35s;
}

.hero-action .btn-primary{
    background:var(--primary);
    color:#fff;
    border:2px solid var(--primary);
}

.hero-action .btn-primary:hover{
    background:var(--primary-dark);
    border-color:var(--primary-dark);
}

.hero-action .btn-outline-light{
    color:#fff;
    border:2px solid rgba(255,255,255,.7);
}

.hero-action .btn-outline-light:hover{
    background:#fff;
    color:#111;
}

/*==============================================================
PAGINATION
==============================================================*/

.hero .swiper-pagination{
    bottom:40px !important;
}

.hero .swiper-pagination-bullet{
    width:12px;
    height:12px;
    opacity:.5;
    background:#fff;
    transition:.3s;
}

.hero .swiper-pagination-bullet-active{
    width:36px;
    border-radius:30px;
    background:var(--primary);
    opacity:1;
}

/*==============================================================
NAVIGATION
==============================================================*/

.hero .swiper-button-prev,
.hero .swiper-button-next{
    width:56px;
    height:56px;
    border-radius:50%;
    background:rgba(255,255,255,.12);
    backdrop-filter:blur(8px);
    color:#fff;
    transition:.3s;
}

.hero .swiper-button-prev:hover,
.hero .swiper-button-next:hover{
    background:var(--primary);
}

.hero .swiper-button-prev::after,
.hero .swiper-button-next::after{
    font-size:18px;
    font-weight:700;
}

/*==============================================================
SCROLL DOWN
==============================================================*/

.scroll-down{
    position:absolute;
    left:50%;
    bottom:30px;
    transform:translateX(-50%);
    z-index:20;
    color:#fff;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:8px;
    font-size:13px;
    letter-spacing:2px;
    text-transform:uppercase;
    animation:scrollBounce 2.5s infinite;
}

.scroll-down i{
    font-size:22px;
}

@keyframes scrollBounce{

    0%,100%{
        transform:translateX(-50%) translateY(0);
    }

    50%{
        transform:translateX(-50%) translateY(8px);
    }

}

/*==============================================================
ANIMATION
==============================================================*/

.hero-content>*{
    animation:heroFade .8s ease both;
}

.hero-content>*:nth-child(2){
    animation-delay:.15s;
}

.hero-content>*:nth-child(3){
    animation-delay:.3s;
}

.hero-content>*:nth-child(4){
    animation-delay:.45s;
}

@keyframes heroFade{

    from{
        opacity:0;
        transform:translateY(35px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }

}

/*==============================================================
RESPONSIVE
==============================================================*/

@media(max-width:1200px){

    .heroSwiper{
        height:760px;
    }

    .hero-content h1{
        font-size:54px;
    }

}

@media(max-width:991px){

    .heroSwiper{
        height:680px;
    }

    .hero-content{
        text-align:center;
        margin:auto;
    }

    .hero-action{
        justify-content:center;
    }

    .hero .swiper-button-next,
    .hero .swiper-button-prev{
        display:none;
    }

}

@media(max-width:768px){

    .heroSwiper{
        height:600px;
    }

    .hero-content h1{
        font-size:38px;
    }

    .hero-content p{
        font-size:16px;
    }

    .hero-action{
        flex-direction:column;
        width:100%;
    }

    .hero-action .btn{
        width:100%;
    }

    .scroll-down{
        display:none;
    }

}

@media(max-width:576px){

    .heroSwiper{
        height:520px;
    }

    .hero-content h1{
        font-size:32px;
    }

}




/* old */

/*==============================================================
HERO
==============================================================*/

.hero{
    position:relative;
    overflow:hidden;
    background:#111;
}

.hero-slider{
    position:relative;
}

.hero-slide{
    position:relative;
    min-height:850px;
    display:flex;
    align-items:center;
    color:#fff;
}

.hero-slide>img{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:cover;
}

.hero-overlay{
    position:absolute;
    inset:0;
    background:linear-gradient(
        90deg,
        rgba(0,0,0,.75) 0%,
        rgba(0,0,0,.45) 45%,
        rgba(0,0,0,.25) 100%
    );
}

.hero-content{
    position:relative;
    z-index:2;
    max-width:680px;
}

.hero-subtitle{
    display:inline-flex;
    align-items:center;
    gap:10px;
    text-transform:uppercase;
    letter-spacing:2px;
    font-size:14px;
    font-weight:700;
    color:#ffd24d;
    margin-bottom:20px;
}

.hero-subtitle::before{
    content:"";
    width:45px;
    height:2px;
    background:#ffd24d;
}

.hero-title{
    font-size:64px;
    line-height:1.08;
    color:#fff;
    margin-bottom:25px;
}

.hero-title span{
    color:var(--primary);
}

.hero-desc{
    max-width:620px;
    font-size:18px;
    color:rgba(255,255,255,.88);
    margin-bottom:40px;
}

.hero-buttons{
    display:flex;
    gap:18px;
    flex-wrap:wrap;
}

.hero-buttons .btn-primary{
    min-width:190px;
}

.hero-buttons .btn-outline{
    min-width:190px;
    color:#fff;
    border:2px solid rgba(255,255,255,.5);
}

.hero-buttons .btn-outline:hover{
    background:#fff;
    color:#111;
}

/*==============================================================
HERO FEATURES
==============================================================*/

.hero-features{
    display:flex;
    flex-wrap:wrap;
    gap:18px;
    margin-top:55px;
}

.hero-feature{
    display:flex;
    align-items:center;
    gap:14px;
    padding:18px 22px;
    background:rgba(255,255,255,.08);
    backdrop-filter:blur(10px);
    border-radius:16px;
}

.hero-feature-icon{
    width:56px;
    height:56px;
    border-radius:50%;
    background:rgba(255,255,255,.12);
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:24px;
    color:#ffd24d;
}

.hero-feature h5{
    color:#fff;
    margin-bottom:5px;
    font-size:16px;
}

.hero-feature p{
    margin:0;
    color:rgba(255,255,255,.7);
    font-size:14px;
}

/*==============================================================
HERO STATS
==============================================================*/

.hero-stats{
    position:absolute;
    bottom:0;
    left:0;
    width:100%;
    z-index:3;
}

.hero-stats-wrapper{
    background:#fff;
    border-radius:30px 30px 0 0;
    padding:35px;
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:30px;
    box-shadow:0 -12px 40px rgba(0,0,0,.08);
}

.hero-stat{
    text-align:center;
}

.hero-stat h2{
    color:var(--primary);
    font-size:46px;
    margin-bottom:8px;
}

.hero-stat p{
    color:#666;
    margin:0;
}

/*==============================================================
SWIPER NAVIGATION
==============================================================*/

.hero .swiper-button-next,
.hero .swiper-button-prev{
    width:60px;
    height:60px;
    border-radius:50%;
    background:rgba(255,255,255,.12);
    backdrop-filter:blur(10px);
    color:#fff;
    transition:.3s;
}

.hero .swiper-button-next:hover,
.hero .swiper-button-prev:hover{
    background:var(--primary);
}

.hero .swiper-button-next:after,
.hero .swiper-button-prev:after{
    font-size:20px;
    font-weight:700;
}

.hero .swiper-pagination{
    bottom:135px !important;
}

.hero .swiper-pagination-bullet{
    width:12px;
    height:12px;
    background:#fff;
    opacity:.45;
}

.hero .swiper-pagination-bullet-active{
    opacity:1;
    background:var(--primary);
    width:36px;
    border-radius:20px;
}

/*==============================================================
SCROLL INDICATOR
==============================================================*/

.hero-scroll{
    position:absolute;
    left:-250px;
    bottom:40px;
    transform:none;
    z-index:4;
    display:flex;
    flex-direction:column;
    align-items:center;
    color:#fff;
    font-size:12px;
    letter-spacing:2px;
    text-transform:uppercase;
}

.hero-scroll span{
    width:2px;
    height:50px;
    background:rgba(255,255,255,.35);
    margin-top:15px;
    position:relative;
    overflow:hidden;
}

.hero-scroll span::before{
    content:"";
    position:absolute;
    left:0;
    width:100%;
    height:16px;
    background:#fff;
    animation:scrollDown 1.8s infinite;
}

@keyframes scrollDown{
    0%{
        transform:translateY(-20px);
        opacity:0;
    }
    40%{
        opacity:1;
    }
    100%{
        transform:translateY(60px);
        opacity:0;
    }
}

/*==============================================================
HERO ANIMATION
==============================================================*/

.hero-content>*{
    animation:heroFade .8s ease both;
}

.hero-content>*:nth-child(2){
    animation-delay:.15s;
}

.hero-content>*:nth-child(3){
    animation-delay:.3s;
}

.hero-content>*:nth-child(4){
    animation-delay:.45s;
}

.hero-content>*:nth-child(5){
    animation-delay:.6s;
}

@keyframes heroFade{
    from{
        opacity:0;
        transform:translateY(35px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

/*==============================================================
HERO RESPONSIVE
==============================================================*/

@media(max-width:991px){

    .hero-slide{
        min-height:720px;
    }

    .hero-title{
        font-size:48px;
    }

    .hero-stats{
        position:relative;
        margin-top:40px;
    }

    .hero-stats-wrapper{
        grid-template-columns:repeat(2,1fr);
        border-radius:25px;
    }

}

@media(max-width:768px){

    .hero-slide{
        min-height:650px;
    }

    .hero-title{
        font-size:38px;
    }

    .hero-desc{
        font-size:16px;
    }

    .hero-buttons{
        flex-direction:column;
    }

    .hero-buttons a{
        width:100%;
    }

    .hero-feature{
        width:100%;
    }

    .hero-stats-wrapper{
        grid-template-columns:1fr;
        gap:20px;
    }

    .hero .swiper-button-next,
    .hero .swiper-button-prev{
        display:none;
    }

}

/*==============================================================
HERO SWIPER
==============================================================*/

.heroSwiper{
    width:100%;
    height:100vh;
}

.heroSwiper .swiper-slide{
    position:relative;
    width:100%;
    height:100vh;
    overflow:hidden;
}

.hero-image{
    position:absolute;
    inset:0;
}

.hero-image img{
    width:100%;
    height:100%;
    object-fit:cover;
}




/*==============================================================
HERO ACTION
==============================================================*/
.hero-action{
    display:flex;
    align-items:center;
    gap:18px;
    margin-top:40px;
    flex-wrap:wrap;
}

.hero-action .btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    height:58px;
    padding:0 34px;
    border-radius:999px;
    font-size:16px;
    font-weight:600;
    transition:.35s;
}

.hero-action .btn-primary{
    background:#d71920;
    color:#fff;
    border:2px solid #d71920;
}

.hero-action .btn-primary:hover{
    background:#b50f16;
    border-color:#b50f16;
}

.hero-action .btn-outline-light{
    background:transparent;
    color:#fff;
    border:2px solid rgba(255,255,255,.75);
}

.hero-action .btn-outline-light:hover{
    background:#fff;
    color:#111;
}

@media (max-width:768px){

    .hero-action{
        flex-direction:column;
        align-items:flex-start;
        width:100%;
    }

    .hero-action .btn{
        width:100%;
    }

}


