/*==================================================
RECIPE GRID
==================================================*/

.recipes-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5rem;
}


/*==================================================
RECIPE CARD
==================================================*/

.recipe-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 20px;
    transition: transform .35s ease, box-shadow .35s ease;
}

.recipe-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, .08);
}

.recipe-card__image {
    display: block;
    overflow: hidden;
}

.recipe-card__image img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform .4s ease;
}

.recipe-card:hover .recipe-card__image img {
    transform: scale(1.05);
}

.recipe-card__content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 3rem;
}

.recipe-card__category {
    display: inline-flex;
    align-self: flex-start;
    padding: .45rem .9rem;
    margin-bottom: 1.5rem;
    background: #cdf5a2;
    border-radius: 999px;
    font-size: 1.4rem;
    font-weight: 600;
    text-transform: uppercase;
}

.recipe-card__title {
    margin: 0 0 2rem;
    font-size: 3rem;
    line-height: 1.25;
}

.recipe-card__title a {
    text-decoration: none;
    color: inherit;
}

.recipe-card__title a:hover {
    color: var(--colour-primary);
}

.recipe-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid #ececec;
    font-size: 1.6rem;
}


/*==================================================
RECIPE - SINGLE
==================================================*/


/*==================================================
RECIPE HERO
==================================================*/

.recipe-hero {
    padding: 7rem 0;
}

.recipe-hero .l-container {
    display: grid;
    grid-template-columns: 1fr 45%;
    gap: 12rem;
    align-items: center;
}

.recipe-hero h1 {
    font-size: clamp(4rem, 5vw, 6rem);
    line-height: 1.1;
}

.recipe-hero__image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 24px;
}


/*==================================================
RECIPE DETAILS
==================================================*/

.recipe-details {
    position: relative;
    margin-top: -3rem;
}


/*==================================================
RECIPE META
==================================================*/

.recipe-meta {
    display: flex;
    gap: 1.5rem;
    margin: 0 0 3rem;
    padding: 2rem;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, .06);
}

.recipe-meta > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.75rem;
    background: #f8fafb;
    border: 1px solid #edf1f4;
    border-radius: 16px;
    transition: all .25s ease;
}

.recipe-meta > div:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, .08);
}

.recipe-meta strong {
    display: block;
    margin-bottom: .75rem;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
    color: #2063c6;
}

.recipe-meta span {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.3;
    color: #222;
}


/*==================================================
RECIPE SIDEBAR
==================================================*/

.recipe-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: sticky;
    top: 2rem;
}

.recipe-sidebar-card {
    padding: 3rem;
    background: #f5f8f5;
    border: 1px solid #ececec;
    border-radius: 20px;
}

.recipe-sidebar-card__title {
    margin: 0 0 2rem;
    font-size: 2.8rem;
}


/*==================================================
RECIPE INGREDIENTS
==================================================*/

.recipe-ingredients {
    padding: 3rem;
    background: #e2f0fd;
    border: 1px solid #e5e5e5;
    border-radius: 20px;
    box-shadow: rgba(149, 157, 165, 0.2) 0 8px 24px;
}

.recipe-ingredients ul {
    padding-left: 0;
}

.recipe-ingredients__list {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.recipe-ingredients__list li {
    position: relative;
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: 1.2rem 1.5rem;
    background: #fff;
    border: 1px solid rgba(83, 126, 89, .12);
    border-radius: 12px;
    font-size: 1.8rem;
    line-height: 1.4;
}

.recipe-ingredients__list li:before {
    position: relative;
    flex: none;
    width: 22px;
    height: 22px;
    content: "";
    border: 2px solid var(--colour-primary);
    border-radius: 50%;
}

.recipe-ingredients__list strong {
    font-weight: 700;
}


/*==================================================
RECIPE TIPS
==================================================*/

.recipe-tips {
    background: #f5f8f5;
}

.recipe-tips__list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.recipe-tips__list li {
    display: flex;
    gap: 1rem;
    font-size: 1.8rem;
    line-height: 1.6;
}

.recipe-tips__list li:before {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-top: 1.2rem;
    content: "✓";
    color: #0F446C;
    font-size: 2.4rem;
    font-weight: 700;
    border-radius: 50%;
}


/*==================================================
RECIPE CONTENT
==================================================*/

.recipe-content {
    padding: 7rem 0 14rem;
}

.recipe-content ol li {
    padding: 2rem 1rem 3rem;
}

.recipe-content ol li:not(:last-child) {
    border-bottom: 1px dashed #1b466c;
}

.recipe-layout {
    display: grid;
    grid-template-columns: minmax(280px, 350px) minmax(0, 1fr);
    gap: 5rem;
    align-items: start;
    width: 100%;
}


/*==================================================
RECIPE METHOD
==================================================*/

.recipe-method {
    width: 100%;
    padding: 6rem 5rem;
    background: #ebf6ff;
    border: 1px solid #e5e5e5;
    border-radius: 20px;
    box-shadow: rgba(149, 157, 165, 0.2) 0 8px 24px;
    font-size: 2.2rem;
    line-height: 1.4;
}

.recipe-method h2,
.recipe-ingredients h2 {
    margin-top: 0;
}

.recipe-method h2 {
    margin-bottom: 0;
}

.recipe-method__step {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 0 0 35px;
    margin: 0 0 35px;
    border-bottom:1px dashed #85a7c5;
}

.recipe-method__step:first-of-type {
    margin-top: 4.5rem;
}

.recipe-method__step:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: 0;
}

