/* ==========================================================
   Sidra Café (DEMO) - shared styles for Arabic and English
   Rule: only logical properties (inline-start / inline-end),
   never left/right, so the same CSS works for RTL and LTR.
   ========================================================== */

/* ---------- 1. Colours and sizes (change the brand here) ---------- */
:root {
  --bg: #faf6ef;          /* page background (warm cream) */
  --surface: #ffffff;     /* cards */
  --text: #2b211a;        /* main text (dark coffee) */
  --muted: #6b5a4c;       /* secondary text */
  --brand: #7a4a24;       /* coffee brown */
  --brand-dark: #5a3418;
  --accent: #c8963e;      /* gold, like a dalla */
  --line: #e7dccb;        /* borders */
  --demo-bg: #fff4d6;     /* demo banner */
  --demo-text: #6a4a00;
  --whatsapp: #1f7a4d;    /* darker than the logo green, for contrast */

  --radius: 14px;
  --max: 960px;           /* max content width on big screens */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --line-height: 1.6;
}

/* Arabic gets its own font and more line height */
html[lang="ar"] {
  --font: "IBM Plex Sans Arabic", system-ui, sans-serif;
  --line-height: 1.8;
}

/* ---------- 2. Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: var(--line-height);
}
html[lang="ar"] body { font-size: 1.0625rem; } /* Arabic slightly larger */

h1, h2, h3 { line-height: 1.3; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }
a { color: var(--brand); }

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

/* Keyboard users: a clear focus ring */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* "Skip to content" link, visible only when focused with Tab */
.skip-link {
  position: absolute;
  inset-inline-start: 8px;
  top: -100px;
  background: var(--text);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 10;
}
.skip-link:focus { top: 8px; }

/* ---------- 3. Demo banner ---------- */
.demo-banner {
  background: var(--demo-bg);
  color: var(--demo-text);
  border-block-end: 1px solid #f0d98c;
  font-size: 0.9rem;
  text-align: center;
  padding: 8px 16px;
}

/* ---------- 4. Header ---------- */
.site-header {
  background: var(--surface);
  border-block-end: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 5;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
}
.logo {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--brand-dark);
  text-decoration: none;
}
.nav {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.95rem;
}
.nav a { text-decoration: none; color: var(--text); }
.nav a:hover { color: var(--brand); }
.nav .nav-section { display: none; } /* hidden on small phones */
@media (min-width: 640px) {
  .nav .nav-section { display: inline; }
}
.lang-switch {
  border: 1px solid var(--brand);
  border-radius: 999px;
  padding: 4px 14px;
  color: var(--brand) !important;
  font-weight: 600;
}

/* ---------- 5. Hero ---------- */
.hero {
  background:
    radial-gradient(circle at 15% 20%, rgba(200,150,62,.25), transparent 45%),
    linear-gradient(160deg, var(--brand-dark), var(--brand));
  color: #fff;
  padding-block: 56px 64px;
}
.hero h1 { font-size: clamp(1.8rem, 6vw, 2.8rem); }
.hero p { font-size: 1.1rem; max-width: 36em; opacity: .95; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 24px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;           /* big enough to tap */
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}
.btn-primary { background: var(--whatsapp); color: #fff; }
.btn-primary:hover { background: #17603c; }
.btn-ghost { border: 2px solid #fff; color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ---------- 6. Sections ---------- */
section { padding-block: 48px; }
.section-title {
  font-size: 1.6rem;
  color: var(--brand-dark);
  border-inline-start: 5px solid var(--accent);
  padding-inline-start: 12px;
  margin-block-end: 24px;
}

/* About + info cards */
.info-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .info-grid { grid-template-columns: repeat(3, 1fr); }
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.card h3 { font-size: 1.1rem; color: var(--brand); }
.card p:last-child { margin-block-end: 0; }

/* ---------- 7. Menu ---------- */
.menu-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-block-end: 24px;
}
.menu-nav a {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.95rem;
}
.menu-nav a:hover { border-color: var(--brand); color: var(--brand); }

.menu-category { margin-block-end: 32px; scroll-margin-top: 80px; }
.menu-category h3 {
  font-size: 1.25rem;
  color: var(--brand-dark);
  margin-block-end: 12px;
}
.menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 14px 18px;
}
.menu-item + .menu-item { border-block-start: 1px dashed var(--line); }
.item-name { font-weight: 600; display: block; }
.item-desc { color: var(--muted); font-size: 0.92rem; display: block; }
.item-price {
  font-weight: 700;
  color: var(--brand);
  white-space: nowrap;      /* keep "18 AED" on one line */
}
.menu-note { color: var(--muted); font-size: 0.9rem; }

/* ---------- 8. Contact ---------- */
.contact-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}
.contact-box .btn-primary { margin-block-start: 8px; }

/* ---------- 9. Footer ---------- */
.site-footer {
  background: var(--text);
  color: #e9dfd3;
  padding-block: 28px;
  font-size: 0.9rem;
  text-align: center;
}
.site-footer p { margin: 0.25em 0; }
.site-footer a { color: #fff; }
