
/* =====================================================
   کافه کایا
   طراحی Liquid Glass
   Mobile First
===================================================== */


/* =====================================================
   VARIABLES
===================================================== */

:root {

    --bg: #080808;

    --white: rgba(255, 255, 255, .94);

    --text: rgba(255, 255, 255, .92);

    --muted: rgba(255, 255, 255, .50);

    --faint: rgba(255, 255, 255, .25);

    --border: rgba(255, 255, 255, .09);

    --border-light: rgba(255, 255, 255, .15);

    --glass:
        rgba(255, 255, 255, .055);

    --glass-strong:
        rgba(255, 255, 255, .085);

    --radius:
        22px;

    --ease:
        cubic-bezier(.22, 1, .36, 1);

}


/* =====================================================
   RESET
===================================================== */

* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

}


html {

    scroll-behavior: smooth;

    background:
        var(--bg);

}


body {

    min-width: 320px;

    overflow-x: hidden;

    background:

        radial-gradient(
            circle at 50% -10%,
            rgba(255,255,255,.06),
            transparent 34%
        ),

        var(--bg);

    color:
        var(--text);

    font-family:
        "Vazirmatn",
        sans-serif;

    -webkit-font-smoothing:
        antialiased;

}


body.sheet-open {

    overflow:
        hidden;

}


button,
a {

    font-family:
        inherit;

}


button {

    border:
        0;

    cursor:
        pointer;

}


img {

    display:
        block;

    width:
        100%;

}


a {

    color:
        inherit;

    text-decoration:
        none;

}


/* =====================================================
   AMBIENT LIGHT
===================================================== */

.ambient {

    position:
        fixed;

    width:
        280px;

    height:
        280px;

    border-radius:
        50%;

    filter:
        blur(110px);

    opacity:
        .09;

    pointer-events:
        none;

    z-index:
        -10;

}


.ambient-1 {

    top:
        5%;

    left:
        -190px;

    background:
        #ff9d52;

}


.ambient-2 {

    top:
        60%;

    right:
        -190px;

    background:
        #b59a7c;

}


/* =====================================================
   GLASS
===================================================== */

.glass {

    background:
        var(--glass);

    border:
        1px solid var(--border);

    backdrop-filter:
        blur(25px)
        saturate(140%);

    -webkit-backdrop-filter:
        blur(25px)
        saturate(140%);

}


/* =====================================================
   HEADER
===================================================== */

.header {

    position:
        fixed;

    top:
        0;

    right:
        0;

    left:
        0;

    z-index:
        100;

    padding:
        max(12px, env(safe-area-inset-top))
        12px
        0;

}


.header-inner {

    height:
        58px;

    max-width:
        650px;

    margin:
        auto;

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    padding:
        0 8px 0 14px;

    border:
        1px solid var(--border);

    border-radius:
        999px;

    background:
        rgba(12,12,12,.72);

    backdrop-filter:
        blur(30px)
        saturate(140%);

    -webkit-backdrop-filter:
        blur(30px)
        saturate(140%);

    box-shadow:
        0 15px 50px rgba(0,0,0,.25);

}


.brand {

    display:
        flex;

    align-items:
        center;

    gap:
        9px;

}


.brand-symbol {

    width:
        35px;

    height:
        35px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    border:
        1px solid var(--border-light);

    border-radius:
        50%;

    background:
        rgba(255,255,255,.06);

    font-size:
        14px;

}


.brand-info {

    display:
        flex;

    flex-direction:
        column;

    line-height:
        1.2;

}


.brand-info strong {

    font-size:
        12px;

    font-weight:
        500;

}


.brand-info span {

    margin-top:
        3px;

    color:
        var(--faint);

    font-size:
        7px;

}


.header-button {

    width:
        40px;

    height:
        40px;

    display:
        flex;

    flex-direction:
        column;

    align-items:
        center;

    justify-content:
        center;

    gap:
        5px;

    border:
        1px solid var(--border);

    border-radius:
        50%;

    background:
        rgba(255,255,255,.045);

}


