/* ========================
   Footer CSS - ADB Device Manager
   Reusable footer styles for all pages
   ======================== */

/* Footer CTA Section (Call To Action) */
.footer-cta {
    text-align: center;
    padding: 3rem 2rem 2.5rem;
    background: linear-gradient(180deg, #f8f9fb 0%, #ffffff 100%);
    position: relative;
}

.footer-cta::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 600px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e5eb, transparent);
}

/* Main Footer Container */
.footer {
    padding: 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fb 100%);
    border-top: none;
    color: #6b7280;
    font-size: 0.9rem;
}

/* CTA Logo */
.footer-cta-logo-wrap {
    display: block;
    margin-bottom: 1.25rem;
}

.footer-cta-logo {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    filter: drop-shadow(0 6px 16px rgba(99, 102, 241, 0.25));
    transition: transform 0.3s ease;
}

.footer-cta-logo:hover {
    transform: scale(1.05) translateY(-2px);
}



.footer-cta h2 {
    font-size: clamp(1.75rem, 4vw, 1.8rem);
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.75rem;
    letter-spacing: -0.03em;
}

.footer-cta p {
    font-size: 1rem;
    color: #6b7280;
    max-width: 500px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.footer-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
    transition: all 0.3s ease;
}

.footer-cta-btn:hover {
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.45);
    transform: translateY(-2px);
}

.footer-cta-btn svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.footer-cta-btn:hover svg {
    transform: translateX(4px);
}


.footer-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3.5rem 2rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
}

/* Footer Contact Column */
.footer-contact-section {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-brand .logo-icon {
    width: 44px;
    height: 44px;
    filter: drop-shadow(0 4px 12px rgba(99, 102, 241, 0.2));
    transition: transform 0.3s ease;
}

.footer-brand .logo-icon:hover {
    transform: scale(1.05);
}

.footer-brand-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1f2937;
    letter-spacing: -0.02em;
}

.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: #4b5563;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.25s ease;
}

.footer-contact-item:hover {
    color: #6366f1;
}

.footer-contact-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: #6366f1;
    margin-top: 2px;
}

.footer-contact-item span {
    line-height: 1.5;
}

/* Footer Link Columns */
.footer-column {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-column-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
    letter-spacing: -0.01em;
    margin-bottom: 0.25rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.footer-links a {
    color: #4b5563;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.25s ease;
    position: relative;
    width: fit-content;
}

.footer-links a::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: #6366f1;
}

.footer-links a:hover::after {
    width: 100%;
}

/* Footer Bottom Section */
.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e5e7eb;
}

.footer-copyright {
    font-size: 0.85rem;
    color: #9ca3af;
}

.footer-copyright a {
    color: #6366f1;
    text-decoration: none;
    font-weight: 500;
}

.footer-copyright a:hover {
    text-decoration: underline;
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
}

.footer-bottom-links a {
    font-size: 0.85rem;
    color: #6b7280;
    text-decoration: none;
    transition: color 0.25s ease;
}

.footer-bottom-links a:hover {
    color: #6366f1;
}

/* Gradient Border Effect at Bottom */
.footer-gradient-border {
    height: 4px;
    background: linear-gradient(90deg,
            #a8edea 0%,
            #c3b4f5 25%,
            #f5d4e4 50%,
            #c3b4f5 75%,
            #a8edea 100%);
    background-size: 200% 100%;
    animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* ========================
   Responsive Styles
   ======================== */

@media (max-width: 1024px) {
    .footer-main {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem 1.5rem;
    }

    .footer-brand-section {
        grid-column: span 4;
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        padding-bottom: 1.5rem;
        border-bottom: 1px solid #e5e7eb;
    }

    .footer-contact-list {
        flex-direction: row;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .footer-cta {
        padding: 3rem 1.5rem 2.5rem;
    }

    .footer-cta h2 {
        font-size: 1.5rem;
    }

    .footer-cta p {
        font-size: 0.9rem;
    }

    .footer-main {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem 1.5rem;
        padding: 2.5rem 1.5rem;
    }

    .footer-brand-section {
        grid-column: span 2;
        flex-direction: column;
        gap: 1.25rem;
    }

    .footer-contact-list {
        flex-direction: column;
        gap: 0.85rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 1.25rem 1.5rem;
    }

    .footer-bottom-links {
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .footer-cta {
        padding: 2.5rem 1.25rem 2rem;
    }

    .footer-cta-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 1.25rem;
    }

    .footer-cta-icon svg {
        width: 24px;
        height: 24px;
    }

    .footer-cta h2 {
        font-size: 1.35rem;
    }

    .footer-cta p {
        font-size: 0.85rem;
        margin-bottom: 1.5rem;
    }

    .footer-cta-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 1.75rem;
        padding: 2rem 1.25rem;
    }

    .footer-brand-section {
        grid-column: span 1;
    }

    .footer-column-title {
        font-size: 0.95rem;
    }

    .footer-links a {
        font-size: 0.85rem;
    }

    .footer-bottom {
        padding: 1rem 1.25rem;
    }

    .footer-bottom-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem 1.5rem;
    }

    .footer-bottom-links a,
    .footer-copyright {
        font-size: 0.8rem;
    }
}