/* ==========================================================================
   لمسة ذهب — ملف التصميم الرئيسي
   ==========================================================================
   ✏️ للتعديل السريع: كل الألوان والخطوط والمسافات موجودة هنا في الأعلى
   كمتغيرات (Variables) — غيّر القيمة وسيتغير التصميم بالكامل تلقائياً.
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Amiri:wght@400;700&family=Tajawal:wght@300;400;500;700;900&display=swap");

:root {
  /* 🎨 الألوان — عدّل هذه القيم لتغيير هوية الموقع بالكامل */
  --color-bg: #fbf9f6;          /* الخلفية الأساسية (أبيض دافئ) */
  --color-bg-alt: #f1ece3;      /* خلفية القسم البديل (رملي فاتح) */
  --color-ink: #17140f;         /* لون النص الأساسي (أسود دافئ) */
  --color-ink-soft: #4a453c;    /* نص ثانوي أفتح قليلاً */
  --color-gold: #c6a15b;        /* الذهبي الأساسي */
  --color-gold-light: #e8d5a8;  /* ذهبي فاتح للتمييز والخلفيات */
  --color-gold-dark: #8a6a34;   /* ذهبي غامق للنصوص فوق الفاتح */
  --color-line: rgba(23, 20, 15, 0.1);
  --color-white: #ffffff;

  /* ✏️ الخطوط */
  --font-display: "Amiri", serif;        /* للعناوين الكبيرة فقط */
  --font-body: "Tajawal", sans-serif;    /* لبقية النصوص */

  /* المسافات والحدود */
  --radius-lg: 28px;
  --radius-md: 16px;
  --container: 1180px;
  --section-pad: clamp(72px, 10vw, 160px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================================
   إعادة ضبط أساسية
   ========================================================================== */
* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
}

body {
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; }

::selection { background: var(--color-gold); color: var(--color-white); }

:focus-visible {
  outline: 2px solid var(--color-gold-dark);
  outline-offset: 3px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 56px);
}

.section {
  padding: var(--section-pad) 0;
  position: relative;
}
.section--alt { background: var(--color-bg-alt); }
.section--dark {
  background: var(--color-ink);
  color: var(--color-bg);
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.28em;
  color: var(--color-gold-dark);
  font-weight: 700;
  margin-bottom: 18px;
}
.section--dark .eyebrow { color: var(--color-gold-light); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
}

h2.section-title {
  font-size: clamp(30px, 4vw, 48px);
  margin-bottom: 18px;
}

p.lede {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--color-ink-soft);
  max-width: 56ch;
}
.section--dark p.lede { color: rgba(251, 249, 246, 0.75); }

/* رابط زخرفي تحت العنوان — يمثل "خيط الذهب" */
.gold-rule {
  width: 64px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-gold), transparent);
  margin: 20px auto 0;
}
.align-start .gold-rule { margin-inline: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease), color .35s var(--ease);
}
.btn:hover { transform: translateY(-2px); }

.btn--gold {
  background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold) 55%, var(--color-gold-dark));
  color: var(--color-ink);
  box-shadow: 0 10px 30px -12px rgba(140, 108, 45, 0.55);
}
.btn--gold:hover { box-shadow: 0 16px 34px -10px rgba(140, 108, 45, 0.7); }

.btn--ghost {
  border-color: rgba(251, 249, 246, 0.4);
  color: inherit;
}
.btn--ghost:hover { background: rgba(251, 249, 246, 0.08); }

.btn--outline-dark {
  border-color: var(--color-ink);
  color: var(--color-ink);
}
.btn--outline-dark:hover { background: var(--color-ink); color: var(--color-bg); }

/* ==========================================================================
   شريط تقدّم التمرير — "خيط الذهب المنساب" (العنصر المميز للتصميم)
   ========================================================================== */
.gold-progress {
  position: fixed;
  inset-inline: 0;
  top: 0;
  height: 3px;
  z-index: 999;
  background: transparent;
}
.gold-progress__fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-gold-dark), var(--color-gold), var(--color-gold-light), var(--color-gold));
  background-size: 300% 100%;
  animation: shimmer 6s linear infinite;
  transform-origin: right;
  transition: width 0.1s linear;
}
@keyframes shimmer {
  0% { background-position: 0% 0; }
  100% { background-position: 300% 0; }
}

/* ==========================================================================
   الشريط العلوي
   ========================================================================== */
.nav {
  position: fixed;
  top: 3px;
  inset-inline: 0;
  z-index: 900;
  padding: 18px 0;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), box-shadow .4s var(--ease);
}
.nav.is-scrolled {
  background: rgba(251, 249, 246, 0.86);
  backdrop-filter: blur(10px);
  padding: 12px 0;
  box-shadow: 0 1px 0 var(--color-line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.02em;
  color: var(--color-bg);
}
.nav.is-scrolled .brand { color: var(--color-ink); }
.brand__mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--color-gold);
  display: grid;
  place-items: center;
}
.brand__mark span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-gold);
}

