/* =========================================================
   home-trust.css  -  loaded on index.php only
   Customer reviews (video + text, auto-scrolling), Our Clients wall,
   certification strip and the video pop-up.
   Every class starts with hx-  so nothing here touches the rest of the site.
   ========================================================= */

.hx-reviews, .hx-clients, .hx-certs, .hx-modal {
    --hx-navy:  var(--navy, #0D2247);
    --hx-blue:  var(--primary, #1E5AC8);
    --hx-red:   #D91F26;
    --hx-gold:  #F6D98C;
    --hx-star:  #F5A623;
    --hx-text:  #33425F;
    --hx-muted: #5B6B85;
    --hx-line:  #E3EAF6;
    --hx-head:  var(--font-head, inherit);
}

.hx-wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; position: relative; }

/* ---------- shared section heading ---------- */
.hx-head { text-align: center; max-width: 760px; margin: 0 auto; }
.hx-eyebrow {
    display: inline-flex; align-items: center; gap: 12px;
    font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
    color: var(--hx-red);
}
.hx-eyebrow::before, .hx-eyebrow::after { content: ""; width: 26px; height: 2px; border-radius: 2px; background: currentColor; opacity: .55; }
.hx-head h2 {
    margin: 14px 0 12px; font-family: var(--hx-head); color: var(--hx-navy);
    font-size: clamp(1.75rem, 3.3vw, 2.55rem); line-height: 1.18; letter-spacing: -.01em;
}
.hx-head h2 em {
    font-style: normal;
    background: linear-gradient(90deg, var(--hx-blue), #3B82F6);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.hx-sub { margin: 0 auto; max-width: 640px; color: var(--hx-muted); line-height: 1.75; font-size: 1.02rem; }

/* =========================================================
   1. CUSTOMER REVIEWS
   ========================================================= */
.hx-reviews {
    position: relative; overflow: hidden; padding: 92px 0 78px;
    background:
        radial-gradient(900px 420px at 10% 0%, rgba(30, 90, 200, .08), transparent 60%),
        radial-gradient(800px 380px at 95% 100%, rgba(217, 31, 38, .06), transparent 60%),
        linear-gradient(180deg, #F4F8FF 0%, #FFFFFF 100%);
}
.hx-score {
    display: inline-flex; align-items: center; gap: 12px; margin-top: 22px;
    padding: 9px 20px 9px 16px; border-radius: 99px; background: #fff; border: 1px solid var(--hx-line);
    box-shadow: 0 12px 28px -18px rgba(13, 34, 71, .5); font-size: .92rem; color: var(--hx-muted);
}
.hx-score b { color: var(--hx-navy); font-size: 1.05rem; }

.hx-stars { color: var(--hx-star); letter-spacing: 2px; font-size: 1rem; line-height: 1; white-space: nowrap; }
.hx-stars i { font-style: normal; color: #D6DDEC; }

/* ---------- the scrolling row ---------- */
.hx-marquee { position: relative; margin-top: 46px; }
.hx-track {
    display: flex; overflow-x: auto; overflow-y: hidden; padding: 16px 0 34px;
    scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch;
    -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%);
}
.hx-track::-webkit-scrollbar { display: none; }
.hx-track:focus-visible { outline: 3px solid rgba(30, 90, 200, .45); outline-offset: -3px; border-radius: 12px; }
.hx-group { display: flex; flex: none; align-items: stretch; gap: 24px; padding: 0 24px 0 24px; }
.hx-marquee.is-static .hx-track { justify-content: center; overflow: visible; -webkit-mask-image: none; mask-image: none; }

/* ---------- a review card ---------- */
.hx-card {
    position: relative; flex: none; width: 352px; display: flex; flex-direction: column; overflow: hidden;
    background: #fff; border: 1px solid var(--hx-line); border-radius: 22px;
    box-shadow: 0 22px 44px -32px rgba(13, 34, 71, .5);
    transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease, border-color .35s ease;
}
.hx-card:hover { transform: translateY(-6px); border-color: #C9D8F3; box-shadow: 0 34px 60px -32px rgba(13, 34, 71, .6); }
.hx-card.is-text::before { content: ""; display: block; height: 4px; flex: none; background: linear-gradient(90deg, var(--hx-blue), #5FA3FF 60%, #B6D3FF); }

.hx-media {
    position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: pointer; isolation: isolate;
    aspect-ratio: 16 / 9; background: #0D2247; overflow: hidden; font: inherit; color: inherit; -webkit-tap-highlight-color: transparent;
}
.hx-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .2, 1); z-index: -1; }
.hx-card:hover .hx-media img { transform: scale(1.07); }
.hx-blank {
    position: absolute; inset: 0; z-index: -1; display: grid; place-items: center;
    font: 800 5.2rem/1 var(--hx-head); color: rgba(255, 255, 255, .16);
    background: radial-gradient(circle at 25% 20%, #2D6FE0, transparent 55%), linear-gradient(135deg, #0F2A5E, #1E5AC8);
}
.hx-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 20, 45, .16) 0%, rgba(8, 20, 45, 0) 38%, rgba(8, 20, 45, .55) 100%); }
.hx-chip {
    position: absolute; left: 14px; top: 14px; display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px 6px 9px; border-radius: 99px; font-size: .66rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #fff;
    background: rgba(10, 24, 52, .5); border: 1px solid rgba(255, 255, 255, .24); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.hx-chip svg { width: 12px; height: 12px; }
.hx-play {
    position: absolute; left: 50%; top: 50%; width: 66px; height: 66px; margin: -33px 0 0 -33px; border-radius: 50%;
    display: grid; place-items: center; background: #fff; color: var(--hx-blue);
    box-shadow: 0 16px 34px -10px rgba(0, 0, 0, .6); transition: transform .3s cubic-bezier(.3, 1.4, .5, 1), background .25s, color .25s;
}
.hx-play svg { width: 26px; height: 26px; margin-left: 3px; }
.hx-play::before { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .8); animation: hxRing 2.6s ease-out infinite; }
.hx-media:hover .hx-play, .hx-media:focus-visible .hx-play { transform: scale(1.12); background: var(--hx-blue); color: #fff; }
.hx-media:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }
@keyframes hxRing { 0% { transform: scale(.85); opacity: .9; } 70%, 100% { transform: scale(1.45); opacity: 0; } }

.hx-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.hx-rate { display: flex; align-items: center; gap: 9px; }
.hx-rate b { font-size: .86rem; color: var(--hx-navy); }
.hx-top { display: flex; align-items: center; justify-content: space-between; }
.hx-qmark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #EAF1FF; color: var(--hx-blue); }
.hx-qmark svg { width: 20px; height: 20px; }
.hx-quote {
    margin: 14px 0 20px; font-size: .96rem; line-height: 1.72; color: var(--hx-text);
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden;
}
.hx-card.is-text .hx-quote { font-size: 1.02rem; -webkit-line-clamp: 8; }
.hx-quote.is-empty { color: var(--hx-muted); font-style: italic; }
.hx-person { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 16px; border-top: 1px solid #EDF1F9; }
.hx-avatar {
    flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
    font: 700 1.05rem/1 var(--hx-head); color: #fff; box-shadow: 0 8px 18px -8px rgba(13, 34, 71, .6);
}
.hx-av-0 { background: linear-gradient(135deg, #1E5AC8, #3B82F6); }
.hx-av-1 { background: linear-gradient(135deg, #0D2247, #2D4E94); }
.hx-av-2 { background: linear-gradient(135deg, #D91F26, #F0645A); }
.hx-av-3 { background: linear-gradient(135deg, #0E8F6B, #2FC79A); }
.hx-who { min-width: 0; }
.hx-who strong { display: block; color: var(--hx-navy); font-size: .96rem; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-who span { display: block; color: var(--hx-muted); font-size: .82rem; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- controls ---------- */
.hx-ctrls { display: none; justify-content: center; gap: 12px; }
.hx-marquee.is-live .hx-ctrls { display: flex; }
.hx-ctrl {
    display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border-radius: 50%; cursor: pointer;
    background: #fff; color: var(--hx-navy); border: 1px solid #D5DFF2; box-shadow: 0 12px 24px -16px rgba(13, 34, 71, .6);
    transition: background .2s, color .2s, transform .2s, border-color .2s; -webkit-tap-highlight-color: transparent;
}
.hx-ctrl:hover { background: var(--hx-navy); color: #fff; border-color: var(--hx-navy); transform: translateY(-2px); }
.hx-ctrl:focus-visible { outline: 3px solid rgba(30, 90, 200, .5); outline-offset: 2px; }
.hx-ctrl svg { width: 20px; height: 20px; }
.hx-pause .i-play { display: none; }
.hx-pause.is-paused .i-pause { display: none; }
.hx-pause.is-paused .i-play { display: block; width: 18px; height: 18px; margin-left: 2px; }

/* =========================================================
   2. OUR CLIENTS
   ========================================================= */
.hx-clients { padding: 88px 0 92px; background: #fff; position: relative; }
.hx-clients::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(700px 320px at 50% 0%, rgba(30, 90, 200, .06), transparent 70%);
}
.hx-logos { list-style: none; margin: 46px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; position: relative; }
.hx-logo {
    flex: 0 0 calc((100% - 80px) / 6); height: 98px; display: flex; align-items: center; justify-content: center; padding: 14px 18px;
    background: #fff; border: 1px solid var(--hx-line); border-radius: 18px; box-shadow: 0 12px 26px -22px rgba(13, 34, 71, .55);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.hx-logo:hover { transform: translateY(-5px); border-color: #BFD0F2; box-shadow: 0 24px 40px -24px rgba(13, 34, 71, .55); }
.hx-logo img { max-width: 100%; max-height: 50px; width: auto; height: auto; object-fit: contain; filter: grayscale(1); opacity: .72; transition: filter .3s, opacity .3s, transform .3s; }
.hx-logo:hover img { filter: none; opacity: 1; transform: scale(1.05); }
.hx-wordmark {
    font-family: var(--hx-head); font-weight: 700; font-size: 1.04rem; line-height: 1.25; letter-spacing: .02em; text-align: center;
    color: #6A7A96; transition: color .3s;
}
.hx-logo:hover .hx-wordmark { color: var(--hx-navy); }
.hx-wordmark[hidden], .hx-logo img[hidden] { display: none; }

/* =========================================================
   3. CERTIFICATION STRIP
   ========================================================= */
.hx-certs {
    position: relative; overflow: hidden; padding: 76px 0 80px; color: #fff;
    background:
        radial-gradient(700px 300px at 88% 0%, rgba(59, 130, 246, .26), transparent 60%),
        radial-gradient(600px 300px at 4% 100%, rgba(217, 31, 38, .18), transparent 60%),
        linear-gradient(135deg, #071531 0%, #0F2A5E 100%);
}
.hx-certs::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
    background-size: 46px 46px;
    -webkit-mask-image: radial-gradient(ellipse at center, #000 25%, transparent 75%); mask-image: radial-gradient(ellipse at center, #000 25%, transparent 75%);
}
.hx-head.is-light .hx-eyebrow { color: var(--hx-gold); }
.hx-head.is-light h2 { color: #fff; margin-bottom: 0; }
.hx-head.is-light h2 em { background: linear-gradient(90deg, #F6D98C, #E9B84B); -webkit-background-clip: text; background-clip: text; }
.hx-cert-list {
    list-style: none; margin: 48px 0 0; padding: 0; position: relative;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.hx-cert { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 6px 22px; }
.hx-cert + .hx-cert::before {
    content: ""; position: absolute; left: 0; top: 12%; height: 76%; width: 1px;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .24), transparent);
}
.hx-emblem {
    width: 88px; height: 88px; padding: 3px; margin-bottom: 12px; border-radius: 50%;
    background: conic-gradient(from 200deg, #F8E2A0, #B98A2E 25%, #F8E2A0 50%, #8D6521 75%, #F8E2A0);
    box-shadow: 0 16px 32px -14px rgba(0, 0, 0, .7), 0 0 0 7px rgba(246, 217, 140, .1);
    transition: transform .4s cubic-bezier(.3, 1.3, .5, 1);
}
.hx-cert:hover .hx-emblem { transform: translateY(-5px) scale(1.05); }
.hx-emblem-in { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; color: var(--hx-gold); background: radial-gradient(circle at 30% 22%, #23499A, #0A1D45 70%); }
.hx-emblem-in svg { width: 38px; height: 38px; }
.hx-emblem.has-img .hx-emblem-in { background: #fff; padding: 13px; }
.hx-emblem-in img { width: 100%; height: 100%; object-fit: contain; }
.hx-cert strong { font-family: var(--hx-head); font-size: 1.08rem; line-height: 1.3; color: #fff; }
.hx-cert-sub { font-size: .87rem; line-height: 1.55; color: #A9BADB; max-width: 210px; }

/* =========================================================
   4. VIDEO POP-UP
   ========================================================= */
html.hx-lock { overflow: hidden; }
.hx-modal { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.hx-modal[hidden] { display: none; }
.hx-backdrop { position: absolute; inset: 0; background: rgba(5, 12, 28, .84); -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px); animation: hxFade .25s ease both; }
.hx-dialog {
    position: relative; width: min(960px, 100%); border-radius: 22px; overflow: hidden; background: #0A1731; color: #fff;
    box-shadow: 0 50px 100px -30px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .08); animation: hxPop .38s cubic-bezier(.2, .9, .3, 1.15) both;
    max-height: calc(100vh - 40px); display: flex; flex-direction: column;
}
.hx-stage { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; flex: none; }
.hx-stage::before {
    content: ""; position: absolute; left: 50%; top: 50%; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, .18); border-top-color: #fff; animation: hxSpin .8s linear infinite;
}
.hx-stage iframe, .hx-stage video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.hx-stage .hx-fail { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; color: #C9D6EE; }
.hx-dialog.is-portrait { width: min(calc(70vh * .5625), 100%); }
.hx-dialog.is-portrait .hx-stage { aspect-ratio: 9 / 16; max-height: 70vh; }
.hx-close {
    position: absolute; right: 12px; top: 12px; z-index: 3; display: grid; place-items: center; width: 42px; height: 42px; padding: 0;
    border-radius: 50%; border: 1px solid rgba(255, 255, 255, .28); background: rgba(8, 20, 45, .62); color: #fff; cursor: pointer;
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background .2s, transform .2s;
}
.hx-close:hover { background: #D91F26; transform: rotate(90deg); }
.hx-close:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.hx-close svg { width: 18px; height: 18px; }
.hx-meta { padding: 16px 24px 20px; overflow: auto; }
.hx-meta strong { font-family: var(--hx-head); font-size: 1.1rem; }
.hx-meta span { margin-left: 10px; font-size: .88rem; color: #9FB2D6; }
.hx-meta p { margin: 8px 0 0; font-size: .95rem; line-height: 1.65; color: #C9D6EE; }
.hx-meta p:empty { display: none; }
.hx-meta span:empty { display: none; }
@keyframes hxFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes hxPop  { from { opacity: 0; transform: translateY(24px) scale(.95); } to { opacity: 1; transform: none; } }
@keyframes hxSpin { to { transform: rotate(360deg); } }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
    .hx-logo { flex-basis: calc((100% - 48px) / 4); }
}
@media (max-width: 820px) {
    .hx-reviews { padding: 70px 0 60px; }
    .hx-clients { padding: 66px 0 70px; }
    .hx-certs   { padding: 60px 0 64px; }
    .hx-card { width: min(318px, 82vw); }
    .hx-group { gap: 18px; padding: 0 18px; }
    .hx-logo { flex-basis: calc((100% - 32px) / 3); height: 88px; }
}
@media (max-width: 640px) {
    .hx-wrap { width: calc(100% - 32px); }
    .hx-track { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 3%, #000 97%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 3%, #000 97%, transparent 100%); }
    .hx-score { font-size: .84rem; padding: 8px 16px 8px 14px; gap: 10px; }
    .hx-play { width: 58px; height: 58px; margin: -29px 0 0 -29px; }
    .hx-logos { gap: 12px; margin-top: 34px; }
    .hx-logo { flex-basis: calc((100% - 12px) / 2); height: 80px; padding: 10px 14px; border-radius: 15px; }
    .hx-logo img { max-height: 40px; }
    .hx-wordmark { font-size: .95rem; }
    .hx-cert-list {
        display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 34px -16px 0; padding: 4px 16px 10px;
        scrollbar-width: none; -webkit-overflow-scrolling: touch;
    }
    .hx-cert-list::-webkit-scrollbar { display: none; }
    .hx-cert { flex: 0 0 74%; scroll-snap-align: center; }
    .hx-modal { padding: 12px; }
    .hx-dialog { border-radius: 18px; }
    .hx-meta { padding: 14px 18px 18px; }
    .hx-meta span { display: block; margin: 2px 0 0; }
}

@media (prefers-reduced-motion: reduce) {
    .hx-play::before { animation: none; }
    .hx-card, .hx-card:hover, .hx-media img, .hx-logo, .hx-emblem { transition: none; }
    .hx-card:hover, .hx-logo:hover { transform: none; }
    .hx-backdrop, .hx-dialog { animation: none; }
}