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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo img {
    height: 40px;
    width: auto;
}

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

.nav-menu a {
    text-decoration: none;
    transition: color 0.3s;
}

.nav-menu a {
    color: var(--nav-color) !important;
}

.nav-menu a:hover {
    opacity: 0.7;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../assets/img/home/Home.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.4rem;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
    margin: 0;
}

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

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: #722f37;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 3rem;
    color: #666;
}

/* Story Section */
.story {
    background: #f8f8f8;
}

.story-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.story-content {
    text-align: left;
}

.story-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #722f37;
}

.story-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.story-images {
    position: relative;
    height: 400px;
}

.main-image {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    position: absolute;
    bottom: 0;
    right: 0;
}

.sub-image {
    width: 200px;
    height: 280px;
    object-fit: cover;
    border-radius: 10px;
    position: absolute;
    top: 20px;
    left: 120px;
    z-index: 2;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Buttons */
.btn-primary, .btn-secondary {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
}

.btn-primary {
    background: #d4af37;
    color: white;
}

.btn-primary:hover {
    background: #b8941f;
}

.btn-secondary {
    background: #722f37;
    color: white;
}

.btn-secondary:hover {
    background: #5a252b;
}

.btn-secondary:disabled {
    background: #ccc;
    color: #666;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-secondary:disabled:hover {
    background: #ccc;
}

/* Dishes Section */
.dishes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.dish-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    text-align: center;
}

.dish-card:hover {
    transform: translateY(-5px);
}

.dish-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.dish-card h3 {
    color: #722f37;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Wine Section */
.wine {
    background: #f8f8f8;
}

.wine-carousel {
    position: relative;
    overflow: hidden;
    padding: 0 80px;
    margin: 0 20px;
}

.wine-slider {
    display: flex;
    transition: transform 0.3s ease;
    gap: 2rem;
    opacity: 1;
}

.wine-card {
    min-width: 300px;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.wine-card img {
    width: 150px;
    height: 200px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.wine-card h3 {
    color: #722f37;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.wine-card p {
    margin-bottom: 0.5rem;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #d4af37;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    touch-action: manipulation;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.carousel-btn.prev {
    left: 20px;
    z-index: 10;
}

.carousel-btn.next {
    right: 20px;
    z-index: 10;
}

.carousel-btn:hover {
    background: #b8941f;
}

/* Events Section */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.event-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 400px;
}

.event-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.event-date {
    background: #d4af37;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 1rem;
}

.event-card h3 {
    color: #722f37;
    margin-bottom: 1rem;
}

.event-card p {
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.event-card .btn-secondary {
    margin-top: auto;
}

/* Contact Section */
.contact {
    background: #722f37;
    color: white;
}

.contact h2 {
    color: white;
}

.contact .section-subtitle {
    color: #ccc;
}

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

.store-card {
    background: rgba(255,255,255,0.1);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
}

.store-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.store-card h3 {
    margin-bottom: 1.5rem;
    color: #d4af37;
}

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

.social-links a {
    color: white;
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 5px;
    transition: background 0.3s;
}

.social-links a:hover {
    background: rgba(255,255,255,0.1);
}

.social-links i {
    margin-right: 0.5rem;
    width: 20px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 10px;
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    height: auto;
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: #722f37;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-top: 2rem;
    flex: 1;
    overflow-y: auto;
    max-height: calc(80vh - 150px);
    padding-right: 10px;
}

/* Scrollbar styling for gallery */
.gallery-grid::-webkit-scrollbar {
    width: 8px;
}

.gallery-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.gallery-grid::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.gallery-grid::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.gallery-item {
    aspect-ratio: 1;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s;
}

.gallery-item:hover {
    transform: scale(1.05);
}

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

/* Image Viewer Modal */
.image-viewer {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
}

.image-viewer-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
}

.image-viewer img {
    width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
}

.image-viewer .close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    z-index: 3001;
}

/* Error Banner */
.error-banner {
    background: #f8d7da;
    color: #721c24;
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid #f5c6cb;
    font-size: 0.9rem;
}

.error-banner p {
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .dishes-grid {
        grid-template-columns: 1fr;
    }
    
    .wine-card {
        min-width: 250px;
    }
    
    .wine-carousel {
        padding: 0 60px;
        margin: 0 10px;
    }
    
    .carousel-btn {
        display: block;
        padding: 8px 12px;
        font-size: 1rem;
    }
    
    .carousel-btn.prev {
        left: 10px;
    }
    
    .carousel-btn.next {
        right: 10px;
    }
    
    .stores-grid {
        grid-template-columns: 1fr;
    }
    
    .social-links {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .story-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .story-images {
        height: 300px;
    }
    
    .main-image {
        width: 200px;
        height: 200px;
    }
    
    .sub-image {
        width: 150px;
        height: 200px;
    }
}