/**
 * Webtoz — Footer Styles
 * Website: webtoz.com
 * Child theme of: GeneratePress
 *
 * Table of Contents:
 *  1. Footer Container & Variables
 *  2. CTA Banner
 *  3. Footer Main Grid
 *  4. Brand Column
 *  5. Navigation Columns
 *  6. Footer Bottom Bar
 *  7. Back to Top Button
 *  8. Animations & Transitions
 *  9. Responsive Breakpoints
 */

/* ═══════════════════════════════════════════════════════════════ */
/* 1. FOOTER CONTAINER & VARIABLES                                */
/* ═══════════════════════════════════════════════════════════════ */

.webtoz-footer {
    position: relative;
    background: #0B1F3A;
    color: #FFFFFF;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    overflow: hidden;
}

/* Subtle geometric grid overlay */
.webtoz-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(61, 90, 254, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(61, 90, 254, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

.webtoz-footer > * {
    position: relative;
    z-index: 1;
}

/* ═══════════════════════════════════════════════════════════════ */
/* 2. CTA BANNER                                                  */
/* ═══════════════════════════════════════════════════════════════ */

.webtoz-footer-cta {
    position: relative;
    padding: 80px 0;
    background: linear-gradient(135deg, #0D2447 0%, #0B1F3A 40%, #0F2850 100%);
    border-bottom: 1px solid rgba(61, 90, 254, 0.15);
    overflow: hidden;
}

/* CTA accent glow */
.webtoz-footer-cta::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.webtoz-footer-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    flex-wrap: wrap;
}

.webtoz-footer-cta-content {
    flex: 1;
    min-width: 280px;
}

.webtoz-footer-cta-heading {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    line-height: 1.2;
    color: #FFFFFF;
    margin: 0 0 16px 0;
    letter-spacing: -0.02em;
}

.webtoz-footer-cta-heading::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #3D5AFE, #06B6D4);
    margin-top: 20px;
    border-radius: 2px;
}

.webtoz-footer-cta-text {
    font-size: 17px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    max-width: 520px;
}

.webtoz-footer-cta-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}

/* ═══════════════════════════════════════════════════════════════ */
/* 3. FOOTER MAIN GRID                                            */
/* ═══════════════════════════════════════════════════════════════ */

.webtoz-footer-main {
    padding: 72px 0 56px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.webtoz-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 48px;
}

/* ═══════════════════════════════════════════════════════════════ */
/* 4. BRAND COLUMN                                                */
/* ═══════════════════════════════════════════════════════════════ */

.webtoz-footer-col-brand {
    /* intentional — wider column handled by grid */
}

.webtoz-footer-brand {
    margin-bottom: 20px;
}

.webtoz-footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #FFFFFF;
    transition: opacity 0.25s ease;
}

.webtoz-footer-logo:hover {
    opacity: 0.85;
}

.webtoz-footer-logo svg {
    color: #3D5AFE;
    flex-shrink: 0;
}

.webtoz-footer-logo-text {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #FFFFFF;
}

.webtoz-footer-description {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 24px 0;
    max-width: 340px;
}

.webtoz-footer-social {
    display: flex;
    gap: 14px;
    align-items: center;
}

.webtoz-footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.webtoz-footer-social-link:hover {
    background: #3D5AFE;
    color: #FFFFFF;
    border-color: #3D5AFE;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(61, 90, 254, 0.3);
}

/* ═══════════════════════════════════════════════════════════════ */
/* 5. NAVIGATION COLUMNS                                          */
/* ═══════════════════════════════════════════════════════════════ */

.webtoz-footer-heading {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #06B6D4;
    margin: 0 0 20px 0;
    position: relative;
    padding-bottom: 12px;
}

.webtoz-footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 24px;
    height: 2px;
    background: #3D5AFE;
    border-radius: 1px;
}

.webtoz-footer-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.webtoz-footer-list li {
    margin-bottom: 12px;
}

.webtoz-footer-list li:last-child {
    margin-bottom: 0;
}

.webtoz-footer-list a {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.25s ease;
    position: relative;
    padding-left: 0;
    display: inline-block;
}

