/**
 * Bistro Suete Restaurant - Main Stylesheet
 * Core styles, design system, and typography
 */

/* ========================================
   CSS VARIABLES - Design System
   ======================================== */
:root {
    /* Romanian Traditional Colors */
    --primary-red: #CE1126;
    --primary-yellow: #FCD116;
    --primary-blue: #002B7F;
    --earth-brown: #8B4513;
    --warm-beige: #F5E6D3;

    /* Neutral Colors */
    --text-dark: #2C2C2C;
    --text-medium: #555555;
    --text-light: #FFFFFF;
    --bg-white: #FFFFFF;
    --bg-light: #F9F9F9;
    --bg-dark: #1A1A1A;

    /* Accent Colors */
    --accent-gold: #D4AF37;
    --accent-green: #2D7836;

    /* Typography */
    --font-primary: 'Space Mono', monospace;
    --font-headings: 'Macondo', cursive;

    /* Font Sizes */
    --font-size-xs: 0.75rem;      /* 12px */
    --font-size-sm: 0.875rem;     /* 14px */
    --font-size-base: 1rem;       /* 16px */
    --font-size-lg: 1.125rem;     /* 18px */
    --font-size-xl: 1.25rem;      /* 20px */
    --font-size-2xl: 1.5rem;      /* 24px */
    --font-size-3xl: 1.875rem;    /* 30px */
    --font-size-4xl: 2.25rem;     /* 36px */
    --font-size-5xl: 3rem;        /* 48px */

    /* Spacing */
    --spacing-xs: 0.5rem;         /* 8px */
    --spacing-sm: 1rem;           /* 16px */
    --spacing-md: 2rem;           /* 32px */
    --spacing-lg: 4rem;           /* 64px */
    --spacing-xl: 6rem;           /* 96px */

    /* Layout */
    --container-width: 1200px;
    --border-radius: 8px;
    --border-radius-lg: 16px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.2);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Z-index layers */
    --z-navbar: 1000;
    --z-dropdown: 1100;
    --z-modal: 1200;
}

/* ========================================
   RESET & BASE STYLES
   ======================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

h1 { font-size: var(--font-size-5xl); }
h2 { font-size: var(--font-size-4xl); }
h3 { font-size: var(--font-size-3xl); }
h4 { font-size: var(--font-size-2xl); }
h5 { font-size: var(--font-size-xl); }
h6 { font-size: var(--font-size-lg); }

p {
    margin-bottom: var(--spacing-sm);
}

a {
    color: var(--primary-red);
    text-decoration: none;
    transition: color var(--transition-base);
}

a:hover {
    color: var(--earth-brown);
}

/* ========================================
   LAYOUT COMPONENTS
   ======================================== */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section {
    padding: var(--spacing-lg) 0;
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-red);
}

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

/* ========================================
   NAVIGATION BAR
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-white);
    box-shadow: var(--shadow-md);
    z-index: var(--z-navbar);
    transition: transform var(--transition-base);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-family: var(--font-headings);
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--primary-red);
}

.logo img {
    height: 50px;
    width: auto;
}

.logo-text {
    display: none;
}

.nav-menu {
    display: none;
    gap: var(--spacing-md);
}

.nav-link {
    font-weight: 600;
    color: var(--text-dark);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius);
    transition: all var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-red);
    background-color: var(--warm-beige);
}

/* Hamburger Menu */
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
    z-index: calc(var(--z-navbar) + 10);
}

.hamburger-line {
    width: 30px;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: all var(--transition-base);
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* ========================================
   HERO / SLIDER
   ======================================== */
.hero {
    margin-top: 70px;
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 500px;
    overflow: hidden;
}

.slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-track {
    display: flex;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity var(--transition-slow);
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--text-light);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    z-index: 2;
    width: 90%;
    max-width: 800px;
}

.slide-title {
    font-size: var(--font-size-4xl);
    margin-bottom: var(--spacing-sm);
    color: var(--text-light);
}

.slide-subtitle {
    font-size: var(--font-size-xl);
    font-weight: 300;
}

/* Slider Controls */
.slider-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.3);
    border: none;
    color: var(--text-light);
    font-size: var(--font-size-3xl);
    padding: var(--spacing-sm);
    cursor: pointer;
    z-index: 3;
    transition: background-color var(--transition-base);
    border-radius: var(--border-radius);
}

.slider-control:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

.slider-control.prev {
    left: var(--spacing-sm);
}

.slider-control.next {
    right: var(--spacing-sm);
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: var(--spacing-md);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--spacing-xs);
    z-index: 3;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all var(--transition-base);
}

.dot.active,
.dot:hover {
    background-color: var(--text-light);
    transform: scale(1.2);
}

/* ========================================
   MENU SECTION
   ======================================== */
.menu-section {
    background-color: var(--bg-light);
}

.menu-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

.menu-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-md);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

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

.menu-card-icon {
    font-size: var(--font-size-5xl);
    margin-bottom: var(--spacing-sm);
}

.menu-card-title {
    color: var(--primary-red);
    margin-bottom: var(--spacing-xs);
}

.menu-card-description {
    color: var(--text-medium);
    margin-bottom: var(--spacing-sm);
}

.menu-card-size {
    font-size: var(--font-size-sm);
    color: var(--text-medium);
    margin-bottom: var(--spacing-md);
}

.menu-card-actions {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-base);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-red);
    color: var(--text-light);
    border-color: var(--primary-red);
}

.btn-primary:hover {
    background-color: var(--earth-brown);
    border-color: var(--earth-brown);
    color: var(--text-light);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-red);
    border-color: var(--primary-red);
}

.btn-secondary:hover {
    background-color: var(--primary-red);
    color: var(--text-light);
}

