@font-face {
    font-family: "Vazirmatn";
    src: url("assets/fonts/Vazirmatn-Regular.woff2?v=1") format("woff2");
    font-display: swap;
    font-style: normal;
    font-weight: 400;
}

@font-face {
    font-family: "Vazirmatn";
    src: url("assets/fonts/Vazirmatn-Bold.ttf?v=1") format("truetype");
    font-display: swap;
    font-style: normal;
    font-weight: 700;
}

@font-face {
    font-family: "Vazirmatn";
    src: url("assets/fonts/Vazirmatn-Bold.ttf?v=1") format("truetype");
    font-display: swap;
    font-style: normal;
    font-weight: 800;
}

@font-face {
    font-family: "Vazirmatn";
    src: url("assets/fonts/Vazirmatn-Bold.ttf?v=1") format("truetype");
    font-display: swap;
    font-style: normal;
    font-weight: 900;
}

:root {
    --paper: #fbf7ef;
    --paper-soft: #f3eee4;
    --ink: #000000;
    --muted: #000000;
    --teal: #00695f;
    --teal-soft: rgba(0, 105, 95, 0.12);
    --line: rgba(18, 11, 11, 0.18);
    --shadow: 0 18px 42px rgba(71, 52, 36, 0.08);
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
    background: var(--paper);
}

body {
    min-height: 100%;
    margin: 0;
    color: var(--ink);
    font-family: "Vazirmatn", Tahoma, Arial, sans-serif;
    background:
        radial-gradient(circle at 16% 8%, rgba(0, 105, 95, 0.06), transparent 18rem),
        radial-gradient(circle at 88% 24%, rgba(0, 105, 95, 0.05), transparent 16rem),
        linear-gradient(180deg, #fffdf8 0%, var(--paper) 42%, #f6f0e7 100%);
    overflow-x: hidden;
}

button,
input,
select {
    font: inherit;
}

.menu-ambient {
    display: none;
}

.menu-shell {
    width: min(760px, calc(100% - 28px));
    margin: 0 auto;
    padding: 28px 0 46px;
}

.menu-hero {
    position: relative;
    display: grid;
    gap: 12px;
    min-height: 0;
    padding: 26px 0 20px;
    border: 0;
    background: transparent;
    box-shadow: none;
    animation: menuRise 0.55s ease both;
}

.menu-hero::after {
    content: "";
    position: absolute;
    left: 50%;
    top: auto;
    bottom: 0;
    width: min(76%, 420px);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 105, 95, 0.54), transparent);
    transform: translateX(-50%);
    animation: menuLineSweep 2.8s ease-in-out infinite;
}

.menu-hero__copy {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    gap: 10px;
    text-align: center;
}

.menu-kicker {
    display: inline-flex;
    width: fit-content;
    padding: 6px 12px;
    border: 1px solid rgba(0, 105, 95, 0.22);
    border-radius: 999px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.46);
    font-size: 0.86rem;
    line-height: 1.6;
    text-decoration: none;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

a.menu-kicker:hover {
    transform: translateY(-1px);
    border-color: rgba(0, 105, 95, 0.38);
    background: rgba(255, 255, 255, 0.72);
}

.menu-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.menu-logo-wrap {
    display: grid;
    grid-template-columns: minmax(54px, 1fr) auto minmax(54px, 1fr);
    align-items: center;
    width: min(100%, 540px);
    gap: 18px;
}

.menu-logo-wrap span {
    display: block;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.28), rgba(0, 105, 95, 0.4));
    transform-origin: center;
    animation: menuLinePulse 2.4s ease-in-out infinite;
}

.menu-logo-wrap span:last-child {
    background: linear-gradient(90deg, rgba(0, 105, 95, 0.4), rgba(0, 0, 0, 0.28), transparent);
    animation-delay: 0.35s;
}

.menu-logo-wrap img {
    display: block;
    width: clamp(138px, 34vw, 210px);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 12px 18px rgba(71, 52, 36, 0.1));
    animation: menuLogoFloat 4.4s ease-in-out infinite;
}

