
/* Hero Section with Restaurant Image */
.homepage-hero-section {
    margin-bottom: -100px;
    width: 100%;
    padding: 0px !important;
    position: relative;
    overflow: hidden;
}

.homepage-hero-image {
    position: relative;
    width: 100%;
    padding-top: calc(100% * 5 / 16);
    background: #F7F7F7;
    overflow: hidden;
    color: white;
    border: none;
}

.homepage-hero-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.homepage-hero-image::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(28, 28, 28, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
    border: none;
}



/* Action Buttons Grid */
.actions-section {
    position: relative;
    z-index: 10;
    background: transparent;
    padding-bottom: 0;
    padding-top: 2rem;
}

.actions-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 0 auto;
}

/* Desktop - Large displays (default) */
.action-card {
    background: white;
    border-radius: 16px;
    padding: 1rem 0.5rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--headings-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 220px;
    min-width: 200px;
}

.action-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    transform: translateY(-2px);
    text-decoration: none;
    border-bottom: 2px solid var(--mb-colour);
}

.action-icon {
    background-color: #f5f5f5;
    border-radius: 50%;
    color: var(--headings-color);
    font-weight: 300;
    display: block;
    font-size: 24px;
    height: 60px;
    line-height: 65px;
    margin-bottom: 5px;
    text-align: center;
    width: 60px;
    -webkit-transition: all 0.4s ease;
    -moz-transition: all 0.4s ease;
    -ms-transition: all 0.4s ease;
    -o-transition: all 0.4s ease;
    transition: all 0.4s ease;
}

.action-card:hover .action-icon {
    background-color: var(--mb-colour);
    color: white;
}

.action-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.action-card:hover .action-title {
    color: var(--mb-colour);
}

/* Desktop - When there is only 1 button, make it wider */
.actions-grid:has(.action-card:only-child) .action-card {
    width: 300px;
    max-width: 80%;
}

/* Desktop - When there are exactly 2 buttons, make them wider (max 40% ensures one row) */
.actions-grid:has(.action-card:nth-child(2)):not(:has(.action-card:nth-child(3))) .action-card {
    width: 280px;
    max-width: 40%;
}

/* Desktop - When there are exactly 3 buttons, make them wider (max 30% ensures one row) */
.actions-grid:has(.action-card:nth-child(3)):not(:has(.action-card:nth-child(4))) .action-card {
    width: 260px;
    max-width: 30%;
}

/* Desktop - 4 buttons stay at default size (220px) */


/* Location Section */
.homepage-working-hours-block {
    padding-left: 15px;
    border-left: 3px solid var(--mb-colour);
    text-align: start;
    margin-bottom: 0px;
}

.location-card {
    padding: 5px;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.map-container {
    width: 100%;
    height: 300px;
    background: #fff;
}

/* Responsive Design */

/* Medium tablets (max 992px) - max width ~300px for 3 buttons */
@media (max-width: 992px) {
    .actions-section {
        padding-top: 60px;
    }
    .actions-grid {
        gap: 10px;
    }
    .action-card {
        width: 200px;
        min-width: 180px;
        min-height: 100px;
        padding: 12px 8px;
    }
    .action-icon {
        font-size: 22px;
        height: 55px;
        line-height: 55px;
        width: 55px;
        margin-bottom: 4px;
    }
    .action-title {
        font-size: 1rem;
    }

    /* When there are exactly 4 buttons, force 2x2 layout */
    .actions-grid:has(.action-card:nth-child(4)):not(:has(.action-card:nth-child(5))) .action-card {
        width: 42%;
        min-width: 180px;
    }

    .homepage-working-hours-block {
        padding-left: 0px;
        border-left: none;
        text-align: center;
        margin-bottom: 20px;
    }
}

/* Small tablets (max 768px) - max width ~240px for 3 buttons */
@media (max-width: 768px) {
    .homepage-hero-image {
        padding-top: 50%;
    }
    .actions-grid {
        gap: 8px;
    }
    .action-card {
        width: 160px;
        min-width: 140px;
        min-height: 85px;
        padding: 10px 6px;
    }
    .action-icon {
        font-size: 18px;
        height: 45px;
        line-height: 45px;
        width: 45px;
        margin-bottom: 3px;
    }
    .action-title {
        font-size: 14px;
        line-height: normal;
    }

    /* When there is only 1 button, make it wider */
    .actions-grid:has(.action-card:only-child) .action-card {
        width: 240px;
        min-width: 200px;
    }

    /* When there are exactly 2 buttons, make them wider */
    .actions-grid:has(.action-card:nth-child(2)):not(:has(.action-card:nth-child(3))) .action-card {
        width: 200px;
        min-width: 180px;
    }

    /* When there are exactly 4 buttons, force 2x2 layout */
    .actions-grid:has(.action-card:nth-child(4)):not(:has(.action-card:nth-child(5))) .action-card {
        width: 42%;
        min-width: 140px;
    }
}

/* Large phones (max 480px) - max width ~150px for 3 buttons */
@media (max-width: 480px) {
    .actions-container {
        padding: 0px !important;
    }
    .actions-grid {
        gap: 6px;
    }
    .action-card {
        width: 130px;
        min-width: 110px;
        min-height: 75px;
        height: 75px;
        padding: 8px 4px;
    }
    .action-icon {
        font-size: 16px;
        height: 38px;
        line-height: 38px;
        width: 38px;
        margin-bottom: 2px;
    }
    .action-title {
        font-size: 12px;
        line-height: normal;
    }

    /* When there is only 1 button, make it wider */
    .actions-grid:has(.action-card:only-child) .action-card {
        width: 200px;
        min-width: 180px;
    }

    /* When there are exactly 2 buttons, make them wider */
    .actions-grid:has(.action-card:nth-child(2)):not(:has(.action-card:nth-child(3))) .action-card {
        width: 180px;
        min-width: 160px;
    }

    /* When there are exactly 4 buttons, force 2x2 layout */
    .actions-grid:has(.action-card:nth-child(4)):not(:has(.action-card:nth-child(5))) .action-card {
        width: 44%;
        min-width: 110px;
    }
}

/* Small phones (max 380px) - max width ~120px for 3 buttons */
@media (max-width: 380px) {
    .actions-grid {
        gap: 4px;
    }
    .action-card {
        width: 115px;
        min-width: 100px;
        min-height: 68px;
        height: 68px;
        padding: 6px 3px;
    }
    .action-icon {
        font-size: 14px;
        height: 32px;
        line-height: 32px;
        width: 32px;
        margin-bottom: 2px;
    }
    .action-title {
        font-size: 11px;
    }

    /* When there is only 1 button, make it wider */
    .actions-grid:has(.action-card:only-child) .action-card {
        width: 180px;
        min-width: 160px;
    }

    /* When there are exactly 2 buttons, make them wider */
    .actions-grid:has(.action-card:nth-child(2)):not(:has(.action-card:nth-child(3))) .action-card {
        width: 150px;
        min-width: 130px;
    }

    /* When there are exactly 4 buttons, force 2x2 layout */
    .actions-grid:has(.action-card:nth-child(4)):not(:has(.action-card:nth-child(5))) .action-card {
        width: 45%;
        min-width: 95px;
    }
}


/* ===========================
   Offers Section
   =========================== */
.offers-section {
    padding: 50px 0 20px;
}

.offers-section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--mb-colour);
    text-align: center;
    margin-bottom: 32px;
}

