/* ===========================
   Restaurant Bella Vista Styles
   Elegant Italian Restaurant Design
   =========================== */

/* CSS Variables */
:root {
    /* Colors - Elegant Restaurant Palette */
    --primary: #8B0000;          /* Dark Red/Burgundy */
    --secondary: #DC143C;        /* Crimson */
    --accent: #FFD700;           /* Gold */
    --bg-dark: #1a1a1a;
    --bg-medium: #2c2c2c;
    --bg-light: #3a3a3a;
    --text-light: #f5f5f5;
    --text-gray: #cccccc;
    --text-muted: #999999;

    /* Spacing */
    --container-width: 1200px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;

    /* Typography */
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-heading: Georgia, 'Times New Roman', serif;

    /* Transitions */
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

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

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

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

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

a:hover {
    color: var(--secondary);
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: var(--spacing-sm);
    position: relative;
    padding-bottom: var(--spacing-sm);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
}

.section-subtitle {
    text-align: center;
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-lg);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--text-light);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 20, 60, 0.3);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    width: 100%;
    justify-content: center;
}

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

.navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo i {
    font-size: 1.8rem;
    color: var(--secondary);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-light);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

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

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

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--accent);
    transition: var(--transition);
}

/* ===========================
   HERO SECTION
   =========================== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-medium) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(139, 0, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(220, 20, 60, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.hero-overlay {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    padding: var(--spacing-md);
}

.hero-title {
    font-size: 4rem;
    color: var(--accent);
    margin-bottom: var(--spacing-sm);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.8rem;
    color: var(--secondary);
    font-style: italic;
    margin-bottom: var(--spacing-sm);
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: var(--spacing-md);
    animation: fadeInUp 1s ease 0.4s both;
}

.hero .btn {
    animation: fadeInUp 1s ease 0.6s both;
}

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

/* ===========================
   STICKY RESERVATION BUTTON
   =========================== */
.sticky-reserve-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: var(--text-light);
    padding: 1rem 1.5rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 20px rgba(220, 20, 60, 0.4);
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.sticky-reserve-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(220, 20, 60, 0.6);
    animation: none;
}

.sticky-reserve-btn i {
    font-size: 1.2rem;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(220, 20, 60, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(220, 20, 60, 0.7);
    }
}

/* ===========================
   MENU SECTION
   =========================== */
.menu-section {
    padding: var(--spacing-xl) 0;
    background: var(--bg-dark);
}

.menu-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
}

.tab-btn {
    background: var(--bg-medium);
    color: var(--text-gray);
    border: 2px solid transparent;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.tab-btn i {
    font-size: 1.2rem;
}

.tab-btn:hover {
    background: var(--bg-light);
    border-color: var(--accent);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--text-light);
    border-color: var(--accent);
}

.menu-category {
    display: none;
}

.menu-category.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: var(--spacing-md);
}

.menu-item {
    background: var(--bg-medium);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255, 215, 0, 0.1);
    display: flex;
    gap: var(--spacing-md);
}

.menu-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(220, 20, 60, 0.2);
    border-color: var(--accent);
}

.menu-item-image {
    width: 300px;
    height: 200px;
    background: linear-gradient(135deg, var(--bg-light), var(--bg-medium));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.menu-item-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
}

.menu-item-image i {
    font-size: 4rem;
    color: var(--accent);
    opacity: 0.3;
    z-index: 1;
}

