/* =========================================================================
   Avci Restaurant — premium mobile-first menu
   ========================================================================= */

/* ---- System font: Ubuntu Arabic (Latin + Arabic + Kurdish in one family) ---- */
@font-face {
    font-family: 'Ubuntu Arabic';
    src: url('../fonts/alfont_com_Ubuntu-Arabic_R.ttf') format('truetype');
    font-weight: 100 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Ubuntu Arabic';
    src: url('../fonts/alfont_com_Ubuntu-Arabic_B.ttf') format('truetype');
    font-weight: 600 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary: #F4AE42;
    --primary-dark: #D18A1F;
    --primary-soft: #FCE4BD;
    --black: #111111;
    --white: #FFFFFF;
    --light-bg: #FFF8ED;

    --bg: var(--light-bg);
    --surface: #FFFFFF;
    --surface-2: #FFFDF8;
    --text: #1A1714;
    --text-soft: #6B6358;
    --text-faint: #9A9387;
    --border: #F0E6D6;
    --shadow-sm: 0 2px 8px rgba(60, 45, 20, .06);
    --shadow-md: 0 8px 24px rgba(60, 45, 20, .10);
    --shadow-lg: 0 16px 48px rgba(60, 45, 20, .16);
    --shadow-primary: 0 10px 30px rgba(244, 174, 66, .35);

    --radius-sm: 12px;
    --radius: 18px;
    --radius-lg: 26px;
    --radius-xl: 34px;

    --header-h: 60px;
    --nav-h: 68px;

    --font: 'Ubuntu Arabic', system-ui, -apple-system, sans-serif;
    --font-ar: 'Ubuntu Arabic', system-ui, sans-serif;

    --ease: cubic-bezier(.22, .61, .36, 1);
    --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

[data-theme="dark"] {
    --bg: #14110D;
    --surface: #1E1A14;
    --surface-2: #241F18;
    --text: #F6F1E8;
    --text-soft: #BBB1A1;
    --text-faint: #837A6C;
    --border: #2E2820;
    --light-bg: #14110D;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, .3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, .4);
    --shadow-lg: 0 18px 48px rgba(0, 0, 0, .55);
    --shadow-primary: 0 10px 30px rgba(244, 174, 66, .25);
}

/* ---- base ---- */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
    min-height: 100vh;
    overflow-x: hidden;
    padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom));
    transition: background .35s var(--ease), color .35s var(--ease);
}
[dir="rtl"] body { font-family: var(--font-ar); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: var(--primary); color: #1A1714; }

.container { width: 100%; max-width: 720px; margin-inline: auto; padding-inline: 18px; }

/* ---- header ---- */
.app-header {
    position: sticky; top: 0; z-index: 50;
    height: var(--header-h);
    background: color-mix(in srgb, var(--surface) 82%, transparent);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border-bottom: 1px solid var(--border);
    transition: box-shadow .3s var(--ease), background .35s var(--ease);
}
.app-header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner {
    max-width: 720px; margin-inline: auto; height: 100%;
    padding-inline: 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 38px; height: 38px; border-radius: 50%; box-shadow: var(--shadow-sm); }
.brand-name { font-weight: 800; font-size: 1.05rem; letter-spacing: -.01em; }

.header-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
    width: 40px; height: 40px; border-radius: 50%;
    display: grid; place-items: center; color: var(--text);
    background: color-mix(in srgb, var(--primary-soft) 40%, transparent);
    transition: transform .25s var(--ease-spring), background .25s var(--ease);
}
.icon-btn:active { transform: scale(.9); }
.icon-btn:hover { background: var(--primary-soft); }

/* theme icons */
.icon-btn .i-moon { display: none; }
[data-theme="dark"] .icon-btn .i-sun { display: none; }
[data-theme="dark"] .icon-btn .i-moon { display: block; }

