/* styles.css - Classic Cafe & Burger Zone.
   Simple, commented, vanilla CSS. No web fonts, no external files. */
 :root {
   /* Brand palette - max 3 colours per theme (base, one red, one gold). */
   --bg: #120b0a;            /* near-black charcoal (dark base) */
   --surface: #1b1413;       /* charcoal panel */
   --text: #f5efe8;          /* warm off-white text */
   --muted: #b9a694;         /* soft warm grey */
   --red: #b33a2e;           /* ember red (active chip, small accents) */
   --red-glow: rgba(179, 58, 46, 0.35);
   --gold: #d4a33c;          /* golden yellow (prices) */
   --gold-weak: rgba(212, 163, 60, 0.35);
   --glass: rgba(27, 20, 19, 0.55);
   --border: rgba(245, 239, 232, 0.08);
   --shadow: 0 8px 24px rgba(0,0,0,0.45);
   --radius: 14px;
   --transition: color 0.4s ease, background-color 0.4s ease, border-color 0.4s ease;
 }
 
 .light {
   --bg: #faf6f0;            /* warm cream base */
   --surface: #ffffff;
   --text: #2e221c;          /* charcoal text */
   --muted: #6e5e54;
   --red: #a03328;
   --red-glow: rgba(160, 51, 40, 0.18);
   --gold: #b9831d;
   --gold-weak: rgba(185, 131, 29, 0.25);
   --glass: rgba(255, 255, 255, 0.7);
   --border: rgba(46, 34, 28, 0.09);
   --shadow: 0 8px 24px rgba(0,0,0,0.08);
 }
 
 /* Performance mode: cheap Android / save-data / reduced motion */
 .perf-mode, .perf-mode * {
   animation: none !important;
   transition: none !important;
   backdrop-filter: none !important;
   transform: none !important;
 }
 
 * { box-sizing: border-box; margin: 0; padding: 0; }
 html { scroll-behavior: smooth; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; line-height: 1.5; }
 body { background: var(--bg); color: var(--text); font-size: 16px; overflow-x: hidden; }
 
 a { color: inherit; text-decoration: none; }
 
 /* ---------- Skip link ---------- */
 .skip-link {
   position: absolute; left: -9999px; top: auto; width: 1px; height: 1px;
   overflow: hidden; z-index: 9999;
 }
 .skip-link:focus { position: static; width: auto; height: auto; padding: 10px 16px; background: var(--gold); color: var(--bg); font-weight: 700; }
 
 .visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
 
 /* ---------- Layered background: gradient mesh + film grain + vignette ---------- */
 body::before {
   content: '';
   position: fixed; inset: 0; z-index: -2;
   background:
     radial-gradient(600px 600px at 10% 10%, var(--red-glow), transparent 40%),
     radial-gradient(500px 500px at 90% 80%, var(--gold-weak), transparent 40%);
   background-attachment: fixed;
 }
 .light body::before {
   background:
     radial-gradient(600px 600px at 10% 10%, rgba(160,51,40,0.10), transparent 40%),
     radial-gradient(500px 500px at 90% 80%, rgba(185,131,29,0.12), transparent 40%);
 }
 
 /* Film grain (inline SVG) */
 body::after {
   content: '';
   position: fixed; inset: 0; z-index: -1;
   background: url('data:image/svg+xml,%3Csvg viewBox=%220 0 200 200%22 xmlns=%22http://www.w3.org/2000/svg%22%3E%3Cfilter id=%22n%22%3E%3CfeTurbulence type=%22fractalNoise%22 baseFrequency=%220.65%22 numOctaves=%223%22 stitchTiles=%22stitch%22/%3E%3C/filter%3E%3Crect width=%22100%25%22 height=%22100%25%22 filter=%22url(%23n)%22 opacity=%220.12%22/%3E%3C/svg%3E');
   pointer-events: none;
   opacity: 0.5;
 }
 .perf-mode body::after { display: none; }
 
 /* Vignette */
 .vignette {
   position: fixed; inset: 0; z-index: 50;
   background: radial-gradient(circle, transparent 40%, rgba(0,0,0,0.35) 100%);
   pointer-events: none;
   opacity: 0.0;
   transition: opacity 0.4s ease;
 }
 .sheet-open .vignette { opacity: 1; }
 .perf-mode .vignette { display: none; }
 
 /* ---------- Entrance animation ---------- */
 @keyframes fadeInUp {
   from { opacity: 0; transform: translateY(18px); }
   to   { opacity: 1; transform: translateY(0); }
 }
 .js-ready .hero .hero-brand,
 .js-ready .hero h1,
 .js-ready .hero .tagline,
 .js-ready .hero .hero-btn,
 .js-ready .hero .hero-city {
   opacity: 0;
   animation: fadeInUp 0.7s ease forwards;
 }
 .js-ready .hero h1 { animation-delay: 0.1s; }
 .js-ready .hero .tagline { animation-delay: 0.2s; }
 .js-ready .hero .hero-city { animation-delay: 0.3s; }
 .js-ready .hero .hero-btn { animation-delay: 0.4s; }
 .perf-mode .js-ready .hero * { animation: none; opacity: 1; }
 
 /* ---------- Header ---------- */
 .header {
   position: sticky; top: 0; z-index: 100;
   border-bottom: 1px solid var(--border);
   background: var(--glass);
   backdrop-filter: saturate(160%) blur(16px);
   -webkit-backdrop-filter: saturate(160%) blur(16px);
   transition: transform 0.2s ease, box-shadow 0.2s ease;
 }
 .perf-mode .header { backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 1px solid var(--border); }
 .header.scrolled { box-shadow: var(--shadow); }
 
 .header-inner {
   max-width: 960px; margin: 0 auto; padding: 10px 18px;
   display: flex; align-items: center; justify-content: space-between; gap: 16px;
 }
 
 .brand { display: flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 800; letter-spacing: -0.5px; font-family: Georgia, 'Times New Roman', Times, serif; }
 .brand img { width: 34px; height: 34px; display: block; border-radius: 8px; background: var(--border); }
 .brand img + * { display: none; }
 
 .theme-toggle {
   background: var(--surface); border: 1px solid var(--border); color: var(--text);
   width: 44px; height: 44px; border-radius: 12px; cursor: pointer; font-size: 18px; display: grid; place-items: center;
 }
 .theme-toggle:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
 
 /* ---------- Hero ---------- */
 .hero {
   padding: 72px 18px 60px;
   text-align: center;
   background: radial-gradient(circle at 50% 30%, rgba(212,163,60,0.10), transparent 55%);
 }
 .light .hero { background: radial-gradient(circle at 50% 30%, rgba(185,131,29,0.08), transparent 55%); }
 
 .hero-inner { max-width: 720px; margin: 0 auto; }
 .hero-brand { font-size: 24px; font-weight: 800; font-family: Georgia, 'Times New Roman', Times, serif; letter-spacing: -0.5px; display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px; }
 .hero-brand img { width: 40px; height: 40px; border-radius: 10px; background: var(--border); box-shadow: var(--shadow); }
 .hero-brand img + * { display: none; }
 .hero h1 { font-family: Georgia, 'Times New Roman', Times, serif; font-size: clamp(32px, 8vw, 52px); line-height: 1.15; margin-bottom: 10px; }
 .tagline { color: var(--muted); font-size: 18px; margin-bottom: 8px; letter-spacing: 0.05em; }
 .hero-city { color: var(--muted); font-size: 15px; margin-bottom: 22px; }
 .hero-btn {
   display: inline-block; background: var(--gold); color: var(--bg); padding: 14px 26px; border-radius: 12px; font-weight: 700; font-size: 16px; box-shadow: 0 6px 16px var(--gold-weak);
 }
 .hero-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
 .hero-btn:active { transform: scale(0.97); }
 .perf-mode .hero-btn { box-shadow: none; }
 
 /* ---------- Search ---------- */
 .search-bar { padding: 16px 18px 10px; background: var(--bg); }
 .search-inner { max-width: 960px; margin: 0 auto; position: relative; }
 .search-bar input {
   width: 100%; padding: 12px 16px 12px 46px; border: 1px solid var(--border); border-radius: 12px;
   background: var(--surface); color: var(--text); font-size: 16px;
 }
 .search-bar input:focus { outline: 3px solid var(--gold); border-color: transparent; }
 .search-bar input::placeholder { color: var(--muted); opacity: 0.8; }
 .search-clear {
   position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
   background: none; border: none; color: var(--muted); font-size: 22px; cursor: pointer; padding: 4px;
 }
 .search-clear:focus-visible { outline: 3px solid var(--gold); border-radius: 4px; outline-offset: 2px; }
 .search-count { max-width: 960px; margin: 6px auto 0; font-size: 14px; color: var(--muted); }
 
 /* ---------- Categories / chips ---------- */
 .categories { padding: 8px 18px 2px; background: var(--bg); }
 .chip-wrap {
   display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
   max-width: 960px; margin: 0 auto; padding-bottom: 10px;
   scroll-snap-type: x mandatory;
   position: relative;
 }
 .chip-wrap::-webkit-scrollbar { display: none; }
 .chip-scroll-hint { max-width: 960px; margin: 0 auto 16px; font-size: 12px; color: var(--muted); text-align: right; letter-spacing: 0.04em; }
 .perf-mode .chip-scroll-hint { display: none; }
 
 .chip {
   white-space: nowrap; padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px;
   background: var(--surface); color: var(--text); font-size: 14px; cursor: pointer; scroll-snap-align: start;
 }
 .chip:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
 .chip.chip-active { color: var(--red); border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }
 
 .chip-underline {
   position: absolute; bottom: 10px; height: 4px; background: var(--gold); border-radius: 2px;
   pointer-events: none; transform-origin: left; transition: transform 0.3s cubic-bezier(0.25,1,0.5,1), width 0.3s ease;
 }
 .perf-mode .chip-underline { display: none; }
 
 /* ---------- Menu layout ---------- */
 .menu { padding: 0 18px 40px; max-width: 960px; margin: 0 auto; }
 .menu-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
 
 @media (min-width: 600px) { .menu-grid { grid-template-columns: repeat(3, 1fr); } }
 @media (min-width: 900px) { .menu-grid { grid-template-columns: repeat(4, 1fr); } }
 
 .cat-heading {
   grid-column: 1 / -1; font-family: Georgia, 'Times New Roman', Times, serif; font-size: 20px; color: var(--muted);
   padding: 24px 0 10px; border-bottom: 1px solid var(--border); margin-bottom: 10px;
 }
 .cat-heading-extras { border-top: 1px solid var(--border); padding-top: 16px; }
 
 .empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 30px 0; }
 
 /* ---------- Cards ---------- */
 .menu-card {
   position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
   overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow);
 }
 .menu-card.hero { grid-column: 1 / -1; height: 240px; flex-direction: row; }
 .perf-mode .menu-card { box-shadow: 0 2px 6px rgba(0,0,0,0.25); }
 
 .card-media { position: relative; width: 100%; height: 100%; overflow: hidden; background: #221a18; }
 .light .card-media { background: #efe5d8; }
 .menu-card.hero .card-media { height: 100%; aspect-ratio: 16 / 9; width: 44%; min-width: 160px; }
 .menu-card:not(.hero) .card-media { height: 200px; aspect-ratio: 4 / 3; }
 .card-img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity 0.3s ease; }
 .card-img.loaded { opacity: 1; }
 .perf-mode .card-img { transition: none; }
 
 /* Soft skeleton placeholder */
 .card-media::before {
   content: ''; position: absolute; inset: 0;
   background: linear-gradient(90px, #1f1614 0%, #2a1e1b 50%, #1f1614 100%);
   background-size: 200% 100%;
   animation: shimmer 1.6s infinite;
 }
 .light .card-media::before { background: linear-gradient(90px, #e8dcc9 0%, #f3ead9 50%, #e8dcc9 100%); background-size: 200% 100%; }
 @keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
 .perf-mode .card-media::before { animation: none; background: #e2d6c7; }
 .light .perf-mode .card-media::before { background: #e2d6c7; }
 
 .card-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
 .menu-card.hero .card-body { padding: 16px 18px; }
 
 .card-header { display: flex; align-items: baseline; gap: 8px; }
 .card-name {
   font-family: Georgia, 'Times New Roman', Times, serif; font-size: 17px; color: var(--text);
   font-weight: 700; line-height: 1.25; margin: 0; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
 }
 .menu-card.hero .card-name { font-size: 20px; }
 .name-am {
   font-family: "Noto Sans Ethiopic", "Nyala", system-ui, sans-serif; font-size: 13px; color: var(--muted);
   line-height: 1.5; margin: 2px 0 0; overflow: hidden; text-overflow: ellipsis;
 }
 .menu-card.hero .name-am { font-size: 14px; }
 
 .featured-tag { font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red); border: 1px solid var(--red); padding: 1px 6px; border-radius: 6px; white-space: nowrap; }
 .menu-card.hero .featured-tag { color: var(--gold); border-color: var(--gold); }
 .hero-tag { font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--gold); padding: 1px 6px; border-radius: 6px; white-space: nowrap; }
 .menu-card.hero .hero-tag { color: var(--red); border-color: var(--red); }
 
 .card-price {
   font-size: 16px; font-weight: 800; color: var(--gold); margin-top: auto; white-space: nowrap;
 }
 .menu-card.hero .card-price { font-size: 18px; }
 
 .card-arrow { color: var(--muted); font-size: 16px; font-weight: 700; align-self: flex-end; margin-top: 6px; opacity: 0.85; }
 .perf-mode .card-arrow { transition: none; }
 
 /* ---------- Text rows (no image) ---------- */
 .menu-row {
   background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px;
   display: flex; flex-direction: column; gap: 4px; box-shadow: var(--shadow);
 }
 .perf-mode .menu-row { box-shadow: 0 2px 6px rgba(0,0,0,0.25); }
 .row-name { display: flex; flex-direction: column; gap: 3px; }
 .row-name .card-name { font-family: Georgia, 'Times New Roman', Times, serif; font-size: 16px; font-weight: 700; color: var(--text); margin: 0; }
 .row-name .name-am { font-family: "Noto Sans Ethiopic", "Nyala", system-ui, sans-serif; font-size: 13px; color: var(--muted); line-height: 1.45; }
 .menu-row .card-price { font-size: 16px; font-weight: 800; color: var(--gold); align-self: flex-end; margin-top: 4px; white-space: nowrap; }
 .menu-row .card-arrow { color: var(--muted); font-size: 16px; font-weight: 700; align-self: flex-end; margin-top: 4px; }
 
 /* ---------- Add-ons (Extras / Take Away) ---------- */
 .addon-list { display: flex; flex-direction: column; gap: 6px; }
 .addon-item {
   background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
   padding: 8px 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px;
   box-shadow: var(--shadow);
 }
 .perf-mode .addon-item { box-shadow: 0 2px 6px rgba(0,0,0,0.25); }
 .addon-name { font-size: 15px; color: var(--text); }
 .addon-name .name-am { display: block; font-size: 12px; color: var(--muted); font-family: "Noto Sans Ethiopic", "Nyala", system-ui, sans-serif; margin-top: 2px; }
 .addon-price { font-size: 15px; font-weight: 800; color: var(--gold); white-space: nowrap; }
 
 /* ---------- Press feedback ---------- */
 .pressed {
   transform: scale(0.98);
   box-shadow: 0 12px 32px rgba(0,0,0,0.55);
   transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
 }
 .perf-mode .pressed { transform: none; box-shadow: none; transition: none; }
 .light .pressed { box-shadow: 0 12px 32px rgba(0,0,0,0.12); }
 
 /* ---------- Reveal on scroll ---------- */
 .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
 .perf-mode .reveal { opacity: 1; transform: none; transition: none; }
 .reveal.revealed { opacity: 1; transform: translateY(0); }
 .perf-mode .reveal.revealed { opacity: 1; }
 
 /* ---------- Bottom sheet ---------- */
 .bottom-sheet {
   position: fixed; inset: 0; z-index: 1000; background: var(--bg);
   display: flex; flex-direction: column; transform: translateY(100%); transition: transform 0.35s cubic-bezier(0.2,0,0,1);
 }
 .perf-mode .bottom-sheet { transition: none; }
 .sheet-open .bottom-sheet { transform: translateY(0); }
 .bottom-sheet[hidden] { display: none; }
 
 .bottom-sheet-close {
   position: absolute; top: 12px; right: 14px; z-index: 5;
   background: var(--surface); border: 1px solid var(--border); color: var(--text);
   width: 44px; height: 44px; border-radius: 50%; font-size: 24px; cursor: pointer; line-height: 1;
 }
 .bottom-sheet-close:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
 
 .bottom-sheet-content { flex: 1; overflow-y: auto; padding: 24px 18px 40px; position: relative; }
 .sheet-media { position: relative; width: 100%; height: 260px; border-radius: 18px; overflow: hidden; background: #221a18; margin-bottom: 16px; box-shadow: var(--shadow); }
 .light .sheet-media { background: #efe5d8; }
 .sheet-img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity 0.3s ease; }
 .sheet-img.loaded { opacity: 1; }
 .sheet-note { position: absolute; bottom: 10px; left: 12px; font-size: 12px; color: rgba(255,255,255,0.85); background: rgba(0,0,0,0.45); padding: 4px 8px; border-radius: 6px; backdrop-filter: blur(4px); }
 .perf-mode .sheet-note { backdrop-filter: none; background: rgba(0,0,0,0.6); }
 
 .sheet-body h2 { font-family: Georgia, 'Times New Roman', Times, serif; font-size: 26px; line-height: 1.25; margin-bottom: 4px; }
 .sheet-name-am { font-family: "Noto Sans Ethiopic", "Nyala", system-ui, sans-serif; font-size: 15px; color: var(--muted); line-height: 1.5; margin-bottom: 6px; }
 .sheet-featured { font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); border: 1px solid var(--red); padding: 2px 8px; border-radius: 6px; display: inline-block; margin-bottom: 6px; }
 .sheet-price { font-size: 20px; font-weight: 900; color: var(--gold); }
 .sheet-desc { color: var(--muted); font-size: 14px; margin-top: 14px; }
 
 /* ---------- Back to top ---------- */
 .back-to-top {
   position: fixed; right: 18px; bottom: 18px; z-index: 90;
   width: 48px; height: 48px; border-radius: 50%; background: var(--gold); color: var(--bg);
   border: none; font-size: 22px; cursor: pointer; opacity: 0; pointer-events: none;
   transform: translateY(20px); transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.2s ease;
 }
 .perf-mode .back-to-top { transition: none; box-shadow: none; }
 .back-to-top:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
 .back-to-top:active { transform: scale(0.92); }
 
 /* ---------- Footer ---------- */
 .footer { padding: 40px 18px 60px; border-top: 1px solid var(--border); text-align: center; background: var(--surface); }
 .footer-inner { max-width: 960px; margin: 0 auto; }
 .footer-brand { font-size: 20px; font-weight: 800; font-family: Georgia, 'Times New Roman', Times, serif; letter-spacing: -0.5px; display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px; }
 .footer-brand img { width: 32px; height: 32px; border-radius: 8px; background: var(--border); }
 .footer-brand img + * { display: none; }
 .footer-note { color: var(--muted); font-size: 14px; margin-bottom: 10px; }
 .footer-social { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
 .footer-social a { color: var(--gold); text-decoration: underline; }
 .footer-disclaimer { color: var(--muted); font-size: 13px; margin-bottom: 8px; }
 .footer-copy { color: var(--muted); font-size: 13px; }
 
 /* ---------- Print ---------- */
 @media print {
   body { background: #fff !important; color: #000; }
   .header, .search-bar, .categories, .back-to-top, .bottom-sheet, .footer, .vignette, body::after { display: none !important; }
   .menu-card, .menu-row, .addon-item { break-inside: avoid; box-shadow: none; border: 1px solid #ccc; background: #fff; }
   .card-media, .sheet-media { display: none; }
   .card-price, .addon-price { color: #000; }
   a { text-decoration: none; color: #000; }
 }
 
 @media (max-width: 480px) {
   .hero h1 { font-size: 30px; }
   .menu-grid { grid-template-columns: 1fr; }
   .menu-card.hero { height: 200px; }
   .menu-card.hero .card-media { width: 42%; min-width: 130px; }
   .menu-card.hero .card-body { padding: 14px 16px; }
 }
 
 @media (prefers-reduced-motion: reduce) {
   html { scroll-behavior: auto; }
   *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
 }
