/* foodibles.co.uk ------------------------------------------------------- */
:root {
  --brand: #ff5a1f;
  --brand-dark: #d94512;
  --brand-soft: #fff1ea;
  --ink: #16181d;
  --ink-2: #4a4f5a;
  --ink-3: #8a8f99;
  --line: #e8e9ee;
  --bg: #ffffff;
  --bg-2: #f6f6f8;
  --card: #ffffff;
  --ok: #1f9d55;
  --ok-soft: #e6f6ec;
  --warn: #c0392b;
  --warn-soft: #fdecea;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(20, 20, 30, 0.08);
  --shadow-lg: 0 24px 60px rgba(20, 20, 30, 0.16);
  --max: 1180px;
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
h1, h2, h3, h4 { margin: 0 0 0.4em; line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.muted { color: var(--ink-3); }
.wrap { width: min(100% - 32px, var(--max)); margin-inline: auto; }
.section { padding: clamp(48px, 7vw, 96px) 0; }
.section-tight { padding: 32px 0; }
.section-alt { background: var(--bg-2); }
.center { text-align: center; }
.eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--brand); margin-bottom: 10px;
}
.lead { font-size: 1.12rem; color: var(--ink-2); max-width: 60ch; }
.center .lead { margin-inline: auto; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; border: 0; cursor: pointer; font-weight: 700;
  background: var(--brand); color: #fff; transition: transform 0.12s ease, background 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 6px 18px rgba(255, 90, 31, 0.28);
}
.btn:hover { background: var(--brand-dark); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: none; border: 2px solid var(--line); }
.btn-ghost:hover { background: var(--bg-2); border-color: var(--ink-3); }
.btn-light { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.btn-light:hover { background: #fff; }
.btn-lg { padding: 16px 30px; font-size: 1.05rem; }
.btn[disabled] { opacity: 0.55; pointer-events: none; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.86); backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; font-size: 1.45rem; letter-spacing: -0.03em; }
.logo img, .logo svg { width: 34px; height: 34px; }
.logo span em { color: var(--brand); font-style: normal; }
.nav { display: flex; gap: 6px; margin-left: auto; align-items: center; }
.nav a { padding: 9px 14px; border-radius: 999px; font-weight: 600; color: var(--ink-2); }
.nav a:hover, .nav a.active { background: var(--bg-2); color: var(--ink); }
.nav .btn { padding: 10px 18px; color: #fff; }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px auto; border-radius: 2px; }
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 16px; right: 16px; top: 72px; flex-direction: column; align-items: stretch;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; box-shadow: var(--shadow-lg); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; }
}

/* hero */
.hero {
  position: relative; min-height: 560px; display: grid; align-items: center; color: #fff; overflow: hidden;
  background: #2a1a12;
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.78; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 8, 6, 0.82) 0%, rgba(10, 8, 6, 0.45) 55%, rgba(10, 8, 6, 0.15) 100%); }
.hero .wrap { position: relative; z-index: 1; padding: 80px 0; }
.hero h1 { max-width: 14ch; text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35); }
.hero .lead { color: rgba(255, 255, 255, 0.9); font-size: 1.2rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; font-weight: 600; font-size: 0.95rem; color: rgba(255, 255, 255, 0.9); }
.hero-badges span::before { content: "\2713"; display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 8px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 0.75rem; }

