/* ------------------------------------------------------------------
   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; }
}
