/* ========================================
   Wizym Wine & Winery CSS
   ======================================== */

/* ========================================
   1. General Styles
   ======================================== */

:root {
    --primary-color: #8b2332;
    --secondary-color: #c9a961;
    --dark-color: #1a1a1a;
    --light-color: #f5f5f5;
    --text-color: #666;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Laila', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
    position: relative;
    background-image: url('../images/logo350.png');
    background-repeat: repeat;
    background-size: 180px;
    background-color: #ffffff;
    background-attachment: fixed;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.97);
    z-index: 0;
    pointer-events: none;
}

header, section, footer, .navbar, .top-bar {
    position: relative;
    z-index: 1;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Libre Baskerville', serif;
    color: var(--dark-color);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
}

.logo {
    font-family: 'Marcellus', serif;
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    color: var(--primary-color);
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

.section-subtitle {
    font-family: 'Marcellus', serif;
    color: var(--secondary-color);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 10px;
}

.section-title {
    font-size: 28px;
    margin-bottom: 15px;
}

.section-description {
    color: var(--text-color);
    font-size: 14px;
}

/* Buttons */
.btn {
    padding: 10px 25px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--dark-color);
    border-color: var(--dark-color);
    color: var(--white);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-light {
    background-color: var(--white);
    color: var(--primary-color);
    border: none;
}

.btn-light:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

/* ========================================
   2. Header & Navigation
   ======================================== */

.top-bar {
    background-color: var(--dark-color);
    padding: 10px 0;
    color: var(--white);
    font-size: 14px;
}

.contact-info span {
    margin-right: 25px;
}

.contact-info i {
    margin-right: 8px;
    color: var(--secondary-color);
}

.social-links a {
    color: var(--white);
    margin-left: 15px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--secondary-color);
}

.navbar {
    padding: 15px 0;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.navbar-brand .logo-text {
    font-family: 'Marcellus', serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.navbar-brand .logo {
    margin: 0;
}

.navbar-nav .nav-link {
    color: var(--dark-color);
    font-weight: 600;
    padding: 8px 10px;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
    position: relative;
}

.navbar-nav .nav-link:after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 10px;
    right: 10px;
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.navbar-nav .nav-link:hover:after,
.navbar-nav .nav-item.active .nav-link:after {
    transform: scaleX(1);
}

.cart-icon {
    margin-left: 20px;
}

.cart-icon a {
    color: var(--dark-color);
    font-size: 20px;
    position: relative;
}

.cart-icon .badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    padding: 3px 6px;
    font-size: 10px;
}

/* ========================================
   3. Hero Section
   ======================================== */

.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-item {
    height: 700px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-item:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
}

.hero-content .subtitle {
    font-family: 'Marcellus', serif;
    color: var(--secondary-color);
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 3px;
    display: block;
    margin-bottom: 15px;
}

.hero-title {
    font-size: 42px;
    color: var(--white);
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-text {
    font-size: 15px;
    margin-bottom: 25px;
    color: rgba(255,255,255,0.9);
}

/* Owl Carousel customization for hero */
.hero-slider .owl-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.hero-slider .owl-dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255,255,255,0.5);
    border-radius: 50%;
    margin: 0 5px;
    display: inline-block;
}

.hero-slider .owl-dot.active {
    background-color: var(--secondary-color);
}

/* ========================================
   4. About Section
   ======================================== */

.about-section {
    padding: 100px 0;
}

.about-image {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
}

