/**
 * Footer Stylesheet
 * Astra Child Theme
 */

/* Hide default Astra Footer */
.site-footer,
.ast-footer-wrapper,
.ast-builder-footer-grid-columns,
.site-primary-footer-wrap {
    display: none !important;
}

/* Custom Footer Styles */
.wps-global-footer {
    background: var(--wps-footer-bg, #f8fafc);
    color: var(--wps-text-muted, #64748b);
    border-top: 1px solid var(--wps-border, #e2e8f0);
    padding: 50px 0 0;
    font-family: 'Mona Sans', sans-serif;
    position: relative;
    overflow: hidden;
    transition: background 0.3s ease, border-color 0.3s ease;
}

html[data-theme="dark"] .wps-global-footer {
    background: #0b1329;
    color: #94a3b8;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Background aesthetic overlay */
.wps-footer-bg-glow {
    position: absolute;
    top: -150px;
    right: -150px;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, rgba(16, 185, 129, 0.02) 50%, transparent 70%);
    pointer-events: none;
    border-radius: 50%;
}

.wps-footer-container {
    max-width: 1350px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
    padding: 0 30px 40px;
    position: relative;
    z-index: 2;
}

/* Column Dividers */
.wps-footer-col {
    padding: 0 30px;
}

.wps-footer-col:first-child {
    padding-left: 0;
}

.wps-footer-col:not(:last-child) {
    border-right: 1px solid var(--wps-border, #e2e8f0);
}

html[data-theme="dark"] .wps-footer-col:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.wps-footer-col:last-child {
    padding-right: 0;
}

/* Col 1: Brand & Socials */
.wps-footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.wps-footer-logo-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #10b981;
}

.wps-footer-brand-title {
    font-family: 'Mona Sans', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1.1;
    color: var(--wps-text, #0f172a);
    letter-spacing: 0.5px;
}

.wps-footer-brand-title span {
    color: #10b981;
}

html[data-theme="dark"] .wps-footer-brand-title {
    color: #ffffff;
}

.wps-footer-tagline {
    font-size: 0.82rem;
    color: var(--wps-text-muted, #64748b);
    margin-top: 3px;
    font-weight: 400;
}

.wps-footer-desc {
    color: var(--wps-text-muted, #64748b);
    font-size: 15px;
    line-height: 1.6;
    margin: 18px 0 25px;
    max-width: 330px;
}

html[data-theme="dark"] .wps-footer-desc {
    color: #cbd5e1;
}

.wps-social-links {
    display: flex;
    gap: 12px;
}

.wps-social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--wps-card-bg, #ffffff);
    color: var(--wps-text, #0f172a);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--wps-border, #e2e8f0);
    font-size: 0.95rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.wps-social-links a:hover {
    background: #10b981;
    color: #ffffff;
    border-color: #10b981;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

html[data-theme="dark"] .wps-social-links a {
    background: rgba(255, 255, 255, 0.03);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Columns 2 & 3: Headings & Link List */
.wps-footer-col h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--wps-text, #0f172a);
    margin-bottom: 24px;
    font-family: 'Mona Sans', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
}

html[data-theme="dark"] .wps-footer-col h4 {
    color: #ffffff;
}

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

.wps-footer-list li {
    margin-bottom: 10px;
}

.wps-footer-list li a {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--wps-text-muted, #64748b);
    text-decoration: none;
    font-size: 15px;
    transition: all 0.2s ease;
}

.wps-footer-list li a i {
    color: #10b981;
    font-size: 1rem;
    width: 20px;
    text-align: center;
    transition: transform 0.2s ease;
}

.wps-footer-list li a:hover {
    color: #10b981;
    transform: translateX(4px);
}

.wps-footer-list li a:hover i {
    transform: scale(1.15);
}

html[data-theme="dark"] .wps-footer-list li a {
    color: #cbd5e1;
}

/* Column 4: Newsletter */
.wps-newsletter-desc {
    color: var(--wps-text-muted, #64748b);
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 20px;
}

html[data-theme="dark"] .wps-newsletter-desc {
    color: #cbd5e1;
}

.wps-newsletter-form {
    display: flex;
    gap: 8px;
    align-items: center;
    background: var(--wps-card-bg, #ffffff);
    border: 1px solid var(--wps-border, #cbd5e1);
    border-radius: 50px;
    padding: 5px 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.wps-newsletter-form:focus-within {
    border-color: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2), 0 4px 14px rgba(0, 0, 0, 0.06);
}

html[data-theme="dark"] .wps-newsletter-form {
    background: #081820;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.wps-newsletter-input {
    flex: 1;
    padding: 10px 14px;
    border: none !important;
    background: transparent !important;
    color: var(--wps-text, #0f172a) !important;
    font-size: 0.92rem;
    outline: none !important;
    box-shadow: none !important;
    font-family: 'Mona Sans', sans-serif;
}

.wps-newsletter-input::placeholder {
    color: var(--wps-text-light, #94a3b8) !important;
}

html[data-theme="dark"] .wps-newsletter-input {
    color: #ffffff !important;
}

.wps-btn-subscribe {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    border: none;
    padding: 10px 22px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-family: 'Mona Sans', sans-serif;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
}

.wps-btn-subscribe:hover {
    background: linear-gradient(135deg, #34d399 0%, #059669 100%);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    transform: translateY(-1px);
}

.wps-btn-subscribe:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.wps-newsletter-msg {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.88rem;
    line-height: 1.4;
    display: none;
    transition: all 0.3s ease;
}

.wps-newsletter-msg.wps-msg-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid #10b981;
    color: #10b981;
}

.wps-newsletter-msg.wps-msg-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid #ef4444;
    color: #ef4444;
}

/* Bottom Bar */
.wps-footer-bottom {
    border-top: 1px solid var(--wps-border, #e2e8f0);
    padding: 16px 30px;
    background: var(--wps-card-bg-hover, #f1f5f9);
}

.wps-footer-bottom-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--wps-text-muted, #64748b);
    font-size: 0.95rem;
}

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

.wps-footer-bottom-links a {
    color: var(--wps-text-muted, #64748b);
    text-decoration: none;
    transition: color 0.2s;
}

.wps-footer-bottom-links a:hover {
    color: #10b981;
}

.wps-footer-heart {
    color: #10b981;
    margin: 0 4px;
}

html[data-theme="dark"] .wps-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: #0c192b;
}

html[data-theme="dark"] .wps-footer-bottom-container {
    color: #cbd5e1;
}

/* Responsive */
@media (max-width: 1024px) {
    .wps-footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .wps-footer-col {
        padding: 0;
        border-right: none !important;
    }
}

@media (max-width: 680px) {
    .wps-footer-container {
        grid-template-columns: 1fr;
        gap: 35px;
        padding-bottom: 40px;
    }

    .wps-footer-bottom-container {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .wps-newsletter-form {
        flex-direction: column;
        background: transparent;
        border: none;
        padding: 0;
    }

    .wps-newsletter-input {
        background: rgba(13, 23, 46, 0.5) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-radius: 50px !important;
        width: 100%;
        margin-bottom: 8px;
    }

    .wps-btn-subscribe {
        width: 100%;
    }
}