/* Global Styles */
:root {
    --primary-color: #5D1022;
    /* Deep Burgundy */
    --secondary-color: #BFA15F;
    /* Gold */
    --text-color: #F4F4F4;
    --background-color: #121212;
    /* Very Dark Grey */
    --surface-color: #1E1E1E;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
}

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

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    border: 1px solid var(--primary-color);
}

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

.btn-outline {
    background-color: transparent;
    color: white;
    padding: 0.8rem 2rem;
    border: 1px solid white;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

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

.btn-text {
    color: var(--secondary-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.btn-text:hover {
    color: white;
}

/* Navbar */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent);
}

#navbar.scrolled {
    background-color: var(--background-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    padding: 1rem 0;
}

#navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: 1px;
    text-transform: uppercase;
}

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

.nav-links li a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.nav-links li a:hover {
    opacity: 1;
    color: var(--secondary-color);
}

.nav-links .btn-primary {
    opacity: 1;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: white;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Hero Section */
#hero {
    height: 100vh;
    background: url('https://images.unsplash.com/photo-1510812431401-41d2bd2722f3?q=80&w=2670&auto=format&fit=crop') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 1rem;
    animation: fadeIn 1.5s ease-out;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* About Section */
#about {
    padding: var(--spacing-lg) 0;
    background-color: var(--surface-color);
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.separator {
    width: 60px;
    height: 2px;
    background-color: var(--secondary-color);
    margin: 0 auto;
}

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

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #ccc;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.feature-card {
    border-left: 2px solid var(--secondary-color);
    padding-left: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.feature-card p {
    color: #999;
}

/* Events Section */
#events {
    padding: var(--spacing-lg) 0;
}

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

.event-card {
    background-color: var(--surface-color);
    padding: 2rem;
    border-radius: 4px;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.event-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary-color);
}

.event-date {
    color: var(--secondary-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.event-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.event-card p {
    color: #aaa;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* Contact Section */
#contact {
    padding: var(--spacing-lg) 0;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1506377247377-2a5b3b417ebb?q=80&w=2670&auto=format&fit=crop') no-repeat center center/cover;
    background-attachment: fixed;
}

.contact-box {
    background-color: rgba(30, 30, 30, 0.9);
    padding: 3rem;
    max-width: 600px;
    margin: 0 auto;
    border-radius: 4px;
    border: 1px solid var(--secondary-color);
}

.contact-box h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-box p {
    margin-bottom: 2rem;
    color: #ccc;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input {
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-family: var(--font-body);
}

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

/* Footer */
footer {
    background-color: #0d0d0d;
    padding: 4rem 0 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-col p,
.footer-col ul li a {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    display: block;
}

.footer-col ul li a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
    color: #555;
    font-size: 0.8rem;
}


/* Next Tasting Section */
.next-tasting-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1596561570183-b7b5107f9c9b?q=80&w=2670&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    padding: 6rem 0;
    text-align: center;
    margin-bottom: 4rem;
    border-radius: 8px;
    border: 1px solid var(--secondary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.next-tasting-hero h2 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: white;
}

.next-tasting-hero .subtitle {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    font-weight: 300;
}

.next-tasting-details {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2rem;
    color: #ddd;
}

.detail-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.detail-item span.label {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    opacity: 0.7;
}

.detail-item span.value {
    font-size: 1.2rem;
    font-weight: 700;
}

/* Past Tastings Section */
.past-tastings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.past-tasting-card {
    background-color: var(--surface-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.past-tasting-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border-color: var(--secondary-color);
}

.card-image {
    height: 200px;
    background-color: #333;
    background-size: cover;
    background-position: center;
}

.card-content {
    padding: 1.5rem;
}

.card-content .date {
    color: var(--secondary-color);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    display: block;
}

.card-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: white;
}

.card-content p {
    color: #aaa;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Page Specific: Tasting Details */
.tasting-header {
    height: 60vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
}

.tasting-intro {
    padding: 4rem 0;
    max-width: 800px;
    margin: 0 auto;
}

.start-quote {
    font-size: 1.5rem;
    font-style: italic;
    text-align: center;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    font-family: var(--font-heading);
}

.wines-list {
    background-color: var(--surface-color);
    padding: 3rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.wines-list h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--secondary-color);
}

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

.wine-item:last-child {
    border-bottom: none;
}

.wine-name {
    font-weight: 700;
}

.wine-vintage {
    color: #888;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 70%;
        background-color: var(--surface-color);
        flex-direction: column;
        justify-content: center;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .hamburger {
        display: block;
        z-index: 1001;
    }

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

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

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

    .hero-content h1 {
        font-size: 2.5rem;
    }

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

    .contact-box {
        padding: 2rem;
    }
}