/*==================================================
    KURUNJI MASALA
    RECIPES PAGE
==================================================*/


/*==================================================
    RECIPES HERO
==================================================*/

.recipes-hero{
    position:relative;
    padding:110px 0;
    background:
        linear-gradient(
            90deg,
            rgba(18,53,36,.68),
            rgba(18,53,36,.34)
        ),
        url("../images/recipes/recipes-banner.png")
        center/cover no-repeat;
    color:#fff;
}

.recipes-hero-content{
    max-width:800px;
}

.recipes-hero-content > span{
    display:inline-block;
    margin-bottom:18px;
    padding:8px 18px;
    border:1px solid rgba(255,255,255,.4);
    border-radius:30px;
    font-size:13px;
    font-weight:700;
    letter-spacing:1px;
}

.recipes-hero h1{
    margin:0 0 22px;
    font-size:56px;
    line-height:1.15;
}

.recipes-hero h1 strong{
    display:block;
    color:#f0c75e;
}

.recipes-hero p{
    max-width:680px;
    margin:0 0 30px;
    color:rgba(255,255,255,.9);
    font-size:17px;
    line-height:1.85;
}


/*==================================================
    BREADCRUMB
==================================================*/

.recipes-breadcrumb{
    display:flex;
    align-items:center;
    gap:12px;
    font-size:14px;
}

.recipes-breadcrumb a{
    color:#fff;
    text-decoration:none;
}

.recipes-breadcrumb a:hover{
    color:#f0c75e;
}

.recipes-breadcrumb i{
    font-size:11px;
    opacity:.7;
}

.recipes-breadcrumb span{
    color:#f0c75e;
}


/*==================================================
    INTRO
==================================================*/

.recipes-intro{
    padding:90px 0 45px;
    background:#fff;
}

.recipes-intro .section-header{
    max-width:780px;
    margin:0 auto;
    text-align:center;
}


/*==================================================
    SECTION HEADER
==================================================*/

.recipes-section .section-header > span,
.recipes-intro .section-header > span{
    display:inline-block;
    margin-bottom:15px;
    padding:8px 18px;
    border-radius:30px;
    background:#f5ead0;
    color:#8a6500;
    font-size:13px;
    font-weight:700;
    letter-spacing:1px;
}

.recipes-intro .section-header h2{
    margin:0 0 18px;
    color:#222;
    font-size:42px;
    line-height:1.2;
}

.recipes-intro .section-header p{
    margin:0;
    color:#666;
    font-size:16px;
    line-height:1.8;
}


/*==================================================
    RECIPES SECTION
==================================================*/

.recipes-section{
    padding:45px 0 100px;
    background:#fff;
}


/*==================================================
    FILTERS
==================================================*/

.recipe-filters{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
    margin-bottom:45px;
}

.recipe-filter{
    padding:10px 22px;
    border:1px solid #dfe7e1;
    border-radius:30px;
    background:#fff;
    color:#555;
    font-family:inherit;
    font-size:13px;
    font-weight:600;
    cursor:pointer;
    transition:.3s ease;
}

.recipe-filter:hover{
    border-color:var(--primary);
    color:var(--primary);
}

.recipe-filter.active{
    background:var(--primary);
    border-color:var(--primary);
    color:#fff;
}


/*==================================================
    RECIPE GRID
==================================================*/

.recipe-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:28px;
}


/*==================================================
    RECIPE CARD
==================================================*/

.recipe-card{
    overflow:hidden;
    background:#fff;
    border:1px solid #e4ebe5;
    border-radius:22px;
    box-shadow:0 10px 30px rgba(0,0,0,.05);
    transition:
        transform .35s ease,
        box-shadow .35s ease;
}

.recipe-card:hover{
    transform:translateY(-8px);
    box-shadow:0 22px 45px rgba(0,0,0,.10);
}


/*==================================================
    RECIPE IMAGE
==================================================*/

.recipe-image{
    position:relative;
    height:250px;
    overflow:hidden;
    background:#f8faf7;
}

.recipe-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    transition:transform .5s ease;
}

.recipe-card:hover .recipe-image img{
    transform:scale(1.05);
}

.recipe-category{
    position:absolute;
    top:18px;
    left:18px;
    padding:7px 13px;
    border-radius:20px;
    background:#fff;
    color:var(--primary);
    font-size:10px;
    font-weight:700;
    letter-spacing:.8px;
    box-shadow:0 5px 15px rgba(0,0,0,.10);
}


/*==================================================
    RECIPE CONTENT
==================================================*/

.recipe-content{
    padding:25px;
}

.recipe-content h3{
    margin:0 0 10px;
    color:#222;
    font-size:21px;
    line-height:1.35;
}

