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

body {
    font-family: Arial, sans-serif;
    background-color: #f5efe0;
    color: #333;
}


.hero {
    position: relative;
    height: 500px;
    background: url('pictures/header\ bg.jpeg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-attachment: fixed;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.50);
}

header {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    z-index: 100;
    padding: 30px 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 80px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 50px;
    margin-right: 50px;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-family: Arial, sans-serif;
    letter-spacing: 1px;
    transition: color 0.3s;
    
}

.nav-links a:hover,
.nav-links a.active {
    color: #e3b21e;
}

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

.hero-text {
    position: relative;
    z-index: 10;
    text-align: center;
    margin-top: 50px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out forwards;
}

@keyframes fadeInUp {
    0%   { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

.hero-text .subtitle {
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.hero-text h1 {
    font-family: 'Playfair Display', serif;
    font-size: 60px;
    color: #e3b21e;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 2px 3px 10px rgba(0,0,0,0.5);
}

/* MENU INTRO */
.menu-intro-wrapper {
    text-align: center;
    padding: 50px 80px 40px;
    max-width: 900px;
    margin: 0 auto;
}

.menu-intro-wrapper::before,
.menu-intro-wrapper::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: #8b2635;
    margin: 0 auto 16px;
}

.menu-intro-wrapper::after {
    margin: 16px auto 0;
}

.menu-intro {
    font-size: 13.5px;
    color: #555;
    line-height: 1.8;
}

/* CATEGORY GRID */
.menu-categories {
    padding: 10px 80px 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 16px;

}

.category-card:nth-child(1),
.category-card:nth-child(2),
.category-card:nth-child(3) {
    height: 220px;
}

.category-card:nth-child(4),
.category-card:nth-child(5),
.category-card:nth-child(6) {
    height: 220px;
}

.category-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.40);
    transition: box-shadow 0.3s ease;
    height: 200px;
}

.category-card:hover {
    box-shadow: 0 14px 40px rgba(0,0,0,0.60);
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.category-card:hover img {
    transform: scale(1.08);
}

.category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
    z-index: 1;
    transition: background 0.3s ease;
}

.category-card:hover::before {
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
}

.category-card .card-label {
    position: absolute;
    bottom: 16px;
    left: 0;
    right: 0;
    z-index: 2;
    text-align: center;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 1px 2px 6px rgba(0,0,0,0.5);
    transition: bottom 0.3s ease;
}

.category-card:hover .card-label {
    bottom: 20px;
}

/* MENU DETAIL VIEW  */
#detail-starter,
#detail-pasta,
#detail-pizza,
#detail-main,
#detail-desserts,
#detail-beverages {
    display: none;
}

#detail-starter:target,
#detail-pasta:target,
#detail-pizza:target,
#detail-main:target,
#detail-desserts:target,
#detail-beverages:target {
    display: block;
}

#detail-starter:target ~ #categoryWrapper,
#detail-pasta:target ~ #categoryWrapper,
#detail-pizza:target ~ #categoryWrapper,
#detail-main:target ~ #categoryWrapper,
#detail-desserts:target ~ #categoryWrapper,
#detail-beverages:target ~ #categoryWrapper {
    display: none;
}

.menu-detail {
    background-color: #f5efe0;
    padding: 0 0 60px;
}

/* ===== TAB BAR ===== */
.tab-bar {
    background-color: #6B7A52;
    display: flex;
    justify-content: center;
    overflow-x: auto;
    margin-top: 0;
    padding: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.tab-btn {
    display: inline-block;
    text-decoration: none;
    padding: 22px 36px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, border-bottom 0.2s;
    font-family: Arial, sans-serif;
}

.tab-btn:hover {
    background: rgba(255,255,255,0.12);
    border-bottom: 3px solid rgba(255,255,255,0.5);
}

#detail-starter:target .tab-btn[href="#detail-starter"],
#detail-pasta:target .tab-btn[href="#detail-pasta"],
#detail-pizza:target .tab-btn[href="#detail-pizza"],
#detail-main:target .tab-btn[href="#detail-main"],
#detail-desserts:target .tab-btn[href="#detail-desserts"],
#detail-beverages:target .tab-btn[href="#detail-beverages"] {
    background: #e3b21e;
    color: #333;
    font-weight: 700;
    border-bottom: 3px solid #c49a10;
}


.detail-header {
    padding: 28px 80px 0;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.detail-category-title {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    color: #2a1a0e;
    font-weight: 700;
}

.detail-item-count {
    font-size: 13px;
    color: #888;
    background: #fff;
    padding: 4px 14px;
    border-radius: 20px;
    border: 1px solid #ddd;
}


.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 20px 80px 0;
    background: #8b2635;
    color: #fff;
    border: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 20px;
    transition: background 0.2s, transform 0.2s;
}

.back-btn:hover {
    background: #a93040;
    transform: translateX(-3px);
}


.food-items-section {
    padding: 24px 80px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.food-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    grid-auto-rows: 1fr;
}

@keyframes cardFadeIn {
    0%   { opacity: 0; transform: translateY(16px); }
    100% { opacity: 1; transform: translateY(0); }
}

.food-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: #fff;
    border-radius: 8px;
    padding: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    border-left: 3px solid #8b2635;
    transition: transform 0.2s, box-shadow 0.2s;
    animation: cardFadeIn 0.4s ease both;
}

.food-card:nth-child(1) { animation-delay: 0.05s; }
.food-card:nth-child(2) { animation-delay: 0.10s; }
.food-card:nth-child(3) { animation-delay: 0.15s; }
.food-card:nth-child(4) { animation-delay: 0.20s; }
.food-card:nth-child(5) { animation-delay: 0.25s; }
.food-card:nth-child(6) { animation-delay: 0.30s; }
.food-card:nth-child(7) { animation-delay: 0.35s; }
.food-card:nth-child(8) { animation-delay: 0.40s; }

.food-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.11);
}

.food-card img {
    width: 110px;
    height: 90px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.food-info {
    flex: 1;
}

.food-name {
    color: #8b2635;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 5px;
}

.food-desc {
    font-size: 12px;
    color: #555;
    line-height: 1.55;           
}

.food-price {
    display: inline-block;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #6B7A52;
}

/* ===== FOOTER ===== */
footer {
    background-color: #6B7A52;
    color: #ffffff;
    text-align: center;
    padding: 20px;
    font-size: 14px;
}