/* lang switch */
.lang-switch { position: relative; }
.lang-current { width: auto; padding-inline: 12px; gap: 4px; font-weight: 700; font-size: .82rem; border-radius: 22px; }
.lang-menu {
    position: absolute; inset-inline-end: 0; top: calc(100% + 8px);
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow-lg);
    min-width: 150px; padding: 6px; opacity: 0; visibility: hidden;
    transform: translateY(-8px) scale(.96); transform-origin: top;
    transition: all .22s var(--ease); z-index: 60;
}
.lang-switch.open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.lang-menu a {
    display: block; padding: 11px 14px; border-radius: 12px; font-weight: 600; font-size: .95rem;
    transition: background .18s var(--ease);
}
.lang-menu a:hover { background: var(--surface-2); }
.lang-menu a.active { background: var(--primary); color: #1A1714; }

/* =========================================================================
   HOME / HERO
   ========================================================================= */
.hero {
    position: relative; overflow: hidden;
    padding: 38px 0 46px;
    text-align: center;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.blob {
    position: absolute; border-radius: 50%; filter: blur(48px); opacity: .55;
    animation: float 9s var(--ease) infinite alternate;
}
.blob-1 { width: 260px; height: 260px; background: var(--primary); top: -60px; inset-inline-start: -50px; }
.blob-2 { width: 200px; height: 200px; background: var(--primary-dark); bottom: -40px; inset-inline-end: -30px; animation-delay: -3s; }
.blob-3 { width: 150px; height: 150px; background: #FFD79A; top: 40%; inset-inline-end: 30%; animation-delay: -5s; opacity: .4; }
.food-emoji { position: absolute; font-size: 2rem; opacity: .18; color: var(--primary-dark); animation: float 7s var(--ease) infinite alternate; }

@keyframes float {
    from { transform: translateY(0) translateX(0) rotate(0); }
    to   { transform: translateY(-22px) translateX(10px) rotate(8deg); }
}

.hero-content { position: relative; z-index: 1; }
.hero-logo {
    width: 118px; height: 118px; border-radius: 50%; margin: 0 auto 18px;
    box-shadow: var(--shadow-lg); border: 4px solid var(--surface);
    animation: pop .7s var(--ease-spring) both;
}
.hero h1 {
    font-size: clamp(1.9rem, 7vw, 2.6rem); font-weight: 900; letter-spacing: -.02em;
    line-height: 1.1; margin-bottom: 10px;
}
.hero h1 .accent { color: var(--primary-dark); }
.hero-sub { color: var(--text-soft); max-width: 30ch; margin: 0 auto 26px; font-size: 1.02rem; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    font-weight: 800; font-size: 1.02rem; padding: 15px 30px; border-radius: 50px;
    transition: transform .25s var(--ease-spring), box-shadow .3s var(--ease), filter .2s;
}
.btn:active { transform: scale(.95); }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #1A1714; box-shadow: var(--shadow-primary); }
.btn-primary:hover { filter: brightness(1.04); box-shadow: 0 14px 38px rgba(244,174,66,.45); }
.btn-ghost { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.btn-block { width: 100%; }

/* section heading */
.section { padding: 28px 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.section-head h2 { font-size: 1.28rem; font-weight: 800; letter-spacing: -.01em; }
.section-head .see-all { font-size: .88rem; font-weight: 700; color: var(--primary-dark); }
.eyebrow { color: var(--primary-dark); font-weight: 800; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; display: block; margin-bottom: 3px; }

/* =========================================================================
   CATEGORY CHIPS (horizontal scroll)
   ========================================================================= */
.cat-scroll {
    display: flex; gap: 10px; overflow-x: auto; padding: 4px 18px 14px;
    scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.cat-scroll::-webkit-scrollbar { display: none; }
.chip {
    flex: 0 0 auto; scroll-snap-align: start;
    display: inline-flex; align-items: center; gap: 7px;
    padding: 10px 16px; border-radius: 50px; font-weight: 700; font-size: .92rem;
    background: var(--surface); border: 1.5px solid var(--border); color: var(--text);
    box-shadow: var(--shadow-sm);
    transition: transform .25s var(--ease-spring), background .25s var(--ease), color .25s, border-color .25s;
}
.chip .emoji { font-size: 1.05rem; }
.chip:active { transform: scale(.93); }
.chip.active { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #1A1714; border-color: transparent; box-shadow: var(--shadow-primary); }

/* category cards (home tiles) */
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.cat-tile {
    position: relative; border-radius: var(--radius-lg); overflow: hidden;
    background: linear-gradient(135deg, var(--surface), var(--surface-2));
    border: 1px solid var(--border); padding: 18px; min-height: 96px;
    box-shadow: var(--shadow-sm); display: flex; flex-direction: column; justify-content: space-between;
    transition: transform .3s var(--ease-spring), box-shadow .3s var(--ease);
}
.cat-tile:active { transform: scale(.97); }
.cat-tile:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.cat-tile .ct-emoji { font-size: 1.7rem; color: var(--primary-dark); display: inline-flex; }
.cat-tile .ct-name { font-weight: 800; font-size: 1.02rem; }
.cat-tile .ct-count { font-size: .8rem; color: var(--text-faint); }

/* =========================================================================
   FOOD CARDS
   ========================================================================= */
.food-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 359px) { .food-grid { grid-template-columns: 1fr; } }

.food-card {
    position: relative; background: var(--surface); border-radius: var(--radius-lg);
    overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border);
    transition: transform .3s var(--ease-spring), box-shadow .3s var(--ease);
    display: flex; flex-direction: column;
}
.food-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.food-card:active { transform: scale(.98); }

.food-media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--surface-2); }
.food-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s var(--ease); }
.food-card:hover .food-media img { transform: scale(1.07); }

.fav-btn {
    position: absolute; top: 9px; inset-inline-end: 9px; z-index: 2;
    width: 36px; height: 36px; border-radius: 50%;
    background: color-mix(in srgb, var(--surface) 75%, transparent);
    backdrop-filter: blur(8px); display: grid; place-items: center; color: var(--text-soft);
    box-shadow: var(--shadow-sm); transition: transform .25s var(--ease-spring), color .25s;
}
.fav-btn svg { width: 19px; height: 19px; }
.fav-btn:active { transform: scale(.82); }
.fav-btn.is-fav { color: #e74c6b; }
.fav-btn.is-fav svg path { fill: #e74c6b; }
@keyframes heartpop { 0%{transform:scale(1)} 40%{transform:scale(1.35)} 100%{transform:scale(1)} }
.fav-btn.pop { animation: heartpop .4s var(--ease-spring); }

.cat-badge {
    position: absolute; top: 9px; inset-inline-start: 9px; z-index: 2;
    font-size: .68rem; font-weight: 700; padding: 4px 9px; border-radius: 50px;
    background: color-mix(in srgb, var(--surface) 80%, transparent); backdrop-filter: blur(8px);
    color: var(--text-soft); box-shadow: var(--shadow-sm);
}

.food-body { padding: 12px 13px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.food-name { font-weight: 800; font-size: 1rem; line-height: 1.25; letter-spacing: -.01em;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; }
.food-desc { font-size: .82rem; color: var(--text-faint); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.food-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.food-price { font-weight: 900; font-size: 1.12rem; color: var(--primary-dark); white-space: nowrap; }
.food-price .cur { font-size: .72rem; font-weight: 700; color: var(--text-faint); }
.mini-add {
    width: 34px; height: 34px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #1A1714;
    display: grid; place-items: center; box-shadow: var(--shadow-primary);
    transition: transform .25s var(--ease-spring);
}
.mini-add:active { transform: scale(.85) rotate(90deg); }

/* card reveal animation */
.reveal { opacity: 0; transform: translateY(24px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .55s var(--ease), transform .6s var(--ease); }

/* =========================================================================
   SEARCH
   ========================================================================= */
.search-wrap { position: relative; margin-bottom: 6px; }
.search-box {
    display: flex; align-items: center; gap: 10px; background: var(--surface);
    border: 1.5px solid var(--border); border-radius: 50px; padding: 13px 18px;
    box-shadow: var(--shadow-sm); transition: border-color .25s var(--ease), box-shadow .25s;
}
.search-box:focus-within { border-color: var(--primary); box-shadow: var(--shadow-primary); }
.search-box svg { color: var(--text-faint); flex: 0 0 auto; }
.search-box input { flex: 1; border: none; background: none; outline: none; font-size: 1rem; color: var(--text); font-family: inherit; }
.search-box input::placeholder { color: var(--text-faint); }
.search-clear { color: var(--text-faint); display: none; }
.search-box.has-value .search-clear { display: block; }

/* =========================================================================
   FOOD DETAILS
   ========================================================================= */
.detail-hero { position: relative; }
.detail-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--surface-2); }
.detail-topbar {
    position: absolute; top: 0; inset-inline: 0; padding: 14px 16px;
    display: flex; justify-content: space-between; z-index: 3;
    padding-top: calc(env(safe-area-inset-top) + 12px);
}
.round-btn {
    width: 42px; height: 42px; border-radius: 50%;
    background: color-mix(in srgb, var(--surface) 78%, transparent); backdrop-filter: blur(10px);
    display: grid; place-items: center; color: var(--text); box-shadow: var(--shadow-md);
    transition: transform .25s var(--ease-spring);
}
.round-btn:active { transform: scale(.88); }
[dir="rtl"] .round-btn.back svg { transform: scaleX(-1); }

.detail-sheet {
    position: relative; margin-top: -28px; z-index: 2;
    background: var(--bg); border-radius: 28px 28px 0 0; padding: 22px 18px 30px;
    box-shadow: 0 -10px 30px rgba(0,0,0,.06);
}
.detail-sheet::before { content: ""; position: absolute; top: 9px; inset-inline: 0; margin: auto; width: 44px; height: 5px; border-radius: 5px; background: var(--border); }
.detail-cat { color: var(--primary-dark); font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; }
.detail-name { font-size: 1.6rem; font-weight: 900; letter-spacing: -.02em; margin: 4px 0 6px; line-height: 1.15; }
.detail-price { font-size: 1.7rem; font-weight: 900; color: var(--primary-dark); margin-bottom: 4px; }
.detail-price .cur { font-size: .9rem; color: var(--text-faint); font-weight: 700; }

.meta-row { display: flex; gap: 10px; margin: 18px 0; }
.meta-card { flex: 1; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 10px; text-align: center; box-shadow: var(--shadow-sm); }
.meta-card .mi { font-size: 1.25rem; color: var(--primary-dark); }
.meta-card .mv { font-weight: 800; font-size: 1.05rem; margin-top: 4px; }
.meta-card .ml { font-size: .72rem; color: var(--text-faint); }

.detail-section { margin: 20px 0; }
.detail-section h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 8px; }
.detail-section p { color: var(--text-soft); }

.detail-actions { display: flex; gap: 10px; margin-top: 24px; }
.detail-actions .btn { flex: 1; }

.sticky-cta {
    position: fixed; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom)); inset-inline: 0;
    z-index: 40; padding: 12px 18px calc(12px); pointer-events: none;
}
.sticky-cta .inner {
    max-width: 720px; margin-inline: auto; pointer-events: auto;
}

/* =========================================================================
   EMPTY / STATES
   ========================================================================= */
.empty-state { text-align: center; padding: 56px 24px; }
.empty-state .es-emoji { font-size: 3.1rem; opacity: .55; color: var(--primary-dark); }
.empty-state h3 { font-size: 1.25rem; font-weight: 800; margin: 14px 0 6px; }
.empty-state p { color: var(--text-faint); max-width: 30ch; margin-inline: auto; }

.results-count { color: var(--text-faint); font-size: .88rem; margin-bottom: 14px; }

/* skeleton */
.skel { background: linear-gradient(100deg, var(--surface-2) 30%, var(--border) 50%, var(--surface-2) 70%); background-size: 200% 100%; animation: shimmer 1.3s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* =========================================================================
   FLOATING ACTION BUTTONS + BOTTOM NAV
   ========================================================================= */
.fab-stack {
    position: fixed; inset-inline-end: 16px;
    bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 16px);
    z-index: 45; display: flex; flex-direction: column; gap: 12px;
}
.fab { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: var(--shadow-lg);
    transition: transform .3s var(--ease-spring); }
.fab:active { transform: scale(.88); }
.fab:hover { transform: translateY(-3px); }
.fab-wa { background: #25D366; }
.fab-call { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #1A1714; }

.bottom-nav {
    position: fixed; bottom: 0; inset-inline: 0; z-index: 48;
    height: calc(var(--nav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%);
    border-top: 1px solid var(--border);
    display: flex; align-items: stretch; max-width: 720px; margin-inline: auto;
}
.nav-item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--text-faint); font-size: .68rem; font-weight: 700; transition: color .25s var(--ease); }
.nav-item .nav-ico svg { width: 24px; height: 24px; transition: transform .3s var(--ease-spring); }
.nav-item.active { color: var(--primary-dark); }
.nav-item.active .nav-ico svg { transform: translateY(-2px) scale(1.08); }
.nav-item:active .nav-ico svg { transform: scale(.85); }

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer { text-align: center; padding: 36px 24px 30px; border-top: 1px solid var(--border); margin-top: 20px; }
.footer-logo { width: 54px; height: 54px; border-radius: 50%; margin: 0 auto 10px; box-shadow: var(--shadow-sm); }
.footer-name { font-weight: 800; font-size: 1.1rem; }
.footer-tag { color: var(--text-faint); font-size: .88rem; margin-bottom: 14px; }
.footer-links { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
.footer-links a { font-weight: 700; font-size: .9rem; color: var(--primary-dark); }
.footer-copy { color: var(--text-faint); font-size: .78rem; }

/* =========================================================================
   HOME SLIDER
   ========================================================================= */
.slider-section { padding-top: 6px; }
.slider { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); background: var(--surface-2); }
.slider-track { display: flex; transition: transform .5s var(--ease); will-change: transform; }
.slide { flex: 0 0 100%; position: relative; }
.slide a { display: block; }
.slide img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: var(--surface-2); }
.slide-cap {
    position: absolute; inset-inline: 0; bottom: 0; padding: 28px 18px 14px;
    color: #fff; font-weight: 800; font-size: 1.05rem;
    background: linear-gradient(to top, rgba(0,0,0,.65), transparent);
}
.slider-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 40px; height: 40px; border-radius: 50%; z-index: 2;
    background: color-mix(in srgb, var(--surface) 80%, transparent); backdrop-filter: blur(8px);
    color: var(--text); display: grid; place-items: center; box-shadow: var(--shadow-md);
    transition: transform .2s var(--ease-spring), background .2s;
}
.slider-arrow:active { transform: translateY(-50%) scale(.85); }
.slider-arrow.prev { inset-inline-start: 12px; }
.slider-arrow.next { inset-inline-end: 12px; }
[dir="rtl"] .slider-arrow svg { transform: scaleX(-1); }
.slider-dots { position: absolute; inset-inline: 0; bottom: 10px; display: flex; gap: 7px; justify-content: center; z-index: 2; }
.slider-dots button { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.55); transition: all .25s var(--ease); }
.slider-dots button.active { width: 22px; border-radius: 5px; background: var(--primary); }

