/* =========================
   VARIABLES
========================= */

:root {
    --green: #18a957;
    --dark-green: #087f43;
    --light-green: #e9f8ef;
    --dark: #17221c;
    --gray: #68736d;
    --light-gray: #f5f7f5;
    --white: #ffffff;
    --border: #e4e9e5;
}


/* =========================
   GENERAL
========================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", sans-serif;
    color: var(--dark);
    background: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
}


/* =========================
   NAVBAR
========================= */

.navbar {
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 7%;
    background: white;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.2rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.logo-icon {
    font-size: 1.7rem;
}

.green {
    color: var(--green);
}

.navbar nav {
    display: flex;
    gap: 2rem;
}

.navbar nav a {
    color: #59635d;
    font-size: 0.9rem;
    font-weight: 500;
    transition: 0.3s;
}

.navbar nav a:hover {
    color: var(--green);
}

.nav-buttons {
    display: flex;
    gap: 0.7rem;
}

.login-btn,
.restaurant-btn {
    padding: 0.7rem 1.1rem;
    border-radius: 0.6rem;
}

.login-btn {
    background: white;
    color: var(--dark);
    border: 1px solid var(--border);
}

.restaurant-btn {
    background: var(--green);
    color: white;
    font-weight: 600;
    transition: 0.3s;
}

.restaurant-btn:hover {
    background: var(--dark-green);
}


/* =========================
   HERO
========================= */

.hero {
    min-height: 650px;
    padding: 5rem 8%;
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    align-items: center;
    gap: 4rem;
    background: radial-gradient(circle at 80% 30%, #dff7e8, transparent 35%), #f8fbf9;
}

.hero-content {
    max-width: 650px;
}

.badge {
    display: inline-block;
    padding: 0.45rem 0.9rem;
    background: var(--light-green);
    color: var(--dark-green);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.3rem;
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 1.05;
    margin-bottom: 1.5rem;
    letter-spacing: -0.08rem;
}

.hero h1 span {
    color: var(--green);
}

.hero p {
    max-width: 570px;
    color: var(--gray);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.primary-btn,
.secondary-btn {
    padding: 1rem 1.4rem;
    border-radius: 0.7rem;
    font-weight: 600;
}

.primary-btn {
    color: white;
    background: var(--green);
    box-shadow: 0 10px 25px rgba(24, 169, 87, 0.2);
    transition: 0.3s;
}

.primary-btn:hover {
    background: var(--dark-green);
    transform: translateY(-2px);
}

.secondary-btn {
    color: var(--dark);
    background: white;
    border: 1px solid var(--border);
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
}

.hero-stats div {
    display: flex;
    flex-direction: column;
}

.hero-stats strong {
    font-size: 1.5rem;
}

.hero-stats span {
    color: var(--gray);
    font-size: 0.75rem;
}


/* =========================
   HERO CARD
========================= */

.hero-image {
    display: flex;
    justify-content: center;
}

.food-card-main {
    width: 370px;
    padding: 1rem;
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 25px 60px rgba(28, 60, 40, 0.15);
    transform: rotate(2deg);
    transition: 0.4s;
}

.food-card-main:hover {
    transform: rotate(0deg) translateY(-5px);
}

.food-image {
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, #ffe5d8, #fff4ed);
}

.food-info {
    display: flex;
    justify-content: space-between;
    padding: 1.2rem 0.5rem 0.5rem;
}

.food-info h3 {
    font-size: 1.1rem;
}

.food-info p {
    color: var(--gray);
    font-size: 0.75rem;
    margin-top: 0.2rem;
}

.discount {
    height: fit-content;
    padding: 0.35rem 0.6rem;
    color: #d94c20;
    background: #fff0e9;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
}

.price {
    padding: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.old-price {
    color: #9aa29d;
    text-decoration: line-through;
    font-size: 0.8rem;
}

.price strong {
    color: var(--green);
    font-size: 1.4rem;
}

.food-card-main button {
    width: 100%;
    padding: 0.9rem;
    margin-top: 0.5rem;
    color: white;
    background: var(--dark);
    border-radius: 0.7rem;
    font-weight: 600;
}


/* =========================
   CATEGORIES
========================= */

.categories {
    padding: 5rem 8%;
}

.section-title span,
.section-header > div > span,
.restaurant-content > span,
.impact > div > span {
    color: var(--green);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12rem;
}

.section-title h2,
.section-header h2 {
    font-size: 2rem;
    margin-top: 0.5rem;
}

.category-container {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.category {
    padding: 1.5rem 0.7rem;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: 1rem;
    transition: 0.3s;
    cursor: pointer;
}

.category div {
    font-size: 2.2rem;
    margin-bottom: 0.7rem;
}

.category p {
    color: var(--gray);
    font-size: 0.75rem;
    font-weight: 600;
}

.category:hover,
.category.active {
    border-color: var(--green);
    background: var(--light-green);
    transform: translateY(-4px);
}


/* =========================
   FOOD SECTION
========================= */

.food-section {
    padding: 5rem 8%;
    background: var(--light-gray);
}

.section-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.location-btn {
    padding: 0.8rem 1rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: 0.7rem;
    color: var(--dark);
}

.food-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.food-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 1rem;
    overflow: hidden;
    transition: 0.3s;
}

.food-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.food-photo {
    height: 210px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    position: relative;
}

.burger { background: #fff0d9; }
.pizza { background: #ffe5dc; }
.chicken { background: #fff2ce; }
.sushi { background: #e3f5f2; }

.discount-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.4rem 0.7rem;
    background: var(--green);
    color: white;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
}

.card-content {
    padding: 1.2rem;
}

.restaurant-name {
    display: flex;
    justify-content: space-between;
    color: var(--gray);
    font-size: 0.7rem;
}

.restaurant-name span {
    color: #e89b00;
}

.card-content h3 {
    font-size: 1rem;
    margin: 0.7rem 0;
}

.card-content p {
    color: var(--gray);
    font-size: 0.75rem;
    min-height: 40px;
}

.card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
}

.card-bottom strong {
    display: block;
    color: var(--green);
    font-size: 1.15rem;
}

.card-bottom button {
    padding: 0.6rem 0.9rem;
    color: white;
    background: var(--dark);
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.center-button {
    text-align: center;
    margin-top: 2.5rem;
}

.view-more {
    padding: 0.9rem 1.5rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: 0.7rem;
    font-weight: 600;
}


/* =========================
   HOW IT WORKS
========================= */

.how-section {
    padding: 6rem 8%;
}

.center {
    text-align: center;
}

.section-title.center p {
    max-width: 600px;
    margin: 1rem auto;
    color: var(--gray);
    line-height: 1.7;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.step {
    position: relative;
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: 1rem;
}

.step-number {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    color: #dbe7df;
    font-size: 2rem;
    font-weight: 800;
}

.step-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem auto 1.5rem;
    background: var(--light-green);
    border-radius: 50%;
    font-size: 2rem;
}

.step h3 {
    margin-bottom: 0.7rem;
}

.step p {
    color: var(--gray);
    font-size: 0.85rem;
    line-height: 1.7;
}


/* =========================
   RESTAURANTS
========================= */

.restaurant-section {
    padding: 6rem 8%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    background: #112019;
    color: white;
}

.restaurant-content {
    max-width: 600px;
}

.restaurant-content > span {
    color: #70dc9d;
}

.restaurant-content h2 {
    font-size: 3rem;
    line-height: 1.15;
    margin: 1rem 0;
}

.restaurant-content > p {
    color: #aebbb3;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.benefits {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
    color: #dce7e0;
    font-size: 0.85rem;
}

.restaurant-main-btn {
    padding: 1rem 1.4rem;
    color: #112019;
    background: white;
    border-radius: 0.7rem;
    font-weight: 700;
}

.restaurant-visual {
    display: flex;
    justify-content: center;
}

.dashboard {
    width: 450px;
    padding: 1.5rem;
    background: white;
    color: var(--dark);
    border-radius: 1.2rem;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
}

.dashboard-header span {
    color: var(--green);
    font-size: 0.7rem;
}

.sales {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
}

.sales div {
    padding: 1rem;
    background: var(--light-green);
    border-radius: 0.7rem;
}

.sales small,
.mini-product small {
    display: block;
    color: var(--gray);
    font-size: 0.65rem;
}

.sales strong {
    display: block;
    margin-top: 0.3rem;
    color: var(--green);
    font-size: 1.3rem;
}

.mini-product {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 0;
    border-top: 1px solid var(--border);
}

.mini-product > span {
    font-size: 2rem;
}

.mini-product div {
    flex: 1;
}

.mini-product strong {
    font-size: 0.85rem;
}


/* =========================
   IMPACT
========================= */

.impact {
    padding: 5rem 8%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.impact h2 {
    font-size: 2.5rem;
    margin: 0.7rem 0;
}

.impact p {
    max-width: 500px;
    color: var(--gray);
    line-height: 1.7;
}

.impact-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.impact-stats div {
    padding: 1.5rem;
    background: var(--light-green);
    border-radius: 1rem;
    text-align: center;
}

.impact-stats strong {
    display: block;
    color: var(--green);
    font-size: 1.5rem;
}

.impact-stats span {
    color: var(--gray);
    font-size: 0.7rem;
}


/* =========================
   FOOTER
========================= */

footer {
    background: #0d1711;
    color: white;
    padding: 4rem 8% 1.5rem;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand .logo {
    margin-bottom: 1rem;
}

.footer-brand p {
    color: #8f9b94;
    font-size: 0.8rem;
    line-height: 1.7;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-column h4 {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: #8f9b94;
    font-size: 0.75rem;
    transition: 0.3s;
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid #26322b;
    display: flex;
    justify-content: space-between;
    color: #718078;
    font-size: 0.7rem;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1100px) {
    .navbar {
        padding: 0 4%;
    }

    .hero,
    .categories,
    .food-section,
    .how-section,
    .restaurant-section,
    .impact {
        padding-left: 5%;
        padding-right: 5%;
    }

    .food-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-container {
        grid-template-columns: repeat(4, 1fr);
    }

    .navbar nav {
        display: none;
    }
}

@media (max-width: 800px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 4rem;
    }

    .hero-content {
        margin: auto;
    }

    .hero p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-image {
        margin-top: 2rem;
    }

    .restaurant-section,
    .impact {
        grid-template-columns: 1fr;
    }

    .restaurant-content {
        max-width: 100%;
    }

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

    .footer-main {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .navbar {
        height: 70px;
    }

    .nav-buttons .login-btn {
        display: none;
    }

    .restaurant-btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.7rem;
    }

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

    .hero-stats {
        gap: 1.5rem;
    }

    .food-card-main {
        width: 100%;
        max-width: 350px;
    }

    .category-container {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .section-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 1rem;
    }

    .restaurant-content h2 {
        font-size: 2.2rem;
    }

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

    .dashboard {
        width: 100%;
    }

    .impact-stats {
        grid-template-columns: 1fr;
    }

    .footer-main {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.7rem;
    }
}
