/* Nesty Content — Hero Carousel
   Fonts (Aileron + Libre Caslon Condensed) are self-hosted by the
   twentytwentyone-child theme — see scss/_fonts.scss. */

.cew-hc {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #131313;
}

/* ── Slide ── */
.cew-hc__slide {
  position: relative;
  display: flex;
  flex-shrink: 0;   /* prevents slides collapsing in the flex wrapper */
  width: 100%;
  overflow: hidden;
}

.cew-hc__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
}

/* Mobile image: hidden on desktop, shown on mobile */
.cew-hc__bg--mobile {
  display: none;
}

@media (max-width: 767px) {
  /* If a mobile image exists, hide desktop and show mobile */
  .cew-hc__slide:has(.cew-hc__bg--mobile) .cew-hc__bg--desktop {
    display: none;
  }
  .cew-hc__bg--mobile {
    display: block;
  }
}

.cew-hc__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 100%);
  pointer-events: none;
}

/* ── Content ── */
.cew-hc__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 275px 0px 40px;
}

/* ── Heading ── */
.cew-hc__heading {
  margin: 0 0 90px;
  color: #fff;
  font-size: 72px;
  line-height: 0.92;
  letter-spacing: -0.05em;
  font-family: "Aileron", "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
}

.cew-hc__line {
  display: block;
}

.cew-hc__accent {
  font-family: "Libre Caslon Condensed", Georgia, serif;
  font-style: italic;
  font-weight: 500;
}

/* ── Sub-text + divider + button ── */
.cew-hc__subtext {
  margin: 0;
  max-width: 445px;
  color: #fff;
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  font-family: "Aileron", "Helvetica Neue", Arial, sans-serif;
}

.cew-hc__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  padding: 14px 24px;
  border-radius: 8px;
  background: #131313;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  font-family: "Aileron", "Helvetica Neue", Arial, sans-serif;
  transition: background 0.25s ease, color 0.25s ease;
}

.cew-hc__btn:hover {
  background: #fff;
  color: #131313;
}

/* ── Arrows ── */
.cew-hc__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  cursor: pointer;
  transition: background 0.25s ease;
}

.cew-hc__arrow:hover {
  background: rgba(0, 0, 0, 0.5);
}

.cew-hc__arrow svg {
  width: 24px;
  height: 24px;
}

.cew-hc__arrow--prev {
  left: 24px;
}

.cew-hc__arrow--next {
  right: 24px;
}

/* ── Pagination: thin line-bars (matches the design's divider style) ── */
.cew-hc .swiper-pagination {
  position: relative !important;
  bottom: auto !important;
  width: auto !important;
  transform: none !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 18px 0;
  z-index: 2;
}

.cew-hc .swiper-pagination-bullet {
  width: 22px;
  height: 2px;
  margin: 0 !important;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 1;
  transition: background 0.25s ease, width 0.25s ease;
}

.cew-hc .swiper-pagination-bullet-active {
  width: 32px;
  background: #fff;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .cew-hc__heading {
    font-size: 55px !important;
    margin-bottom: 60px;
  }
}

@media (max-width: 768px) {
  .cew-hc__heading {
    font-size: 45px !important;
    margin-bottom: 20px;
  }
  .cew-hc__btn {
    font-size: 18px;
  }
  .cew-hc__arrow {
    width: 40px;
    height: 40px;
  }
  .cew-hc__arrow--prev {
    left: 10px;
  }
  .cew-hc__arrow--next {
    right: 10px;
  }
}

@media (max-width: 600px) {
  .cew-hc__heading {
    line-height: 48px;
    letter-spacing: -1.005px;
  }
  .cew-hc__bg {
    background-position: center;
  }
  .cew-hc__content{
    justify-content: unset;
  }
}

@media (max-width: 400px) {
  .cew-hc__heading {
    font-size: 40px !important;
  }
}

/* ── Carousel disabled on this device (per-device toggle) ── */
.cew-hc--disabled .swiper-slide-hero-carousel:not(:first-child) {
  display: none !important;
}
.cew-hc--disabled .cew-hc__arrow,
.cew-hc--disabled .swiper-pagination {
  display: none !important;
}
.cew-hc--disabled .swiper-wrapper {
  transform: none !important;
  transition: none !important;
}