/* ==========================================================================
   Home CTA — "With talented freelancers do more work."
   Full-bleed black band; the CTA video (black background) blends into it.
   Theme colors from Admin via --main-color-one / --secondary-color.
   ========================================================================== */

.dl-hcta {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 620px;
    margin-top: 110px;
    padding: 0; /* theme gives every <section> 120px padding */
    background: #000000;
    color: rgba(255, 255, 255, 0.72);
    overflow: hidden;
}

/* Video: right side, faded into the black on the left/top/bottom edges */
.dl-hcta-media {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 64%;
    z-index: 0;
    pointer-events: none;
    -webkit-mask-image:
        linear-gradient(90deg, transparent 0%, #000 32%, #000 100%),
        linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image:
        linear-gradient(90deg, transparent 0%, #000 32%, #000 100%),
        linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
    mask-composite: intersect;
}

.dl-hcta .dl-cta-video {
    width: 100%;
    height: 100%;
    display: block;
    /* contain: the clip's black backdrop matches the section, so nothing gets cropped */
    object-fit: contain;
    object-position: 60% 50%;
    background: #000000;
    transform: scale(1.04);
    animation: dl-hcta-zoom 18s ease-in-out infinite alternate;
}

.dl-hcta .dl-cta-video::-webkit-media-controls {
    display: none !important;
}

/* Soft theme-colored light, behind the text */
.dl-hcta-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    z-index: 0;
}

.dl-hcta-glow--1 {
    width: 520px;
    height: 520px;
    left: -180px;
    bottom: -220px;
    background: color-mix(in srgb, var(--main-color-one) 38%, transparent);
    animation: dl-hcta-drift 16s ease-in-out infinite;
}

.dl-hcta-glow--2 {
    width: 360px;
    height: 360px;
    left: 30%;
    top: -220px;
    background: color-mix(in srgb, var(--secondary-color) 16%, transparent);
    animation: dl-hcta-drift 20s ease-in-out infinite reverse;
}

.dl-hcta-inner {
    position: relative;
    z-index: 2;
    max-width: 1320px;
    padding-top: 110px;
    padding-bottom: 110px;
}

.dl-hcta-copy {
    max-width: 580px;
}

.dl-hcta-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    padding: 7px 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 60px;
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.dl-hcta-dot {
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--main-color-one);
}

.dl-hcta-dot::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: inherit;
    animation: dl-hcta-ping 1.8s cubic-bezier(0, 0, .2, 1) infinite;
}

.dl-hcta .dl-hcta-title {
    margin: 0 0 20px;
    font-size: 54px;
    font-weight: 700;
    line-height: 1.12;
    color: #ffffff;
}

.dl-hcta-highlight {
    display: block;
    background: linear-gradient(90deg, var(--main-color-one), color-mix(in srgb, var(--main-color-one) 45%, var(--secondary-color)), var(--main-color-one));
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: dl-hcta-shine 6s linear infinite;
}

.dl-hcta .dl-hcta-text {
    max-width: 500px;
    margin: 0 0 34px;
    font-size: 18px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.72);
}

.dl-hcta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 34px;
}

.dl-hcta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 54px;
    padding: 0 30px;
    border: 1px solid transparent;
    border-radius: 60px;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}

.dl-hcta-btn i {
    transition: transform .25s ease;
}

.dl-hcta-btn:hover i {
    transform: translateX(4px);
}

.dl-hcta-btn--primary {
    background: var(--main-color-one);
    color: #ffffff;
    box-shadow: 0 10px 30px color-mix(in srgb, var(--main-color-one) 40%, transparent);
}

.dl-hcta-btn--primary:hover,
.dl-hcta-btn--primary:focus-visible {
    background: #ffffff;
    color: #111111;
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(255, 255, 255, 0.18);
}

.dl-hcta-btn--ghost {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.35);
    color: #ffffff;
}

.dl-hcta-btn--ghost:hover,
.dl-hcta-btn--ghost:focus-visible {
    background: #ffffff;
    border-color: #ffffff;
    color: #111111;
    transform: translateY(-2px);
}

.dl-hcta-points {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.78);
}

.dl-hcta-points i {
    margin-right: 8px;
    color: var(--main-color-one);
}

@keyframes dl-hcta-zoom {
    from { transform: scale(1.04); }
    to { transform: scale(1.1); }
}

@keyframes dl-hcta-drift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(60px, -30px) scale(1.1); }
}

@keyframes dl-hcta-shine {
    to { background-position: 200% center; }
}

@keyframes dl-hcta-ping {
    75%, 100% { transform: scale(2.6); opacity: 0; }
}

/* ---------- Tablet & mobile: video on top, copy below ---------- */
@media (max-width: 1199.98px) {
    .dl-hcta .dl-hcta-title { font-size: 46px; }
    .dl-hcta-media { width: 70%; }
}

@media (max-width: 991.98px) {
    .dl-hcta {
        flex-direction: column;
        align-items: stretch;
        min-height: 0;
        margin-top: 60px;
        text-align: center;
    }

    .dl-hcta-media {
        position: relative;
        width: 100%;
        aspect-ratio: 16 / 9;
        max-height: 420px;
        -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 72%, transparent 100%);
        mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 72%, transparent 100%);
    }

    .dl-hcta-inner {
        margin-top: -40px;
        padding-top: 0;
        padding-bottom: 80px;
    }

    .dl-hcta-copy {
        margin: 0 auto;
    }

    .dl-hcta .dl-hcta-text { margin-left: auto; margin-right: auto; }
    .dl-hcta-actions,
    .dl-hcta-points { justify-content: center; }
}

@media (max-width: 575.98px) {
    .dl-hcta .dl-hcta-title { font-size: 34px; }
    .dl-hcta .dl-hcta-text { font-size: 16px; }
    .dl-hcta-actions { flex-direction: column; }
    .dl-hcta-btn { width: 100%; }
    .dl-hcta-inner { margin-top: -20px; padding-bottom: 64px; }
}

@media (prefers-reduced-motion: reduce) {
    .dl-hcta *,
    .dl-hcta *::before,
    .dl-hcta *::after {
        animation: none !important;
        transition: none !important;
    }
}