.menu-hero__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.menu-hero__meta a {
    padding: 7px 12px;
    border: 1px solid rgba(18, 11, 11, 0.12);
    border-radius: 999px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.45);
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.6;
    text-decoration: none;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.menu-hero__meta a:hover {
    transform: translateY(-1px);
    border-color: rgba(0, 105, 95, 0.34);
    background: rgba(255, 255, 255, 0.72);
}

.menu-hero__mark {
    display: none;
}

.menu-branch-picker {
    margin-top: 20px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    animation: menuRise 0.55s 0.08s ease both;
}

.menu-branch-picker__head {
    display: grid;
    gap: 8px;
    margin-bottom: 22px;
    text-align: center;
}

.menu-branch-picker__head span {
    color: var(--muted);
    font-size: 0.92rem;
}

.menu-branch-picker__head h2 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(1.45rem, 6vw, 2.15rem);
    font-weight: 700;
    line-height: 1.5;
}

.menu-branch-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.menu-branch-card {
    position: relative;
    display: grid;
    min-height: 156px;
    gap: 10px;
    place-items: center;
    padding: 18px 12px;
    border: 1px solid rgba(18, 11, 11, 0.12);
    border-radius: var(--radius);
    color: var(--ink);
    text-align: center;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.55);
    box-shadow: var(--shadow);
    animation: menuCardIn 0.48s ease both;
    animation-delay: calc(var(--card-index, 0) * 42ms);
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.menu-branch-card:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 105, 95, 0.34);
    background: rgba(255, 255, 255, 0.74);
}

.menu-branch-card__icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border: 1px solid rgba(0, 105, 95, 0.24);
    border-radius: 50%;
    color: var(--ink);
    background: var(--teal-soft);
    font-size: 2rem;
    font-weight: 800;
}

.menu-branch-card__name {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.55;
}

.menu-branch-card small {
    color: var(--muted);
    font-size: 0.82rem;
}

.menu-list {
    display: grid;
    gap: 42px;
    margin-top: 8px;
}

.menu-section {
    border: 0;
    border-radius: 0;
    overflow: visible;
    background: transparent;
    box-shadow: none;
    scroll-margin-top: 24px;
    animation: menuRise 0.5s ease both;
}

.menu-section__head {
    display: grid;
    grid-template-columns: auto minmax(64px, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 0;
    margin: 16px 0 24px;
    border: 0;
    background: transparent;
}

.menu-section__head::before {
    content: "";
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 105, 95, 0.5), var(--line));
    animation: menuLinePulse 2.6s ease-in-out infinite;
}

.menu-section__head h2 {
    margin: 0;
    color: var(--ink);
    font-family: "Vazirmatn", Tahoma, Arial, sans-serif;
    font-size: clamp(1.7rem, 6vw, 2.55rem);
    font-weight: 800;
    line-height: 1.35;
    white-space: nowrap;
}

.menu-section__head span {
    color: var(--muted);
    font-size: 0.82rem;
    white-space: nowrap;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: clamp(44px, 5vw, 84px);
    row-gap: clamp(56px, 6vw, 86px);
    padding: 0;
}

.menu-card {
    position: relative;
    display: grid;
    gap: 14px;
    min-height: 0;
    padding: 0 clamp(8px, 1.4vw, 18px);
    overflow: visible;
    border: 0;
    border-radius: 0;
    color: var(--ink);
    text-align: center;
    background: transparent;
    animation: menuCardIn 0.48s ease both;
    animation-delay: calc(var(--card-index, 0) * 34ms);
}

.menu-card::after {
    content: "";
    position: absolute;
    left: 24%;
    right: 24%;
    top: min(40vw, 128px);
    height: 9px;
    border-radius: 50%;
    background: rgba(70, 45, 28, 0.08);
    filter: blur(4px);
    z-index: 0;
}

