/* HB Site Kit — Reviews spotlight: behaviour and the controls the JS builds.
   The review's look (quote, name, role, portrait, "Watch video" text: fonts, sizes, colours) is the Divi preset "HB Review spotlight",
   not this file. Colours come from the site's Divi global colours (--gcid-hb-*), so changing them in Divi
   changes these too. Without JS (or with the feature off) every Testimonial simply shows, one under another. */

/* Colours: the site's Divi global colours, including HB muted_on_dark for grey text on the dark section. */
.hb-spot { --hb-spot-fg: var(--gcid-hb-background); --hb-spot-muted: var(--gcid-hb-muted-on-dark, #A9B6B9); }

/* One review at a time, stacked in one place, fading between them. */
.hb-spot-ready .hb-spot-stage { display: grid; width: 100%; }
.hb-spot-ready .hb-spot-item { grid-area: 1 / 1; margin: 0 !important; opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease, visibility .5s; }
.hb-spot-ready .hb-spot-item.is-on { opacity: 1; visibility: visible; transform: none; }

/* Layout inside each Testimonial (Divi has no setting for it): the quote on top, then one row of
   portrait | name over role | "Watch video". Pure CSS: the Testimonial's own parts, re-placed with a grid. */
.hb-spot .et_pb_testimonial_inner { display: grid; grid-template-columns: auto auto 1fr; grid-template-areas: "q q q" "p a w" "p r w"; align-items: center; column-gap: 18px; }
.hb-spot .et_pb_testimonial_description, .hb-spot .et_pb_testimonial_description_inner, .hb-spot .et_pb_testimonial_meta { display: contents; }
.hb-spot .et_pb_testimonial_description { margin: 0 !important; }
.hb-spot .et_pb_testimonial_content { grid-area: q; margin: 0 0 32px; }
.hb-spot .et_pb_testimonial_portrait { grid-area: p; position: relative; float: none; margin: 0 !important; }
.hb-spot .et_pb_testimonial_author { grid-area: a; align-self: end; margin: 0; padding: 0; line-height: 1.35; }
.hb-spot .et_pb_testimonial_position { grid-area: r; align-self: start; line-height: 1.35; }
.hb-spot-has-video .et_pb_testimonial_separator { display: none; }

/* The quote gets accent “ ” around it. */
.hb-spot .et_pb_testimonial_content { quotes: "\201C" "\201D"; }
.hb-spot .et_pb_testimonial_content p { display: inline; margin: 0; padding: 0; }
.hb-spot .et_pb_testimonial_content::before { content: open-quote; margin-right: .06em; color: var(--gcid-hb-accent); }
.hb-spot .et_pb_testimonial_content::after { content: close-quote; color: var(--gcid-hb-accent); }

/* "Watch video" (the Testimonial's Company link) with a round play mark. */
.hb-spot .hb-spot-watch { grid-area: w; justify-self: start; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-left: 12px; text-decoration: none; }
.hb-spot .hb-spot-watch::before { content: ""; width: 38px; height: 38px; border-radius: 50%; flex: none; background: var(--gcid-hb-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%230F1517' d='M8 5v14l11-7z'/%3E%3C/svg%3E") center/16px no-repeat; transition: transform .2s; }
.hb-spot .hb-spot-watch:hover::before { transform: scale(1.1); }
/* 0.7.5: a review with a video thumbnail hides the "Watch video" link (the thumbnail opens the video). The link stays in
   the page: the video popup and the thumbnail pairing read the vimeo address from it. */
.hb-spot .hb-spot-has-thumb .hb-spot-watch { display: none; }

/* 0.7.0 Video thumbnails (Image modules linking to vimeo.com): quote left, thumbnail right; stacked on phones.
   One thumbnail at a time, switched with its review. The play button is drawn here so it can grow on hover. */
.hb-spot-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 46%); gap: 56px; align-items: center; width: 100%; }
.hb-spot-thumbs { display: grid; }
.hb-spot .hb-spot-thumb { grid-area: 1 / 1; width: 100% !important; max-width: none !important; margin: 0 !important; }
.hb-spot-ready .hb-spot-thumb { opacity: 0; visibility: hidden; transform: scale(.98); transition: opacity .5s ease, transform .5s ease, visibility .5s; }
.hb-spot-ready .hb-spot-thumb.is-on { opacity: 1; visibility: visible; transform: none; }
.hb-spot-thumb a { position: relative; display: block; border-radius: 14px; overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .08); }
.hb-spot-thumb .et_pb_image_wrap, .hb-spot-thumb img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 0; }
.hb-spot-thumb img { transition: transform .6s ease; }
/* 0.7.2: the "watch" card (built by the JS) centred in the empty right part of the thumbnail; the designed
   thumbnails keep the face on the left 55%. Sizes follow the card width (container units). Approved 1 Dec 2026. */