.recipe-content > p{
    margin:0 0 20px;
    color:#666;
    font-size:14px;
    line-height:1.75;
}


/*==================================================
    RECIPE META
==================================================*/

.recipe-meta{
    display:flex;
    align-items:center;
    gap:20px;
    margin-bottom:20px;
    padding-top:15px;
    border-top:1px solid #edf0ed;
}

.recipe-meta span{
    display:flex;
    align-items:center;
    gap:7px;
    color:#777;
    font-size:12px;
}

.recipe-meta i{
    color:var(--primary);
}


/*==================================================
    VIEW RECIPE BUTTON
==================================================*/

.recipe-view{
    display:flex;
    align-items:center;
    justify-content:space-between;
    width:100%;
    padding:12px 15px;
    border:1px solid #dfe7e1;
    border-radius:9px;
    background:#fff;
    color:var(--primary);
    font-family:inherit;
    font-size:13px;
    font-weight:600;
    cursor:pointer;
    transition:.3s ease;
}

.recipe-view:hover{
    background:var(--primary);
    border-color:var(--primary);
    color:#fff;
}

.recipe-view i{
    transition:.3s ease;
}

.recipe-view:hover i{
    transform:translateX(4px);
}


/*==================================================
    CTA
==================================================*/

.recipes-cta{
    padding:80px 0;
    background:
        linear-gradient(
            135deg,
            #123524,
            #1f6b2d
        );
    color:#fff;
}

.recipes-cta-wrapper{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:40px;
}

.recipes-cta-wrapper > div{
    max-width:750px;
}

.recipes-cta-wrapper > div > span{
    color:#f0c75e;
    font-size:13px;
    font-weight:700;
    letter-spacing:1px;
}

.recipes-cta-wrapper h2{
    margin:12px 0 15px;
    font-size:40px;
    line-height:1.2;
}

.recipes-cta-wrapper p{
    margin:0;
    color:rgba(255,255,255,.85);
    font-size:15px;
    line-height:1.8;
}


/*==================================================
    FILTER ANIMATION
==================================================*/

.recipe-card.recipe-hidden{
    display:none;
}

.recipe-card.recipe-show{
    animation:recipeShow .45s ease forwards;
}

@keyframes recipeShow{

    from{
        opacity:0;
        transform:translateY(20px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }

}


/*==================================================
    TABLET
==================================================*/

@media(max-width:1100px){

    .recipe-grid{
        grid-template-columns:repeat(2,1fr);
    }

}

@media(max-width:992px){

    .recipes-hero{
        padding:90px 0;
    }

    .recipes-hero h1{
        font-size:46px;
    }

}


/*==================================================
    MOBILE
==================================================*/

@media(max-width:768px){

    .recipes-hero{
        padding:70px 0;
    }

    .recipes-hero-content{
        text-align:center;
        margin:0 auto;
    }

    .recipes-hero h1{
        font-size:36px;
    }

    .recipes-hero p{
        font-size:15px;
    }

    .recipes-breadcrumb{
        justify-content:center;
    }

    .recipes-intro,
    .recipes-section{
        padding-top:65px;
        padding-bottom:65px;
    }

    .recipes-intro .section-header h2{
        font-size:34px;
    }

    .recipe-grid{
        grid-template-columns:1fr;
        max-width:600px;
        margin:0 auto;
    }

    .recipe-image{
        height:270px;
    }

    .recipes-cta{
        padding:65px 0;
    }

    .recipes-cta-wrapper{
        flex-direction:column;
        text-align:center;
    }

    .recipes-cta-wrapper h2{
        font-size:32px;
    }

}


/*==================================================
    SMALL MOBILE
==================================================*/

@media(max-width:480px){

    .recipes-hero h1{
        font-size:30px;
    }

    .recipes-hero-content > span{
        font-size:11px;
    }

    .recipes-intro .section-header h2{
        font-size:29px;
    }

    .recipe-filters{
        gap:8px;
    }

    .recipe-filter{
        padding:9px 15px;
        font-size:12px;
    }

    .recipe-content{
        padding:20px;
    }

    .recipe-image{
        height:230px;
    }

    .recipes-cta-wrapper h2{
        font-size:28px;
    }

}
/*==================================================
    RECIPE SCROLL ANIMATION
==================================================*/

.recipe-animate{
    opacity:0;
    transform:translateY(25px);
    transition:
        opacity .7s ease,
        transform .7s ease;
}

.recipe-visible{
    opacity:1;
    transform:translateY(0);
}
/*==================================================
    RECIPE MODAL
==================================================*/

.recipe-modal{
    position:fixed;
    inset:0;
    z-index:9999;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:25px;
    visibility:hidden;
    opacity:0;
    pointer-events:none;
    transition:opacity .3s ease, visibility .3s ease;
}

.recipe-modal.active{
    visibility:visible;
    opacity:1;
    pointer-events:auto;
}


/*==================================================
    MODAL OVERLAY
==================================================*/

.recipe-modal-overlay{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.65);
    backdrop-filter:blur(4px);
}