.menu-item-content {
    padding: var(--spacing-md);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.menu-item-title {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.menu-item-description {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.menu-item-price {
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent);
    font-family: var(--font-heading);
    text-align: right;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* ===========================
   ABOUT SECTION
   =========================== */
.about-section {
    padding: var(--spacing-xl) 0;
    background: var(--bg-medium);
}

.about-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.about-text h3 {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: var(--spacing-md);
}

.about-text p {
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.highlight-item {
    background: var(--bg-dark);
    padding: var(--spacing-md);
    border-radius: 8px;
    border-left: 4px solid var(--accent);
    transition: var(--transition);
}

.highlight-item:hover {
    transform: translateX(10px);
    border-left-color: var(--secondary);
}

.highlight-item i {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: var(--spacing-sm);
}

.highlight-item h4 {
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.highlight-item p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

.chef-card {
    background: var(--bg-dark);
    padding: var(--spacing-lg);
    border-radius: 12px;
    text-align: center;
    border: 2px solid var(--accent);
}

.chef-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto var(--spacing-md);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chef-icon i {
    font-size: 3.5rem;
    color: var(--accent);
}

.chef-card h4 {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.chef-title {
    color: var(--secondary);
    font-style: italic;
    margin-bottom: var(--spacing-md);
}

.chef-bio {
    color: var(--text-gray);
    font-style: italic;
    line-height: 1.6;
}

/* ===========================
   RESERVATION SECTION
   =========================== */
.reservation-section {
    padding: var(--spacing-xl) 0;
    background: var(--bg-dark);
}

.reservation-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.reservation-form {
    background: var(--bg-medium);
    padding: var(--spacing-lg);
    border-radius: 12px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: var(--spacing-md);
}

.form-group label {
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group label i {
    color: var(--accent);
}

.form-group input,
.form-group select,
.form-group textarea {
    background: var(--bg-dark);
    border: 2px solid var(--bg-light);
    color: var(--text-light);
    padding: 0.8rem;
    border-radius: 6px;
    font-size: 1rem;
    font-family: var(--font-main);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.checkbox-group {
    margin: var(--spacing-md) 0;
}

.checkbox-label {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 0.2rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent);
}

.checkbox-label span {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.5;
}

.checkbox-label a {
    color: var(--accent);
    text-decoration: underline;
}

.form-note {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: var(--spacing-sm);
}

.reservation-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.info-card {
    background: var(--bg-medium);
    padding: var(--spacing-md);
    border-radius: 12px;
    border-left: 4px solid var(--accent);
}

.info-card i {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: var(--spacing-sm);
}

.info-card h3 {
    color: var(--text-light);
    font-size: 1.3rem;
    margin-bottom: var(--spacing-sm);
}

.info-card ul {
    list-style: none;
    color: var(--text-gray);
}

.info-card li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.info-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

.phone-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent);
    margin: var(--spacing-sm) 0;
}

/* ===========================
   CONTACT SECTION
   =========================== */
.contact-section {
    padding: var(--spacing-xl) 0;
    background: var(--bg-medium);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.info-block {
    background: var(--bg-dark);
    padding: var(--spacing-md);
    border-radius: 8px;
    border-top: 3px solid var(--accent);
}

.info-block h3 {
    color: var(--accent);
    font-size: 1.2rem;
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-block i {
    color: var(--secondary);
}

.info-block p {
    color: var(--text-gray);
    line-height: 1.8;
}

.info-block a {
    color: var(--text-light);
}

.info-block a:hover {
    color: var(--accent);
}

.opening-hours {
    grid-column: 1 / -1;
}

.hours-table {
    width: 100%;
    margin-top: var(--spacing-sm);
}

.hours-table td {
    padding: 0.5rem;
    color: var(--text-gray);
}

.hours-table td:first-child {
    color: var(--text-light);
    font-weight: 600;
}

.hours-table td:last-child {
    text-align: right;
    color: var(--accent);
}

.map-container {
    grid-column: 1 / -1;
    margin-top: var(--spacing-md);
}

.map-placeholder {
    background: var(--bg-dark);
    height: 400px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--bg-light);
}

.map-placeholder i {
    font-size: 4rem;
    color: var(--accent);
    margin-bottom: var(--spacing-sm);
}

.map-placeholder p {
    color: var(--text-gray);
    font-size: 1.2rem;
}

.map-note {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* ===========================
   FOOTER
   =========================== */
.footer {
    background: var(--bg-dark);
    padding: var(--spacing-lg) 0 var(--spacing-md);
    border-top: 1px solid var(--bg-light);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-section h4 {
    color: var(--accent);
    font-size: 1.2rem;
    margin-bottom: var(--spacing-sm);
}

.footer-section p {
    color: var(--text-gray);
    margin-bottom: var(--spacing-sm);
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-gray);
}

.footer-section a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: var(--spacing-sm);
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--bg-medium);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent);
    color: var(--bg-dark);
    transform: translateY(-3px);
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-top: var(--spacing-sm);
}

.newsletter-form input {
    flex: 1;
    background: var(--bg-medium);
    border: 1px solid var(--bg-light);
    color: var(--text-light);
    padding: 0.8rem;
    border-radius: 4px;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--accent);
}

.newsletter-form button {
    background: var(--accent);
    border: none;
    padding: 0.8rem 1.2rem;
    border-radius: 4px;
    color: var(--bg-dark);
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: var(--secondary);
    color: var(--text-light);
}

.footer-bottom {
    border-top: 1px solid var(--bg-light);
    padding-top: var(--spacing-md);
    text-align: center;
    color: var(--text-muted);
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */
@media (max-width: 768px) {
    /* Typography */
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .section-title {
        font-size: 2rem;
    }

    /* Navigation */
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(26, 26, 26, 0.98);
        flex-direction: column;
        gap: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: var(--transition);
    }

    .nav-menu.active {
        max-height: 400px;
        border-top: 1px solid var(--bg-light);
    }

    .nav-menu li {
        border-bottom: 1px solid var(--bg-light);
    }

    .nav-menu a {
        display: block;
        padding: 1rem var(--spacing-md);
    }

    /* Menu Grid */
    .menu-grid {
        grid-template-columns: 1fr;
    }

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

    .menu-item-image {
        width: 100%;
        height: 250px;
    }

    /* About Section */
    .about-content {
        grid-template-columns: 1fr;
    }

    .about-highlights {
        grid-template-columns: 1fr;
    }

    /* Reservation */
    .reservation-content {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    /* Contact */
    .contact-content {
        grid-template-columns: 1fr;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    /* Sticky Button */
    .sticky-reserve-btn {
        bottom: 20px;
        right: 20px;
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }

    .sticky-reserve-btn span {
        display: none;
    }

    .sticky-reserve-btn i {
        font-size: 1.5rem;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .menu-tabs {
        flex-direction: column;
        gap: 0.5rem;
    }

    .tab-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===========================
   ACCESSIBILITY
   =========================== */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