.about-image img {
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-content {
    padding-left: 40px;
}

.about-content p {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.features-list li {
    padding: 10px 0;
    font-size: 17px;
}

.features-list i {
    color: var(--secondary-color);
    margin-right: 10px;
}

/* ========================================
   5. Products Section
   ======================================== */

.products-section {
    padding: 100px 0;
}

.section-header {
    margin-bottom: 60px;
}

.product-card {
    background-color: var(--white);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.product-image {
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(139, 35, 50, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.product-card:hover .product-overlay {
    opacity: 1;
    pointer-events: auto;
}

.product-overlay .btn {
    pointer-events: auto;
}

body.modal-open .product-overlay {
    opacity: 0 !important;
    pointer-events: none !important;
}

.product-info {
    padding: 25px;
    text-align: center;
}

.product-category {
    color: var(--secondary-color);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 10px;
}

.product-title {
    font-size: 16px;
    margin-bottom: 12px;
    color: var(--dark-color);
}

.product-rating {
    margin-bottom: 15px;
}

.product-rating i {
    color: var(--secondary-color);
    font-size: 12px;
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

/* ========================================
   6. Features Section
   ======================================== */

.features-section {
    padding: 80px 0;
    background-color: var(--white);
}

.feature-box {
    padding: 30px;
    transition: all 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-box h4 {
    font-size: 16px;
    margin-bottom: 10px;
}

.feature-box p {
    color: var(--text-color);
    margin: 0;
}

/* ========================================
   7. Gallery Section
   ======================================== */

.gallery-section {
    padding: 100px 0;
}

.gallery-item {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 5px;
}

.gallery-item img {
    width: 100%;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(139, 35, 50, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay i {
    color: var(--white);
    font-size: 24px;
}

/* ========================================
   8. Testimonials Section
   ======================================== */

.testimonials-section {
    padding: 100px 0;
    background-color: var(--white);
}

.testimonial-item {
    background-color: var(--light-color);
    padding: 40px;
    border-radius: 5px;
    margin: 20px;
}

.testimonial-content p {
    font-size: 14px;
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.8;
}

.testimonial-rating {
    margin-bottom: 20px;
}

.testimonial-rating i {
    color: var(--secondary-color);
    font-size: 16px;
}

.testimonial-author h5 {
    font-size: 18px;
    margin-bottom: 5px;
}

.testimonial-author span {
    color: var(--text-color);
    font-size: 14px;
}

/* ========================================
   9. CTA Section
   ======================================== */

.cta-section {
    background: linear-gradient(rgba(139, 35, 50, 0.9), rgba(139, 35, 50, 0.9)), 
                url('../images/cta-bg.jpg') center/cover;
    padding: 80px 0;
}

.cta-section h2 {
    color: var(--white);
    font-size: 38px;
    margin-bottom: 15px;
}

.cta-section p {
    color: rgba(255,255,255,0.9);
    font-size: 18px;
    margin: 0;
}

/* ========================================
   10. Footer
   ======================================== */

.footer-section {
    background-color: var(--dark-color);
    color: rgba(255,255,255,0.7);
}

.footer-logo {
    font-family: 'Marcellus', serif;
    color: var(--white);
    font-size: 24px;
    margin-bottom: 15px;
}

.footer-section p {
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
}

.footer-social a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background-color: rgba(255,255,255,0.1);
    color: var(--white);
    border-radius: 50%;
    margin-right: 10px;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background-color: var(--primary-color);
}

.footer-title {
    color: var(--white);
    font-size: 14px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.footer-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-links,
.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 12px;
}

.footer-links a,
.footer-contact li {
    color: rgba(255,255,255,0.7);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-contact i {
    color: var(--secondary-color);
    margin-right: 10px;
    width: 20px;
}

.newsletter-form input {
    border: none;
    padding: 12px 15px;
    border-radius: 0;
}

.newsletter-form button {
    width: 100%;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    margin: 0;
    color: rgba(255,255,255,0.5);
}

/* ========================================
   11. Scroll to Top
   ======================================== */

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    line-height: 45px;
    border-radius: 50%;
    font-size: 18px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background-color: var(--dark-color);
    color: var(--white);
}

/* ========================================
   12. Responsive
   ======================================== */

@media (max-width: 991px) {
    .section-title {
        font-size: 24px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .about-content {
        padding-left: 0;
        margin-top: 40px;
    }
    
    .navbar-nav {
        padding: 20px 0;
    }
    
    .cart-icon {
        margin-left: 0;
        margin-top: 15px;
    }
}

@media (max-width: 767px) {
    .hero-item {
        height: 500px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-text {
        font-size: 13px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .top-bar {
        font-size: 11px;
        padding: 5px 0;
    }
    
    .top-bar .contact-info span {
        margin-right: 10px;
        font-size: 11px;
    }
    
    .top-bar .contact-info i {
        margin-right: 3px;
        font-size: 11px;
    }
    
    .top-bar .social-links a {
        margin-left: 8px;
        font-size: 12px;
    }
    
    .top-bar .text-right {
        text-align: right !important;
        margin-top: 0;
    }
    
    .navbar-brand .logo-img {
        height: 40px !important;
    }
    
    .navbar-brand .logo-text {
        font-size: 18px;
    }
    
    .navbar-brand {
        gap: 8px;
    }
    
    .cta-section .text-right {
        text-align: left !important;
        margin-top: 20px;
    }
}

/* ========================================
   13. Animations
   ======================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fadeInUp {
    animation: fadeInUp 0.8s ease;
}
