
/* =========================================================
   WFC MENU ARCHIVE
   Japanese Fine Dining — Minimal Design
   File: assets/css/menu-archive.css
   ========================================================= */

/* ---------------------------------------------------------
   1. VARIABLES & BASE
   --------------------------------------------------------- */

.wfc-menu-archive {
    --wfc-menu-bg: #f7f4ed;
    --wfc-menu-card-bg: #fbf9f4;
    --wfc-menu-ink: #292720;
    --wfc-menu-muted: #81796c;
    --wfc-menu-red: #852d3b;
    --wfc-menu-gold: #b7a17b;
    --wfc-menu-line: #e1d9cc;

    width: 100%;
    color: var(--wfc-menu-ink);
    background: var(--wfc-menu-bg);
    font-family: "Noto Serif", "Noto Serif JP", Georgia, serif;
}

.wfc-menu-archive *,
.wfc-menu-archive *::before,
.wfc-menu-archive *::after {
    box-sizing: border-box;
}

.wfc-menu-archive a {
    text-decoration: none;
}

.wfc-menu-archive img {
    max-width: 100%;
}

/* Main container */

.wfc-menu-container {
    width: 100%;
    max-width: 1240px;
    margin-right: auto;
    margin-left: auto;
}

/* ---------------------------------------------------------
   2. MENU HERO
   --------------------------------------------------------- */

.wfc-menu-hero {
    position: relative;
    padding: 90px 24px 76px;
    background: var(--wfc-menu-bg);
    text-align: center;
}

.wfc-menu-hero__inner {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.wfc-menu-eyebrow {
    display: block;
    margin: 0 0 20px;
    color: var(--wfc-menu-red);
    font-family: Arial, sans-serif;
    font-size: 10px;
    font-weight: 400;
    line-height: 1.8;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.wfc-menu-hero__title {
    margin: 0;
    color: var(--wfc-menu-ink);
    font-family: "Noto Serif", "Noto Serif JP", Georgia, serif;
    font-size: clamp(38px, 5vw, 62px);
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: 0.015em;
}

/* Minimal ornament */

.wfc-menu-hero__ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 26px auto 0;
}

.wfc-menu-hero__ornament span {
    display: block;
    width: 5px;
    height: 5px;
    border: 1px solid var(--wfc-menu-gold);
    transform: rotate(45deg);
}

.wfc-menu-hero__ornament span:nth-child(2) {
    width: 34px;
    height: 1px;
    border: 0;
    background: var(--wfc-menu-gold);
    transform: none;
}

/* No hero short description */

.wfc-menu-archive .wfc-menu-hero__description {
    display: none !important;
}

/* ---------------------------------------------------------
   3. MENU SECTION
   --------------------------------------------------------- */

.wfc-menu-section {
    padding: 0 24px 100px;
    background: var(--wfc-menu-bg);
}

/* ---------------------------------------------------------
   4. CATEGORY NAVIGATION
   All Dishes | Omakase | ...
   --------------------------------------------------------- */

.wfc-menu-categories {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 36px;

    width: 100%;
    margin: 0 auto 34px;
    padding: 0 0 20px;

    border-bottom: 1px solid var(--wfc-menu-line);
}

.wfc-menu-category-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 10px 2px;

    color: var(--wfc-menu-muted);
    background: transparent;

    font-family: "Noto Serif", "Noto Serif JP", Georgia, serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.7;
    letter-spacing: 0.035em;

    white-space: nowrap;
    transition: color 0.25s ease;
}

/* Underline */

.wfc-menu-category-link::after {
    position: absolute;
    right: 0;
    bottom: 2px;
    left: 0;

    height: 1px;
    background: var(--wfc-menu-red);
    content: "";

    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

.wfc-menu-category-link:hover,
.wfc-menu-category-link.is-active {
    color: var(--wfc-menu-red);
}

.wfc-menu-category-link:hover::after,
.wfc-menu-category-link.is-active::after {
    transform: scaleX(1);
}

/* ---------------------------------------------------------
   5. CATEGORY HEADING / ALL MENU BACK LINK
   --------------------------------------------------------- */

.wfc-menu-category-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    margin: 0 0 28px;
    padding: 0 0 16px;

    border-bottom: 1px solid var(--wfc-menu-line);
}

.wfc-menu-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    color: var(--wfc-menu-ink);
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.8;
    letter-spacing: 0.04em;

    transition: color 0.25s ease;
}

.wfc-menu-back:hover {
    color: var(--wfc-menu-red);
}

.wfc-menu-back span {
    font-size: 17px;
    line-height: 1;
}

.wfc-menu-result-count {
    margin: 0;
    color: var(--wfc-menu-muted);
    font-family: Arial, sans-serif;
    font-size: 12px;
    line-height: 1.8;
    letter-spacing: 0.08em;
}

/* ---------------------------------------------------------
   6. MENU GRID
   --------------------------------------------------------- */

.wfc-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 42px 28px;
    width: 100%;
}

/* ---------------------------------------------------------
   7. MENU CARD
   Only image + title + price
   --------------------------------------------------------- */

.wfc-menu-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;

    overflow: hidden;

    background: var(--wfc-menu-card-bg);
    border: 0;

    transition:
        box-shadow 0.35s ease,
        transform 0.35s ease;
}

.wfc-menu-card:hover {
    box-shadow: 0 10px 28px rgb(41 39 32 / 7%);
    transform: translateY(-3px);
}

/* ---------------------------------------------------------
   8. MENU IMAGE
   Consistent image ratio
   --------------------------------------------------------- */

