/* Abdulla Group homepage video slider enhancement. */
/* Animated media, reveal transforms, and closed mega-menu panels intentionally
   extend beyond their visual containers. Clip that paint overflow so they can
   never create a horizontal page scrollbar. */
html,
body {
  overflow-x: clip;
}

.hero.hero-photo[data-video-slider="ready"] {
  isolation: isolate;
  background: #050505;
}

.hero-slider-media,
.hero-slider-tint {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-slider-media {
  z-index: 0;
  overflow: hidden;
  background: #050505;
}

.hero-slider-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: scale(1.02);
  filter: saturate(.9) contrast(1.06) brightness(.86);
  transition: opacity 1.15s ease, transform 8s ease;
}

.hero-slider-video.is-active {
  opacity: 1;
  transform: scale(1.065);
}

.hero-slider-tint {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(3, 8, 14, .95) 0%, rgba(5, 11, 18, .84) 38%, rgba(6, 10, 14, .44) 68%, rgba(5, 5, 5, .58) 100%),
    linear-gradient(180deg, rgba(3, 6, 10, .2) 0%, rgba(5, 5, 5, .12) 52%, rgba(5, 5, 5, .86) 100%),
    linear-gradient(135deg, rgba(209, 173, 87, .16), transparent 44%);
}

.hero.hero-photo[data-video-slider="ready"]::before,
.hero.hero-photo[data-video-slider="ready"]::after {
  z-index: 2;
}

.hero.hero-photo[data-video-slider="ready"] > .container {
  z-index: 3;
}

.hero-slider-copy-changing {
  opacity: .15;
  transform: translateY(8px);
}

.hero.hero-photo[data-video-slider="ready"] .eyebrow,
.hero.hero-photo[data-video-slider="ready"] h1,
.hero.hero-photo[data-video-slider="ready"] .hero-lead {
  transition: opacity .28s ease, transform .28s ease;
}

.hero.hero-photo[data-video-slider="ready"] h1 {
  max-width: 16ch;
  margin-bottom: 20px;
  font-size: clamp(46px, 4.8vw, 66px) !important;
  line-height: 1.02;
}

.hero-slider-controls {
  position: absolute;
  z-index: 4;
  inset: 28px max(24px, calc((100vw - min(1220px, calc(100vw - 40px))) / 2)) auto auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border: 1px solid rgba(255, 240, 184, .26);
  border-radius: 999px;
  background: rgba(4, 7, 10, .58);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .32);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.hero-slider-arrow,
.hero-slider-toggle,
.hero-slider-dot {
  appearance: none;
  border: 0;
  color: #fffaf0;
  background: transparent;
  cursor: pointer;
}

.hero-slider-arrow,
.hero-slider-toggle {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 248, 234, .2);
  font: inherit;
  font-size: 1rem;
  line-height: 1;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}

.hero-slider-arrow:hover,
.hero-slider-toggle:hover,
.hero-slider-arrow:focus-visible,
.hero-slider-toggle:focus-visible {
  color: #17130b;
  background: #fff0b8;
  border-color: #fff0b8;
  outline: none;
}

.hero-slider-dots {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 2px;
}

.hero-slider-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 248, 234, .42);
  transition: width .24s ease, background .24s ease;
}

.hero-slider-dot[aria-current="true"] {
  width: 28px;
  background: #fff0b8;
}

.hero-slider-dot:focus-visible {
  outline: 2px solid #fff0b8;
  outline-offset: 4px;
}

.hero-slider-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 680px) {
  .hero.hero-photo .hero-grid {
    padding-top: 38px;
  }

  .hero.hero-photo h1 {
    max-width: 13ch;
    font-size: clamp(40px, 11.5vw, 48px) !important;
    line-height: 1.06;
  }

  .hero-slider-video {
    object-position: 55% center;
  }

  .hero-slider-tint {
    background:
      linear-gradient(90deg, rgba(3, 8, 14, .94), rgba(4, 9, 15, .72)),
      linear-gradient(180deg, rgba(5, 5, 5, .14), rgba(5, 5, 5, .9)),
      linear-gradient(135deg, rgba(209, 173, 87, .15), transparent 48%);
  }

  .hero-slider-controls {
    inset: 14px 20px auto auto;
    gap: 7px;
    padding: 7px 9px;
  }

  .hero-slider-arrow,
  .hero-slider-toggle {
    width: 34px;
    height: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slider-video,
  .hero.hero-photo[data-video-slider="ready"] .eyebrow,
  .hero.hero-photo[data-video-slider="ready"] h1,
  .hero.hero-photo[data-video-slider="ready"] .hero-lead,
  .hero-slider-dot {
    transition: none;
  }

  .hero-slider-video.is-active {
    transform: none;
  }
}
