/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Template-specific styles */
.main-content {
    min-height: calc(100vh - 200px); /* Ensure footer stays at bottom */
}

/* Active navigation link styling */
.nav-link.active {
    color: #D2B48C !important;
    font-weight: 600;
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: #D2B48C;
    border-radius: 1px;
}

/* Page header styles for consistent page headers */
.page-header {
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
    color: white;
    padding: 120px 0 60px;
    text-align: center;
    margin-top: 80px; /* Account for fixed navbar */
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Breadcrumb navigation */
.breadcrumbs {
    background: #f8f9fa;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    margin-top: 80px; /* Account for fixed navbar */
}

.breadcrumbs ol {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumbs li {
    display: flex;
    align-items: center;
}

.breadcrumbs li:not(:last-child)::after {
    content: '';
    margin: 0 10px;
}

.breadcrumbs a {
    color: #8B4513;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.breadcrumbs a:hover {
    color: #A0522D;
}

.breadcrumbs span[aria-current="page"] {
    color: #666;
    font-weight: 600;
}

.breadcrumbs i {
    color: #ccc;
    font-size: 0.8rem;
    margin: 0 8px;
}

/* Filter Sections */
.filters-section, .filters {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.filters-section h3, .filters h3 {
    color: #8B4513;
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
}

.filters-form, .filters form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    align-items: end;
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.filter-group select,
.filter-group input {
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: #8B4513;
}

/* Search and Results */
.search-results {
    margin-bottom: 30px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #8B4513;
}

.results-count {
    font-weight: 600;
    color: #8B4513;
}

.clear-filters {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    margin-left: 15px;
}

.clear-filters:hover {
    color: #8B4513;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-results i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-results h3 {
    margin-bottom: 15px;
    color: #333;
}

/* Loading States */
.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.loading i {
    font-size: 2rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Error Messages */
.error-message {
    background: #FFE6E6;
    color: #D8000C;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #FF6B6B;
}

.success-message {
    background: #E8F5E8;
    color: #2E7D32;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #4CAF50;
}

.warning-message {
    background: #FFF3CD;
    color: #856404;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #FFC107;
}

.info-message {
    background: #D1ECF1;
    color: #0C5460;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #17A2B8;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

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

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

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.btn-primary {
    background: linear-gradient(135deg, #8B4513, #A0522D);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #A0522D, #8B4513);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.4);
    color: white;
    text-decoration: none;
}

.btn-secondary {
    background: linear-gradient(135deg, #6B46C1, #8B5CF6);
    color: white;
    box-shadow: 0 4px 15px rgba(107, 70, 193, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #8B5CF6, #6B46C1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107, 70, 193, 0.4);
    color: white;
    text-decoration: none;
}

.btn-outline {
    background: transparent;
    color: #8B4513;
    border: 2px solid #8B4513;
}

.btn-outline:hover {
    background: #8B4513;
    color: white;
    text-decoration: none;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #8B4513;
}

.nav-logo i {
    margin-right: 10px;
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
}

.nav-menu li {
    margin-left: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #8B4513;
    text-decoration: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #FFF8DC, #F5DEB3);
    padding: 100px 20px 50px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    margin-right: 50px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: #8B4513;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #666;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image i {
    font-size: 15rem;
    color: #8B4513;
    opacity: 0.3;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #8B4513;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Vineyards Section */
.vineyards {
    padding: 80px 0;
    background: white;
}

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

.vineyard-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vineyard-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.vineyard-image {
    height: 200px;
    background: linear-gradient(135deg, #90EE90, #228B22);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.vineyard-image i {
    font-size: 4rem;
    color: white;
}

.vineyard-content {
    padding: 1.5rem;
}

.vineyard-content h3 {
    color: #8B4513;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.location {
    color: #666;
    margin-bottom: 1rem;
}

.location i {
    margin-right: 5px;
}

.established {
    color: #A0522D;
    font-weight: 600;
    font-size: 0.9rem;
}

.description {
    color: #666;
    line-height: 1.5;
    margin-top: 1rem;
}

/* Wines Section */
.wines {
    padding: 80px 0;
    background: linear-gradient(135deg, #F8F8FF, #E6E6FA);
}

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

.wine-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.wine-card[onclick] {
    cursor: pointer;
}

.wine-card[onclick]:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.wine-image {
    height: 200px;
    background: linear-gradient(135deg, #8B4513, #A0522D);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.wine-image i {
    font-size: 4rem;
    color: white;
    opacity: 0.8;
}

.wine-content {
    padding: 1.5rem;
}

.wine-content h3 {
    color: #8B4513;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.vineyard {
    color: #A0522D;
    font-weight: 600;
    font-size: 0.9rem;
}

.wine-details {
    display: flex;
    justify-content: space-between;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.wine-details span {
    background: #f8f9fa;
    padding: 5px 10px;
    border-radius: 15px;
    color: #666;
    font-weight: 500;
}

.wine-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.click-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #8B4513;
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wine-card[onclick]:hover .click-indicator {
    opacity: 1;
}

.click-indicator i {
    transition: transform 0.3s ease;
}

.wine-card[onclick]:hover .click-indicator i {
    transform: translateX(5px);
}

.wine-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stars {
    display: flex;
    gap: 2px;
}

.stars i {
    color: #FFD700;
    font-size: 1rem;
}

.rating-text {
    color: #666;
    font-size: 0.9rem;
}

.no-rating {
    color: #999;
    font-size: 0.9rem;
    font-style: italic;
}

/* About Section */
.about {
    padding: 80px 0;
    background: white;
}

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

.about-text h2 {
    color: #8B4513;
    margin-bottom: 1.5rem;
    font-size: 2.2rem;
}

.about-text p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat h3 {
    color: #8B4513;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.stat p {
    color: #666;
}

.about-image {
    text-align: center;
}

.about-image i {
    font-size: 12rem;
    color: #8B4513;
    opacity: 0.3;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: linear-gradient(135deg, #FFF8DC, #F5DEB3);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-item {
    margin-bottom: 2rem;
}

.contact-item i {
    color: #8B4513;
    font-size: 1.5rem;
    margin-right: 1rem;
    width: 30px;
}

.contact-item h4 {
    color: #333;
    margin-bottom: 0.5rem;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #E0E0E0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8B4513;
}

/* Footer */
.footer {
    background: #2C1810;
    color: white;
    padding: 3rem 0 1rem;
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #D2B48C;
}

.footer-section p {
    color: #ccc;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #D2B48C;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #8B4513;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: background 0.3s ease;
}

.social-links a:hover {
    background: #A0522D;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #444;
    color: #ccc;
}

/* Responsive Design */
@media (max-width: 1024px) and (min-width: 769px) {
    .stats {
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 120px 20px 50px;
    }

    .hero-content {
        margin-right: 0;
        margin-bottom: 2rem;
    }

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

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-image i {
        font-size: 8rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .wine-details {
        flex-direction: column;
        gap: 0.5rem;
    }

    .wine-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .about-image i {
        font-size: 6rem;
    }

    .filters-form, .filter-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

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

    .vineyard-grid,
    .wine-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

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