/* =========================================================
   CREATORS SERVICES – COSMIC / CINEMATIC FOOTER
   Matches the deep blue-purple space theme
   ========================================================= */

:root {
    --cs-footer-bg: #050510;
    --cs-footer-surface: #0b0b1a;
    --cs-footer-border: rgba(255, 255, 255, 0.07);
    --cs-footer-text: #eef0ff;
    --cs-footer-muted: #a0a4c8;
    --cs-footer-accent: #8b5cf6;          /* Primary purple */
    --cs-footer-accent-soft: rgba(139, 92, 246, 0.15);
    --cs-footer-accent-glow: rgba(139, 92, 246, 0.4);
    --cs-footer-blue: #6366f1;
    --cs-footer-radius: 18px;
    --cs-footer-transition: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------------------------------------------------------
   Base Footer
   --------------------------------------------------------- */
.cs-footer {
    position: relative;
    background: var(--cs-footer-bg);
    color: var(--cs-footer-text);
    overflow: hidden;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    isolation: isolate;
}

/* ---------------------------------------------------------
   Decorative Background (Cosmic Atmosphere)
   --------------------------------------------------------- */
.cs-footer__background {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* Soft purple + blue glows */
.cs-footer__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(130px);
    opacity: 0.5;
}

.cs-footer__glow--one {
    width: 560px;
    height: 560px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.35) 0%, transparent 70%);
    top: -200px;
    left: -140px;
    animation: cs-glow-float 16s ease-in-out infinite alternate;
}

.cs-footer__glow--two {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, transparent 70%);
    bottom: -180px;
    right: -120px;
    animation: cs-glow-float 20s ease-in-out infinite alternate-reverse;
}

/* Subtle star grid */
.cs-footer__grid {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1.5px 1.5px at 20px 30px, rgba(255,255,255,0.35), transparent),
        radial-gradient(1.5px 1.5px at 40px 70px, rgba(255,255,255,0.25), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255,255,255,0.3), transparent),
        radial-gradient(1.5px 1.5px at 130px 80px, rgba(255,255,255,0.2), transparent),
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 200px 100px, 200px 100px, 200px 100px, 200px 100px, 70px 70px, 70px 70px;
    mask-image: radial-gradient(ellipse 85% 65% at 50% 35%, black 15%, transparent 80%);
    opacity: 0.55;
}

@keyframes cs-glow-float {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, -25px) scale(1.1); }
}

/* ---------------------------------------------------------
   Container
   --------------------------------------------------------- */
.cs-footer *,
.cs-footer *::before,
.cs-footer *::after {
    box-sizing: border-box;
}

.cs-footer__container {
    position: relative;
    z-index: 1;
    width: min(100% - 32px, 1240px);
    margin-inline: auto;
}

/* ---------------------------------------------------------
   CTA Section
   --------------------------------------------------------- */
.cs-footer__cta-wrap {
    padding: 5.5rem 0 4rem;
    border-bottom: 1px solid var(--cs-footer-border);
}

.cs-footer-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
    padding: 2.8rem 3.2rem;
    background: linear-gradient(145deg, rgba(15, 15, 35, 0.85), rgba(8, 8, 20, 0.95));
    border: 1px solid rgba(139, 92, 246, 0.18);
    border-radius: calc(var(--cs-footer-radius) + 6px);
    box-shadow:
        0 0 0 1px rgba(139, 92, 246, 0.08),
        0 25px 50px -12px rgba(0, 0, 0, 0.65),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    position: relative;
    overflow: hidden;
}

.cs-footer-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(139, 92, 246, 0.06) 50%, transparent 70%);
    pointer-events: none;
}

.cs-footer-cta__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #c4b5fd;
    margin-bottom: 1rem;
}

.cs-footer-cta__status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #a78bfa;
    box-shadow: 0 0 14px rgba(167, 139, 250, 0.7);
    animation: cs-pulse 2.4s ease-in-out infinite;
}

@keyframes cs-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.55; transform: scale(0.82); }
}

.cs-footer-cta__title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.95rem, 4.2vw, 2.85rem);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: #ffffff;
    margin: 0 0 1rem;
}

.cs-footer-cta__description {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--cs-footer-muted);
    max-width: 44ch;
    margin: 0;
}

.cs-footer-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    max-width: 100%;
}

/* Primary Button – solid purple like the design */
.cs-footer-cta__primary {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.95rem 1.8rem;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 999px;
    text-decoration: none;
    transition: var(--cs-footer-transition);
    box-shadow: 0 8px 28px -6px rgba(139, 92, 246, 0.55);
    border: none;
}

.cs-footer-cta__primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px -4px rgba(139, 92, 246, 0.65);
    background: linear-gradient(135deg, #9d6fff, #8b5cf6);
}

.cs-footer-cta__primary svg {
    transition: transform 0.3s ease;
}

.cs-footer-cta__primary:hover svg {
    transform: translateX(3px);
}

/* Secondary Button – outlined */
.cs-footer-cta__secondary {
    display: inline-flex;
    align-items: center;
    padding: 0.95rem 1.65rem;
    color: var(--cs-footer-text);
    font-weight: 500;
    font-size: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    text-decoration: none;
    transition: var(--cs-footer-transition);
    background: rgba(255, 255, 255, 0.04);
}

.cs-footer-cta__secondary:hover {
    border-color: rgba(139, 92, 246, 0.45);
    background: var(--cs-footer-accent-soft);
    color: #c4b5fd;
}

