/* =========================================================
   متجر السنبلة — الأساس المشترك (الألوان، الخطوط، الرأس، التذييل، الأزرار)
   ========================================================= */
:root {
  --indigo: #1E2A4A;
  --indigo-2: #2C3B63;
  --wheat: #C8962E;
  --linen: #EDE4D3;
  --linen-2: #E3D7C1;
  --cotton: #FAF7F1;
  --madder: #A8442F;
  --ink: #221E1A;
  --muted: #5F574E;
  --line: #D9CDB6;
  --wa: #1F7A4D;          /* أخضر واتساب أغمق قليلاً ليبقى النص الأبيض مقروءاً */

  --f-title: "Reem Kufi", "Readex Pro", system-ui, sans-serif;
  --f-body: "Readex Pro", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;

  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 12px;
  --wrap: 1180px;
  --pad: clamp(16px, 4vw, 32px);
  --shadow: 0 1px 2px rgba(34, 30, 26, .06), 0 8px 24px rgba(34, 30, 26, .07);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cotton);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
html:has(dialog[open]) { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--indigo); }
h1, h2, h3 { font-family: var(--f-title); font-weight: 600; line-height: 1.25; margin: 0; color: var(--indigo); }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

:focus-visible { outline: 3px solid var(--indigo); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100;
  background: var(--indigo); color: #fff; padding: 10px 16px; border-radius: var(--r-sm);
  text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------- الرأس ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(250, 247, 241, .94);
  -webkit-backdrop-filter: saturate(1.2) blur(8px);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px dashed var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 12px;
  min-height: 60px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--indigo); margin-inline-end: auto;
}
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-mark .stitch { fill: none; stroke: var(--indigo); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 2.2 1.8; }
.brand-mark .grains ellipse { fill: var(--wheat); stroke: var(--indigo); stroke-width: .9; stroke-dasharray: 1.4 1.1; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--f-title); font-size: 1.3rem; font-weight: 600; }
.brand-sub { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.header-nav { display: flex; gap: 4px; }
.header-nav a {
  text-decoration: none; color: var(--ink); padding: 8px 12px; border-radius: 999px; font-size: .95rem;
}
.header-nav a[aria-current="page"] { background: var(--linen); color: var(--indigo); font-weight: 600; }
.header-nav a:hover { background: var(--linen); }

.lang-btn {
  border: 1px solid var(--indigo); background: transparent; color: var(--indigo);
  border-radius: 999px; padding: 6px 14px; min-height: 40px; font-size: .9rem;
}
.lang-btn:hover { background: var(--indigo); color: #fff; }

.concept-badge {
  margin: 0; text-align: center; font-size: .75rem; padding: 3px 8px;
  background: var(--indigo); color: var(--cotton); letter-spacing: .02em;
}

@media (max-width: 520px) {
  .header-nav a[data-nav="home"] { display: none; }   /* الهاتف: الشعار يعود للرئيسية، ورابط الكاتالوج يبقى ظاهراً دائماً */
  .brand-sub { display: none; }
  .header-nav a { padding: 8px 10px; font-size: .9rem; }
}

/* ---------- الأزرار ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font-weight: 600; font-size: 1rem; text-decoration: none; text-align: center;
  border: 1px solid transparent; transition: background-color .2s, color .2s, border-color .2s;
}
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #17633e; }
.btn-wa::before {
  content: ""; width: 20px; height: 20px; flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2Zm0 18.2c-1.5 0-3-.4-4.3-1.2l-.3-.2-3 .8.8-2.9-.2-.3A8.2 8.2 0 1 1 12 20.2Zm4.5-6.1c-.2-.1-1.5-.7-1.7-.8-.2-.1-.4-.1-.6.1l-.8 1c-.1.2-.3.2-.5.1a6.7 6.7 0 0 1-3.3-2.9c-.3-.4.2-.4.7-1.3.1-.2 0-.3 0-.4l-.8-1.8c-.2-.5-.4-.4-.6-.4h-.5c-.2 0-.4.1-.7.3-.2.3-.9.9-.9 2.2s.9 2.5 1 2.7c.1.2 1.8 2.8 4.4 3.9 1.6.7 2.3.8 3.1.6.5-.1 1.5-.6 1.7-1.2.2-.6.2-1.1.2-1.2-.1-.1-.3-.2-.5-.3Z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2Zm0 18.2c-1.5 0-3-.4-4.3-1.2l-.3-.2-3 .8.8-2.9-.2-.3A8.2 8.2 0 1 1 12 20.2Zm4.5-6.1c-.2-.1-1.5-.7-1.7-.8-.2-.1-.4-.1-.6.1l-.8 1c-.1.2-.3.2-.5.1a6.7 6.7 0 0 1-3.3-2.9c-.3-.4.2-.4.7-1.3.1-.2 0-.3 0-.4l-.8-1.8c-.2-.5-.4-.4-.6-.4h-.5c-.2 0-.4.1-.7.3-.2.3-.9.9-.9 2.2s.9 2.5 1 2.7c.1.2 1.8 2.8 4.4 3.9 1.6.7 2.3.8 3.1.6.5-.1 1.5-.6 1.7-1.2.2-.6.2-1.1.2-1.2-.1-.1-.3-.2-.5-.3Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.btn-ghost { background: transparent; color: var(--indigo); border-color: var(--indigo); }
.btn-ghost:hover { background: var(--indigo); color: #fff; }
.btn-text {
  background: none; border: 0; color: var(--muted); text-decoration: underline;
  text-underline-offset: 3px; padding: 8px; min-height: 40px;
}
.btn-text:hover { color: var(--madder); }

/* ---------- التذييل ---------- */
.site-footer {
  margin-top: 64px; padding-block: 28px 40px;
  border-top: 1px dashed var(--line); color: var(--muted); font-size: .88rem;
}
.footer-inner { display: grid; gap: 4px; text-align: center; }
.site-footer strong { color: var(--indigo); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}