.hb-play-card { position: absolute; z-index: 2; top: 0; bottom: 0; right: 0; left: 55%; container-type: inline-size;
	display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
	pointer-events: none; color: #EEF3F4; font-family: "Jost", sans-serif;
	background: radial-gradient(circle at 50% 46%, rgba(22, 187, 170, .16), rgba(22, 187, 170, 0) 62%); }
.hb-play-btn { position: relative; width: clamp(48px, 33cqw, 84px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
	background: var(--gcid-hb-accent); box-shadow: 0 12px 30px rgba(0, 0, 0, .4); transition: transform .3s ease, box-shadow .3s ease; }
.hb-play-btn svg { width: 44%; height: 44%; display: block; }
.hb-play-btn::before, .hb-play-btn::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(22, 187, 170, .55); animation: hb-ring 2.6s ease-out infinite; }
.hb-play-btn::after { animation-delay: 1.3s; }
@keyframes hb-ring { from { transform: scale(1); opacity: .9; } to { transform: scale(1.45); opacity: 0; } }
.hb-play-eyebrow { margin-top: clamp(20px, 15cqw, 36px); font-weight: 600; font-size: clamp(9px, 5cqw, 12px); letter-spacing: .2em; text-transform: uppercase; color: var(--gcid-hb-accent); transition: letter-spacing .3s ease; }
.hb-play-name { margin-top: clamp(4px, 2.5cqw, 8px); font-family: "Bricolage Grotesque", "Jost", sans-serif; font-weight: 700; font-size: clamp(12px, 7.6cqw, 18px); line-height: 1.2; max-width: 96%; text-wrap: balance; }
.hb-play-meta { margin-top: clamp(8px, 5cqw, 14px); display: flex; align-items: center; gap: clamp(6px, 3.5cqw, 10px); font-size: clamp(10px, 5.4cqw, 13px); font-weight: 500; opacity: .85; }
.hb-play-wave { display: flex; align-items: center; gap: 2px; height: clamp(14px, 9cqw, 22px); }
.hb-play-wave i { display: block; width: 2px; border-radius: 2px; background: currentColor; height: var(--h); transform-origin: center; }
.hb-spot-thumb a:hover .hb-play-wave i, .hb-spot-thumb a:focus-visible .hb-play-wave i { animation: hb-wave .9s ease-in-out infinite alternate; animation-delay: var(--d); }
@keyframes hb-wave { from { transform: scaleY(.35); } to { transform: scaleY(1); } }
.hb-spot-thumb a:hover .hb-play-btn, .hb-spot-thumb a:focus-visible .hb-play-btn { transform: scale(1.12); box-shadow: 0 0 0 10px rgba(22, 187, 170, .22), 0 16px 36px rgba(0, 0, 0, .45); }
.hb-spot-thumb a:hover .hb-play-eyebrow, .hb-spot-thumb a:focus-visible .hb-play-eyebrow { letter-spacing: .28em; }
@container (max-width: 170px) { .hb-play-wave { display: none; } }
.hb-spot-thumb a:hover img { transform: scale(1.03); }
.hb-spot-thumb a:focus-visible { outline: 3px solid var(--gcid-hb-accent); outline-offset: 3px; }
@media (max-width: 980px) { /* tablet and phone: thumbnail under the quote */
	.hb-spot-main { grid-template-columns: minmax(0, 1fr); gap: 32px; }
	.hb-spot-thumbs { max-width: 560px; }
}

