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

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand {
    max-width: 400px;
}

.footer-brand .logo-text {
    font-size: 1.8rem;
    color: #D2691E;
    margin-bottom: 1rem;
    display: block;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.footer-links {
    display: flex;
    gap: 3rem;
}

.footer-section h4 {
    color: #D2691E;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

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

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

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #D2691E;
}

/* Animations */
@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
    }
    33% { 
        transform: translateY(-20px) rotate(10deg); 
    }
    66% { 
        transform: translateY(-10px) rotate(-10deg); 
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}


/* Additional CSS for enhanced styling */
.nav-link.active {
    color: #8B4513;
}

.nav-link.active::after {
    width: 100%;
}

/* Loading state */
body:not(.loaded) {
    overflow: hidden;
}

body:not(.loaded)::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f5f1eb;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #8B4513, #D2691E);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #6B3410, #B8551A);
}

/* Selection styling */
::selection {
    background: rgba(139, 69, 19, 0.2);
    color: #2c1810;
}

::-moz-selection {
    background: rgba(139, 69, 19, 0.2);
    color: #2c1810;
}

/* Focus states for accessibility */
.btn:focus,
.nav-link:focus,
input:focus,
textarea:focus {
    outline: 2px solid #8B4513;
    outline-offset: 2px;
}

/* Skip to content link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #8B4513;
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10001;
}

.skip-link:focus {
    top: 6px;
}

.credit-link {
    text-decoration: none;
    color: #D2691E
}

/* Smooth transitions for all interactive elements */
* {
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
}

/* Print styles */
@media print {
    .navbar,
    .hero-stats,
    .floating-elements,
    .contact-form,
    .footer-social,
    .btn {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: #fff;
    }
    
    .hero {
        height: auto;
        padding: 2rem 0;
    }
    
    .section-title {
        font-size: 18pt;
        margin-bottom: 1rem;
    }
    
    .product-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .hero-background {
        background: #fff;
    }
    
    .hero-title-accent {
        background: #000;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    .btn-primary {
        background: #000;
        border: 2px solid #000;
    }
    
    .product-card {
        border: 2px solid #000;
    }
}

/* Large screen optimizations */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 5rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .hero-buttons {
        max-width: 250px;
    }

    .hero-stats {
        gap: 1.5rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .product-card {
        margin: 0 0.5rem;
    }
    
    .story-features {
        gap: 1rem;
    }
    
    .feature {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-form {
        padding: 1rem;
    }
    
    .process-steps {
        gap: 1rem;
    }
    
    .step {
        padding: 1rem;
    }
    
    .step-number {
        font-size: 2rem;
    }
    
    .facility-gallery {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .main-image {
        height: 300px;
    }
    
    .gallery-thumbnails {
        grid-template-columns: 1fr;
        max-height: none;
    }
    
    .thumbnail {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    
    .thumbnail .image-placeholder {
        width: 100%;
        height: 120px;
    }
    
    .facility-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .facility-stat {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
}
