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

body {
    font-family: 'Roboto', sans-serif;
    background-color: #faf3e0;
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
        url('../images/recipe-bg.jpg');
    /* Optional: add your background image in the images folder as recipe-bg.jpg or change accordingly */
    background-size: cover;
    background-position: center;
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay {
    color: #fff;
    padding: 0 1rem;
}

.hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.tagline {
    font-size: 1.4rem;
    font-weight: 300;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Recipes Section */
.recipes-section {
    max-width: 1200px;
    width: 100%;
    text-align: center;
}

.recipes-section h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #8a4f7d;
}

/* Grid layout for recipe cards */
.recipes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
}

/* Recipe Card */
.recipe-card {
    background-color: #fff4e6;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.recipe-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.card-content {
    padding: 1rem;
    background-color: #fbe7c6;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.recipe-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    margin: 0;
}

/* Hover Effects */
.recipe-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Footer Section */
.site-footer {
    background-color: #8a4f7d;
    text-align: center;
    color: #f9eae1;
    padding: 1rem;
    font-size: 0.9rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .tagline {
        font-size: 1.2rem;
    }

    .recipes-section h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 40vh;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1rem;
    }
}