/* postcode search */
.search {
  position: relative; display: flex; gap: 8px; align-items: center; background: #fff; border-radius: 999px;
  padding: 6px 6px 6px 18px; box-shadow: var(--shadow-lg); max-width: 560px; margin-top: 28px; color: var(--ink);
}
.search svg { width: 22px; height: 22px; flex: none; color: var(--brand); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 12px 6px; font-size: 1.05rem; background: transparent; text-transform: uppercase; }
.search input::placeholder { text-transform: none; color: var(--ink-3); }
.search .btn { white-space: nowrap; }
.search-hint { font-size: 0.9rem; opacity: 0.85; margin-top: 10px; }
.search-hint a { text-decoration: underline; }
.suggest {
  position: absolute; left: 12px; right: 12px; top: calc(100% + 6px); background: #fff; color: var(--ink);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); overflow: hidden; z-index: 20; display: none;
}
.suggest.open { display: block; }
.suggest button { display: block; width: 100%; text-align: left; padding: 11px 16px; border: 0; background: #fff; cursor: pointer; font-weight: 600; }
.suggest button:hover { background: var(--brand-soft); }
.search.inline { box-shadow: none; border: 2px solid var(--line); margin-top: 0; max-width: none; }
.search.inline:focus-within { border-color: var(--brand); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { padding: 28px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.step .num { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); font-weight: 900; font-size: 1.1rem; margin-bottom: 14px; }
.step p { color: var(--ink-2); margin: 0; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* cuisines */
.cuisines { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cuisine { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: #ddd; box-shadow: var(--shadow); }
.cuisine img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.cuisine:hover img { transform: scale(1.06); }
.cuisine b { position: absolute; left: 14px; bottom: 12px; color: #fff; font-size: 1.1rem; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6); z-index: 1; }
.cuisine::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0) 55%); }
@media (max-width: 900px) { .cuisines { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .cuisines { grid-template-columns: repeat(2, 1fr); gap: 10px; } .cuisine b { font-size: 0.95rem; } }

/* features / split */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.ticks { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.ticks li::before { content: "\2713"; flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); font-weight: 900; font-size: 0.85rem; margin-top: 2px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } }

.cta-band { background: linear-gradient(120deg, var(--brand) 0%, #ff8a3d 100%); color: #fff; border-radius: 28px; padding: clamp(32px, 5vw, 64px); display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.92); }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } .cta-band .actions { justify-content: flex-start; } }

/* shop list page */
.page-head { padding: 28px 0 10px; }
.page-head h1 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
.toolbar { display: grid; grid-template-columns: minmax(0, 520px) 1fr; gap: 16px; align-items: center; margin: 14px 0 22px; }
.toolbar > * { min-width: 0; }
@media (max-width: 760px) { .toolbar { grid-template-columns: 1fr; } }
html, body { overflow-x: hidden; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; font-weight: 600; font-size: 0.92rem; color: var(--ink-2); }
.chip.active, .chip:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.result-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; color: var(--ink-2); flex-wrap: wrap; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 980px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }

.card {
  display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform 0.15s ease, box-shadow 0.15s ease; position: relative;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-cover { position: relative; aspect-ratio: 16 / 9; background: #e7e3df; overflow: hidden; }
.card-cover img { width: 100%; height: 100%; object-fit: cover; }
.card-logo { position: absolute; left: 14px; bottom: -22px; width: 58px; height: 58px; border-radius: 14px; background: #fff; box-shadow: var(--shadow); display: grid; place-items: center; overflow: hidden; font-weight: 900; color: var(--brand); font-size: 1.3rem; }
.card-logo img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.card-body { padding: 30px 16px 16px; }
.card h3 { font-size: 1.12rem; margin-bottom: 2px; }
.card .sub { color: var(--ink-3); font-size: 0.9rem; margin-bottom: 10px; text-transform: capitalize; }
.card .facts { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 0.88rem; color: var(--ink-2); }
.badge { position: absolute; top: 12px; left: 12px; padding: 5px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.badge.open { background: var(--ok); color: #fff; }
.badge.closed { background: var(--warn); color: #fff; }
.badge.demo { left: auto; right: 12px; background: #16181d; color: #fff; }
.distance { position: absolute; top: 12px; right: 12px; padding: 5px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; background: rgba(255, 255, 255, 0.95); box-shadow: var(--shadow); }
.card.has-demo .distance { right: 76px; }

.empty { padding: 60px 20px; text-align: center; background: var(--bg-2); border-radius: var(--radius); }
.empty h3 { margin-bottom: 6px; }
.skeleton { background: linear-gradient(90deg, #eee 25%, #f7f7f7 50%, #eee 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--radius); min-height: 260px; }
@keyframes sk { to { background-position: -200% 0; } }

/* shop page */
.shop-hero { position: relative; height: 300px; background: #ddd; overflow: hidden; }
.shop-hero img { width: 100%; height: 100%; object-fit: cover; }
.shop-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.05)); }
.shop-card { position: relative; margin-top: -74px; z-index: 2; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 22px; display: grid; grid-template-columns: 88px 1fr auto; gap: 20px; align-items: center; }
.shop-card .logo-box { width: 88px; height: 88px; border-radius: 18px; background: var(--brand-soft); display: grid; place-items: center; overflow: hidden; font-weight: 900; color: var(--brand); font-size: 1.8rem; }
.shop-card .logo-box img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.shop-card h1 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 4px; }
.shop-card .facts { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--ink-2); font-size: 0.95rem; }
.status { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; padding: 4px 10px; border-radius: 999px; font-size: 0.82rem; }
.status.open { background: var(--ok-soft); color: var(--ok); }
.status.closed { background: var(--warn-soft); color: var(--warn); }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
@media (max-width: 760px) { .shop-card { grid-template-columns: 64px 1fr; } .shop-card .logo-box { width: 64px; height: 64px; } .shop-card .order-col { grid-column: 1 / -1; } }

.menu-layout { display: grid; grid-template-columns: 240px 1fr; gap: 32px; margin-top: 32px; align-items: start; }
.menu-nav { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 2px; max-height: calc(100vh - 110px); overflow: auto; }
.menu-nav a { padding: 9px 12px; border-radius: 10px; font-weight: 600; color: var(--ink-2); }
.menu-nav a.active, .menu-nav a:hover { background: var(--brand-soft); color: var(--brand); }
.menu-section { margin-bottom: 36px; scroll-margin-top: 90px; }
.menu-section h2 { font-size: 1.35rem; margin-bottom: 12px; }
.items { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.item { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s; }
.item:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.item b { display: block; }
.item .desc { font-size: 0.88rem; color: var(--ink-3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item .price { font-weight: 800; color: var(--ink); margin-top: 6px; }
.item .price small { color: var(--ink-3); font-weight: 600; margin-right: 3px; }
.item img { width: 84px; height: 84px; border-radius: 10px; object-fit: cover; }
@media (max-width: 900px) { .menu-layout { grid-template-columns: 1fr; } .menu-nav { position: sticky; top: 68px; flex-direction: row; overflow-x: auto; background: #fff; padding: 8px 0; z-index: 5; border-bottom: 1px solid var(--line); max-height: none; } .menu-nav a { white-space: nowrap; } }
@media (max-width: 640px) { .items { grid-template-columns: 1fr; } }

.order-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(10px); border-top: 1px solid var(--line); display: none; }
.order-bar .btn { width: 100%; }
@media (max-width: 760px) { .order-bar { display: block; } body.has-order-bar { padding-bottom: 84px; } }

.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.info { padding: 18px; background: var(--bg-2); border-radius: var(--radius-sm); }
.info b { display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); margin-bottom: 4px; }
.info pre { white-space: pre-wrap; font: inherit; margin: 0; }
@media (max-width: 760px) { .info-grid { grid-template-columns: 1fr; } }

/* prose pages */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.4rem; margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; color: var(--ink-2); }
.prose li { margin-bottom: 0.4em; }

/* forms */
.form { display: grid; gap: 14px; max-width: 560px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 0.92rem; }
.form input, .form select, .form textarea { padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font: inherit; }
.form input:focus, .form textarea:focus, .form select:focus { outline: 0; border-color: var(--brand); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }

/* footer */
.site-footer { background: #16181d; color: #c9ccd4; padding: 56px 0 28px; margin-top: 40px; }
.site-footer .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 12px; }
.site-footer a { display: block; padding: 4px 0; color: #c9ccd4; }
.site-footer a:hover { color: #fff; }
.site-footer .logo { color: #fff; }
.site-footer .legal { margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.85rem; color: #8a8f99; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: #16181d; color: #fff; padding: 12px 18px; border-radius: 999px; box-shadow: var(--shadow-lg); z-index: 100; font-weight: 600; }
