/* ==========================================================================
   Why Choose Us / Stats Widget — Styles
   Plugin: Developercode Core
   ========================================================================== */

:root {
    --wcu-primary: #FF6B00;
    --wcu-primary-rgb: 255, 107, 0;
    --wcu-dark: #0A1628;
    --wcu-dark-rgb: 10, 22, 40;
    --wcu-bg: #ffffff;
    --wcu-text: #1e293b;
    --wcu-text-muted: #64748b;
    --wcu-border: rgba(10, 22, 40, 0.07);
}

/* ---------- Section ----------------------------------------------------- */
.wcu {
    position: relative;
    padding: 100px 0;
    background: var(--wcu-bg);
    overflow: hidden;
    color: var(--wcu-text);
}

.wcu__inner {
    max-width: 1340px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 2;
}

/* Background grid pattern */
.wcu__pattern {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(var(--wcu-dark-rgb), 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--wcu-dark-rgb), 0.02) 1px, transparent 1px);
    background-size: 70px 70px;
    mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 0%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 0%, transparent 100%);
}

/* Glow accent */
.wcu__glow {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(var(--wcu-primary-rgb), 0.04);
    filter: blur(100px);
    z-index: 1;
    pointer-events: none;
}

.wcu__glow--left {
    top: -20%;
    left: -10%;
}

.wcu__glow--right {
    bottom: -20%;
    right: -10%;
    background: rgba(var(--wcu-primary-rgb), 0.03);
}

/* ---------- Layout: two columns ----------------------------------------- */
.wcu__layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

/* ---------- Left: Header content ---------------------------------------- */
.wcu__header {
    max-width: 520px;
}

.wcu__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    opacity: 0;
    transform: translateY(20px);
}

.wcu__eyebrow-road {
    display: inline-flex;
    align-items: center;
    position: relative;
    height: 2px;
    flex-shrink: 0;
}

.wcu__eyebrow-road-line {
    display: block;
    width: 48px;
    height: 2px;
    background: repeating-linear-gradient(
        90deg,
        var(--wcu-primary) 0px,
        var(--wcu-primary) 8px,
        transparent 8px,
        transparent 14px
    );
    opacity: 0.5;
}

.wcu__eyebrow-truck {
    width: 16px;
    height: 16px;
    color: var(--wcu-primary);
    flex-shrink: 0;
    margin-left: -2px;
    animation: wcu-eyebrow-drive 3s ease-in-out infinite;
}

@keyframes wcu-eyebrow-drive {
    0%, 100% { transform: translateX(0); }
    50%      { transform: translateX(6px); }
}

.wcu__eyebrow-text {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--wcu-primary);
    white-space: nowrap;
}

.wcu__title {
    font-size: clamp(30px, 3.5vw, 44px);
    font-weight: 800;
    line-height: 1.15;
    color: var(--wcu-text);
    margin: 0 0 20px;
    opacity: 0;
    transform: translateY(20px);
}

.wcu__title-highlight {
    color: var(--wcu-primary);
}

.wcu__intro {
    font-size: 16px;
    line-height: 1.75;
    color: var(--wcu-text-muted);
    margin: 0 0 36px;
    opacity: 0;
    transform: translateY(20px);
}

/* Trust badges — 3 column grid */
.wcu__badges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    opacity: 0;
    transform: translateY(20px);
}

.wcu__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #f8fafc;
    border: 1px solid var(--wcu-border);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--wcu-text-muted);
    transition: all 0.3s ease;
}

.wcu__badge:hover {
    background: rgba(var(--wcu-primary-rgb), 0.06);
    border-color: rgba(var(--wcu-primary-rgb), 0.2);
    color: var(--wcu-text);
}

.wcu__badge-icon {
    width: 18px;
    height: 18px;
    color: var(--wcu-primary);
    flex-shrink: 0;
}

.wcu__badge-icon svg {
    width: 100%;
    height: 100%;
}

/* ---------- Media (Image / Video) --------------------------------------- */
.wcu__media {
    margin-top: 32px;
    opacity: 0;
    transform: translateY(20px);
}

.wcu__media-image {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--wcu-border);
}

