/* Coffee and Cocoa Color Palette */
:root {
    --coffee-dark: #3c2415;
    --coffee-medium: #6f4e37;
    --coffee-light: #8b4513;
    --cocoa-dark: #7b3f00;
    --cocoa-medium: #a0522d;
    --cocoa-light: #d2b48c;
    --cream: #f5f5dc;
    --warm-white: #faf8f3;
}

/* Base Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--coffee-dark);
    background-color: var(--warm-white);
}

/* Custom Background Colors */
.bg-coffee-dark {
    background-color: var(--coffee-dark) !important;
}

.bg-coffee-medium {
    background-color: var(--coffee-medium) !important;
}

.bg-coffee-light {
    background-color: var(--coffee-light) !important;
}

.bg-cocoa-dark {
    background-color: var(--cocoa-dark) !important;
}

.bg-cocoa-medium {
    background-color: var(--cocoa-medium) !important;
}

.bg-cocoa-light {
    background-color: var(--cocoa-light) !important;
}

.bg-cream {
    background-color: var(--cream) !important;
}

.bg-coffee-gradient {
    background: linear-gradient(135deg, var(--coffee-dark) 0%, var(--coffee-medium) 50%, var(--cocoa-medium) 100%);
}

/* Custom Text Colors */
.text-coffee-dark {
    color: var(--coffee-dark) !important;
}

.text-coffee-medium {
    color: var(--coffee-medium) !important;
}

.text-coffee-light {
    color: var(--coffee-light) !important;
}

.text-cocoa-dark {
    color: var(--cocoa-dark) !important;
}

.text-cocoa-medium {
    color: var(--cocoa-medium) !important;
}

.text-cocoa-light {
    color: var(--cocoa-light) !important;
}

.text-cream {
    color: var(--cream) !important;
}

/* Custom Buttons */
.btn-coffee {
    background-color: var(--coffee-medium);
    border-color: var(--coffee-medium);
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-coffee:hover {
    background-color: var(--coffee-dark);
    border-color: var(--coffee-dark);
    color: white;
    transform: translateY(-2px);
}

.btn-cocoa {
    background-color: var(--cocoa-medium);
    border-color: var(--cocoa-medium);
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-cocoa:hover {
    background-color: var(--cocoa-dark);
    border-color: var(--cocoa-dark);
    color: white;
    transform: translateY(-2px);
}

.btn-outline-coffee {
    border-color: var(--coffee-medium);
    color: var(--coffee-medium);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-coffee:hover {
    background-color: var(--coffee-medium);
    border-color: var(--coffee-medium);
    color: white;
    transform: translateY(-2px);
}

/* Navigation Styles */
.navbar {
    background-color: white !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-size: 0.5rem;
    width: 250px;
    color: var(--coffee-dark) !important;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
    color: var(--coffee-dark) !important;
}

.navbar-nav .nav-link:hover {
    color: var(--coffee-medium) !important;
}

.navbar-toggler {
    border-color: var(--coffee-medium);
    float: right;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 25 25'%3e%3cpath stroke='rgba%2860, 46, 21, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='1' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Section */
.hero-section {
    padding: 0;
    position: relative;
    overflow: hidden;
    background-color: white;
    min-height: 100vh;
}

.hero-image-placeholder {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Image Slider Styles */
.hero-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    box-shadow: none;
    height: 100vh;
}

.hero-carousel .carousel-item {
    height: 100vh;
}

.hero-carousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(60, 36, 21, 0.8) 0%, rgba(123, 63, 0, 0.6) 100%);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: white;
    text-align: left;
    padding: 80px 20px 20px;
}

.carousel-overlay h4 {
    color: var(--cocoa-light);
    margin-bottom: 10px;
}

.carousel-control-prev, .carousel-control-next {
    width: 50px;
    height: 50px;
    background-color: rgba(60, 36, 21, 0.8);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 15px;
    transition: all 0.3s ease;
}

.carousel-control-prev:hover, .carousel-control-next:hover {
    background-color: var(--coffee-dark);
    transform: translateY(-50%) scale(1.1);
}

.carousel-indicators {
    bottom: 20px;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--coffee-dark);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.carousel-indicators .active {
    opacity: 1;
    background-color: white;
}

/* Page Header */
.page-header {
    padding: 120px 0 60px;
    margin-top: 56px; /* Account for fixed navbar */
}

/* Card Styles */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 10px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

/* Product Showcase */
.product-showcase {
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Service Items */
.service-item {
    padding: 20px;
    transition: transform 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
}

/* Value Cards */
.value-card {
    transition: transform 0.3s ease;
    border-radius: 10px;
}

.value-card:hover {
    transform: translateY(-5px);
}

/* Stats Section */
.stat-item h3 {
    color: var(--cocoa-light);
}

/* Contact Form & Quotation Form */
.contact-form .form-control,
.quotation-form .form-control,
.quotation-form .form-select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.contact-form .form-control:focus,
.quotation-form .form-control:focus,
.quotation-form .form-select:focus {
    border-color: var(--coffee-medium);
    box-shadow: 0 0 0 0.2rem rgba(111, 78, 55, 0.25);
}

.contact-form .form-label,
.quotation-form .form-label {
    font-weight: 600;
    margin-bottom: 8px;
}

/* Quotation Form Sections */
.quotation-form .section-header {
    margin-top: 2rem;
}

.quotation-form .section-header:first-child {
    margin-top: 0;
}

.quotation-form .section-header h5 {
    padding-bottom: 10px;
    border-bottom: 2px solid var(--coffee-light);
}

/* Info Cards */
.info-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 10px;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* Testimonials */
.testimonial-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef !important;
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

.testimonial-content p {
    font-style: italic;
    line-height: 1.6;
}

/* Export Markets */
.region-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.region-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.feature-item {
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateX(5px);
}

/* Enhanced Hero Stats */
.hero-stats .stat-item h3,
.hero-features h5 {
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-stats .stat-item p,
.hero-features p {
    color: rgba(255,255,255,0.9);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.hero-buttons .btn {
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.hero-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Quick Contact Cards */
.quick-contact-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 10px;
}

.quick-contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* FAQ Items */
.faq-item {
    margin-bottom: 20px;
}

/* Timeline */
.timeline-item {
    transition: transform 0.3s ease;
}

.timeline-item:hover {
    transform: translateY(-3px);
}

.timeline-year {
    font-size: 0.9rem;
}

/* Team Cards */
.team-card {
    transition: transform 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
}

/* Certification Badges */
.cert-badge {
    transition: transform 0.3s ease;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.cert-badge:hover {
    transform: scale(1.1);
}

/* Footer */
footer {
    margin-top: auto;
}

footer .social-links a {
    transition: color 0.3s ease;
}

footer .social-links a:hover {
    color: white !important;
}

/* Map Placeholder */
.map-placeholder {
    border: 2px dashed var(--cocoa-light);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .page-header {
        padding: 100px 0 40px;
    }
    
    .navbar-brand {
        font-size: 0.5rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .btn-lg {
        font-size: 1rem;
        padding: 12px 24px;
    }
    
    .contact-form {
        margin: 20px 0;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.6s ease-in forwards;
}

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

/* Loading States */
.loading {
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* Focus States */
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: 2px solid var(--coffee-medium);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .navbar,
    .btn,
    footer {
        display: none !important;
    }
    
    .container {
        max-width: none !important;
    }
}
