/* ==========================================================
PL-AUTO Piotr Lekowski
========================================================== */


/* ==========================================================
   RESET
========================================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{

    font-family:"Montserrat",sans-serif;

    background:#111;

    color:#ffffff;

    line-height:1.7;

    overflow-x:hidden;

}

img{

    max-width:100%;

    display:block;

}

a{

    text-decoration:none;

}

.container{

    width:min(1200px,92%);

    margin:auto;

}


/* ==========================================================
   PRELOADER
========================================================== */

#preloader{

    position:fixed;

    inset:0;

    background:#0d0d0d;

    display:flex;

    justify-content:center;

    align-items:center;

    flex-direction:column;

    z-index:999999;

}

.loader-logo{

    width:260px;

    max-width:80%;

    margin-bottom:35px;

}

.tool{

    font-size:62px;

    color:#d51d29;

    animation:spin 1.1s linear infinite;

}

.loader-text{

    margin-top:20px;

    color:#b8b8b8;

    font-size:15px;

    letter-spacing:3px;

    text-transform:uppercase;

}

.loader-bar{

    width:230px;

    height:4px;

    background:#2a2a2a;

    border-radius:20px;

    overflow:hidden;

    margin-top:25px;

}

.loader-bar span{

    display:block;

    width:45%;

    height:100%;

    background:#d51d29;

    animation:loading 1.6s infinite;

}


/* ==========================================================
   ANIMATIONS
========================================================== */

@keyframes spin{

    to{

        transform:rotate(360deg);

    }

}

@keyframes loading{

    from{

        transform:translateX(-130%);

    }

    to{

        transform:translateX(330%);

    }

}


/* ==========================================================
   HEADER
========================================================== */

.header{

    position:fixed;

    top:0;

    left:0;

    width:100%;

    padding:6px 0;

    background:rgba(10,10,10,.82);

    backdrop-filter:blur(12px);

    transition:.35s;

    z-index:999;

}

.header.scrolled{

    background:#090909;

    box-shadow:0 12px 30px rgba(0,0,0,.35);

}


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

.nav{

    display:flex;

    align-items:center;

    justify-content:space-between;

    gap:40px;

    min-height:120px;

}


/* ==========================================================
   LOGO
========================================================== */

.logo{

    display:flex;

    align-items:center;

}

.logo img{

    height:110px;

    width:auto;

    transition:.35s;

}

.logo img:hover{

    transform:scale(1.03);

}


/* ==========================================================
   MENU
========================================================== */

.menu{

    display:flex;

    align-items:center;

    gap:35px;

    margin-left:auto;

}

.menu a{

    position:relative;

    color:#ffffff;

    font-size:17px;

    font-weight:600;

    letter-spacing:.3px;

    transition:.3s;

}

.menu a::after{

    content:"";

    position:absolute;

    left:0;

    bottom:-8px;

    width:0;

    height:2px;

    background:#d51d29;

    transition:.35s;

}

.menu a:hover{

    color:#d51d29;

}

.menu a:hover::after{

    width:100%;

}


/* ==========================================================
   PHONE
========================================================== */

.phone{

    display:flex;

    align-items:center;

    gap:15px;

    white-space:nowrap;

    font-size:17px;

    font-weight:600;

}

.phone i{

    /*color:#d51d29;*/
    color:#fff;

    margin-right:8px;

    font-size:16px;

}

.phone a{

    display:flex;

    align-items:center;

    color:#fff;

    text-decoration:none;

    transition:.3s;

}

.phone a:visited{

    color:#fff;

}

.phone a:hover{

    color:#d51d29;

}

.phone a:hover i{

    color:#fff;

}

.phone span{

    color:#666;

}


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

.hero{

    height:100vh;

    background:url("../img/hero.jpg") center center / cover fixed;

    position:relative;

}

.hero::before{

    content:"";

    position:absolute;

    inset:0;

    background:linear-gradient(
        rgba(0,0,0,.45),
        rgba(0,0,0,.72)
    );

}

.hero-overlay{

    position:relative;

    z-index:2;

    height:100%;

    display:flex;

    align-items:center;

}

.hero-box{

    max-width:720px;

}

.badge{

    display:inline-block;

    background:#d51d29;

    padding:10px 22px;

    border-radius:30px;

    margin-bottom:22px;

    font-size:14px;

    font-weight:600;

    text-transform:uppercase;

    letter-spacing:1px;

}