.menu-card__image {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: end center;
    width: min(100%, 340px);
    margin-inline: auto;
    aspect-ratio: 1.2;
    overflow: visible;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.menu-card__image img {
    display: block;
    width: 92%;
    height: 100%;
    margin-inline: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 10px rgba(56, 38, 24, 0.1));
    transform: translateY(0) scale(1);
    transition: transform 0.28s ease;
}

.menu-card:hover .menu-card__image img {
    transform: translateY(-3px) scale(1.025);
}

.menu-card__placeholder {
    display: grid;
    place-items: center;
    width: 76%;
    aspect-ratio: 1.25;
    border: 1px solid rgba(18, 11, 11, 0.1);
    border-radius: 999px 999px 12px 12px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.62);
    font-size: 2.35rem;
    font-weight: 700;
}

.menu-card__body {
    position: relative;
    z-index: 1;
    min-width: 0;
    padding: 0;
}

.menu-card__title-row {
    display: grid;
    justify-items: center;
    gap: 5px;
}

.menu-card h3 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(0.92rem, 2.4vw, 1.08rem);
    font-weight: 800;
    line-height: 1.55;
    text-transform: none;
}

.menu-card strong {
    width: fit-content;
    padding: 0;
    border: 0;
    border-radius: 0;
    color: var(--muted);
    background: transparent;
    font-size: 0.86rem;
    font-weight: 400;
    line-height: 1.6;
}

.menu-card p {
    display: none;
}

.menu-state,
.menu-empty {
    margin: 22px 0;
    padding: 24px;
    border: 1px solid rgba(18, 11, 11, 0.12);
    border-radius: var(--radius);
    color: var(--ink);
    text-align: center;
    background: rgba(255, 255, 255, 0.58);
    box-shadow: var(--shadow);
}

.menu-state h2 {
    margin: 0 0 8px;
    color: var(--ink);
}

.menu-state p,
.menu-empty {
    color: var(--muted);
}

.menu-state--error {
    border-color: rgba(179, 38, 30, 0.32);
}

@keyframes menuRise {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes menuCardIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes menuLinePulse {
    0%, 100% {
        opacity: 0.42;
        transform: scaleX(0.72);
    }
    50% {
        opacity: 1;
        transform: scaleX(1);
    }
}

@keyframes menuLineSweep {
    0%, 100% {
        opacity: 0.42;
        transform: translateX(-50%) scaleX(0.76);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) scaleX(1);
    }
}

@keyframes menuLogoFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

@media (max-width: 760px) {
    .menu-shell {
        width: min(100% - 24px, 560px);
        padding-top: 22px;
    }

    .menu-hero {
        padding-top: 18px;
    }

    .menu-hero::after {
        width: min(74%, 320px);
    }

    .menu-logo-wrap {
        gap: 12px;
    }

    .menu-logo-wrap img {
        width: clamp(124px, 42vw, 172px);
    }

    .menu-branch-grid {
        grid-template-columns: 1fr;
    }

    .menu-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 24px;
        row-gap: 44px;
        width: calc(100% - 28px);
        margin-inline: auto;
        justify-items: stretch;
    }

    .menu-card {
        padding-inline: 0;
    }

    .menu-card__image {
        width: 100%;
        max-width: 250px;
    }

    .menu-section__head {
        grid-template-columns: 1fr;
        gap: 8px;
        text-align: center;
    }

    .menu-section__head::before {
        width: min(260px, 76%);
        margin: 0 auto;
        order: 2;
    }

    .menu-section__head span {
        display: none;
    }
}

@media (max-width: 420px) {
    .menu-shell {
        width: 100%;
        padding: 18px 16px 40px;
    }

    .menu-logo-wrap {
        grid-template-columns: minmax(34px, 1fr) auto minmax(34px, 1fr);
    }

    .menu-grid {
        column-gap: 18px;
        row-gap: 40px;
        width: calc(100% - 24px);
    }

    .menu-card {
        gap: 10px;
        padding-inline: 0;
    }

    .menu-card__image img {
        width: 90%;
    }

    .menu-card h3 {
        font-size: 0.88rem;
    }

    .menu-card strong {
        font-size: 0.8rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.001ms !important;
    }
}
