/* Qoffa Smart — v12 supplied campaign assets
   Keep the supplied photography as the hero source. Text stays in the quiet side of each composition. */

body.index-page .banner-carousel {
  height: clamp(500px, 51vw, 700px);
  min-height: 500px;
  aspect-ratio: 16 / 8.2;
  background: #173326;
}

body.index-page #bannerSlides {
  position: relative;
  height: 100%;
  min-height: inherit;
}

body.index-page .banner-slide,
body.index-page .banner-media {
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
}

body.index-page .banner-media {
  position: absolute;
  inset: 0;
  height: 100%;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

body.index-page .banner-slide[data-index='0'] .banner-media {
  background-image: url('../images/qoffa-hero-fresh.png');
  background-position: center center;
}

body.index-page .banner-slide[data-index='1'] .banner-media {
  background-image: url('../images/qoffa-delivery-promise.png');
  background-position: 58% center;
}

body.index-page .banner-slide[data-index='2'] .banner-media {
  background-image: url('../images/qoffa-category-produce.png');
  background-position: center center;
}

body.index-page .banner-media img,
body.index-page .banner-media video,
body.index-page .banner-media iframe {
  display: none !important;
}

body.index-page .banner-media::after {
  content: '' !important;
  position: absolute;
  inset: 0;
  display: block !important;
  pointer-events: none;
  z-index: 1;
}

body.index-page .banner-slide[data-index='0'] .banner-media::after {
  background: linear-gradient(90deg, rgba(18, 48, 34, .74) 0%, rgba(18, 48, 34, .40) 34%, rgba(18, 48, 34, .04) 66%);
}

body.index-page .banner-slide[data-index='1'] .banner-media::after {
  background: linear-gradient(90deg, rgba(18, 48, 34, .67) 0%, rgba(18, 48, 34, .30) 33%, rgba(18, 48, 34, .02) 68%);
}

body.index-page .banner-slide[data-index='2'] .banner-media::after {
  background: linear-gradient(90deg, rgba(18, 48, 34, .72) 0%, rgba(18, 48, 34, .34) 34%, rgba(18, 48, 34, .03) 68%);
}

body.index-page .banner-overlay,
body.index-page .banner-slide[data-index='1'] .banner-overlay,
body.index-page .banner-slide[data-index='2'] .banner-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  pointer-events: none;
  background: transparent;
  text-align: left;
}

body.index-page .banner-overlay::before,
body.index-page .banner-slide[data-index='1'] .banner-overlay::before,
body.index-page .banner-slide[data-index='2'] .banner-overlay::before {
  content: 'QOFFA SMART';
  position: absolute;
  top: 10%;
  right: auto;
  left: 7%;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  width: max-content;
  border: 1px solid rgba(230, 194, 112, .72);
  border-radius: 999px;
  background: rgba(20, 50, 35, .66);
  color: #f5d994;
  padding: 8px 13px;
  font: 900 .61rem/.95 'DM Sans', sans-serif;
  letter-spacing: .16em;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .16);
  backdrop-filter: blur(10px);
}

body.index-page .banner-overlay::after,
body.index-page .banner-slide[data-index='1'] .banner-overlay::after,
body.index-page .banner-slide[data-index='2'] .banner-overlay::after {
  content: 'طازجة، مختارة بعناية، واصلة حتى لباب دارك';
  position: absolute;
  top: 29%;
  right: auto;
  left: 7%;
  z-index: 5;
  display: block;
  width: min(38%, 530px);
  max-width: 530px;
  border: 0;
  border-left: 2px solid #e5bf68;
  border-radius: 0 14px 14px 0;
  background: rgba(17, 48, 34, .60);
  color: #fffdf4;
  padding: 14px 20px;
  font-size: clamp(1.05rem, 1.7vw, 1.5rem);
  font-weight: 850;
  line-height: 1.8;
  text-align: left;
  text-shadow: 0 3px 16px rgba(0, 0, 0, .42);
}

