/* ============================================================
   eat24 — Talabat-exact layout with maroon/gold theme
   Primary Dark:  #3B0000 (maroon)
   Primary Accent: #C5960C (golden yellow)
   Cream BG:      #FDF5EC (warm cream)
   ============================================================ */

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #2c2c2c;
    background: #fff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input { font-family: inherit; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 48px 0; }

/* ============================================================
   ACCENT LINE (thin colored bar at very top — like Talabat)
   ============================================================ */
.accent-line {
    height: 4px;
    background: linear-gradient(90deg, #C5960C, #E2B13C, #C5960C);
}

/* ============================================================
   TOP NAV (minimal — like Talabat)
   ============================================================ */
.topnav {
    padding: 16px 0;
    background: #FDF5EC;
}
.topnav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.topnav__left {
    display: flex;
    gap: 24px;
}
.topnav__link {
    font-size: 17px;
    font-weight: 500;
    color: #C5960C;
    transition: color .2s;
}
.topnav__link:hover { color: #3B0000; }
.topnav__lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 17px;
    font-weight: 600;
    color: #3B0000;
    background: #fff;
    border: 2px solid #3B0000;
    border-radius: 50px;
    padding: 6px 14px;
    transition: all .2s;
}
.topnav__lang-btn:hover { background: #3B0000; color: #fff; }

/* ============================================================
   MOBILE HEADER (hidden on desktop)
   ============================================================ */
.mobile-header {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #fff;
    border-bottom: 1px solid #eee;
}
.mobile-header__logo img { height: 44px; }
.mobile-header__menu {
    font-size: 22px;
    color: #3B0000;
    padding: 8px;
}

/* ============================================================
   MOBILE MENU
   ============================================================ */
.mobile-menu {
    position: fixed; inset: 0; z-index: 200;
    visibility: hidden; opacity: 0; transition: all .3s;
}
.mobile-menu.active { visibility: visible; opacity: 1; }
.mobile-menu__overlay {
    position: absolute; inset: 0; background: rgba(0,0,0,.5);
}
.mobile-menu__panel {
    position: absolute; right: 0; top: 0; bottom: 0;
    width: 280px; background: #fff;
    transform: translateX(100%); transition: transform .3s;
    display: flex; flex-direction: column;
}
.mobile-menu.active .mobile-menu__panel { transform: translateX(0); }
.mobile-menu__header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px; border-bottom: 1px solid #eee;
}
.mobile-menu__logo { height: 40px; }
.mobile-menu__close { font-size: 20px; color: #333; padding: 4px; }
.mobile-menu__nav { display: flex; flex-direction: column; padding: 8px 0; }
.mobile-menu__nav a {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 20px; font-size: 18px; font-weight: 500; color: #333;
    transition: background .2s;
}
.mobile-menu__nav a:hover { background: #FDF5EC; color: #3B0000; }
.mobile-menu__nav a i { width: 20px; text-align: center; color: #C5960C; }

/* ============================================================
   HERO (Talabat style: centered, cream background, waves)
   ============================================================ */
.hero {
    background: #FDF5EC;
    text-align: center;
    padding: 60px 0 80px;
    position: relative;
}
.hero__wave-bottom {
    position: absolute; bottom: -2px; left: 0; right: 0;
    height: 40px;
    background: #fff;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.hero__center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.hero__logo {
    height: 140px;
    width: auto;
}
.hero__title {
    font-size: 31px;
    font-weight: 700;
    color: #C5960C;
}
.hero__search {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    width: 100%;
    max-width: 580px;
}
.hero__search-box {
    flex: 1;
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50px;
    padding: 0 16px;
    height: 52px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.hero__search-icon {
    color: #999;
    font-size: 16px;
    margin-right: 10px;
}
.hero__search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 18px;
    color: #333;
    background: transparent;
}
.hero__search-input::placeholder { color: #aaa; }
.hero__search-clear {
    color: #bbb;
    font-size: 16px;
    padding: 4px;
    display: none;
}
.hero__search-clear.visible { display: block; }
.hero__search-btn {
    background: #C5960C;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    padding: 0 32px;
    height: 52px;
    white-space: nowrap;
    cursor: pointer;
    transition: background .2s, transform .15s;
}
.hero__search-btn:hover {
    background: #D4A017;
    transform: scale(1.02);
}

/* ============================================================
   PROMO BANNER CARD (Talabat style: image left, accent right)
   ============================================================ */
.promo-section { padding: 32px 0 16px; }
.promo-card {
    display: flex;
    border-radius: 20px;
    overflow: hidden;
    min-height: 260px;
    background: #fff;
    box-shadow: 0 2px 16px rgba(0,0,0,.06);
}
.promo-card__image {
    flex: 1.2;
    background: #3B0000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.promo-card__image img {
    width: 100%; height: 100%; object-fit: cover;
}
.promo-card__image-placeholder {
    width: 100%; height: 100%; min-height: 260px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #3B0000 0%, #5a1a1a 100%);
    color: #C5960C; font-size: 80px;
}
.promo-card__content {
    flex: 1;
    background: #C5960C;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 48px;
}
.promo-card__content h2 {
    font-size: 43px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 12px;
}
.promo-card__content p {
    font-size: 19px;
    opacity: .9;
    line-height: 1.5;
}

/* ============================================================
   CATEGORIES (horizontal scroll pills)
   ============================================================ */
.categories-section { padding: 24px 0 32px; }
.categories-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
}
.categories-scroll::-webkit-scrollbar { display: none; }
.cat-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 80px;
    padding: 12px 8px;
    border-radius: 14px;
    transition: all .2s;
    flex-shrink: 0;
}
.cat-pill:hover { background: #FDF5EC; }
.cat-pill__icon {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: #FDF5EC;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    color: #C5960C;
    transition: all .2s;
}
.cat-pill:hover .cat-pill__icon {
    background: #C5960C;
    color: #fff;
}
.cat-pill span {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

/* ============================================================
   RESTAURANTS SECTION
   ============================================================ */
.restaurants-section { padding-bottom: 48px; }
.section__title {
    font-size: 27px;
    font-weight: 800;
    color: #3B0000;
    margin-bottom: 24px;
}
.restaurants-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.rest-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #eee;
    transition: all .25s;
}
.rest-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,.08);
}
.rest-card__img {
    height: 160px;
    position: relative;
    overflow: hidden;
    background: #f0f0f0;
}
.rest-card__img img { width: 100%; height: 100%; object-fit: cover; }
.rest-card__placeholder {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #3B0000, #5a1515);
    display: flex; align-items: center; justify-content: center;
    color: #C5960C; font-size: 48px;
}
.rest-card__badge {
    position: absolute; top: 12px; left: 12px;
    background: #C5960C; color: #fff; font-size: 11px; font-weight: 700;
    padding: 4px 10px; border-radius: 6px; text-transform: uppercase;
}
.rest-card__body { padding: 14px 16px 16px; }
.rest-card__row {
    display: flex; justify-content: space-between; align-items: flex-start;
    margin-bottom: 4px;
}
.rest-card__row h3 { font-size: 19px; font-weight: 700; color: #1a1a2e; }
.rest-card__rating {
    display: flex; align-items: center; gap: 4px;
    font-size: 13px; font-weight: 600; color: #C5960C;
    background: #FDF5EC; padding: 2px 8px; border-radius: 6px;
    white-space: nowrap;
}
.rest-card__rating i { font-size: 11px; }
.rest-card__cuisines {
    font-size: 16px; color: #888; margin-bottom: 10px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rest-card__meta { display: flex; gap: 14px; font-size: 15px; color: #666; }
.rest-card__meta span { display: flex; align-items: center; gap: 4px; }
.rest-card__meta i { color: #C5960C; font-size: 12px; }

/* ============================================================
   APP SECTION (Talabat style: cream bg, phone left, text right)
   ============================================================ */
.app-section {
    background: #FDF5EC;
    padding: 60px 0 80px;
    position: relative;
}
.app-section__wave-top {
    position: absolute; top: -2px; left: 0; right: 0;
    height: 40px;
    background: #fff;
    border-radius: 0 0 50% 50% / 0 0 100% 100%;
}
.app-section__wave-bottom {
    position: absolute; bottom: -2px; left: 0; right: 0;
    height: 40px;
    background: #fff;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.app-section__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
}
.app-section__content {
    text-align: center;
}
.app-section__illustration {
    flex-shrink: 0;
}
.app-section__phone-svg {
    width: 220px;
    height: 280px;
    filter: drop-shadow(0 12px 30px rgba(59,0,0,.12));
}
.app-section__phone {
    height: 320px;
    width: auto;
    border-radius: 24px;
    filter: drop-shadow(0 16px 40px rgba(59,0,0,.15));
}
.app-section__content h2 {
    font-size: 39px;
    font-weight: 900;
    color: #3B0000;
    margin-bottom: 8px;
}
.app-section__content p {
    font-size: 19px;
    color: #555;
    margin-bottom: 24px;
}
.app-section__badges {
    display: flex;
    gap: 12px;
    justify-content: center;
}
.store-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #1a1a2e;
    color: #fff;
    padding: 10px 20px;
    border-radius: 12px;
    transition: opacity .2s;
}
.store-badge:hover { opacity: .85; }
.store-badge i { font-size: 24px; }
.store-badge small { font-size: 12px; display: block; opacity: .8; text-transform: uppercase; letter-spacing: .5px; }
.store-badge strong { font-size: 19px; }

/* ============================================================
   CTA CARDS (Become Partner + Career — Talabat style)
   ============================================================ */
.cta-section { padding: 48px 0 64px; }
.cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.cta-card {
    background: #FDF5EC;
    border-radius: 20px;
    padding: 32px 28px 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.cta-card__top {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}
.cta-card__icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
}
.cta-card__icon svg {
    width: 100%;
    height: 100%;
}
.cta-card__text h3 {
    font-size: 25px;
    font-weight: 900;
    color: #3B0000;
    margin-bottom: 8px;
}
.cta-card__text p {
    font-size: 17px;
    color: #555;
    line-height: 1.6;
}
.cta-card__btn {
    display: block;
    text-align: center;
    background: #C5960C;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    padding: 16px;
    border-radius: 50px;
    margin-top: auto;
    transition: background .2s;
}
.cta-card__btn:hover { background: #D4A017; }

/* ============================================================
   FOOTER — LINKS BAR (Talabat style: light gray bar)
   ============================================================ */
.footer-links-bar {
    background: #fff;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 20px 0;
}
.footer-links-bar__inner {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}
.footer-links-bar__inner a {
    font-size: 17px;
    color: #555;
    font-weight: 500;
    transition: color .2s;
}
.footer-links-bar__inner a:hover { color: #C5960C; }

/* ============================================================
   FOOTER — MAIN (dark bg, columns)
   ============================================================ */
.footer-main {
    background: #2c2c2c;
    color: #ccc;
    padding: 40px 0;
}
.footer-main__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 32px;
}
.footer-main__col h4 {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
}
.footer-main__col ul li { margin-bottom: 10px; }
.footer-main__col ul a {
    font-size: 16px;
    color: #aaa;
    transition: color .2s;
}
.footer-main__col ul a:hover { color: #C5960C; }
.footer-main__more { color: #C5960C !important; font-weight: 600; }
.footer-main__social {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}
.footer-main__social a {
    font-size: 22px;
    color: #fff;
    transition: color .2s;
}
.footer-main__social a:hover { color: #C5960C; }

/* ============================================================
   FOOTER — BOTTOM
   ============================================================ */
.footer-bottom {
    background: #222;
    padding: 16px 0;
}
.footer-bottom__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-bottom__inner p {
    font-size: 16px;
    color: #777;
}
.footer-bottom__inner a {
    color: #C5960C;
    font-weight: 500;
}
.footer-bottom__inner a:hover { text-decoration: underline; }

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

/* Tablet */
@media (max-width: 1024px) {
    .restaurants-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-main__grid { grid-template-columns: repeat(3, 1fr); }
    .promo-card__content h2 { font-size: 30px; }
    .promo-card__content { padding: 32px; }
    .app-section__inner { gap: 40px; }
    .app-section__content h2 { font-size: 28px; }
}

/* Mobile */
@media (max-width: 768px) {
    .container { padding: 0 16px; }

    /* Hide desktop top nav, show mobile header */
    .topnav { display: none; }
    .mobile-header { display: flex; }

    /* Hero */
    .hero { padding: 40px 0 60px; }
    .hero__logo { height: 100px; }
    .hero__title { font-size: 22px; }
    .hero__search {
        flex-direction: column;
        max-width: 100%;
    }
    .hero__search-box { width: 100%; }
    .hero__search-btn { width: 100%; height: 48px; border-radius: 50px; }

    /* Promo */
    .promo-card { flex-direction: column; }
    .promo-card__image { min-height: 180px; }
    .promo-card__content { padding: 28px 24px; }
    .promo-card__content h2 { font-size: 28px; }

    /* Categories */
    .cat-pill { min-width: 70px; }
    .cat-pill__icon { width: 48px; height: 48px; font-size: 18px; }
    .cat-pill span { font-size: 11px; }

    /* Restaurants */
    .restaurants-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .rest-card__img { height: 120px; }
    .rest-card__row h3 { font-size: 14px; }
    .rest-card__body { padding: 10px 12px 12px; }
    .section__title { font-size: 20px; }

    /* App */
    .app-section { padding: 48px 0 64px; }
    .app-section__inner {
        flex-direction: column;
        text-align: center;
    }
    .app-section__phone-svg { width: 180px; height: 230px; }
    .app-section__phone { height: 260px; }
    .app-section__content h2 { font-size: 26px; }
    .app-section__badges { justify-content: center; flex-wrap: wrap; }

    /* CTA */
    .cta-grid { grid-template-columns: 1fr; }
    .cta-card__text h3 { font-size: 20px; }
    .cta-card__icon { width: 70px; height: 70px; }

    /* Footer links bar */
    .footer-links-bar__inner { gap: 16px; justify-content: flex-start; }
    .footer-links-bar__inner a { font-size: 13px; }

    /* Footer main */
    .footer-main__grid { grid-template-columns: 1fr 1fr; gap: 24px; }

    /* Footer bottom */
    .footer-bottom__inner {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .hero__logo { height: 80px; }
    .hero__title { font-size: 18px; }
    .hero { padding: 32px 0 48px; }

    .promo-card__content h2 { font-size: 22px; }
    .promo-card__content p { font-size: 14px; }
    .promo-card__image { min-height: 140px; }

    .restaurants-grid { grid-template-columns: 1fr; gap: 14px; }
    .rest-card {
        display: flex; flex-direction: row;
    }
    .rest-card__img {
        width: 120px; min-width: 120px; height: auto; min-height: 120px;
        border-radius: 16px 0 0 16px;
    }
    .rest-card__placeholder { font-size: 28px; }
    .rest-card__badge { font-size: 9px; padding: 2px 6px; top: 8px; left: 8px; }
    .rest-card__body {
        display: flex; flex-direction: column; justify-content: center;
    }

    .app-section__phone-svg { width: 150px; height: 190px; }
    .app-section__phone { height: 200px; }
    .app-section__content h2 { font-size: 22px; }
    .store-badge { padding: 8px 14px; }
    .store-badge strong { font-size: 14px; }

    .cta-card { padding: 24px 20px; }
    .cta-card__text h3 { font-size: 18px; }
    .cta-card__icon { width: 64px; height: 64px; }
    .cta-card__top { gap: 14px; }

    .footer-main__grid { grid-template-columns: 1fr; }
    .footer-links-bar__inner { flex-direction: column; gap: 10px; align-items: center; }
}

/* Very small */
@media (max-width: 360px) {
    .hero__logo { height: 64px; }
    .hero__title { font-size: 16px; }
    .hero__search-box { height: 46px; }
    .hero__search-btn { height: 44px; font-size: 14px; }
    .rest-card__img { width: 100px; min-width: 100px; }
}
