/* CSS Document */
/* =====================================================
   VT COFFEE
   Página Cafetería
===================================================== */


/* =====================================================
   INTRO EDITORIAL
===================================================== */

.cafeteria-intro {
    width: min(1180px, 88%);
    margin: 0 auto;

    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;

    gap: clamp(55px, 7vw, 100px);

    padding:
        clamp(90px, 10vw, 150px)
        0
        clamp(80px, 9vw, 130px);
}


.cafeteria-intro-text {
    max-width: 500px;
}


.cafeteria-kicker {
    margin: 0 0 20px;

    font-family: var(--font-hand);
    font-size: 19px;
    font-weight: 500;

    color: var(--green);
}


.cafeteria-intro h1 {
    margin: 0 0 30px;

    font-family: var(--font-main);
    font-size: clamp(38px, 4vw, 58px);
    font-weight: 500;
    line-height: 1.05;

    color: var(--green);
}


.cafeteria-copy {
    margin: 0 0 22px;

    font-family: var(--font-main);
    font-size: clamp(18px, 1.4vw, 21px);
    font-weight: 300;
    line-height: 1.6;

    color: var(--mineral);
}


.cafeteria-copy:last-child {
    margin-bottom: 0;
}


/* =====================================================
   FOTO INTRO
===================================================== */

.cafeteria-intro-photo {
    position: relative;
}


.cafeteria-intro-photo img {
    display: block;

    width: 100%;
    height: auto;

    object-fit: cover;
}


/* pequeña línea editorial */
.cafeteria-intro-photo::before {
    content: "";

    position: absolute;

    top: -18px;
    left: -18px;

    width: 2px;
    height: 32%;

    background: #a45f49;
}


/* =====================================================
   FRASE ANTES DE LA CARTA
===================================================== */

.cafeteria-menu-intro {
    position: relative;

    width: min(900px, 86%);
    margin: 0 auto;

    padding-bottom: clamp(75px, 8vw, 110px);

    text-align: center;
}


.cafeteria-menu-kicker {
    margin: 0 0 18px;

    font-family: var(--font-hand);
    font-size: 17px;
    font-weight: 500;

    color: #a45f49;
}


.cafeteria-menu-intro h2 {
    margin: 0 auto;

    max-width: 760px;

    font-family: var(--font-main);
    font-size: clamp(36px, 4.2vw, 60px);
    font-weight: 500;
    line-height: 1.06;

    color: #a45f49;
}


.cafeteria-menu-copy {
    max-width: 620px;

    margin: 24px auto 0;

    font-family: var(--font-main);
    font-size: clamp(17px, 1.35vw, 20px);
    font-weight: 300;
    line-height: 1.55;

    color: var(--mineral);
}

/* =====================================================
   CARTA
===================================================== */

