/**
 * Wong Dynasty — Menu Frontend Styles
 * GBS Agency | assets/css/menu.css
 *
 * Structural layout only. Typography and colors are controlled
 * via the Elementor widget Style panel — no overrides needed here.
 */


/* ── Section note ────────────────────────────────────────────────────────────── */

.wd-menu-section__note {
    font-style: italic;
    margin: 0 0 1.25rem;
    padding: 0.625rem 0.875rem;
    border-left: 3px solid #c8a96e;
    background: rgba(200, 169, 110, 0.07);
}


/* ── Sub-group heading ───────────────────────────────────────────────────────── */

.wd-menu-subgroup {
    margin-bottom: 1.5rem;
}

.wd-menu-subgroup__title {
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 1.5rem 0 0.5rem;
    padding-bottom: 0.375rem;
    border-bottom: 1px solid #e5e5e5;
}


/* ── Item card ───────────────────────────────────────────────────────────────── */

.wd-menu-item {
    display: flex;
    gap: 0.875rem;
    padding: 0.875rem 0;
    border-bottom: 1px solid #f0f0f0;
    align-items: flex-start;
}

.wd-menu-item:last-child {
    border-bottom: none;
}

/* Photo */
.wd-menu-item__photo {
    flex: 0 0 80px;
    width: 80px;
}

.wd-menu-item__photo img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

@media ( min-width: 600px ) {
    .wd-menu-item__photo     { flex: 0 0 100px; width: 100px; }
    .wd-menu-item__photo img { width: 100px; height: 100px; }
}

/* Body */
.wd-menu-item__body {
    flex: 1 1 auto;
    min-width: 0;
}


/* ── Item header ─────────────────────────────────────────────────────────────── */

.wd-menu-item__header {
    margin-bottom: 0;
}

.wd-menu-item__code {
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-right: 0.35rem;
}

/* Name — flex so dietary icon sits inline and cannot orphan below */
.wd-menu-item__name {
    margin: 0;
    line-height: 1.3;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.25rem;
}

/* Last word + icon — nowrap prevents icon orphaning on narrow columns */
.wd-menu-item__name-end {
    white-space: nowrap;
}

/* Dietary icons */
.wd-menu-item__dietary {
    display: inline-flex;
    gap: 0.15rem;
    align-items: center;
    flex-shrink: 0;
    margin-left: 0.3rem;
    vertical-align: middle;
}

.wd-dietary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    line-height: 1;
    cursor: default;
}


/* ── Description ─────────────────────────────────────────────────────────────── */

.wd-menu-item__desc {
    margin: 0.2rem 0 0 !important;
    padding: 0 !important;
    line-height: 1.5;
}


/* ── Prices ──────────────────────────────────────────────────────────────────── */

.wd-menu-item__prices {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.75rem;
    align-items: baseline;
    margin-top: 0.15rem;
}

.wd-price {
    white-space: nowrap;
}

.wd-price-row {
    display: inline-flex;
    align-items: baseline;
    gap: 0.375rem;
    white-space: nowrap;
}

.wd-price-label {
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}


/* ── 2-column layout ─────────────────────────────────────────────────────────── */

.wd-menu-section--2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 2rem;
}

/* Sub-group headings span full width in 2-col mode */
.wd-menu-section--2col .wd-menu-subgroup {
    grid-column: 1 / -1;
}

@media ( max-width: 767px ) {
    .wd-menu-section--2col {
        grid-template-columns: 1fr;
    }
}


/* ── Admin-only error placeholder ───────────────────────────────────────────── */

.wd-menu-error {
    background: #fff3cd;
    border: 1px solid #ffc107;
    padding: 0.5rem 0.875rem;
    border-radius: 3px;
    font-size: 0.875rem;
    color: #555;
}


/* ── Function Menu — Package Cards ───────────────────────────────────────────
 * Used on the Private Parties page (private-functions).
 * 3-column grid on desktop, single column on mobile.
 * Colors: Deep Espresso header, Parchment body, Gold border.
 * ─────────────────────────────────────────────────────────────────────────── */

.wd-function-menu {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

@media ( max-width: 767px ) {
    .wd-function-menu {
        grid-template-columns: 1fr;
    }
}

/* Card shell */
.wd-function-card {
    display: flex;
    flex-direction: column;
    border: 2px solid #C9920A;
    border-radius: 6px;
    overflow: hidden;
    background: #F5EFE0;
}

/* Dark header */
.wd-function-card__header {
    background: #3A1E10;
    padding: 1rem 1.25rem 0.875rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.wd-function-card__name {
    display: block;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1.2;
}

.wd-function-card__price {
    display: block;
    color: #C9920A;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* Parchment body */
.wd-function-card__body {
    padding: 1.125rem 1.25rem 1.25rem;
    flex: 1 1 auto;
}

/* Section (Appetizers / Sides / Entrees) */
.wd-function-section {
    margin-bottom: 1rem;
}

.wd-function-section:last-child {
    margin-bottom: 0;
}

.wd-function-section__title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #1C0D06;
    margin: 0 0 0.375rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid #C9920A;
}

.wd-function-section__list {
    margin: 0;
    padding: 0 0 0 1.1rem;
    list-style: disc;
}

.wd-function-section__list li {
    color: #1C0D06;
    font-size: 0.9375rem;
    line-height: 1.6;
    padding: 0;
    margin: 0;
}
