/* Basic Resets & Global Styles */
:root {
    --primary-bg: #1a1a1a; /* Dark background */
/*    --secondary-bg: #2a2a2a; !* Slightly lighter dark for sections *!*/
    --secondary-bg: black;
    --text-color: #e0e0e0; /* Light gray for body text */
    --heading-color: #f0f0f0; /* Off-white for headings */
    --accent-color: #ffd700; /* Bright yellow for accents (Gold) */
    --border-color: #3a3a3a; /* Subtle border for separation */
    --button-hover: #ccac00; /* Darker yellow on button hover */
    --card-bg: #222222; /* Background for product cards */
    --card-border: #444444; /* Border for product cards */
    --card-shadow: rgba(0, 0, 0, 0.4); /* Subtle shadow for cards */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'EB Garamond', Garamond, fantasy;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--primary-bg);
    -webkit-font-smoothing: antialiased; /* Smoother font rendering */
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--button-hover);
}

h1, h2, h3, h4 {
    color: var(--heading-color);
    margin-bottom: 15px;
    font-weight: 600;
}

h1 { font-size: 2.5em; }
h2 { font-size: 2.2em; }
h3 { font-size: 1.8em; }
h4 { font-size: 1.4em; }

p {
    margin-bottom: 20px;
}

/* Header */
header {
    background-color: var(--secondary-bg);
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky; /* Makes header stick to top */
    top: 0;
    z-index: 1000; /* Ensures header is above other content */
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Allows wrapping on smaller screens */
}

.logo {
    font-size: 2em; /* Kept for potential text fallback, though image overrides */
    font-weight: bold;
    color: var(--accent-color);
    margin-right: 20px; /* Space between logo and nav on desktop */
}

.logo img {
    max-height: 40px; /* Adjust height as needed for the logo */
    width: auto; /* Maintain aspect ratio */
    display: block; /* Remove extra space below image */
}

/* Hamburger Menu Toggle (Hidden by default) */
.nav-toggle {
    display: none; /* Hide the checkbox input */
}

.nav-toggle-label {
    display: none; /* Hidden on desktop */
    width: 30px;
    height: 30px;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-around;
    padding: 5px 0;
}

.nav-toggle-label span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--text-color);
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

/* Navigation */
header nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap; /* Allows nav items to wrap */
}

header nav ul li {
    margin-left: 25px;
}

header nav a {
    color: var(--text-color);
    font-weight: 500;
    font-size: 1.1em;
    padding: 5px 0; /* Add padding for better click area */
}

header nav a:hover {
    color: var(--accent-color);
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--primary-bg);
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    margin-top: 20px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 8px var(--card-shadow);
}

.btn:hover {
    background-color: var(--button-hover);
    color: var(--primary-bg);
    transform: translateY(-2px); /* Subtle lift effect */
}

.btn-small {
    background-color: var(--accent-color);
    color: var(--primary-bg);
    padding: 8px 15px;
    border-radius: 3px;
    font-size: 0.9em;
    font-weight: 500;
    transition: background-color 0.3s ease;
    display: flex; /* Use flexbox for icon and text alignment */
    align-items: center;
    justify-content: center; /* Center content horizontally */
}

.btn-small:hover {
    background-color: var(--button-hover);
    color: var(--primary-bg);
}

.btn-small svg {
    margin-left: 8px; /* Space between text and icon */
    fill: var(--primary-bg); /* Match icon color to button text color */
    width: 16px; /* Size of the icon */
    height: 16px;
}

/* Sections */
section {
    padding: 80px 0;
    text-align: center;
}

section:nth-of-type(odd) { /* Applies to Hero, Products, Contact */
    background-color: var(--primary-bg);
}

