:root {
    /* Color Palette - Warm & Minimalist */
    --color-primary: #722F37;
    /* Merlot / Wine Red */
    --color-secondary: #D4C4A8;
    /* Warm Beige / Gold-ish */
    --color-bg: #F9F8F6;
    /* Off-white / Cream */
    --color-text-main: #2C2C2C;
    /* Soft Black */
    --color-text-light: #666666;
    --color-accent: #8da399;
    /* Sage Green - subtle nature touch */

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;

    /* Spacing */
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
    /* Offset for sticky header */
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text-main);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
}

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

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

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-md {
    margin-top: var(--spacing-md);
}

.mt-lg {
    margin-top: var(--spacing-lg);
}

.mb-lg {
    margin-bottom: var(--spacing-lg);
}

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

.img-rounded {
    border-radius: 8px;
}

.shadow {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.bg-light {
    background-color: #fff;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #fff;
    border: 2px solid var(--color-primary);
}

.btn-primary:hover {
    background-color: #fff;
    color: var(--color-primary);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-text-main);
    border: 2px solid var(--color-secondary);
}

.btn-secondary:hover {
    background-color: var(--color-secondary);
    color: #fff;
}

/* Header & Nav */
.main-header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
}

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

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

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    text-decoration: none;
    color: var(--color-text-main);
    font-weight: 400;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--color-primary);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--color-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Mobile Menu Active State */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Hero Section */
.hero {
    position: relative;
    height: 80vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

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

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

.hero-content {
    color: #fff;
    max-width: 800px;
}

.hero-title {
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    font-weight: 300;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Intro Section */
.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.intro-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.intro-text p {
    color: var(--color-text-light);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

/* Section Header */
.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--color-text-light);
    font-weight: 300;
}

/* Content Sections */
.content-block {
    margin-bottom: 40px;
}

.content-block h2,
.content-block h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--color-primary);
}

.content-block p {
    margin-bottom: 15px;
    color: var(--color-text-light);
}

/* Wine Grid */
.wine-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.wine-card {
    background: #fff;
    border: 1px solid #eee;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    /* Indicate clickability */
    position: relative;
    overflow: hidden;
}

.wine-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.wine-card h3,
.wine-card h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--color-primary);
}

.wine-card p.wine-short-desc {
    color: var(--color-text-light);
    font-size: 0.95rem;
    margin-bottom: 0;
    /* Remove margin when collapsed */
}

/* Expandable Wine Detail */
.wine-detail-expandable {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, opacity 0.5s ease-out;
    opacity: 0;
    text-align: left;
    margin-top: 0;
}

.wine-card.active .wine-detail-expandable {
    max-height: 500px;
    /* Arbitrary large height */
    opacity: 1;
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.detail-content {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.detail-img-small {
    width: 60px;
    /* Smaller image */
    height: auto;
    flex-shrink: 0;
}

.detail-text p {
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: var(--color-text-main);
}

.detail-text .food-pairing {
    font-size: 0.85rem;
    color: var(--color-text-light);
    font-style: italic;
}

.wine-category {
    margin-bottom: 60px;
}

.wine-category h3 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.wine-category h3::after {
    gap: 60px;
    margin-bottom: 60px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    margin-bottom: 60px;
}

.contact-info-box {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    height: 100%;
}

.contact-item {
    margin-bottom: 30px;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--color-primary);
}

.contact-item p,
.contact-item a {
    font-size: 1.1rem;
    color: var(--color-text-main);
    text-decoration: none;
    transition: color 0.3s;
}

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

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
}

textarea.form-control {
    resize: vertical;
}

.map-container {
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

/* Footer */
footer {
    background-color: var(--color-primary);
    color: #fff;
    padding: 40px 0;
    margin-top: 60px;
}

/* Responsive Styles */
@media (max-width: 992px) {

    .intro-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .intro-image {
        order: -1;
    }

    .hero-title {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #fff;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        text-align: center;
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 15px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }
}

/* ======================
   Form Success & Error Messages
   ====================== */
.form-success {
    background-color: #d4edda;
    border: 2px solid #28a745;
    border-radius: 8px;
    padding: 30px;
    margin: 0 auto 40px;
    text-align: center;
    max-width: 600px;
}

.form-success h4 {
    color: #155724;
    margin-bottom: 10px;
    font-size: 1.3rem;
    font-family: var(--font-heading);
}

.form-success p {
    color: #155724;
    margin: 0;
    font-size: 1rem;
}

.form-error {
    background-color: #f8d7da;
    border: 2px solid #dc3545;
    border-radius: 8px;
    padding: 30px;
    margin: 0 auto 40px;
    text-align: center;
    max-width: 600px;
}

.form-error h4 {
    color: #721c24;
    margin-bottom: 10px;
    font-size: 1.3rem;
    font-family: var(--font-heading);
}

.form-error p {
    color: #721c24;
    margin: 0;
    font-size: 1rem;
}

/* Button loading state */
.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}