body.index-page .banner-slide[data-index='1'] .banner-overlay::after {
  content: 'من الاختيار حتى التوصيل، قفتك كتوصلك طازجة لباب دارك';
}

body.index-page .banner-slide[data-index='2'] .banner-overlay::after {
  content: 'فواكه، خضر، أعشاب وباقات جاهزة لكل احتياجات دارك';
}

body.index-page .banner-cta,
body.index-page .banner-slide[data-index='1'] .banner-cta,
body.index-page .banner-slide[data-index='2'] .banner-cta {
  position: absolute;
  right: auto;
  bottom: 12%;
  left: 7%;
  z-index: 7;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, .58);
  border-radius: 14px;
  background: #d6ed80;
  color: #14271e;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .22);
  padding: 12px 22px;
  font-size: .86rem;
  font-weight: 900;
  pointer-events: auto;
}

body.index-page .banner-cta:hover {
  background: #f2d486;
  color: #14271e;
  transform: translateY(-3px);
}

body.index-page .banner-dots {
  z-index: 9;
  right: 50%;
  bottom: 16px;
  left: auto;
  transform: translateX(50%);
  border: 1px solid rgba(255, 255, 255, .30);
  background: rgba(17, 48, 34, .60);
  padding: 7px 10px;
}

@media (max-width: 820px) {
  body.index-page .banner-carousel {
    height: auto;
    min-height: 0;
    aspect-ratio: 1 / 1;
  }

  body.index-page .banner-slide[data-index='0'] .banner-media {
    background-position: 73% 50%;
  }

  body.index-page .banner-slide[data-index='1'] .banner-media {
    background-position: 75% 54%;
  }

  body.index-page .banner-slide[data-index='2'] .banner-media {
    background-position: 67% 56%;
  }

  body.index-page .banner-slide[data-index='0'] .banner-media::after,
  body.index-page .banner-slide[data-index='1'] .banner-media::after,
  body.index-page .banner-slide[data-index='2'] .banner-media::after {
    background: linear-gradient(180deg, rgba(17, 48, 34, .72) 0%, rgba(17, 48, 34, .28) 29%, rgba(17, 48, 34, .02) 57%, rgba(17, 48, 34, .42) 100%);
  }

  body.index-page .banner-overlay::before,
  body.index-page .banner-slide[data-index='1'] .banner-overlay::before,
  body.index-page .banner-slide[data-index='2'] .banner-overlay::before {
    top: 5%;
    right: 50%;
    left: auto;
    transform: translateX(50%);
    padding: 7px 11px;
    font-size: .56rem;
  }

  body.index-page .banner-overlay::after,
  body.index-page .banner-slide[data-index='1'] .banner-overlay::after,
  body.index-page .banner-slide[data-index='2'] .banner-overlay::after {
    top: 15%;
    right: 6%;
    left: 6%;
    width: auto;
    max-width: none;
    border: 0;
    border-top: 2px solid #e5bf68;
    border-radius: 0 0 14px 14px;
    background: rgba(17, 48, 34, .70);
    padding: 11px 13px;
    font-size: .82rem;
    line-height: 1.7;
    text-align: center;
  }

  body.index-page .banner-slide[data-index='0'] .banner-overlay::after,
  body.index-page .banner-slide[data-index='1'] .banner-overlay::after,
  body.index-page .banner-slide[data-index='2'] .banner-overlay::after {
    right: 27%;
    left: 6%;
    text-align: left;
  }

  body.index-page .banner-cta,
  body.index-page .banner-slide[data-index='1'] .banner-cta,
  body.index-page .banner-slide[data-index='2'] .banner-cta {
    right: 50%;
    bottom: 8%;
    left: auto;
    transform: translateX(50%);
    min-height: 44px;
    padding: 10px 17px;
    font-size: .74rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.index-page .banner-media,
  body.index-page .banner-cta {
    transition: none !important;
  }
}
