@font-face {
    font-family: "YekanBakh";
    src: url("../font/YekanBakhFaNum-Regular.woff") format("truetype");
    font-weight: 500;
    font-style: normal;
}

body {
    height: 100vh;
    margin: 0;
    padding: 0;
    font-family: "YekanBakh";
    display: grid;
    place-items: center;
    background-color: var(--cl-bg-primary);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
}

button,
a {
    font-family: "YekanBakh";
}

li {
    list-style: none;
}

:root {
    --cl-bg-primary: #e2d5cd;
    --cl-primary: #d8c6bb;
    --cl-primary-light: #fff5ea;
    --cl-secondary: #36465c;
    --cl-secondary-darken: #34455b;
    --mobile-max-width: 486px;

    --fs-xs: 12px;
    --fs-sm: 14px;
    --fs-md: 16px;
    --fs-lg: 20px;
    --fs-xl: 26px;
}

.main-container {
    max-width: var(--mobile-max-width);
    width: 100%;
    background-color: var(--cl-secondary);
    
}

header {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
    gap: 1.5rem;
}

header h2 {
    color: var(--cl-primary);
    font-size: var(--fs-lg);
}

header a {
    color: var(--cl-primary);
    font-size: var(--fs-xl);
    font-weight: bold;
}

header ul {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
    gap: 1.5rem;
}
.header-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.header-logo img {
    width: 60px;
}
.btn {
    border-radius: 9rem;
    background-color: transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-sm {
    padding: .2rem .5rem;
}

.btn a {
    text-decoration: none;
    color: var(--cl-primary);
    font-weight: bold;
    font-size: var(--fs-xs);
    display: inline-block;
}

.btn.active {
    background-color: var(--cl-primary);
    border-color: var(--cl-primary);
}

.btn.active a {
    color: var(--cl-secondary);
}


.menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
}

.menu-btn div {
    width: 25px;
    height: 3px;
    background-color: var(--cl-primary);
    margin: 3px 0;
    transition: 0.4s;
}

.side-menu {
    display: block;
    position: fixed;
    top: 0;
    right: -250px;
    width: 250px;
    height: 100%;
    background-color: var(--cl-primary);
    color: var(--cl-secondary);
    padding: 60px 20px;
    transition: right 0.4s;
    z-index: 1000;
}

.side-menu ul {
    flex-direction: column;
    padding: 0;
    align-items: flex-start;
    gap: 0rem;
}

.side-menu a {
    display: block;
    margin: 20px 0;
    font-size: var(--fs-sm);
    text-decoration: none;
    color: var(--cl-secondary);
}

.side-menu.open {
    right: 0;
}


.close-btn {
    position: absolute;
    top: 0px;
    left: 20px;
    font-size: 40px;
    cursor: pointer;
    color: var(--cl-secondary);
}


.menu-btn.open div:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-btn.open div:nth-child(2) {
    opacity: 0;
}

.menu-btn.open div:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.menu-btn {
    display: none;
}

@media (max-width: 868px) {
    header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-direction: row-reverse;
        gap: 1.5rem;
    }

    .header-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-direction: row-reverse;

    }

    .header-logo {
        display: flex;
        flex-direction: row-reverse;
        align-items: center;
        gap: 0.5rem;
    }

    .header-logo img {
        width: 30px;
    }
    header h2 {
        color: var(--cl-primary);
        font-size: var(--fs-md);
    }

    .header-menu {
        display: none;
    }

    .menu-btn {
        display: flex;
        height: 35px;
        justify-content: flex-start;
    }

    header a {
        font-size: var(--fs-sm);
    }

    .list-container {
        gap: .5rem;
        margin-top: 16px;
    }

    .btn-sm {
        padding: .4rem .5rem;
    }

    .side-menu {
        display: block;
        position: fixed;
        top: 0;
        right: -250px;
        width: 250px;
        height: 100%;
        background-color: var(--cl-primary);
        color: var(--cl-secondary);
        padding: 60px 20px;
        transition: right 0.4s;
        z-index: 1000;
    }

    .side-menu ul {
        flex-direction: column;
        padding: 0;
        align-items: flex-start;
        gap: 0rem;
    }

    .side-menu a {
        display: block;
        margin: 20px 0;
        font-size: var(--fs-md);
        text-decoration: none;
        color: var(--cl-secondary);
    }

    .side-menu.open {
        right: 0;
    }


    .close-btn {
        position: absolute;
        top: 0px;
        left: 20px;
        font-size: 40px;
        cursor: pointer;
        color: var(--cl-secondary);
    }
}

