/* =========================================
   HOME PAGE
========================================= */


/* HERO */

.hero {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 60px;

    padding: 140px 8% 80px;

    background: linear-gradient(
        135deg,
        #fff7ea,
        #fffefc
    );
}

.hero-text {
    flex: 1;
}

.hero-text h4 {
    color: var(--primary);
    letter-spacing: 2px;
    margin-bottom: 20px;
    font-size: 18px;
}

.hero-text h1 {
    font-size: 68px;
    line-height: 1.1;
    color: #222;
    margin-bottom: 25px;
}

.hero-text p {
    color: #666;
    font-size: 20px;
    line-height: 1.8;
    margin-bottom: 40px;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    width: 100%;
    max-width: 650px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}


/* STATISTICS */

.stats {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 30px;

    background: linear-gradient(
        135deg,
        #D50000,
        #FF9800
    );

    color: white;
    padding: 70px 8%;
}

.stat {
    text-align: center;
}

.stat h1 {
    font-size: 55px;
    font-weight: 800;
    margin-bottom: 10px;
}

.stat p {
    font-size: 18px;
}


/* FEATURED PRODUCTS */

.featured {
    background: #fff;
}

.products {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(300px,1fr)
    );

    gap: 35px;
    margin-top: 50px;
}

.product {
    background: white;
    border-radius: 22px;
    padding: 35px;
    text-align: center;

    transition: .35s;

    box-shadow: 0 15px 35px rgba(0,0,0,.08);
}

.product:hover {
    transform: translateY(-10px);
}

.product img {
    width: 180px;
    height: 180px;

    object-fit: contain;

    margin: auto;
    margin-bottom: 25px;
}

.product h3 {
    color: #D50000;
    font-size: 28px;
    margin-bottom: 15px;
}

.product p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 25px;
}

.product a {
    display: inline-block;

    background: #D50000;
    color: white;

    padding: 13px 28px;

    border-radius: 35px;
    transition: .3s;
}

.product a:hover {
    background: #FFC107;
    color: #111;
}


/* WHY CHOOSE US */

.why {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 70px;

    align-items: center;

    background: #fff8ef;
}

.why h2 {
    text-align: left;
}

.why p {
    text-align: left;
    margin-bottom: 30px;
}

.why ul {
    list-style: none;
}

.why li {
    margin-bottom: 18px;
    font-size: 18px;
}

.why i {
    color: #D50000;
    margin-right: 10px;
}

.why img {
    border-radius: 25px;
    box-shadow: 0 20px 50px rgba(0,0,0,.15);
}


/* HOME CUSTOMER CAROUSEL */

.customers-carousel {
    padding: 100px 8%;
    text-align: center;
    background: white;
}

.customers-carousel h2 {
    font-size: 42px;
    color: #D50000;
    margin-bottom: 15px;
}

.customers-carousel p {
    color: #666;
    margin-bottom: 60px;
}

.logo-slider {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.logo-track {
    display: flex;
    align-items: center;
    gap: 50px;

    width: max-content;

    animation: customerScroll 35s linear infinite;
}

.logo-track img {
    width: 170px;
    height: 90px;

    object-fit: contain;

    filter: grayscale(100%);
    opacity: .8;

    transition: .35s;
}

.logo-track img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

.logo-slider:hover .logo-track {
    animation-play-state: paused;
}

@keyframes customerScroll {

    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }

}


/* HOME RESPONSIVE */

@media(max-width:768px) {

    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 180px;
    }

    .hero-text h1 {
        font-size: 42px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .products {
        grid-template-columns: 1fr;
    }

}