/* GENERAL STYLES */
:root {
    --primary-color: #5D4037; /* Deep Brown/Wood tone */
    --secondary-color: #A1887F; /* Lighter Earth tone */
    --text-color: #333333;
    --light-bg: #F5F5F5;
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --dark-overlay: rgba(0, 0, 0, 0.5); /* For text readability over background images */
}

body {
    font-family: var(--font-family);
    margin: 0;
    padding: 0;
    background-color: white;
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 15px;
}

/* HEADER & NAVIGATION */
header {
    background-color: var(--primary-color);
    color: white;
    padding: 30px 0;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header h1 {
    margin-bottom: 5px;
    font-size: 2.5em;
    text-transform: uppercase;
    letter-spacing: 2px;
}

header p {
    margin-top: 0;
    font-style: italic;
    opacity: 0.9;
}

nav {
    background-color: var(--secondary-color);
    text-align: center;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav a {
    color: white;
    margin: 0 15px;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

nav a:hover {
    background-color: rgba(0, 0, 0, 0.1);
    color: #fff;
}

/* SECTION STYLES */
section {
    padding: 40px 0;
    margin-bottom: 20px;
    /* Removed border-bottom from here as #home will have its own style */
}

h2 {
    color: var(--primary-color);
    font-size: 2em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--secondary-color);
}

/* HOME SECTION WITH BACKGROUND IMAGE */
#home {
    background-image: linear-gradient(var(--dark-overlay), var(--dark-overlay)), url('images/welcome_background.jpg'); /* Adjusted path */
    background-size: cover;
    background-position: center;
    color: white; /* Text color changed for readability */
    text-align: center;
    padding: 80px 20px; /* More padding for a hero section feel */
    border-radius: 8px; /* Consistent with other product categories */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    margin-bottom: 40px; /* Give it more space */
}

#home h2 {
    color: white; /* Ensure heading is white */
    border-bottom: 3px solid white; /* White border for contrast */
    padding-bottom: 15px;
    font-size: 3em; /* Larger heading */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Add text shadow for readability */
}

#home p {
    font-size: 1.2em;
    max-width: 800px;
    margin: 20px auto 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5); /* Add text shadow for readability */
}

/* OUR STORY SECTION SPECIFIC STYLES (for the list/founder text) */
#story {
    text-align: center; /* Ensure content is centered */
}

/* Styles for the service list on the Our Story page */
#story ul {
    list-style-type: none;
    padding: 0;
    max-width: 500px;
    margin: 20px auto;
    text-align: left;
}
#story ul li {
    padding: 8px 0;
    border-bottom: 1px solid #ddd;
}
#story ul li:last-child {
    border-bottom: none;
}
#story h3 {
    border-bottom: none;
}
/* PRODUCT CATEGORY & GALLERY */
.product-category {
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-top: 20px;
}

.item {
    flex: 1 1 300px; /* Base width for each item */
    max-width: 350px;
    background-color: white;
    padding: 15px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.item img {
    width: 100%;
    height: 250px; /* Fixed height for consistent gallery layout */
    object-fit: cover; /* Ensures images cover the area without stretching */
    border-radius: 4px;
    margin-bottom: 10px;
}

.item p {
    font-weight: 600;
    color: var(--primary-color);
    margin: 5px 0 0;
    text-transform: uppercase;
    font-size: 0.9em;
}

/* CUSTOM WORKS & CONTACT SECTION */
#custom a {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 15px;
    font-weight: bold;
    letter-spacing: 0.5px;
    transition: background-color 0.3s;
}

#custom a:hover {
    background-color: #795548;
}

#contact p {
    margin-bottom: 10px;
}

#contact strong {
    color: var(--primary-color);
    font-weight: 700;
}

/* FOOTER */
footer {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9em;
    margin-top: 20px;
}

/* MEDIA QUERIES for Responsiveness */
@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }
    
    nav {
        padding: 5px 0;
    }

    nav a {
        display: block;
        margin: 5px 10px;
        padding: 8px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    nav a:last-child {
        border-bottom: none;
    }

    .gallery {
        gap: 20px;
    }

    .item {
        flex: 1 1 100%;
        max-width: 100%;
    }

    #home {
        padding: 60px 15px;
    }

    #home h2 {
        font-size: 2.2em;
    }
}