.header-button span {

    width:
        13px;

    height:
        1px;

    background:
        rgba(255,255,255,.7);

}


/* =====================================================
   HERO
===================================================== */

.hero {

    position:
        relative;

    min-height:
        100svh;

    overflow:
        hidden;

    display:
        flex;

    align-items:
        flex-end;

    padding:
        130px 20px
        max(75px, env(safe-area-inset-bottom));

}


.hero-image {

    position:
        absolute;

    inset:
        0;

    z-index:
        -4;

}


.hero-image img {

    width:
        100%;

    height:
        100%;

    object-fit:
        cover;

    opacity:
        .55;

    transform:
        scale(1.05);

    animation:
        heroZoom 14s ease-out forwards;

}


@keyframes heroZoom {

    from {
        transform:
            scale(1.12);
    }

    to {
        transform:
            scale(1.05);
    }

}


.hero-overlay {

    position:
        absolute;

    inset:
        0;

    z-index:
        -3;

    background:

        linear-gradient(
            to bottom,
            rgba(0,0,0,.15),
            transparent 32%,
            rgba(0,0,0,.72) 70%,
            #080808 100%
        );

}


.hero-glow {

    position:
        absolute;

    width:
        350px;

    height:
        350px;

    bottom:
        -210px;

    left:
        -130px;

    border-radius:
        50%;

    background:
        rgba(255,145,70,.12);

    filter:
        blur(90px);

}


.hero-content {

    width:
        100%;

    max-width:
        600px;

    margin:
        auto;

}


.hero-badge {

    width:
        fit-content;

    display:
        flex;

    align-items:
        center;

    gap:
        7px;

    padding:
        8px 12px;

    border:
        1px solid rgba(255,255,255,.10);

    border-radius:
        999px;

    background:
        rgba(255,255,255,.045);

    backdrop-filter:
        blur(20px);

    color:
        var(--muted);

    font-size:
        8px;

    animation:
        fadeUp .8s var(--ease) both;

}


.hero-badge span {

    color:
        white;

}


.hero h1 {

    margin-top:
        26px;

    font-size:
        clamp(68px, 22vw, 120px);

    line-height:
        .8;

    font-weight:
        400;

    letter-spacing:
        -.09em;

    animation:
        fadeUp .9s .08s var(--ease) both;

}


.hero h1 span {

    display:
        block;

    margin-top:
        16px;

    color:
        rgba(255,255,255,.42);

    font-size:
        .43em;

    font-weight:
        300;

    letter-spacing:
        -.05em;

}


.hero p {

    max-width:
        290px;

    margin-top:
        28px;

    color:
        var(--muted);

    font-size:
        10px;

    line-height:
        2.2;

    animation:
        fadeUp .9s .16s var(--ease) both;

}


.hero-button {

    margin-top:
        23px;

    display:
        flex;

    align-items:
        center;

    gap:
        15px;

    padding:
        7px 7px 7px 17px;

    border-radius:
        999px;

    background:
        white;

    color:
        #080808;

    font-size:
        10px;

    animation:
        fadeUp .9s .24s var(--ease) both;

}


.hero-button b {

    width:
        32px;

    height:
        32px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    border-radius:
        50%;

    background:
        #080808;

    color:
        white;

    font-size:
        13px;

    font-weight:
        400;

}


.hero-scroll {

    position:
        absolute;

    bottom:
        29px;

    left:
        20px;

    display:
        flex;

    align-items:
        center;

    gap:
        8px;

    color:
        var(--faint);

    font-size:
        7px;

}


.scroll-indicator {

    width:
        25px;

    height:
        1px;

    overflow:
        hidden;

    background:
        rgba(255,255,255,.15);

}


.scroll-indicator span {

    display:
        block;

    width:
        50%;

    height:
        100%;

    background:
        white;

    animation:
        scrollLine 2s infinite ease-in-out;

}


