/* ===== Reset & Base ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #e85d26;
    --primary-dark: #c44a1a;
    --secondary: #2c2c2c;
    --accent: #f4a261;
    --bg: #faf8f5;
    --bg-dark: #1a1a1a;
    --text: #333;
    --text-light: #777;
    --white: #fff;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
    --radius: 12px;
    --transition: 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== Navbar ===== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(255,255,255,0.95); backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.nav-container {
    display: flex; align-items: center; justify-content: space-between;
    height: 70px;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem; font-weight: 700; color: var(--secondary);
}
.logo span { color: var(--primary); }

.nav-links { display: flex; gap: 32px; }
.nav-links a {
    font-size: 0.95rem; font-weight: 500; color: var(--text-light);
    transition: color var(--transition); position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-links a.active::after {
    content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
    height: 2px; background: var(--primary); border-radius: 2px;
}

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span {
    display: block; width: 24px; height: 2px; background: var(--secondary);
    margin: 5px 0; transition: var(--transition);
}

/* ===== Hero ===== */
.hero {
    position: relative; min-height: 100vh; display: flex; align-items: center;
    background: url('https://images.unsplash.com/photo-1504674900247-0877df9cc836?w=1600&h=900&fit=crop') center/cover;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
}
.hero-content { position: relative; z-index: 1; color: var(--white); max-width: 680px; }
.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem; font-weight: 700; line-height: 1.15; margin-bottom: 20px;
}
.hero-content h1 span { color: var(--accent); }
.hero-content p {
    font-size: 1.15rem; opacity: 0.9; margin-bottom: 32px; max-width: 500px;
}

.btn {
    display: inline-block; padding: 14px 36px; border-radius: 50px;
    font-size: 1rem; font-weight: 600; transition: all var(--transition); cursor: pointer;
}
.btn-primary {
    background: var(--primary); color: var(--white); border: 2px solid var(--primary);
}
.btn-primary:hover {
    background: var(--primary-dark); border-color: var(--primary-dark);
    transform: translateY(-2px); box-shadow: 0 6px 20px rgba(232,93,38,0.4);
}

/* ===== Section Common ===== */
.section { padding: 80px 0; }
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem; text-align: center; margin-bottom: 48px;
    color: var(--secondary);
}

/* ===== Categories ===== */
.categories-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}
.category-card {
    position: relative; border-radius: var(--radius); overflow: hidden;
    height: 200px; cursor: pointer; transition: transform var(--transition);
}
.category-card:hover { transform: translateY(-4px); }
.category-card img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s ease;
}
.category-card:hover img { transform: scale(1.08); }
.category-card .category-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    display: flex; align-items: flex-end; padding: 16px;
}
.category-card .category-name {
    color: var(--white); font-weight: 600; font-size: 1.05rem;
}

