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

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

:root {
  /* 🎨 الألوان الأساسية للعلامة التجارية — عدّلها لتغيير هوية الموقع بالكامل */
  --color-bg: #ffffff;          /* خلفية الصفحة */
  --color-bg-soft: #f3f5f8;     /* رمادي فاتح جداً (نفس خلفية صور المنتجات) */
  --color-ink: #12202f;         /* لون النص الأساسي */
  --color-ink-soft: #56626e;    /* نص ثانوي */
  --color-line: rgba(18, 32, 47, 0.09);
  --color-white: #ffffff;

  --color-primary: #1b4f9c;       /* الأزرق الأساسي لعلامة Ever Clean */
  --color-primary-dark: #0e2f60;  /* أزرق غامق للتباين والأزرار */
  --color-primary-light: #4f86d8; /* أزرق فاتح للتمييزات */

  /* 🎨 ألوان مميزة لكل خط منتج — تُستخدم كلمسات بسيطة داخل كل قسم فقط */
  --accent-hand: #7fae3a;      /* غسول الأيدي والجسم */
  --accent-multi: #8b5fc9;     /* منظف الأسطح متعدد الاستخدامات */
  --accent-dish: #2f9e86;      /* سائل غسيل الأواني */
  --accent-glass: #2aa3e0;     /* منظف الزجاج */

  /* ✏️ الخط */
  --font-body: "Tajawal", sans-serif;

  --radius-lg: 26px;
  --radius-md: 16px;
  --container: 1200px;
  --section-pad: clamp(64px, 9vw, 140px);
  --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);
  line-height: 1.75;
  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; background: none; border: none; }

::selection { background: var(--color-primary); color: #fff; }
:focus-visible { outline: 2px solid var(--color-primary-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--soft { background: var(--color-bg-soft); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.22em;
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: 16px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

h1, h2, h3 { font-weight: 900; line-height: 1.3; }

h2.section-title { font-size: clamp(28px, 3.6vw, 42px); margin-bottom: 16px; }

p.lede {
  font-size: clamp(15.5px, 1.4vw, 18px);
  color: var(--color-ink-soft);
  max-width: 58ch;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  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 0.35s var(--ease);
}
.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary) 60%, var(--color-primary-dark));
  color: #fff;
  box-shadow: 0 12px 28px -12px rgba(14, 47, 96, 0.55);
}
.btn--primary:hover { box-shadow: 0 16px 34px -10px rgba(14, 47, 96, 0.65); }

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

.btn--outline-light {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}
.btn--outline-light:hover { background: rgba(255, 255, 255, 0.14); }

/* ==========================================================================
   شريط تقدّم التمرير
   ========================================================================== */
.progress-bar { position: fixed; inset-inline: 0; top: 0; height: 3px; z-index: 999; }
.progress-bar__fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-primary-dark), var(--color-primary), var(--color-primary-light));
  transition: width 0.1s linear;
}

/* ==========================================================================
   الشريط العلوي
   ========================================================================== */
.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 0.4s var(--ease), color .4s var(--ease);
  color: #fff;
}
.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  padding: 12px 0;
  box-shadow: 0 1px 0 var(--color-line);
  color: var(--color-ink);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 21px; }
.brand__mark {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--color-primary);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.brand__mark svg { width: 18px; height: 18px; }

.nav__links { display: flex; gap: 30px; font-size: 15px; font-weight: 500; }
.nav__links a { position: relative; padding-bottom: 4px; }
.nav__links a::after {
  content: "";
  position: absolute; right: 0; left: 0; bottom: 0;
  height: 2px; background: var(--color-primary);
  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: 12px; }
.nav__cta .btn { padding: 10px 22px; font-size: 14px; }
.nav__toggle { display: none; font-size: 26px; color: inherit; }

@media (max-width: 900px) {
  .nav__links {
    position: fixed; top: 0; bottom: 0; left: 0;
    width: min(78vw, 320px);
    background: var(--color-primary-dark);
    color: #fff;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    padding: 40px;
    font-size: 19px;
    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; }
  .nav__cta .btn--outline { display: none; }
}

/* ==========================================================================
   الافتتاحية (Hero)
   ========================================================================== */
