/* RESET & CORE STYLES */
:root {
    --strawberry-grad: linear-gradient(135deg, #ff85a2 0%, #ffc2d1 100%);
    --vanilla-grad: linear-gradient(135deg, #fff5e1 0%, #ffffff 100%);
    --pink: #ff4d79;
    --brown: #5d4037;
    --white: #ffffff;
    --mpesa: #28a745;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: #fffafb;
    color: var(--brown);
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* NAVIGATION */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 8%;
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.logo {
    text-decoration: none;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--pink);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: var(--brown);
    font-weight: 600;
}

/* Solid underline for the Menu link on all screen sizes */
.nav-links a:not(.btn) {
    text-decoration: none;
    color: var(--brown);
    font-weight: 600;
    font-size: 1rem;
    padding-bottom: 2px;
    border-bottom: 2px solid var(--pink);
    /* Same solid pink as mobile */
    transition: 0.3s ease;
}

/* Optional: Slight lift effect on hover */
.nav-links a:not(.btn):hover {
    color: var(--pink);
    transform: translateY(-1px);
}

/* HERO SECTION */
.hero {
    background: var(--vanilla-grad);
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 0 8%;
}

.hero::after {
    content: '';
    position: absolute;
    right: -10%;
    width: 50%;
    height: 100%;
    background: var(--strawberry-grad);
    border-radius: 50% 0 0 50%;
    z-index: 1;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    align-items: center;
    gap: 50px;
    z-index: 2;
}

.hero-text h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--pink);
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s;
    border: none;
    cursor: pointer;
}

.btn-main {
    background: var(--strawberry-grad);
    color: var(--white);
    box-shadow: 0 5px 15px rgba(255, 133, 162, 0.4);
}

.btn-outline {
    border: 2px solid var(--pink);
    color: var(--pink);
    background: transparent;
}

.btn:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

.full-width {
    width: 100%;
    text-align: center;
}

.small-btn {
    padding: 8px 18px;
    font-size: 0.9rem;
}

/* CARDS & GALLERY */
.hero-visual {
    display: flex;
    justify-content: center;
}

.featured-card {
    background: var(--white);
    padding: 20px;
    border-radius: 25px;
    box-shadow: var(--shadow);
    transform: rotate(3deg);
    max-width: 350px;
}

.featured-card img {
    width: 100%;
    border-radius: 15px;
}

.badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--pink);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.item-card {
    background: var(--white);
    padding: 25px;
    border-radius: 25px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: 0.3s;
}

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

.item-card img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    margin-bottom: 15px;
}

.price-tag {
    color: var(--pink);
    font-weight: 800;
    font-size: 1.3rem;
    display: block;
    margin: 10px 0 20px;
}

/* ORDER FORM */
.order-wrapper {
    background: var(--vanilla-grad);
    border-radius: 50px 50px 0 0;
}

.order-card {
    max-width: 550px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: 30px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

input,
select {
    width: 100%;
    padding: 12px;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    font-family: inherit;
    outline: none;
}

.mpesa-module {
    background: #f6fff8;
    border: 2px dashed var(--mpesa);
    padding: 20px;
    border-radius: 15px;
    margin: 25px 0;
}

.mpesa-branding {
    color: var(--mpesa);
    font-weight: bold;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.m-box {
    background: var(--mpesa);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
}

.hint {
    font-size: 0.75rem;
    color: #777;
    margin-top: 8px;
}

footer {
    text-align: center;
    padding: 40px;
    background: var(--brown);
    color: var(--white);
}

/* --- IMPROVED RESPONSIVE DESIGN --- */

@media (max-width: 768px) {

    /* 1. Navigation Fixes */
    .navbar {
        padding: 1rem 5%;
        /* Slightly more vertical padding for a premium feel */
    }

    .logo {
        font-size: 1.1rem;
        /* Slightly smaller to fit everything on one line */
    }

    .nav-links {
        gap: 15px;
        /* Enough space to be "tap-friendly" but not crowded */
    }

    .nav-links a:not(.btn) {
        display: inline-block;
        /* RESTORED: Menu link is now visible */
        font-size: 0.85rem;
        border-bottom: 2px solid var(--pink);
        /* Subtle underline to show it's a link */
        padding-bottom: 2px;
    }

    .small-btn {
        padding: 6px 14px;
        /* Slimmed down button to fit next to 'Menu' */
        font-size: 0.8rem;
    }

    /* 2. Hero Section Fixes */
    .hero {
        padding: 40px 5%;
        min-height: auto;
        /* Let content dictate height on mobile */
        text-align: center;
    }

    .hero::after {
        display: none;
        /* Remove the side curve on mobile for a cleaner look */
    }

    .hero-inner {
        grid-template-columns: 1fr;
        /* Stack text and image vertically */
        gap: 30px;
    }

    .hero-text h1 {
        font-size: 2.8rem;
        /* Smaller font for mobile screens */
        margin-bottom: 15px;
    }

    .hero-text p {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .cta-group {
        display: flex;
        flex-direction: column;
        /* Stack buttons on top of each other */
        gap: 15px;
    }

    .btn {
        width: 100%;
        /* Make buttons full-width for easy tapping */
    }

    .hero-visual {
        order: -1;
        /* Move the ice cream image ABOVE the text on mobile */
    }

    .featured-card {
        transform: rotate(0deg);
        /* Remove tilt for better mobile alignment */
        max-width: 280px;
        margin: 0 auto;
    }

    /* 3. Gallery Fixes */
    .section {
        padding: 50px 5%;
    }

    .section-title {
        font-size: 2rem;
    }

    /* 4. Order Form Fixes */
    .order-card {
        padding: 25px;
        border-radius: 20px;
    }
}