@keyframes scrollLine {

    0% {
        transform:
            translateX(200%);
    }

    50% {
        transform:
            translateX(0);
    }

    100% {
        transform:
            translateX(-200%);
    }

}


@keyframes fadeUp {

    from {

        opacity:
            0;

        transform:
            translateY(20px);

    }

    to {

        opacity:
            1;

        transform:
            translateY(0);

    }

}


/* =====================================================
   MENU
===================================================== */

.menu-section {

    padding:
        75px 0 100px;

}


.container {

    width:
        calc(100% - 28px);

    max-width:
        1120px;

    margin:
        auto;

}


.section-header {

    margin-bottom:
        25px;

}


.section-overline {

    color:
        var(--faint);

    font-size:
        8px;

}


.section-header h2 {

    margin-top:
        10px;

    font-size:
        35px;

    line-height:
        1.25;

    font-weight:
        400;

    letter-spacing:
        -.055em;

}


.section-header h2 span {

    color:
        rgba(255,255,255,.34);

}


.section-header p {

    margin-top:
        8px;

    color:
        var(--muted);

    font-size:
        9px;

}


/* =====================================================
   CATEGORIES
===================================================== */

.categories-container {

    position:
        sticky;

    top:
        calc(
            78px +
            env(safe-area-inset-top)
        );

    z-index:
        50;

    margin-bottom:
        18px;

}


.categories {

    width:
        100%;

    display:
        flex;

    gap:
        3px;

    padding:
        4px;

    overflow-x:
        auto;

    border-radius:
        999px;

    background:
        rgba(13,13,13,.82);

    box-shadow:
        0 12px 35px rgba(0,0,0,.25);

    scrollbar-width:
        none;

}


.categories::-webkit-scrollbar {

    display:
        none;

}


.category {

    flex:
        0 0 auto;

    min-height:
        37px;

    padding:
        0 14px;

    border-radius:
        999px;

    background:
        transparent;

    color:
        var(--muted);

    font-size:
        9px;

    white-space:
        nowrap;

    transition:
        .35s var(--ease);

}


.category.active {

    background:
        white;

    color:
        #080808;

}


/* =====================================================
   MOBILE GRID
   دو ستون
===================================================== */

.menu-grid {

    display:
        grid;

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

    gap:
        10px;

}


/* =====================================================
   CARD
===================================================== */

.menu-card {

    min-width:
        0;

    overflow:
        hidden;

    border:
        1px solid var(--border);

    border-radius:
        var(--radius);

    background:
        var(--glass);

    backdrop-filter:
        blur(18px);

    -webkit-backdrop-filter:
        blur(18px);

    cursor:
        pointer;

    transition:
        transform .5s var(--ease),
        background .4s ease;

}


.card-image {

    position:
        relative;

    aspect-ratio:
        .92;

    overflow:
        hidden;

}


.card-image img {

    width:
        100%;

    height:
        100%;

    object-fit:
        cover;

    transition:
        transform .8s var(--ease);

}


.card-gradient {

    position:
        absolute;

    inset:
        0;

    background:
        linear-gradient(
            to top,
            rgba(0,0,0,.62),
            transparent 55%
        );

}


.card-badge {

    position:
        absolute;

    top:
        9px;

    right:
        9px;

    padding:
        5px 8px;

    border:
        1px solid rgba(255,255,255,.12);

    border-radius:
        999px;

    background:
        rgba(0,0,0,.32);

    backdrop-filter:
        blur(12px);

    color:
        rgba(255,255,255,.82);

    font-size:
        6px;

}


.card-add {

    position:
        absolute;

    left:
        9px;

    bottom:
        9px;

    width:
        28px;

    height:
        28px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    border:
        1px solid rgba(255,255,255,.13);

    border-radius:
        50%;

    background:
        rgba(0,0,0,.34);

    backdrop-filter:
        blur(15px);

    color:
        white;

    font-size:
        17px;

    font-weight:
        300;

}


