/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

:root {
    --primary-color: #6F4E37;
    --secondary-color: #B5651D;
    --light-bg: #F5E6D3;
    --accent-color: #FF6B35; /* Orange color */
}

body {
    line-height: 1.6;
}

/* Header */
.header {
    background: var(--primary-color);
    padding: 1rem;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    width: 200px; /* Adjust based on your logo size */
    height: auto;
    padding: 10px; /* Add breathing room */
    background: transparent; /* Remove white background */
    display: flex;
    align-items: center;
}

.logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.menu {
    display: flex;
    gap: 2rem;
}

.menu a {
    color: white;
    text-decoration: none;
}

/* Hero Section - Split Layout */
.hero {
    height: 500px;
    position: relative;
    overflow: hidden;
}

.slider {
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    width: 50%;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6));
    color: white;
}

.slide-image {
    width: 50%;
    height: 100%;
    overflow: hidden;
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sustainable-label {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-align: center;
    width: fit-content;
}

.main-heading {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: white;
}

.highlighted-text {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
    font-weight: bold;
}

.slide p {
    margin-bottom: 2rem;
    line-height: 1.8;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    background: var(--accent-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    width: fit-content;
}

.cta-button:hover {
    background: var(--primary-color);
    transform: translateX(5px);
}

.cta-button::after {
    content: "→";
    margin-left: 10px;
}

/* Navigation Dots */
.slider-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-dot.active {
    background: var(--accent-color);
    transform: scale(1.2);
}

/* Coffee & Products Sections */
.coffee-section {
    padding: 4rem 2rem;
    background: white;
    position: relative;
}

.coffee-header {
    text-align: center;
    margin-bottom: 2rem;
}

.coffee-products {
    display: flex;
    overflow-x: auto;
    gap: 2rem;
    padding: 1rem 40px;
    scroll-behavior: smooth;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    flex: 0 0 calc(25% - 1.5rem); /* 4 items on desktop (100% / 4 - gap) */
    min-width: 280px; /* Minimum width to prevent squishing */
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    padding: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-image {
    position: relative;
    height: 200px;
    width: 200px;
    margin-bottom: 1rem;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.product-info h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.product-info p {
    color: #555;
    margin-bottom: 0.5rem;
}

.weight {
    display: block;
    color: #666;
    margin: 0.5rem 0;
}

.price {
    color: var(--accent-color);
    font-weight: bold;
    display: block;
    margin: 0.5rem 0;
}

.view-btn {
    background: var(--primary-color);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    display: inline-block;
    margin-top: 0.5rem;
}

/* Updated Navigation Arrows Positioning */
.nav-container {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    pointer-events: none; /* Allow clicks to pass through to products */
    z-index: 10;
}

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto; /* Re-enable pointer events for the buttons */
}

.nav-arrow:hover {
    background: var(--secondary-color);
    transform: translateY(-50%) scale(1.05);
}

.nav-arrow.prev {
    left: 20px;
}

.nav-arrow.next {
    right: 20px;
}


/* Products and Services Section Styles */
.products-section {
    padding: 4rem 2rem;
    background: white;
}

.products-section .section-title {
    text-align: center !important;
}

.products-section h4.section-title {
    text-align: center !important;
}

/* Icon variations */
.coffee-cup::after {
    content: "☕";
    position: absolute;
    color: white;
    font-size: 24px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.delivery-truck::after {
    content: "";
    position: absolute;
    color: white;
    font-size: 24px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.handshake::after {
    content: "";
    position: absolute;
    color: white;
    font-size: 24px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.service-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-card li {
    color: #555;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.price {
    font-weight: bold;
    color: var(--accent-color);
    font-size: 1.2rem;
    margin: 0.8rem 0;
}

.view-details {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.view-details:hover {
    background: var(--secondary-color);
    transform: scale(1.05);
}

.image-box {
    flex: 0 0 120px;
    height: 120px;
    background: #eee;
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Artisanal Layout Styles */
.artisan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.artisan-card {
    background: #fff;
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.artisan-card::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: var(--light-bg);
    z-index: -1;
    border-radius: 20px;
    opacity: 0.3;
}

.artisan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(111, 78, 55, 0.2);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.icon {
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

.coffee-cup::after {
    content: "☕";
    position: absolute;
    color: white;
    font-size: 24px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.delivery-truck::after {
    content: "";
    position: absolute;
    color: white;
    font-size: 24px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.handshake::after {
    content: "";
    position: absolute;
    color: white;
    font-size: 24px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.artisan-card h3 {
    color: var(--secondary-color);
    font-size: 1.3rem;
    margin: 0;
}

.artisan-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.artisan-card li {
    color: #555;
    margin-bottom: 0.7rem;
    line-height: 1.4;
    padding-left: 1.5rem;
    position: relative;
}

.artisan-card li::before {
    content: "•";
    color: var(--accent-color);
    position: absolute;
    left: 0;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.price {
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.btn {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn:hover {
    background: var(--secondary-color);
    transform: scale(1.05);
}

/* Featured Card */
.artisan-card.featured {
    border-color: var(--accent-color);
    background: rgba(255, 107, 53, 0.05);
}

.artisan-card.featured::before {
    background: var(--light-bg);
}

.artisan-card.featured .btn {
    background: var(--accent-color);
}

.artisan-card.featured .btn:hover {
    background: #E65100;
}

 /* Footer */
 .footer {
    background: var(--primary-color);
    color: white;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .image-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .image-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        max-width: 100%;
        padding: 1rem;
    }
    
    .service-card {
        flex: 0 0 200px;
        height: 250px;
    }
}

@media (max-width: 480px) {
    .services-grid {
        gap: 1rem;
    }
    
    .service-card {
        flex: 0 0 180px;
        height: 220px;
    }
}

@media (hover: none) {
    .product-card {
        transition: none;
    }
    
    .product-card:hover {
        transform: none;
        box-shadow: none;
    }
    
    .view-btn:hover, .nav-arrow:hover {
        transform: none;
    }
}

/* Responsive - Show fewer items on smaller screens */
@media (max-width: 1200px) {
    .product-card {
        flex: 0 0 calc(33.33% - 1.5rem); /* 3 items on large tablets */
    }
}

@media (max-width: 992px) {
    .product-card {
        flex: 0 0 calc(50% - 1.5rem); /* 2 items on tablets */
    }
}

@media (max-width: 768px) {
    .product-card {
        flex: 0 0 calc(100% - 1rem); /* 1 item on mobile */
        min-width: 250px;
    }
}

/* Carousel Responsive */
@media (max-width: 768px) {
    .nav-arrow {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .nav-arrow.prev {
        left: 10px;
    }
    
    .nav-arrow.next {
        right: 10px;
    }
}