/* فونت */
@font-face {
    font-family: IranNastaliq;
    src: url(../font/IranNastaliq.woff2) format("woff2"),
        url(../font/IranNastaliq.woff) format("woff"),
        url(../font/IranNastaliq.ttf) format("truetype");
}

/* بدنه */
body {
    direction: rtl;
    font-family: IranNastaliq, serif;
    background-color: rgb(167, 133, 76);
    min-height: 120vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
}

/* عنوان اصلی */
#p1 {
    margin: 0;
    font-size: clamp(30px, 8vw, 100px);
    /* ریسپانسیو */
    color: #413110;
    margin-bottom: 30px;
    padding: 10px 20px;
    border-radius: 12px;
    text-align: center;
}

/* منو */
.menu-b {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 600px;
}

/* آیتم‌های منو */
.menu-item {
    position: relative;
    height: 200px;
    border-radius: 15px;
    overflow: hidden;
    text-decoration: none;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: clamp(24px, 6vw, 80px);
    font-weight: 300;
    transition: transform 0.3s ease;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.6);
    /* خوانایی بهتر */
}

/* افکت هاور */
.menu-item:hover {
    transform: scale(1.03);
}

/* بک‌گراند تاریک روی عکس */
.menu-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.2);
}

/* تصاویر بک‌گراند */
#m1 {
    background-image: url(../image/001.png);
    background-size: cover;
    background-position: center;
}

#m2 {
    background-image: url(../image/002.webp);
    background-size: cover;
    background-position: center;
}

/* متن‌های کوچک */
#k1 {
    margin-top: 25px;
    font-size: clamp(18px, 4vw, 40px);
    color: #413110;
    margin-bottom: 0;
    padding: 10px 20px;
    border-radius: 12px;
    text-align: center;
}

#k2 {
    font-size: clamp(18px, 4vw, 40px);
    color: #413110;
    margin: 0;
    border-radius: 12px;
    text-align: center;
}

/* اسپن */
span {
    font-family: IranNastaliq;
    font-size: clamp(18px, 4vw, 40px);
    color: #413110;
    padding: 10px 20px;
    border-radius: 12px;
}

/* تیتر دوم */
#p2 {
    margin: 0;
    font-size: clamp(20px, 6vw, 70px);
    color: #413110;
    margin-bottom: 30px;
    border-radius: 12px;
    text-align: center;
}

/* ریسپانسیو برای موبایل */
@media screen and (max-width:768px) {
    body {
        padding: 10px;
        background-attachment: scroll;
        background-position: top;
    }

    .menu-b {
        gap: 15px;
        max-width: 100%;
    }

    .menu-item {
        height: 120px;
    }
}