.wcu__media-image img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.wcu__media-image:hover img {
    transform: scale(1.03);
}

.wcu__media-video {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--wcu-border);
    background: #000;
}

.wcu__media-video iframe,
.wcu__media-video video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: 0;
}

/* ---------- Right: Stats dashboard -------------------------------------- */
.wcu__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.wcu__stat {
    position: relative;
    padding: 28px 24px;
    background: var(--wcu-bg);
    border: 1px solid var(--wcu-border);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(30px);
}

.wcu__stat:hover {
    border-color: rgba(var(--wcu-primary-rgb), 0.2);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(var(--wcu-dark-rgb), 0.08);
}

/* Top accent line */
.wcu__stat-accent {
    position: absolute;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, var(--wcu-primary), rgba(var(--wcu-primary-rgb), 0.2));
    transition: width 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: calc(var(--wcu-i, 0) * 0.15s);
}

.wcu.wcu-animated .wcu__stat-accent {
    width: 100%;
}

/* Stat icon */
.wcu__stat-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(var(--wcu-primary-rgb), 0.08);
    border: 1px solid rgba(var(--wcu-primary-rgb), 0.12);
    color: var(--wcu-primary);
    margin-bottom: 18px;
    transition: all 0.3s ease;
}

.wcu__stat-icon svg {
    width: 20px;
    height: 20px;
}

.wcu__stat:hover .wcu__stat-icon {
    background: rgba(var(--wcu-primary-rgb), 0.14);
    border-color: rgba(var(--wcu-primary-rgb), 0.25);
    transform: scale(1.05);
}

/* Number */
.wcu__stat-number {
    font-size: 36px;
    font-weight: 800;
    color: var(--wcu-text);
    line-height: 1;
    margin-bottom: 6px;
    font-variant-numeric: tabular-nums;
}

.wcu__stat-number-suffix {
    color: var(--wcu-primary);
}

/* Label */
.wcu__stat-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--wcu-text);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Supporting text */
.wcu__stat-support {
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--wcu-text-muted);
    margin: 0;
}

/* ---------- Service cards (bottom row, sov__card style) ----------------- */
.wcu__services {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid var(--wcu-border);
}

.wcu__svc-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    opacity: 0;
    transform: translateY(30px);
}

.wcu__svc-card-image {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.wcu__svc-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.wcu__svc-card:hover .wcu__svc-card-image img {
    transform: scale(1.08);
}

/* Overlay */
.wcu__svc-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(180deg, rgba(var(--wcu-dark-rgb), 0.15) 0%, rgba(var(--wcu-dark-rgb), 0.4) 40%, rgba(var(--wcu-dark-rgb), 0.88) 100%);
    transition: opacity 0.5s ease;
}

.wcu__svc-card:hover .wcu__svc-card-image::after {
    opacity: 0.95;
}

/* Icon */
.wcu__svc-card-icon {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 5;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    transition: all 0.4s ease;
}

.wcu__svc-card-icon svg {
    width: 18px;
    height: 18px;
}

.wcu__svc-card:hover .wcu__svc-card-icon {
    background: var(--wcu-primary);
    border-color: var(--wcu-primary);
    transform: scale(1.08) rotate(-3deg);
    box-shadow: 0 4px 16px rgba(var(--wcu-primary-rgb), 0.4);
}

/* Body */
.wcu__svc-card-body {
    position: relative;
    z-index: 3;
    margin-top: auto;
    padding: 20px 18px 16px;
}

.wcu__svc-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px;
    line-height: 1.3;
}

.wcu__svc-card-desc {
    font-size: 12.5px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.wcu__svc-card:hover .wcu__svc-card-desc {
    max-height: 80px;
    opacity: 1;
    margin: 0 0 0;
}

/* Arrow */
.wcu__svc-card-arrow {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 5;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-6px);
}

.wcu__svc-card-arrow svg {
    width: 13px;
    height: 13px;
}

.wcu__svc-card:hover .wcu__svc-card-arrow {
    opacity: 1;
    transform: translateX(0);
    background: var(--wcu-primary);
    color: #fff;
}

