/*
Theme Name: Munch
Theme URI: https://munchgvc.com
Author: Alicia
Description: Gourmet Vegan Cookie Shop theme for Munch GVC
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: munch
*/

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

body {
    font-family: 'Nunito', sans-serif;
    background-color: #fff9f5;
    color: #3d2c2c;
}

/* ── NAV ── */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 3rem;
    background-color: transparent;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

nav.scrolled {
    background-color: #ffe8f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 1.0rem 3rem;
}

.logo {
    font-family: 'Pacifico', cursive;
    font-size: 1.8rem;
    color: #e8638c;
    text-decoration: none;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

nav ul li a {
    text-decoration: none;
    color: #3d2c2c;
    font-weight: 700;
    font-size: 1rem;
    transition: color 0.2s;
}

nav ul li a:hover {
    color: #e8638c;
}

/* ── MAIN ── */
main {
    min-height: 80vh;
    padding: 3rem;
}

/* ── HERO ── */
.hero {
    text-align: center;
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #ffe8f0, #ffd6e7, #fff0d6);
    border-radius: 24px;
    margin-bottom: 4rem;
}

.hero h1 {
    font-family: 'Pacifico', cursive;
    font-size: 3.5rem;
    color: #e8638c;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.3rem;
    color: #7a5c5c;
    margin-bottom: 2rem;
}

/* ── BUTTONS ── */
.btn {
    display: inline-block;
    background-color: #e8638c;
    color: white;
    padding: 0.9rem 2.2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1rem;
    transition: background-color 0.2s, transform 0.2s;
}

.btn:hover {
    background-color: #d4517a;
    transform: scale(1.05);
    color: white;
}

/* ── HEADINGS ── */
h2 {
    font-family: 'Pacifico', cursive;
    font-size: 2rem;
    color: #e8638c;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* ── CARDS ── */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 300px));
    gap: 2rem;
    margin-top: 2rem;
    justify-content: center;
}

.card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.07);
    transition: transform 0.2s;
}

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

.card h3 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #3d2c2c;
}

.card p {
    color: #7a5c5c;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.card .price {
    font-size: 1.2rem;
    font-weight: 800;
    color: #e8638c;
}

/* ── FORMS ── */
form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

form input,
form textarea,
form select {
    padding: 1rem;
    border: 2px solid #ffd6e7;
    border-radius: 12px;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    background: white;
    transition: border-color 0.2s;
    width: 100%;
}

form input:focus,
form textarea:focus,
form select:focus {
    outline: none;
    border-color: #e8638c;
}

form textarea {
    height: 150px;
    resize: vertical;
}

form button,
form input[type="submit"] {
    background-color: #e8638c;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    font-family: 'Nunito', sans-serif;
    transition: background-color 0.2s, transform 0.2s;
    width: 100%;
}

form button:hover,
form input[type="submit"]:hover {
    background-color: #d4517a;
    transform: scale(1.02);
}

/* ── FLASH MESSAGES ── */
.munch-message {
    text-align: center;
    color: #e8638c;
    font-weight: 700;
    font-size: 1.1rem;
    margin: 1.2rem 0;
    padding: 1rem;
    background: #fff0f5;
    border-radius: 12px;
}

.munch-message.error {
    color: #c0392b;
    background: #fff5f5;
}

/* ── FOOTER ── */
footer {
    text-align: center;
    padding: 2rem;
    background-color: #ffe8f0;
    color: #7a5c5c;
    font-size: 0.9rem;
}

/* ── EVENTS ── */
.event-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.07);
    display: flex;
    gap: 2rem;
    align-items: center;
}

.event-date {
    background: #ffe8f0;
    border-radius: 16px;
    padding: 1rem 1.5rem;
    text-align: center;
    min-width: 80px;
    flex-shrink: 0;
}

.event-date .day {
    font-size: 2rem;
    font-weight: 800;
    color: #e8638c;
}

.event-date .month {
    font-size: 0.9rem;
    color: #7a5c5c;
    font-weight: 700;
}

/* ── COOKIE IMAGE BANNER ── */
.cookie-img-wrap {
    margin: -2rem -2rem 1rem -2rem;
    height: 180px;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
    box-shadow: inset 0 -6px 8px rgba(0,0,0,0.04);
}

.cookie-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

/* ── MOBILE ── */
@media (max-width: 768px) {
    nav {
        position: sticky;
        flex-wrap: wrap;
        padding: 1rem 1.5rem;
    }

    nav.scrolled {
        padding: 0.6rem 1.5rem;
    }

    #hamburger {
        display: block !important;
    }

    #nav-links {
        max-height: 0;
        overflow: hidden;
        flex-direction: column;
        width: 100%;
        gap: 0;
        padding: 0 1.5rem;
        background-color: #fff9f5;
        transition: max-height 0.2s ease, padding 0.2s ease;
        display: flex;
    }

    #nav-links.open {
        max-height: 400px;
        padding: 0.5rem 1.5rem;
    }

    nav.scrolled #nav-links {
        background-color: #ffe8f0;
    }

    #nav-links li {
        border-bottom: 1px solid #ffd6e7;
    }

    #nav-links li a {
        display: block;
        padding: 0.8rem 0;
        font-size: 1.1rem;
    }

    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1rem; }

    main { padding: 1.5rem; }

    .card-grid { grid-template-columns: 1fr; }

    .event-card {
        flex-direction: column;
        gap: 1rem;
    }

    .hero .btn {
        display: block;
        margin: 0.5rem auto !important;
        width: fit-content;
    }

    h2 { font-size: 1.5rem; }

    footer {
        font-size: 0.8rem;
        padding: 1.5rem 1rem;
    }
}