/* Auto-fit grid: centers cards when fewer than full row */
.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 380px));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
}

.offer-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.offer-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

/* Full-bleed image container */
.offer-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f0f0f0;
}

.offer-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.offer-card:hover .offer-image-wrap img {
    transform: scale(1.04);
}

/* Discount badge — star shape overlaid on image (same as app) */
.offer-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: var(--mb-colour);
    z-index: 2;
    flex-shrink: 0;
    clip-path: polygon(50% 0%, 61% 25%, 85% 10%, 75% 35%, 100% 50%, 75% 65%, 85% 90%, 61% 75%, 50% 100%, 39% 75%, 15% 90%, 25% 65%, 0% 50%, 25% 35%, 15% 10%, 39% 25%);
}

.offer-badge-percent {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
}

/* Offer type label — overlaid on image bottom with gradient */
.offer-image-wrap .offer-type-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px 16px 10px;
    margin: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

/* No-image fallback — colored banner with badge */
.offer-no-image {
    position: relative;
    width: 100%;
    padding: 30px 20px;
    background: linear-gradient(135deg, var(--mb-colour), color-mix(in srgb, var(--mb-colour), #000 25%));
    display: flex;
    align-items: center;
    gap: 16px;
}

.offer-no-image .offer-badge {
    position: static;
    background: rgba(255, 255, 255, 0.2);
}

.offer-no-image .offer-type-label {
    position: static;
    background: none;
    padding: 0;
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Card body — info section below image */
.offer-card-body {
    padding: 16px 20px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.offer-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--headings-color);
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.offer-validity {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 10px;
}

.offer-validity i {
    font-size: 12px;
    color: var(--mb-colour);
}

.offer-code {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 8px;
    max-width: 220px;
}

.offer-code-label {
    font-size: 12px;
    color: #6c757d;
}

.offer-code-value {
    font-size: 15px;
    font-weight: 700;
    color: var(--mb-colour);
    letter-spacing: 1.5px;
}

/* CTA button */
.offer-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    gap: 8px;
    margin-top: auto;
    padding: 12px 32px;
    max-width: 220px;
    background: var(--mb-colour);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.offer-cta:hover {
    opacity: 0.9;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
}

/* "See all offers" link — styled as outlined button */
.offers-see-all {
    text-align: center;
    margin-top: 30px;
}

.offers-see-all a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--mb-colour);
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    padding: 10px 24px;
    border: 2px solid var(--mb-colour);
    border-radius: 10px;
    transition: background 0.2s ease, color 0.2s ease;
}

.offers-see-all a:hover {
    background: var(--mb-colour);
    color: #ffffff;
    text-decoration: none;
}

/* Offers page title (dedicated page) */
.offers-page-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--headings-color);
    text-align: center;
    margin-bottom: 30px;
    padding-top: 30px;
}

/* Upcoming offer card — subtle visual distinction */
.offer-card-upcoming {
    opacity: 0.85;
    border: 2px dashed #dee2e6;
}

.offer-card-upcoming:hover {
    opacity: 1;
}

.offer-card-upcoming .offer-image-wrap img {
    filter: brightness(0.9) saturate(0.8);
}

.offer-card-upcoming:hover .offer-image-wrap img {
    filter: brightness(1) saturate(1);
}

.offer-upcoming-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--mb-colour);
    margin-bottom: 10px;
}

.offer-upcoming-label i {
    font-size: 12px;
}

/* Responsive: phones (max 768px) — single column, full width */
@media (max-width: 768px) {
    .offers-section {
        padding: 30px 0 10px;
    }
    .offers-section-title {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }
    .offers-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
