/* OnePixel Soft — floating widgets, trust strip, and animation safety.
   Loaded after main.css / custom.css so it can safely override baseline. */

/* -----------------------------------------------------------------------------
 * 0a. Skip-to-content link (WCAG 2.4.1) — visible only on keyboard focus
 * -------------------------------------------------------------------------- */
.ops-skip-link {
    position: absolute;
    left: -9999px;
    top: 8px;
    z-index: 10000;
    background: var(--ops-brand);
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.ops-skip-link:focus,
.ops-skip-link:focus-visible {
    left: 12px;
    outline: 3px solid #fff;
    outline-offset: 2px;
}

/* Universal focus-visible ring — kicks in only when keyboard-triggered so
   mouse users don't see rings on click, but keyboard users always do */
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--ops-brand);
    outline-offset: 2px;
}

/* -----------------------------------------------------------------------------
 * 0. Content-reveal safety net
 * The template hides many elements via GSAP `.tp_fade_anim` (opacity:0 → 1).
 * When a user prefers reduced motion, or a rendering path throttles rAF, we
 * must never leave content invisible. This CSS pairs with the JS timer in
 * layouts/header.php: reduced-motion users skip the reveal entirely; everyone
 * else gets a hard visibility rescue after 4 seconds via the inline script.
 * -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {

    .tp_fade_anim,
    .tp_text_anim,
    .tp-text-invert,
    .tp-title-anim {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
        transition: none !important;
    }
}

/* -----------------------------------------------------------------------------
 * 1. Trust strip (footer)
 * -------------------------------------------------------------------------- */
.ops-trust-strip {
    padding: 56px 0 32px;
    border-top: 1px solid rgba(15, 17, 23, 0.08);
    background: #f6f7f9;
}

.ops-trust-strip-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: center;
}

@media (min-width: 992px) {
    .ops-trust-strip-inner {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 40px;
    }
}

.ops-trust-eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 12px;
    font-weight: 700;
    color: var(--ops-brand);
    margin-bottom: 10px;
}

.ops-trust-title {
    color: #0f1117;
    font-size: clamp(18px, 2.2vw, 22px);
    line-height: 1.35;
    /* max-width: 42ch; */
    margin: 0;
    font-weight: 600;
}

.ops-trust-badges {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px 36px;
}

.ops-trust-badges li {
    display: flex;
}

.ops-trust-badges a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 76px;
    min-width: 130px;
    padding: 10px 22px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid rgba(15, 17, 23, 0.10);
    box-shadow: 0 4px 14px rgba(15, 17, 23, 0.04);
    transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.ops-trust-badges a:hover {
    border-color: var(--ops-brand);
    box-shadow: 0 10px 24px rgba(234, 85, 35, 0.14);
    transform: translateY(-3px);
}

.ops-trust-badges img {
    max-height: 52px;
    max-width: 140px;
    width: auto;
    filter: none;
    opacity: 1;
    object-fit: contain;
}

/* -----------------------------------------------------------------------------
 * 2. Floating action stack (WhatsApp / call / consultation)
 * -------------------------------------------------------------------------- */
.ops-fab-stack {
    position: fixed;
    right: clamp(14px, 2vw, 24px);
    bottom: clamp(14px, 2vw, 24px);
    z-index: 990;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
    pointer-events: none;
}

.ops-fab {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 54px;
    height: 54px;
    padding: 0 18px 0 20px;
    border: none;
    border-radius: 999px;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    cursor: pointer;
    line-height: 1;
    white-space: nowrap;
}

.ops-fab:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32);
    color: #fff;
}

.ops-fab:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.75);
    outline-offset: 3px;
}

.ops-fab i {
    font-size: 20px;
    line-height: 1;
}

.ops-fab-whatsapp {
    background: #25d366;
}

.ops-fab-whatsapp:hover {
    background: #1ebe5a;
}

.ops-fab-call {
    background: #1c2141;
}

.ops-fab-call:hover {
    background: #262c56;
}

.ops-fab-consult {
    background: linear-gradient(120deg, var(--ops-brand) 0%, var(--ops-brand-dark) 100%);
}

.ops-fab-consult:hover {
    background: linear-gradient(120deg, var(--ops-brand-soft) 0%, var(--ops-brand) 100%);
}

.ops-fab-label {
    display: inline;
}

@media (max-width: 640px) {
    .ops-fab {
        min-width: 48px;
        height: 48px;
        padding: 0;
        width: 48px;
    }

    .ops-fab-label {
        position: absolute;
        left: -9999px;
        width: 1px;
        height: 1px;
        overflow: hidden;
    }
}

/* -----------------------------------------------------------------------------
 * 3. Consultation modal
 * -------------------------------------------------------------------------- */
body.ops-modal-open {
    overflow: hidden;
}

.ops-modal {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(16px, 3vw, 32px);
}

.ops-modal[hidden] {
    display: none;
}

.ops-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 6, 15, 0.72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.ops-modal-panel {
    position: relative;
    width: min(560px, 100%);
    max-height: calc(100dvh - 48px);
    overflow-y: auto;
    background: #ffffff;
    color: #0f1117;
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.18);
    padding: clamp(24px, 4vw, 40px) clamp(24px, 4vw, 40px) clamp(24px, 4vw, 32px);
    animation: opsModalPop 0.22s ease-out both;
}

@keyframes opsModalPop {
    from {
        transform: translateY(10px) scale(0.98);
        opacity: 0;
    }

    to {
        transform: none;
        opacity: 1;
    }
}

.ops-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(15, 17, 23, 0.06);
    border: none;
    color: #0f1117;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.18s ease;
}

.ops-modal-close:hover {
    background: rgba(15, 17, 23, 0.12);
}

