/*
 * Mariam Food Lab — custom styles layered on top of the base theme.
 * Everything here is additive; the theme stylesheets are untouched.
 */

/*** Logo ***/

/* The header uses the horizontal lockup (mark beside wordmark); the footer and
   slide-out panels use the stacked lockup, which needs more height to read. */
.main-header .main-box .logo-box .logo img {
    width: auto;
    height: 66px;
}

.main-header.fixed-header .main-box .logo-box .logo img {
    height: 56px;
}

.hidden-bar .inner-box .logo-box,
.info-bar .inner-box .logo-box {
    line-height: normal;
}

.hidden-bar .inner-box .logo-box img,
.info-bar .inner-box .logo-box img {
    width: auto;
    max-height: 130px;
}

.main-footer .info-col .logo img {
    width: auto;
    height: 150px;
}

@media only screen and (max-width: 767px) {
    .main-header .main-box .logo-box .logo img {
        height: 52px;
    }

    .main-footer .info-col .logo img {
        height: 120px;
    }
}

/*** Inline photos ***/

/* Photos dropped into a text column: fill the column rather than sitting at
   their natural pixel width. */
.mfl-photo img {
    display: block;
    width: 100%;
    height: auto;
}

/*** Section headings ***/

/* The theme's `.title-box.centered { margin: 0 auto }` cancels the 70px bottom
   margin `.title-box` sets, and each theme section restores it itself. These
   custom sections need the same, or the heading collides with the row below. */
.mfl-section > .auto-container > .title-box,
.mfl-steps > .auto-container > .title-box,
.mfl-cards > .auto-container > .title-box,
.recipes-section > .auto-container > .title-box {
    margin-bottom: 50px;
}

/*** Service feature lists ***/

/* These sit inside centred content columns, so the text alignment has to be
   reset — otherwise the labels centre while the markers stay pinned left. */
.mfl-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    margin: 35px 0px 0px;
    padding: 0px;
    list-style: none;
    text-align: left;
}

.mfl-list.two-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 36px;
}

.mfl-list li {
    position: relative;
    display: block;
    padding: 14px 0px 14px 42px;
    font-family: var(--font-family-DMsans);
    font-size: var(--font-16);
    line-height: 1.5em;
    color: var(--white-color-opacity);
    border-bottom: 1px solid var(--white-color-opacity-five);
    transition: color 300ms ease;
}

/* Diamond frame, echoing the separator motif used across the theme. */
.mfl-list li:before {
    position: absolute;
    left: 2px;
    top: 17px;
    width: 18px;
    height: 18px;
    content: "";
    border: 1px solid rgba(228, 197, 144, 0.40);
    transform: rotate(45deg);
    transition: all 300ms ease;
}

/* Tick, kept unrotated by living in its own pseudo-element. */
.mfl-list li:after {
    position: absolute;
    left: 2px;
    top: 17px;
    width: 18px;
    height: 18px;
    content: "\f00c";
    font-family: "Font Awesome 6 Pro";
    font-weight: 300;
    font-size: 9px;
    line-height: 18px;
    text-align: center;
    color: var(--main-color);
    transition: all 300ms ease;
}

.mfl-list li:hover {
    color: var(--white-color);
}

.mfl-list li:hover:before {
    background-color: var(--main-color);
    border-color: var(--main-color);
}

.mfl-list li:hover:after {
    color: var(--color-two);
}

@media only screen and (max-width: 599px) {
    .mfl-list.two-column {
        grid-template-columns: minmax(0, 1fr);
        column-gap: 0px;
    }
}

/*** Numbered service / process blocks ***/

.mfl-steps {
    position: relative;
    padding: 110px 0px 80px;
}

.mfl-steps .step-block {
    margin-bottom: 40px;
}

.mfl-steps .step-block .inner-box {
    position: relative;
    height: 100%;
    padding: 40px 30px 35px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--white-color-opacity-five);
    transition: all 400ms ease;
}

.mfl-steps .step-block .inner-box:hover {
    border-color: var(--main-color);
    background-color: rgba(228, 197, 144, 0.06);
}

.mfl-steps .step-block .step-count {
    display: block;
    margin-bottom: 18px;
    font-family: var(--font-family-Forum);
    font-size: var(--font-40);
    line-height: 1em;
    color: var(--main-color);
}

.mfl-steps .step-block h4 {
    margin-bottom: 14px;
    font-size: var(--font-24);
    color: var(--white-color);
}

.mfl-steps .step-block .text {
    font-family: var(--font-family-DMsans);
    font-size: var(--font-16);
    line-height: 1.7em;
    color: var(--white-color-opacity-two);
}

/*** Simple content card grid (philosophy, service pillars) ***/

