/* Base styles imported via HTML, no need for @import */

/* Navigation Menu Font Override - inherit from main styles */
.nav-menu a {
    font-family: inherit;
    text-transform: none;
}

/* BPG ExtraSquare Mtavruli font */
@font-face {
    font-family: 'BPG ExtraSquare Mtavruli';
    src: url('/fonts/bpg_extrasquare_mtavruli_2009.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* BPG Algeti font */
@font-face {
    font-family: 'BPG Algeti';
    src: url('/fonts/bpg_algeti.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Global Typography - Only for wine content, not navigation */
.wine-card h1, .wine-card h2, .wine-card h3, .wine-card h4, .wine-card h5, .wine-card h6,
.hero h1, .hero h2, .hero h3, .hero h4, .hero h5, .hero h6,
.introduction h1, .introduction h2, .introduction h3, .introduction h4, .introduction h5, .introduction h6 {
    font-family: 'BPG Algeti', sans-serif;
    font-weight: normal;
    color: #8b0000;
    text-transform: lowercase;
}

.wine-card p, .hero p, .introduction p {
    font-family: 'BPG Algeti', sans-serif;
    text-transform: lowercase;
}

/* Draft Wines Page Specific Styles - Only for main content */
.wines-grid, .hero, .introduction {
    font-family: 'BPG Algeti', sans-serif;
    text-transform: lowercase;
}

/* English text should use English fonts */
.wines-grid *:lang(en),
.hero *:lang(en),
.introduction *:lang(en) {
    font-family: 'Open Sans', 'Montserrat', Arial, sans-serif !important;
    text-transform: none !important;
}

/* Alternative approach - detect Latin characters */
.wines-grid .wine-card:not([lang="ka"]) h3,
.wines-grid .wine-card:not([lang="ka"]) p,
.wines-grid .wine-card:not([lang="ka"]) strong {
    font-family: 'Open Sans', 'Montserrat', Arial, sans-serif !important;
}

/* Specific override for English wine page */
html[lang="en"] .wines-grid,
html[lang="en"] .wines-grid *,
html[lang="en"] .hero,
html[lang="en"] .hero *,
html[lang="en"] .introduction,
html[lang="en"] .introduction * {
    font-family: 'Open Sans', 'Montserrat', Arial, sans-serif !important;
    text-transform: none !important;
}

html[lang="en"] .wine-card h1,
html[lang="en"] .wine-card h2, 
html[lang="en"] .wine-card h3, 
html[lang="en"] .wine-card h4, 
html[lang="en"] .wine-card h5, 
html[lang="en"] .wine-card h6 {
    font-family: 'Montserrat', Arial, sans-serif !important;
    font-weight: 600 !important;
    text-transform: none !important;
}

html[lang="en"] .wine-card p,
html[lang="en"] .wine-description,
html[lang="en"] .wine-details {
    font-family: 'Open Sans', Arial, sans-serif !important;
    font-weight: 400 !important;
    text-transform: none !important;
}

/* Ensure Georgian page keeps BPG Algeti font */
html[lang="ka"] .wines-grid,
html[lang="ka"] .wines-grid *,
html[lang="ka"] .hero,
html[lang="ka"] .hero *,
html[lang="ka"] .introduction,
html[lang="ka"] .introduction * {
    font-family: 'BPG Algeti', sans-serif !important;
    text-transform: lowercase !important;
}

html[lang="ka"] .wine-card h1,
html[lang="ka"] .wine-card h2, 
html[lang="ka"] .wine-card h3, 
html[lang="ka"] .wine-card h4, 
html[lang="ka"] .wine-card h5, 
html[lang="ka"] .wine-card h6 {
    font-family: 'BPG Algeti', sans-serif !important;
    color: #8b0000 !important;
    text-transform: lowercase !important;
}

html[lang="ka"] .wine-card p,
html[lang="ka"] .wine-description,
html[lang="ka"] .wine-details {
    font-family: 'BPG Algeti', sans-serif !important;
    text-transform: lowercase !important;
}

/* Footer Font Override - Only for wine content in footer */
.footer .wine-details, .footer .wine-card {
    font-family: 'BPG Algeti', sans-serif;
    text-transform: lowercase;
}

/* Footer H3 Color Override */
.footer h3 {
    color: white !important;
}

/* Button Font Override - Only for wine page specific buttons */
.wine-card .btn-primary, .wine-card .btn-secondary, .hero button {
    font-family: 'BPG Algeti', sans-serif;
    text-transform: lowercase;
}

/* Form Elements Font Override - Only for wine page forms */
.wine-card input, .wine-card textarea, .wine-card select {
    font-family: 'BPG Algeti', sans-serif;
    text-transform: lowercase;
}

/* FontAwesome icons should keep their original font - Enhanced specificity */
.fas,
.far,
.fal,
.fab,
.fa,
i[class*="fa-"],
html[lang="en"] .fas,
html[lang="en"] .far,
html[lang="en"] .fal,
html[lang="en"] .fab,
html[lang="en"] .fa,
html[lang="en"] i[class*="fa-"],
html[lang="ka"] .fas,
html[lang="ka"] .far,
html[lang="ka"] .fal,
html[lang="ka"] .fab,
html[lang="ka"] .fa,
html[lang="ka"] i[class*="fa-"],
body.lang-en .fas,
body.lang-en .far,
body.lang-en .fal,
body.lang-en .fab,
body.lang-en .fa,
body.lang-en i[class*="fa-"],
.play-button .fas,
.play-button .far,
.play-button .fal,
.play-button .fab,
.play-button .fa,
.play-button i[class*="fa-"] {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", "Font Awesome 5 Pro", "Font Awesome 5 Brands", "FontAwesome" !important;
    text-transform: none !important;
}

/* Font Size Adjustments for Georgian Lowercase */
h1 {
    font-size: 2.2rem;
}

h2 {
    font-size: 1.8rem;
}

h3 {
    font-size: 1.4rem;
}

p, button, input, textarea, select {
    font-size: 0.95rem;
}

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

.hero-content p {
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('/images/winestoretasting2.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(139, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
    transform: translateY(15px);
    margin-top: 100px;
}

.hero-title {
    background: rgba(139, 0, 0, 0.8);
    display: inline-block;
    padding: 20px 40px;
    border-radius: 10px;
    margin-bottom: 40px;
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 1.5px;
    color: white;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-top: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

/* Introduction Section */
.introduction {
    padding: 80px 0;
    background: #f8f9fa;
}

.intro-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px 10px;
    height: 190px;
    justify-content: center;
}

.intro-content h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    line-height: 1.3;
}

.intro-content p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-top: 0;
    max-width: 800px;
}

/* Wines Grid */
.wines-grid {
    padding: 20px 0;
    background: white;
}

.wines-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.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;
    border: 1px solid #e0e0e0;
}

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

.wine-image {
    height: 300px;
    overflow: hidden;
    position: relative;
}

.wine-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.wine-card:hover .wine-image img {
    transform: scale(1.05);
}

.wine-content {
    padding: 30px;
}

.wine-content h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    line-height: 1.4;
    letter-spacing: 0.5px;
    font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
    font-weight: 600;
}

.wine-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    font-family: 'Open Sans', 'Montserrat', Arial, sans-serif;
    text-transform: lowercase;
}

