/* Landing page. Mobile-first: base = phone, enhancements at 720px+. */
.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--gutter); padding-top: max(14px, env(safe-area-inset-top));
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; font-size: 1.2rem; min-height: 44px; }
.brand__logo { display: block; width: 64px; height: 46px; fill: var(--ink); }
.top__link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; text-decoration: none; font-weight: 600; border-radius: 999px; }
.top__link:hover { background: var(--accent-soft); }

main { max-width: 960px; margin: 0 auto; }
.muted { color: var(--muted); font-size: .95rem; }

/* ---- hero ---- */
.hero { position: relative; padding: 28px var(--gutter) 32px; overflow: hidden; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: .95rem; font-weight: 600; padding: 6px 14px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status.is-open { background: var(--ok-soft); color: var(--ok); }
.status.is-closed { background: var(--out-soft); color: var(--out); }
.hero h1 { margin-top: 22px; font-weight: 900; font-size: clamp(2.5rem, 11vw, 4.6rem); line-height: 1.25; letter-spacing: -.01em; }
.hero__sub { margin-top: 16px; max-width: 30ch; color: var(--muted); font-size: 1.05rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__cta .btn { flex: 1 1 150px; }

/* ---- sections ---- */
.section { padding: 36px var(--gutter) 8px; scroll-margin-top: 8px; }
.section__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: 18px; }
.section__head h2 { font-size: 1.6rem; font-weight: 900; line-height: 1.4; }

.pill { display: inline-block; font-size: .8rem; font-weight: 600; line-height: 1.6; padding: 0 10px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); white-space: nowrap; }
.pill.is-low { background: var(--low-soft); color: var(--low); }
.pill.is-out { background: var(--out-soft); color: var(--out); }
.load-err { padding: 14px 0; color: var(--out); font-weight: 600; }

/* ---- menu ---- */
.chips {
  position: sticky; top: 0; z-index: 5; display: flex; gap: 8px; overflow-x: auto;
  margin: 0 calc(var(--gutter) * -1); padding: 8px var(--gutter);
  background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line); scrollbar-width: none; scroll-snap-type: x proximity;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--surface); text-decoration: none; display: inline-flex; align-items: center; font-weight: 600; font-size: .95rem; scroll-snap-align: center;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.chip[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }

.group { padding-top: 18px; scroll-margin-top: 60px; }
.group h3 { font-size: 1.05rem; font-weight: 900; color: var(--accent); margin-bottom: 2px; }
.row { display: grid; gap: 0; padding: 8px 0; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row__top { display: flex; align-items: baseline; gap: 8px; }
.row__name { font-weight: 600; font-size: 1rem; line-height: 1.5; }
.row__fill { flex: 1; border-bottom: 2px dotted var(--line); transform: translateY(-4px); min-width: 12px; }
.row__price { font-weight: 600; white-space: nowrap; font-size: .98rem; }
.row__desc { color: var(--muted); font-size: .85rem; line-height: 1.5; }
.row.is-out .row__name, .row.is-out .row__price { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.row .pill { margin-inline-start: 6px; }

/* two-blend group (espresso): the blends are named once, on the heading line across from the title,
   and each price column sits right under its name (same order as the printed card) */
.group--blend { --col: 4.5rem; }
.group__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px 16px; }
.blend-cols { display: flex; flex: none; color: var(--muted); font-size: .75rem; font-weight: 600; line-height: 1.35; }
.bc { display: grid; justify-items: center; width: var(--col); }
.bc b { color: var(--ink); font-size: .82rem; font-weight: 900; }
.row__price--blend { display: flex; }
.pc { width: var(--col); text-align: center; }
/* a single-price item inside that group (the syrup add-on) is shown as a boxed note, like the card */
.row.row--note { margin-top: 12px; padding: 10px 14px; border: 1.5px solid var(--accent); border-radius: var(--radius-sm); background: var(--surface); }
.row.row--note + .row.row--note { margin-top: 8px; }


/* ---- visit ---- */
.visit__grid { display: grid; gap: 4px; margin: 0; }
.visit__grid > div { display: grid; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.visit dt { color: var(--muted); font-size: .95rem; }
.visit dd { margin: 0; font-weight: 600; font-size: 1.05rem; }

.foot { display: flex; justify-content: space-between; gap: 16px; padding: 32px var(--gutter) max(32px, env(safe-area-inset-bottom)); max-width: 960px; margin: 24px auto 0; color: var(--muted); font-size: .95rem; border-top: 1px solid var(--line); }
.foot a { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: 4px; }

/* end-of-page credit: «طراحی و توسعه ♥ arch_NC» — the heart is a coffee bean */
.credit { display: inline-flex; align-items: center; gap: 7px; font-size: .9rem; }
.credit a { color: var(--ink); font-weight: 600; letter-spacing: .02em; text-decoration: none; }
.credit a:hover { color: var(--accent); text-decoration: underline; }
.bean-heart { width: 24px; height: 24px; flex: none; overflow: visible; }
.bean-heart__body { fill: var(--accent); }
.bean-heart__crease { fill: none; stroke: var(--bg); stroke-width: 1.7; stroke-linecap: round; }

/* ---- >= 720px ---- */
@media (min-width: 720px) {
  :root { --gutter: 32px; }
  .hero { padding-block: 72px 48px; }
  .hero__cta .btn { flex: 0 0 auto; min-width: 160px; }
  .group ul { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; }
  .group .row:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
  /* the two-blend group stays one column so its price columns line up with the heading labels */
  .group--blend { max-width: 30rem; }
  .group--blend ul { grid-template-columns: 1fr; }
  .group--blend .row:nth-last-child(2):nth-child(odd) { border-bottom: 1px solid var(--line); }
  .visit__grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .visit__grid > div { border-bottom: 0; padding: 0; }
}
