/* =========================================================
   ONDA MEXICANA
   FOOD STORIES PAGE
========================================================= */


/* =========================================================
   VARIABLES
========================================================= */

:root {
    --om-food-paper: #fff9ef;
    --om-food-paper-deep: #f7efe2;

    --om-food-green: #075d45;
    --om-food-green-dark: #054936;

    --om-food-orange: #d84a24;
    --om-food-yellow: #f3b72d;

    --om-food-ink: #23372f;
    --om-food-muted: #6c6962;

    --om-food-border:
        rgba(55, 68, 59, .10);

    --om-food-width: 1400px;
}


/* =========================================================
   BASE
========================================================= */

.om-food-page {
    width: 100%;

    background:
        var(--om-food-paper);

    color:
        var(--om-food-ink);
}


.om-food-container {
    width:
        min(
            var(--om-food-width),
            calc(100% - 48px)
        );

    margin: 0 auto;
}


/* =========================================================
   HERO
========================================================= */

.om-food-hero {
    position: relative;

    width: 100%;

    overflow: hidden;

    background: #b66b18;
}


.om-food-hero-picture {
    display: block;

    width: 100%;

    line-height: 0;
}


.om-food-hero-picture img {
    display: block;

    width: 100%;
    height: auto;
}


/* =========================================================
   HERO OVERLAY
========================================================= */

.om-food-hero-overlay {
    position: absolute;

    inset: 0;

    display: flex;

    align-items: center;
}


/* ==================================================
   Onda Mexicana - 음식 이야기 HERO 텍스트 최종 조정
   ================================================== */

/* 전체 텍스트 영역 */
.om-food-hero-copy {
    max-width: 440px;
    color: #FFF8ED;
}


/* SABORES E HISTORIAS */
.om-food-hero-kicker {
    margin: 0 0 8px;

    font-size: clamp(12px, 0.9vw, 14px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: 1.8px;

    color: #FFE8B5;

    text-shadow:
        0 2px 6px rgba(72, 30, 0, 0.16);
}


/* 음식 이야기 */
.om-food-hero-copy h1 {
    margin: 0 0 18px;

    font-size: clamp(48px, 5vw, 64px);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -2.4px;

    color: #FFF8ED;

    text-shadow:
        0 2px 7px rgba(72, 30, 0, 0.18);
}


/* 한 접시에서 시작해
   메히꼬의 역사와 사람들을 만납니다. */
.om-food-hero-lead {
    margin: 0 0 17px;

    font-size: clamp(19px, 1.8vw, 23px);
    font-weight: 700;
    line-height: 1.42;
    letter-spacing: -0.5px;

    color: #FFE5A8;

    text-shadow:
        0 2px 7px rgba(72, 30, 0, 0.22);
}


/* 하단 설명문 */
.om-food-hero-text {
    margin: 0;

    font-size: clamp(15px, 1.3vw, 17px);
    font-weight: 500;
    line-height: 1.62;
    letter-spacing: -0.2px;

    color: rgba(255, 248, 237, 0.96);

    text-shadow:
        0 2px 7px rgba(55, 22, 0, 0.28);
}


/* =========================================================
   FILTER AREA
========================================================= */

.om-food-filter-section {
    padding: 25px 0 15px;

    background:
        var(--om-food-paper);
}


.om-food-filters {
    display: flex;

    align-items: center;
    justify-content: center;

    flex-wrap: wrap;

    gap: 10px;
}


.om-food-filter {
    display: inline-flex;

    min-height: 42px;

    align-items: center;
    justify-content: center;

    padding: 0 20px;

    border:
        1px solid
        rgba(7, 93, 69, .10);

    border-radius: 999px;

    background: #f4e8d2;

    color: #383b36;

    font-size: 13px;

    font-weight: 850;

    text-decoration: none;

    transition:
        transform .16s ease,
        background .16s ease,
        color .16s ease;
}


.om-food-filter:hover {
    transform:
        translateY(-1px);

    background: #ead9bc;
}


.om-food-filter.is-active {
    border-color:
        var(--om-food-orange);

    background:
        var(--om-food-orange);

    color: #fff;
}


/* =========================================================
   STORY AREA
========================================================= */

.om-food-stories {
    padding:
        20px
        0
        70px;
}


/* =========================================================
   GRID
========================================================= */

.om-food-grid {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 22px;
}


/* =========================================================
   CARD
========================================================= */

.om-food-card {
    display: flex;

    min-width: 0;

    flex-direction: column;

    overflow: hidden;

    border:
        1px solid
        var(--om-food-border);

    border-radius: 18px;

    background: #fffaf2;

    box-shadow:
        0 8px 24px
        rgba(55, 40, 22, .055);

    transition:
        transform .18s ease,
        box-shadow .18s ease;
}


.om-food-card:hover {
    transform:
        translateY(-3px);

    box-shadow:
        0 14px 28px
        rgba(55, 40, 22, .09);
}


/* =========================================================
   IMAGE
========================================================= */

.om-food-card-image {
    position: relative;

    display: block;

    width: 100%;

    aspect-ratio: 16 / 9;

    overflow: hidden;

    background: #e9ddc8;
}


.om-food-card-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform .28s ease;
}


