* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f7f8f5;
    color: #202020;
    line-height: 1.5;
}

body.cart-open {
    overflow: hidden;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
}


/* =========================
   HEADER
========================= */

.header {
    min-height: 100px;
    padding: 10px 7%;
    background: #111;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;

    position: sticky;
    top: 0;
    z-index: 500;
}

.brand {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 50%;
}

.brand-name {
    color: white;
    font-size: 27px;
    font-weight: 800;
}

.brand-name span {
    color: #5eb324;
}

.brand-subtitle {
    color: #ddd;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 4px;
}

.navigation {
    display: flex;
    align-items: center;
    gap: 25px;
}

.navigation a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.navigation a:hover {
    color: #5eb324;
}

.cart-button {
    border: 0;
    border-radius: 9px;
    padding: 12px 18px;
    background: #5eb324;
    color: white;
    font-weight: bold;
}

#cartCount {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 23px;
    height: 23px;
    margin-left: 5px;
    padding: 0 5px;
    background: white;
    color: #222;
    border-radius: 50%;
    font-size: 12px;
}


/* =========================
   HERO
========================= */

.hero {
    padding: 65px 20px;
    text-align: center;
    background: linear-gradient(
        135deg,
        #f5f9f1,
        #e6f2dc
    );
}

.hero-content {
    max-width: 900px;
    margin: auto;
}

.eyebrow {
    color: #5aa620;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.hero h1 {
    font-size: 56px;
    line-height: 1.05;
    margin-bottom: 20px;
}

.hero h1 span {
    color: #5eb324;
}

.hero-description {
    color: #555;
    font-size: 20px;
    margin-bottom: 20px;
}

.weekly-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 20px;
}

.weekly-info span {
    color: #555;
}


/* =========================
   COUNTDOWN
========================= */

.countdown-box {
    max-width: 620px;
    margin: 0 auto 28px;
    padding: 20px;
    background: white;
    border: 1px solid #dce8d4;
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .07);
}

.countdown-title {
    color: #555;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.countdown {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.countdown > div {
    padding: 12px 5px;
    background: #111;
    border-radius: 9px;
}

.countdown strong {
    display: block;
    color: #70c337;
    font-size: 29px;
}

.countdown span {
    color: #ccc;
    font-size: 9px;
    font-weight: bold;
}

.countdown-message {
    color: #666;
    font-size: 13px;
    margin-top: 12px;
}

.primary-button {
    display: inline-block;
    padding: 15px 28px;
    background: #5eb324;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
}


/* =========================
   GENERAL HEADINGS
========================= */

.section-heading {
    max-width: 700px;
    margin: 0 auto 45px;
    text-align: center;
}

.section-heading h2 {
    font-size: 38px;
    margin-bottom: 10px;
}

.section-heading > p:last-child {
    color: #666;
}


/* =========================
   MENU
========================= */

.menu-section {
    max-width: 1250px;
    margin: auto;
    padding: 80px 25px;
}

.meal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.meal-card {
    overflow: hidden;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .08);
}

.meal-photo {
    height: 230px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e7e9e5;
    color: #888;
    font-size: 13px;
    font-weight: bold;
}

.meal-content {
    padding: 24px;
}

.meal-content h3 {
    font-size: 23px;
    margin-bottom: 10px;
}

.meal-description {
    min-height: 65px;
    color: #666;
}

.nutrition {
    display: flex;
    gap: 8px;
    margin: 18px 0;
}

.nutrition span {
    flex: 1;
    padding: 9px;
    background: #eef6e8;
    color: #4e941e;
    border-radius: 7px;
    text-align: center;
    font-size: 13px;
    font-weight: bold;
}

.meal-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.price {
    color: #5eb324;
    font-size: 28px;
}

.quantity-control {
    display: flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.quantity-button {
    width: 44px;
    height: 44px;
    border: 0;
    background: #111;
    color: white;
    font-size: 22px;
}

.quantity-button:active {
    transform: scale(.96);
}

.quantity {
    min-width: 44px;
    text-align: center;
    font-weight: bold;
}


/* =========================
   DELIVERY
========================= */

.delivery-section {
    padding: 80px 25px;
    background: #eef5e8;
}

.delivery-grid {
    max-width: 1000px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.delivery-card {
    position: relative;
    padding: 35px 25px;
    background: white;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .04);
}

.delivery-card.featured {
    border: 2px solid #5eb324;
}

.free-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 12px;
    background: #5eb324;
    color: white;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
    white-space: nowrap;
}