.hero h1{

    font-size:clamp(48px,7vw,78px);

    line-height:1.05;

    margin-bottom:25px;

    font-weight:800;

}

.hero p{

    font-size:20px;

    color:#e0e0e0;

    max-width:620px;

}

.btn{

    display:inline-block;

    margin-top:35px;

    padding:16px 36px;

    border-radius:50px;

    background:#d51d29;

    color:#fff;

    font-weight:700;

    transition:.35s;

}

.btn:hover{

    background:#b41620;

    transform:translateY(-4px);

    box-shadow:0 15px 30px rgba(213,29,41,.35);

}
/* ==========================================================
   ABOUT
========================================================== */

.section{
    padding:110px 0;
}

.two{

    display:grid;

    grid-template-columns:1.1fr 1fr;

    gap:70px;

    align-items:center;

}

.two img{

    width:100%;

    border-radius:22px;

    box-shadow:0 15px 40px rgba(0,0,0,.35);

    transition:.4s;

}

.two img:hover{

    transform:scale(1.02);

}

.two h2{

    font-size:42px;

    margin-bottom:25px;

    position:relative;

}

.two h2::after{

    content:"";

    width:90px;

    height:4px;

    background:#d51d29;

    display:block;

    margin-top:15px;

    border-radius:10px;

}

.two p{

    color:#cfcfcf;

    margin-bottom:18px;

    font-size:17px;

}
.two a{

color:#d51d29;

text-decoration:none;

transition:.3s;

}

.two a:hover{

color:#fff;

}

.check{

    list-style:none;

    margin-top:25px;

}

.check li{

    padding:10px 0;

    color:#ddd;

}

.check li::before{

    content:"✔";

    color:#d51d29;

    margin-right:12px;

    font-weight:bold;

}


/* ==========================================================
   SERVICES
========================================================== */

.dark{

    background:#181818;

}

.center{

    text-align:center;

    margin-bottom:60px;

}

.center h2{

    font-size:44px;

    margin-bottom:18px;

}

.center p{

    color:#bdbdbd;

    max-width:700px;

    margin:auto;

}

.cards{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));

    gap:30px;

}

.card{

    background:#202020;

    border-radius:22px;

    overflow:hidden;

    transition:.35s;

    box-shadow:0 8px 20px rgba(0,0,0,.25);

}

.card img{

    width:100%;

    height:240px;

    object-fit:cover;

    transition:.45s;

}

.card:hover img{

    transform:scale(1.08);

}

.card:hover{

    transform:translateY(-10px);

    box-shadow:0 20px 45px rgba(0,0,0,.45);

}

.card h3{

    padding:25px 25px 10px;

    font-size:24px;

}

.card p{

    padding:0 25px 25px;

    color:#c8c8c8;

}


/* ==========================================================
   WHY US
========================================================== */

.why{

    background:#111;

    padding:110px 0;

}

.why-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));

    gap:30px;

}

.why-box{

    background:#1c1c1c;

    padding:40px 30px;

    border-radius:20px;

    transition:.35s;

    border-top:4px solid transparent;

}

.why-box:hover{

    border-color:#d51d29;

    transform:translateY(-10px);

    box-shadow:0 15px 40px rgba(0,0,0,.35);

}

.icon-circle{

    width:75px;

    height:75px;

    border-radius:50%;

    display:flex;

    align-items:center;

    justify-content:center;

    background:#d51d29;

    font-size:34px;

    margin-bottom:25px;

}

.why-box h3{

    margin-bottom:15px;

}

.why-box p{

    color:#bdbdbd;

}


/* ==========================================================
   TESTIMONIALS
========================================================== */

.testimonials{

    background:#181818;

}

.testimonial-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));

    gap:30px;

}

.testimonial{

    background:#202020;

    border-radius:20px;

    padding:35px;

    border-left:5px solid #d51d29;

    transition:.35s;

}

.testimonial:hover{

    transform:translateY(-8px);

}

.testimonial p{

    color:#d7d7d7;

    margin-bottom:25px;

    font-style:italic;

    line-height:1.8;

}

.testimonial strong{

    color:#fff;

}
/* ==========================================================
   GALLERY
========================================================== */

.home-gallery{

    background:#111;

    padding:110px 0;

}