.mfl-cards {
    position: relative;
    padding: 110px 0px 70px;
}

.mfl-cards .card-block {
    margin-bottom: 40px;
}

.mfl-cards .card-block .inner-box {
    position: relative;
    height: 100%;
    padding: 45px 35px 40px;
    background-color: var(--color-six);
    border: 1px solid var(--white-color-opacity-five);
    transition: all 400ms ease;
}

.mfl-cards .card-block .inner-box:hover {
    border-color: var(--main-color);
    transform: translateY(-6px);
}

.mfl-cards .card-block .icon-box {
    margin-bottom: 20px;
    font-size: 34px;
    line-height: 1em;
    color: var(--main-color);
}

.mfl-cards .card-block h4 {
    margin-bottom: 15px;
    font-size: var(--font-26);
    color: var(--white-color);
}

.mfl-cards .card-block .text {
    font-family: var(--font-family-DMsans);
    font-size: var(--font-16);
    line-height: 1.8em;
    color: var(--white-color-opacity-two);
}

/*** Call to action band ***/

.mfl-cta {
    position: relative;
    padding: 100px 0px;
    text-align: center;
    background-color: var(--color-eight);
    background-size: cover;
    background-position: center center;
}

.mfl-cta .image-layer {
    position: absolute;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    opacity: 0.25;
}

.mfl-cta .auto-container {
    position: relative;
    z-index: 1;
}

.mfl-cta h2 {
    margin-bottom: 20px;
    font-size: var(--font-54);
    color: var(--white-color);
}

.mfl-cta .text {
    max-width: 720px;
    margin: 0px auto 35px;
    font-family: var(--font-family-DMsans);
    font-size: var(--font-18);
    line-height: 1.8em;
    color: var(--white-color-opacity-two);
}

@media only screen and (max-width: 767px) {
    .mfl-cta h2 {
        font-size: var(--font-38);
    }
}

/*** Catering formats row ***/

/* The base theme stretches the middle ("alternate") block's photo over the full
   card and floats its text on top, unreadable over a light image. Mirror the
   other two cards instead: photo on top, solid dark text panel below. */
@media only screen and (min-width: 768px) {
    .featured-links .link-block.alternate .image-box {
        position: relative;
        height: 380px;
    }

    .featured-links .link-block.alternate .text-block {
        position: relative;
        bottom: auto;
        height: 370px;
    }
}

/*** Recipes ***/

.recipes-section {
    position: relative;
    padding: 110px 0px 80px;
    overflow: hidden;
}

/* Decorative theme graphics, positioned the way the base theme does it. */
.recipes-section > .left-bg,
.recipe-detail > .left-bg {
    position: absolute;
    left: 0px;
    top: 0px;
    z-index: 0;
}

.recipes-section > .right-bg {
    position: absolute;
    right: 0px;
    bottom: 0px;
    z-index: 0;
}

.recipes-section .auto-container,
.recipe-detail .auto-container {
    position: relative;
    z-index: 1;
}

.recipe-filter {
    margin: 0px 0px 50px;
    padding: 0px;
    text-align: center;
    list-style: none;
}

.recipe-filter li {
    display: inline-block;
    margin: 0px 5px 12px;
    padding: 9px 24px;
    font-family: var(--font-family-DMsans);
    font-size: var(--font-14);
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--white-color-opacity-two);
    border: 1px solid var(--white-color-opacity-five);
    cursor: pointer;
    transition: all 300ms ease;
}

.recipe-filter li:hover,
.recipe-filter li.active {
    color: var(--color-two);
    background-color: var(--main-color);
    border-color: var(--main-color);
}

.recipe-block {
    margin-bottom: 45px;
}

.recipe-block .inner-box {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: var(--color-six);
    border: 1px solid var(--white-color-opacity-five);
    transition: all 400ms ease;
}

.recipe-block .inner-box:hover {
    border-color: var(--main-color);
}

.recipe-block .image-box {
    position: relative;
    overflow: hidden;
}

.recipe-block .image-box img {
    display: block;
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: all 600ms ease;
}

.recipe-block .inner-box:hover .image-box img {
    transform: scale(1.08);
}

.recipe-block .image-box .cat {
    position: absolute;
    left: 20px;
    top: 20px;
    padding: 6px 16px;
    font-family: var(--font-family-DMsans);
    font-size: var(--font-12);
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-two);
    background-color: var(--main-color);
}

.recipe-block .content-box {
    flex: 1 1 auto;
    padding: 28px 28px 30px;
}

.recipe-block .content-box h4 {
    margin-bottom: 12px;
    font-size: var(--font-26);
    line-height: 1.3em;
}

