/* SoLi Kitchen — Asian fusion takeaway, 14 Derwent Drive, Loughborough.
 *
 * A takeaway is read on a phone, one-handed, usually while hungry and often
 * while walking. So the order actions are never more than a thumb away, the
 * menu is photographs before it is prose, and nothing on the page needs
 * JavaScript to be readable.
 *
 * The palette is taken from the shop itself: the deep green of the frontage on
 * Derwent Drive, the kraft tone of the badge on the window, and the red of the
 * heart in the logo. */

:root {
  --ink: #1A1D1A;
  --ink-soft: #4B524C;
  --muted: #737A72;

  --green: #123A2C;
  --green-dk: #0C2A20;
  --green-lt: #1E5340;

  --cream: #FBF7F0;
  --cream-2: #F4EDE1;
  --kraft: #EADCC4;
  --kraft-dk: #D9C39E;

  --red: #C62A22;
  --red-lt: #E4463D;

  --line: #E3D9C7;
  --line-soft: #EFE7D9;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(18, 58, 44, .05), 0 8px 24px -12px rgba(18, 58, 44, .18);
  --shadow-lg: 0 2px 6px rgba(18, 58, 44, .06), 0 24px 60px -24px rgba(18, 58, 44, .30);

  --display: 'Bricolage Grotesque', 'Inter', system-ui, -apple-system, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --wrap: 1180px;
  /* The mobile order bar is fixed; this keeps it from covering the footer. */
  --dock: 0px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  padding-bottom: var(--dock);
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--green); color: var(--cream);
  padding: 12px 18px; border-radius: 0 0 10px 0; font-weight: 600;
}
.skip:focus { left: 0; }

:where(a, button, input, summary):focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--body); font-size: 16px; font-weight: 600;
  padding: 13px 22px; border-radius: 999px;
  border: 1.5px solid transparent; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--green); color: var(--cream); }
.btn-primary:hover { background: var(--green-lt); }

.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-lt); }

.btn-ghost { border-color: var(--green); color: var(--green); background: transparent; }
.btn-ghost:hover { background: var(--green); color: var(--cream); }

.btn-quiet {
  background: #fff; color: var(--green); border-color: var(--line);
  box-shadow: var(--shadow);
}
.btn-quiet:hover { border-color: var(--kraft-dk); }

.btn svg { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- header ---------- */

.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 247, 240, .88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.topbar-inner {
  display: flex; align-items: center; gap: 18px;
  min-height: 76px;
}
.brand { display: flex; align-items: center; text-decoration: none; margin-right: auto; }
.brand img { height: 56px; width: 56px; border-radius: 50%; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
  text-decoration: none; font-weight: 500; font-size: 15.5px; color: var(--ink-soft);
  padding: 6px 0; position: relative;
}
.nav a:hover { color: var(--green); }
.nav a[aria-current="page"] { color: var(--green); font-weight: 600; }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--red); border-radius: 2px;
}
@media (max-width: 860px) { .nav { display: none; } }

.topbar .btn { padding: 10px 18px; font-size: 15px; }
@media (max-width: 560px) { .topbar .btn-call { display: none; } }

/* ---------- status pill ---------- */

.status {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; letter-spacing: .01em;
  padding: 7px 14px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); color: var(--ink-soft);
}
.status .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none;
}
.status[data-open="yes"] { color: var(--green); border-color: #BFD9C9; background: #EFF7F1; }
.status[data-open="yes"] .dot { background: #1E8B57; box-shadow: 0 0 0 3px rgba(30,139,87,.18); }
.status[data-open="no"] { color: #8A4B12; border-color: #E9D3B4; background: #FDF4E7; }
.status[data-open="no"] .dot { background: #C6802F; }

/* ---------- hero ---------- */

.hero { position: relative; padding: 0 0 8px; }
.hero-grid {
  display: grid; grid-template-columns: 1.02fr 1fr; gap: 54px; align-items: center;
  padding: 64px 0 56px;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; padding: 34px 0 30px; }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--green-lt);
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--red); border-radius: 2px;
}

.hero h1 {
  font-size: clamp(2.6rem, 6.4vw, 4.3rem);
  margin: 18px 0 0;
  color: var(--green);
}
.hero h1 .heart {
  color: var(--red);
  font-size: .74em;
  line-height: 1;
  display: inline-block;
  transform: translateY(-.04em);
}

.hero-lede {
  margin-top: 20px; font-size: clamp(1.05rem, 2.1vw, 1.22rem);
  color: var(--ink-soft); max-width: 46ch;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; align-items: center; }
@media (max-width: 560px) {
  .hero-actions .btn { flex: 1 1 100%; }
}

.hero-meta {
  display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px;
  font-size: 15px; color: var(--muted);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta svg { width: 16px; height: 16px; color: var(--green-lt); flex: none; }

.hero-figure {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); background: var(--cream-2);
  aspect-ratio: 3 / 2;
}
.hero-figure img { width: 100%; height: 100%; object-fit: cover; }

.hero-badge {
  position: absolute; right: 16px; bottom: 16px;
  background: rgba(251, 247, 240, .95);
  backdrop-filter: blur(8px);
  border-radius: 12px; padding: 10px 14px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow); font-size: 14px; font-weight: 600; color: var(--green);
}
.hero-badge .fsa {
  background: #1E8B57; color: #fff; font-weight: 700; font-size: 15px;
  width: 28px; height: 28px; border-radius: 7px;
  display: grid; place-items: center; flex: none;
}