/* ===== Dishes Grid ===== */
.dishes-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}
.dish-card {
    background: var(--white); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); cursor: pointer; transition: all var(--transition);
}
.dish-card:hover {
    box-shadow: var(--shadow-hover); transform: translateY(-6px);
}
.dish-card .dish-image {
    position: relative; height: 220px; overflow: hidden;
}
.dish-card .dish-image img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s ease;
}
.dish-card:hover .dish-image img { transform: scale(1.05); }
.dish-card .dish-badge {
    position: absolute; top: 12px; left: 12px;
    background: var(--primary); color: var(--white);
    padding: 4px 12px; border-radius: 20px;
    font-size: 0.8rem; font-weight: 600;
}
.dish-card .dish-body { padding: 20px; }
.dish-card .dish-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem; font-weight: 700; margin-bottom: 6px;
}
.dish-card .dish-origin {
    font-size: 0.85rem; color: var(--text-light); margin-bottom: 10px;
}
.dish-card .dish-desc {
    font-size: 0.9rem; color: var(--text-light);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== About ===== */
.about-section { background: var(--white); }
.about-content { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem; margin-bottom: 16px; color: var(--secondary);
}
.about-text p { color: var(--text-light); margin-bottom: 16px; font-size: 1.05rem; }
.about-image { border-radius: var(--radius); overflow: hidden; }
.about-image img { width: 100%; height: 360px; object-fit: cover; }

/* ===== Footer ===== */
.footer { background: var(--bg-dark); color: rgba(255,255,255,0.8); padding: 60px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand h3 {
    font-family: 'Playfair Display', serif; font-size: 1.5rem;
    color: var(--white); margin-bottom: 12px;
}
.footer-brand h3 span { color: var(--primary); }
.footer-brand p { font-size: 0.95rem; }
.footer-links h4 { color: var(--white); margin-bottom: 16px; font-size: 1rem; }
.footer-links a {
    display: block; padding: 4px 0; font-size: 0.9rem;
    transition: color var(--transition);
}
.footer-links a:hover { color: var(--primary); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px;
    text-align: center; font-size: 0.85rem;
}

/* ===== Modal ===== */
.modal-overlay {
    display: none; position: fixed; inset: 0; z-index: 2000;
    background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
    align-items: center; justify-content: center; padding: 24px;
}
.modal-overlay.active { display: flex; }
.modal-content {
    background: var(--white); border-radius: var(--radius);
    max-width: 700px; width: 100%; max-height: 90vh; overflow-y: auto;
    position: relative;
}
.modal-close {
    position: absolute; top: 12px; right: 16px; z-index: 10;
    background: rgba(255,255,255,0.9); border: none; font-size: 1.8rem;
    width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background var(--transition);
}
.modal-close:hover { background: var(--white); }
.modal-image { height: 300px; overflow: hidden; }
.modal-image img { width: 100%; height: 100%; object-fit: cover; }
.modal-body { padding: 28px; }
.modal-category {
    display: inline-block; background: var(--primary); color: var(--white);
    padding: 4px 14px; border-radius: 20px; font-size: 0.8rem; font-weight: 600;
    margin-bottom: 12px;
}
.modal-body h2 {
    font-family: 'Playfair Display', serif; font-size: 1.8rem; margin-bottom: 12px;
}
.modal-meta { display: flex; gap: 16px; margin-bottom: 16px; }
.meta-item {
    font-size: 0.85rem; color: var(--text-light);
    padding: 4px 0;
}
.meta-item::before { margin-right: 6px; }
.modal-body > p { color: var(--text-light); margin-bottom: 20px; line-height: 1.7; }
.modal-ingredients h3 {
    font-size: 1.1rem; margin-bottom: 10px; color: var(--secondary);
}
.modal-ingredients ul {
    display: flex; flex-wrap: wrap; gap: 8px;
}
.modal-ingredients li {
    background: var(--bg); padding: 6px 14px; border-radius: 20px;
    font-size: 0.85rem; color: var(--text);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-toggle { display: block; }
    .nav-links.open {
        display: flex; flex-direction: column; position: absolute;
        top: 70px; left: 0; right: 0; background: var(--white);
        padding: 20px; gap: 16px; box-shadow: var(--shadow);
    }
    .hero-content h1 { font-size: 2.2rem; }
    .about-content { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .dishes-grid { grid-template-columns: 1fr; }
}

/* ===== Ad Slots ===== */
.ad-slot { max-width: 1200px; margin: 16px auto; padding: 0 24px; text-align: center; }
.ad-slot-header { margin-top: 70px; }
.ad-slot-footer { margin-bottom: 0; }

.ad-slot img { border-radius: 8px; }

.ad-content-middle {
    grid-column: 1 / -1; text-align: center; padding: 20px 0;
}
.ad-content-middle .ad-inner {
    background: var(--white); border-radius: var(--radius); padding: 16px;
    box-shadow: var(--shadow); display: inline-block; max-width: 100%;
}

.ad-popup-overlay {
    position: fixed; inset: 0; z-index: 3000;
    background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center; padding: 24px;
    animation: fadeIn 0.3s ease;
}
.ad-popup-content {
    position: relative; background: var(--white); border-radius: var(--radius);
    padding: 20px; max-width: 600px; width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.ad-popup-close {
    position: absolute; top: 8px; right: 12px; z-index: 10;
    background: rgba(0,0,0,0.1); border: none; font-size: 1.5rem;
    width: 32px; height: 32px; border-radius: 50%; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
}
.ad-popup-close:hover { background: rgba(0,0,0,0.2); }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