.nav__links {
  display: flex;
  gap: 32px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-bg);
}
.nav.is-scrolled .nav__links { color: var(--color-ink); }
.nav__links a { position: relative; padding-bottom: 4px; }
.nav__links a::after {
  content: "";
  position: absolute;
  right: 0; left: 0; bottom: 0;
  height: 1px;
  background: var(--color-gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); }

.nav__cta { display: flex; align-items: center; gap: 14px; }
.nav__cta .btn { padding: 10px 22px; font-size: 14px; }
.nav.is-scrolled .btn--ghost { border-color: var(--color-ink); }
.nav.is-scrolled .btn--ghost:hover { background: var(--color-ink); color: var(--color-bg); }

.nav__toggle {
  display: none;
  background: none;
  border: none;
  color: inherit;
  font-size: 26px;
}

@media (max-width: 860px) {
  .nav__links {
    position: fixed;
    top: 0; bottom: 0; left: 0;
    width: min(78vw, 320px);
    background: var(--color-ink);
    color: var(--color-bg);
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    padding: 40px;
    font-size: 20px;
    transform: translateX(-105%);
    transition: transform 0.5s var(--ease);
    z-index: 950;
  }
  .nav__links.is-open { transform: translateX(0); }
  .nav__toggle { display: block; position: relative; z-index: 960; }
}

/* ==========================================================================
   قسم الافتتاحية (Hero)
   ========================================================================== */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  position: relative;
  color: var(--color-bg);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  animation: heroZoom 16s var(--ease) forwards;
}
@keyframes heroZoom {
  to { transform: scale(1); }
}
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(10,9,7,0.35) 0%, rgba(10,9,7,0.35) 40%, rgba(10,9,7,0.85) 100%);
}
.hero__content {
  padding-bottom: clamp(56px, 9vw, 108px);
  width: 100%;
}
.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  letter-spacing: 0.32em;
  color: var(--color-gold-light);
  margin-bottom: 22px;
  opacity: 0;
  animation: riseIn 1s var(--ease) 0.2s forwards;
}
.hero__eyebrow .line { width: 40px; height: 1px; background: var(--color-gold); }

.hero h1 {
  font-size: clamp(42px, 7.2vw, 92px);
  max-width: 16ch;
  opacity: 0;
  animation: riseIn 1.1s var(--ease) 0.35s forwards;
}
.hero h1 em {
  font-style: normal;
  color: var(--color-gold-light);
}
.hero__sub {
  margin-top: 22px;
  max-width: 46ch;
  font-size: clamp(16px, 1.5vw, 19px);
  color: rgba(251, 249, 246, 0.82);
  opacity: 0;
  animation: riseIn 1.1s var(--ease) 0.55s forwards;
}
.hero__actions {
  margin-top: 40px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  animation: riseIn 1.1s var(--ease) 0.72s forwards;
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero__scroll {
  position: absolute;
  bottom: 28px;
  inset-inline: 0;
  display: flex;
  justify-content: center;
  opacity: 0.75;
}
.hero__scroll span {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, var(--color-gold-light), transparent);
  display: block;
  animation: scrollLine 2.2s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  50.01% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ==========================================================================
   عام: كشف عند التمرير (Scroll reveal)
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal="fade"] { transform: none; }

/* ==========================================================================
   قسم القصة
   ========================================================================== */
.story {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(32px, 6vw, 90px);
  align-items: center;
}
.story__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
}
.story__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.story__media:hover img { transform: scale(1.06); }
.story__media::after {
  content: "";
  position: absolute; inset: 0;
  border: 1px solid var(--color-gold);
  border-radius: var(--radius-lg);
  margin: 14px;
  pointer-events: none;
}
.story__text p { margin-top: 20px; }
.story__text p:first-of-type { margin-top: 0; }

@media (max-width: 860px) {
  .story { grid-template-columns: 1fr; }
}

/* ==========================================================================
   قسم المكوّنات / المزايا
   ========================================================================== */
.features__head { max-width: 640px; margin-inline: auto; text-align: center; }
.features__grid {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--color-line);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.feature {
  background: var(--color-bg);
  padding: 44px 34px;
  text-align: center;
  transition: background 0.4s var(--ease);
}
.feature:hover { background: var(--color-bg-alt); }
.feature__icon {
  width: 56px; height: 56px;
  margin: 0 auto 22px;
  color: var(--color-gold-dark);
}
.feature h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 10px;
}
.feature p { color: var(--color-ink-soft); font-size: 15px; }