/* =========================================================================
   SOCIAL BUTTONS (home + footer)
   ========================================================================= */
.social-section { padding: 10px 0 4px; text-align: center; }
.social-title { font-weight: 800; font-size: 1.05rem; margin-bottom: 14px; }
.social-row-public, .footer-social { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.footer-social { margin: 4px 0 16px; }
.social-btn {
    width: 48px; height: 48px; border-radius: 50%;
    display: grid; place-items: center; font-size: 1.25rem;
    color: #fff; background: var(--sc, var(--primary));
    box-shadow: var(--shadow-sm);
    transition: transform .25s var(--ease-spring), box-shadow .25s var(--ease), filter .2s;
}
.social-btn:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); filter: brightness(1.05); }
.social-btn:active { transform: scale(.9); }
/* Snapchat is yellow → needs dark icon for contrast */
.social-btn[style*="#FFFC00"] { color: #111; }

/* ArtCode developer credit (used on contact page) */
.artcode-credit {
    display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
    margin-top: 22px; padding: 14px 20px; border-radius: var(--radius-lg);
    background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
    text-decoration: none; color: var(--text-soft);
    transition: transform .25s var(--ease-spring), box-shadow .25s var(--ease), border-color .25s;
}
.artcode-credit:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.artcode-credit:active { transform: scale(.98); }
.artcode-credit .ac-by { font-size: .85rem; font-weight: 700; }
.artcode-credit .ac-logo { height: 28px; width: auto; display: block; }
.artcode-credit .ac-cta { width: 100%; text-align: center; font-size: .78rem; color: var(--primary-dark); font-weight: 700; }
.artcode-credit .ac-cta i { font-size: .7rem; margin-inline-start: 3px; }
[data-theme="dark"] .artcode-credit .ac-logo { filter: brightness(1.05); }

/* =========================================================================
   TOAST + QR + CONTACT
   ========================================================================= */
.toast {
    position: fixed; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 80px); inset-inline: 0; margin-inline: auto;
    width: max-content; max-width: 86%; z-index: 100;
    background: var(--black); color: #fff; padding: 12px 22px; border-radius: 50px; font-weight: 700; font-size: .92rem;
    box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(20px); pointer-events: none;
    transition: opacity .3s var(--ease), transform .3s var(--ease-spring);
}
[data-theme="dark"] .toast { background: var(--primary); color: #1A1714; }
.toast.show { opacity: 1; transform: translateY(0); }

.qr-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; text-align: center; box-shadow: var(--shadow-sm); }
.qr-card img, .qr-card canvas { width: 180px; height: 180px; margin: 0 auto 12px; border-radius: var(--radius); background:#fff; padding:8px; }
.qr-card p { color: var(--text-soft); font-size: .9rem; }

.contact-grid { display: grid; gap: 12px; }
.contact-card { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; box-shadow: var(--shadow-sm);
    transition: transform .25s var(--ease-spring), box-shadow .25s; }
.contact-card:active { transform: scale(.98); }
.contact-card:hover { box-shadow: var(--shadow-md); }
.contact-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-dark); flex: 0 0 auto; }
.contact-ico svg { width: 24px; height: 24px; }
.contact-card .cc-label { font-size: .78rem; color: var(--text-faint); }
.contact-card .cc-value { font-weight: 700; }
.map-embed { width: 100%; aspect-ratio: 16/10; border: 0; border-radius: var(--radius-lg); margin-top: 6px; box-shadow: var(--shadow-sm); }

/* page transition */
@keyframes pop { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: scale(1); } }
.page-enter { animation: pageIn .45s var(--ease) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
    .reveal { opacity: 1; transform: none; }
}

/* tablet+ */
@media (min-width: 768px) {
    .food-grid { grid-template-columns: repeat(3, 1fr); }
    .cat-grid { grid-template-columns: repeat(3, 1fr); }
    .hero { padding: 56px 0 60px; }
}
@media (min-width: 1024px) {
    .container { max-width: 920px; }
    .header-inner, .bottom-nav { max-width: 920px; }
    .food-grid { grid-template-columns: repeat(4, 1fr); }
}
