/* ==========================================================================
   IMPACTA HUB - TESTIMONIALS REVIEW MARQUEE (DIGITAM LIGHT BAND)
   Standard: Light Luxury / 60fps Native Hardware Acceleration
   Continuous Horizontal Scrolling Cards with Orange Quotes & 5 Stars
   ========================================================================== */

#casi-studio.reviews-scrolling-section,
.reviews-scrolling-section {
  position: relative;
  background-color: #f8f9fa !important;
  color: #1f2937 !important;
  padding: 100px 0 120px;
  border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
  overflow: hidden;
  isolation: isolate;
}

#casi-studio::before,
.reviews-scrolling-section::before {
  display: none !important;
}

/* Header in Light Band */
#casi-studio .alder-eyebrow {
  color: #ff5500 !important;
  font-weight: 700 !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

#casi-studio .alder-eyebrow::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #ff5500 !important;
  box-shadow: 0 0 8px rgba(255, 85, 0, 0.5) !important;
}

#casi-studio .alder-title {
  color: #05050a !important;
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0;
}

#casi-studio .alder-serif-italic {
  color: #ff5500 !important;
  font-style: italic !important;
  font-weight: 400;
  display: inline-block;
}

/* Luxury Dark CTA Button on Light Background */
#casi-studio .alder-header-cta {
  background: #05050a !important;
  color: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.25) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 9999px;
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  flex-shrink: 0;
}

#casi-studio .alder-header-cta svg {
  stroke: #ffffff !important;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

#casi-studio .alder-header-cta:hover {
  background: #18181b !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
}

#casi-studio .alder-header-cta:hover svg {
  transform: translate(2px, -2px);
}

.reviews-marquee-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 24px 0 32px;
  margin-top: 20px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
}

.reviews-marquee-track {
  display: flex;
  gap: 24px;
  width: max-content;
  will-change: transform;
  animation: marqueeReviews 44s linear infinite;
}

.reviews-marquee-wrapper:hover .reviews-marquee-track,
.reviews-marquee-wrapper:active .reviews-marquee-track,
.reviews-marquee-wrapper.is-touch-paused .reviews-marquee-track {
  animation-play-state: paused;
}

@keyframes marqueeReviews {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

/* Individual Review Card - WHITE SATIN LUXURY CARD */
.review-luxury-card,
.reviews-marquee-card,
.review-card {
  width: 380px;
  flex-shrink: 0;
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  border-radius: 20px;
  padding: 28px 26px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  color: inherit;
  position: relative;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04) !important;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s ease,
              border-color 0.35s ease;
  cursor: pointer;
}

.review-luxury-card:hover,
.reviews-marquee-card:hover,
.review-card:hover {
  transform: translateY(-4px);
  background: #ffffff !important;
  border-color: rgba(255, 85, 0, 0.45) !important;
  box-shadow: 0 18px 40px -10px rgba(0, 0, 0, 0.12), 0 0 20px rgba(255, 85, 0, 0.12) !important;
}

/* Glowing Orange Double Quote Icon */
.review-quote-mark {
  color: #ff5500 !important;
  filter: drop-shadow(0 0 6px rgba(255, 85, 0, 0.35));
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.review-luxury-card:hover .review-quote-mark,
.reviews-marquee-card:hover .review-quote-mark,
.review-card:hover .review-quote-mark {
  transform: scale(1.06);
}

/* Italic Review Body - Dark Charcoal */
.review-quote-body {
  margin: 0 0 22px;
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
  font-size: 14.5px;
  line-height: 1.65;
  font-style: italic;
  color: #1f2937 !important;
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* Bottom Card Footer */
.review-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid rgba(0, 0, 0, 0.07) !important;
  margin-top: auto;
}

.review-author-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.review-author-name {
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #05050a !important;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.review-author-role {
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
  font-size: 10.5px;
  font-weight: 600;
  color: #64748b !important;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 5 Glowing Stars - Vibrant Orange */
.review-stars {
  display: flex;
  align-items: center;
  gap: 2px;
  color: #ff5500 !important;
  font-size: 15px;
  line-height: 1;
  letter-spacing: 1.5px;
  filter: drop-shadow(0 0 4px rgba(255, 85, 0, 0.4));
  flex-shrink: 0;
  user-select: none;
}

/* Mobile & Tablet Adjustments */
@media (max-width: 768px) {
  #casi-studio.reviews-scrolling-section,
  .reviews-scrolling-section {
    padding: 70px 0 90px;
  }
  .review-luxury-card,
  .reviews-marquee-card,
  .review-card {
    width: clamp(290px, 82vw, 340px);
    padding: 22px 20px 20px;
  }
  .reviews-marquee-track {
    gap: 16px;
    animation-duration: 36s;
  }
  .review-quote-body {
    font-size: 13.5px;
    line-height: 1.6;
    margin-bottom: 18px;
  }
}

/* Accessibility: Reduce Motion */
@media (prefers-reduced-motion: reduce) {
  .reviews-marquee-track {
    animation: none;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    padding-bottom: 12px;
  }
  .reviews-marquee-wrapper {
    -webkit-mask-image: none;
    mask-image: none;
  }
}
