/* ESK Trust — testimonial slider. Slider mechanics in esk-trust.js. */

.esktr { position: relative; overflow: hidden; background: #ffffff; color: #022450; }
.esktr *, .esktr *::before, .esktr *::after { box-sizing: border-box; }
.esktr a { color: inherit; text-decoration: none; }
.esktr, .esktr * { font-family: "niveaugroteskregular", system-ui, sans-serif !important; }

.esktr__glow { display: none; }
.esktr__wrap { position: relative; max-width: 1336px; margin: 0 auto; padding: var(--esk-section-pad) 28px; }

/* Header */
.esktr__head { margin-bottom: clamp(28px,4vh,44px); }
.esktr__title { margin: 0; font-weight: 800; font-size: var(--esk-display) !important; line-height: var(--esk-display-lh) !important; letter-spacing: var(--esk-display-ls); color: #022450 !important; text-transform: uppercase; }
.esktr__sub { margin: clamp(6px,1vh,14px) 0 0; font-size: var(--esk-subhead); line-height: var(--esk-subhead-lh); letter-spacing: -0.02em; color: #022450; font-weight: 400; }
.esktr__sub b { font-weight: 800; text-transform: uppercase; }
.esktr__sub span { text-transform: uppercase; color: #022450; }

/* Slider */
.esktr__slider { position: relative; }
.esktr__viewport { overflow: hidden; padding: 6px; margin: -6px; }
.esktr__track { display: flex; align-items: stretch; will-change: transform; }
.esktr__card { flex: 0 0 auto; width: min(86vw, 380px); display: flex; }

/* Card hover: lift + spinning orange light-border around the whole card. */
@property --esktr-a { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes esktrSpin { to { --esktr-a: 360deg; } }
.esktr__card-in { position: relative; flex: 1; display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; background: #FFFFFF; border: 1px solid #EEF0F4; transition: transform .5s cubic-bezier(.22,.7,.3,1), box-shadow .5s ease; }
.esktr__card-in::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1.6px;
  background: conic-gradient(from var(--esktr-a),
    transparent 0deg, transparent 40deg,
    color-mix(in srgb, var(--accent) 55%, #fff) 90deg, var(--accent) 120deg, color-mix(in srgb, var(--accent) 30%, #fff) 150deg,
    transparent 200deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .4s ease; pointer-events: none; z-index: 3; }
.esktr__card:hover .esktr__card-in { transform: translateY(-8px); }
.esktr__card:hover .esktr__card-in::before { opacity: 1; animation: esktrSpin 2.8s linear infinite; }

.esktr__photo { position: relative; width: 100%; aspect-ratio: 4/3; background: #E7E1DA; overflow: hidden; border-radius: 22px; }
/* cover fills the full card width; the taller 4:3 box + face-zone anchor
   (18% from top) keeps heads fully in frame — only excess bg is trimmed. */
.esktr__photo .esktr__img, .esktr__photo img { width: 100% !important; height: 100% !important; max-width: 100% !important; max-height: none !important; object-fit: cover; object-position: 50% 18%; display: block; transition: transform .7s cubic-bezier(.22,.7,.3,1); }
.esktr__card:hover .esktr__photo img { transform: scale(1.045); }

.esktr__body { flex: 1; display: flex; flex-direction: column; padding: clamp(20px,2.2vw,30px) clamp(20px,2.2vw,30px) clamp(22px,2.4vw,32px); }
.esktr__stars { display: flex; gap: 6px; margin-bottom: clamp(14px,1.8vh,20px); color: var(--accent); }
.esktr__star { width: clamp(18px,1.4vw,23px); height: clamp(18px,1.4vw,23px); display: block; }
.esktr__quote { margin: 0; min-height: 6em; font-size: 18px; line-height: 1.5; font-weight: 500; color: #5B6474; }
.esktr__div { height: 1px; background: rgba(2,36,80,0.10); margin: clamp(20px,2.6vh,30px) 0 clamp(16px,2vh,22px); }
.esktr__meta { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: auto; }
.esktr__who { min-width: 0; }
.esktr__name { font-weight: 800; font-size: clamp(15px,1.1vw,17px); letter-spacing: -0.01em; color: #022450; }
.esktr__role { font-weight: 500; font-size: clamp(13px,0.9vw,14px); color: #5B6474; margin-top: 3px; }
.esktr__sep { flex: 0 0 auto; align-self: stretch; width: 1px; background: rgba(2,36,80,0.12); }
.esktr__logo { flex: 0 0 auto; display: flex; align-items: center; color: var(--accent); }
.esktr__logo-img { max-height: 34px; width: auto !important; height: auto !important; max-width: 110px !important; object-fit: contain; }
.esktr__co { display: inline-flex; align-items: center; gap: 8px; }
.esktr__co-name { font-weight: 800; font-size: clamp(15px,1.2vw,19px); letter-spacing: -0.02em; color: #022450; }

/* Controls */
.esktr__controls { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: clamp(22px,3vh,34px); }
.esktr__btn { width: 52px; height: 52px; padding: 0 !important; border-radius: 50%; display: flex; align-items: center; justify-content: center; line-height: 0; cursor: pointer; transition: background .22s ease, border-color .22s ease, color .22s ease, transform .22s ease; }
.esktr__btn:hover { transform: scale(1.08); }
/* Arrows pinned explicitly — global button/svg rules (theme + Code Snippets
   CSS) must not size them to 0 or recolor them invisible. */
.esktr__btn svg { width: 22px !important; height: 22px !important; min-width: 22px; display: block !important; opacity: 1 !important; visibility: visible !important; fill: none !important; }
.esktr__btn--prev { border: 1.6px solid #E4E7EC; background: #FFFFFF !important; background-image: none !important; color: #022450 !important; }
.esktr__btn--prev svg { stroke: #022450 !important; }
.esktr__btn--prev:hover { border-color: var(--accent); color: var(--accent) !important; background: #FFFFFF !important; }
.esktr__btn--prev:hover svg { stroke: var(--accent) !important; }
.esktr__btn--next { border: 1.6px solid var(--accent); background: var(--accent) !important; background-image: none !important; color: #FFFFFF !important; }
.esktr__btn--next svg, .esktr__btn--next:hover svg { stroke: #FFFFFF !important; }
.esktr__btn--next:hover { background: var(--accent) !important; color: #FFFFFF !important; }

@media (prefers-reduced-motion: reduce) {
  .esktr__btn:hover { transform: none; }
  .esktr__card:hover .esktr__card-in { transform: none; }
  .esktr__card:hover .esktr__card-in::before { animation: none; }
  .esktr__card:hover .esktr__photo img { transform: none; }
}

/* Full-bleed inside WPBakery columns: drop the builder's default
   15px column padding when this element is the column content. */
.vc_column_container > .vc_column-inner:has(.esktr) { padding-left: 0; padding-right: 0; }

/* Kill the theme's mobile .vc_row{padding:0 12px} (320-768 media rule)
   for rows that contain this element — full-bleed on mobile too. */
@media only screen and (min-width: 320px) and (max-width: 768px) {
  .vc_row:has(.esktr) { padding-left: 0 !important; padding-right: 0 !important; }
}


/* C4 hero slots: sub-line aligned to the shared support spec. */
.esktr__sub, .esktr__sub b, .esktr__sub span { font-size: clamp(22px, 2.4vw, 34px) !important; line-height: 1.15 !important; font-weight: 800; letter-spacing: 0.04em !important; word-spacing: 0.15em; text-transform: uppercase; display: block; margin-top: 0.45em; margin-top: 0.2em; display: inline; }

/* mobile support size */
@media (max-width: 767px) {
  .esktr__sub, .esktr__sub b, .esktr__sub span { font-size: 18px !important; }
}


/* Support-line shimmer — same sweep as Why Choose (.eskw__t2). Longhands so
   background-position stays animatable (a !important shorthand would freeze it). */
.esktr__sub, .esktr__sub b, .esktr__sub span {
  background-image: linear-gradient(100deg, #022450 0%, #022450 42%, #e36745 50%, #022450 58%, #022450 100%) !important;
  background-size: 300% auto !important;
  background-position: 0% 50%;
  -webkit-background-clip: text !important; background-clip: text !important;
  -webkit-text-fill-color: transparent !important; color: transparent !important;
  animation: esktrGrad 6s ease-in-out infinite !important;
}
@keyframes esktrGrad { 0% { background-position: 0% 50%; } 75%, 100% { background-position: 100% 50%; } }
@media (prefers-reduced-motion: reduce) { .esktr__sub, .esktr__sub b, .esktr__sub span { animation: none !important; } }
