/* ===========================================================
   دار فهيم — ورقة الأنماط
   الألوان مستخرجة مباشرة من ملف اللوغو:
   أخضر #3F5E30  /  ذهبي #D39C3B
   ملاحظة: الذهبي تباينه مع الأبيض ≈ 2.4:1 (دون المعيار 4.5:1)
   لذلك لا يُستعمل أبداً للنصوص الصغيرة — زخرفة وعناوين كبيرة فقط.
   =========================================================== */

:root{
  --green:        #3F5E30;
  --green-dark:   #2C421F;
  --green-soft:   #EDF1E9;
  --gold:         #D39C3B;
  --gold-soft:    #F6EBD6;
  --cream:        #FAF6EE;
  --surface:      #FFFFFF;
  --ink:          #23271F;
  --muted:        #5F6657;
  --line:         #E3DFD3;
  --wa:           #25D366;

  --r-sm: 10px;
  --r:    16px;
  --r-lg: 24px;
  --shadow: 0 1px 2px rgba(35,39,31,.05), 0 8px 24px rgba(35,39,31,.06);
  --shadow-lg: 0 2px 4px rgba(35,39,31,.06), 0 18px 48px rgba(35,39,31,.10);

  --font-latin: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-ar:    "Tajawal", system-ui, "Segoe UI", Tahoma, sans-serif;
}

*,*::before,*::after{ box-sizing:border-box; }

html{ scroll-behavior:smooth; }

body{
  margin:0;
  background:var(--cream);
  color:var(--ink);
  font-family:var(--font-latin);
  font-size:17px;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}
html[lang="ar"] body{ font-family:var(--font-ar); line-height:1.85; }

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

h1,h2,h3{ line-height:1.2; margin:0 0 .5em; letter-spacing:-.01em; }
h1{ font-size:clamp(2rem, 1.3rem + 2.8vw, 3.4rem); font-weight:700; }
h2{ font-size:clamp(1.55rem, 1.15rem + 1.6vw, 2.35rem); font-weight:700; }
h3{ font-size:1.12rem; font-weight:600; }
p{ margin:0 0 1em; }

a{ color:inherit; }

