/*start global styles*/

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

html {
    scroll-behavior: smooth;
}

body {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;

    background-color: #2f251d;
    color: #2f251d;

    font-family: "DM Sans", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;

    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

button {
    border: none;
    cursor: pointer;
}

img {
    max-width: 100%;
    display: block;
}

/*end global styles*/


/*start header*/

header {
    width: 100%;
    height: 80px;
}

nav {
    width: 100%;
    height: 80px;

    padding: 0 7%;

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

    position: relative;
    z-index: 5;

    color: #ffffff;
}

.logo a,
.footer-logo {
    font-family: Georgia, serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;
}

nav ul {
    display: flex;
    align-items: center;

    gap: 35px;

    list-style: none;
}

nav ul a {
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;

    transition: 0.3s ease;
}

nav ul a:hover {
    opacity: 0.7;
}

.search-btn {
    width: 24px;
    height: 24px;

    background-color: transparent;

    position: relative;
}

.search-btn span {
    display: block;

    width: 16px;
    height: 16px;

    border: 2px solid #ffffff;
    border-radius: 50%;
}

.search-btn span::after {
    content: "";

    width: 8px;
    height: 2px;

    background-color: #ffffff;

    position: absolute;
    right: 0;
    bottom: 2px;

    transform: rotate(45deg);
}
.change-image {
    position: absolute;
    z-index: 10;
    width: 100%;
    padding: 8px 12px;
    background-color: #4c453f;
    color: #2f251d;
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;}
 /*end header*/


/*start hero*/

.hero {
    width: 100%;
    height: 520px;

    margin-top: 3rem;

    position: relative;

    display: flex;
    align-items: center;

    overflow: hidden;

    background:
        linear-gradient(90deg,
            rgba(8, 15, 20, 0.58),
            rgba(8, 15, 20, 0.08)),
        url("assets/images/hero-background.avif") center / cover no-repeat;
}

.hero-overlay {
    position: absolute;

    width: 100%;
    height: 100%;

    top: 0;
    left: 0;

    background:
        linear-gradient(
            90deg,
            rgba(4, 12, 17, 0.4),
            transparent
        );
}

.hero-text {
    position: relative;
    z-index: 2;

    margin-left: 8%;

    max-width: 550px;

    color: #ffffff;
}

.eyebrow {
    margin-bottom: 10px;

    font-size: 20px;
    font-weight: 600;
}

.hero h1 {
    margin-bottom: 25px;

    font-size: 60px;
    line-height: 1.15;
    font-weight: 700;
}

.hero-btn {
    min-width: 140px;

    padding: 13px 25px;

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

    border-radius: 30px;

    background-color: #ffffff;
    color: #2f251d;

    font-size: 14px;
    font-weight: 700;

    transition: 0.3s ease;
}

.hero-btn:hover {
    transform: translateY(-2px);

    background-color: #f1eee8;
}

/*end hero*/


/*start categories*/

.categories {
    width: 100%;

    padding: 35px 7%;

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

    gap: 80px;

    background-color: #e8dfcd;
}

.category {
    min-width: 80px;

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 8px;

    color: #655d54;

    cursor: pointer;

    transition: 0.3s ease;
}

.category:hover {
    transform: translateY(-3px);
}

.category-icon {
    height: 45px;

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

    font-size: 34px;

    filter: grayscale(1);
}

.category span {
    font-size: 14px;
    font-weight: 600;
}

/*end categories*/


/*start products section*/

.products-section {
    width: 100%;

    padding: 65px 7% 70px;

    position: relative;

    background-color: #f7f6f3;
}

.dessert-section {
    padding-top: 20px;
}

.section-title {
    text-align: center;

    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 32px;
    font-weight: 700;
}

.products-row {
    max-width: 1400px;

    margin: 0 auto;

    display: grid;

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

    gap: 25px;
}

.product-card {
    min-width: 0;

    padding: 10px;

    background-color: #f5f3ef;

    border: 1px solid #e5e0d8;
    border-radius: 12px;

    box-shadow: 0 5px 20px rgba(47, 37, 29, 0.06);

    transition: 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);

    box-shadow: 0 12px 30px rgba(47, 37, 29, 0.12);
}

.product-image {
    height: 300px;

    position: relative;

    overflow: hidden;

    border-radius: 8px;
}

.product-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: 0.4s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.04);
}

.heart {
    width: 36px;
    height: 36px;

    position: absolute;

    top: 12px;
    right: 12px;

    border-radius: 50%;

    background-color: rgba(30, 24, 20, 0.3);

    color: #ffffff;

    font-size: 20px;

    transition: 0.3s ease;
}

.heart:hover {
    background-color: rgba(30, 24, 20, 0.6);
}

.heart.liked {
    color: #f5a100;
}

.product-card h3 {
    margin: 15px 5px 5px;

    font-size: 18px;
    line-height: 1.3;
}

.product-card p {
    min-height: 42px;

    margin: 0 5px;

    color: #817a73;

    font-size: 14px;
    line-height: 1.5;
}

