/* ============================================================
   AREEQ — RTL Monochrome Theme with Motion & Local Images
   ============================================================ */

:root {
  --bg: #ffffff;
  --fg: #000000;
  --muted: #7a7a7a;
  --border: #111111;
}

/* tajawal-regular - arabic_latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 400;
  src: url('/assets/vendor/tajawal-v10-arabic_latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

html, body {
  background-color: var(--bg);
  color: var(--fg);
  scroll-behavior: smooth;
}

body { position: relative; letter-spacing: 0.02em; overflow-x: hidden;}

/* -------- محمّل الصفحة -------- */
.page-loader {
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 2000;
  opacity: 1; visibility: visible;
  transition: opacity 400ms ease, visibility 400ms ease;
}
body.is-ready .page-loader { opacity: 0; visibility: hidden; }

/* -------- مساعدات -------- */
.tracking-wide { letter-spacing: 0.12em; text-transform: uppercase; }

/* أقسام */
.section-pad { padding: 96px 0; }
.section-light { background: var(--bg); color: var(--fg); }
.section-dark  { background: var(--fg); color: var(--bg); }

/* البطل */
.section-hero-light {
  padding-top: 70px;
  background: var(--bg);
  color: var(--fg);
}
.section-hero-light .carousel,
.section-hero-light .carousel .carousel-inner,
.section-hero-light .slide-media {
  min-height: calc(100vh - 72px);
}

/* عناصر تحكم السلايدر على خلفية فاتحة */
.carousel-control-prev-icon,
.carousel-control-next-icon { filter: invert(1) grayscale(1); }

/* الخلفيات وتأثير Ken Burns */
.slide-media {
  display: grid; place-items: center;
  position: relative; overflow: hidden;
  background: #f7f7f7;
}
.slide-kenburns::before {
  content: ""; position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1);
  animation: kenburns 12s ease-in-out infinite;
  opacity: 0.25;
}

@keyframes kenburns {
  0% { transform: scale(1) translate3d(0,0,0); }
  50% { transform: scale(1.08) translate3d(0,0,0); }
  100% { transform: scale(1) translate3d(0,0,0); }
}

/* العناوين بمنطق RTL */
.section-title {
  font-weight: 700;
  text-transform: uppercase;
  border-inline-start: 4px solid currentColor;
  padding-inline-start: 12px;
  margin-bottom: 12px;
}
.section-subtitle {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
}

/* البطاقات والعناصر البديلة */
.product-card, .brand-card {
  border: 1px solid var(--border);
  background: var(--bg);
  transition: transform 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}
.product-card:hover, .brand-card:hover { border-color: var(--fg); }
.hover-raise:hover { transform: translateY(-4px); }
.product-media {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: grid; place-items: center;
}

/* تكبير الصور عند التحويم */
.hover-zoom { overflow: hidden; }
.hover-zoom > * {
  transition: transform 500ms ease, filter 400ms ease;
  filter: grayscale(0.4) contrast(1);
}
.hover-zoom:hover > * {
  transform: scale(1.05);
  filter: grayscale(0) contrast(1.05);
}

/* إطارات */
.frame-block { outline: 1px solid currentColor; display: grid; place-items: center; }

/* صور تملأ حاوية .ratio */
.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* روابط متحركة */
.animated-link {
  position: relative;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0% 1px;
  transition: background-size 240ms ease, color 240ms ease;
}
.animated-link:hover { background-size: 100% 1px; }

/* كاشف التمرير */
[data-animate] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 520ms ease, transform 520ms ease, filter 520ms ease;
  will-change: transform, opacity, filter;
}
[data-animate="fade"]      { transform: none; }
[data-animate="fade-up"]   { transform: translateY(16px); }
[data-animate="fade-down"] { transform: translateY(-16px); }
[data-animate="fade-left"] { transform: translateX(-20px); }
[data-animate="fade-right"]{ transform: translateX(20px); }
[data-animate="zoom-in"]   { transform: scale(0.96); }
[data-animate="blur-in"]   { filter: blur(8px); transform: translateY(8px); }
[data-animate].in-view { opacity: 1; transform: none; filter: none; }