.hero {
  position: relative;
  padding-top: clamp(120px, 18vw, 180px);
  padding-bottom: clamp(60px, 8vw, 100px);
  background: linear-gradient(180deg, var(--color-primary-dark) 0%, var(--color-primary) 62%, #2a63b8 100%);
  color: #fff;
  overflow: hidden;
}
.hero::before, .hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.35;
}
.hero::before {
  width: 420px; height: 420px;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.5), transparent 70%);
  top: -160px; left: -120px;
}
.hero::after {
  width: 340px; height: 340px;
  background: radial-gradient(circle at 60% 40%, rgba(255,255,255,0.35), transparent 70%);
  bottom: -140px; right: -100px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(30px, 6vw, 70px);
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero__eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; letter-spacing: 0.28em;
  color: rgba(255,255,255,0.85);
  margin-bottom: 20px;
  opacity: 0; animation: riseIn 1s var(--ease) 0.2s forwards;
}
.hero__eyebrow .line { width: 36px; height: 1px; background: rgba(255,255,255,0.7); }

.hero h1 {
  font-size: clamp(36px, 5.4vw, 62px);
  max-width: 14ch;
  opacity: 0; animation: riseIn 1.1s var(--ease) 0.35s forwards;
}
.hero__sub {
  margin-top: 20px;
  max-width: 48ch;
  font-size: clamp(15.5px, 1.4vw, 18px);
  color: rgba(255,255,255,0.85);
  opacity: 0; animation: riseIn 1.1s var(--ease) 0.5s forwards;
}
.hero__actions {
  margin-top: 34px;
  display: flex; gap: 14px; flex-wrap: wrap;
  opacity: 0; animation: riseIn 1.1s var(--ease) 0.65s forwards;
}
.hero__badges {
  margin-top: 42px;
  display: flex; gap: 26px; flex-wrap: wrap;
  opacity: 0; animation: riseIn 1.1s var(--ease) 0.8s forwards;
}
.hero__badge { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: rgba(255,255,255,0.85); }
.hero__badge svg { width: 20px; height: 20px; flex-shrink: 0; }

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

.hero__visual {
  position: relative;
  opacity: 0; animation: riseIn 1.2s var(--ease) 0.4s forwards;
}
.hero__visual-card {
  position: relative;
  background: var(--color-bg-soft);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 34px);
  box-shadow: 0 40px 70px -28px rgba(7, 20, 41, 0.55);
}
.hero__visual-card img {
  width: 100%;
  border-radius: var(--radius-md);
  animation: floatY 5s ease-in-out infinite;
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.hero__thumbs {
  position: absolute;
  bottom: -26px;
  right: -18px;
  display: flex;
  gap: 10px;
}
.hero__thumbs img {
  width: 58px; height: 58px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--color-bg-soft);
  border: 3px solid #fff;
  box-shadow: 0 10px 20px -10px rgba(7, 20, 41, 0.4);
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { order: -1; max-width: 380px; margin: 0 auto; }
}

/* ==========================================================================
   شريط الثقة (نقاط عامة قصيرة)
   ========================================================================== */
.trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--color-line);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: calc(var(--section-pad) * -1 + 40px);
  position: relative;
  z-index: 2;
}
.trust__item {
  background: #fff;
  padding: 30px 22px;
  text-align: center;
}
.trust__item svg { width: 30px; height: 30px; color: var(--color-primary); margin: 0 auto 12px; }
.trust__item h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.trust__item p { font-size: 13px; color: var(--color-ink-soft); }

@media (max-width: 860px) {
  .trust { grid-template-columns: repeat(2, 1fr); margin-top: 30px; }
}

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

/* ==========================================================================
   أقسام المنتجات (مكرّرة لكل خط منتج)
   ========================================================================== */
.product-section__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.product-section__head .eyebrow { color: var(--accent, var(--color-primary)); }
.product-section__badges { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 700;
  padding: 8px 14px; border-radius: 999px;
  background: color-mix(in srgb, var(--accent, var(--color-primary)) 12%, white);
  color: var(--accent, var(--color-primary));
}

.product-section__list {
  margin-top: 22px;
  display: grid;
  gap: 12px;
}
.product-section__list li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 14.5px; color: var(--color-ink-soft);
}
.product-section__list li::before {
  content: "";
  width: 6px; height: 6px; margin-top: 8px;
  border-radius: 50%;
  background: var(--accent, var(--color-primary));
  flex-shrink: 0;
}

