.wp-block-acf-header-banner {
  position: relative;
  width: 100%;
  min-height: 520px;
  overflow: hidden;
}

.header-banner-wrapper {
  position: relative;
  z-index: 0;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #0a0a0a;
}

.wp-block-acf-header-banner picture.cp_img-wrap,
.wp-block-acf-header-banner img.cp_img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  z-index: 1;
}

.header-banner-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.62) 42%, rgba(0, 0, 0, 0.28) 70%, rgba(0, 0, 0, 0.15) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, transparent 28%, transparent 72%, rgba(0, 0, 0, 0.75) 100%);
}

.header-banner-wrapper::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 70px;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(to top, #0a0a0a 0%, transparent 100%);
}

.wp-block-acf-header-banner .ast-container {
  position: relative;
  z-index: 3;
  width: 100%;
}

.banner-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 120px 0 64px;
}

.wp-block-acf-header-banner .cp_content-box {
  position: relative;
  z-index: 3;
  width: 65%;
  max-width: 65%;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  color: #ffffff;
  text-align: left;
  flex: 0 1 65%;
}

.banner-layout.has-asset .cp_content-box {
  width: 65%;
  max-width: 65%;
}

.banner-asset {
  flex: 0 1 32%;
  max-width: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-asset-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.45));
  opacity: 0;
  transform: translateY(18px) scale(0.96);
  animation:
    assetIn 0.9s ease forwards,
    assetFloat 4.5s ease-in-out infinite;
  animation-delay: 0.25s, 1.1s;
}

.cp_content-box .banner-title,
.cp_content-box h1 {
  position: relative;
  z-index: 1;
  margin: 0 0 18px;
  color: #ffffff;
  font-weight: 700;
  line-height: 1.15;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: 0.01em;
  max-width: 100%;
}

.cp_content-box .banner-title::after,
.cp_content-box h1.banner-title::after {
  content: "";
  display: block;
  width: 72px;
  height: 2px;
  margin-top: 14px;
  background: linear-gradient(90deg, #d4af37, transparent);
}

.cp_content-box p {
  color: #f0e6c8;
  font-size: 15px;
}

.banner-content,
.banner-content p,
.banner-content h1,
.banner-content h2,
.banner-content h3,
.banner-content h4,
.banner-content h5,
.banner-content h6,
.banner-content span,
.banner-content a {
  position: relative;
  z-index: 1;
  color: var(--description-color, #f0e6c8);
  font-size: 17px;
  margin-bottom: 12px;
  line-height: 1.45;
  text-align: left;
}

.wp-block-acf-header-banner .banner-content {
  padding-top: 4px;
  margin-bottom: 0;
}

.wp-block-acf-header-banner .banner-content p {
  width: 100% !important;
  max-width: 100%;
}

.wp-block-acf-header-banner .banner-content p:last-child {
  margin-bottom: 0;
}

.cp_feature-list {
  list-style: none;
  padding: 0 !important;
  margin: 22px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--features-color, #d4af37);
  margin-left: 0;
  perspective: 800px;
}

.cp_feature-list li {
  --chip-i: 1;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  overflow: visible;
  color: var(--features-color, #d4af37);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border: 1px solid rgba(212, 175, 55, 0.45);
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transform: rotateY(0deg);
  transform-origin: center center;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  animation: chipSpinLeftRight 3.2s ease-in-out infinite;
  animation-delay: calc(var(--chip-i) * 0.22s);
}

.cp_feature-list li::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 70%;
  height: 100%;
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(255, 255, 255, 0.08) 45%,
    rgba(212, 175, 55, 0.28) 50%,
    rgba(255, 255, 255, 0.08) 55%,
    transparent 100%
  );
  transform: skewX(-18deg);
  pointer-events: none;
  z-index: 1;
}

.cp_feature-list li:hover {
  border-color: rgba(232, 197, 71, 0.9);
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.2), 0 8px 22px rgba(212, 175, 55, 0.18);
  animation-play-state: paused;
}

.cp_feature-list li:hover::before {
  animation: chipShine 0.85s ease;
}

.cp_feature-icon {
  width: 18px;
  height: auto;
  display: inline-block;
}

.cp_feature-list li:hover .cp_feature-icon {
  transform: none;
}

.banner-cta-wrap {
  margin-top: 24px;
}

.banner-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  color: #0a0a0a;
  background: linear-gradient(135deg, #f0d78c 0%, #d4af37 50%, #b8922a 100%);
  border: 1px solid #e8c547;
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.banner-cta-btn:hover,
.banner-cta-btn:focus {
  color: #0a0a0a;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(212, 175, 55, 0.35);
  filter: brightness(1.05);
}

.wp-block-acf-header-banner picture,
.wp-block-acf-header-banner img.header-banner-image {
  object-fit: cover;
  width: 100%;
  display: block;
  object-position: bottom;
}

@keyframes assetIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes assetFloat {
  0%,
  100% {
    opacity: 1;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-12px);
  }
}

@keyframes chipSpinLeftRight {
  0%,
  55% {
    transform: rotateY(0deg);
  }
  80% {
    transform: rotateY(360deg);
  }
  100% {
    transform: rotateY(360deg);
  }
}

@keyframes chipShine {
  from {
    left: -120%;
  }
  to {
    left: 140%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .banner-asset-img,
  .cp_feature-list li {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1023px) {
  .banner-layout {
    gap: 28px;
  }

  .banner-asset {
    flex-basis: 214px;
    max-width: 320px;
    padding-top: 24px;
  }
}

@media (max-width: 767px) {
  .wp-block-acf-header-banner,
  .header-banner-wrapper {
    min-height: 460px;
  }

  .banner-layout {
    flex-direction: column;
    align-items: flex-start;
    padding: 115px 0 0;
    gap: 0px;
  }

  .wp-block-acf-header-banner .cp_content-box,
  .banner-layout.has-asset .cp_content-box {
    width: 100%;
    max-width: 100%;
    flex: 1 1 auto;
  }

  .banner-asset {
    width: 100%;
    max-width: 280px;
    align-self: center;
  }

  .cp_content-box .banner-title,
  .cp_content-box h1 {
    font-size: 27px;
    margin: 0 0 25px;
  }

  .banner-content,
  .banner-content p,
  .banner-content span,
  .banner-content a,
  .cp_feature-list li {
    font-size: 16px;
  }

  .cp_feature-list {
    gap: 8px;
  }

  .cp_feature-list li {
    padding: 6px 10px;
  }

  .banner-cta-btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 14px;
  }

  .wp-block-acf-header-banner picture.cp_img-wrap,
  .wp-block-acf-header-banner img.cp_img {
    object-position: 70% center;
  }
}
