/* css/style.css */

:root {
    --primary-color: #8B4513; /* SaddleBrown */
    --secondary-color: #F5F5DC; /* Beige */
    --accent-green: #556B2F; /* DarkOliveGreen */
    --soft-white: #FAF9F6;
}

body {
    font-family: 'Nunito', sans-serif;
    background-color: var(--soft-white);
}

h1, h2, h3, .handwritten {
    font-family: 'Amatic SC', cursive;
}

/* Hero Background */
.hero-section {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('https://images.unsplash.com/photo-1598514930350-152e00e008b6?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

/* Custom Nav Underline */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

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

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

.product-card:hover, .tour-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.btn-primary {
    background-color: var(--primary-color);
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #6d360f;
}

html {
    scroll-behavior: smooth;
}

/* Mobile Menu Animation */
.nav-links {
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

.nav-links.active {
    max-height: 400px;
    opacity: 1;
    padding-bottom: 1rem;
}

/* Horizontal Scroll Carousel for Store Previews */
.store-carousel {
    display: flex;
    overflow-x: auto;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    /* This creates a magnetic snap effect when scrolling on mobile */
    scroll-snap-type: x mandatory; 
    -webkit-overflow-scrolling: touch;
    /* Custom Scrollbar Styling */
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #f0f0f0;
}

.store-carousel::-webkit-scrollbar {
    height: 8px;
}

.store-carousel::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 4px;
}

.store-carousel::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 4px;
}

/* Specific sizing for the cards inside the carousel */
.store-carousel .product-card {
    flex: 0 0 auto; /* Prevents cards from shrinking */
    width: 220px; /* Smaller card width */
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
}

.store-carousel .product-card img {
    height: 180px;
    width: 100%;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 1rem;
}