.delivery-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 65px;
    height: 65px;
    margin: 0 auto 15px;
    background: #111;
    color: #70c337;
    border-radius: 50%;
    font-size: 18px;
}

.delivery-card h3 {
    margin-bottom: 8px;
}

.delivery-card p {
    color: #666;
}

.pickup-note {
    margin-top: 30px;
    text-align: center;
    font-weight: bold;
}


/* =========================
   HOW IT WORKS
========================= */

.how-section {
    padding: 75px 25px;
    background: #111;
}

.dark-heading h2 {
    color: white;
}

.steps {
    max-width: 950px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    color: white;
    text-align: center;
}

.step-number {
    width: 55px;
    height: 55px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #5eb324;
    border-radius: 50%;
    font-size: 22px;
    font-weight: bold;
}

.step h3 {
    margin-bottom: 7px;
}

.step p {
    color: #bbb;
}


/* =========================
   CART
========================= */

.cart-overlay {
    position: fixed;
    inset: 0;
    z-index: 900;
    background: rgba(0, 0, 0, .55);
    opacity: 0;
    visibility: hidden;
    transition: .25s;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart {
    position: fixed;
    top: 0;
    right: -440px;
    z-index: 1000;
    width: 420px;
    max-width: 100%;
    height: 100dvh;
    padding: 25px;
    display: flex;
    flex-direction: column;
    background: white;
    transition: right .3s ease;
}

.cart.open {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.close-cart {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border: 0;
    background: #eee;
    border-radius: 50%;
    font-size: 26px;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px 0;
}

.empty-cart {
    margin-top: 40px;
    color: #777;
    text-align: center;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.cart-item-name {
    font-weight: bold;
}

.cart-item-details {
    color: #777;
    font-size: 13px;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
    border-top: 2px solid #eee;
    font-size: 21px;
}

.checkout-button,
.submit-order-button {
    width: 100%;
    padding: 15px;
    border: 0;
    border-radius: 8px;
    background: #5eb324;
    color: white;
    font-weight: bold;
}


/* =========================
   CHECKOUT
========================= */

.checkout-section {
    display: none;
    padding: 80px 20px;
    background: #f5f7f3;
}

.checkout-section.active {
    display: block;
}

.checkout-container {
    max-width: 900px;
    margin: auto;
    padding: 40px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .08);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}

.form-group label {
    font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 13px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: white;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #5eb324;
    box-shadow: 0 0 0 3px rgba(94, 179, 36, .12);
}

.form-group input[readonly] {
    background: #f2f2f2;
    color: #555;
}

.full-width {
    grid-column: 1 / -1;
}

.delivery-fields {
    display: none;
    padding: 20px;
    background: #fafbf9;
    border: 1px solid #e4e8e1;
    border-radius: 12px;
}

.delivery-fields.active {
    display: block;
}

/* Changed only for the new single Google address field */
.delivery-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.full-address {
    grid-column: 1 / -1;
    width: 100%;
}


/* =========================
   GOOGLE ADDRESS SEARCH
========================= */

.pac-container {
    z-index: 9999 !important;
    background: white;
    border: 1px solid #ccc;
    border-radius: 9px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .13);
    font-family: Arial, Helvetica, sans-serif;
}

.pac-item {
    padding: 10px 13px;
    cursor: pointer;
}

.pac-item:hover {
    background: #eef6e8;
}


/* =========================
   DELIVERY MESSAGE
========================= */

.delivery-zone-message {
    margin-top: 15px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    color: #555;
    font-size: 14px;
}

.delivery-zone-message.success {
    background: #eef6e8;
    border-color: #cce3bc;
    color: #3f7c17;
}

.delivery-zone-message.error {
    background: #fff2f2;
    border-color: #f0c8c8;
    color: #a33333;
}

.delivery-explanation {
    margin-top: 15px;
    padding: 15px;
    background: #eef6e8;
    border-radius: 8px;
}

.delivery-explanation p {
    color: #555;
    margin-top: 4px;
}


/* =========================
   PRICE BOX
========================= */

.checkout-price-box {
    margin-top: 30px;
    padding: 20px;
    background: #f4f5f2;
    border-radius: 10px;
}

.checkout-price-box > div {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 7px 0;
}

.distance-charge-row {
    display: none !important;
}

.distance-charge-row.active {
    display: flex !important;
}

.grand-total,
.checkout-grand-total {
    margin-top: 8px;
    padding-top: 15px !important;
    border-top: 2px solid #ddd;
    font-size: 23px;
}

.submit-order-button {
    margin-top: 20px;
    background: #111;
}

.submit-order-button:hover,
.checkout-button:hover,
.cart-button:hover,
.primary-button:hover {
    opacity: .9;
}


/* =========================
   SUCCESS
========================= */

.success-section {
    display: none;
    padding: 90px 20px;
    text-align: center;
}

.success-section.active {
    display: block;
}

.success-box,
.success-card {
    max-width: 600px;
    margin: auto;
    padding: 45px 30px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .08);
}