.product-bottom {
    margin: 15px 5px 5px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-bottom strong {
    font-size: 18px;
}

.product-bottom button {
    padding: 9px 14px;

    border-radius: 6px;

    background-color: #2f251d;
    color: #ffffff;

    font-size: 13px;

    transition: 0.3s ease;
}

.product-bottom button:hover {
    background-color: #493a2e;
}

.slider-controls {
    position: absolute;

    top: 50%;
    left: 3%;
    right: 3%;

    display: flex;
    justify-content: space-between;

    transform: translateY(-50%);
}

.arrow {
    width: 42px;
    height: 42px;

    border-radius: 50%;

    background-color: #ebe8e2;
    color: #8c857d;

    font-size: 28px;

    transition: 0.3s ease;
}

.arrow:hover {
    background-color: #2f251d;
    color: #ffffff;
}

/*end products section*/


/*start coffee beans cta*/

.beans-cta {
    width: 100%;
    height: 230px;

    position: relative;

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

    overflow: hidden;

    background-color: #e8dfcd;
}

.beans {
    width: 300px;
    height: 240px;

    position: absolute;

    object-fit: cover;

    mix-blend-mode: multiply;
}

.beans-left {
    left: 0;

    object-position: right center;
}

.beans-right {
    right: 0;

    object-position: left center;
}

.beans-content {
    position: relative;
    z-index: 2;

    text-align: center;
}

.beans-content h2 {
    margin-bottom: 25px;

    font-size: 42px;
    line-height: 1.15;
}

.beans-content a {
    display: inline-block;

    padding: 12px 25px;

    border-radius: 25px;

    background-color: #2f251d;
    color: #ffffff;

    font-size: 14px;

    transition: 0.3s ease;
}

.beans-content a:hover {
    background-color: #493a2e;

    transform: translateY(-2px);
}

/*end coffee beans cta*/


/*start testimonials*/

.testimonials {
    width: 100%;

    padding: 65px 7% 70px;

    background-color: #f7f6f3;

    text-align: center;
}

.script-title {
    margin-bottom: 5px;

    font-family: "Playfair Display", Georgia, serif;

    font-size: 24px;
    font-style: italic;
}

.testimonials > h2 {
    margin-bottom: 40px;

    font-size: 28px;
}

.reviews {
    max-width: 1300px;

    margin: 0 auto;

    display: grid;

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

    gap: 25px;
}

.review-card {
    padding: 22px;

    background-color: #f4f1eb;

    border: 1px solid #ddd8cf;
    border-radius: 8px;

    text-align: left;

    box-shadow: 0 5px 15px rgba(47, 37, 29, 0.06);

    transition: 0.3s ease;
}

.review-card:hover {
    transform: translateY(-4px);
}

.review-card.active {
    transform: translateY(-8px);
}

.review-header {
    display: grid;

    grid-template-columns: 50px 1fr auto;

    gap: 12px;

    align-items: center;
}

.avatar {
    width: 50px;
    height: 50px;

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

    border-radius: 50%;

    background-color: #8d9b9c;
    color: #ffffff;

    font-size: 14px;
    font-weight: 700;
}

.review-header h3 {
    font-size: 16px;
}

.review-header span {
    color: #777069;

    font-size: 13px;
}

.stars {
    color: #f39a00;

    font-size: 16px;
}

.review-card > p {
    margin-top: 18px;

    color: #716b64;

    font-size: 14px;
    line-height: 1.7;
}

.dots {
    margin-top: 30px;

    display: flex;
    justify-content: center;

    gap: 8px;
}

.dots span {
    width: 9px;
    height: 9px;

    border-radius: 50%;

    background-color: #c6c0b8;
}

.dots span.active {
    background-color: #2f251d;
}

/*end testimonials*/


/*start newsletter*/

.newsletter {
    width: 100%;
    height: 250px;

    position: relative;

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

    overflow: hidden;

    background-color: #e8dfcd;
}

.newsletter-content {
    position: relative;
    z-index: 2;

    padding: 0 20px;

    text-align: center;
}

.newsletter-content h2 {
    margin-bottom: 10px;

    font-size: 30px;
}

.newsletter-content p {
    margin-bottom: 20px;

    color: #817a73;

    font-size: 14px;
}

.newsletter form {
    width: 500px;
    max-width: 90%;

    display: flex;

    gap: 10px;
}

.newsletter input {
    flex: 1;

    min-width: 0;

    padding: 14px 20px;

    border: none;
    outline: none;

    border-radius: 30px;

    background-color: #ffffff;

    font-size: 14px;
}

.newsletter button {
    padding: 0 25px;

    border-radius: 30px;

    background-color: #2f251d;
    color: #ffffff;

    font-size: 14px;

    transition: 0.3s ease;
}

.newsletter button:hover {
    background-color: #493a2e;
}

.newsletter-beans {
    width: 300px;
    height: 240px;

    position: absolute;

    object-fit: cover;

    mix-blend-mode: multiply;
}

.newsletter-beans.left {
    left: -20px;
    top: -10px;

    transform: rotate(180deg);
}

.newsletter-beans.right {
    right: -20px;
    bottom: -10px;

    transform: rotate(180deg);
}

/*end newsletter*/


/*start footer*/

footer {
    width: 100%;

    padding: 55px 7%;

    display: grid;

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

    gap: 40px;

    background-color: #2f251d;
    color: #ffffff;
}

.footer-column {
    display: flex;
    flex-direction: column;

    gap: 12px;
}

.footer-column h3 {
    margin-bottom: 5px;

    font-size: 16px;
}

.footer-column a {
    color: #bcb4aa;

    font-size: 14px;

    transition: 0.3s ease;
}

.footer-column a:hover {
    color: #ffffff;
}

.social-links {
    display: flex;

    gap: 15px;
}

.social-links a {
    color: #ffffff;

    font-size: 20px;
}

/*end footer*/


/*start tablet responsive*/

@media (max-width: 1000px) {

    nav {
        padding: 0 5%;
    }

    .hero-text {
        margin-left: 6%;
    }

    .products-section,
    .testimonials {
        padding-left: 5%;
        padding-right: 5%;
    }

    .products-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-image {
        height: 300px;
    }

    .reviews {
        grid-template-columns: repeat(2, 1fr);
    }

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

}

/*end tablet*/


/*start mobile responsive*/

@media (max-width: 700px) {

    /*start header*/

    header {
        height: 65px;
    }

    nav {
        height: 65px;

        padding: 0 20px;
    }

    .logo a {
        font-size: 19px;
    }

    nav ul {
        display: none;
    }

    /*end header*/


    /*start hero*/

    .hero {
        height: 430px;
    }

    .hero-text {
        margin-left: 25px;
        margin-right: 25px;

        max-width: 100%;
    }

    .eyebrow {
        font-size: 17px;
    }

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

    .hero-btn {
        min-width: 120px;

        padding: 11px 20px;

        font-size: 13px;
    }

    /*end hero*/


    /*start categories*/

    .categories {
        padding: 25px 15px;

        gap: 25px;

        overflow-x: auto;

        justify-content: flex-start;
    }

    .category {
        min-width: 65px;
    }

    .category-icon {
        font-size: 28px;
    }

    .category span {
        font-size: 12px;
    }

    /*end categories*/


    /*start products*/

    .products-section {
        padding: 45px 20px;
    }

    .section-title {
        margin-bottom: 30px;
    }

    .section-title h2 {
        font-size: 26px;
    }

    .products-row {
        grid-template-columns: repeat(2, 1fr);

        gap: 15px;
    }

    .product-image {
        height: 220px;
    }

    .product-card {
        padding: 7px;
    }

    .product-card h3 {
        font-size: 15px;
    }

    .product-card p {
        font-size: 12px;
    }

    .product-bottom strong {
        font-size: 15px;
    }

    .product-bottom button {
        padding: 8px 10px;

        font-size: 11px;
    }

    .slider-controls {
        display: none;
    }

    /*end products*/


    /*start beans cta*/

    .beans-cta {
        height: 200px;
    }

    .beans {
        width: 220px;
        height: 180px;

        opacity: 0.45;
    }

    .beans-content {
        padding: 0 20px;
    }

    .beans-content h2 {
        font-size: 28px;
    }

    /*end beans cta*/


    /*start testimonials*/

    .testimonials {
        padding: 45px 20px;
    }

    .script-title {
        font-size: 21px;
    }

    .testimonials > h2 {
        margin-bottom: 30px;

        font-size: 25px;
    }

    .reviews {
        grid-template-columns: 1fr;

        gap: 18px;
    }

    .review-card.active {
        transform: none;
    }

    /*end testimonials*/


    /*start newsletter*/

    .newsletter {
        height: 230px;
    }

    .newsletter-content h2 {
        font-size: 25px;
    }

    .newsletter-content p {
        font-size: 13px;
    }

    .newsletter form {
        width: 100%;

        flex-direction: column;

        gap: 10px;
    }

    .newsletter input {
        height: 45px;
    }

    .newsletter button {
        height: 45px;

        padding: 0 20px;
    }

    .newsletter-beans {
        width: 200px;
        height: 170px;

        opacity: 0.35;
    }

    /*end newsletter*/


    /*start footer*/

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

        gap: 30px 20px;

        padding: 45px 25px;
    }

    .footer-logo {
        grid-column: 1 / -1;
    }

    .footer-column h3 {
        font-size: 15px;
    }

    .footer-column a {
        font-size: 13px;
    }

    /*end footer*/

}

/*end mobile responsive*/


/*start small mobile responsive*/

@media (max-width: 450px) {

    .hero {
        height: 400px;
    }

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

    .products-row {
        grid-template-columns: 1fr;
    }

    .product-image {
        height: 300px;
    }

    .products-section {
        padding-left: 15px;
        padding-right: 15px;
    }

    .categories {
        gap: 20px;
    }

    .beans-content h2 {
        font-size: 25px;
    }

    footer {
        grid-template-columns: 1fr 1fr;

        gap: 25px 15px;
    }

}

/*end small mobile responsive*/