.recipe-method__number {
    display: flex;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: #032945;
    border-radius: 50%;
}

.recipe-method__number span {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

.recipe-method__content {
    flex: 1;
    min-width: 0;
}

.recipe-method__content--image-text {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.recipe-method__text {
    flex: .95;
    min-width: 0;
}

.recipe-method__text p:first-child {
    margin-top: 0;
}

.recipe-method__text p:last-child {
    margin-bottom: 0;
}

.recipe-method__image {
    flex: 0 0 20%;
    max-width: 20%;
    overflow: hidden;
    box-sizing: border-box;
    border: 10px solid #fff;
    border-radius: 8px;
    box-shadow: rgba(0, 0, 0, .24) 0 3px 8px;
}

.recipe-method__image img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.recipe-method__content--text {
    width: 100%;
}

.recipe-method__content--text p:first-child {
    margin-top: 0;
}

.recipe-method__content--text p:last-child {
    margin-bottom: 0;
}


/*==================================================
RECIPE NOTES
==================================================*/

.recipe-notes {
    padding: 5rem 0;
}

.recipe-notes .l-container {
    padding: 4rem;
    background: #fff;
    border-radius: 20px;
}


/*==================================================
RESPONSIVE - TABLET / SMALL DESKTOP
==================================================*/

@media (max-width: 1100px) {

    .recipes .l-container {
        grid-template-columns: 1fr;
    }

    .recipes-sidebar {
        position: static;
    }

    .recipes-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .recipe-hero .l-container {
        gap: 6rem;
    }

    .recipe-layout {
        grid-template-columns: minmax(250px, 300px) minmax(0, 1fr);
        gap: 3rem;
    }

}


/*==================================================
RESPONSIVE - 1023PX
==================================================*/

@media (max-width: 1023px) {

    .recipe-method {
        padding: 5rem 4rem;
    }

    .recipe-method__content--image-text {
        gap: 30px;
    }

    .recipe-method__image {
        flex: 0 0 25%;
        max-width: 25%;
    }

}


/*==================================================
RESPONSIVE - 900PX
==================================================*/

@media (max-width: 900px) {

    .recipe-hero .l-container,
    .recipe-layout {
        grid-template-columns: 1fr;
    }

    .recipe-hero .l-container {
        gap: 5rem;
    }

    .recipe-meta {
        grid-template-columns: repeat(2, 1fr);
    }

    .recipe-ingredients {
        position: static;
    }

    .recipe-sidebar {
        position: static;
    }

    .recipe-method {
        padding: 5rem 4rem;
    }

}


/*==================================================
RESPONSIVE - 768PX
==================================================*/

@media (max-width: 768px) {

    .recipes-grid {
        grid-template-columns: 1fr;
    }

    .recipe-card__content {
        padding: 2rem;
    }

    .recipe-card__title {
        font-size: 2.6rem;
    }

    .recipe-method {
        padding: 4rem 3rem;
        font-size: 2rem;
    }

    .recipe-method__step {
        align-items: flex-start;
        gap: 15px;
        padding-bottom: 25px;
        margin-bottom: 25px;
    }

    .recipe-method__step:first-of-type {
        margin-top: 3rem;
    }

    .recipe-method__number {
        flex: 0 0 36px;
        width: 36px;
        height: 36px;
    }

    .recipe-method__number span {
        font-size: 16px;
    }

    .recipe-method__content--image-text {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    .recipe-method__image {
        flex: 0 0 auto;
        width: 50%;
        max-width: 50%;
        align-self: flex-start;
    }

    .recipe-meta strong {
        font-size: .95rem;
    }

    .recipe-meta span {
        font-size: 1.4rem;
    }

}


/*==================================================
RESPONSIVE - 600PX
==================================================*/

@media (max-width: 600px) {

    .recipe-meta {
        grid-template-columns: 1fr;
    }

}


/*==================================================
RESPONSIVE - 520PX
==================================================*/

@media (max-width: 520px) {

    .recipe-meta {
        gap: 1rem;
        padding: 1.5rem;
    }

    .recipe-meta > div {
        padding: 1.5rem;
    }

    .recipe-meta strong {
        font-size: .9rem;
    }

    .recipe-meta span {
        font-size: 1.3rem;
    }

    .recipe-method {
        padding: 3rem 2rem;
        font-size: 1.8rem;
    }

}


/*==================================================
RESPONSIVE - 480PX
==================================================*/

@media (max-width: 480px) {

    .recipe-method__step {
        gap: 12px;
    }

    .recipe-method__number {
        flex: 0 0 32px;
        width: 32px;
        height: 32px;
    }

    .recipe-method__number span {
        font-size: 14px;
    }

    .recipe-method__image {
        width: 65%;
        max-width: 65%;
    }

    .recipe-notes .l-container {
        padding: 2.5rem;
    }

}