.ops-modal-eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 11px;
    font-weight: 600;
    color: var(--ops-brand);
    margin-bottom: 8px;
}

.ops-modal-title {
    font-size: clamp(22px, 3vw, 28px);
    line-height: 1.2;
    margin: 0 0 8px;
    font-weight: 600;
    color: #0f1117;
}

.ops-modal-lead {
    color: #565d6d;
    margin: 0 0 20px;
    font-size: 15px;
    line-height: 1.55;
}

.ops-modal-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ops-modal-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

@media (min-width: 560px) {
    .ops-modal-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.ops-modal-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ops-modal-field span {
    font-size: 13px;
    color: #565d6d;
    font-weight: 500;
}

.ops-modal-field input,
.ops-modal-field select,
.ops-modal-field textarea {
    width: 100%;
    background: #f7f8fa;
    color: #0f1117;
    border: 1px solid #e0e3ea;
    border-radius: 10px;
    padding: 12px 14px;
    font: inherit;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.ops-modal-field input:focus,
.ops-modal-field select:focus,
.ops-modal-field textarea:focus {
    outline: none;
    border-color: var(--ops-brand);
    background: #fff;
}

.ops-modal-field textarea {
    resize: vertical;
    min-height: 84px;
}

.ops-modal-field select option {
    color: #0f1117;
}

.ops-modal-submit {
    align-self: flex-start;
    margin-top: 6px;
}

.ops-modal-submit.is-loading {
    opacity: 0.7;
    pointer-events: none;
}

.ops-modal-fineprint {
    color: #8b92a5;
    font-size: 12px;
    margin: 8px 0 0;
}

.ops-modal-note {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.5;
}

.ops-modal-note-success {
    background: rgba(37, 211, 102, 0.1);
    color: #1a7a3a;
    border: 1px solid rgba(37, 211, 102, 0.3);
}

.ops-modal-note-error {
    background: rgba(220, 53, 69, 0.08);
    color: #b02a37;
    border: 1px solid rgba(220, 53, 69, 0.25);
}

/* -----------------------------------------------------------------------------
 * 4. Client logo marquee + testimonials (home + about-us)
 * -------------------------------------------------------------------------- */
.ops-clients-marquee {
    padding: 72px 0 32px;
    background: linear-gradient(180deg, rgba(20, 26, 50, 0) 0%, rgba(20, 26, 50, 0.35) 50%, rgba(20, 26, 50, 0) 100%);
    color: #fff;
    overflow: hidden;
}

.ops-clients-heading {
    text-align: center;
    margin-bottom: 40px;
}

.ops-clients-eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 10px;
}

.ops-clients-title {
    font-size: clamp(22px, 2.6vw, 30px);
    line-height: 1.28;
    color: rgba(255, 255, 255, 0.92);
    max-width: 46ch;
    margin: 0 auto;
    font-weight: 500;
}

.ops-clients-track-viewport {
    position: relative;
    overflow: hidden;
    margin: 0 -12px;
    mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}

.ops-clients-track {
    display: flex;
    gap: 40px;
    width: max-content;
    animation: opsClientsScroll 42s linear infinite;
}

.ops-clients-track:hover {
    animation-play-state: paused;
}

@keyframes opsClientsScroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.ops-clients-item {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 12px 22px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 15px;
    white-space: nowrap;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.ops-clients-item:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: translateY(-2px);
}

.ops-clients-item img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
    background: #fff;
    padding: 3px;
    flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
    .ops-clients-track {
        animation: none;
        transform: none;
        flex-wrap: wrap;
        justify-content: center;
    }
}

.ops-testimonials {
    padding: 64px 0 96px;
    color: #fff;
}

.ops-testimonials-heading {
    text-align: center;
    margin-bottom: 44px;
}

.ops-testimonials-eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 12px;
    font-weight: 600;
    color: var(--ops-brand);
    margin-bottom: 10px;
}

.ops-testimonials-title {
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.22;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 auto 12px;
    font-weight: 500;
    max-width: 22ch;
}

.ops-testimonials-lead {
    color: rgba(255, 255, 255, 0.65);
    max-width: 46ch;
    margin: 0 auto;
}

.ops-testimonials-lead a {
    color: var(--ops-brand);
}

.ops-testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 720px) {
    .ops-testimonials-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1120px) {
    .ops-testimonials-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.ops-testimonial-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 26px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: border-color 0.2s ease, transform 0.2s ease;
    margin: 0;
}

.ops-testimonial-card:hover {
    border-color: rgba(255, 107, 138, 0.4);
    transform: translateY(-4px);
}

.ops-testimonial-quotemark {
    color: var(--ops-brand);
}

.ops-testimonial-quote {
    margin: 0;
}

.ops-testimonial-quote p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    line-height: 1.55;
}

.ops-testimonial-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: auto;
    padding-top: 16px;
}

.ops-testimonial-meta strong {
    color: #fff;
    font-weight: 600;
    font-size: 15px;
}

.ops-testimonial-meta span {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
}

.ops-testimonial-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    color: var(--ops-brand);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease, gap 0.2s ease;
}

.ops-testimonial-link:hover {
    color: #ff8fa4;
    gap: 10px;
}

/* -----------------------------------------------------------------------------
 * 5. Lead-form inline notes (contact / career / internship pages)
 * -------------------------------------------------------------------------- */
.ops-form-note {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 14px;
    max-width: 620px;
}

.ops-form-note-success {
    background: rgba(37, 211, 102, 0.14);
    color: #1e7d3e;
    border: 1px solid rgba(37, 211, 102, 0.45);
}

.ops-form-note-error {
    background: rgba(220, 53, 69, 0.14);
    color: #a8323f;
    border: 1px solid rgba(220, 53, 69, 0.45);
}