/* General Styles */
:root {
    --primary-color: #4CAF50; /* Green */
    --secondary-color: #FF9800; /* Orange */
    --text-color: #333;
    --light-gray: #f4f4f4;
    --white: #fff;
    --container-width: 1100px;
}

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    color: var(--primary-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #f57c00; /* Darker orange */
    text-decoration: none;
}

/* Header */
header {
    background-color: var(--white);
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--primary-color);
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    font-size: 1.1em;
    font-weight: bold;
    color: var(--text-color);
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.menu-toggle {
    display: none; /* Hidden by default on larger screens */
    font-size: 1.5em;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background-color: var(--light-gray);
    text-align: center;
    padding: 60px 0;
    background-image: url('images/hero-bg.jpg'); /* Add a background image if you have one */
    background-size: cover;
    background-position: center;
    color: #fff; /* Text color for hero section */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero h1 {
    font-size: 2.8em;
    margin-bottom: 15px;
    color: var(--white);
}

.hero p {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: var(--white);
}

/* Featured Products & Product Grid */
.featured-products, .product-list-page {
    padding: 60px 0;
}

.featured-products h2, .product-list-page h2 {
    text-align: center;
    font-size: 2em;
    margin-bottom: 40px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.product-card img {
    max-width: 100%;
    height: 200px; /* Fixed height for images */
    object-fit: cover; /* Ensures images cover the area without distortion */
    border-radius: 4px;
    margin-bottom: 15px;
}

.product-card h3 {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: var(--text-color);
}

.product-card p {
    font-size: 1.1em;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.product-card button {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.product-card button:hover {
    background-color: #388e3c; /* Darker green */
}

/* Delivery Promo Section */
.delivery-promo {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 50px 0;
}

.delivery-promo h2 {
    font-size: 2em;
    margin-bottom: 15px;
    color: var(--white);
}

.delivery-promo p {
    font-size: 1.1em;
    margin-bottom: 30px;
}

.delivery-promo .btn {
    background-color: var(--white);
    color: var(--primary-color);
    font-weight: bold;
}

.delivery-promo .btn:hover {
    background-color: #e0e0e0;
}

/* Delivery Signup Page */
.delivery-signup {
    padding: 60px 0;
    background-color: var(--light-gray);
}

.delivery-signup h2 {
    text-align: center;
    font-size: 2em;
    margin-bottom: 20px;
}

.delivery-signup p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    font-size: 1.1em;
}

#delivery-form {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
}

#delivery-form h3 {
    text-align: center;
    font-size: 1.8em;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--text-color);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    font-size: 1em;
}

.form-group select {
    cursor: pointer;
}

#delivery-form button[type="submit"] {
    width: 100%;
    padding: 12px 20px;
    font-size: 1.2em;
    font-weight: bold;
}

.form-message {
    text-align: center;
    margin-top: 20px;
    font-weight: bold;
    color: var(--primary-color); /* Default to primary color */
}

.form-message.success {
    color: var(--primary-color);
}

.form-message.error {
    color: #f44336; /* Red for errors */
}


/* About Us Page */
.about-us-page {
    padding: 60px 0;
    background-color: var(--light-gray);
}

.about-us-page h2 {
    text-align: center;
    font-size: 2em;
    margin-bottom: 30px;
}

.about-us-page p {
    font-size: 1.1em;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.developer-info {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.developer-info h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.developer-info p {
    margin-bottom: 5px;
    font-size: 1.1em;
    color: var(--text-color);
}

/* Footer */
footer {
    background-color: var(--text-color);
    color: var(--white);
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

footer p {
    margin: 0;
    font-size: 0.9em;
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo {
        font-size: 1.5em;
    }

    nav ul {
        display: none; /* Hide nav by default on small screens */
        flex-direction: column;
        position: absolute;
        top: 60px; /* Adjust based on header height */
        right: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        padding: 10px 0;
    }

    nav ul.active {
        display: flex; /* Show nav when active */
    }

    nav ul li {
        margin: 10px 20px;
        text-align: center;
    }

    .menu-toggle {
        display: block; /* Show hamburger menu */
    }

    .hero h1 {
        font-size: 2em;
    }

    .hero p {
        font-size: 1.1em;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .product-card img {
        height: 150px;
    }
}
