/* ==========================================================================
   CTA Strip Widget — v2 Premium with floating elements
   Plugin: Developercode Core
   ========================================================================== */

:root {
    --cts-primary: #FF6B00;
    --cts-primary-rgb: 255, 107, 0;
    --cts-dark: #0A1628;
    --cts-dark-rgb: 10, 22, 40;
}

/* ---------- Section ----------------------------------------------------- */
.cts {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
}

.cts__bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.cts__bg-image {
    position: absolute;
    inset: 0;
}

.cts__bg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cts__bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(var(--cts-dark-rgb), 0.92) 0%, rgba(var(--cts-dark-rgb), 0.8) 50%, rgba(var(--cts-dark-rgb), 0.88) 100%);
}

/* Grid pattern */
.cts__bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

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

/* ---------- Layout ------------------------------------------------------ */
.cts__layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
}

/* ---------- Left: content ----------------------------------------------- */
.cts__content {
    flex: 1;
    min-width: 0;
}

.cts__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

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

.cts__eyebrow-road-line {
    display: block;
    width: 40px;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--cts-primary) 0px, var(--cts-primary) 8px, transparent 8px, transparent 14px);
    opacity: 0.6;
}

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

@keyframes cts-drive {
    0%, 100% { transform: translateX(0); }
    50%      { transform: translateX(5px); }
}

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

.cts__title {
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 12px;
    line-height: 1.2;
}

.cts__title-highlight {
    color: var(--cts-primary);
}

.cts__subtitle {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.55);
    margin: 0 0 28px;
    line-height: 1.65;
    max-width: 480px;
}

/* CTAs */
.cts__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.cts__cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.cts__cta svg { width: 16px; height: 16px; transition: transform 0.3s ease; }

.cts__cta--primary {
    background: var(--cts-primary);
    color: #fff;
    box-shadow: 0 4px 20px rgba(var(--cts-primary-rgb), 0.35);
}

.cts__cta--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(var(--cts-primary-rgb), 0.5);
}

.cts__cta--primary:hover svg { transform: translateX(4px); }

.cts__cta--secondary {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.cts__cta--secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
    transform: translateY(-2px);
}

/* Phone separator + link */
.cts__phone-sep {
    width: 1px;
    height: 28px;
    background: rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.cts__phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.cts__phone:hover { color: var(--cts-primary); }
.cts__phone svg { width: 15px; height: 15px; color: var(--cts-primary); }

/* ---------- Right: floating cards --------------------------------------- */
.cts__visuals {
    position: relative;
    width: 340px;
    height: 240px;
    flex-shrink: 0;
}

/* Floating glassmorphism cards */
.cts__vcard {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    color: #fff;
    white-space: nowrap;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.cts__vcard-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(var(--cts-primary-rgb), 0.15);
    color: var(--cts-primary);
    flex-shrink: 0;
}

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

.cts__vcard-text {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.3;
}

.cts__vcard-value {
    display: block;
    font-size: 18px;
    font-weight: 800;
    color: #fff;
}

/* Positions + animations */
.cts__vcard--1 {
    top: 0;
    left: 10px;
    animation: cts-float1 6s ease-in-out infinite;
}

.cts__vcard--2 {
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    animation: cts-float2 7s 1.5s ease-in-out infinite;
}

.cts__vcard--3 {
    bottom: 0;
    left: 30px;
    animation: cts-float3 8s 3s ease-in-out infinite;
}

@keyframes cts-float1 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-10px) rotate(1deg); }
}

@keyframes cts-float2 {
    0%, 100% { transform: translateY(-50%) translateX(0); }
    50%      { transform: translateY(calc(-50% + 8px)) translateX(-6px); }
}

@keyframes cts-float3 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-8px) rotate(-1deg); }
}

/* Decorative glow behind cards */
.cts__visuals-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: rgba(var(--cts-primary-rgb), 0.08);
    filter: blur(50px);
    pointer-events: none;
}

/* Animated streaks */
.cts__streak {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(var(--cts-primary-rgb), 0.2), transparent);
    z-index: 1;
    pointer-events: none;
    animation: cts-streak 5s linear infinite;
}

.cts__streak--1 { top: 25%; left: -200px; width: 240px; animation-duration: 4.5s; }
.cts__streak--2 { top: 60%; left: -200px; width: 180px; animation-duration: 6s; animation-delay: 2s; }
.cts__streak--3 { top: 80%; left: -200px; width: 150px; animation-duration: 5s; animation-delay: 3.5s; opacity: 0.5; }

@keyframes cts-streak {
    0%   { transform: translateX(0); opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { transform: translateX(calc(100vw + 400px)); opacity: 0; }
}

/* ==========================================================================
   NO ANIMATION
   ========================================================================== */

.cts--no-anim .cts__vcard,
.cts--no-anim .cts__streak,
.cts--no-anim .cts__eyebrow-truck {
    animation: none !important;
}

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

@media (max-width: 1024px) {
    .cts__layout {
        flex-direction: column;
        text-align: center;
        gap: 36px;
    }

    .cts__subtitle { max-width: 100%; }

    .cts__ctas {
        justify-content: center;
    }

    .cts__visuals {
        width: 300px;
        height: 200px;
    }
}

@media (max-width: 768px) {
    .cts { padding: 56px 0; }
    .cts__inner { padding: 0 20px; }

    .cts__ctas {
        flex-direction: column;
        width: 100%;
    }

    .cts__cta { width: 100%; justify-content: center; }

    .cts__phone-sep { display: none; }

    .cts__visuals { display: none; }

    .cts__streak { display: none; }
}

@media (max-width: 480px) {
    .cts__inner { padding: 0 16px; }
    .cts__title { font-size: 22px; }
    .cts__subtitle { font-size: 14px; }
}

/* Editor */
.elementor-editor-active .cts__vcard,
.elementor-editor-active .cts__streak,
.elementor-editor-active .cts__eyebrow-truck {
    animation: none !important;
}

@media (prefers-reduced-motion: reduce) {
    .cts__vcard, .cts__streak, .cts__eyebrow-truck { animation: none !important; }
}
