/* ------------------------------------------------------------------
   Shared stylesheet for the Nashr demo customer sites.
   These are SIMULATED third-party GCC small-business sites used to test
   the onboarding website-import scraper. They intentionally do NOT use
   Nashr's Sage Indigo design tokens — each is a generic small-business
   theme. Raw hex is fine here (these are not the Nashr app).
   Per-site accent is set with the --accent / --accent-ink CSS vars in
   each page's inline <style> block.
------------------------------------------------------------------- */

:root {
  --accent: #1f6f5c;
  --accent-ink: #0f3a30;
  --ink: #1b1b1f;
  --muted: #5f6168;
  --line: #e6e3dd;
  --bg: #ffffff;
  --bg-soft: #faf8f4;
  --radius: 12px;
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Tahoma, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

[dir="rtl"] body, body[dir="rtl"] { font-family: "Tahoma", "Segoe UI", "Helvetica Neue", Arial, sans-serif; }

img { max-width: 100%; display: block; }

a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 40px; width: auto; }
.brand .name { font-weight: 700; font-size: 18px; color: var(--ink); }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { color: var(--ink); font-size: 15px; }
.lang-link { font-size: 14px; color: var(--muted); }
.cta-wa {
  background: var(--accent);
  color: #fff;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}
.cta-wa:hover { text-decoration: none; opacity: .92; }

/* ---------- hero ---------- */
.hero {
  background: var(--bg-soft);
  padding: 64px 0;
  border-bottom: 1px solid var(--line);
}
.hero h1 { font-size: 38px; margin: 0 0 14px; line-height: 1.2; }
.hero .lede { font-size: 18px; color: var(--muted); max-width: 640px; margin: 0 0 12px; }
.hero .lede-ar { font-size: 18px; color: var(--ink); max-width: 640px; margin: 0 0 24px; }
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
}
.btn:hover { text-decoration: none; opacity: .92; }

/* ---------- sections ---------- */
section { padding: 56px 0; }
section h2 { font-size: 28px; margin: 0 0 8px; }
section .sub { color: var(--muted); margin: 0 0 28px; }

/* ---------- product / service grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 22px;
}
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
}
.card .ph { aspect-ratio: 4 / 3; background: var(--bg-soft); }
.card .ph img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 14px 16px; }
.card .body h3 { margin: 0 0 4px; font-size: 16px; }
.card .body .price { color: var(--accent-ink); font-weight: 700; font-size: 15px; }
.card .body .desc { color: var(--muted); font-size: 14px; margin: 6px 0 0; }
.card .body .soldout { color: #a23b3b; font-weight: 600; font-size: 13px; }

/* ---------- about prose ---------- */
.prose { max-width: 720px; }
.prose p { margin: 0 0 16px; }
.prose .ar { direction: rtl; text-align: right; }

/* ---------- iframe placeholder (booking widget simulation) ---------- */
.booking-embed {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
  padding: 32px;
  text-align: center;
  color: var(--muted);
}

/* ---------- contact / footer ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact-grid .map { background: var(--bg-soft); border-radius: var(--radius); min-height: 200px; display:flex; align-items:center; justify-content:center; color: var(--muted); }
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  color: var(--muted);
  font-size: 14px;
}
.site-footer .social { display: flex; gap: 16px; margin-top: 8px; }

@media (max-width: 700px) {
  .nav { display: none; }
  .hero h1 { font-size: 30px; }
  .contact-grid { grid-template-columns: 1fr; }
}

/* ---------- gallery strip ---------- */
.gallery-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.gallery-strip img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-soft);
}
@media (max-width: 700px) { .gallery-strip { grid-template-columns: repeat(2, 1fr); } }

/* ---------- testimonials ---------- */
.testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.quote {
  margin: 0; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg); padding: 20px 22px;
}
.quote .stars { color: var(--accent); letter-spacing: 2px; font-size: 13px; margin-bottom: 8px; }
.quote p { margin: 0 0 12px; font-size: 15px; }
.quote .who { color: var(--muted); font-size: 13px; font-weight: 600; }
.quote[dir="rtl"] { text-align: right; }

/* ---------- opening hours ---------- */
.hours-table { width: 100%; max-width: 340px; border-collapse: collapse; font-size: 14px; margin-top: 6px; }
.hours-table td { padding: 6px 0; border-bottom: 1px dashed var(--line); }
.hours-table td:last-child { text-align: end; color: var(--muted); }

/* ---------- map placeholder (static, no real embed) ---------- */
.map-placeholder {
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius);
  min-height: 240px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px;
  color: var(--ink); text-align: center; padding: 20px;
  background:
    repeating-linear-gradient(0deg, transparent 0 46px, rgba(0,0,0,.05) 46px 48px),
    repeating-linear-gradient(90deg, transparent 0 46px, rgba(0,0,0,.05) 46px 48px),
    var(--bg-soft);
}
.map-placeholder .map-pin { width: 36px; height: 36px; fill: var(--accent); }
.map-placeholder .map-note { color: var(--muted); font-size: 13px; }

/* ---------- floating whatsapp button ---------- */
.wa-float {
  position: fixed; inset-block-end: 22px; inset-inline-end: 22px;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .22); z-index: 50;
}
.wa-float:hover { text-decoration: none; opacity: .94; }
.wa-float svg { width: 26px; height: 26px; fill: #fff; }

/* ---------- instagram feed (static tiles) ---------- */
.ig-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.ig-grid img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: 8px; border: 1px solid var(--line); background: var(--bg-soft);
}
@media (max-width: 700px) { .ig-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- full-menu image (menu lives in the image, not the DOM) ---------- */
.menu-image { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-soft); }
.menu-image img { width: 100%; height: auto; }

/* ---------- ordering-widget placeholder (static, no items listed) ---------- */
.order-box {
  border: 1px dashed var(--line); border-radius: var(--radius);
  background: var(--bg-soft); padding: 32px; text-align: center; margin: 40px 0;
}
.order-box h2 { margin: 0 0 8px; font-size: 22px; }
.order-box p { color: var(--muted); margin: 0 0 16px; }
.btn-disabled {
  display: inline-block; background: #cbc4b9; color: #fff; padding: 12px 24px;
  border-radius: var(--radius); font-weight: 600; cursor: not-allowed;
}
