/* CSS for Eman Bakeries
   Color Palette from your logo:
   - Primary Green: #2a5734 (approx)
   - Primary Red: #a32a24 (approx)
   - Accent Gold: #d4a945 (approx)
   - Background Cream: #f7f3e8 (approx)
   - Dark Text: #333333
*/

:root {
    --primary-green: #2a5734;
    --primary-red: #a32a24;
    --accent-gold: #d4a945;
    --bg-cream: #f7f3e8;
    --text-dark: #333;
    --text-light: #ffffff;
}

/* --- Global Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-cream);
    color: var(--text-dark);
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: "Georgia", serif; /* A classic font for a bakery */
    color: var(--primary-green);
    margin-bottom: 1rem;
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

img {
    max-width: 100%;
    height: auto;
}

/* --- Header & Navigation --- */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo img {
    height: 60px; /* Adjust as needed */
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-green);
    font-weight: bold;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-red);
}

/* --- Hero Section --- */
#hero {
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('https://source.unsplash.com/1600x900/?bread,bakery');
    background-size: cover;
    background-position: center;
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--text-light);
    padding: 0 20px;
}

#hero h1 {
    color: var(--text-light);
    font-size: 3.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

#hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.cta-button {
    text-decoration: none;
    color: var(--text-light);
    background-color: var(--primary-red);
    padding: 1rem 2rem;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
    background-color: var(--accent-gold);
    color: var(--text-dark);
    transform: translateY(-3px);
}

/* --- About Section --- */
#about {
    text-align: center;
    max-width: 800px;
}

#about p {
    font-size: 1.1rem;
}

/* --- Products Section --- */
#products {
    background-color: #fff;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-card h3 {
    padding: 1rem 1rem 0.5rem 1rem;
    color: var(--primary-red);
}

.product-card p {
    padding: 0 1rem 1rem 1rem;
}

/* --- Locations & Contact --- */
#locations, #contact {
    text-align: center;
    background-color: #fff;
}

#locations {
    background-color: var(--bg-cream);
}

.location-placeholder {
    margin-top: 2rem;
    font-size: 1.1rem;
}

/* --- Footer --- */
footer {
    background-color: var(--primary-green);
    color: var(--text-light);
    text-align: center;
    padding: 2rem;
    margin-top: 2rem;
}