/*.gallery-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));

    gap:25px;

}*/

.gallery-grid{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:25px;

}



.gallery-grid a{

    position:relative;

    overflow:hidden;

    border-radius:22px;

    display:block;

    background:#000;

}

.gallery-grid img{

    width:100%;

    height:280px;

    object-fit:cover;

    transition:.45s;

}

.gallery-grid a:hover img{

    transform:scale(1.08);

    opacity:.78;

}

.gallery-grid a::before{

    content:"🔍";

    position:absolute;

    inset:0;

    display:flex;

    justify-content:center;

    align-items:center;

    font-size:42px;

    color:#fff;

    opacity:0;

    transition:.35s;

    background:rgba(0,0,0,.35);

    z-index:5;

}

.gallery-grid a:hover::before{

    opacity:1;

}


/* ==========================================================
   CTA
========================================================== */

.cta{

    position:relative;

    padding:130px 20px;

    text-align:center;

    background:url("../img/banner.jpg") center center / cover fixed;

}

.cta::before{

    content:"";

    position:absolute;

    inset:0;

    background:rgba(0,0,0,.72);

}

.cta .container{

    position:relative;

    z-index:2;

}

.cta h2{

    font-size:48px;

    margin-bottom:20px;

}

.cta p{

    color:#d7d7d7;

    max-width:700px;

    margin:0 auto;

    font-size:19px;

}

.cta .btn{

    margin-top:35px;

}
.cta-small{
    display:inline-block;
    color:#d51d29;
    font-size:14px;
    font-weight:700;
    letter-spacing:3px;
    text-transform:uppercase;
    margin-bottom:18px;
}


/* ==========================================================
   FOOTER
========================================================== */

.footer{

    background:#0c0c0c;

    padding:70px 0 30px;

    border-top:1px solid #222;

}

.footer-grid{

    display:grid;

    grid-template-columns:2fr 1fr 1fr;

    gap:40px;

    margin-bottom:50px;

}

.footer h3{

    margin-bottom:20px;

    color:#fff;

}

.footer p{

    color:#bcbcbc;

    margin-bottom:10px;

}

.footer a{

    color:#d8d8d8;

    text-decoration:none;

    display:block;

    margin-bottom:10px;

    transition:.3s;

}

.footer a:hover{

    color:#d51d29;

}

.footer-bottom{

    border-top:1px solid #222;

    padding-top:25px;

    text-align:center;

    color:#888;

    font-size:14px;

}


/* ==========================================================
   BACK TO TOP
========================================================== */

#topBtn{

    position:fixed;

    right:25px;

    bottom:25px;

    width:58px;

    height:58px;

    border:none;

    border-radius:50%;

    display:none;

    justify-content:center;

    align-items:center;

    background:#d51d29;

    color:#fff;

    cursor:pointer;

    font-size:22px;

    box-shadow:0 10px 25px rgba(0,0,0,.35);

    transition:.35s;

    z-index:9999;

}

#topBtn:hover{

    transform:translateY(-6px);

    background:#b41620;

}


/* ==========================================================
   SCROLLBAR
========================================================== */

::-webkit-scrollbar{

    width:11px;

}

::-webkit-scrollbar-track{

    background:#111;

}

::-webkit-scrollbar-thumb{

    background:#d51d29;

    border-radius:30px;

}

::-webkit-scrollbar-thumb:hover{

    background:#b41620;

}


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

@media(max-width:1000px){

    .two{

        grid-template-columns:1fr;

        gap:40px;

    }

    .footer-grid{

        grid-template-columns:1fr;

    }

}

@media(max-width:900px){

.gallery-grid{

    grid-template-columns:repeat(2,1fr);

} 
    
.nav{

    flex-direction:column;

    justify-content:center;

    align-items:center;

    gap:15px;

    padding:15px 0;

}

.logo img{

    height:90px;

}

.menu{

    display:flex;

    flex-wrap:wrap;

    justify-content:center;

    gap:20px;

    margin:0;

}

.phone{

    display:flex;

    justify-content:center;

    align-items:center;

    flex-wrap:wrap;

    width:100%;

    gap:10px;

    margin-top:10px;

}

}

