/* 
 * Tazgi Restaurant - Main Stylesheet
 * Primary: #16191b (Dark)
 * Button/Accent: #e79400 (Orange/Gold)
 * Background: #F8F9FA (Light Gray)
 */

:root {
    --primary: #16191b;
    --accent: #e79400;
    --accent-hover: #c67e00;
    --bg-light: #F8F9FA;
    --text-dark: #1F2937;
    --text-muted: #6B7280;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.8);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.8; /* Increased line-height */
    overflow-x: hidden;
}

p {
    margin: 2.5rem 0; 
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* ── Typography ────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    color: var(--primary);
    line-height: 1.2;
    font-weight: 800;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--accent);
    border-radius: 2px;
}

/* ── Buttons ───────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    box-shadow: var(--shadow-md);
}

.btn-primary {
    background-color: var(--accent);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
}

.btn-outline:hover {
    background-color: var(--accent);
    color: var(--white);
}

/* ── Header ────────────────────────────────────────────── */
header {
    background-color: #000000;
    padding: 1.5rem 0;
    border-bottom: 2px solid #1a1a1a;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 75px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 600;
    color: var(--white); /* Changed to white */
    font-size: 1rem;
}

.nav-links a:hover {
    color: var(--accent);
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--white); /* Ensure visible on black */
}

@media (max-width: 768px) {
    .nav-wrap {
        flex-direction: column;
        gap: 1.5rem;
        padding-bottom: 1rem;
    }

    .nav-links {
        display: flex !important; /* Force display for stacked layout */
        flex-direction: row;
        gap: 1.5rem;
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
        position: static;
        padding: 0;
        background-color: transparent;
        box-shadow: none;
        z-index: 999;
        text-align: center;
    }

    .nav-links a {
        font-size: 0.9rem;
    }

    .mobile-toggle {
        display: none !important;
    }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Hero ──────────────────────────────────────────────── */
.hero {
    position: relative;
    padding: 120px 0;
    text-align: center;
    color: var(--white);
    background-color: var(--primary);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    object-fit: cover;
    opacity: 0.4;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .hero {
        padding: 60px 0;
    }
    .hero h1 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }
    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
}

/* ── Sections ──────────────────────────────────────────── */
.section {
    padding: 80px 0;
}

.bg-white { background-color: var(--white); }

/* ── Cards/Grid ────────────────────────────────────────── */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 992px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* ── Card Styling ──────────────────────────────────────── */
.menu-item {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.menu-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.menu-item .img-wrap {
    height: 250px;
    width: 100%;
    border-radius: 0;
}

.menu-item .img-wrap img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.menu-item-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.menu-item-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0.5rem 0 1.5rem;
    flex-grow: 1;
}

/* ── Menu Section ──────────────────────────────────────── */
.menu-category {
    margin-bottom: 3rem;
}

.category-title {
    font-size: 1.85rem;
    margin-bottom: 2rem;
    color: var(--accent);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ── Compact Dark Menu ── */
.menu-compact-dark {
    background-color: #111416;
    color: #ffffff;
    padding: 60px 0;
}

.menu-compact-dark .menu-item {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0.25rem 0; /* even more compact */
    margin-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.05); 
    display: block;
    height: auto;
}

.menu-compact-dark .menu-item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.1rem; /* reduced gap after dish name */
}

.menu-compact-dark .menu-item-title {
    color: var(--accent); 
    font-size: 1.15rem;
    font-weight: 700;
}

.menu-compact-dark .menu-item-price {
    background: transparent;
    color: var(--accent);
    font-size: 1.1rem;
    padding: 0;
    margin-left: 1rem;
    white-space: nowrap;
}

.menu-compact-dark .menu-item-desc {
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem; /* smaller font size */
    line-height: 1.3;
    margin-bottom: 0.25rem; /* reduced gap after description */
    max-width: 100%;
}

.menu-compact-dark .grid {
    gap: 1.5rem 4rem; /* More horizontal space for 2 cols */
}

/* ── Image Credits ─────────────────────────────────────── */
.img-wrap {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.img-credit {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 5px;
    text-align: right;
    font-style: italic;
}

/* ── Footer ────────────────────────────────────────────── */
footer {
    background-color: var(--primary);
    color: #9CA3AF;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.footer-logo img {
    height: 40px;
    margin-bottom: 1.5rem;
}

footer h4 {
    color: var(--white) !important;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    font-size: 1rem; /* Slightly larger for visibility */
    letter-spacing: 1.5px;
    font-weight: 700;
}

footer p, footer li {
    margin: 0 0 1rem 0; /* Normalized spacing overrides global p */
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #9CA3AF; /* Ensures light text color */
}

footer a {
    color: #9CA3AF;
}

.footer-grid > div {
    display: block; /* Prevents unnatural flex stretching */
}

footer a:hover {
    color: var(--accent);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    font-size: 1.2rem;
}

.copyright-bar {
    border-top: 1px solid #374151;
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
}

/* ── Animations ───────────────────────────────────────── */
[data-aos] {
    transition-duration: 0.8s;
}

/* ── Utilities ────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-4 { margin-top: 1rem; }
.mb-4 { margin-bottom: 1rem; }
