/* كافيه دفتر المسودّة — موقع عرض تخيلي من متجرلك */
:root {
  --sand: #f6efe4;
  --sand-2: #efe4d3;
  --paper: #fffaf3;
  --ink: #1c1612;
  --ink-soft: #4a3f36;
  --espresso: #2a1a14;
  --bean: #5c3a28;
  --cardamom: #3a5a42;
  --cardamom-2: #2d4734;
  --saffron: #c4a35a;
  --saffron-2: #d4b56e;
  --line: rgba(92, 58, 40, 0.16);
  --shadow: 0 18px 40px rgba(28, 22, 18, 0.08);
  --radius: 22px;
  --max: 1120px;
  --header: 76px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html[lang="en"] { font-family: "IBM Plex Sans Arabic", "Tajawal", sans-serif; }
body {
  font-family: "IBM Plex Sans Arabic", "Tajawal", sans-serif;
  background: var(--sand);
  color: var(--ink);
  line-height: 1.8;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: min(var(--max), calc(100% - 32px)); margin-inline: auto; }

.demo-banner {
  background: #5c2218;
  color: #fff8ee;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 12px 16px;
  letter-spacing: 0.01em;
  line-height: 1.6;
  position: relative;
  z-index: 50;
}
.demo-banner strong { color: var(--saffron-2); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246, 239, 228, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  min-height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  color: var(--espresso);
}
.logo svg { width: 42px; height: 42px; }
.logo-name { font-size: 1.05rem; line-height: 1.2; }
.logo-sub { display: block; font-size: 0.72rem; font-weight: 500; color: var(--ink-soft); }

.nav { display: flex; align-items: center; gap: 8px; }
.nav a {
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.nav a:hover, .nav a[aria-current="page"] { background: var(--sand-2); color: var(--espresso); }
.lang-btn, .menu-toggle {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--espresso);
  border-radius: 999px;
  padding: 7px 12px;
  font: inherit;
  cursor: pointer;
}
.menu-toggle { display: none; }

.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 72px;
  background:
    radial-gradient(1200px 420px at 80% -10%, rgba(196, 163, 90, 0.22), transparent 60%),
    linear-gradient(180deg, var(--sand) 0%, var(--sand-2) 100%);
}
.hero-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cardamom);
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 12px;
}
.kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--saffron);
}
h1, h2, h3 { font-family: "Tajawal", "IBM Plex Sans Arabic", sans-serif; line-height: 1.25; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 4.1rem); color: var(--espresso); margin-bottom: 14px; }
.lede { font-size: 1.12rem; color: var(--ink-soft); max-width: 36ch; margin-bottom: 28px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}
.btn-primary { background: var(--espresso); color: var(--sand); }
.btn-primary:hover { background: #3a241b; }
.btn-ghost { background: transparent; border-color: var(--bean); color: var(--espresso); }
.hero-card {
  background: var(--paper);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.hero-card h2 { font-size: 1.35rem; margin-bottom: 8px; }
.meta { color: var(--ink-soft); font-size: 0.95rem; }
.price-row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.price-row:last-child { border-bottom: 0; }
.sar { font-weight: 700; color: var(--bean); white-space: nowrap; }

section { padding: 72px 0; }
.section-head { margin-bottom: 28px; max-width: 46ch; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); color: var(--espresso); margin-bottom: 8px; }
.muted { color: var(--ink-soft); }

.about-grid, .visit-grid { display: grid; gap: 28px; }
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.note {
  margin-top: 16px;
  padding: 12px 14px;
  background: var(--sand-2);
  border-radius: 14px;
  font-size: 0.92rem;
}

.cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.cats a {
  text-decoration: none;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.92rem;
}
.cats a:hover { border-color: var(--saffron); }

.menu-grid { display: grid; gap: 18px; }
.menu-cat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.menu-cat h3 { color: var(--cardamom-2); margin-bottom: 14px; font-size: 1.2rem; }
.item { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.item:last-child { border-bottom: 0; }
.item p { grid-column: 1 / -1; font-size: 0.9rem; color: var(--ink-soft); margin-top: -4px; }

.map {
  min-height: 280px;
  border-radius: 18px;
  border: 1px dashed var(--bean);
  background:
    linear-gradient(rgba(246,239,228,0.2), rgba(246,239,228,0.55)),
    repeating-linear-gradient(0deg, transparent, transparent 27px, rgba(92,58,40,0.06) 28px),
    repeating-linear-gradient(90deg, transparent, transparent 27px, rgba(92,58,40,0.06) 28px),
    #e8dcc8;
  position: relative;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
}
.pin {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--espresso); border: 4px solid var(--saffron);
  box-shadow: 0 0 0 8px rgba(196,163,90,0.25);
  margin-inline: auto 0 auto;
  margin-bottom: 10px;
}
.hours { list-style: none; }
.hours li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.hours li:last-child { border-bottom: 0; }

form { display: grid; gap: 14px; }
label { font-weight: 600; font-size: 0.92rem; display: block; margin-bottom: 6px; }
input, select, textarea {
  width: 100%;
  font: inherit;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}
textarea { min-height: 110px; resize: vertical; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.consent input { width: 20px; height: 20px; margin-top: 4px; flex: 0 0 20px; }
.form-msg {
  display: none;
  padding: 14px;
  border-radius: 14px;
  background: #e8f0ea;
  color: var(--cardamom-2);
  border: 1px solid rgba(58,90,66,0.2);
}
.form-msg.show { display: block; }

.wa {
  position: fixed;
  inset-inline-end: 18px;
  bottom: 18px;
  z-index: 50;
  background: #128c4b;
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(18, 140, 75, 0.28);
}
.social { display: flex; gap: 10px; flex-wrap: wrap; }
.social a, .social span {
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  background: var(--paper);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  background: var(--espresso);
  color: #f3e9dc;
}
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.credit { color: var(--saffron-2); font-weight: 700; }
.menu-legal { flex-basis: 100%; margin: 0; font-size: .85rem; line-height: 1.75; }

.menu-page .hero { padding: 32px 0 20px; }
.qr-hint {
  display: flex;
  gap: 16px;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
}
.qr-hint img, .qr-hint svg { width: 88px; height: 88px; background: #fff; border-radius: 8px; }

@media (min-width: 840px) {
  .hero-grid, .about-grid, .visit-grid, .menu-grid { grid-template-columns: 1.1fr 0.9fr; }
  .menu-grid { grid-template-columns: 1fr 1fr; }
  .menu-page .menu-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 839px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    inset-inline: 16px;
    top: calc(var(--header) + 36px);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .header-inner { position: relative; }
}
@media print {
  .demo-banner, .site-header, .wa, .site-footer, .lang-btn, .menu-toggle, .actions, .qr-hint { display: none !important; }
  body { background: #fff; }
  section { padding: 12px 0; }
  .menu-cat { break-inside: avoid; box-shadow: none; }
}
