:root {
    --primarybackground: #efe9e3;
    --secondaryElement: #d2b48c;
    --natural: #708238;
    --typography: #3c2f2f;
    --button-background: #c9b59c;
    --section-padding: 10rem;
    --side-padding-large: 8%;
    --side-padding-medium: 6%;
    --card-radius: 10px;
    --card-gap: 1.5rem;
    --grid-gap: 3rem;
    --menu-title-size: 1.8rem;
    --menu-text-size: 1.4rem;
    --price-size: 1.8rem;
    --transition-fast: 0.3s ease;
    --transition-medium: 0.4s ease;
}

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

html {
    font-size: 62.5%;
}

body {
    font-family: "Comic Neue", cursive;
    background: var(--primarybackground);
    color: var(--typography);
}

.menu-section {
    padding: var(--section-padding) var(--side-padding-large);
}

.menu-header {
    text-align: center;
    max-width: 60rem;
    margin: 0 auto 6rem auto;
}

.menu-header:nth-child(1) {
    animation-delay: 0.5s;
}

@keyframes fadein {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.menu-header h1 {
    font-size: 4.6rem;
    margin-bottom: 2rem;
    letter-spacing: 1px;
    animation: fadein 1s ease both;
    animation-delay: 0.2s;
}

.menu-header p {
    font-size: 1.6rem;
    line-height: 1.7;
    opacity: 0.75;
    animation: fadein 1s ease both;
}

.menu-category {
    margin-bottom: 7rem;
}

.category-title {
    font-size: 2.2rem;
    margin-bottom: 3rem;
    padding-left: 16px;
    border-left: 5px solid var(--secondaryElement);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(26rem, 1fr));
    gap: var(--grid-gap);
    margin-bottom: 5rem;
    animation: fadeUp 0.7s both;
}

.menu-wrapper {
    animation: fadeUp 0.6s ease-in-out both;
    height: 100%;
}

.menu-card {
    background: #fbfafa45;
    padding: 3rem;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    gap: var(--card-gap);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
    transition: all var(--transition-fast);
    cursor: pointer;
    height: 100%;
}

.menu-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.12);
}

.menu-wrapper:nth-child(1) {
    animation-delay: 200ms;
}

.menu-wrapper:nth-child(2) {
    animation-delay: 250ms;
}

.menu-wrapper:nth-child(3) {
    animation-delay: 300ms;
}

.menu-wrapper:nth-child(4) {
    animation-delay: 350ms;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.menu-img {
    width: 100%;
    height: 16rem;
    object-fit: cover;
    border-radius: var(--card-radius);
    display: block;
    transition: transform var(--transition-medium);
}

.menu-card:hover .menu-img {
    transform: scale(1.04);
}

.menu-img-wrapper {
    width: 100%;
    overflow: hidden;
    border-radius: var(--card-radius);
}

.menu-info h3 {
    font-size: var(--menu-title-size);
    margin-bottom: 0.8rem;
}

.menu-info p {
    font-size: var(--menu-text-size);
    opacity: 0.7;
}

.price {
    font-size: var(--price-size);
    font-weight: 700;
    color: var(--natural);
}

@media (max-width: 768px) {
    .menu-section {
        padding: var(--section-padding) var(--side-padding-medium);
    }

    .menu-header h1 {
        font-size: 3.6rem;
    }
}

h2 {
    text-align: left;
}