.recipe-block .content-box h4 a {
    color: var(--white-color);
    transition: all 300ms ease;
}

.recipe-block .content-box h4 a:hover {
    color: var(--main-color);
}

.recipe-block .content-box .text {
    margin-bottom: 20px;
    font-family: var(--font-family-DMsans);
    font-size: var(--font-15);
    line-height: 1.8em;
    color: var(--white-color-opacity-two);
}

.recipe-meta {
    margin: 0px;
    padding: 18px 0px 0px;
    list-style: none;
    border-top: 1px solid var(--white-color-opacity-five);
}

.recipe-meta li {
    display: inline-block;
    margin-right: 20px;
    font-family: var(--font-family-DMsans);
    font-size: var(--font-13);
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--white-color-opacity-three);
}

.recipe-meta li i {
    margin-right: 7px;
    color: var(--main-color);
}

.recipes-empty {
    padding: 60px 0px;
    text-align: center;
    font-family: var(--font-family-DMsans);
    font-size: var(--font-18);
    color: var(--white-color-opacity-two);
}

/*** Recipe detail ***/

.recipe-detail {
    position: relative;
    padding: 110px 0px 90px;
    overflow: hidden;
}

.recipe-detail .feature-image img {
    width: 100%;
    height: 480px;
    object-fit: cover;
}

.recipe-detail .recipe-intro {
    margin: 40px 0px 0px;
    font-family: var(--font-family-DMsans);
    font-size: var(--font-18);
    line-height: 1.9em;
    color: var(--white-color-opacity-two);
}

.recipe-facts {
    display: flex;
    flex-wrap: wrap;
    margin: 40px 0px 0px;
    padding: 0px;
    list-style: none;
    border: 1px solid var(--white-color-opacity-five);
}

.recipe-facts li {
    flex: 1 1 25%;
    min-width: 150px;
    padding: 25px 20px;
    text-align: center;
    border-right: 1px solid var(--white-color-opacity-five);
}

.recipe-facts li:last-child {
    border-right: none;
}

.recipe-facts li span {
    display: block;
    font-family: var(--font-family-DMsans);
    font-size: var(--font-12);
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--white-color-opacity-three);
}

.recipe-facts li strong {
    display: block;
    margin-top: 8px;
    font-family: var(--font-family-Forum);
    font-size: var(--font-24);
    font-weight: 400;
    color: var(--main-color);
}

.recipe-detail h3 {
    margin: 55px 0px 25px;
    font-size: var(--font-34);
    color: var(--white-color);
}

.recipe-detail h5 {
    margin: 30px 0px 15px;
    font-size: var(--font-20);
    color: var(--main-color);
}

.ingredient-list {
    margin: 0px;
    padding: 0px;
    list-style: none;
}

.ingredient-list li {
    position: relative;
    padding: 12px 0px 12px 28px;
    font-family: var(--font-family-DMsans);
    font-size: var(--font-16);
    color: var(--white-color-opacity);
    border-bottom: 1px solid var(--white-color-opacity-five);
}

.ingredient-list li:before {
    position: absolute;
    left: 0px;
    top: 19px;
    width: 8px;
    height: 8px;
    content: "";
    background-color: var(--main-color);
    transform: rotate(45deg);
}

.method-list {
    margin: 0px;
    padding: 0px;
    list-style: none;
    counter-reset: method;
}

.method-list li {
    position: relative;
    margin-bottom: 25px;
    padding-left: 62px;
    font-family: var(--font-family-DMsans);
    font-size: var(--font-16);
    line-height: 1.9em;
    color: var(--white-color-opacity-two);
    counter-increment: method;
}

.method-list li:before {
    position: absolute;
    left: 0px;
    top: 0px;
    width: 42px;
    height: 42px;
    content: counter(method, decimal-leading-zero);
    font-family: var(--font-family-Forum);
    font-size: var(--font-18);
    line-height: 42px;
    text-align: center;
    color: var(--main-color);
    border: 1px solid var(--white-color-opacity-five);
}

.recipe-notes {
    margin-top: 25px;
    padding: 30px 35px;
    background-color: var(--color-six);
    border-left: 3px solid var(--main-color);
}

.recipe-notes ul {
    margin: 0px;
    padding: 0px;
    list-style: none;
}

.recipe-notes li {
    position: relative;
    margin-bottom: 12px;
    padding-left: 24px;
    font-family: var(--font-family-DMsans);
    font-size: var(--font-16);
    line-height: 1.8em;
    color: var(--white-color-opacity-two);
}

.recipe-notes li:last-child {
    margin-bottom: 0px;
}

.recipe-notes li:before {
    position: absolute;
    left: 0px;
    top: 0px;
    content: "\f0eb";
    font-family: "Font Awesome 6 Pro";
    font-weight: 300;
    color: var(--main-color);
}