@media(max-width:768px){

    .hero{

        background-attachment:scroll;

    }

    .hero h1{

        font-size:42px;

    }

    .hero p{

        font-size:17px;

    }

    .section{

        padding:80px 0;

    }

    .cards{

        grid-template-columns:1fr;

    }

    .gallery-grid{

        grid-template-columns:1fr;

    }

    .cta{

        background-attachment:scroll;

        padding:90px 20px;

    }

    .cta h2{

        font-size:36px;

    }

}

@media(max-width:480px){

    .logo img{

        height:85px;

    }

    .menu{

        gap:15px;

    }

    .menu a{

        font-size:15px;

    }

    .hero h1{

        font-size:34px;

    }

    .btn{

        width:100%;

        text-align:center;

    }

    #topBtn{

        width:50px;

        height:50px;

        right:15px;

        bottom:15px;

    }

}
/* ==========================================================
   ANIMACJE
========================================================== */

.card,
.why-box,
.testimonial,
.gallery-grid a,
.two > div{

    opacity:0;

}

.hero{

    animation:heroFade 1.2s ease;

}

@keyframes heroFade{

    from{

        opacity:0;

        transform:scale(1.03);

    }

    to{

        opacity:1;

        transform:scale(1);

    }

}
/*================ LIGHTBOX ================*/

#lightbox{

display:none;

position:fixed;

inset:0;

background:rgba(0,0,0,.96);

justify-content:center;

align-items:center;

z-index:999999;

}

#lightbox img{

max-width:92%;

max-height:88vh;

border-radius:12px;

transition:.2s;

}

#closeLightbox{

position:absolute;

top:20px;

right:30px;

font-size:48px;

color:#fff;

cursor:pointer;

user-select:none;

}

#closeLightbox:hover{

color:#d51d29;

}

#prevImage,
#nextImage{

position:absolute;

top:50%;

transform:translateY(-50%);

font-size:65px;

color:#fff;

cursor:pointer;

padding:20px;

user-select:none;

transition:.3s;

}

#prevImage:hover,
#nextImage:hover{

color:#d51d29;

}

#prevImage{

left:15px;

}

#nextImage{

right:15px;

}

#imageCounter{

position:absolute;

bottom:20px;

left:50%;

transform:translateX(-50%);

background:rgba(0,0,0,.6);

padding:8px 18px;

border-radius:30px;

color:#fff;

font-size:15px;

letter-spacing:1px;

}

@media(max-width:768px){

#prevImage,
#nextImage{

font-size:42px;

padding:10px;

}

#closeLightbox{

font-size:38px;

right:18px;

}

#imageCounter{

font-size:13px;

}

}
/* ================= SERVICES INFO ================= */

.services-info{

    margin-top:60px;
    background:#d51d29;
    color:#fff;
    padding:45px;
    border-radius:18px;
    text-align:center;
    box-shadow:0 15px 35px rgba(0,0,0,.30);

}

.services-info h3{

    font-size:32px;
    margin-bottom:20px;
    font-weight:700;

}

.services-info p{

    max-width:850px;
    margin:0 auto 30px;
    line-height:1.8;
    font-size:17px;
    color:#fff;

}

.services-info .btn{

    background:#fff;
    color:#d51d29;
    font-weight:700;

}

.services-info .btn:hover{

    background:#111;
    color:#fff;

}

@media(max-width:768px){

.services-info{

    padding:30px 20px;

}

.services-info h3{

    font-size:24px;

}

.services-info p{

    font-size:15px;

}

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

.pagination{

    display:flex;
    justify-content:center;
    align-items:center;
    gap:8px;
    flex-wrap:wrap;
    margin:60px 0;

}

.pagination a{

    min-width:44px;
    height:44px;

    display:flex;
    align-items:center;
    justify-content:center;

    padding:0 18px;

    background:#222;
    color:#fff;

    border-radius:10px;

    font-weight:600;

    transition:.25s;

}

.pagination a:hover{

    background:#d51d29;
    transform:translateY(-2px);

}

.pagination a.active{

    background:#d51d29;
    color:#fff;
    pointer-events:none;

}

.pagination .prev,
.pagination .next{

    padding:0 20px;

}

.pagination .dots{

    color:#888;
    font-size:20px;
    padding:0 5px;

}

@media(max-width:768px){

.pagination{

    gap:6px;

}

.pagination a{

    min-width:40px;
    height:40px;

    padding:0 14px;

    font-size:14px;

}

.pagination .prev,
.pagination .next{

    width:100%;
    justify-content:center;

}

}