/* Home testimonials (UX-08): moving carousel on the brand's dark teal, white story cards. */
.elementor .elementor-element.elementor-element-3ff5bbcd:has(.mse-testimonials),
.elementor .elementor-element.elementor-element-3ff5bbcd:has(.mse-testimonials) > .e-con-inner {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
  background: none !important;
}
.elementor .elementor-element.elementor-element-3ff5bbcd:has(.mse-testimonials) .elementor-element-5449b19a { display: none !important; }
.elementor .elementor-element.elementor-element-3ff5bbcd:has(.mse-testimonials)::before { display: none !important; }

.mse-testimonials {
  --tm-ink: var(--e-global-color-astglobalcolor7, #0a404d);
  --tm-teal: var(--e-global-color-astglobalcolor0, #17758c);
  --tm-accent: #b05434; /* brand #cd6442, darkened for text contrast (WCAG AA 4.5:1) */
  --tm-gold: #e2bf86;
  --tm-text: #3d4a4f;
  --tm-muted: #66767b;
  --tm-card: 380px;
  --tm-gap: 24px;
  position: relative;
  box-sizing: border-box;
  width: 100%;
  padding: clamp(64px, 9vw, 112px) 0 clamp(56px, 8vw, 96px);
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(1100px 420px at 85% -10%, rgb(23 117 140 / 0.45), transparent 70%),
    radial-gradient(900px 380px at 5% 110%, rgb(205 100 66 / 0.18), transparent 70%),
    linear-gradient(160deg, #0b3944 0%, #0a404d 55%, #08323c 100%);
}
.mse-testimonials *,
.mse-testimonials *::before { box-sizing: border-box; }

.mse-testimonials__head { max-width: 760px; margin: 0 auto clamp(36px, 5vw, 56px); padding: 0 20px; text-align: center; }
.mse-testimonials__eyebrow {
  margin: 0 0 12px;
  color: var(--tm-accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.mse-testimonials .mse-testimonials__title {
  margin: 0;
  color: #fff;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  text-wrap: balance;
}
.mse-testimonials__lead { margin: 16px auto 0; max-width: 56ch; color: rgb(255 255 255 / 0.78); font-size: clamp(17px, 1.6vw, 19px); line-height: 1.6; }

/* Carousel: two identical groups move left by one group's width, then repeat without a jump. */
.mse-marquee { position: relative; }
.mse-marquee__viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.mse-marquee__track {
  display: flex;
  width: max-content;
  animation: mse-marquee calc(var(--mse-count, 3) * 9s) linear infinite;
}
.mse-marquee:hover .mse-marquee__track,
.mse-marquee:focus-within .mse-marquee__track,
.mse-marquee.is-paused .mse-marquee__track { animation-play-state: paused; }
.mse-marquee__group {
  display: flex;
  gap: var(--tm-gap);
  margin: 0;
  padding: 8px calc(var(--tm-gap) / 2) 28px;
  list-style: none;
}
@keyframes mse-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.mse-quote {
  display: flex;
  flex-direction: column;
  flex: none;
  width: var(--tm-card);
  margin: 0;
  overflow: hidden;
  color: var(--tm-text);
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 2px 4px rgb(0 0 0 / 0.08), 0 24px 48px rgb(0 0 0 / 0.22);
}
.mse-quote__media { aspect-ratio: 16 / 10; overflow: hidden; background: #e9eef0; }
.mse-testimonials .mse-quote__photo { display: block; width: 100%; height: 100%; object-fit: cover; }
.mse-quote__body { display: flex; flex: 1; flex-direction: column; padding: 24px 26px 26px; }
.mse-quote__mark { width: 30px; height: 22px; margin-bottom: 14px; color: var(--tm-accent); }
.mse-quote__text { flex: 1; margin: 0 0 20px; padding: 0; border: 0; quotes: none; }
.mse-quote__text p { margin: 0; color: var(--tm-text); font-size: 17px; font-style: normal; line-height: 1.6; }
.mse-quote__who { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0; padding-top: 16px; border-top: 1px solid rgb(10 64 77 / 0.1); }
.mse-quote__name { color: var(--tm-ink); font-size: 16px; font-weight: 700; }
.mse-quote__service {
  padding: 4px 10px;
  color: var(--tm-teal);
  background: rgb(23 117 140 / 0.08);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.mse-testimonials .mse-marquee__toggle {
  position: absolute;
  z-index: 2;
  right: 20px;
  top: -52px;
  min-height: 36px;
  padding: 6px 14px;
  color: #fff;
  background: rgb(255 255 255 / 0.1);
  border: 1px solid rgb(255 255 255 / 0.28);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}
.mse-testimonials .mse-marquee__toggle:hover { background: rgb(255 255 255 / 0.18); }
.mse-testimonials .mse-marquee__toggle:focus-visible,
.mse-testimonials a:focus-visible { outline: 3px solid var(--tm-gold); outline-offset: 3px; }

.mse-testimonials__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  max-width: 1140px;
  margin: clamp(28px, 4vw, 44px) auto 0;
  padding: clamp(22px, 3vw, 30px) clamp(24px, 3.4vw, 40px);
  background: rgb(255 255 255 / 0.06);
  border: 1px solid rgb(255 255 255 / 0.14);
  border-radius: 22px;
}
@media (max-width: 1180px) { .mse-testimonials__cta { margin-left: 20px; margin-right: 20px; } }
.mse-testimonials__cta-title { margin: 0 0 6px; color: #fff; font-size: clamp(20px, 2vw, 24px); font-weight: 700; }
.mse-testimonials__cta-text { margin: 0; max-width: 60ch; color: rgb(255 255 255 / 0.8); font-size: 17px; line-height: 1.55; }
.mse-testimonials a.mse-testimonials__cta-button {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 50px;
  padding: 12px 26px;
  color: #fff;
  background: var(--tm-accent);
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: filter 0.2s ease;
}
.mse-testimonials a.mse-testimonials__cta-button:hover { filter: brightness(1.08); color: #fff; }

@media (max-width: 767px) {
  .mse-testimonials { --tm-card: 290px; --tm-gap: 16px; }
  .mse-quote__body { padding: 20px 20px 22px; }
  .mse-quote__text p { font-size: 16px; }
  .mse-testimonials .mse-marquee__toggle { position: static; display: block; margin: -16px auto 20px; }
  .mse-testimonials__cta { flex-direction: column; align-items: flex-start; margin-left: 16px; margin-right: 16px; }
  .mse-testimonials a.mse-testimonials__cta-button { width: 100%; justify-content: center; }
}

/* No motion: a row the visitor scrolls, one copy of each story. */
@media (prefers-reduced-motion: reduce) {
  .mse-marquee__track { animation: none; width: auto; }
  .mse-marquee__viewport { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-mask-image: none; mask-image: none; }
  .mse-marquee__group[aria-hidden="true"], .mse-testimonials .mse-marquee__toggle { display: none; }
  .mse-quote { scroll-snap-align: start; }
}