.main-section,
.footer {
    padding: 1.25rem;
}

.main-title {
    font-size: var(--fs-md);
    color: var(--cl-primary);
    margin-top: 2rem;

}

.cafes-wrapper {
    margin-top: 2rem;
}

.cafe-card {
    display: flex;
    flex-direction: row-reverse;
    gap: 1.5rem;
    margin-bottom: 4rem;
    color: var(--cl-primary);
}


.cafe-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    gap: .6rem;
}

.cafe-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.cafe-title {
    font-size: var(--fs-sm);
    font-weight: bold;
    margin: 0;
    text-align: center;
}

.cafe-stars img {
    width: 80px;
}

.cafe-description {
    font-size: var(--fs-xs);
    line-height: 1.6;
    margin: 0;
    text-align: justify;
}

.cafe-line {
    width: 100%;
    height: 2px;
    background-color: var(--cl-primary);
    opacity: 0.6;
    margin: 0.5rem 0;
}

.cafe-action {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    width: 100%;
}

.cafe-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;

}

.cafe-location span {
    font-size: var(--fs-xs);
}

.location-icon {
    width: 20px;
    height: 20px;
}
.cafe-telephone{
    display: flex;
    align-items: center;
    gap: 0.5rem;

}
.cafe-details-info{
    display: flex;
    gap: 3rem;
}
.cafe-telephone span {
font-size: var(--fs-xs);
color: var(--cl-primary);
}
.telephone-icon{
    width: 17px;
    height: 17px;
}

.cafe-btn {
width: 100%;
height: auto;
}

.cafe-btn a {
background-color: var(--cl-primary);
color: var(--cl-secondary);
padding: 0.5rem 2.25rem;
border-radius: 20px;
font-size: var(--fs-sm);
font-weight: bold;
text-decoration: none;
float: left;

}

.cafe-img {
width: 100px;
height: 100px;
display: flex;
align-items: center;
}

.cafe-img img {
width: 100%;
height: 100%;
object-fit: cover;
border-radius: 20px;
}

@media (max-width: 430px) {
    .cafe-card{
        gap: 1rem;
    }
.cafe-title {
    font-size: var(--fs-xs);
    font-weight: bold;
    margin: 0;
    text-align: center;
}

.cafe-stars img {
    width: 70px;
}

.cafe-description {
    font-size: 10px;
    line-height: 1.6;
    margin: 0;
    text-align: justify;
}
    .cafe-location {
        gap: 0.25rem;
    }
.cafe-location span {
    font-size: 10px;

}
    .cafe-telephone{
        gap: 0.25rem;

    }

.cafe-stars img {
    width: 70px;
}
    .cafe-details-info{
        display: flex;
        justify-content: space-between;
        gap: 0rem !important;
    }
    .cafe-telephone span {
        font-size: 12px;

    }

}

.footer {
background-color: var(--cl-secondary);
color: var(--cl-primary);
text-align: center;
direction: rtl;
width: 100%;
height: fit-content;
display: flex;
align-items: center;
justify-content: center;
}

.footer-content {
background-color: var(--cl-secondary);
display: flex;
flex-direction: column;
align-items: center;
padding: 15px;
width: 100%;
}

.footer-title {
font-size: var(--fs-xl);
font-weight: bold;
margin-bottom: 5px;
}

.footer-slogan {
font-size: var(--fs-lg);
margin-bottom: 20px;
font-weight: bold;
color: var(--cl-primary);
}

.footer-info-container {
gap: .5rem;
display: flex;
font-size: var(--fs-sm);
line-height: 1.8;
color: var(--cl-primary);
flex-direction: column;
width: 100%;
}

.footer-info-container a {
color: var(--cl-primary);
text-decoration: none;
transition: color 0.3s ease;
}

.footer-info {
display: flex;
justify-content: space-between;
align-items: center;
text-align: justify;
}

.footer-info-line {
border: 1px solid var(--cl-primary);
width: 150px;
}

.footer-line {
margin: 25px auto;
width: 100%;
border: none;
border-top: 2px solid var(--cl-primary);
;
}

.footer-bottom {
font-size: var(--fs-sm);
color: var(--cl-primary);
line-height: 1.8;
}

.footer-bottom p:first-child {
font-weight: bold;
color: var(--cl-primary);
direction: ltr;
}


@media (max-width: 868px) {


.footer-title {
    font-size: 20px;
}

.footer-info-container {
    font-size: 12px;
    width: 300px;
}

.footer-bottom {
    font-size: 11px;
}

.footer-info-line {
    border: 1px solid var(--cl-primary);
    width: 120px;
}

}
