/* Custom CSS for African-inspired design */

/* African Pattern Dividers */
.african-pattern-divider {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #9f2828, #258430, #9f2828);
    margin: 0 auto;
    position: relative;
}

.african-pattern-divider::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 10px;
    right: 10px;
    height: 8px;
    background: linear-gradient(90deg, transparent, #9f2828, transparent);
    border-radius: 2px;
}

.african-pattern-divider-light {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #9f2828, #F5DEB3, #9f2828);
    margin: 0 auto;
    position: relative;
}

.african-pattern-divider-light::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 10px;
    right: 10px;
    height: 8px;
    background: linear-gradient(90deg, transparent, #F5DEB3, transparent);
    border-radius: 2px;
}

/* Hero Section Background Pattern */
.hero-section {
    background-image: 
        radial-gradient(circle at 20px 20px, rgba(159, 40, 40, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 80px 80px, rgba(37, 132, 48, 0.1) 1px, transparent 1px);
    background-size: 100px 100px, 160px 160px;
}

/* Product Cards Hover Effects */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(37, 132, 48, 0.3);
}

/* Location Cards */
.location-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid #9f2828;
}

.location-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(37, 132, 48, 0.2);
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #F5DEB3;
}

::-webkit-scrollbar-thumb {
    background: #258430;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1e6b29;
}

/* African Pattern Background Subtle */
.bg-earth-light {
    background-image: 
        linear-gradient(45deg, rgba(37, 132, 48, 0.02) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(37, 132, 48, 0.02) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(37, 132, 48, 0.02) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(37, 132, 48, 0.02) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

/* Mobile Menu Animation */
#mobile-menu {
    transition: all 0.3s ease;
}

/* Button Hover Effects */
.nav-link {
    transition: all 0.3s ease;
}

/* Typography Enhancements */
.font-african {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* Image Overlay Effects */
.product-card img {
    transition: transform 0.3s ease;
}

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

/* Custom Focus States */
.nav-link:focus {
    outline: 2px solid #9f2828;
    outline-offset: 2px;
}

/* Loading Animation for Images */
.product-card img {
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

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

/* Responsive Typography */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 3rem;
    }
    
    .hero-section p {
        font-size: 1.1rem;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .african-pattern-divider,
    .african-pattern-divider-light {
        background: #000;
    }
    
    .text-african-brown {
        color: #000 !important;
    }
    
    .text-african-red {
        color: #9f2828 !important;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Print Styles */
@media print {
    .hero-section {
        background: white;
        color: black;
    }
    
    nav, #mobile-menu {
        display: none;
    }
    
    .product-card, .location-card {
        break-inside: avoid;
    }
}