/* ---------- order rail ---------- */

.rail { background: var(--green); color: var(--cream); }
.rail-inner { padding: 26px 0; display: flex; flex-wrap: wrap; gap: 20px 34px; align-items: center; }
.rail h2 {
  font-size: 1.18rem; color: var(--kraft); margin-right: auto; letter-spacing: -0.01em;
}
.rail h2 small {
  display: block; font-family: var(--body); font-size: 14px; font-weight: 400;
  color: rgba(234, 220, 196, .72); letter-spacing: 0; margin-top: 4px;
}
.rail-links { display: flex; flex-wrap: wrap; gap: 10px; }
.rail-links a {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(251, 247, 240, .09);
  border: 1px solid rgba(234, 220, 196, .26);
  color: var(--cream); text-decoration: none;
  padding: 11px 18px; border-radius: 999px; font-size: 15px; font-weight: 500;
  transition: background-color .15s ease, border-color .15s ease;
}
.rail-links a:hover { background: rgba(251, 247, 240, .17); border-color: var(--kraft); }
.rail-links a.is-direct {
  background: var(--kraft); color: var(--green-dk); font-weight: 600; border-color: var(--kraft);
}
.rail-links a.is-direct:hover { background: #fff; }
.rail-links svg { width: 17px; height: 17px; flex: none; }

/* ---------- sections ---------- */

.section { padding: 76px 0; }
.section-alt { background: var(--cream-2); }
@media (max-width: 700px) { .section { padding: 52px 0; } }

.section-head { margin-bottom: 34px; max-width: 62ch; }
.section-head h2 { font-size: clamp(1.85rem, 4vw, 2.6rem); color: var(--green); }
.section-head p { margin-top: 14px; color: var(--ink-soft); font-size: 1.04rem; }

.head-row { display: flex; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 34px; }
.head-row .section-head { margin-bottom: 0; flex: 1 1 380px; }

/* ---------- dish cards ---------- */

.dishes {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
}

.dish {
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.dish:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--kraft-dk); }

.dish-img { aspect-ratio: 4 / 3; background: var(--cream-2); position: relative; }
.dish-img img { width: 100%; height: 100%; object-fit: cover; }

/* Seventeen dishes have no photograph on the listing. Rather than a grey box,
   they get the badge mark on kraft, so the grid keeps its rhythm. */
.dish-img.is-blank {
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,.55), transparent 60%),
    var(--kraft);
}
.dish-img.is-blank svg { width: 46px; height: 46px; opacity: .38; }

.dish-body { padding: 15px 16px 17px; display: flex; flex-direction: column; flex: 1; gap: 7px; }
.dish-code {
  font-size: 11.5px; font-weight: 700; letter-spacing: .12em; color: var(--red);
}
.dish h3 { font-size: 1.02rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
.dish p { font-size: 14px; color: var(--muted); line-height: 1.5; }
.dish-price {
  margin-top: auto; padding-top: 9px;
  font-family: var(--display); font-weight: 700; font-size: 1.06rem; color: var(--green);
}

/* ---------- category grid ---------- */

.cats { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(228px, 1fr)); }
.cat {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 14px 16px; text-decoration: none; box-shadow: var(--shadow);
  transition: border-color .15s ease, transform .15s ease;
}
.cat:hover { border-color: var(--green); transform: translateY(-2px); }
.cat-thumb {
  width: 54px; height: 54px; border-radius: 10px; overflow: hidden; flex: none;
  background: var(--kraft);
}
.cat-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cat b { font-family: var(--display); font-size: 1rem; font-weight: 600; color: var(--green); display: block; }
.cat span { font-size: 13.5px; color: var(--muted); }

/* ---------- facts ---------- */

.facts { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.fact {
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 24px 22px; box-shadow: var(--shadow);
}
.fact-icon {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  background: var(--kraft); color: var(--green); margin-bottom: 15px;
}
.fact-icon svg { width: 21px; height: 21px; }
.fact h3 { font-size: 1.08rem; color: var(--green); margin-bottom: 7px; }
.fact p { font-size: 14.5px; color: var(--ink-soft); }
.fact a { color: var(--green-lt); text-underline-offset: 3px; }

/* ---------- visit ---------- */

.visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: start; }
@media (max-width: 860px) { .visit-grid { grid-template-columns: 1fr; gap: 34px; } }

