/* Partner / tenant theme overrides */

.hero__bg-layer {
  position: absolute;
  inset: 0;
}

.hero__bg--custom {
  background-image:
    linear-gradient(120deg, rgba(44, 62, 80, 0.88) 0%, rgba(44, 62, 80, 0.55) 45%, rgba(36, 52, 66, 0.35) 100%),
    var(--hero-bg-image);
  background-size: cover;
  background-position: center;
}

.hero--carousel .hero__bg--slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
  pointer-events: none;
}

.hero--carousel .hero__bg--slide.is-active {
  opacity: 1;
}

.hero__carousel-dots {
  position: absolute;
  inset-inline: 0;
  bottom: 20px;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.hero__carousel-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.hero__carousel-dot.is-active {
  background: var(--color-primary, #d42f33);
  transform: scale(1.15);
}

.hero__bg--custom.hero__bg--promo {
  background-image:
    linear-gradient(120deg, rgba(44, 62, 80, 0.9) 0%, rgba(44, 62, 80, 0.6) 50%, rgba(36, 52, 66, 0.45) 100%),
    var(--hero-bg-image);
}

/* Arabic: copy sits on the right, so the dark side of the scrim must be the right too. */
[dir='rtl'] .hero__bg--custom {
  background-image:
    linear-gradient(240deg, rgba(44, 62, 80, 0.88) 0%, rgba(44, 62, 80, 0.55) 45%, rgba(36, 52, 66, 0.35) 100%),
    var(--hero-bg-image);
}

[dir='rtl'] .hero__bg--custom.hero__bg--promo {
  background-image:
    linear-gradient(240deg, rgba(44, 62, 80, 0.9) 0%, rgba(44, 62, 80, 0.6) 50%, rgba(36, 52, 66, 0.45) 100%),
    var(--hero-bg-image);
}

/* The default hero picture (hero-bg.png) has its navy fade baked in, strongest on the left.
   For Arabic, where the copy is on the right, mirror it so the fade sits under the text. */
[dir='rtl'] .hero__bg:not(.hero__bg--custom) {
  transform: scaleX(-1);
}

/* Phones: the copy spans the full width, so darken the whole photo evenly (both languages). */
@media (max-width: 768px) {
  .hero__bg--custom,
  [dir='rtl'] .hero__bg--custom {
    background-image:
      linear-gradient(180deg, rgba(31, 45, 58, 0.88) 0%, rgba(31, 45, 58, 0.78) 100%),
      var(--hero-bg-image);
  }

  /* Default hero picture: add the same even darkening the custom ones get. */
  .hero__bg:not(.hero__bg--custom)::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(31, 45, 58, 0.4);
  }

  /* Brand red is too dim on a dark photo at phone size; use a lighter red for the accent line. */
  #hero .hero__title-line--accent {
    color: #ff6b6e;
  }
}

.nav__logo img {
  max-height: 46px;
  width: auto;
  object-fit: contain;
}

body {
  background-color: var(--color-bg);
}

/* A partner's own store: its logo keeps its own shape in the footer instead of Waki's
   wide 118×42 box, so a stacked logo is shown large enough to read. */
.store-own-brand .footer__logo img {
  width: auto;
  height: auto;
  max-width: 190px;
  max-height: 104px;
}

@media (max-width: 768px) {
  .store-own-brand .footer__logo img {
    max-width: 150px;
    max-height: 84px;
  }
}