.wine-details {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #8b0000;
}

.wine-details p {
    margin-bottom: 10px;
    font-size: 0.9rem;
    line-height: 1.5;
    font-family: 'Open Sans', 'Montserrat', Arial, sans-serif;
    text-transform: lowercase;
}

.wine-details strong {
    font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
    color: #8b0000;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: lowercase;
}

/* Mobile responsive for language switcher */
@media (max-width: 768px) {
    .hero {
        height: 50vh;
    }

    .hero-title {
        font-size: 1.8rem;
        padding: 15px 30px;
    }

    .hero-content {
        padding: 0 15px;
        margin-top: 80px;
        transform: translateY(10px);
    }

    .hero-content h1 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }

    .hero-content p {
        font-size: 1rem;
        margin-top: 15px;
    }

    .intro-content {
        padding: 40px 20px;
        text-align: center;
        height: 200px;
    }

    .intro-content h2 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    .intro-content p {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .wines-container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 15px;
    }

    .wine-image {
        height: 200px;
    }

    .wine-content {
        padding: 15px;
    }

    .wine-details {
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 50vh;
    }
    
    .hero-title {
        font-size: 1.8rem;
        padding: 15px 25px;
    }
    
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0 15px;
    }
    
    .hero-content h1 {
        margin-bottom: 12px;
        font-size: 1.6rem;
        line-height: 1.2;
    }
    
    .hero-content p {
        font-size: 0.9rem;
        margin-top: 0;
        line-height: 1.4;
    }
    
    .intro-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0 15px;
        height: 230px;
    }
    
    .intro-content h2 {
        font-size: 1.8rem;
        margin-bottom: 15px;
        line-height: 1.3;
    }
    
    .intro-content p {
        margin-top: 0;
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .wine-image {
        height: 170px;
    }
    
    .wine-content {
        padding: 20px;
    }
    
    .wine-details {
        padding: 15px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animation for images */
.wine-image img {
    opacity: 0;
    animation: fadeIn 0.5s ease-in forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Print styles */
@media print {
    .navbar, .footer, .scroll-to-top, .call-mobile-btn {
        display: none;
    }
    
    .wine-card {
        break-inside: avoid;
        page-break-inside: avoid;
        margin-bottom: 30px;
        box-shadow: none;
    }
    
    .hero {
        height: auto;
        padding: 40px 0;
        background: none;
    }
    
    .hero-overlay {
        display: none;
    }
} 