:focus-visible{ outline:3px solid var(--green); outline-offset:3px; border-radius:4px; }
.section-dark :focus-visible, .site-footer :focus-visible{ outline-color:#fff; }

.wrap{ width:min(1120px, 100% - 2.5rem); margin-inline:auto; }
.center{ text-align:center; }

.skip{
  position:absolute; inset-inline-start:-9999px; top:0;
  background:var(--green); color:#fff; padding:.7rem 1rem; z-index:100;
}
.skip:focus{ inset-inline-start:0; }

.kicker{
  font-size:.78rem; font-weight:600; letter-spacing:.12em;
  text-transform:uppercase; color:var(--green);
  margin:0 0 .6rem;
}
html[lang="ar"] .kicker{ letter-spacing:0; font-size:.92rem; }
.kicker.light{ color:#fff; }

.section{ padding-block:clamp(3.5rem, 7vw, 6.5rem); }
/* حتى لا يختفي عنوان القسم تحت الهيدر اللاصق عند النقر على رابط */
section[id]{ scroll-margin-top:86px; }
.section-alt{ background:var(--green-soft); }
.section-lead{ color:var(--muted); max-width:56ch; margin-bottom:2.5rem; }
.center .section-lead{ margin-inline:auto; }

/* ---------- الأزرار ---------- */
.btn{
  display:inline-flex; align-items:center; gap:.55rem;
  padding:.85rem 1.5rem; border-radius:999px;
  font-weight:600; font-size:.97rem; text-decoration:none;
  border:1.5px solid transparent; cursor:pointer;
  transition:transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover{ transform:translateY(-1px); }
.btn-primary{ background:var(--green); color:#fff; box-shadow:var(--shadow); }
.btn-primary:hover{ background:var(--green-dark); }
.btn-ghost{ border-color:var(--green); color:var(--green); }
.btn-ghost:hover{ background:var(--green); color:#fff; }
.btn-wa{ background:var(--wa); color:#06281a; }
.btn-wa:hover{ background:#1fbd5a; }
.btn-lg{ padding:1rem 1.9rem; font-size:1.05rem; }
.btn-sm{ padding:.6rem 1.05rem; font-size:.88rem; }

/* ---------- الهيدر ---------- */
.site-header{
  position:sticky; top:0; z-index:50;
  background:rgba(250,246,238,.86);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
.header-inner{ display:flex; align-items:center; gap:1.25rem; min-height:72px; }
.brand img{ height:54px; width:auto; }
.nav{ display:flex; gap:1.6rem; margin-inline-start:auto; }
.nav a{
  text-decoration:none; font-weight:500; font-size:.95rem; color:var(--muted);
  padding-block:.3rem; border-bottom:2px solid transparent;
}
.nav a:hover{ color:var(--green); border-bottom-color:var(--gold); }

.header-tools{ display:flex; align-items:center; gap:.75rem; }
.langs{ display:flex; border:1px solid var(--line); border-radius:999px; overflow:hidden; background:var(--surface); }
.langs button{
  border:0; background:transparent; cursor:pointer;
  font:inherit; font-size:.8rem; font-weight:600; color:var(--muted);
  padding:.4rem .7rem; line-height:1.4;
}
.langs button:hover{ color:var(--green); }
.langs button:focus-visible{ outline-offset:-3px; }
.langs button[aria-current="true"]:focus-visible{ outline-color:#fff; }
.langs button[aria-current="true"]{ background:var(--green); color:#fff; }

.burger{ display:none; background:none; border:0; cursor:pointer; padding:.4rem; }
.burger span{ display:block; width:22px; height:2px; background:var(--ink); margin:4px 0; border-radius:2px; }

/* ---------- الهيرو ---------- */
.hero{ position:relative; padding-block:clamp(3rem, 6vw, 5.5rem) 0; overflow:hidden; }
.hero-grid{ display:grid; grid-template-columns:1.25fr .75fr; gap:2.5rem; align-items:center; }
.hero h1{ max-width:16ch; }
.hero .lead{ font-size:1.09rem; color:var(--muted); max-width:52ch; }
.hero-cta{ display:flex; flex-wrap:wrap; gap:.8rem; margin-top:1.8rem; }
.hero-mark img{ width:100%; max-width:320px; margin-inline:auto; opacity:.95; }
.hero-rule{
  height:4px; margin-top:clamp(3rem,6vw,5rem);
  background:linear-gradient(90deg, var(--green) 0 33%, var(--gold) 33% 66%, var(--green-soft) 66% 100%);
}

/* ---------- المنتجات ---------- */
.grid-products{ display:grid; grid-template-columns:repeat(auto-fill, minmax(275px,1fr)); gap:1.6rem; }
.card{
  background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg);
  overflow:hidden; display:flex; flex-direction:column;
  box-shadow:var(--shadow); transition:transform .18s ease, box-shadow .18s ease;
}
.card:hover{ transform:translateY(-3px); box-shadow:var(--shadow-lg); }
.card.is-out{ opacity:.6; }

.card-media{
  position:relative; aspect-ratio:4/3; background:var(--gold-soft);
  display:flex; align-items:center; justify-content:center;
}
.card-media img{ width:100%; height:100%; object-fit:cover; }
.ph{ display:grid; place-items:center; width:100%; height:100%; }
.ph img{ width:96px; height:auto; opacity:.35; }
.badge{
  position:absolute; top:.8rem; inset-inline-start:.8rem;
  background:var(--green); color:#fff;
  font-size:.7rem; font-weight:700; letter-spacing:.04em;
  padding:.3rem .7rem; border-radius:999px;
}

.card-body{ padding:1.3rem 1.3rem 1.45rem; display:flex; flex-direction:column; flex:1; }
.card-body h3{ margin-bottom:.35rem; }
.card-desc{ color:var(--muted); font-size:.93rem; flex:1; }
.card-origin{
  font-size:.8rem; color:var(--green); font-weight:600;
  padding-top:.65rem; margin-top:.3rem; border-top:1px dashed var(--line);
}
.variants{ display:flex; flex-direction:column; gap:.3rem; margin:.85rem 0 1.1rem; }
.variant{
  display:flex; justify-content:space-between; align-items:baseline; gap:1rem;
  font-size:.93rem; padding:.3rem 0;
}
/* الوزن والمسار نصوص لاتينية: نعزل اتجاهها حتى لا تنقلب داخل RTL */
.variant .w{ color:var(--muted); direction:ltr; unicode-bidi:isolate; }
.variant .p{ font-weight:700; }
.variant .p.soon{ font-weight:500; font-size:.85rem; color:var(--muted); font-style:italic; }
.out-flag{
  font-size:.85rem; font-weight:600; color:#9A5B2A;
  background:var(--gold-soft); border-radius:var(--r-sm);
  padding:.5rem .75rem; text-align:center;
}

/* ---------- لماذا نحن ---------- */
.grid-why{ display:grid; grid-template-columns:repeat(auto-fit, minmax(255px,1fr)); gap:1.5rem; margin-top:2.5rem; }
.card-why{
  background:var(--surface); border-radius:var(--r-lg);
  padding:1.8rem 1.6rem; border-top:4px solid var(--gold);
  box-shadow:var(--shadow);
}
.card-why .num{
  display:block; font-size:.82rem; font-weight:700;
  color:var(--green); letter-spacing:.1em; margin-bottom:.7rem;
}
.card-why p{ color:var(--muted); font-size:.95rem; margin:0; }

/* ---------- القصة ---------- */
.story-grid{ display:grid; grid-template-columns:1.3fr .7fr; gap:3rem; align-items:center; }
.story-grid p{ color:var(--muted); max-width:58ch; }
.story-mark img{ width:100%; max-width:240px; margin-inline:auto; opacity:.5; }

/* ---------- قسم الطلب ---------- */
.section-dark{ background:var(--green); color:#fff; }
.section-dark h2{ color:#fff; }
.section-dark .section-lead{ color:rgba(255,255,255,.82); }
.note{ font-size:.86rem; color:rgba(255,255,255,.65); margin-top:1.1rem; }

/* ---------- الفوتر ---------- */
.site-footer{ background:var(--green-dark); color:rgba(255,255,255,.85); padding-block:2.5rem; }
.footer-inner{ display:flex; align-items:center; gap:1.75rem; flex-wrap:wrap; }
.footer-logo{ height:52px; width:auto; opacity:.9; }
.footer-meta{ flex:1; min-width:200px; }
.footer-meta p{ margin:0 0 .25rem; font-size:.92rem; }
.muted{ color:rgba(255,255,255,.55); font-size:.85rem !important; }
.small{ font-size:.8rem !important; }
.footer-social{ display:flex; gap:.6rem; }
.footer-social a{
  width:38px; height:38px; border-radius:50%;
  display:grid; place-items:center;
  background:rgba(255,255,255,.1); color:#fff; text-decoration:none;
  font-size:.75rem; font-weight:600;
}
.footer-social a:hover{ background:var(--gold); color:var(--green-dark); }

/* ---------- زر واتساب العائم ---------- */
.wa-float{
  position:fixed; inset-block-end:1.3rem; inset-inline-end:1.3rem; z-index:60;
  width:56px; height:56px; border-radius:50%;
  background:var(--wa); color:#06281a;
  display:grid; place-items:center; text-decoration:none;
  box-shadow:0 6px 22px rgba(0,0,0,.22);
  transition:transform .15s ease;
}
.wa-float:hover{ transform:scale(1.06); }

/* ---------- الهاتف ---------- */
@media (max-width: 860px){
  .hero-grid, .story-grid{ grid-template-columns:1fr; }
  .hero-mark{ display:none; }
  .story-mark img{ max-width:160px; }

  .burger{ display:block; }
  .nav{
    position:absolute; inset-inline:0; top:100%;
    flex-direction:column; gap:0;
    background:var(--cream); border-bottom:1px solid var(--line);
    padding:.5rem 1.25rem 1rem;
    display:none;
  }
  .nav.open{ display:flex; }
  .nav a{ padding:.8rem 0; border-bottom:1px solid var(--line); }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *{ transition:none !important; }
}
