:root {
    --primary: #1E382A;  /* Rich forest green */
    --secondary: #3C4A3E; /* Dark olive */
    --accent: #B8860B;   /* Deep gold */
    --light: #F5F1E6;    /* Cream */
    --dark: #222222;     /* Jet black */
    --white: #ffffff;
}

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding-top: 76px;
    color: var(--dark);
    line-height: 1.6;
    background-color: var(--light);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: var(--primary);
}

.navbar {
    background-color: rgba(30, 56, 42, 0.95);
    transition: all 0.3s ease;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar.scrolled {
    background-color: rgba(30, 56, 42, 0.98);
    padding: 0.5rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    color: var(--accent) !important;
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    }

.nav-link {
    color: var(--light) !important;
    font-family: 'Montserrat', sans-serif;
    transition: color 0.3s ease;
    font-size: 0.9rem;
    padding: 0.5rem 1rem !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-link:hover {
    color: var(--accent) !important;
}

.nav-link.active {
    color: var(--accent) !important;
}

.hero-section {
    height: 60vh;
    min-height: 400px;
    max-height: 600px;
    background: linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.1)),
                url('/static/images/hero-watercolor.png') no-repeat center center;
    background-size: contain;
    background-position: center bottom;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--primary);
    position: relative;
    margin-top: 0;
    padding-top: 100px;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
    margin-top: 76px; /* Add margin to account for the fixed navbar */
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--primary);
    text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
    font-weight: 700;
}

.hero-content p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--primary);
    text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
}

.btn-primary {
    background-color: var(--accent);
    border-color: var(--accent);
    color: var(--light);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 30px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-primary:hover {
    background-color: #8B6508;
    border-color: #8B6508;
    transform: translateY(-2px);
}

.footer {
    background-color: var(--primary);
    color: var(--light);
    padding: 2rem 0;
    font-family: 'Montserrat', sans-serif;
}

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

.footer a:hover {
    color: var(--light);
}

/* Section Styles */
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.history-title {
    color: #2E5A3E;
}

.vision-title {
    color: #346845;
}

.team-title {
    color: #3F7850;
}

.about-section h2,
.team-section h2 {
    margin-bottom: 2rem;
}

.about-section, .vineyard-section, .vision-section, .team-section {
    padding: 5rem 0;
}

.vineyard-section .row, .vision-section .row {
    margin-top: 3rem;
}

.team-section .team-member {
    margin-bottom: 3rem;
}

.section-subtitle {
    font-family: 'Montserrat', sans-serif;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Card Styles */
.card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    background-color: var(--white);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.card-title {
    font-family: 'Playfair Display', serif;
    color: var(--primary);
}

/* Form Styles */
.form-control {
    border: 1px solid rgba(30, 56, 42, 0.2);
    border-radius: 4px;
    padding: 0.6rem;
    transition: all 0.3s ease;
    background-color: var(--white);
    font-size: 0.9rem;
}

.contact-form {
    max-width: 450px;
    padding: 1.5rem;
}

.contact-info {
    padding: 1.5rem;
    margin-top: 2.5rem;
}

.contact-section .row {
    margin-top: 4rem;
}

.contact-form h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.contact-form .form-group {
    margin-bottom: 1rem;
}

.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 0.2rem rgba(184, 134, 11, 0.25);
}

/* Table Styles */
.table {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
}

.table th {
    background-color: var(--primary);
    color: var(--light);
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    border-bottom: 2px solid var(--accent);
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 1s ease-out;
}

/* Gallery Styles */
.gallery-item {
    position: relative;
    padding-top: 75%; /* 4:3 Aspect Ratio */
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.gallery-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

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

/* Responsive hero section adjustments */
@media (max-width: 768px) {
    .hero-section {
        height: 50vh;
        min-height: 300px;
        max-height: 400px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        height: 40vh;
        min-height: 250px;
        max-height: 350px;
    }
}

/* Mobile navigation fixes */
@media (max-width: 991px) {
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    .navbar-collapse {
        margin-top: 1rem;
    }
    
    .nav-link {
        padding: 0.75rem 1rem !important;
        font-size: 0.95rem;
        text-align: center;
    }
    
    .navbar-nav {
        background-color: rgba(30, 56, 42, 0.98);
        border-radius: 8px;
        padding: 0.5rem 0;
        margin-top: 0.5rem;
    }
}