.btn-large {
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: var(--font-size-lg);
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

.about-text {
    font-size: var(--font-size-lg);
    line-height: 1.8;
}

.about-intro {
    font-weight: 600;
    color: var(--primary-red);
}

.about-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

.feature {
    background-color: var(--warm-beige);
    padding: var(--spacing-md);
    border-radius: var(--border-radius-lg);
    text-align: center;
    border: 2px solid var(--primary-yellow);
}

.feature-icon {
    font-size: var(--font-size-4xl);
    margin-bottom: var(--spacing-sm);
}

.feature h3 {
    color: var(--primary-red);
    margin-bottom: var(--spacing-xs);
}

.feature p {
    color: var(--text-medium);
    margin-bottom: 0;
}

/* ========================================
   SCHEDULE SECTION
   ======================================== */
.schedule-section {
    background-color: var(--bg-light);
}

.schedule-table {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--bg-white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.schedule-row {
    display: flex;
    justify-content: space-between;
    padding: var(--spacing-sm) var(--spacing-md);
    border-bottom: 1px solid var(--warm-beige);
}

.schedule-row:last-child {
    border-bottom: none;
}

.schedule-row:nth-child(odd) {
    background-color: var(--bg-light);
}

.schedule-day {
    font-weight: 600;
    color: var(--primary-red);
}

.schedule-hours {
    color: var(--text-dark);
}

/* ========================================
   LOCATION SECTION
   ======================================== */
.location-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

.map-container {
    width: 100%;
    height: 450px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.map-container iframe {
    width: 100%;
    height: 100%;
}

.location-info {
    text-align: center;
}

.location-details h3 {
    color: var(--primary-red);
    margin-bottom: var(--spacing-xs);
}

.location-details p {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-md);
}

/* ========================================
   REVIEWS SECTION
   ======================================== */
.reviews-section {
    background-color: var(--bg-light);
}

.reviews-stats {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
}

.stats-item {
    text-align: center;
}

.stats-value {
    display: block;
    font-size: var(--font-size-4xl);
    font-weight: 700;
    color: var(--primary-red);
}

.stats-label {
    display: block;
    font-size: var(--font-size-base);
    color: var(--text-medium);
}

.reviews-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

.review-card {
    background-color: var(--bg-white);
    padding: var(--spacing-md);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-sm);
}

.reviewer-name {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-dark);
}

.review-rating {
    color: var(--primary-yellow);
    font-size: var(--font-size-xl);
}

.review-text {
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-medium);
    margin-bottom: var(--spacing-sm);
}

.review-date {
    font-size: var(--font-size-sm);
    color: var(--text-medium);
}

.loading {
    text-align: center;
    padding: var(--spacing-lg);
    color: var(--text-medium);
}

/* ========================================
   PHOTO GALLERY SECTION
   ======================================== */
.gallery-section {
    background-color: var(--bg-light);
}

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    aspect-ratio: 1;
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-attribution {
    text-align: center;
    font-size: var(--font-size-sm);
    color: var(--text-medium);
    font-style: italic;
    margin-top: var(--spacing-md);
}

.gallery-item {
    cursor: pointer;
}

/* ========================================
   GALLERY LIGHTBOX MODAL
   ======================================== */
.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: var(--z-modal);
    align-items: center;
    justify-content: center;
}

.gallery-modal.active {
    display: flex;
}

.gallery-modal-content {
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-modal-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.gallery-modal-close {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--text-light);
    font-size: 3rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    transition: background var(--transition-base);
    z-index: calc(var(--z-modal) + 1);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.gallery-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.gallery-modal-prev,
.gallery-modal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--text-light);
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    transition: background var(--transition-base);
    z-index: calc(var(--z-modal) + 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-modal-prev {
    left: var(--spacing-md);
}

.gallery-modal-next {
    right: var(--spacing-md);
}

.gallery-modal-prev:hover,
.gallery-modal-next:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Mobile adjustments for modal controls */
@media (max-width: 767px) {
    .gallery-modal-close {
        width: 50px;
        height: 50px;
        font-size: 2.5rem;
        top: var(--spacing-sm);
        right: var(--spacing-sm);
    }

    .gallery-modal-prev,
    .gallery-modal-next {
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }

    .gallery-modal-prev {
        left: var(--spacing-sm);
    }

    .gallery-modal-next {
        right: var(--spacing-sm);
    }
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

.contact-card {
    background-color: var(--warm-beige);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-lg);
    text-align: center;
    border: 2px solid var(--primary-yellow);
}

.contact-icon {
    font-size: var(--font-size-4xl);
    margin-bottom: var(--spacing-sm);
}

.contact-card h3 {
    color: var(--primary-red);
    margin-bottom: var(--spacing-sm);
}

.contact-link {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--primary-blue);
}

.contact-link:hover {
    color: var(--primary-red);
}

.contact-text {
    font-size: var(--font-size-lg);
    color: var(--text-dark);
}

.contact-map {
    margin-top: var(--spacing-lg);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.contact-map iframe {
    display: block;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: var(--spacing-lg) 0 var(--spacing-md);
}

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

.footer-section h3 {
    color: var(--primary-yellow);
    margin-bottom: var(--spacing-sm);
}

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

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-links a:hover {
    color: var(--primary-yellow);
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
}

.social-link {
    color: rgba(255, 255, 255, 0.8);
}

.social-link:hover {
    color: var(--primary-yellow);
}

.footer-schedule {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.footer-schedule-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--font-size-base);
}

.footer-schedule-day {
    font-weight: 600;
}

.footer-schedule-hours {
    color: var(--primary-yellow);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--font-size-sm);
}
