/* ============================================================
   eat24 — Full Talabat-style Theme
   Primary:   Dark Maroon  #3B0000 / #4A0000 / #2D0000
   Accent:    Golden Yellow #C5960C / #D4A017 / #E2B13C
   ============================================================ */

/* ---------- RESET & BASE ---------- */
*, *::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: #1a1a2e;
    background: #f8f8fa;
    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; }

/* ---------- UTILITY ---------- */
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    font-weight: 600; border-radius: 12px; transition: all .25s;
    padding: 12px 28px; font-size: 15px; border: none; cursor: pointer;
}
.btn--primary {
    background: #C5960C; color: #fff;
}
.btn--primary:hover { background: #D4A017; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(197,150,12,.35); }
.btn--small { padding: 8px 18px; font-size: 13px; border-radius: 8px; }
.btn--light { background: #fff; color: #3B0000; }
.btn--light:hover { background: #f0f0f0; }

/* ============================================================
   TOP BAR
   ============================================================ */
.top-bar {
    background: #3B0000;
    color: #fff;
    font-size: 13px;
    padding: 8px 0;
    position: relative;
    z-index: 100;
}
.top-bar .container {
    display: flex; align-items: center; justify-content: space-between;
}
.top-bar__text {
    display: flex; align-items: center; gap: 8px;
}
.top-bar__text i { color: #C5960C; }
.top-bar__text strong { color: #C5960C; }
.top-bar__close {
    color: #fff; opacity: .7; font-size: 14px; padding: 4px;
}
.top-bar__close:hover { opacity: 1; }

/* ============================================================
   HEADER / NAVBAR
   ============================================================ */
.header {
    background: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 90;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.header__inner {
    display: flex;
    align-items: center;
    gap: 16px;
    height: 64px;
}

/* Logo */
.header__logo { flex-shrink: 0; }
.header__logo-img { height: 52px; width: auto; object-fit: contain; }
.logo-text {
    font-size: 28px; font-weight: 800; color: #3B0000; letter-spacing: -1px;
}
.logo-accent { color: #C5960C; }
.logo-text--footer { font-size: 32px; }
.mobile-menu__logo-img { height: 40px; width: auto; object-fit: contain; }
.footer__logo-link { display: inline-block; }
.footer__logo-img { height: 60px; width: auto; object-fit: contain; margin-bottom: 4px; }

/* Location */
.header__location { flex-shrink: 0; }
.location-btn {
    display: flex; align-items: center; gap: 8px;
    background: #f5f5f5; border-radius: 10px; padding: 8px 14px;
    font-size: 14px; color: #333; transition: background .2s;
}
.location-btn:hover { background: #eee; }
.location-btn i:first-child { color: #C5960C; font-size: 16px; }
.location-btn__text { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Search */
.header__search { flex: 1; }
.search-form {
    position: relative; width: 100%;
}
.search-form__icon {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    color: #999; font-size: 14px;
}
.search-form__input {
    width: 100%; padding: 10px 14px 10px 40px;
    border: 1px solid #e0e0e0; border-radius: 10px;
    font-size: 14px; color: #333; background: #f9f9f9;
    transition: border-color .2s, box-shadow .2s;
}
.search-form__input:focus {
    outline: none; border-color: #C5960C;
    box-shadow: 0 0 0 3px rgba(197,150,12,.12);
}

/* Actions */
.header__actions {
    display: flex; align-items: center; gap: 12px; flex-shrink: 0;
}
.lang-btn {
    padding: 6px 12px; border-radius: 8px; font-size: 13px;
    font-weight: 600; color: #3B0000; background: #f5f5f5;
    transition: background .2s;
}
.lang-btn:hover { background: #eee; }
.header__action-btn {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 14px; border-radius: 10px; font-size: 14px;
    font-weight: 500; color: #3B0000; background: #f5f5f5;
    transition: all .2s;
}
.header__action-btn:hover { background: #3B0000; color: #fff; }
.header__cart { position: relative; }
.cart-badge {
    position: absolute; top: -4px; right: -4px;
    background: #C5960C; color: #fff; font-size: 10px;
    font-weight: 700; width: 18px; height: 18px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
}

/* Mobile Toggle */
.header__mobile-toggle {
    display: none; flex-direction: column; gap: 5px;
    padding: 8px; width: 40px;
}
.header__mobile-toggle span {
    display: block; height: 2px; width: 100%; background: #3B0000;
    border-radius: 2px; transition: all .3s;
}

/* ============================================================
   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: 300px; 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: 20px; border-bottom: 1px solid #eee;
}
.mobile-menu__close { font-size: 20px; color: #333; }
.mobile-menu__nav {
    display: flex; flex-direction: column; padding: 12px 0;
}
.mobile-menu__nav a {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 20px; font-size: 15px; font-weight: 500; color: #333;
    transition: background .2s;
}
.mobile-menu__nav a:hover { background: #f5f5f5; color: #3B0000; }
.mobile-menu__nav a i { width: 20px; text-align: center; color: #C5960C; }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    background: linear-gradient(135deg, #3B0000 0%, #4A0000 40%, #2D0000 100%);
    color: #fff;
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute; top: -50%; right: -20%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(197,150,12,.15) 0%, transparent 70%);
    border-radius: 50%;
}
.hero__grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 40px; align-items: center;
}
.hero__title {
    font-size: 48px; font-weight: 800; line-height: 1.15;
    margin-bottom: 16px;
}
.hero__title-accent { color: #C5960C; }
.hero__subtitle {
    font-size: 18px; opacity: .85; margin-bottom: 32px;
}
.hero__search-box {
    display: flex; gap: 0; background: #fff; border-radius: 16px;
    overflow: hidden; box-shadow: 0 8px 32px rgba(0,0,0,.25);
}
.hero__input-wrap {
    flex: 1; display: flex; align-items: center; gap: 10px; padding: 0 16px;
}
.hero__input-wrap i { color: #C5960C; font-size: 18px; }
.hero__input {
    flex: 1; border: none; outline: none; font-size: 15px;
    padding: 16px 0; background: transparent; color: #333;
}
.hero__btn {
    border-radius: 0 16px 16px 0; padding: 16px 28px; white-space: nowrap;
}

/* Hero Illustration */
.hero__illustration { display: flex; justify-content: center; position: relative; }
.hero__image-placeholder {
    width: 380px; height: 380px;
    background: rgba(255,255,255,.06); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    position: relative;
}
.hero__image-placeholder > i {
    font-size: 120px; color: #C5960C; opacity: .8;
}
.hero__floating-card {
    position: absolute;
    background: #fff; color: #3B0000; border-radius: 14px;
    padding: 12px 18px; display: flex; align-items: center; gap: 8px;
    font-weight: 600; font-size: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,.15);
    animation: float 3s ease-in-out infinite;
}
.hero__floating-card i { color: #C5960C; font-size: 18px; }
.hero__floating-card--1 { top: 20%; left: -10%; animation-delay: 0s; }
.hero__floating-card--2 { top: 10%; right: -5%; animation-delay: 1s; }
.hero__floating-card--3 { bottom: 15%; left: 5%; animation-delay: 2s; }
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 48px 0; }
.section__header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 28px;
}
.section__header--center { justify-content: center; }
.section__title { font-size: 26px; font-weight: 700; color: #1a1a2e; }
.section__link {
    font-size: 14px; font-weight: 600; color: #C5960C;
    display: flex; align-items: center; gap: 4px;
}
.section__link:hover { color: #3B0000; }

/* ============================================================
   CATEGORIES
   ============================================================ */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 16px;
}
.category-card {
    display: flex; flex-direction: column; align-items: center; gap: 12px;
    padding: 24px 12px; background: #fff; border-radius: 16px;
    transition: all .25s; border: 1px solid transparent;
}
.category-card:hover {
    border-color: #C5960C; transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(197,150,12,.15);
}
.category-card__icon {
    width: 64px; height: 64px; border-radius: 50%;
    background: linear-gradient(135deg, #3B0000, #4A0000);
    display: flex; align-items: center; justify-content: center;
    color: #C5960C; font-size: 24px;
    transition: transform .3s;
}
.category-card:hover .category-card__icon { transform: scale(1.1); }
.category-card__name { font-size: 14px; font-weight: 600; color: #333; }

/* ============================================================
   PROMO BANNERS CAROUSEL
   ============================================================ */
.banners-section { padding-top: 8px; }
.banners-carousel { position: relative; overflow: hidden; border-radius: 20px; }
.banners-carousel__track {
    display: flex; transition: transform .5s ease;
}
.banner-slide { min-width: 100%; padding: 0 4px; }
.banner-card {
    height: 220px; border-radius: 20px; display: flex; align-items: flex-end;
    padding: 32px; position: relative; overflow: hidden;
    background-size: cover; background-position: center;
}
.banner-card::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(59,0,0,.85), transparent 60%);
    border-radius: 20px;
}
.banner-card__content { position: relative; color: #fff; }
.banner-card__content h3 { font-size: 26px; font-weight: 700; margin-bottom: 4px; }
.banner-card__content p { font-size: 14px; opacity: .9; margin-bottom: 12px; }

/* Demo banner gradients */
.banner-card--promo1 { background: linear-gradient(135deg, #3B0000, #6b1010); }
.banner-card--promo2 { background: linear-gradient(135deg, #C5960C, #D4A017); }
.banner-card--promo2 .banner-card__content h3,
.banner-card--promo2 .banner-card__content p { color: #3B0000; }
.banner-card--promo3 { background: linear-gradient(135deg, #2D0000, #4A0000); }

.banners-carousel__btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 40px; height: 40px; border-radius: 50%;
    background: #fff; color: #3B0000; font-size: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,.15);
    display: flex; align-items: center; justify-content: center;
    z-index: 5; transition: all .2s;
}
.banners-carousel__btn:hover { background: #C5960C; color: #fff; }
.banners-carousel__btn--prev { left: 16px; }
.banners-carousel__btn--next { right: 16px; }
.banners-carousel__dots {
    display: flex; gap: 8px; justify-content: center;
    padding: 16px 0 4px;
}
.banners-carousel__dots .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #ccc; cursor: pointer; transition: all .3s;
}
.banners-carousel__dots .dot.active {
    background: #C5960C; width: 24px; border-radius: 4px;
}

/* ============================================================
   RESTAURANT CARDS
   ============================================================ */
.restaurants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.restaurant-card {
    background: #fff; border-radius: 16px; overflow: hidden;
    transition: all .25s; border: 1px solid #eee;
}
.restaurant-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,.1);
}
.restaurant-card__image {
    height: 160px; position: relative; overflow: hidden;
    background: #f0f0f0;
}
.restaurant-card__image img {
    width: 100%; height: 100%; object-fit: cover;
}
.restaurant-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;
}
.restaurant-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;
    letter-spacing: .5px;
}
.restaurant-card__body { padding: 14px 16px 16px; }
.restaurant-card__top {
    display: flex; justify-content: space-between; align-items: flex-start;
    margin-bottom: 4px;
}
.restaurant-card__name { font-size: 16px; font-weight: 700; color: #1a1a2e; }
.restaurant-card__rating {
    display: flex; align-items: center; gap: 4px;
    font-size: 13px; font-weight: 600; color: #C5960C;
    background: #fdf8eb; padding: 2px 8px; border-radius: 6px;
    white-space: nowrap;
}
.restaurant-card__rating i { font-size: 11px; }
.restaurant-card__cuisines {
    font-size: 13px; color: #888; margin-bottom: 10px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.restaurant-card__meta {
    display: flex; gap: 14px; font-size: 12px; color: #666;
}
.restaurant-card__meta span {
    display: flex; align-items: center; gap: 4px;
}
.restaurant-card__meta i { color: #C5960C; font-size: 12px; }

/* ============================================================
   CUISINES PILLS
   ============================================================ */
.cuisines-scroll {
    display: flex; gap: 12px; overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: #C5960C #f0f0f0;
}
.cuisines-scroll::-webkit-scrollbar { height: 4px; }
.cuisines-scroll::-webkit-scrollbar-thumb { background: #C5960C; border-radius: 4px; }
.cuisine-pill {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 20px; background: #fff; border-radius: 50px;
    font-size: 14px; font-weight: 500; color: #333;
    border: 1px solid #e8e8e8; white-space: nowrap;
    transition: all .25s; flex-shrink: 0;
}
.cuisine-pill i { color: #C5960C; font-size: 16px; }
.cuisine-pill__img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.cuisine-pill:hover {
    background: #3B0000; color: #fff; border-color: #3B0000;
}
.cuisine-pill:hover i { color: #C5960C; }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-section { background: #fff; }
.how-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}
.how-card {
    text-align: center; padding: 32px 20px;
    border-radius: 16px; transition: all .25s;
}
.how-card:hover { background: #fdf8eb; }
.how-card__icon {
    width: 72px; height: 72px; border-radius: 50%;
    background: linear-gradient(135deg, #3B0000, #4A0000);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px; color: #C5960C; font-size: 28px;
}
.how-card h3 { font-size: 18px; font-weight: 700; color: #1a1a2e; margin-bottom: 8px; }
.how-card p { font-size: 14px; color: #666; line-height: 1.5; }

/* ============================================================
   APP DOWNLOAD
   ============================================================ */
.app-section {
    background: linear-gradient(135deg, #3B0000 0%, #2D0000 100%);
    color: #fff;
}
.app-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 48px; align-items: center;
}
.app-content__title { font-size: 36px; font-weight: 800; margin-bottom: 16px; }
.app-content__text { font-size: 16px; opacity: .85; margin-bottom: 28px; line-height: 1.6; }
.app-content__badges { display: flex; gap: 12px; flex-wrap: wrap; }
.app-badge {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 16px; background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2); border-radius: 12px;
    color: #fff; transition: all .25s;
}
.app-badge:hover { background: rgba(255,255,255,.2); }
.app-badge i { font-size: 24px; }
.app-badge small { font-size: 10px; opacity: .8; display: block; }
.app-badge strong { font-size: 15px; }
.app-badge--large { padding: 14px 24px; }
.app-badge--large i { font-size: 28px; }
.app-image { display: flex; justify-content: center; }
.app-image__phone {
    max-height: 480px; width: auto; object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,.4));
    border-radius: 24px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer__top {
    background: #1a1a2e; color: #ccc; padding: 48px 0;
}
.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
    gap: 32px;
}
.footer__desc { font-size: 14px; margin: 12px 0 20px; line-height: 1.6; opacity: .8; }
.footer__social { display: flex; gap: 12px; }
.footer__social a {
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,.08); display: flex;
    align-items: center; justify-content: center;
    color: #fff; font-size: 14px; transition: all .2s;
}
.footer__social a:hover { background: #C5960C; }
.footer__heading { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 16px; }
.footer__links li { margin-bottom: 8px; }
.footer__links a { font-size: 13px; opacity: .7; transition: opacity .2s; }
.footer__links a:hover { opacity: 1; color: #C5960C; }
.footer__apps { display: flex; flex-direction: column; gap: 10px; }
.footer__bottom {
    background: #14142a; text-align: center; padding: 16px 0;
    font-size: 13px; color: #888;
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
    position: fixed; bottom: 24px; right: 24px;
    width: 48px; height: 48px; border-radius: 50%;
    background: #C5960C; color: #fff; font-size: 18px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 16px rgba(197,150,12,.4);
    opacity: 0; visibility: hidden; transform: translateY(20px);
    transition: all .3s; z-index: 50;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: #3B0000; }

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

/* ---------- TABLET (≤1024px) ---------- */
@media (max-width: 1024px) {
    .hero__title { font-size: 36px; }
    .hero__grid { gap: 24px; }
    .hero__image-placeholder { width: 300px; height: 300px; }
    .hero__image-placeholder > i { font-size: 80px; }
    .footer__grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
    .restaurants-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
    .how-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- MOBILE LANDSCAPE / SMALL TABLET (≤768px) ---------- */
@media (max-width: 768px) {
    .container { padding: 0 16px; }

    /* Top bar */
    .top-bar { font-size: 12px; padding: 6px 0; }
    .top-bar__text { font-size: 11px; }

    /* Header */
    .header__inner { height: 56px; }
    .header__location,
    .header__search,
    .header__actions .lang-btn { display: none; }
    .header__actions #loginBtn span { display: none; }
    .header__mobile-toggle { display: flex; }
    .header__logo-img { height: 42px; }
    .header__actions { gap: 8px; }
    .header__action-btn { padding: 6px 10px; font-size: 13px; }
    .cart-badge { width: 16px; height: 16px; font-size: 9px; top: -3px; right: -3px; }

    /* Hero */
    .hero { padding: 48px 0 40px; }
    .hero__grid { grid-template-columns: 1fr; text-align: center; }
    .hero__illustration { display: none; }
    .hero__title { font-size: 28px; }
    .hero__subtitle { font-size: 15px; margin-bottom: 24px; }
    .hero__search-box {
        flex-direction: column; border-radius: 14px;
        box-shadow: 0 4px 20px rgba(0,0,0,.2);
    }
    .hero__input-wrap { padding: 4px 14px; }
    .hero__input { padding: 14px 0; font-size: 14px; }
    .hero__btn {
        border-radius: 0 0 14px 14px; justify-content: center;
        padding: 14px 20px; font-size: 14px;
    }

    /* Sections */
    .section { padding: 32px 0; }
    .section__header { margin-bottom: 20px; }
    .section__title { font-size: 20px; }
    .section__link { font-size: 13px; }

    /* Categories */
    .categories-grid {
        grid-template-columns: repeat(4, 1fr); gap: 10px;
    }
    .category-card { padding: 14px 6px; border-radius: 12px; gap: 8px; }
    .category-card__icon { width: 48px; height: 48px; font-size: 18px; }
    .category-card__name { font-size: 12px; }

    /* Banners */
    .banner-card { height: 180px; padding: 24px; }
    .banner-card__content h3 { font-size: 20px; }
    .banner-card__content p { font-size: 13px; }
    .banners-carousel__btn { width: 32px; height: 32px; font-size: 12px; }
    .banners-carousel__btn--prev { left: 8px; }
    .banners-carousel__btn--next { right: 8px; }

    /* Restaurants */
    .restaurants-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .restaurant-card__image { height: 130px; }
    .restaurant-card__name { font-size: 14px; }
    .restaurant-card__cuisines { font-size: 12px; }
    .restaurant-card__meta { font-size: 11px; gap: 8px; }
    .restaurant-card__body { padding: 10px 12px 12px; }
    .restaurant-card__rating { font-size: 12px; padding: 2px 6px; }

    /* Cuisines */
    .cuisines-scroll { gap: 8px; }
    .cuisine-pill { padding: 8px 14px; font-size: 13px; }

    /* How it works */
    .how-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .how-card { padding: 24px 16px; }
    .how-card__icon { width: 56px; height: 56px; font-size: 22px; }
    .how-card h3 { font-size: 15px; }
    .how-card p { font-size: 13px; }

    /* App download */
    .app-section { padding: 40px 0; }
    .app-grid { grid-template-columns: 1fr; text-align: center; gap: 32px; }
    .app-content__title { font-size: 26px; }
    .app-content__text { font-size: 14px; }
    .app-content__badges { justify-content: center; }
    .app-image__phone { max-height: 360px; }

    /* Footer */
    .footer__top { padding: 32px 0; }
    .footer__grid { grid-template-columns: 1fr; gap: 24px; text-align: center; }
    .footer__social { justify-content: center; }
    .footer__apps { align-items: center; }
    .footer__logo-img { height: 50px; margin: 0 auto 4px; }
    .footer__bottom { font-size: 12px; }

    /* Back to top */
    .back-to-top { width: 40px; height: 40px; font-size: 15px; bottom: 16px; right: 16px; }
}

/* ---------- MOBILE PORTRAIT (≤480px) ---------- */
@media (max-width: 480px) {
    .container { padding: 0 12px; }

    /* Header */
    .header__inner { height: 50px; gap: 10px; }
    .header__logo-img { height: 36px; }

    /* Hero */
    .hero { padding: 36px 0 32px; }
    .hero__title { font-size: 22px; line-height: 1.2; }
    .hero__subtitle { font-size: 14px; margin-bottom: 20px; }

    /* Categories — 4 columns on small phones */
    .categories-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
    .category-card { padding: 12px 4px; gap: 6px; }
    .category-card__icon { width: 42px; height: 42px; font-size: 16px; }
    .category-card__name { font-size: 11px; }

    /* Banners */
    .banner-card { height: 150px; padding: 20px; }
    .banner-card__content h3 { font-size: 18px; }
    .banners-carousel__btn { display: none; }

    /* Restaurants — single column */
    .restaurants-grid { grid-template-columns: 1fr; gap: 14px; }
    .restaurant-card { display: flex; flex-direction: row; border-radius: 12px; }
    .restaurant-card__image {
        width: 110px; min-width: 110px; height: auto;
        min-height: 110px; border-radius: 12px 0 0 12px;
    }
    .restaurant-card__placeholder { font-size: 28px; }
    .restaurant-card__badge { font-size: 9px; padding: 2px 6px; top: 8px; left: 8px; }
    .restaurant-card__body { padding: 10px 12px; display: flex; flex-direction: column; justify-content: center; }
    .restaurant-card__meta { flex-wrap: wrap; }

    /* Cuisines */
    .cuisine-pill { padding: 6px 12px; font-size: 12px; }
    .cuisine-pill i { font-size: 14px; }

    /* How it works — single column */
    .how-grid { grid-template-columns: 1fr; gap: 12px; }
    .how-card { padding: 20px 16px; flex-direction: row; text-align: left; display: flex; align-items: center; gap: 16px; }
    .how-card__icon { margin: 0; flex-shrink: 0; width: 50px; height: 50px; font-size: 20px; }
    .how-card h3 { font-size: 14px; margin-bottom: 2px; }
    .how-card p { font-size: 12px; }

    /* App */
    .app-content__title { font-size: 22px; }
    .app-badge--large { padding: 10px 16px; }
    .app-badge--large i { font-size: 22px; }
    .app-badge strong { font-size: 13px; }
    .app-image__phone { max-height: 300px; }

    /* Footer */
    .footer__heading { font-size: 14px; margin-bottom: 12px; }
    .footer__links a { font-size: 12px; }
    .footer__logo-img { height: 44px; }
    .app-badge { padding: 8px 12px; }
    .app-badge i { font-size: 20px; }
    .app-badge strong { font-size: 13px; }
}

/* ---------- VERY SMALL (≤360px) ---------- */
@media (max-width: 360px) {
    .hero__title { font-size: 20px; }
    .hero__btn { padding: 12px 16px; font-size: 13px; }
    .categories-grid { grid-template-columns: repeat(3, 1fr); }
    .category-card__icon { width: 38px; height: 38px; font-size: 14px; }
    .category-card__name { font-size: 10px; }
    .restaurant-card__image { width: 90px; min-width: 90px; }
    .section__title { font-size: 18px; }
}