.webtoz-footer-list a::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background: #3D5AFE;
    transition: width 0.3s ease;
}

.webtoz-footer-list a:hover {
    color: #FFFFFF;
    padding-left: 6px;
}

.webtoz-footer-list a:hover::before {
    width: 100%;
}

/* ═══════════════════════════════════════════════════════════════ */
/* 6. FOOTER BOTTOM BAR                                           */
/* ═══════════════════════════════════════════════════════════════ */

.webtoz-footer-bottom {
    padding: 24px 0;
    background: rgba(0, 0, 0, 0.2);
}

.webtoz-footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.webtoz-footer-copyright {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.45);
}

.webtoz-footer-legal {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.webtoz-footer-legal a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    transition: color 0.25s ease;
}

.webtoz-footer-legal a:hover {
    color: #06B6D4;
}

.webtoz-footer-legal-divider {
    color: rgba(255, 255, 255, 0.2);
    font-size: 12px;
    margin: 0 4px;
}

/* ═══════════════════════════════════════════════════════════════ */
/* 7. BACK TO TOP BUTTON                                          */
/* ═══════════════════════════════════════════════════════════════ */

.webtoz-back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 999;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: #0B1F3A;
    color: #FFFFFF;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
}

.webtoz-back-to-top.webtoz-is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.webtoz-back-to-top:hover {
    background: #3D5AFE;
    border-color: #3D5AFE;
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(61, 90, 254, 0.4);
}

.webtoz-back-to-top:active {
    transform: translateY(-1px);
    transition: transform 0.1s ease;
}

/* ═══════════════════════════════════════════════════════════════ */
/* 8. ANIMATIONS & TRANSITIONS                                    */
/* ═══════════════════════════════════════════════════════════════ */

/* Smooth scroll behavior for back-to-top */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Subtle hover lift on footer CTA buttons */
.webtoz-footer-cta-actions .webtoz-btn {
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.webtoz-footer-cta-actions .webtoz-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(61, 90, 254, 0.35);
}

/* ═══════════════════════════════════════════════════════════════ */
/* 9. RESPONSIVE BREAKPOINTS                                      */
/* ═══════════════════════════════════════════════════════════════ */

/* Tablet (≤ 1024px) */
@media (max-width: 1024px) {
    .webtoz-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px 32px;
    }

    .webtoz-footer-col-brand {
        grid-column: 1 / -1;
    }

    .webtoz-footer-description {
        max-width: 100%;
    }

    .webtoz-footer-cta-inner {
        flex-direction: column;
        text-align: center;
        gap: 32px;
    }

    .webtoz-footer-cta-heading::after {
        margin-left: auto;
        margin-right: auto;
    }

    .webtoz-footer-cta-text {
        max-width: 100%;
        margin: 0 auto;
    }

    .webtoz-footer-cta-actions {
        justify-content: center;
    }
}

/* Mobile (≤ 768px) */
@media (max-width: 768px) {
    .webtoz-footer-cta {
        padding: 56px 0;
    }

    .webtoz-footer-cta-heading {
        font-size: 26px;
    }

    .webtoz-footer-cta-text {
        font-size: 15px;
    }

    .webtoz-footer-main {
        padding: 48px 0 40px;
    }

    .webtoz-footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .webtoz-footer-col-brand {
        grid-column: auto;
    }

    .webtoz-footer-bottom-inner {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .webtoz-footer-legal {
        justify-content: center;
    }

    .webtoz-back-to-top {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
        border-radius: 12px;
    }
}

/* Small Mobile (≤ 480px) */
@media (max-width: 480px) {
    .webtoz-footer-cta-actions {
        flex-direction: column;
        width: 100%;
    }

    .webtoz-footer-cta-actions .webtoz-btn {
        width: 100%;
        justify-content: center;
    }

    .webtoz-footer-cta {
        padding: 44px 0;
    }

    .webtoz-footer-main {
        padding: 40px 0 32px;
    }

    .webtoz-footer-legal {
        gap: 2px;
    }

    .webtoz-footer-legal a {
        font-size: 13px;
    }

    .webtoz-footer-legal-divider {
        margin: 0 2px;
    }
}