/* Controls built by the JS: faces, previous / next, counter, progress bar. */
.hb-spot-bar { width: 100%; margin-top: 10px; /* + the Group's 30px gap = 40px */ display: flex; flex-direction: column; gap: 14px; font-family: "Jost", sans-serif; }
.hb-spot-hint { margin: 0 0 6px; padding: 0; font-size: 15px; color: var(--hb-spot-muted); }
.hb-spot-row { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 20px 32px; }
.hb-spot-faces { display: flex; flex-wrap: wrap; gap: 18px; }
.hb-spot-face { all: unset; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 8px; opacity: .6; filter: grayscale(.7); transition: opacity .25s, filter .25s; }
.hb-spot-face img { display: block; width: 72px; height: 72px; border-radius: 50%; object-fit: cover; box-sizing: border-box; border: 3px solid transparent; transition: border-color .25s; }
.hb-spot-name { font-size: 13px; font-weight: 600; color: var(--hb-spot-muted); transition: color .25s; }
.hb-spot-face:hover, .hb-spot-face:focus-visible, .hb-spot-face.is-on { opacity: 1; filter: none; }
.hb-spot-face.is-on .hb-spot-name, .hb-spot-face:hover .hb-spot-name { color: var(--hb-spot-fg); }
.hb-spot-face.is-on img { border-color: var(--gcid-hb-accent); }
.hb-spot-face:focus-visible { outline: 3px solid var(--gcid-hb-accent); outline-offset: 2px; border-radius: 12px; }
.hb-spot-nav { display: flex; align-items: center; gap: 14px; padding-top: 14px; }
.hb-spot-prev, .hb-spot-next { all: unset; cursor: pointer; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; color: var(--hb-spot-fg); border: 1px solid rgba(255, 255, 255, .25); transition: background .2s, color .2s, border-color .2s; }
.hb-spot-prev:hover, .hb-spot-next:hover { background: var(--gcid-hb-accent); border-color: var(--gcid-hb-accent); color: var(--gcid-hb-ink); }
.hb-spot-prev:focus-visible, .hb-spot-next:focus-visible { outline: 3px solid var(--gcid-hb-accent); outline-offset: 2px; }
.hb-spot-count { font-size: 15px; min-width: 44px; text-align: center; color: var(--hb-spot-muted); }
.hb-spot-count b { color: var(--hb-spot-fg); }
.hb-spot-progress { width: 200px; max-width: 100%; height: 2px; background: rgba(255, 255, 255, .14); border-radius: 2px; overflow: hidden; }
.hb-spot-progress span { display: block; height: 100%; width: 0; background: var(--gcid-hb-accent); }
.hb-spot.is-playing .hb-spot-progress span { animation: hb-spot-fill var(--spot-ms) linear forwards; }
.hb-spot.is-paused .hb-spot-progress span { animation-play-state: paused; }
@keyframes hb-spot-fill { to { width: 100%; } }

@media (max-width: 767px) {
	.hb-spot-main { gap: 28px; }
	.hb-spot .et_pb_testimonial_inner { grid-template-columns: auto 1fr; grid-template-areas: "q q" "p a" "p r" "w w"; column-gap: 14px; }
	.hb-spot .et_pb_testimonial_content { margin-bottom: 24px; }
	.hb-spot .hb-spot-watch { margin: 14px 0 0; }
	.hb-spot-bar { margin-top: 0; }
	.hb-spot-faces { gap: 10px; }
	.hb-spot-face img { width: 52px; height: 52px; }
	.hb-spot-name { font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) { .hb-spot-ready .hb-spot-item, .hb-spot-ready .hb-spot-thumb, .hb-spot-thumb img, .hb-play-btn { transition: none; } .hb-play-btn::before, .hb-play-btn::after, .hb-play-wave i { animation: none !important; } .hb-spot-ready .hb-spot-item, .hb-spot-ready .hb-spot-thumb, .hb-spot-thumb img { transform: none; } .hb-spot-progress { display: none; } }
