/* =========================================================
   FLAVOUR SECTION
========================================================= */

.flavour-section {
    position: relative;

    padding: 60px 0;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 10% 20%,
            rgba(210,154,53,0.10),
            transparent 30%
        ),
        #faf6ee;
}


.flavour-container {
    width: min(1180px, 92%);
    margin: auto;
}


/* =========================================================
   HEADING
========================================================= */

.flavour-heading {
    max-width: 700px;

    margin: 0 auto 55px;

    text-align: center;
}


.flavour-heading span {
    display: block;

    margin-bottom: 12px;

    color: #b27a20;

    font-family: "Poppins", sans-serif;

    font-size: 12px;

    font-weight: 600;

    letter-spacing: 0.18em;

    text-transform: uppercase;
}


.flavour-heading h2 {
    margin: 0 0 14px;

    color: #4a210d;

    font-family: "Poppins", sans-serif;

    font-size: 42px;

    font-weight: 700;

    line-height: 1.15;
}


.flavour-heading p {
    margin: 0;

    color: #765a45;

    font-family: "Poppins", sans-serif;

    font-size: 14px;

    line-height: 1.8;
}


/* =========================================================
   TWO CARDS
========================================================= */

.flavour-grid {

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 28px;
}


/* =========================================================
   CARD
========================================================= */

.flavour-card {

    position: relative;

    display: grid;

    grid-template-columns: 1fr 1fr;

    min-height: 200px;

    overflow: hidden;

    border-radius: 28px;

    background: #fff;

    box-shadow:
        0 15px 45px
        rgba(68, 34, 10, 0.09);

    transform-style: preserve-3d;

    transition:
        transform 0.55s cubic-bezier(.22,1,.36,1),
        box-shadow 0.55s ease;
}


.flavour-card:hover {

    transform:
        translateY(-10px)
        perspective(1000px)
        rotateX(1deg)
        rotateY(-1deg);

    box-shadow:
        0 30px 70px
        rgba(68, 34, 10, 0.18);
}


/* =========================================================
   CONTENT HALF
========================================================= */

.flavour-content {

    position: relative;

    z-index: 5;

    display: flex;

    flex-direction: column;

    align-items: flex-start;

    padding: 38px 25px 35px 34px;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #fffaf1
        );
}


/* =========================================================
   TITLE
========================================================= */

.flavour-title {

    display: flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 18px;
}


.flavour-icon {

    flex: 0 0 46px;

    width: 46px;
    height: 46px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background: #f3dfb8;

    color: #8c2030;

    font-size: 18px;

    box-shadow:
        0 8px 18px
        rgba(140,32,48,0.10);

    transition:
        transform .45s ease,
        background .45s ease;
}


.flavour-card:hover .flavour-icon {

    transform:
        translateZ(25px)
        rotate(-8deg)
        scale(1.08);

    background: #8c2030;

    color: #fff;
}


.flavour-title h3 {

    margin: 0;

    color: #4a210d;

    font-family: "Poppins", sans-serif;

    font-size: 22px;

    font-weight: 600;

    line-height: 1.2;
}


/* =========================================================
   DESCRIPTION
========================================================= */

.flavour-desc {

    max-width: 255px;

    margin: 0 0 22px;

    color: #765a45;

    font-family: "Poppins", sans-serif;

    font-size: 12px;

    line-height: 1.75;
}


/* =========================================================
   PRODUCT CHIPS
========================================================= */

.flavour-products {

    display: flex;

    flex-wrap: wrap;

    gap: 7px;

    margin-bottom: 25px;
}


.flavour-products span {

    padding: 6px 10px;

    border: 1px solid #ead8b8;

    border-radius: 50px;

    background: rgba(255,255,255,0.8);

    color: #6e4b36;

    font-family: "Poppins", sans-serif;

    font-size: 9px;

    line-height: 1;

    transition:
        transform .3s ease,
        background .3s ease,
        border-color .3s ease;
}


.flavour-products span:hover {

    transform:
        translateY(-3px);

    border-color: #c88918;

    background: #fff1d2;
}


/* =========================================================
   BUTTON
========================================================= */

.flavour-btn {

    display: inline-flex;

    align-items: center;

    gap: 10px;

    margin-top: auto;

    color: #8c2030;

    font-family: "Poppins", sans-serif;

    font-size: 10px;

    font-weight: 600;

    text-decoration: none;
}


.flavour-btn i {

    width: 28px;
    height: 28px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #8c2030;

    color: #fff;

    transition:
        transform .35s ease,
        background .35s ease;
}


.flavour-btn:hover i {

    transform:
        translateX(5px);

    background: #c88918;
}


/* =========================================================
   IMAGE HALF
========================================================= */

.flavour-image {

    position: relative;

    min-width: 0;

    overflow: hidden;

    display: flex;

    align-items: center;

    justify-content: center;

    background-size: cover;

    background-position: center;

    transform-style: preserve-3d;
}