.om-food-card:hover
.om-food-card-image img {
    transform:
        scale(1.025);
}


/* =========================================================
   LABEL
========================================================= */

.om-food-card-label {
    position: absolute;

    top: 13px;
    left: 13px;

    z-index: 2;

    display: inline-flex;

    align-items: center;

    min-height: 28px;

    padding: 0 10px;

    border-radius: 999px;

    background:
        var(--om-food-green);

    color: #fff;

    font-size: 10px;

    font-weight: 900;
}


/* =========================================================
   PLACEHOLDER
========================================================= */

.om-food-card-placeholder {
    display: flex;

    width: 100%;
    height: 100%;

    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            135deg,
            #d84a24,
            #e76a32
        );

    color: #ffd65a;

    text-align: center;

    font-size: 22px;

    font-weight: 950;

    line-height: .9;
}


/* =========================================================
   CARD CONTENT
========================================================= */

.om-food-card-content {
    display: flex;

    flex: 1;

    flex-direction: column;

    padding:
        18px
        18px
        17px;
}


.om-food-card-title {
    margin: 0;

    font-size: 20px;

    font-weight: 950;

    line-height: 1.35;

    letter-spacing: -.035em;

    word-break: keep-all;
}


.om-food-card-title a {
    color:
        var(--om-food-ink);

    text-decoration: none;
}


.om-food-card-title a:hover {
    color:
        var(--om-food-green);
}


.om-food-card-excerpt {
    flex: 1;

    margin:
        10px
        0
        0;

    color:
        var(--om-food-muted);

    font-size: 13px;

    line-height: 1.7;

    word-break: keep-all;
}


/* =========================================================
   CARD BOTTOM
========================================================= */

.om-food-card-bottom {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 15px;

    margin-top: 16px;
}


.om-food-card-bottom time {
    color: #958f86;

    font-size: 10px;
}


.om-food-card-link {
    color:
        var(--om-food-orange);

    font-size: 11px;

    font-weight: 900;

    text-decoration: none;
}


/* =========================================================
   PAGINATION
========================================================= */

.om-food-pagination {
    display: flex;

    align-items: center;
    justify-content: center;

    flex-wrap: wrap;

    gap: 7px;

    margin-top: 38px;
}


.om-food-pagination .page-numbers {
    display: inline-flex;

    min-width: 38px;
    height: 38px;

    padding: 0 10px;

    align-items: center;
    justify-content: center;

    border:
        1px solid
        rgba(7,93,69,.13);

    border-radius: 999px;

    background: #fffaf2;

    color:
        var(--om-food-green);

    font-size: 12px;

    font-weight: 850;

    text-decoration: none;
}


.om-food-pagination
.page-numbers.current {
    background:
        var(--om-food-orange);

    color: #fff;
}


/* =========================================================
   EMPTY
========================================================= */

.om-food-empty {
    padding: 70px 25px;

    border:
        1px dashed
        rgba(7,93,69,.20);

    border-radius: 20px;

    text-align: center;
}


.om-food-empty strong {
    display: block;

    color:
        var(--om-food-green);

    font-size: 21px;
}