.hours { width: 100%; border-collapse: collapse; margin-top: 6px; }
.hours th, .hours td { text-align: left; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.hours th { font-weight: 500; color: var(--ink-soft); }
.hours td { text-align: right; font-variant-numeric: tabular-nums; font-weight: 500; }
.hours tr[data-today] th, .hours tr[data-today] td { color: var(--green); font-weight: 700; }
.hours tr.closed td { color: var(--muted); font-weight: 400; }

.addr { font-style: normal; font-size: 1.06rem; line-height: 1.7; color: var(--ink-soft); }
.addr strong { color: var(--ink); font-weight: 600; }

.contact-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.contact-list a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 500; color: var(--green); }
.contact-list a:hover { text-decoration: underline; text-underline-offset: 3px; }
.contact-list svg { width: 18px; height: 18px; flex: none; color: var(--green-lt); }

/* ---------- note ---------- */

.note {
  border-left: 3px solid var(--kraft-dk); background: var(--cream-2);
  padding: 15px 18px; border-radius: 0 10px 10px 0;
  font-size: 14.5px; color: var(--ink-soft);
}
.note strong { color: var(--ink); }

/* ---------- footer ---------- */

.footer { background: var(--green-dk); color: rgba(251, 247, 240, .82); padding: 56px 0 34px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr; gap: 30px; } }
.footer h3 {
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--kraft); margin-bottom: 14px; font-family: var(--body); font-weight: 700;
}
.footer a { color: rgba(251, 247, 240, .82); text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 15px; }
.footer-brand img { height: 76px; width: 76px; border-radius: 50%; margin-bottom: 16px; }
.footer-brand p { font-size: 15px; max-width: 34ch; }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(251, 247, 240, .09); border: 1px solid rgba(234, 220, 196, .2);
}
.socials a:hover { background: rgba(251, 247, 240, .18); }
.socials svg { width: 18px; height: 18px; }

/* ---------- mobile order dock ---------- */

/* The whole point of the site on a phone: ordering never scrolls away. */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: none; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(251, 247, 240, .94);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
.dock .btn { flex: 1; padding: 13px 12px; font-size: 15.5px; }
@media (max-width: 860px) {
  .dock { display: flex; }
  body { --dock: 74px; }
}

/* ---------- menu page ---------- */

.menu-hero { background: var(--green); color: var(--cream); padding: 52px 0 46px; }
.menu-hero h1 { font-size: clamp(2.2rem, 5.5vw, 3.4rem); color: var(--kraft); }
.menu-hero p { margin-top: 14px; color: rgba(251, 247, 240, .8); max-width: 56ch; font-size: 1.05rem; }
.menu-hero .status { margin-top: 22px; background: rgba(251,247,240,.1); border-color: rgba(234,220,196,.28); color: var(--kraft); }
.menu-hero .status[data-open="yes"] { background: rgba(255,255,255,.12); border-color: rgba(234,220,196,.4); color: #DCF2E4; }
.menu-hero .status[data-open="no"] { background: rgba(255,255,255,.08); border-color: rgba(234,220,196,.25); color: #F0DCC0; }

.catnav {
  position: sticky; top: 76px; z-index: 40;
  background: rgba(251, 247, 240, .95);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.catnav-scroll {
  display: flex; gap: 8px; overflow-x: auto; padding: 12px 20px;
  scrollbar-width: none; -ms-overflow-style: none;
  max-width: var(--wrap); margin-inline: auto;
  scroll-snap-type: x proximity;
}
.catnav-scroll::-webkit-scrollbar { display: none; }
.catnav a {
  flex: none; scroll-snap-align: start;
  padding: 8px 15px; border-radius: 999px; font-size: 14.5px; font-weight: 500;
  text-decoration: none; color: var(--ink-soft);
  border: 1px solid var(--line); background: #fff; white-space: nowrap;
  transition: background-color .15s, color .15s, border-color .15s;
}
.catnav a:hover { border-color: var(--kraft-dk); }
.catnav a.active { background: var(--green); color: var(--cream); border-color: var(--green); }

.menu-search { padding: 22px 0 4px; }
.search-box { display: block; position: relative; max-width: 430px; }
.search-box svg {
  position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--muted); pointer-events: none;
}
.search-box input {
  width: 100%; font-family: var(--body); font-size: 16px; color: var(--ink);
  padding: 13px 16px 13px 44px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow);
}
.search-box input::placeholder { color: var(--muted); }
.search-box input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(18,58,44,.1); }

.search-count { margin-top: 12px; font-size: 14.5px; color: var(--muted); min-height: 1.4em; }

.menu-cat { padding: 40px 0 6px; scroll-margin-top: 128px; }
.menu-cat h2 {
  font-size: clamp(1.5rem, 3.4vw, 2rem); color: var(--green);
  display: flex; align-items: baseline; gap: 12px; margin-bottom: 22px;
}
.menu-cat h2 span {
  font-family: var(--body); font-size: 14px; font-weight: 500; color: var(--muted);
  letter-spacing: 0;
}

.menu-cat[hidden] { display: none; }
.dish[hidden] { display: none; }

.empty {
  padding: 48px 0; text-align: center; color: var(--muted); font-size: 1.05rem;
}