.wfc-menu-card__image {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;

    overflow: hidden;
    background: #e9e2d7;
}

.wfc-menu-card__image img,
.wfc-menu-card__photo {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;

    object-fit: cover;
    object-position: center;

    transition: transform 0.7s ease;
}

.wfc-menu-card__image:hover img {
    transform: scale(1.035);
}

/* ---------------------------------------------------------
   9. MENU CARD CONTENT
   --------------------------------------------------------- */

.wfc-menu-card__content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;

    padding: 18px 14px 20px;

    text-align: center;
}

/* Dish title */

.wfc-menu-card__title {
    width: 100%;
    margin: 0;

    color: var(--wfc-menu-ink);
    font-family: "Noto Serif", "Noto Serif JP", Georgia, serif;
    font-size: 19px;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0;

    overflow-wrap: anywhere;
}

.wfc-menu-card__title a {
    color: inherit;
    text-decoration: none;

    transition: color 0.25s ease;
}

.wfc-menu-card__title a:hover {
    color: var(--wfc-menu-red);
}

/* Price */

.wfc-menu-card__price {
    margin: 8px 0 0;

    color: var(--wfc-menu-red);
    font-family: "Noto Serif", Georgia, serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.7;
    letter-spacing: 0.015em;
}

/* Remove unused card content */

.wfc-menu-card__japanese,
.wfc-menu-card__subtitle,
.wfc-menu-card__description,
.wfc-menu-card__view,
.wfc-menu-card__link,
.wfc-menu-card__ornament {
    display: none !important;
}

/* ---------------------------------------------------------
   10. PAGINATION
   --------------------------------------------------------- */

.wfc-menu-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;

    margin-top: 55px;
}

.wfc-menu-pagination a,
.wfc-menu-pagination span {
    display: inline-flex;
    min-width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;

    padding: 0 10px;

    color: var(--wfc-menu-ink);
    border: 1px solid var(--wfc-menu-line);

    font-family: Arial, sans-serif;
    font-size: 12px;

    transition:
        color 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease;
}

.wfc-menu-pagination a:hover,
.wfc-menu-pagination .current {
    color: #fff;
    background: var(--wfc-menu-red);
    border-color: var(--wfc-menu-red);
}

/* ---------------------------------------------------------
   11. TABLET
   --------------------------------------------------------- */

@media (max-width: 991px) {
    .wfc-menu-hero {
        padding: 72px 22px 60px;
    }

    .wfc-menu-section {
        padding-right: 22px;
        padding-bottom: 75px;
        padding-left: 22px;
    }

    .wfc-menu-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 34px 22px;
    }

    .wfc-menu-card__title {
        font-size: 18px;
    }
}

/* ---------------------------------------------------------
   12. MOBILE
   Two columns
   --------------------------------------------------------- */

@media (max-width: 575px) {
    .wfc-menu-hero {
        padding: 55px 18px 44px;
    }

    .wfc-menu-eyebrow {
        margin-bottom: 15px;
        font-size: 9px;
        letter-spacing: 0.2em;
    }

    .wfc-menu-hero__title {
        font-size: 36px;
    }

    .wfc-menu-hero__ornament {
        margin-top: 20px;
    }

    .wfc-menu-section {
        padding: 0 15px 55px;
    }

    /* Category navigation scrolls horizontally */

    .wfc-menu-categories {
        justify-content: flex-start;
        flex-wrap: nowrap;
        gap: 25px;

        margin-bottom: 25px;
        padding-bottom: 14px;

        overflow-x: auto;
        overflow-y: hidden;

        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .wfc-menu-categories::-webkit-scrollbar {
        display: none;
    }

    .wfc-menu-category-link {
        flex: 0 0 auto;
        padding: 8px 0;
        font-size: 12px;
    }

    .wfc-menu-category-link::after {
        bottom: 1px;
    }

    .wfc-menu-category-heading {
        margin-bottom: 22px;
        padding-bottom: 13px;
    }

    .wfc-menu-back {
        gap: 7px;
        font-size: 10px;
    }

    .wfc-menu-result-count {
        font-size: 9px;
    }

    /* Two columns on mobile */

    .wfc-menu-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 26px 12px;
    }

    .wfc-menu-card {
        min-width: 0;
    }

    .wfc-menu-card__image {
        aspect-ratio: 4 / 3;
    }

    .wfc-menu-card__content {
        padding: 12px 4px 14px;
    }

    .wfc-menu-card__title {
        font-size: 14px;
        line-height: 1.55;
    }

    .wfc-menu-card__price {
        margin-top: 6px;
        font-size: 11px;
        line-height: 1.6;
        overflow-wrap: anywhere;
    }

    .wfc-menu-pagination {
        margin-top: 35px;
    }
}

/* ---------------------------------------------------------
   13. SMALL MOBILE
   --------------------------------------------------------- */

@media (max-width: 360px) {
    .wfc-menu-grid {
        gap: 22px 10px;
    }

    .wfc-menu-card__title {
        font-size: 13px;
    }

    .wfc-menu-card__price {
        font-size: 10px;
    }
}

/* ---------------------------------------------------------
   14. ACCESSIBILITY
   --------------------------------------------------------- */

.wfc-menu-archive a:focus-visible {
    outline: 2px solid var(--wfc-menu-red);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .wfc-menu-card,
    .wfc-menu-card__image img,
    .wfc-menu-category-link,
    .wfc-menu-category-link::after,
    .wfc-menu-card__title a {
        transition: none;
    }

    .wfc-menu-card:hover {
        transform: none;
    }
}