.om-food-empty p {
    margin: 10px 0 0;

    color:
        var(--om-food-muted);

    font-size: 14px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    .om-food-container {
        width:
            calc(100% - 36px);
    }


    .om-food-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0,1fr)
            );
    }


    .om-food-hero-copy {
        max-width: 44%;
    }


    .om-food-hero-copy h1 {
        font-size: 40px;
    }


    .om-food-hero-lead {
        font-size: 16px;
    }


    .om-food-hero-text {
        font-size: 12px;
    }

}


/* =========================================================
   MOBILE HERO
========================================================= */

@media (max-width: 600px) {

    .om-food-container {
        width:
            calc(100% - 28px);
    }


    .om-food-hero-overlay {
        align-items: flex-start;
    }


    .om-food-hero-copy {
        max-width: 72%;

        padding-top: 44px;
    }


    .om-food-hero-kicker {
        font-size: 10px;
    }


    .om-food-hero-copy h1 {
        font-size: 32px;
    }


    .om-food-hero-lead {
        margin-top: 9px;

        font-size: 14px;

        line-height: 1.4;
    }


    .om-food-hero-text {
        margin-top: 8px;

        font-size: 11px;

        line-height: 1.45;
    }

}


/* =========================================================
   MOBILE CONTENT
========================================================= */

@media (max-width: 680px) {

    .om-food-filter-section {
        padding:
            18px
            0
            8px;
    }


    .om-food-filters {
        justify-content: flex-start;

        flex-wrap: nowrap;

        overflow-x: auto;

        padding-bottom: 7px;

        scrollbar-width: none;
    }


    .om-food-filters::-webkit-scrollbar {
        display: none;
    }


    .om-food-filter {
        flex: 0 0 auto;

        min-height: 38px;

        padding:
            0
            16px;

        font-size: 12px;
    }


    .om-food-stories {
        padding:
            16px
            0
            48px;
    }


    .om-food-grid {
        grid-template-columns: 1fr;

        gap: 17px;
    }


    .om-food-card-content {
        padding:
            16px
            16px
            17px;
    }


    .om-food-card-title {
        font-size: 19px;
    }

}

/* ==================================================
   FOOD STORY CARD - FINAL TUNING
   기존 카드 디자인 미세 조정
================================================== */

/* 카드 간격 */
.om-food-grid {
    gap: 28px 26px;
}


/* 카드 */
.om-food-card {
    border-radius: 20px;

    box-shadow:
        0 9px 26px rgba(55, 40, 22, .065);

    transition:
        transform .22s ease,
        box-shadow .22s ease,
        border-color .22s ease;
}


.om-food-card:hover {
    transform: translateY(-5px);

    border-color: rgba(216, 74, 36, .16);

    box-shadow:
        0 17px 36px rgba(55, 40, 22, .11);
}


/* 대표 이미지 */
.om-food-card-image {
    aspect-ratio: 16 / 10;
}


.om-food-card:hover .om-food-card-image img {
    transform: scale(1.035);
}


/* 카테고리 라벨 */
.om-food-card-label {
    top: 14px;
    left: 14px;

    min-height: 30px;
    padding: 0 12px;

    font-size: 11px;

    box-shadow:
        0 4px 12px rgba(30, 40, 30, .13);
}


/* 카드 내용 */
.om-food-card-content {
    padding: 22px 22px 21px;
}


/* 제목 */
.om-food-card-title {
    font-size: 22px;
    line-height: 1.38;
    letter-spacing: -.035em;
}


/* 요약 */
.om-food-card-excerpt {
    margin-top: 11px;

    font-size: 14px;
    line-height: 1.72;
}


/* 카드 하단 */
.om-food-card-bottom {
    margin-top: 19px;
}


/* 날짜 */
.om-food-card-bottom time {
    font-size: 11px;
}


/* 이야기 보기 */
.om-food-card-link {
    font-size: 12px;
}


/* TABLET */
@media (max-width: 1000px) {

    .om-food-grid {
        gap: 24px 22px;
    }

    .om-food-card-title {
        font-size: 21px;
    }

}


/* MOBILE */
@media (max-width: 680px) {

    .om-food-grid {
        gap: 20px;
    }

    .om-food-card-content {
        padding: 19px 18px 20px;
    }

    .om-food-card-title {
        font-size: 20px;
    }

    .om-food-card-excerpt {
        font-size: 13.5px;
    }

}