@media (max-width: 760px) {
  .features__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   قسم عرض المنتج
   ========================================================================== */
.product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 90px);
  align-items: center;
}
.product__gallery {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.product__gallery img {
  width: 100%; height: 100%; object-fit: cover;
}
.product__badge {
  position: absolute;
  bottom: 20px; right: 20px;
  background: rgba(251,249,246,0.92);
  color: var(--color-ink);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 700;
  display: flex; align-items: center; gap: 8px;
}
.product__badge::before {
  content: "";
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--color-gold);
}
.product__list { margin-top: 26px; display: grid; gap: 14px; }
.product__list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--color-ink-soft);
  font-size: 15px;
}
.product__list li::before {
  content: "";
  width: 6px; height: 6px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--color-gold);
  flex-shrink: 0;
}
.product__price {
  margin-top: 34px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.product__price strong { font-family: var(--font-display); font-size: 34px; color: var(--color-gold-dark); }
.product__price span { color: var(--color-ink-soft); font-size: 14px; }
.product__actions { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .product { grid-template-columns: 1fr; }
}

/* ==========================================================================
   المعرض
   ========================================================================== */
.gallery__head { text-align: center; max-width: 620px; margin: 0 auto; }
.gallery__grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.gallery__item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 3/4;
}
.gallery__item:nth-child(2) { transform: translateY(28px); }
.gallery__item:nth-child(4) { transform: translateY(-14px); }
.gallery__item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s var(--ease), filter 1s var(--ease);
  filter: saturate(0.94);
}
.gallery__item:hover img { transform: scale(1.08); filter: saturate(1.08); }
.gallery__item::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(10,9,7,0.55));
  opacity: 0; transition: opacity 0.4s var(--ease);
}
.gallery__item:hover::after { opacity: 1; }
.gallery__caption {
  position: absolute; bottom: 16px; right: 16px; left: 16px;
  color: var(--color-bg);
  font-size: 13px;
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.gallery__item:hover .gallery__caption { opacity: 1; transform: translateY(0); }

@media (max-width: 960px) {
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .gallery__item:nth-child(2), .gallery__item:nth-child(4) { transform: none; }
}

/* ==========================================================================
   الاقتباس
   ========================================================================== */
.quote {
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
  position: relative;
}
.quote__mark {
  font-family: var(--font-display);
  font-size: clamp(70px, 10vw, 130px);
  color: var(--color-gold);
  line-height: 1;
  opacity: 0.9;
}
.quote p.quote__text {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.6;
  color: var(--color-bg);
  margin-top: -10px;
}
.quote__author {
  margin-top: 26px;
  color: var(--color-gold-light);
  font-size: 14px;
  letter-spacing: 0.08em;
}

/* ==========================================================================
   الدعوة لاتخاذ إجراء (تواصل)
   ========================================================================== */
.cta {
  position: relative;
  overflow: hidden;
  text-align: center;
  color: var(--color-bg);
}
.cta__bg { position: absolute; inset: 0; z-index: -2; }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta__scrim {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10,9,7,0.55), rgba(10,9,7,0.86));
}
.cta__inner { max-width: 640px; margin: 0 auto; }
.cta h2 { color: var(--color-bg); }
.cta__actions {
  margin-top: 36px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.cta__meta {
  margin-top: 30px;
  font-size: 14px;
  color: rgba(251,249,246,0.65);
  display: flex;
  justify-content: center;
  gap: 26px;
  flex-wrap: wrap;
}
.cta__meta a:hover { color: var(--color-gold-light); }

/* ==========================================================================
   تذييل الصفحة
   ========================================================================== */
.footer {
  background: var(--color-ink);
  color: rgba(251,249,246,0.7);
  padding: 56px 0 28px;
}
.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(251,249,246,0.12);
}
.footer .brand { color: var(--color-bg); }
.footer__links {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  font-size: 14px;
}
.footer__links a:hover { color: var(--color-gold-light); }
.footer__social { display: flex; gap: 14px; }
.footer__social a {
  width: 38px; height: 38px;
  border: 1px solid rgba(251,249,246,0.2);
  border-radius: 50%;
  display: grid; place-items: center;
  transition: border-color .3s var(--ease), color .3s var(--ease);
}
.footer__social a:hover { border-color: var(--color-gold); color: var(--color-gold-light); }
.footer__bottom {
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
}

/* ==========================================================================
   زر واتساب العائم
   ========================================================================== */
.float-whatsapp {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 800;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--color-ink);
  border: 1px solid var(--color-gold);
  display: grid;
  place-items: center;
  box-shadow: 0 12px 26px -10px rgba(0,0,0,0.45);
  transition: transform .35s var(--ease);
}
.float-whatsapp:hover { transform: scale(1.08); }
.float-whatsapp svg { color: var(--color-gold-light); }

/* ==========================================================================
   احترام تفضيل تقليل الحركة
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ==========================================================================
   استجابة عامة إضافية
   ========================================================================== */
@media (max-width: 600px) {
  .hero { align-items: flex-end; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .float-whatsapp { width: 52px; height: 52px; bottom: 18px; left: 18px; }
}