/* ---------------------------------------------------------
   Main Footer Grid
   --------------------------------------------------------- */
.cs-footer__main {
    padding: 4.5rem 0 3.5rem;
}

.cs-footer__grid-layout {
    display: grid;
    grid-template-columns: 1.45fr repeat(4, 1fr);
    gap: 3rem 2.5rem;
}

/* Brand */
.cs-footer-brand__link {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    text-decoration: none;
    color: inherit;
    margin-bottom: 1.4rem;
}

.cs-footer-brand__logo {
    max-height: 48px;
    width: auto;
}

.cs-footer-brand__mark {
    display: flex;
    color: #a78bfa;
    filter: drop-shadow(0 0 16px rgba(167, 139, 250, 0.45));
}

.cs-footer-brand__text strong {
    display: block;
    font-size: 1.28rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.cs-footer-brand__text strong span {
    color: #c4b5fd;
}

.cs-footer-brand__text small {
    display: block;
    font-size: 0.75rem;
    color: var(--cs-footer-muted);
    margin-top: 0.15rem;
    letter-spacing: 0.04em;
}

.cs-footer-brand__description {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--cs-footer-muted);
    margin: 0 0 1.5rem;
    max-width: 32ch;
}

.cs-footer-brand__features {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.cs-footer-brand__features span {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.85rem;
    color: var(--cs-footer-muted);
}

.cs-footer-brand__features svg {
    color: #a78bfa;
    flex-shrink: 0;
}

/* Columns */
.cs-footer-column__title {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #c4b5fd;
    margin: 0 0 1.4rem;
    position: relative;
}

.cs-footer-column__title::after {
    content: '';
    display: block;
    width: 26px;
    height: 2px;
    background: linear-gradient(90deg, #8b5cf6, transparent);
    margin-top: 0.5rem;
    border-radius: 2px;
}

.cs-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.cs-footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.925rem;
    color: var(--cs-footer-muted);
    text-decoration: none;
    transition: var(--cs-footer-transition);
    padding: 0.2rem 0;
}

.cs-footer-links a span {
    transition: transform 0.3s ease;
}

.cs-footer-links a svg {
    opacity: 0;
    transform: translateX(-6px);
    transition: var(--cs-footer-transition);
    color: #a78bfa;
}

.cs-footer-links a:hover {
    color: #ffffff;
}

.cs-footer-links a:hover span {
    transform: translateX(2px);
}

.cs-footer-links a:hover svg {
    opacity: 1;
    transform: translateX(0);
}

/* ---------------------------------------------------------
   Trust Bar
   --------------------------------------------------------- */
.cs-footer__trust {
    padding: 2rem 0;
    border-top: 1px solid var(--cs-footer-border);
    border-bottom: 1px solid var(--cs-footer-border);
    background: rgba(139, 92, 246, 0.03);
}

.cs-footer-trust {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.cs-footer-trust__item {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
}

.cs-footer-trust__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(139, 92, 246, 0.12);
    color: #c4b5fd;
    flex-shrink: 0;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.cs-footer-trust__item strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.15rem;
}

.cs-footer-trust__item small {
    font-size: 0.8rem;
    color: var(--cs-footer-muted);
    line-height: 1.4;
}

/* ---------------------------------------------------------
   Bottom Bar
   --------------------------------------------------------- */
.cs-footer__bottom {
    padding: 1.75rem 0;
}

.cs-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

.cs-footer-bottom__copyright {
    font-size: 0.875rem;
    color: var(--cs-footer-muted);
    margin: 0;
}

.cs-footer-bottom__copyright a {
    color: var(--cs-footer-text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.25s ease;
}

.cs-footer-bottom__copyright a:hover {
    color: #c4b5fd;
}

.cs-footer-bottom__meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--cs-footer-muted);
}

.cs-footer-bottom__wordpress {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.cs-footer-bottom__wordpress svg {
    color: #a78bfa;
}

.cs-footer-bottom__separator {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.cs-footer-bottom__status {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.cs-footer-bottom__status i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 10px rgba(52, 211, 153, 0.55);
    animation: cs-pulse 2s ease-in-out infinite;
}

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */
@media (max-width: 1100px) {
    .cs-footer__grid-layout {
        grid-template-columns: 1.3fr 1fr 1fr;
        gap: 2.5rem 2rem;
    }

    .cs-footer-brand {
        grid-column: 1 / -1;
    }

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

    .cs-footer-cta {
        flex-direction: column;
        align-items: stretch;
        padding: 2.2rem;
    }

    .cs-footer-cta__actions {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .cs-footer__container {
        width: min(100% - 28px, 1240px);
    }

    .cs-footer__cta-wrap {
        padding: 3.5rem 0 2.5rem;
    }

    .cs-footer-cta {
        padding: 1.75rem 1.25rem;
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }

    .cs-footer-cta__actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 10px;
    }

    .cs-footer-cta__primary,
    .cs-footer-cta__secondary {
        width: 100%;
        justify-content: center;
    }

    .cs-footer__grid-layout {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem 1.5rem;
    }

    .cs-footer-brand {
        grid-column: 1 / -1;
    }

    .cs-footer-brand__description {
        max-width: none;
    }

    .cs-footer-trust {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .cs-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .cs-footer-bottom__meta {
        flex-wrap: wrap;
    }
}

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

    .cs-footer-cta__title {
        font-size: clamp(1.6rem, 8vw, 2rem);
        line-height: 1.2;
    }

    .cs-footer-cta__description {
        font-size: 0.95rem;
        max-width: none;
    }
}

   