/* ==========================================================
   AEC RESPONSIVE HERO — SWIPER
   Replaces Revolution Slider on the home page.
   ========================================================== */

.aec-hero {
  position: relative;
  width: 100%;
  height: clamp(560px, 46.875vw, 900px);
  overflow: hidden;
  background: #071522;
}

.aec-hero__slider,
.aec-hero__slider .swiper-wrapper,
.aec-hero__slider .swiper-slide {
  width: 100%;
  height: 100%;
}

.aec-hero__slider .swiper-slide {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #071522;
}

.aec-hero__picture,
.aec-hero__image,
.aec-hero__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.aec-hero__picture {
  display: block;
}

.aec-hero__image {
  display: block;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.01);
}

.aec-hero__shade {
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(3, 15, 27, .72) 0%, rgba(3, 15, 27, .28) 58%, rgba(3, 15, 27, .12) 100%),
    linear-gradient(0deg, rgba(3, 15, 27, .78) 0%, rgba(3, 15, 27, .04) 58%);
}

.aec-hero__shade--anniversary {
  background: linear-gradient(0deg, rgba(3, 15, 27, .45) 0%, transparent 42%);
}

.aec-hero__content {
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  display: flex;
  align-items: flex-end;
  width: min(1180px, calc(100% - 150px));
  height: 100%;
  margin: 0 auto;
  padding: 150px 0 76px;
  color: #fff;
  text-align: left;
}

.aec-hero__content-inner {
  max-width: 930px;
}

.aec-hero__content--anniversary {
  align-items: flex-end;
  padding-bottom: 58px;
}

.aec-hero__content--anniversary .aec-hero__content-inner {
  width: min(530px, 46vw);
  text-align: center;
}

.aec-hero__title {
  max-width: 920px;
  margin: 0 0 17px;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(32px, 3.2vw, 58px);
  font-weight: 750;
  line-height: 1.08;
  letter-spacing: -.025em;
  text-wrap: balance;
  text-shadow: 0 3px 12px rgba(0, 0, 0, .72);
}

.aec-hero__text {
  max-width: 840px;
  margin: 0 0 28px;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(16px, 1.3vw, 22px);
  font-weight: 500;
  line-height: 1.45;
  text-wrap: pretty;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .78);
}

.aec-hero__button.project-button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  min-width: 205px;
  min-height: 60px;
  padding: 13px 25px;
  border: 3px solid #fff;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 18px !important;
  font-weight: 750;
  line-height: 1.2 !important;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 2px 4px rgba(0, 0, 0, .55);
}

.aec-hero__button i {
  margin-right: 10px;
}

.aec-hero__slider .swiper-button-prev,
.aec-hero__slider .swiper-button-next {
  width: 50px;
  height: 64px;
  margin-top: -32px;
  border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(0, 0, 0, .34);
  color: #fff;
  transition: background .2s ease, border-color .2s ease;
}

.aec-hero__slider .swiper-button-prev {
  left: 16px;
}

.aec-hero__slider .swiper-button-next {
  right: 16px;
}

.aec-hero__slider .swiper-button-prev:hover,
.aec-hero__slider .swiper-button-next:hover,
.aec-hero__slider .swiper-button-prev:focus-visible,
.aec-hero__slider .swiper-button-next:focus-visible {
  border-color: rgba(255, 255, 255, .8);
  background: rgba(0, 0, 0, .62);
}

.aec-hero__slider .swiper-button-prev::after,
.aec-hero__slider .swiper-button-next::after {
  font-size: 23px;
  font-weight: 700;
}

.aec-hero__slider .swiper-pagination {
  bottom: 22px !important;
}

.aec-hero__slider .swiper-pagination-bullet {
  width: 11px;
  height: 11px;
  margin: 0 6px !important;
  background: #fff;
  opacity: .55;
}

.aec-hero__slider .swiper-pagination-bullet-active {
  background: #dca53b;
  opacity: 1;
}

/* A usable first-slide fallback when the Swiper CDN is temporarily unavailable. */
.aec-hero__slider:not(.swiper-initialized) .swiper-slide:not(:first-child) {
  display: none;
}

.aec-hero__slider:not(.swiper-initialized) .swiper-button-prev,
.aec-hero__slider:not(.swiper-initialized) .swiper-button-next,
.aec-hero__slider:not(.swiper-initialized) .swiper-pagination {
  display: none;
}

@media (max-width: 1199px) {
  .aec-hero {
    height: 660px;
  }

  .aec-hero__content {
    width: min(960px, calc(100% - 120px));
    padding-top: 145px;
    padding-bottom: 72px;
  }

  .aec-hero__content--anniversary .aec-hero__content-inner {
    width: min(500px, 55vw);
  }
}

@media (max-width: 767px) {
  .aec-hero {
    height: clamp(620px, 86svh, 760px);
    min-height: 620px;
  }

  .aec-hero__shade {
    background: linear-gradient(0deg, rgba(3, 15, 27, .90) 0%, rgba(3, 15, 27, .42) 48%, rgba(3, 15, 27, .08) 76%);
  }

  .aec-hero__shade--anniversary {
    background: linear-gradient(0deg, rgba(3, 15, 27, .55) 0%, transparent 34%);
  }

  .aec-hero__content {
    width: calc(100% - 44px);
    padding: 105px 0 72px;
    text-align: center;
  }

  .aec-hero__content-inner {
    width: 100%;
    max-width: 100%;
  }

  .aec-hero__content--anniversary {
    padding-bottom: 66px;
  }

  .aec-hero__content--anniversary .aec-hero__content-inner {
    width: 100%;
  }

  .aec-hero__title {
    margin-bottom: 13px;
    font-size: clamp(28px, 8.3vw, 40px);
    line-height: 1.12;
  }

  .aec-hero__text {
    margin-bottom: 22px;
    font-size: clamp(15px, 4.2vw, 18px);
    line-height: 1.4;
  }

  .aec-hero__button.project-button {
    min-width: 184px;
    min-height: 52px;
    padding: 11px 20px;
    font-size: 16px !important;
  }

  .aec-hero__slider .swiper-button-prev,
  .aec-hero__slider .swiper-button-next {
    top: 48%;
    width: 39px;
    height: 50px;
    margin-top: -25px;
  }

  .aec-hero__slider .swiper-button-prev {
    left: 6px;
  }

  .aec-hero__slider .swiper-button-next {
    right: 6px;
  }

  .aec-hero__slider .swiper-button-prev::after,
  .aec-hero__slider .swiper-button-next::after {
    font-size: 18px;
  }

  .aec-hero__slider .swiper-pagination {
    bottom: 18px !important;
  }
}

@media (max-width: 420px) {
  .aec-hero {
    height: 700px;
  }

  .aec-hero__content {
    width: calc(100% - 36px);
  }

  .aec-hero__slider .swiper-button-prev,
  .aec-hero__slider .swiper-button-next {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aec-hero__image,
  .aec-hero__slider *,
  .aec-hero__slider *::before,
  .aec-hero__slider *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
