/* ==========================================================================
   Avenik Technology — Homepage Hero
   Semantic 7-slide hero.
   All copy remains in index.html for SEO, accessibility and maintainability.
   ========================================================================== */

.avenik-hero {
  position: relative;
  min-height: clamp(680px, 88vh, 920px);
  overflow: hidden;
  background: #050505;
  color: var(--foreground, #fff);
}

.avenik-hero__slides {
  position: relative;
  min-height: inherit;
}

.avenik-hero__slide {
  position: absolute;
  inset: 0;
  display: grid;
  min-height: inherit;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 900ms ease,
    visibility 900ms ease;
}

.avenik-hero__slide.is-active {
  position: relative;
  z-index: 2;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.avenik-hero__media,
.avenik-hero__media img,
.avenik-hero__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.avenik-hero__media img {
  object-fit: cover;
  object-position: center;
  transform: scale(1.015);
  transition: transform 8s ease;
}

.avenik-hero__slide.is-active .avenik-hero__media img {
  transform: scale(1.055);
}

.avenik-hero__overlay {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.66) 42%, rgba(0, 0, 0, 0.20) 72%, rgba(0, 0, 0, 0.12) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.62) 0%, transparent 42%);
}

.avenik-hero__container {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  width: min(100% - 3rem, 1500px);
  min-height: inherit;
  margin-inline: auto;
  padding-block: 7.5rem 6rem;
}

.avenik-hero__content {
  width: min(760px, 72vw);
}


/* --------------------------------------------------------------------------
   Slide 1 — approved UAE overview composition
   Keep the location artwork visible and center the copy as in the reference.
   -------------------------------------------------------------------------- */
.avenik-hero__slide:first-child .avenik-hero__overlay {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.10) 0%, rgba(0, 0, 0, 0.02) 48%, rgba(0, 0, 0, 0.08) 100%);
}

.avenik-hero__slide:first-child .avenik-hero__container {
  align-items: flex-start;
  justify-content: center;
  padding-top: clamp(3.2rem, 5.8vh, 5.4rem);
  padding-bottom: 2rem;
}

.avenik-hero__slide:first-child .avenik-hero__content {
  width: min(1180px, 90vw);
  margin-inline: auto;
  text-align: center;
}

.avenik-hero__slide:first-child .avenik-hero__eyebrow {
  display: none;
}

.avenik-hero__slide:first-child .avenik-hero__title {
  max-width: 1180px;
  margin-inline: auto;
  font-size: clamp(2.65rem, 4.65vw, 5rem);
  font-weight: 650;
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.24);
}

.avenik-hero__slide:first-child .avenik-hero__title span {
  margin-top: 0.08em;
  color: #fff;
}