.cafeteria-menu {
    background: #e9dfc9;

    padding:
        clamp(90px, 9vw, 140px)
        6%
        clamp(110px, 10vw, 160px);
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 768px) {

    .cafeteria-intro {
        width: 86%;

        grid-template-columns: 1fr;

        gap: 50px;

        padding:
            80px
            0
            75px;
    }


    .cafeteria-intro-text {
        max-width: none;
    }


    .cafeteria-kicker {
        font-size: 17px;
    }


    .cafeteria-intro h1 {
        font-size: 38px;
        line-height: 1.08;
    }


    .cafeteria-copy {
        font-size: 18px;
        line-height: 1.55;
    }


    .cafeteria-intro-photo::before {
        top: -12px;
        left: -10px;

        height: 28%;
    }


    .cafeteria-menu-intro {
        width: 86%;

        padding-bottom: 70px;
    }

    .cafeteria-menu-kicker {
        font-size: 16px;
    }

    .cafeteria-menu-intro h2 {
        font-size: 35px;
        line-height: 1.08;
    }

    .cafeteria-menu-copy {
        margin-top: 20px;

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



    .cafeteria-menu {
        padding:
            80px
            7%
            100px;
    }

}

/* =====================================================
   CARTA
   Mobile first
===================================================== */

.cafeteria-menu {
    background: #e9dfc9;

    padding:
        75px
        7%
        100px;
}


.menu-inner {
    width: 100%;
    max-width: 1180px;

    margin: 0 auto;
}


/* =====================================================
   CABECERA CARTA
===================================================== */

.menu-header {
    margin-bottom: 70px;
}


.menu-kicker {
    margin: 0 0 14px;

    font-family: var(--font-hand);
    font-size: 17px;
    font-weight: 500;

    color: var(--green);
}


.menu-header h2 {
    max-width: 650px;

    margin: 0;

    font-family: var(--font-main);
    font-size: 37px;
    font-weight: 500;
    line-height: 1.08;

    color: var(--green);
}


/* =====================================================
   CATEGORÍAS
===================================================== */

.menu-category {
    margin-bottom: 80px;
}


.menu-category:last-child {
    margin-bottom: 0;
}


.menu-category-title {
    margin: 0 0 32px;

    font-family: var(--font-hand);
    font-size: 28px;
    font-weight: 600;
    line-height: 1.15;

    color: var(--green);
}


/* =====================================================
   PRODUCTOS
===================================================== */

.menu-items {
    display: grid;
    grid-template-columns: 1fr;

    gap: 0;
}


.menu-item {
    padding: 20px 0 22px;

    border-bottom:
        1px solid rgba(78, 101, 71, 0.22);
}


.menu-item:first-child {
    padding-top: 0;
}


/* =====================================================
   NOMBRE + PRECIO
===================================================== */

.menu-item-heading {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        auto;

    align-items: baseline;

    gap: 18px;
}


.menu-item h3,
.menu-variant-title {
    margin: 0;

    font-family: var(--font-main);
    font-size: 20px;
    font-weight: 500;
    line-height: 1.25;

    color: var(--green);
}


.menu-price {
    white-space: nowrap;

    font-family: var(--font-main);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.2;

    color: var(--green);
}


/* =====================================================
   DESCRIPCIÓN
===================================================== */

.menu-description {
    max-width: 90%;

    margin: 7px 0 0;

    font-family: var(--font-main);
    font-size: 16px;
    font-weight: 300;
    line-height: 1.45;

    color: var(--mineral);
}


.menu-note {
    margin: 7px 0 0;

    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 400;

    color: var(--green);
}


/* =====================================================
   PRODUCTOS CON VARIANTES
===================================================== */

.menu-item--variants {
    padding-top: 22px;
}


.menu-variant-title {
    margin-bottom: 12px;
}


.menu-variant {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        auto;

    gap: 18px;

    margin-top: 8px;

    font-family: var(--font-main);
    font-size: 16px;
    font-weight: 300;
    line-height: 1.4;

    color: var(--mineral);
}


.menu-variant .menu-price {
    font-size: 17px;
}


/* =====================================================
   NOTA FINAL
===================================================== */

.menu-footnote {
    margin: 28px 0 0;

    max-width: 600px;

    font-family: var(--font-hand);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.45;

    color: var(--green);
}


/* =====================================================
   TABLETS / DESKTOP
===================================================== */

@media (min-width: 769px) {

    .cafeteria-menu {
        padding:
            clamp(100px, 9vw, 140px)
            6%
            clamp(120px, 10vw, 160px);
    }


    .menu-header {
        margin-bottom: 95px;
    }


    .menu-kicker {
        font-size: 18px;
    }


    .menu-header h2 {
        font-size: clamp(44px, 4vw, 58px);
    }


    .menu-category {
        margin-bottom: 105px;
    }


    .menu-category-title {
        margin-bottom: 40px;

        font-size: clamp(30px, 2.7vw, 38px);
    }


    /*
       Dos columnas solamente cuando ya tenemos
       espacio suficiente para que los precios respiren.
    */

    .menu-items {
        grid-template-columns: 1fr 1fr;

        column-gap: clamp(55px, 7vw, 100px);
    }


    .menu-item {
        padding: 22px 0 24px;
    }


    .menu-item h3,
    .menu-variant-title {
        font-size: 21px;
    }


    .menu-price {
        font-size: 18px;
    }


    .menu-description {
        font-size: 16px;
    }
    
    .menu-item:nth-child(-n+2) {
        padding-top: 0;
    }

}

.cafeteria-menu-intro {
    position: relative;
}

.menu-intro-deco {
    position: absolute;
    pointer-events: none;
    z-index: 1;
}

.menu-intro-deco--beans {
    width: clamp(58px, 7vw, 96px);

    top: -12px;
    right: 2%;

    transform: rotate(8deg);
    opacity: 0.9;
}

.cafeteria-menu {
    position: relative;
    overflow: hidden;
}

.menu-deco {
    position: absolute;
    z-index: 1;
    pointer-events: none;
    opacity: 0.22;
}

.menu-inner {
    position: relative;
    z-index: 2;
}

.menu-deco--top {
    width: clamp(70px, 8vw, 120px);

    top: 110px;
    right: 3%;

    transform: rotate(10deg);
}

.menu-deco--middle {
    width: clamp(62px, 7vw, 100px);

    top: 47%;
    left: 72%;

    transform: rotate(-8deg);
}

.menu-deco--bottom {
    width: clamp(72px, 8vw, 110px);

    bottom: 90px;
    right: 6%;

    transform: rotate(6deg);
}

@media (max-width: 768px) {

    .menu-intro-deco--beans {
        width: 56px;

        top: -6px;
        right: 0;
    }

    .menu-deco {
        opacity: 0.33;
    }

    .menu-deco--top {
        width: 62px;
        top: 75px;
        right: -8px;
    }

    .menu-deco--middle {
        width: 54px;
        top: 48%;
        left: 220px;
    }

    .menu-deco--bottom {
        width: 58px;
        bottom: 55px;
        right: -8px;
    }
}
