* {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    box-sizing: border-box;
}

/* Navbar */
.navbar {
    display: flex;
    flex-direction: row;
    height: 75px;
    box-shadow: 1px 1px 0px 0px black;
    background-color: rgb(245, 245, 245);
    width: 100%;
}

#m1img {
    width: 120px;
    height: auto;
    margin-left: 15px;
}

.nav-link:hover {
    text-decoration: underline;
}

/* about restaurant */
#container1 {
    display: flex;
    flex-direction: column;
    margin-top: 80px;
    padding: 20px;
    align-items: center;
    text-align: justify;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.img1 {
    width: 100%;
    max-width: 900px;
    border-radius: 10px;
    height: auto;
}

.img1:hover {
    box-shadow: 0.5px 0.5px 3px 3px rgb(0, 73, 122);
}

.cont1-1 {
    width: 100%;
    margin-top: 20px;
}

/* Cards Section /qualities of restaurant */
.cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 30px;
}

.card {
    flex: 1 1 calc(45% - 40px); 
    max-width: 500px;
    min-width: 250px;
    border: none;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0px 1px 4px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.2s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}

.card-title {
    font-weight: 600;
    font-size: 18px;
    text-align: center;
    margin-top: 10px;
    filter: drop-shadow(1px 1px 0px rgba(57, 102, 238, 0.6));
}

/* Footer Nav */
#nav {
    background-color: rgba(245, 245, 245, 0.9);
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    padding: 15px;
    box-shadow: 0px 0px 1px 1px black;
}

#nav-link {
    text-decoration: none;
    color: black;
    font-size: 14px;
    opacity: 0.8;
}

#nav-link:hover {
    text-decoration: underline;
}

/* =========================
   MEDIA QUERIES
   ========================= */
@media (max-width: 1024px) {
    .card {
        flex: 1 1 calc(50% - 20px); /* 2 per row on tablets */
    }
    #m1img {
        width: 100px;
    }
}

@media (max-width: 768px) {
    .card {
        flex: 1 1 100%; /* 1 per row on small screens */
    }
    #container1 h2 {
        font-size: 22px;
        text-align: center;
    }
    #container1 p {
        font-size: 15px;
    }
}

@media (max-width: 410px) {
    #container1 h2 {
        font-size: 18px;
    }
    .card-title {
        font-size: 15px;
    }
    #nav {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
}
