/* Malab Somali Restaurant — one-page, phone-first */
:root {
  --maroon: #440002;
  --maroon-2: #5c0a0d;
  --gold: #E0AE4A;
  --gold-light: #F6D27A;
  --cream: #FBF5EA;
  --text: #2b1a1a;
  --muted: #6e5a55;
  --line: #eadfcd;
  --bar: 64px;
  --top: calc(var(--bar) + env(safe-area-inset-top));
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: "Lato", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--cream);
  -webkit-tap-highlight-color: transparent;
}
body[data-screen="home"] { background: var(--maroon); }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h3 { font-family: "Cinzel", Georgia, serif; font-weight: 600; margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: block; text-align: center; padding: 14px 20px; border-radius: 40px;
  font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid var(--gold);
}
.btn-gold { background: var(--gold); color: var(--maroon); }
.btn-outline { color: var(--gold); }
.btn-maroon { background: var(--maroon); border-color: var(--maroon); color: var(--gold-light); }
.btn:active { transform: scale(.98); }

/* ---------- Top bar ---------- */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  background: var(--maroon);
  padding-top: env(safe-area-inset-top);
  border-bottom: 1px solid rgba(224, 174, 74, .35);
}
.bar { max-width: 1000px; margin: 0 auto; height: var(--bar); display: flex; align-items: center; justify-content: space-between; padding: 0 16px; }
.bar-logo img { width: 46px; height: 46px; }
.tabs { display: flex; gap: 6px; }
.tabs a {
  display: flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 30px;
  color: var(--cream); text-decoration: none; font-weight: 700;
}
.tabs a.active { background: var(--gold); color: var(--maroon); }
.tabs svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

main { padding-top: var(--top); }
.screen { display: none; }
.screen.show { display: block; }

/* ---------- Home (fits one screen) ---------- */
.home.show {
  min-height: calc(100vh - var(--top));
  min-height: calc(100dvh - var(--top));
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 20px 24px 30px; color: var(--cream);
  background: radial-gradient(circle at 50% 30%, var(--maroon-2), var(--maroon) 70%);
}
.home-logo { width: min(200px, 26vh); margin-bottom: 18px; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .35)); }
.home h1 { color: var(--gold-light); font-size: clamp(1.5rem, 5vw, 2.4rem); margin-bottom: 10px; }
.home-info { margin: 0 0 24px; opacity: .9; }
.home-buttons { display: grid; gap: 12px; width: 100%; max-width: 340px; }

/* ---------- Menu ---------- */
.menu-tabs {
  position: sticky; top: var(--top); z-index: 10;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  padding: 10px 12px; background: var(--cream); border-bottom: 1px solid var(--line);
}
.menu-tabs button {
  flex: none; font: 700 .92rem "Lato", Arial, sans-serif; padding: 8px 15px; border-radius: 30px; cursor: pointer;
  border: 2px solid var(--maroon); background: #fff; color: var(--maroon);
}
.menu-tabs button.active { background: var(--maroon); color: var(--gold-light); }
.menu-list { max-width: 760px; margin: 0 auto; padding: 16px 16px 0; }
.menu-note {
  text-align: center; font-style: italic; color: var(--maroon); font-size: .93rem;
  background: #fbf0d8; border-radius: 10px; padding: 10px 14px; margin: 0 0 6px;
}
.menu-list h3 { color: var(--maroon); font-size: 1.15rem; margin: 22px 0 2px; padding-bottom: 6px; border-bottom: 2px solid var(--gold); }
.items { list-style: none; margin: 0; padding: 0; }
.items li { padding: 13px 2px; border-bottom: 1px dashed var(--line); }
.row { display: flex; justify-content: space-between; gap: 14px; align-items: baseline; }
.name { font-weight: 700; font-size: 1.02rem; }
.price { font-weight: 700; color: var(--maroon); white-space: nowrap; }
.desc { margin: 3px 0 0; color: var(--muted); font-size: .9rem; }
.menu-small { max-width: 760px; margin: 0 auto; padding: 18px 16px 40px; text-align: center; color: var(--muted); font-size: .88rem; }

/* ---------- Location (fits one screen) ---------- */
.location.show {
  height: calc(100vh - var(--top));
  height: calc(100dvh - var(--top));
  display: flex; flex-direction: column; gap: 14px;
  max-width: 760px; margin: 0 auto;
  padding: 14px 16px calc(16px + env(safe-area-inset-bottom));
}
.map { flex: 1; min-height: 180px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #eee; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.details { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.details > div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.details h3 { color: var(--maroon); font-size: .9rem; margin-bottom: 2px; }
.details p { margin: 0; font-size: .93rem; }
.loc-buttons { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }
.loc-buttons .btn { padding: 13px 10px; font-size: .95rem; }

/* ---------- Phones ---------- */
@media (max-width: 640px) {
  .bar { padding: 0 6px; }
  .bar-logo { display: none; }
  .tabs { width: 100%; justify-content: space-around; gap: 0; }
  .tabs a { flex-direction: column; gap: 3px; padding: 7px 4px; font-size: .78rem; border-radius: 12px; min-width: 70px; }
  .tabs svg { width: 22px; height: 22px; }
}
@media (min-width: 900px) {
  .items { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .menu-list { max-width: 960px; }
}
