/**
 * XPND Footer Styles - Premium Design
 *
 * @package XPND
 * @since 2.0.0
 */

/* ==========================================================================
   FOOTER - Main Container
   ========================================================================== */
.xpnd-footer {
    position: relative;
    overflow: hidden;
}

/* Footer Background */
.footer-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.footer-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #0f172a 0%, #1a1a2e 50%, #0d1117 100%);
}

.footer-pattern {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

/* ==========================================================================
   FOOTER CTA SECTION
   ========================================================================== */
.footer-cta-section {
    position: relative;
    z-index: 1;
    padding: 0;
    margin-top: 40px;
}

.footer-cta-card {
    background: linear-gradient(135deg, #1976D2 0%, #1565C0 50%, #2E7D32 100%);
    border-radius: 24px;
    padding: 48px 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    box-shadow: 0 25px 60px rgba(25, 118, 210, 0.3);
    position: relative;
    overflow: hidden;
}

.footer-cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    transform: translate(30%, -30%);
}

.footer-cta-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.footer-cta-label {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 100px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.footer-cta-title {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 32px;
    font-weight: 400;
    color: #fff;
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.footer-cta-desc {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    max-width: 480px;
}

.footer-cta-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.footer-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 28px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-cta-btn.primary {
    background: #fff;
    color: #1976D2;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.footer-cta-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
    color: #1976D2;
}

.footer-cta-btn.secondary {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.footer-cta-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.footer-cta-btn svg {
    transition: transform 0.2s ease;
}

.footer-cta-btn:hover svg {
    transform: translateX(3px);
}

/* ==========================================================================
   FOOTER MAIN
   ========================================================================== */
.footer-main {
    position: relative;
    z-index: 1;
    padding: 80px 0 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1.5fr;
    gap: 40px;
}

/* Footer Brand Column */
.footer-brand-col {
    padding-right: 40px;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 16px;
}

.footer-logo img {
    height: 44px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-logo .logo-text {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 28px;
    font-weight: 400;
    color: #fff;
}

.footer-tagline {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #4ade80;
    margin: 0 0 16px 0;
    letter-spacing: 0.5px;
}

.footer-desc {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 24px 0;
}

/* Footer Social */
.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: linear-gradient(135deg, #1976D2 0%, #2E7D32 100%);
    color: #fff;
    transform: translateY(-3px);
}

.social-link svg {
    width: 18px;
    height: 18px;
}

/* Footer Links Columns */
.footer-links-col {
    padding-top: 8px;
}

.footer-heading {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 24px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer-links a svg {
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.2s ease;
    color: #4ade80;
}

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

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

/* Footer Contact Column */
.footer-contact-col {
    padding-top: 8px;
}

.footer-contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.contact-item {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 20px;
    height: 20px;
    color: #4ade80;
}

.contact-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-label {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-content a,
.contact-address {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s ease;
    line-height: 1.5;
}

.contact-content a:hover {
    color: #fff;
}

/* ==========================================================================
   FOOTER DISCLAIMER
   ========================================================================== */
.footer-disclaimer {
    position: relative;
    z-index: 1;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.disclaimer-inner {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px 0;
}

.disclaimer-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 193, 7, 0.15);
    border-radius: 10px;
    color: #ffc107;
}

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

.disclaimer-text {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    padding-top: 2px;
}

/* ==========================================================================
   FOOTER BOTTOM
   ========================================================================== */
.footer-bottom {
    position: relative;
    z-index: 1;
    border-top: none;
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    gap: 24px;
}

.footer-copyright {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.footer-bottom-links a {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
    color: #fff;
}

.footer-bottom-links .separator {
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr 1fr;
        gap: 32px;
    }

    .footer-brand-col {
        grid-column: span 2;
        padding-right: 0;
    }

    .footer-contact-col {
        grid-column: span 2;
    }
}

@media (max-width: 991px) {
    .footer-cta-card {
        flex-direction: column;
        text-align: center;
        padding: 40px 32px;
    }

    .footer-cta-content {
        text-align: center;
    }

    .footer-cta-desc {
        max-width: 100%;
    }

    .footer-cta-actions {
        flex-direction: column;
        width: 100%;
    }

    .footer-cta-btn {
        width: 100%;
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .footer-brand-col {
        grid-column: span 2;
    }

    .footer-contact-col {
        grid-column: span 2;
    }
}

@media (max-width: 767px) {
    .footer-cta-section {
        margin-top: 40px;
        padding: 0 16px;
    }

    .footer-cta-card {
        border-radius: 20px;
        padding: 32px 24px;
    }

    .footer-cta-title {
        font-size: 24px;
    }

    .footer-cta-desc {
        font-size: 14px;
    }

    .footer-main {
        padding: 60px 0 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-brand-col,
    .footer-contact-col {
        grid-column: span 1;
    }

    .footer-brand-col {
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .disclaimer-inner {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .disclaimer-icon {
        margin: 0 auto;
    }

    .disclaimer-text {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .footer-cta-actions {
        gap: 12px;
    }

    .footer-cta-btn {
        padding: 14px 24px;
        font-size: 14px;
    }

    .footer-bottom-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
}