/* EVERYDAY IMAGE */

.flavour-everyday .flavour-image {

    background-image:
        url("/assets/images/spices/ever.jpg");
}


/* SIGNATURE IMAGE */

.flavour-signature .flavour-image {

    background-image:
        url("/assets/images/spices/signiture.jpg");
}


/* =========================================================
   IMAGE OVERLAY
========================================================= */

.image-overlay {

    position: absolute;

    inset: 0;

    z-index: 1;

    background:
        linear-gradient(
            135deg,
            rgba(74,33,13,.20),
            rgba(74,33,13,.55)
        );

    transition:
        background .5s ease;
}


.flavour-card:hover .image-overlay {

    background:
        linear-gradient(
            135deg,
            rgba(74,33,13,.10),
            rgba(74,33,13,.40)
        );
}


/* =========================================================
   3D ORBS
========================================================= */

.spice-orb {

    position: absolute;

    z-index: 2;

    border-radius: 50%;

    border: 1px solid
        rgba(255,255,255,.45);

    box-shadow:
        inset 0 0 25px
        rgba(255,255,255,.10);

    pointer-events: none;
}


.orb-one {

    width: 220px;
    height: 220px;

    animation:
        orbRotate 12s linear infinite;
}


.orb-two {

    width: 155px;
    height: 155px;

    border-style: dashed;

    animation:
        orbRotateReverse 9s linear infinite;
}


@keyframes orbRotate {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }

}


@keyframes orbRotateReverse {

    from {
        transform: rotate(360deg);
    }

    to {
        transform: rotate(0deg);
    }

}


/* =========================================================
   FLOATING 3D ICONS
========================================================= */

.floating-spice {

    position: absolute;

    z-index: 5;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 43px;
    height: 43px;

    border-radius: 50%;

    background:
        rgba(255,255,255,.88);

    color: #8c2030;

    font-size: 15px;

    box-shadow:
        0 15px 30px
        rgba(30,15,5,.25);

    backdrop-filter: blur(7px);

    transform-style: preserve-3d;

    animation:
        spiceFloat 4s ease-in-out infinite;
}


.spice-one {

    top: 18%;

    left: 12%;
}


.spice-two {

    right: 12%;

    top: 35%;

    animation-delay: 1s;
}


.spice-three {

    bottom: 16%;

    left: 25%;

    animation-delay: 2s;
}


@keyframes spiceFloat {

    0%,
    100% {

        transform:
            translateY(0)
            rotate(0deg);

    }

    50% {

        transform:
            translateY(-13px)
            rotate(8deg);

    }

}


/* =========================================================
   IMAGE CAPTION
========================================================= */

.image-caption {

    position: absolute;

    z-index: 6;

    bottom: 22px;

    right: 20px;

    padding: 8px 12px;

    border-radius: 50px;

    background:
        rgba(255,255,255,.90);

    color: #5b321f;

    font-family: "Poppins", sans-serif;

    font-size: 7px;

    font-weight: 600;

    letter-spacing: .12em;

    box-shadow:
        0 8px 20px
        rgba(0,0,0,.15);

    backdrop-filter: blur(6px);
}


/* =========================================================
   IMAGE HOVER 3D
========================================================= */

.flavour-card:hover .flavour-image {

    transform:
        translateZ(15px);
}


.flavour-card:hover .spice-one {

    transform:
        translateZ(35px)
        translateY(-10px);
}


.flavour-card:hover .spice-two {

    transform:
        translateZ(45px)
        translateY(-15px);
}


.flavour-card:hover .spice-three {

    transform:
        translateZ(30px)
        translateY(-8px);
}


/* =========================================================
   TABLET
========================================================= */
@media (max-width: 950px) {

   

    .flavour-card {

        min-height: 180px;

    }

}

@media (max-width: 768px) {

    .flavour-grid {

        grid-template-columns: 1fr;

    }

    .flavour-card {

        min-height: 150px;

    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .flavour-section {

        padding: 65px 0;

    }

    .flavour-heading {

        margin-bottom: 35px;

    }

    .flavour-heading h2 {

        font-size: 32px;

    }

    .flavour-heading p {

        font-size: 14px;

    }

    .flavour-grid {

        gap: 20px;

    }

    .flavour-card {
  
        grid-template-columns: 1fr;

        min-height: auto;

    }

    .flavour-content {

        min-height: 360px;

        padding: 28px 22px;

    }

    .flavour-image {

        min-height: 250px;

    }

    .flavour-title h3 {

        font-size: 21px;

    }

    .flavour-desc {

        max-width: 100%;

        font-size: 11px;

    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 400px) {

    .flavour-title {

        gap: 9px;

    }

    .flavour-icon {

        width: 40px;
        height: 40px;

        flex-basis: 40px;

    }

    .flavour-title h3 {

        font-size: 19px;

    }

    .flavour-products span {

        font-size: 8px;

    }

}