/* روابط التذييل */
footer a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
footer a:hover { border-color: currentColor; }

/* تقليل الحركة */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 20ms !important;
    animation-iteration-count: 2 !important;
    transition-duration: 2ms !important;
    scroll-behavior: auto !important;
  }
}


*{
  font-family: "Tajawal", sans-serif;
  font-weight: 400;
  font-style: normal;
}

/******************************************************/
.marquee {
  display: flex;
  block-size: var(--marquee-item-height);
  /*margin-block: var(--marquee-item-height);*/
  position: relative;
  overflow-x: hidden;
  mask-image: linear-gradient(
    to right,
    hsl(0 0% 0% / 0),
    hsl(0 0% 0% / 1) 20%,
    hsl(0 0% 0% / 1) 80%,
    hsl(0 0% 0% / 0)
  );
}

.marquee--8 {
  --marquee-item-width: 100px;
  --marquee-item-height: 100px;
  --marquee-duration: 36s;
  --marquee-items: 8;
}

.marquee__item {
  --marquee-item-offset: max(
    calc(var(--marquee-item-width) * var(--marquee-items)),
    calc(100% + var(--marquee-item-width))
  );
  --marquee-delay: calc(var(--marquee-duration) / var(--marquee-items) * (var(--marquee-items) - var(--marquee-item-index)) * -1);
  position: absolute;
  inset-inline-start: var(--marquee-item-offset);
  transform: translateX(-50%);
  animation: go linear var(--marquee-duration) var(--marquee-delay, 0s) infinite;
}

.marquee__item:nth-child(4n) {
  border-top-right-radius: 1rem;
}

.marquee__item:nth-child(4n + 1) {
  border-bottom-right-radius: 1rem;
}

.marquee__item:nth-child(4n + 2) {
  border-bottom-left-radius: 1rem;
}

.marquee__item:nth-child(4n + 3) {
  border-top-left-radius: 1rem;
}

.marquee--8 .marquee__item:nth-of-type(1) {
  --marquee-item-index: 1;
}

.marquee--8 .marquee__item:nth-of-type(2) {
  --marquee-item-index: 2;
}

.marquee--8 .marquee__item:nth-of-type(3) {
  --marquee-item-index: 3;
}

.marquee--8 .marquee__item:nth-of-type(4) {
  --marquee-item-index: 4;
}

.marquee--8 .marquee__item:nth-of-type(5) {
  --marquee-item-index: 5;
}

.marquee--8 .marquee__item:nth-of-type(6) {
  --marquee-item-index: 6;
}

.marquee--8 .marquee__item:nth-of-type(7) {
  --marquee-item-index: 7;
}

.marquee--8 .marquee__item:nth-of-type(8) {
  --marquee-item-index: 8;
}

@keyframes go {
  to {  
    inset-inline-start: calc(var(--marquee-item-width) * -1);
  }
}

/******************************************************/


/* Random Fact *********************************************/
.quotation {
      background: #fff;
      border-right: 6px solid #222;
      margin: 20px auto;
      padding: 10px 20px;
      max-width: 800px;
      color: #111;
      box-shadow: 0 2px 10px rgba(0,0,0,0.03);
      font-size: 1.35rem;
      line-height: 1.7;
      position: relative;
      text-align: right;
    }

    .quotation:before {
      content: "“";
      font-size: 3rem;
      color: #222;
      position: absolute;
      right: 20px;
      top: -10px;
      line-height: 1;
      font-family: serif;
      transform: scaleX(-1);
    }

    .quotation cite {
      display: block;
      text-align: left;
      margin-top: 22px;
      font-style: normal;
      color: #444;
      font-size: 1rem;
      direction: ltr;
    }
/* /Random Fact *********************************************/

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  color: white;
  font-size: 2rem;
  transition: all 0.3s ease;
  text-decoration: none;
}
.social-btn:hover {
  transform: scale(1.1);
  opacity: 0.9;
}