/* burgerapizza.ir — temporary static site. Mobile first, RTL, self-hosted Vazirmatn (no external requests). */
@font-face { font-family: "Vazirmatn"; src: url("/fonts/Vazirmatn-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("/fonts/Vazirmatn-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --bg: #f5faf7;
  --card: #ffffff;
  --ink: #10241b;
  --muted: #4f6458;
  --brand: #02704d; /* AA with white text; the logo green is #038d61 (--logo-green) */
  --brand-dark: #015a3e;
  --accent: #f2a72b;
  --logo-green: #038d61;
  --tint: #e3f3ea;
  --line: #d3e6db;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.95 "Vazirmatn", Tahoma, "Segoe UI", sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; padding-block: 1.25rem 2.5rem; }
.wrap { width: min(100% - 2rem, 62rem); margin-inline: auto; }
img { max-width: 100%; height: auto; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2 { line-height: 1.5; margin: 0 0 .5rem; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.2rem; }
p { margin: 0 0 .8rem; }
.muted { color: var(--muted); font-size: .92rem; }
bdi[dir="ltr"], [dir="ltr"] { unicode-bidi: isolate; }

.skip { position: absolute; inset-inline-start: -999px; top: 0; background: var(--ink); color: #fff; padding: .5rem 1rem; z-index: 10; }
.skip:focus { inset-inline-start: 0; }

/* header */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.bar { display: flex; flex-direction: column; gap: .25rem; padding-block: .5rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1.25rem; color: var(--ink); text-decoration: none; }
.brand .mark { width: 1.9rem; height: 1.9rem; border-radius: 50%; background: radial-gradient(circle at 35% 35%, var(--accent) 0 28%, var(--brand) 30%); border: 2px solid var(--brand-dark); }
.nav { display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; margin-inline: -.25rem; padding-bottom: .25rem; }
.nav::-webkit-scrollbar { display: none; }
.nav a { white-space: nowrap; padding: .4rem .8rem; border-radius: 999px; text-decoration: none; color: var(--ink); font-size: .95rem; }
.nav a[aria-current="page"] { background: var(--brand); color: #fff; }
.nav a:hover:not([aria-current="page"]) { background: var(--tint); }

/* hero + buttons */
.hero { padding: 1.5rem 1.25rem; border-radius: var(--radius); background: linear-gradient(135deg, #e3f3ea, #c4e5d3); text-align: center; }
.hero h1 { font-size: 2.2rem; color: var(--brand-dark); }
.lead { font-size: 1.15rem; margin-bottom: 1rem; }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .5rem 1.25rem; border-radius: 999px; border: 2px solid var(--brand); background: #fff; color: var(--brand); font-weight: 700; text-decoration: none; }
.btn:hover { background: var(--tint); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-disabled { border-style: dashed; color: var(--muted); border-color: var(--muted); font-weight: 400; }

.soon { margin-block: 1rem; padding: 1rem 1.25rem; border: 2px dashed var(--accent); border-radius: var(--radius); background: #fff8e6; }
.soon p { margin: 0; }

/* cards */
.cards { display: grid; gap: .9rem; margin-block: 1rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.15rem; }
.hours { border-collapse: collapse; width: 100%; }
.hours th, .hours td { text-align: start; padding: .2rem 0; border-bottom: 1px dotted var(--line); font-weight: 400; }
.hours td { font-weight: 700; }

/* menu */
.chips { display: flex; gap: .4rem; overflow-x: auto; padding-block: .5rem; margin-block: .5rem 1rem; position: sticky; top: 4.6rem; background: var(--bg); scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips a { white-space: nowrap; padding: .3rem .9rem; border: 1px solid var(--line); border-radius: 999px; background: var(--card); text-decoration: none; color: var(--ink); }
.menu-cat { margin-block: 1.5rem; scroll-margin-top: 8rem; }
.menu-cat h2 { padding-bottom: .3rem; border-bottom: 3px solid var(--accent); display: inline-block; }
.menu-list { list-style: none; margin: .5rem 0 0; padding: 0; }
.menu-list li { display: flex; align-items: baseline; gap: .5rem; padding: .55rem 0; }
.menu-list .n { font-weight: 700; }
.menu-list .d { flex: 1; border-bottom: 2px dotted var(--line); transform: translateY(-.3rem); min-width: 1rem; }
.menu-list .p { white-space: nowrap; color: var(--brand-dark); font-weight: 700; }

/* terms */
.toc { display: flex; flex-wrap: wrap; gap: .4rem; margin-block: .8rem 1.2rem; }
.toc a { padding: .25rem .8rem; border: 1px solid var(--line); border-radius: 999px; background: var(--card); text-decoration: none; }
section[id] { scroll-margin-top: 6rem; margin-block: 1.4rem; }
section[id] ul { padding-inline-start: 1.25rem; margin: .4rem 0; }
section[id] li { margin-bottom: .55rem; }

/* footer */
.site-footer { background: var(--ink); color: #e6f3ec; padding-block: 1.5rem; margin-top: 1rem; }
.site-footer a { color: #bfe8d5; }
.site-footer .muted { color: #a9c4b5; }
.soon-badge { display: inline-block; background: var(--accent); color: var(--ink); font-weight: 700; padding: .25rem 1rem; border-radius: 999px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin-block: .5rem; }

/* draft markers: visible in previews, a release build refuses to exist while any is left */
.todo { background: #fff176; color: #5a2d00; padding: 0 .35rem; border-radius: 4px; font-size: .9em; }

@media (min-width: 40rem) {
  .bar { flex-direction: row; align-items: center; justify-content: space-between; }
  .chips { top: 3.6rem; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  h1 { font-size: 2rem; }
  .hero { padding: 2.5rem 2rem; }
  .hero h1 { font-size: 2.8rem; }
}
@media (min-width: 62rem) {
  .home-cards, .cards.three { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media print { .site-header, .site-footer, .chips, .actions { display: none; } body { background: #fff; } }

.hero-logo { display: block; margin: 0 auto .75rem; width: 170px; height: 170px; border-radius: 22px; background: #fff; box-shadow: 0 2px 10px rgba(1, 90, 62, .18); }
.brand img { border-radius: 8px; }
.hours td { white-space: nowrap; text-align: end; }
.hours th { padding-inline-end: .75rem; }