/*==================================================
    MODAL BOX
==================================================*/

.recipe-modal-box{
    position:relative;
    z-index:2;
    width:100%;
    max-width:650px;
    max-height:90vh;
    overflow-y:auto;
    padding:40px;
    background:#fff;
    border-radius:24px;
    box-shadow:0 30px 80px rgba(0,0,0,.25);
    transform:translateY(25px) scale(.97);
    transition:transform .3s ease;
}

.recipe-modal.active .recipe-modal-box{
    transform:translateY(0) scale(1);
}


/*==================================================
    CLOSE BUTTON
==================================================*/

.recipe-modal-close{
    position:absolute;
    top:18px;
    right:18px;
    z-index:3;
    width:40px;
    height:40px;
    display:flex;
    align-items:center;
    justify-content:center;
    border:0;
    border-radius:50%;
    background:#f3f6f3;
    color:#444;
    font-size:17px;
    cursor:pointer;
    transition:.3s ease;
}

.recipe-modal-close:hover{
    background:var(--primary);
    color:#fff;
}


/*==================================================
    MODAL CONTENT
==================================================*/

.recipe-modal-content > span{
    display:inline-block;
    margin-bottom:12px;
    padding:7px 14px;
    border-radius:20px;
    background:#f5ead0;
    color:#8a6500;
    font-size:11px;
    font-weight:700;
    letter-spacing:1px;
}

.recipe-modal-content h2{
    margin:0 45px 18px 0;
    color:#222;
    font-size:32px;
    line-height:1.25;
}


/*==================================================
    MODAL META
==================================================*/

.recipe-modal-meta{
    display:flex;
    align-items:center;
    gap:20px;
    padding-bottom:20px;
    margin-bottom:25px;
    border-bottom:1px solid #e8ede9;
}

.recipe-modal-meta span{
    display:flex;
    align-items:center;
    gap:8px;
    color:#666;
    font-size:13px;
}

.recipe-modal-meta i{
    color:var(--primary);
}


/*==================================================
    MODAL SECTIONS
==================================================*/

.recipe-modal-section{
    margin-bottom:25px;
}

.recipe-modal-section:last-child{
    margin-bottom:0;
}

.recipe-modal-section h3{
    margin:0 0 13px;
    color:#222;
    font-size:19px;
}


/*==================================================
    INGREDIENTS
==================================================*/

.recipe-modal-section ul{
    margin:0;
    padding:0;
    list-style:none;
}

.recipe-modal-section li{
    position:relative;
    padding:9px 0 9px 25px;
    color:#666;
    font-size:14px;
    line-height:1.6;
    border-bottom:1px solid #f0f2f0;
}

.recipe-modal-section li:last-child{
    border-bottom:0;
}

.recipe-modal-section li::before{
    content:"";
    position:absolute;
    left:3px;
    top:17px;
    width:7px;
    height:7px;
    border-radius:50%;
    background:var(--primary);
}


/*==================================================
    PREPARATION
==================================================*/

#modalPreparation p{
    margin:0;
    color:#666;
    font-size:14px;
    line-height:1.85;
}


/*==================================================
    BODY LOCK
==================================================*/

body.recipe-modal-open{
    overflow:hidden;
}


/*==================================================
    MOBILE
==================================================*/

@media(max-width:768px){

    .recipe-modal{
        padding:15px;
    }

    .recipe-modal-box{
        max-height:92vh;
        padding:30px 22px;
        border-radius:20px;
    }

    .recipe-modal-content h2{
        font-size:27px;
    }

}


/*==================================================
    SMALL MOBILE
==================================================*/

@media(max-width:480px){

    .recipe-modal-box{
        padding:28px 18px;
    }

    .recipe-modal-close{
        top:13px;
        right:13px;
        width:36px;
        height:36px;
    }

    .recipe-modal-content h2{
        font-size:24px;
        padding-right:25px;
    }

    .recipe-modal-meta{
        gap:14px;
        flex-wrap:wrap;
    }

    .recipe-modal-section h3{
        font-size:17px;
    }

    .recipe-modal-section li,
    #modalPreparation p{
        font-size:13px;
    }

}

/*==================================================
    HERO IMAGE CLARITY FIX
==================================================*/

.recipes-hero h1{
    color:#fff;
    text-shadow:0 2px 5px rgba(0,0,0,.18);
}

.recipes-hero p{
    color:#fff;
    text-shadow:0 1px 3px rgba(0,0,0,.25);
}