
/* Global Variables and Reset */
:root {
    --brand-color: #6366f1; /* Indigo/Blue for primary actions */
    --brand-color-light: #e0e7ff; /* Light version for backgrounds */
    --light-bg: #f5f7ff;
    --border: #e5e7eb;
    --text-main: #111827;
    --text-secondary: #6b7280;
    --max-width: 1000px;
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: 'Karla', Arial, sans-serif;
    background: #fff;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    line-height: 1.6;
}
a {
    text-decoration: none;
    color: var(--brand-color);
}

/* Header */
header {
    border-bottom: 1px solid var(--border);
    background: #fff;
}
.header-container {
    max-width: var(--max-width);
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    gap: 1rem;
    position: relative;
}
.logo {
    font-weight: 900; /* Extra bold for brand */
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--brand-color);
    text-wrap: nowrap;
}
nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}
nav a {
    color: var(--text-secondary);
    font-weight: 500;
    padding: 0.5rem 0;
    transition: color 0.2s;
}
nav a:hover {
    color: var(--text-main);
}
nav a.active {
    border-bottom: 2px solid var(--brand-color);
    color: var(--text-main);
}
.support-btn {
    background: var(--brand-color);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 11px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
    text-wrap: nowrap;
}
.support-btn:hover {
    background: #4f46e5;
}

/* Hamburger Menu Styling (from previous step) */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}
.hamburger span {
    width: 24px;
    height: 3px;
    background: var(--text-main);
    border-radius: 2px;
}

/* Main Content */
main {
    flex: 1;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 1rem;
    background: var(--light-bg);
    border-radius: 12px;
    margin-top: 2rem;
    margin-bottom: 3rem;
}
.hero h1 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.1;
}
.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.hero-features {
    color: var(--text-secondary);
    list-style-type: none;
    list-style-position: inside;
    margin: 1rem 0;
    padding: 0;
    font-size: 1.1rem;
}
.hero-actions a {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    margin: 0.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
}
.hero-actions a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.primary-btn {
    background: var(--brand-color);
    color: #fff;
    border: 2px solid var(--brand-color);
}
.secondary-btn {
    background: transparent;
    color: var(--brand-color);
    border: 2px solid var(--brand-color);
}

/* Feature Cards */
.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 800;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}
.feature-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 10px 15px -3px rgba(0,0,0,0.05);
    text-align: center;
    transition: all 0.3s;
    border: 1px solid var(--border);
}
.feature-card:hover {
    border-color: var(--brand-color);
    transform: translateY(-5px);
    box-shadow: 0 15px 25px -5px rgba(0,0,0,0.1);
}
.feature-card .icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    display: block;
}
.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}
.feature-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Featured Recipes */
.recipes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}
.recipe-card {
    background: var(--light-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}
.recipe-card:hover {
    transform: scale(1.02);
}
.recipe-card-img {
    height: 200px;
    background: #ccc; /* Placeholder for image */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-secondary);
}
.recipe-card-content {
    padding: 1.5rem;
}
.recipe-card-content h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}
.recipe-card-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}
.recipe-card-content a {
    font-weight: 600;
    font-size: 0.9rem;
}

/* Final CTA Banner */
.cta-banner {
    background: var(--brand-color);
    color: #fff;
    text-align: center;
    padding: 3rem 1rem;
    border-radius: 12px;
    margin-bottom: 3rem;
}
.cta-banner h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
}
.cta-banner .primary-btn {
    color: #fff;
    border: 2px solid var(--brand-color-light);
    padding: 1rem;
    border-radius: 15px;
}

/* Footer */
/* --- Footer Styles --- */
footer {
    background: var(--light-bg, #f5f7ff);
    border-top: 1px solid var(--border, #e5e7eb);
    padding: 1.5rem 0 1rem 0;
    margin-top: 3rem;
    font-size: 1rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--text-secondary, #6366f1);
    text-decoration: none;
    transition: color 0.2s;
    font-size: 1em;
}

.footer-links a:hover {
    color: var(--text-main, #111827);
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    color: var(--text-secondary, #6b7280);
    font-size: 0.95em;
    margin-top: 0.5em;
    position: relative;
}

.footer-bottom button {
    color: var(--brand-color, #6366f1);
    text-decoration: none;
    font-weight: 500;
    position: absolute;
    right: 2vw;
    top: 0;
    font-size: 0.95em;
    background: none;
    border: none;
    cursor: pointer;
}

.footer-bottom a:hover {
    text-decoration: underline;
    color: var(--text-main, #111827);
}

@media (max-width: 600px) {
    .footer-links {
        flex-direction: column;
        gap: 0.7rem;
    }
    .footer-bottom a {
        position: static;
        display: block;
        margin: 0.5em auto 0 auto;
    }
}

/* Responsive adjustments */
@media(max-width: 768px) {
    /* Hamburger Menu Logic */
    .hamburger {
        display: flex;
    }
    nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        overflow: hidden;
        max-height: 0;
        opacity: 0;
        border-top: 1px solid var(--border);
        z-index: 10;
    }
    nav.show {
        max-height: 300px;
        opacity: 1;
        padding: 1rem 0;
    }
    nav a, .support-btn {
        padding: 0.75rem 1rem;
        text-align: center;
        width: 100%;
    }
    .support-btn {
        border-radius: 6px;
    }
    
    /* Hero adjustments */
    .hero {
        padding: 3rem 1rem;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero p {
        font-size: 1.1rem;
        margin-bottom: 0.1rem;
    }
    .hero-actions a {
        display: block;
        width: 80%;
        margin: 0.5rem auto;
    }
    
    /* General adjustments */
    .section-title {
        font-size: 1.5rem;
    }
    .cta-banner h2 {
        font-size: 1.5rem;
    }
}