.recipe-sidebar .widget {
    margin-bottom: 40px;
    padding: 35px 30px;
    background-color: var(--color-six);
    border: 1px solid var(--white-color-opacity-five);
}

.recipe-sidebar .widget h4 {
    margin-bottom: 20px;
    font-size: var(--font-24);
    color: var(--white-color);
}

.recipe-sidebar .widget .text {
    margin-bottom: 20px;
    font-family: var(--font-family-DMsans);
    font-size: var(--font-15);
    line-height: 1.8em;
    color: var(--white-color-opacity-two);
}

.recipe-sidebar .side-recipe {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.recipe-sidebar .side-recipe:last-child {
    margin-bottom: 0px;
}

.recipe-sidebar .side-recipe img {
    width: 75px;
    height: 75px;
    margin-right: 18px;
    object-fit: cover;
}

.recipe-sidebar .side-recipe h6 {
    font-family: var(--font-family-Forum);
    font-size: var(--font-18);
    font-weight: 400;
    line-height: 1.4em;
}

.recipe-sidebar .side-recipe h6 a {
    color: var(--white-color);
    transition: all 300ms ease;
}

.recipe-sidebar .side-recipe h6 a:hover {
    color: var(--main-color);
}

.recipe-sidebar .side-recipe .cat {
    font-family: var(--font-family-DMsans);
    font-size: var(--font-12);
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--white-color-opacity-three);
}

@media only screen and (max-width: 767px) {
    .recipe-detail .feature-image img {
        height: 280px;
    }

    .recipe-facts li {
        flex: 1 1 50%;
        border-bottom: 1px solid var(--white-color-opacity-five);
    }
}

/*** Contact form tweaks ***/

.default-form .field-inner select {
    position: relative;
    display: block;
    width: 100%;
    height: 60px;
    padding: 10px 20px;
    font-family: var(--font-family-DMsans);
    font-size: var(--font-16);
    color: var(--white-color-opacity-two);
    background-color: transparent;
    border: 1px solid var(--white-color-opacity-five);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23e4c590' stroke-width='1.5' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 12px 8px;
    padding-right: 46px;
}

.default-form .field-inner select option {
    color: var(--color-two);
    background-color: var(--white-color);
}

.form-note {
    margin-top: 18px;
    font-family: var(--font-family-DMsans);
    font-size: var(--font-14);
    color: var(--white-color-opacity-three);
}

/* Honeypot: off-screen for people, still reachable to bots reading the DOM. */
.mfl-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-status {
    margin-top: 22px;
    padding: 0px;
    font-family: var(--font-family-DMsans);
    font-size: var(--font-15);
    line-height: 1.7em;
}

.form-status.is-pending,
.form-status.is-success,
.form-status.is-error {
    padding: 14px 20px;
    border-left: 3px solid var(--main-color);
    background-color: rgba(255, 255, 255, 0.04);
}

.form-status.is-pending {
    color: var(--white-color-opacity-two);
}

.form-status.is-success {
    color: var(--white-color);
    border-left-color: var(--main-color);
}

.form-status.is-error {
    color: var(--white-color);
    border-left-color: #c9553d;
}

.contact-cards .inner-box {
    height: 100%;
    padding: 40px 32px;
    background-color: var(--color-six);
    border: 1px solid var(--white-color-opacity-five);
}

.contact-cards .inner-box h4 {
    margin-bottom: 15px;
    font-size: var(--font-24);
    color: var(--white-color);
}

.contact-cards .inner-box .text,
.contact-cards .inner-box a {
    font-family: var(--font-family-DMsans);
    font-size: var(--font-16);
    line-height: 1.8em;
    color: var(--white-color-opacity-two);
}

.contact-cards .inner-box a:hover {
    color: var(--main-color);
}

/*** Misc helpers ***/

.mfl-section {
    position: relative;
    padding: 110px 0px;
}

.mfl-section.alt {
    background-color: var(--color-eight);
}

.mfl-lead {
    font-family: var(--font-family-DMsans);
    font-size: var(--font-18);
    line-height: 1.9em;
    color: var(--white-color-opacity-two);
}

.mfl-body p {
    margin-bottom: 20px;
    font-family: var(--font-family-DMsans);
    font-size: var(--font-16);
    line-height: 1.9em;
    color: var(--white-color-opacity-two);
}

.mfl-body p:last-child {
    margin-bottom: 0px;
}

.mfl-body h4 {
    margin: 35px 0px 15px;
    font-size: var(--font-28);
    color: var(--white-color);
}

.mt-40 {
    margin-top: 40px;
}
