/* Base Variables & Theme Settings */
:root {
    /* Color Palette */
    --bg-color: #FFFFFF;
    /* Clean White Background */
    --text-main: #111111;
    /* Solid Black */
    --accent-red: #D30000;
    /* Bold Brand Red */
    --accent-dark: #222222;
    /* Secondary Dark Accent */
    --white: #FFFFFF;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-script: 'Pacifico', cursive;
    /* Used for the "Soul" text */

    /* Transitions & Shadows */
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 4px 6px rgba(42, 31, 26, 0.05);
    --shadow-md: 0 10px 20px rgba(42, 31, 26, 0.1);
    --shadow-lg: 0 20px 40px rgba(42, 31, 26, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Typography Customization */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Accessibility Focus States */
:focus-visible {
    outline: 3px solid var(--accent-red);
    outline-offset: 2px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-primary {
    background-color: var(--accent-red);
    color: var(--white);
    border: 2px solid var(--accent-red);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--accent-red);
}

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

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--text-main);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background-color: rgba(250, 247, 242, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: var(--shadow-sm);
}

.navbar.scrolled .nav-links a {
    color: var(--text-main);
}

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

.logo-img {
    height: 110px;
    width: auto;
    transition: var(--transition);
    display: block;
}

.logo-dark {
    display: none;
}

.logo-white {
    display: block;
}

.navbar.scrolled .logo-img {
    height: 80px;
}

.navbar.scrolled .logo-white {
    display: none;
}

.navbar.scrolled .logo-dark {
    display: block;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--white);
    position: absolute;
    left: 0;
    transition: var(--transition);
}

.navbar.scrolled .mobile-menu-btn span {
    background-color: var(--text-main);
}

.mobile-menu-btn span:nth-child(1) {
    top: 0;
}

.mobile-menu-btn span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.mobile-menu-btn span:nth-child(3) {
    bottom: 0;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 10.5px;
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg);
    bottom: 10.5px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-order-btn {
    padding: 10px 24px;
    font-size: 0.9rem;
}

.nav-links a {
    color: var(--white);
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-red);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    background-image: url('images/hero_soul_food.png');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(42, 31, 26, 0.9) 0%, rgba(42, 31, 26, 0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 600px;
    animation: fadeInUp 1s ease-out forwards;
}

/* Animations... */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

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

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

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 3rem;
    color: var(--text-main);
    margin-bottom: 15px;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--accent-red);
    font-style: italic;
    font-weight: 500;
}

/* Specials Grid */
.specials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.special-card {
    background: var(--bg-color);
    padding: 30px 20px;
    border-radius: 16px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(42, 31, 26, 0.05);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.special-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-dark);
}

.day-badge {
    display: inline-block;
    background-color: var(--accent-red);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
    font-family: var(--font-heading);
}

.special-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--text-main);
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.special-desc {
    font-size: 0.95rem;
    color: #555;
    margin-top: auto;
}

/* Menu Filters */
.menu-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-btn {
    background: transparent;
    border: 2px solid var(--text-main);
    color: var(--text-main);
    padding: 10px 24px;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--text-main);
    color: var(--white);
    border-color: var(--text-main);
}

/* Featured Gallery */
.featured-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}

.gallery-item {
    height: 300px;
    border-radius: 16px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-lg);
    z-index: 10;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 20px 20px;
    background: linear-gradient(to top, rgba(42, 31, 26, 0.9), transparent);
    color: var(--white);
    display: flex;
    align-items: flex-end;
}

.gallery-overlay h4 {
    font-size: 1.4rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Menu Grid */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
}

.menu-category {
    margin-bottom: 40px;
}

.category-title {
    font-size: 2rem;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--accent-dark);
    color: var(--accent-red);
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.category-title span {
    font-size: 1rem;
    font-weight: 500;
    color: #666;
    font-family: var(--font-body);
}

.menu-item {
    margin-bottom: 24px;
}

.menu-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 6px;
}

.menu-item-header h4 {
    font-size: 1.15rem;
    color: var(--text-main);
    position: relative;
    padding-right: 5px;
    z-index: 2;
    order: 1;
}

.menu-item-header::after {
    content: '';
    flex-grow: 1;
    border-bottom: 2px dotted rgba(42, 31, 26, 0.4);
    position: relative;
    bottom: 7px;
    margin: 0 10px;
    z-index: 1;
    order: 2;
}

.price {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--accent-red);
    padding-left: 5px;
    z-index: 2;
    order: 3;
}

.menu-item-desc {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    max-width: 85%;
}

/* Footer */
.footer {
    background-color: var(--text-main);
    color: var(--white);
    padding: 80px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo-img {
    height: 120px;
    width: auto;
    margin-bottom: 20px;
    /* Add a subtle glow for the dark footer */
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

.footer-info {
    display: flex;
    gap: 60px;
}

.info-block h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--accent-red);
}

.info-block p {
    opacity: 0.9;
    line-height: 1.8;
}

.footer-contact-link {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.footer-contact-link:hover {
    color: var(--accent-red);
    text-decoration: underline;
}

.social-text a {
    color: var(--accent-red);
    font-weight: 600;
}

.social-text a:hover {
    color: var(--white);
}

.social-icons-container {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

.social-icon {
    width: 24px;
    height: 24px;
    fill: var(--accent-red);
    transition: var(--transition);
}

.social-icons-container a:hover .social-icon {
    fill: var(--white);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    font-size: 0.9rem;
    opacity: 0.7;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.designer-text {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Menu Sidebar Gallery */
.menu-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.menu-content {
    flex: 2;
    min-width: 0;
}

.menu-sidebar-gallery {
    flex: 1;
    display: none;
    /* Hidden by default, shown via JS when 'single' is selected */
    flex-direction: column;
    gap: 30px;
    position: sticky;
    top: 100px;
}

.sidebar-img-wrapper {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.sidebar-img-wrapper:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.sidebar-img-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Responsive */
@media (max-width: 900px) {
    .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--text-main);
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out, padding 0.3s ease-out;
        transform: none;
        /* Override desktop absolute centering */
    }

    .nav-links.active {
        max-height: 400px;
        padding: 20px 0;
    }

    .nav-links li {
        text-align: center;
        margin: 15px 0;
    }

    .navbar.scrolled .nav-links {
        background-color: rgba(250, 247, 242, 0.98);
        box-shadow: var(--shadow-sm);
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-order-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .menu-layout {
        flex-direction: column;
    }

    .menu-sidebar-gallery {
        position: relative;
        top: 0;
        margin-top: 40px;
    }

    .menu-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .featured-gallery {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-info {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .social-icons-container {
        justify-content: center;
    }

    .category-title {
        flex-direction: column;
        align-items: flex-start;
    }

    .category-title span {
        margin-top: 5px;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
}