.card-content {

    padding:
        12px 11px 13px;

}


.card-content h3 {

    overflow:
        hidden;

    white-space:
        nowrap;

    text-overflow:
        ellipsis;

    font-size:
        13px;

    font-weight:
        500;

    letter-spacing:
        -.025em;

}


.card-content p {

    min-height:
        31px;

    margin-top:
        5px;

    overflow:
        hidden;

    display:
        -webkit-box;

    -webkit-line-clamp:
        2;

    -webkit-box-orient:
        vertical;

    color:
        var(--muted);

    font-size:
        7px;

    line-height:
        1.9;

}


.card-footer {

    display:
        flex;

    justify-content:
        flex-start;

    margin-top:
        9px;

}


.price {

    display:
        flex;

    align-items:
        baseline;

    gap:
        3px;

    font-size:
        11px;

    font-weight:
        500;

}


.price small {

    color:
        var(--faint);

    font-size:
        6px;

    font-weight:
        400;

}


/* =====================================================
   REVEAL
===================================================== */

.reveal {

    opacity:
        0;

    transform:
        translateY(20px);

    transition:
        opacity .7s var(--ease),
        transform .7s var(--ease);

}


.reveal.visible {

    opacity:
        1;

    transform:
        translateY(0);

}


/* =====================================================
   FOOTER
===================================================== */

.footer {

    padding:
        65px 20px
        max(30px, env(safe-area-inset-bottom));

    text-align:
        center;

    border-top:
        1px solid var(--border);

}


.footer-brand {

    font-size:
        22px;

    font-weight:
        500;

    letter-spacing:
        -.05em;

}


.footer p {

    margin-top:
        8px;

    color:
        var(--faint);

    font-size:
        8px;

}


.footer-divider {

    width:
        35px;

    height:
        1px;

    margin:
        28px auto;

    background:
        var(--border-light);

}


.footer > span {

    color:
        rgba(255,255,255,.18);

    font-size:
        7px;

}


/* =====================================================
   BOTTOM SHEET
===================================================== */

.sheet {

    position:
        fixed;

    inset:
        0;

    z-index:
        500;

    visibility:
        hidden;

    pointer-events:
        none;

}


.sheet.active {

    visibility:
        visible;

    pointer-events:
        auto;

}


.sheet-backdrop {

    position:
        absolute;

    inset:
        0;

    background:
        rgba(0,0,0,.70);

    backdrop-filter:
        blur(12px);

    -webkit-backdrop-filter:
        blur(12px);

    opacity:
        0;

    transition:
        opacity .4s ease;

}


.sheet.active .sheet-backdrop {

    opacity:
        1;

}


.sheet-panel {

    position:
        absolute;

    right:
        0;

    bottom:
        0;

    left:
        0;

    max-height:
        92svh;

    overflow-y:
        auto;

    border:
        1px solid var(--border-light);

    border-bottom:
        0;

    border-radius:
        30px 30px 0 0;

    background:
        rgba(17,17,17,.96);

    backdrop-filter:
        blur(35px);

    -webkit-backdrop-filter:
        blur(35px);

    transform:
        translateY(105%);

    transition:
        transform .6s var(--ease);

}


.sheet.active .sheet-panel {

    transform:
        translateY(0);

}


.sheet-handle {

    position:
        absolute;

    top:
        9px;

    right:
        50%;

    width:
        36px;

    height:
        4px;

    transform:
        translateX(50%);

    border-radius:
        999px;

    background:
        rgba(255,255,255,.25);

    z-index:
        5;

}


.sheet-image {

    position:
        relative;

    width:
        100%;

    aspect-ratio:
        1.05;

}


.sheet-image img {

    width:
        100%;

    height:
        100%;

    object-fit:
        cover;

}


.sheet-close {

    position:
        absolute;

    top:
        17px;

    left:
        15px;

    width:
        40px;

    height:
        40px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    border:
        1px solid rgba(255,255,255,.14);

    border-radius:
        50%;

    background:
        rgba(0,0,0,.42);

    backdrop-filter:
        blur(15px);

    color:
        white;

    font-size:
        23px;

}


