/* =========================
   GLOBAL RESET
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    height: 100vh;
    overflow: hidden;
}

/* =========================
   NAVBAR
========================= */
.navbar {

    height: 60px;

    width: 100%;

    background: #111;

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 0 60px;
}

.logo {
    color: gold;
    font-size: 22px;
    font-weight: bold;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 50px;
}

.nav-links li a {
    text-decoration: none;
    color: white;
    transition: 0.3s;
}

.nav-links li a:hover {
    color: gold;
}

/* =========================
   NAVIGATION BUTTONS
========================= */

.nav-btn {

    display: inline-block;

    background-color: gold;

    color: black !important;

    text-decoration: none;

    font-weight: bold;

    padding: 3px 10px;

    border-radius: 5px;

    transition: 0.3s ease;
}

.nav-btn:hover {

    background-color: #d4af37;

    transform: translateY(-2px);
}


/* =========================
   HERO SECTION
========================= */

.hero-section {

    height: 25vh;

    background-image:
        linear-gradient(
            rgba(0,0,0,0.55),
            rgba(0,0,0,0.55)
        ),
        url("../images/hero.jpg");

    background-size: cover;
    background-position: center;

    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-overlay {

    text-align: center;
    color: white;
}

.hero-overlay h1 {

    font-size: 2.5rem;
    margin-bottom: 10px;
}

.hero-overlay p {

    margin-bottom: 20px;
}

.hero-buttons {

    display: flex;

    justify-content: center;

    gap: 15px;
}

.btn-primary,
.btn-secondary {

    padding: 12px 24px;

    text-decoration: none;

    border-radius: 5px;

    font-weight: bold;
}

.btn-primary {

    background: gold;
    color: black;
}

.btn-secondary {

    background: white;
    color: black;
}

/* =========================
   CAROUSEL
========================= */

.carousel {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 40px;
}

.slide {
    background: #222;
    color: white;
    padding: 20px;
    border-radius: 10px;
    min-width: 200px;
    text-align: center;
}

/* =========================
   MENU GRID
========================= */

#menuContainer {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 30px;

}

.menu-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.menu-card:hover {
    transform: scale(1.03);
}

.menu-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.menu-card h3 {
    padding: 10px;
}

.menu-card p {
    padding: 0 10px;
}

.menu-card span {
    display: block;
    padding: 10px;
    font-weight: bold;
    color: green;
}


/* =========================
   featured dishes
 ========================= */
.featured-section {

    height: 50vh;

    padding: 10px 30px;
    margin-top: 10px;
    margin-bottom: 37px;
}

.featured-section h2 {

    text-align: center;

    margin-bottom: 20px;
    
}

.featured-grid {
    display: grid;

    grid-template-columns: repeat(3, 490px);

    justify-content: center;

    gap: 20px;
}

/* =========================
   DISH CARD
========================= */

.dish-card {

    display: flex;

    align-items: center;

    background: white;

    border-radius: 10px;

    padding: 15px;

    gap: 20px;

    box-shadow: 0 2px 8px rgba(1,0.5,1,0.7);
}

/* =========================
   BIGGER IMAGE
========================= */

.dish-card img {

    width: 200px;
    height: 145px;

    object-fit: cover;

    border-radius: 8px;

    flex-shrink: 0;
}

/* =========================
   TEXT SECTION
========================= */

.dish-info {

    flex: 1;

    display: flex;

    flex-direction: column;

    align-items: flex-start; /* pushes content left */

    gap: 6px;

    margin-right: 0;
}

.dish-info h3 {

    font-size: 1rem;
}

.dish-info p {

    font-size: 0.85rem;

    line-height: 1.3;
}

.dish-info span {

    font-size: 0.95rem;

    font-weight: bold;

    color: green;
}

/* Smaller button */

.dish-info button {

    padding: 6px 12px;

    font-size: 0.8rem;
}

/* =========================
   footer
========================= */
footer {

    height: 120px;

    background: #111;

    color: white;

    display: flex;

    justify-content: center;

    align-items: center;
}

/* =========================

   BUTTONS
========================= */

button {
    background-color: black;
    color: white;
    border: none;
    padding: 10px 15px;
    margin: 5px;
    cursor: pointer;
    border-radius: 5px;
    transition: 0.3s;
}


/* =========================
   FORMS
========================= */

form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 50%;
    margin: 20px auto;
}

input, select, textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* =========================
   LOCATIONS
========================= */

.location {
    background: white;
    margin: 20px;
    padding: 20px;
    border-radius: 10px;
}

/* =========================
   CART
========================= */

#cartItems {
    padding: 20px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background: white;
    margin: 10px;
    border-radius: 8px;
}

/* =========================
   RESPONSIVE DESIGN
========================= */

/* TABLET */
@media (max-width: 1024px) {

    #menuContainer {
        grid-template-columns: repeat(2, 1fr);
    }

    form {
        width: 70%;
    }

    .hero h1 {
        font-size: 2.2rem;
    }
}

/* MOBILE */
@media (max-width: 768px) {

    .navbar {
        flex-direction: column;
        text-align: center;
    }

    .nav-links {
        flex-direction: column;
        gap: 10px;
    }

    #menuContainer {
        grid-template-columns: 2fr 1fr;
    }

    form {
        width: 90%;
    }

    .carousel {
        flex-direction: column;
    }

    .hero h1 {
        font-size: 1.8rem;
    }
}

/* SMALL MOBILE */
@media (max-width: 480px) {

    .hero {
        height: 50vh;
    }

    .menu-card img {
        height: 150px;
    }
}

/* =========================
   TABLET
========================= */

@media (max-width: 1024px) {

    .nav-btn {

        padding: 9px 16px;

        font-size: 0.95rem;
    }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

    .nav-btn {

        width: 100%;

        text-align: center;

        padding: 12px;

        margin-top: 5px;
    }

    .nav-links li {

        width: 100%;
    }
}

/* =========================
   SMALL MOBILE
========================= */

@media (max-width: 480px) {

    .nav-btn {

        font-size: 0.9rem;
    }
}

.nav-links a {
    text-decoration: none;
    color: white;

    padding: 8px 12px;

    border-radius: 6px;

    transition: 0.3s;
}

.nav-links a:hover {
    color: gold;
}

/* Current page */
.nav-links a.active {

    background-color: gold;

    color: black;

    font-weight: bold;
}