/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f5f0;
    /* Light creamy background */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Header & Navigation */
header {
    background-color: #8B4513;
    /* SaddleBrown - a warm bakery color */
    color: #fff;
    padding: 1em 0;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header h1 {
    margin-bottom: 0.2em;
    font-size: 2.5em;
    animation: fadeInDown 1s ease-out;
}

header h1 a {
    color: #fff;
    text-decoration: none;
}

header h2 {
    font-size: 1.2em;
    font-weight: normal;
    color: #f0e68c;
    /* Khaki - for tagline */
    animation: fadeInUp 1s ease-out 0.5s;
    animation-fill-mode: backwards;
    /* Start animation even if delayed */
}

nav ul {
    list-style: none;
    padding: 10px 0 0 0;
    text-align: center;
}

nav ul li {
    display: inline-block;
    margin: 0 15px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

nav ul li a:hover,
nav ul li a.active {
    background-color: #A0522D;
    /* Sienna - darker brown for hover/active */
    transform: translateY(-2px);
}

/* Main Content Area */
main {
    flex-grow: 1;
    /* Ensures main content takes available space, pushing footer down */
    padding: 20px 0;
}

.hero {
    background: url('https://images.pexels.com/photos/2067396/pexels-photo-2067396.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1') no-repeat center center/cover;
    /* Replace with your header image: e.g., url('images/bakery-hero.jpg') */
    height: 40vh;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    margin-bottom: 30px;
    animation: fadeIn 1.5s ease-out;
}

.hero-content h3 {
    font-size: 2.5em;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 15px 25px;
    border-radius: 8px;
    display: inline-block;
}

.content-section {
    background-color: #fff;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    animation: slideInUp 1s ease-out;
}

.content-section h3 {
    color: #8B4513;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0e68c;
}

.content-section p {
    margin-bottom: 1em;
}

.content-section a {
    color: #D2691E;
    /* Chocolate */
    text-decoration: none;
}

.content-section a:hover {
    text-decoration: underline;
}

/* Gallery Specific */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Contact Form (Basic Styling) */
.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.contact-form button {
    background-color: #8B4513;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: #A0522D;
}


/* Footer */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 1.5em 0;
    margin-top: auto;
    /* Pushes footer to bottom if content is short */
    font-size: 0.9em;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }

    header h2 {
        font-size: 1em;
    }

    nav ul li {
        display: block;
        margin: 10px 0;
    }

    .hero {
        height: 30vh;
    }

    .hero-content h3 {
        font-size: 1.8em;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 480px) {
    .container {
        width: 95%;
    }

    header h1 {
        font-size: 1.8em;
    }

    .hero-content h3 {
        font-size: 1.5em;
        padding: 10px 15px;
    } }