/* ==========================================================================
   CSS Variables & Design Tokens
   ========================================================================== */
   :root {
    /* Colors */
    --clr-primary: #B91C1C;      /* Deep Crimson */
    --clr-primary-dark: #991B1B;
    --clr-primary-light: #FEE2E2;
    
    --clr-secondary: #0369A1;    /* Greek Blue Accent */
    --clr-accent: #D97706;       /* Amber/Mustard for diner vibe */
    
    --clr-bg: #FAFAF9;           /* Warm Off-White */
    --clr-surface: #FFFFFF;
    
    --clr-text: #1C1917;         /* Very Dark Brown/Gray */
    --clr-text-muted: #57534E;
    
    --clr-border: #E7E5E4;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    
    /* Borders */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-full: 9999px;
    
    /* Animation */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    color: var(--clr-text);
    background-color: var(--clr-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--clr-text);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
}

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

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

.btn-outline {
    background-color: transparent;
    border-color: var(--clr-border);
    color: var(--clr-text);
}

.btn-outline:hover {
    border-color: var(--clr-primary);
    color: var(--clr-primary);
}

/* For footer */
.btn-outline.btn-block {
    border-color: rgba(255,255,255,0.2) !important;
    color: white;
    width: 100%;
}
.btn-outline.btn-block:hover {
    background: rgba(255,255,255,0.1);
    border-color: white !important;
}

.mt-4 { margin-top: 1rem; }

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--clr-text-muted);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

.highlight {
    color: var(--clr-primary);
    position: relative;
    display: inline-block;
}

/* ==========================================================================
   Top Bar & Navigation
   ========================================================================== */
.top-bar {
    background-color: var(--clr-text);
    color: white;
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.top-bar-item a:hover {
    color: var(--clr-accent);
}

.top-bar-item i {
    color: var(--clr-accent);
    font-size: 1.125rem;
}

#navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--clr-border);
    transition: var(--transition);
}

#navbar.scrolled {
    box-shadow: var(--shadow-md);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--clr-primary);
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--clr-text);
    font-weight: 600;
}

.footer-logo {
    color: white;
}
.footer-logo span {
    color: white;
    font-weight: 400;
}

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

.nav-links a:not(.btn) {
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--clr-primary);
    transition: var(--transition);
}

.nav-links a:not(.btn):hover::after,
.nav-links a:not(.btn).active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--clr-text);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    overflow: hidden;
    color: white;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -2;
    transform: scale(1.05); /* Slight zoom for image */
    animation: slowZoom 20s infinite alternate;
}

@keyframes slowZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    padding: 4rem 1.5rem;
}

.badge {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--clr-accent);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: clamp(3rem, 5vw, 5rem);
    color: white;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-actions .btn-outline {
    color: white;
    border-color: rgba(255,255,255,0.5);
}

.hero-actions .btn-outline:hover {
    background-color: white;
    color: var(--clr-text);
    border-color: white;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 1.5rem;
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.stat .stars {
    color: var(--clr-accent);
    display: flex;
}

.stat i {
    font-size: 1.25rem;
    color: var(--clr-accent);
}

/* ==========================================================================
   Features Section
   ========================================================================== */
.features {
    padding: 5rem 0;
    background-color: var(--clr-surface);
    margin-top: -3rem;
    position: relative;
    z-index: 10;
    border-radius: 2rem 2rem 0 0;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.05);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2rem;
    border-radius: var(--radius-lg);
    background-color: var(--clr-bg);
    border: 1px solid var(--clr-border);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--clr-primary-light);
}

.feature-icon {
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-md);
    background-color: var(--clr-primary-light);
    color: var(--clr-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.feature-card p {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
}

/* ==========================================================================
   Menu Section
   ========================================================================== */
.menu-section {
    padding: 6rem 0;
    background-color: var(--clr-bg);
}

.menu-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 4rem;
}

.filter-btn {
    background: transparent;
    border: 2px solid var(--clr-border);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--clr-text-muted);
    cursor: pointer;
    transition: var(--transition);
}

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

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.menu-item {
    background-color: var(--clr-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--clr-border);
    transition: var(--transition);
    animation: fadeIn 0.5s ease-out forwards;
}

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

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

.menu-img-container {
    position: relative;
    height: 200px;
    background-color: var(--clr-border);
    overflow: hidden;
}

.menu-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.menu-item:hover .menu-img-container img {
    transform: scale(1.05);
}