/* شبكة صور المنتجات (4 أو 3 صور) */
.product-grid {
  display: grid;
  gap: 20px;
}
.product-grid--4 { grid-template-columns: repeat(4, 1fr); }
.product-grid--3 { grid-template-columns: repeat(3, 1fr); }

.product-card {
  position: relative;
  background: var(--color-bg-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1 / 1;
}
.product-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.product-card:hover img { transform: scale(1.07) rotate(-1deg); }
.product-card::after {
  content: "";
  position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1px var(--color-line);
  border-radius: var(--radius-md);
  pointer-events: none;
}
.product-card__tag {
  position: absolute;
  top: 12px; right: 12px;
  background: #fff;
  color: var(--accent, var(--color-primary));
  font-size: 12px; font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  opacity: 0; transform: translateY(-6px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.product-card:hover .product-card__tag { opacity: 1; transform: translateY(0); }

/* تخطيط قسم منظف الزجاج (صورة واحدة فقط بجانب النص) */
.single-product {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(30px, 6vw, 70px);
  align-items: center;
}
.single-product__media {
  position: relative;
  background: var(--color-bg-soft);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
}
.single-product__media img {
  width: 100%;
  border-radius: var(--radius-md);
  transition: transform 0.8s var(--ease);
}
.single-product__media:hover img { transform: scale(1.03); }

@media (max-width: 900px) {
  .product-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .product-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .single-product { grid-template-columns: 1fr; }
  .single-product__media { order: -1; max-width: 420px; margin: 0 auto; }
}
@media (max-width: 520px) {
  .product-grid--4, .product-grid--3 { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}

/* خلفيات مقطع لكل قسم (لمسة لون بسيطة جداً في الزاوية) */
.section-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.16;
  z-index: 0;
  pointer-events: none;
}
.product-section { position: relative; overflow: hidden; }
.product-section > .container { position: relative; z-index: 1; }

/* ==========================================================================
   قسم التواصل
   ========================================================================== */
.contact {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  color: #fff;
  text-align: center;
}
.contact::before {
  content: "";
  position: absolute;
  width: 460px; height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.16), transparent 70%);
  top: -180px; left: -140px;
}
.contact__inner { max-width: 640px; margin: 0 auto; position: relative; z-index: 1; }
.contact h2 { color: #fff; }
.contact .lede { color: rgba(255,255,255,0.85); margin-inline: auto; }

.contact__actions {
  margin-top: 32px;
  display: flex; justify-content: center; gap: 16px; flex-wrap: wrap;
}
.contact__cards {
  margin-top: 44px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  text-align: right;
}
.contact__card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: background 0.35s var(--ease), transform 0.35s var(--ease);
}
.contact__card:hover { background: rgba(255,255,255,0.14); transform: translateY(-3px); }
.contact__card svg { width: 26px; height: 26px; flex-shrink: 0; }
.contact__card span { display: block; font-size: 12.5px; color: rgba(255,255,255,0.7); margin-bottom: 3px; }
.contact__card strong { font-size: 15px; word-break: break-word; }

@media (max-width: 640px) {
  .contact__cards { grid-template-columns: 1fr; text-align: center; }
  .contact__card { justify-content: center; }
}

/* ==========================================================================
   تذييل الصفحة
   ========================================================================== */
.footer { background: var(--color-ink); color: rgba(255,255,255,0.65); padding: 46px 0 26px; }
.footer__top {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 22px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer .brand { color: #fff; }
.footer__links { display: flex; gap: 24px; flex-wrap: wrap; font-size: 14px; }
.footer__links a:hover { color: #fff; }
.footer__bottom {
  padding-top: 22px;
  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: #25d366;
  display: grid; place-items: center;
  box-shadow: 0 14px 28px -10px rgba(0,0,0,0.4);
  transition: transform 0.35s var(--ease);
}
.float-whatsapp:hover { transform: scale(1.08); }
.float-whatsapp svg { color: #fff; }

/* ==========================================================================
   إمكانية الوصول والحركة المخفّفة
   ========================================================================== */
@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) {
  .float-whatsapp { width: 52px; height: 52px; bottom: 18px; left: 18px; }
  .hero__actions .btn { width: 100%; justify-content: center; }
}