section:nth-of-type(even) { /* Applies to About Us */
    background-color: var(--secondary-bg);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

/* Hero Section */
.hero {
    padding: 100px 0;
    border-bottom: 1px solid var(--border-color);
    /* Background Image Styles */
    background-image: linear-gradient(rgba(26, 26, 26, 0.7), rgba(26, 26, 26, 0.7)), url("/assets/img/hero_bottle2.jpg"); /* Dark overlay + placeholder image */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: var(--heading-color); /* Ensure text is visible over the image */
    /* Add this line for the blur effect */
/*    filter: blur(5px); !* Adjust the pixel value for more or less blur *!*/
/*    transform: scale(1.02); !* Counteract edge blurring effect *!*/
}

.hero img {

}

.hero h2 {
    font-size: 3em;
    margin-bottom: 20px;
    color: var(--heading-color);
}

.hero p {
    font-size: 1.2em;
    max-width: 700px;
    margin: 0 auto 30px auto;
}

/* Product Section */
.products h3 {
    margin-bottom: 40px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Responsive grid */
    gap: 30px; /* Space between cards */
    margin-top: 40px;
}

.product-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 30px;
    text-align: left;
    box-shadow: 0 5px 15px var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Pushes button to bottom */
}

.product-card:hover {
    transform: translateY(-5px); /* Lift effect on hover */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.product-card img.product-image { /* New style for product images */
    max-width: 100%;
    height: auto;
    border-radius: 4px; /* Slightly rounded corners for images */
    margin-bottom: 20px; /* Space below image */
    display: block; /* Remove extra space below image */
}

.product-card h4 {
    color: var(--accent-color);
    margin-bottom: 10px;
}

.product-card p {
    font-size: 0.95em;
    color: var(--text-color);
    margin-bottom: 20px;
    flex-grow: 1; /* Allows paragraph to take available space */
}

.product-card .btn-small {
    align-self: flex-start; /* Aligns button to the left */
}

/* About Section */
.about p {
    max-width: 800px;
    margin: 0 auto 20px auto;
    font-size: 1.1em;
}

/* Contact Section */
.contact p {
    font-size: 1.1em;
}

.contact a {
    font-weight: bold;
}

/* Footer */
footer {
    background-color: var(--secondary-bg);
    color: var(--text-color);
    padding: 30px 0;
    border-top: 1px solid var(--border-color);
    font-size: 0.9em;
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-links {
    margin-top: 10px;
}

.footer-links a {
    color: var(--text-color);
    margin: 0 15px;
}

.footer-links a:hover {
    color: var(--accent-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 { font-size: 2em; }
    h2 { font-size: 1.8em; }
    h3 { font-size: 1.5em; }

    header .container {
        flex-direction: row; /* Keep logo and hamburger on same row */
        justify-content: space-between;
        align-items: center;
    }

    .logo {
        margin-bottom: 0; /* Reset margin for mobile */
    }

    /* Show hamburger menu label on mobile */
    .nav-toggle-label {
        display: flex; /* Show hamburger icon */
        order: 2; /* Position it to the right of the logo */
    }

    header nav {
        order: 3; /* Push nav below logo and hamburger */
        width: 100%; /* Full width for mobile nav */
        margin-top: 20px; /* Space below logo/hamburger */
    }

    header nav ul {
        flex-direction: column; /* Stack nav items vertically */
        align-items: center;
        display: none; /* Hide nav by default on mobile */
        background-color: var(--secondary-bg); /* Background for dropdown */
        padding: 10px 0;
        border-top: 1px solid var(--border-color);
    }

    header nav ul li {
        margin: 10px 0; /* Vertical spacing for stacked links */
    }

    /* Show navigation when checkbox is checked */
    .nav-toggle:checked ~ nav ul {
        display: flex; /* Show the mobile menu */
    }

    /* Hamburger icon animation when checked */
    .nav-toggle:checked + .nav-toggle-label span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .nav-toggle:checked + .nav-toggle-label span:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle:checked + .nav-toggle-label span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero {
        padding: 80px 20px;
    }

    .product-grid {
        grid-template-columns: 1fr; /* Stack cards on small screens */
    }

    .product-card {
        padding: 25px;
    }

    section {
        padding: 60px 0;
    }

    footer .container {
        flex-direction: column;
    }

    .footer-links {
        margin-top: 15px;
    }

    .footer-links a {
        display: block;
        margin: 5px 0;
    }
}

@media (max-width: 480px) {
    .hero h2 {
        font-size: 2em;
    }

    .hero p {
        font-size: 1em;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }
}