.img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--clr-primary-light);
    color: var(--clr-primary);
    font-size: 3rem;
    opacity: 0.5;
}

.price-tag {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background-color: var(--clr-surface);
    color: var(--clr-primary);
    font-weight: 700;
    font-family: var(--font-heading);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm);
}

.menu-content {
    padding: 1.5rem;
}

.menu-content h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.menu-content .desc {
    color: var(--clr-text-muted);
    font-size: 0.9rem;
}

.menu-note {
    text-align: center;
    margin-top: 3rem;
    color: var(--clr-text-muted);
    font-size: 0.875rem;
}

/* ==========================================================================
   Reviews Section
   ========================================================================== */
.reviews-section {
    padding: 6rem 0;
    background-color: var(--clr-primary);
    color: white;
    position: relative;
}

.reviews-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.reviews-section .section-header h2 {
    color: white;
}

.reviews-section .section-header p {
    color: rgba(255,255,255,0.8);
}

.aggregate-rating {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    margin-top: 1rem;
    padding: 1rem 2rem;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-full);
    backdrop-filter: blur(5px);
}

.aggregate-rating .stars {
    color: #FBBF24;
    font-size: 1.25rem;
    letter-spacing: 2px;
}

.aggregate-rating p {
    margin: 0;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.reviews-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.review-card {
    background-color: white;
    color: var(--clr-text);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.reviewer-avatar {
    width: 3rem;
    height: 3rem;
    background-color: var(--clr-primary-light);
    color: var(--clr-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
}

.reviewer-info h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.reviewer-info .stars {
    color: #FBBF24;
    font-size: 0.875rem;
}

.review-text {
    font-style: italic;
    color: var(--clr-text-muted);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--clr-text);
    color: rgba(255, 255, 255, 0.7);
    padding-top: 5rem;
}

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

.footer h3 {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.brand-col p {
    margin: 1.5rem 0;
    max-width: 300px;
}

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

.social-links a {
    width: 2.5rem;
    height: 2.5rem;
    background-color: rgba(255,255,255,0.1);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.social-links a:hover {
    background-color: var(--clr-primary);
    transform: translateY(-3px);
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.hours-list li:last-child {
    border-bottom: none;
}

.contact-info li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-info i {
    font-size: 1.5rem;
    color: var(--clr-primary);
}

.contact-info a {
    color: white;
}

.contact-info a:hover {
    color: var(--clr-primary);
}

.footer-bottom {
    background-color: #171413;
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.875rem;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.credit {
    opacity: 0.5;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    .brand-col {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none; /* Hide top bar on very small screens for space */
    }

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

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.3s ease-in-out;
    }

    .nav-links.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    
    .nav-links li {
        width: 100%;
        text-align: center;
    }
    
    .nav-links .btn {
        width: 100%;
        margin-top: 1rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-bottom .container {
        flex-direction: column;
        justify-content: center;
    }
}

/* ==========================================================================
   Authentication Modal
   ========================================================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    background-color: var(--clr-surface);
    width: 100%;
    max-width: 450px;
    padding: 3rem 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 1;
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--clr-text-muted);
    transition: var(--transition);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    background-color: var(--clr-bg);
    color: var(--clr-primary);
}

/* Auth Forms */
.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--clr-text);
}

.input-wrapper {
    position: relative;
}

.input-wrapper i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--clr-text-muted);
    font-size: 1.25rem;
}

.input-wrapper input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    background-color: var(--clr-bg);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--clr-primary);
    background-color: white;
    box-shadow: 0 0 0 4px var(--clr-primary-light);
}

.form-footer {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1.5rem;
}

.forgot-password {
    font-size: 0.875rem;
    color: var(--clr-primary);
    font-weight: 500;
}

.forgot-password:hover {
    text-decoration: underline;
}

.btn-block {
    width: 100%;
}

.auth-switch {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.95rem;
    color: var(--clr-text-muted);
}

.auth-switch a {
    color: var(--clr-primary);
    font-weight: 600;
}

.auth-switch a:hover {
    text-decoration: underline;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.checkbox-group input {
    margin-top: 0.25rem;
}

.checkbox-group label {
    font-weight: 400;
    margin-bottom: 0;
    line-height: 1.4;
}

.checkbox-group a {
    color: var(--clr-primary);
    font-weight: 500;
}

@media (max-width: 480px) {
    .modal-content {
        padding: 2.5rem 1.5rem;
        border-radius: 0;
        height: 100%;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}