.sheet-content {

    padding:
        20px 18px
        max(25px, env(safe-area-inset-bottom));

}


.sheet-category {

    color:
        var(--faint);

    font-size:
        8px;

}


.sheet-content h2 {

    margin-top:
        7px;

    font-size:
        27px;

    font-weight:
        500;

    letter-spacing:
        -.05em;

}


.sheet-content p {

    margin-top:
        12px;

    color:
        var(--muted);

    font-size:
        9px;

    line-height:
        2.2;

}


.sheet-price {

    margin-top:
        20px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    padding:
        14px;

    border:
        1px solid var(--border);

    border-radius:
        17px;

    background:
        rgba(255,255,255,.04);

}


.sheet-price span {

    color:
        var(--muted);

    font-size:
        8px;

}


.sheet-price strong {

    font-size:
        13px;

    font-weight:
        500;

}


/* =====================================================
   TABLET
===================================================== */

@media (min-width: 600px) {

    .container {

        width:
            calc(100% - 50px);

    }


    .menu-grid {

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

        gap:
            16px;

    }


    .card-content {

        padding:
            15px;

    }


    .card-content h3 {

        font-size:
            15px;

    }


    .card-content p {

        font-size:
            8px;

    }

}


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

@media (min-width: 900px) {

    .header {

        padding:
            18px 20px 0;

    }


    .hero {

        min-height:
            100vh;

        padding:
            150px 60px 90px;

    }


    .hero h1 {

        font-size:
            clamp(100px, 12vw, 155px);

    }


    .menu-section {

        padding-top:
            110px;

    }


    .section-header h2 {

        font-size:
            50px;

    }


    .menu-grid {

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

        gap:
            18px;

    }


    .menu-card:hover {

        transform:
            translateY(-5px);

        background:
            var(--glass-strong);

    }


    .menu-card:hover .card-image img {

        transform:
            scale(1.06);

    }


    .card-image {

        aspect-ratio:
            1.05;

    }


    .card-content h3 {

        font-size:
            16px;

    }


    .card-content p {

        font-size:
            9px;

    }


    /* دسکتاپ: Bottom Sheet وسط صفحه */

    .sheet {

        display:
            flex;

        align-items:
            center;

        justify-content:
            center;

        padding:
            30px;

    }


    .sheet-panel {

        position:
            relative;

        width:
            100%;

        max-width:
            500px;

        max-height:
            90vh;

        border:
            1px solid var(--border-light);

        border-radius:
            30px;

        opacity:
            0;

        transform:
            translateY(30px) scale(.97);

        transition:
            transform .6s var(--ease),
            opacity .4s ease;

    }


    .sheet.active .sheet-panel {

        opacity:
            1;

        transform:
            translateY(0) scale(1);

    }

}
.footer-credit {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: rgba(255, 255, 255, .22);
    font-size: 8px;
}

.footer-credit a {
    color: rgba(255, 255, 255, .55);
    text-decoration: none;
    transition:
        color .3s ease,
        opacity .3s ease;
}

.footer-credit a:hover {
    color: rgba(255, 255, 255, .95);
}



/* =====================================================
   ACCESSIBILITY
===================================================== */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior:
            auto;
    }


    *,
    *::before,
    *::after {

        animation-duration:
            .01ms !important;

        animation-iteration-count:
            1 !important;

        transition-duration:
            .01ms !important;

    }

}

/* =====================================================
   PREVIEW BANNER
===================================================== */
.preview-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 10px 16px max(10px, env(safe-area-inset-bottom));
    background: rgba(0, 0, 0, .82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--border-light);
    color: var(--muted);
    font-size: 11px;
    text-align: center;
}

.preview-banner a {
    font-weight: 700;
    color: var(--white);
    text-decoration: underline;
}