.avenik-hero__slide:first-child .avenik-hero__services {
  max-width: 1180px;
  margin: 1.15rem auto 0;
  font-size: clamp(0.72rem, 1.05vw, 1rem);
  line-height: 1.65;
  letter-spacing: 0.035em;
  color: var(--brand-primary, #d8b36a);
}

.avenik-hero__slide:first-child .avenik-hero__description {
  max-width: 850px;
  margin: 1.2rem auto 0;
  font-size: clamp(0.92rem, 1.05vw, 1.08rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.25);
}

.avenik-hero__slide:first-child .avenik-hero__actions {
  justify-content: center;
  margin-top: 1.15rem;
}

/* Service slides 2–7: keep the original-style compact heading hierarchy. */
.avenik-hero__slide:not(:first-child) .avenik-hero__title span {
  margin-top: 0.08em;
  font-size: 0.78em;
  line-height: 1.08;
}

.avenik-hero__eyebrow {
  margin: 0 0 1.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brand-primary, #d8b36a);
}

.avenik-hero__title {
  margin: 0;
  max-width: 850px;
  font-size: clamp(2.35rem, 4.15vw, 4.6rem);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.045em;
  color: var(--foreground, #fff);
}

.avenik-hero__title span {
  display: block;
  margin-top: 0.12em;
  color: var(--brand-primary, #d8b36a);
}

.avenik-hero__services {
  margin: 1.75rem 0 0;
  max-width: 760px;
  font-size: clamp(0.68rem, 0.85vw, 0.86rem);
  font-weight: 600;
  line-height: 1.9;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--brand-primary, #d8b36a);
}

.avenik-hero__description {
  margin: 1.25rem 0 0;
  max-width: 650px;
  font-size: clamp(0.94rem, 1.02vw, 1.05rem);
  line-height: 1.65;
  color: var(--foreground-muted, rgba(255, 255, 255, 0.72));
}

.avenik-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.55rem;
}

.avenik-hero__button {
  display: inline-flex;
  min-height: 3.5rem;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.9rem 1.7rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    transform 250ms ease,
    border-color 250ms ease,
    background-color 250ms ease,
    color 250ms ease,
    filter 250ms ease;
}

.avenik-hero__button:hover {
  transform: translateY(-2px);
}

.avenik-hero__button--primary {
  background: var(--brand-primary, #d8b36a);
  color: #050505;
}

.avenik-hero__button--primary:hover {
  filter: brightness(1.08);
}

.avenik-hero__button--secondary {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  backdrop-filter: blur(12px);
}

.avenik-hero__button--secondary:hover {
  border-color: var(--brand-primary, #d8b36a);
}

.avenik-hero__navigation {
  position: absolute;
  z-index: 5;
  top: 50%;
  right: clamp(1.5rem, 3vw, 3.5rem);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  transform: translateY(-50%);
}

.avenik-hero__navigation button {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  min-width: 3.25rem;
  padding: 0.3rem 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: color 250ms ease;
}

.avenik-hero__navigation button::after {
  content: "";
  width: 1.4rem;
  height: 1px;
  background: currentColor;
  transition: width 250ms ease;
}

.avenik-hero__navigation button.is-active {
  color: var(--brand-primary, #d8b36a);
}

.avenik-hero__navigation button.is-active::after {
  width: 3.2rem;
}

.avenik-hero__navigation span {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.avenik-hero__pause {
  position: absolute;
  z-index: 5;
  right: clamp(1.5rem, 3vw, 3.5rem);
  bottom: 2rem;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.avenik-hero__pause:hover {
  border-color: var(--brand-primary, #d8b36a);
  color: var(--brand-primary, #d8b36a);
}

@media (max-width: 900px) {
  .avenik-hero {
    min-height: 760px;
  }

  .avenik-hero__overlay {
    background:
      linear-gradient(90deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.55) 100%),
      linear-gradient(0deg, rgba(0, 0, 0, 0.78) 0%, transparent 58%);
  }

  .avenik-hero__container {
    align-items: flex-end;
    width: min(100% - 2rem, 1500px);
    padding-block: 7rem 6.5rem;
  }

  .avenik-hero__content {
    width: min(100%, 680px);
  }

  .avenik-hero__title {
    font-size: clamp(2.25rem, 7.5vw, 3.8rem);
  }

  .avenik-hero__slide:first-child .avenik-hero__container {
    align-items: flex-start;
    padding-top: 6.2rem;
  }

  .avenik-hero__slide:first-child .avenik-hero__title {
    font-size: clamp(2.45rem, 7.8vw, 4rem);
  }

  .avenik-hero__navigation {
    top: auto;
    right: auto;
    bottom: 1.8rem;
    left: 1rem;
    flex-direction: row;
    transform: none;
  }

  .avenik-hero__navigation button {
    min-width: auto;
  }

  .avenik-hero__navigation button::after {
    width: 0.8rem;
  }

  .avenik-hero__navigation button.is-active::after {
    width: 1.8rem;
  }

  .avenik-hero__pause {
    right: 1rem;
    bottom: 1.2rem;
  }
}

@media (max-width: 600px) {
  .avenik-hero {
    min-height: 720px;
  }

  .avenik-hero__container {
    padding-block: 6rem 6.8rem;
  }

  
/* --------------------------------------------------------------------------
   Slide 1 — approved UAE overview composition
   Keep the location artwork visible and center the copy as in the reference.
   -------------------------------------------------------------------------- */
.avenik-hero__slide:first-child .avenik-hero__overlay {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.10) 0%, rgba(0, 0, 0, 0.02) 48%, rgba(0, 0, 0, 0.08) 100%);
}

.avenik-hero__slide:first-child .avenik-hero__container {
  align-items: flex-start;
  justify-content: center;
  padding-top: clamp(3.2rem, 5.8vh, 5.4rem);
  padding-bottom: 2rem;
}

.avenik-hero__slide:first-child .avenik-hero__content {
  width: min(1180px, 90vw);
  margin-inline: auto;
  text-align: center;
}

.avenik-hero__slide:first-child .avenik-hero__eyebrow {
  display: none;
}

.avenik-hero__slide:first-child .avenik-hero__title {
  max-width: 1180px;
  margin-inline: auto;
  font-size: clamp(2.65rem, 4.65vw, 5rem);
  font-weight: 650;
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.24);
}

.avenik-hero__slide:first-child .avenik-hero__title span {
  margin-top: 0.08em;
  color: #fff;
}

.avenik-hero__slide:first-child .avenik-hero__services {
  max-width: 1180px;
  margin: 1.15rem auto 0;
  font-size: clamp(0.72rem, 1.05vw, 1rem);
  line-height: 1.65;
  letter-spacing: 0.035em;
  color: var(--brand-primary, #d8b36a);
}

.avenik-hero__slide:first-child .avenik-hero__description {
  max-width: 850px;
  margin: 1.2rem auto 0;
  font-size: clamp(0.92rem, 1.05vw, 1.08rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.25);
}

.avenik-hero__slide:first-child .avenik-hero__actions {
  justify-content: center;
  margin-top: 1.15rem;
}

/* Service slides 2–7: keep the original-style compact heading hierarchy. */
.avenik-hero__slide:not(:first-child) .avenik-hero__title span {
  margin-top: 0.08em;
  font-size: 0.78em;
  line-height: 1.08;
}

.avenik-hero__eyebrow {
    margin-bottom: 1rem;
    font-size: 0.6rem;
    letter-spacing: 0.2em;
  }

  .avenik-hero__title {
    font-size: clamp(2rem, 9.5vw, 3rem);
    line-height: 1.02;
  }

  .avenik-hero__slide:first-child .avenik-hero__container {
    padding-top: 5.4rem;
  }

  .avenik-hero__slide:first-child .avenik-hero__title {
    font-size: clamp(2.15rem, 10vw, 3.2rem);
  }

  .avenik-hero__slide:not(:first-child) .avenik-hero__services {
    display: none;
  }

  .avenik-hero__slide:first-child .avenik-hero__services {
    font-size: 0.62rem;
    line-height: 1.55;
  }

  .avenik-hero__description {
    margin-top: 1.25rem;
    font-size: 0.94rem;
    line-height: 1.65;
  }

  .avenik-hero__actions {
    margin-top: 1.6rem;
  }

  .avenik-hero__button {
    min-height: 3.25rem;
    padding-inline: 1.35rem;
  }

  .avenik-hero__navigation span {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .avenik-hero__slide,
  .avenik-hero__media img,
  .avenik-hero__button,
  .avenik-hero__navigation button::after {
    transition: none;
  }

  .avenik-hero__slide.is-active .avenik-hero__media img {
    transform: none;
  }
}

/* ==========================================================================
   FINAL HERO REFINEMENTS — Avenik
   ========================================================================== */

/* Smooth cinematic cross-fade */
.avenik-hero__slide {
  transition: opacity 0.9s ease-in-out, visibility 0.9s ease-in-out;
}

/* Slide 1: preserve clear space around the Abu Dhabi / Al Ain / Dubai artwork */
.avenik-hero__slide:first-child .avenik-hero__container {
  align-items: flex-start;
  justify-content: center;
  padding-top: clamp(2.8rem, 5vh, 4.5rem);
  padding-bottom: clamp(7.5rem, 16vh, 11rem);
}

.avenik-hero__slide:first-child .avenik-hero__content {
  width: min(1180px, 91vw);
  margin-inline: auto;
  text-align: center;
}

.avenik-hero__slide:first-child .avenik-hero__title {
  font-size: clamp(2.65rem, 4.35vw, 4.7rem);
  line-height: 1.01;
}

.avenik-hero__slide:first-child .avenik-hero__services {
  margin-top: 0.9rem;
  font-size: clamp(0.7rem, 0.96vw, 0.94rem);
  line-height: 1.55;
}

.avenik-hero__slide:first-child .avenik-hero__description {
  max-width: 830px;
  margin-top: 0.9rem;
  font-size: clamp(0.88rem, 0.98vw, 1.02rem);
  line-height: 1.5;
}

/* Put Slide 1 CTAs low over the water rather than through the location artwork */
.avenik-hero__slide:first-child .avenik-hero__actions {
  position: absolute;
  left: 50%;
  bottom: clamp(2.2rem, 5vh, 4rem);
  transform: translateX(-50%);
  width: max-content;
  max-width: 92vw;
  justify-content: center;
  margin: 0;
  z-index: 30;
}

/* Premium secondary CTA: solid, readable and deliberately less transparent */
.avenik-hero__button--secondary {
  background: rgba(8, 18, 31, 0.94);
  border-color: rgba(216, 179, 106, 0.9);
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  backdrop-filter: none;
}

.avenik-hero__button--secondary:hover {
  background: rgba(15, 29, 47, 0.98);
  border-color: var(--brand-primary, #d8b36a);
}

/* Slides 2–7: second headline supports rather than competes with the H2 */
.avenik-hero__slide:not(:first-child) .avenik-hero__title span {
  margin-top: 0.08em;
  font-size: 0.68em;
  line-height: 1.1;
}

/* Mobile: keep CTAs usable without covering the content */
@media (max-width: 640px) {
  .avenik-hero__slide:first-child .avenik-hero__container {
    padding-top: 5.2rem;
    padding-bottom: 8.5rem;
  }

  .avenik-hero__slide:first-child .avenik-hero__actions {
    bottom: 2rem;
    width: min(92vw, 430px);
  }

  .avenik-hero__slide:first-child .avenik-hero__actions .avenik-hero__button {
    flex: 1 1 auto;
  }
}

/* FINAL SLIDE 1 TYPOGRAPHY */

.avenik-hero__slide:first-child .avenik-hero__title {
  color: #d8b36a;
  font-size: clamp(3rem, 4.6vw, 4.9rem);
  font-weight: 650;
  line-height: 1;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.35),
    0 6px 20px rgba(0, 0, 0, 0.22);
}

.avenik-hero__slide:first-child .avenik-hero__title span {
  display: block;
  margin-top: 0.12em;
  color: #ffffff;
  font-size: 0.72em;
  font-weight: 600;
  line-height: 1.08;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.40),
    0 6px 18px rgba(0, 0, 0, 0.28);
}

.avenik-hero__slide:first-child .avenik-hero__services {
  color: #e4bd68;
  font-weight: 650;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.85),
    0 0 12px rgba(0, 0, 0, 0.45);
}

.avenik-hero__slide:first-child .avenik-hero__description {
  color: #ffffff;
  font-weight: 450;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.85),
    0 0 14px rgba(0, 0, 0, 0.42);
}