.success-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #5eb324;
    color: white;
    border-radius: 50%;
    font-size: 38px;
}

.order-number {
    margin: 20px 0;
}

.success-details,
#successDetails {
    margin-top: 20px;
    padding: 18px;
    background: #eef6e8;
    border-radius: 10px;
}


/* =========================
   FOOTER
========================= */

footer,
.footer {
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    background: white;
    color: #777;
    text-align: center;
}

footer img,
.footer img {
    width: 80px;
    height: 80px;
    margin-bottom: 10px;
    object-fit: contain;
    border-radius: 50%;
}

footer strong {
    color: #222;
}


/* =========================
   TABLET / MOBILE
========================= */

@media (max-width: 850px) {

    .header {
        min-height: 78px;
        padding: 8px 15px;
    }

    .logo {
        width: 58px;
        height: 58px;
    }

    .brand {
        gap: 9px;
    }

    .brand-name {
        font-size: 18px;
    }

    .brand-subtitle {
        font-size: 8px;
        letter-spacing: 2px;
    }

    .navigation {
        gap: 8px;
    }

    .navigation a {
        display: none;
    }

    .cart-button {
        padding: 10px 12px;
        white-space: nowrap;
    }

    .hero {
        padding: 45px 16px;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero-description {
        font-size: 17px;
    }

    .section-heading {
        margin-bottom: 30px;
    }

    .section-heading h2 {
        font-size: 32px;
    }

    .meal-grid,
    .delivery-grid,
    .steps {
        grid-template-columns: 1fr;
    }

    .meal-grid {
        max-width: 550px;
        margin: auto;
    }

    .delivery-grid {
        max-width: 550px;
        gap: 30px;
    }

    .steps {
        max-width: 500px;
    }

    .form-grid,
    .delivery-form-grid {
        grid-template-columns: 1fr;
    }

    .full-width {
        grid-column: auto;
    }

    .checkout-container {
        padding: 28px 20px;
    }

    .delivery-fields {
        padding: 16px;
    }
}


/* =========================
   SMALL PHONES
========================= */

@media (max-width: 500px) {

    .header {
        padding: 7px 10px;
    }

    .logo {
        width: 52px;
        height: 52px;
    }

    .brand-name {
        font-size: 16px;
    }

    .brand-subtitle {
        font-size: 7px;
        letter-spacing: 1.5px;
    }

    .cart-button {
        padding: 9px 10px;
        font-size: 13px;
    }

    #cartCount {
        min-width: 20px;
        height: 20px;
        font-size: 10px;
    }

    .hero {
        padding: 38px 13px;
    }

    .hero h1 {
        font-size: 34px;
    }

    .hero-description {
        font-size: 16px;
    }

    .weekly-info {
        font-size: 14px;
    }

    .countdown-box {
        padding: 14px 10px;
    }

    .countdown {
        gap: 5px;
    }

    .countdown > div {
        padding: 10px 2px;
    }

    .countdown strong {
        font-size: 22px;
    }

    .countdown span {
        font-size: 7px;
    }

    .primary-button {
        width: 100%;
        padding: 14px 10px;
    }

    .menu-section,
    .delivery-section,
    .how-section {
        padding-left: 14px;
        padding-right: 14px;
    }

    .section-heading h2 {
        font-size: 29px;
    }

    .meal-photo {
        height: 190px;
    }

    .meal-content {
        padding: 20px 17px;
    }

    .meal-description {
        min-height: 0;
    }

    .nutrition {
        flex-direction: column;
    }

    .price {
        font-size: 25px;
    }

    .quantity-button {
        width: 42px;
        height: 42px;
    }

    .quantity {
        min-width: 38px;
    }

    .cart {
        width: 100%;
        padding:
            20px
            16px
            max(20px, env(safe-area-inset-bottom));
    }

    .checkout-section {
        padding: 45px 10px;
    }

    .checkout-container {
        padding: 25px 14px;
        border-radius: 12px;
    }

    .delivery-fields {
        padding: 13px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        min-height: 48px;
        font-size: 16px;
    }

    .checkout-price-box {
        padding: 16px 14px;
    }

    .grand-total,
    .checkout-grand-total {
        font-size: 21px;
    }
}