/* ---------- Services CTA ------------------------------------------------ */
.wcu__services-cta {
    display: flex;
    justify-content: center;
    margin-top: 28px;
    opacity: 0;
    transform: translateY(20px);
}

.wcu__services-cta-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 14px;
    font-weight: 700;
    color: var(--wcu-primary);
    text-decoration: none;
    border: 1.5px solid rgba(var(--wcu-primary-rgb), 0.25);
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.3px;
}

.wcu__services-cta-link:hover {
    background: var(--wcu-primary);
    border-color: var(--wcu-primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--wcu-primary-rgb), 0.25);
}

.wcu__services-cta-link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.wcu__services-cta-link:hover svg {
    transform: translateX(4px);
}

/* ==========================================================================
   ENTRANCE ANIMATIONS
   ========================================================================== */

.wcu.wcu-animated .wcu__eyebrow {
    animation: wcu-fade-up 0.6s 0.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.wcu.wcu-animated .wcu__title {
    animation: wcu-fade-up 0.6s 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.wcu.wcu-animated .wcu__intro {
    animation: wcu-fade-up 0.6s 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.wcu.wcu-animated .wcu__badges {
    animation: wcu-fade-up 0.6s 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.wcu.wcu-animated .wcu__media {
    animation: wcu-fade-up 0.6s 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.wcu.wcu-animated .wcu__svc-card {
    animation: wcu-fade-up 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: calc(0.6s + var(--wcu-sc, 0) * 0.1s);
}
.wcu.wcu-animated .wcu__services-cta {
    animation: wcu-fade-up 0.6s 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.wcu.wcu-animated .wcu__stat {
    animation: wcu-fade-up 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: calc(0.2s + var(--wcu-i, 0) * 0.12s);
}

@keyframes wcu-fade-up {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* No-animation */
.wcu--no-anim .wcu__eyebrow,
.wcu--no-anim .wcu__title,
.wcu--no-anim .wcu__intro,
.wcu--no-anim .wcu__badges,
.wcu--no-anim .wcu__media,
.wcu--no-anim .wcu__stat,
.wcu--no-anim .wcu__svc-card,
.wcu--no-anim .wcu__services-cta {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
}

.wcu--no-anim .wcu__stat-accent {
    width: 100% !important;
    transition: none !important;
}

.wcu--no-anim .wcu__eyebrow-truck {
    animation: none !important;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
    .wcu {
        padding: 80px 0;
    }

    .wcu__layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .wcu__header {
        max-width: 100%;
    }

    .wcu__stats {
        max-width: 560px;
    }

    .wcu__services {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .wcu {
        padding: 60px 0;
    }

    .wcu__inner {
        padding: 0 20px;
    }

    .wcu__stats {
        gap: 12px;
    }

    .wcu__stat {
        padding: 22px 20px;
    }

    .wcu__stat-number {
        font-size: 28px;
    }

    .wcu__stat-icon {
        width: 38px;
        height: 38px;
        margin-bottom: 14px;
    }

    .wcu__stat-icon svg {
        width: 17px;
        height: 17px;
    }

    .wcu__glow {
        display: none;
    }

    .wcu__services {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .wcu__svc-card {
        min-height: 220px;
    }

    .wcu__svc-card-desc {
        max-height: none !important;
        opacity: 1 !important;
    }

    .wcu__svc-card-arrow {
        opacity: 1 !important;
        transform: none !important;
    }
}

@media (max-width: 480px) {
    .wcu__stats {
        grid-template-columns: 1fr;
    }

    .wcu__badges {
        grid-template-columns: 1fr;
    }

    .wcu__stat-number { font-size: 24px; }
    .wcu__svc-card { min-height: 160px; }
    .wcu__inner { padding: 0 16px; }
}

/* Elementor editor */
.elementor-editor-active .wcu__eyebrow,
.elementor-editor-active .wcu__title,
.elementor-editor-active .wcu__intro,
.elementor-editor-active .wcu__badges,
.elementor-editor-active .wcu__stat {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .wcu__eyebrow, .wcu__title, .wcu__intro,
    .wcu__badges, .wcu__stat {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }
    .wcu__stat-accent {
        width: 100% !important;
        transition: none !important;
    }
}
