/* =============================================
   MODERN APP-STYLE FOOTER (Ultra-Compact)
   ============================================= */

.site-footer-modern {
    background: var(--color-bg-2);
    position: relative;
    padding-top: 40px; 
    margin-top: 60px;
}

/* 1. Premium Newsletter Card */
.newsletter-premium-card {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border-radius: var(--radius-xl);
    padding: var(--space-8) var(--space-10);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-6);
    box-shadow: 0 15px 30px rgba(26, 127, 75, 0.15);
    transform: translateY(-70px);
    margin-bottom: -30px;
}

.newsletter-text h3 {
    font-size: clamp(20px, 3vw, 26px);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 6px;
    font-family: var(--font-display);
}

.newsletter-text p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    margin: 0;
}

.newsletter-form-modern {
    flex: 1;
    max-width: 420px;
}

.newsletter-form-modern .input-group {
    display: flex;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px; /* App style radius */
    padding: 4px;
    backdrop-filter: blur(10px);
}

.newsletter-form-modern input {
    flex: 1;
    background: transparent;
    border: none;
    color: #ffffff;
    padding: 0 16px;
    font-size: 14px;
    outline: none;
}

.newsletter-form-modern input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-form-modern .btn-subscribe {
    background: #ffffff;
    color: var(--color-primary-dark);
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 13px;
    transition: transform 0.2s;
}

.newsletter-form-modern .btn-subscribe:hover {
    transform: scale(1.02);
}

/* 2. Main Footer Grid */
.footer-main-grid {
    padding-bottom: var(--space-10);
}

.footer-grid-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-8);
}

.footer-brand-col .footer-logo {
    margin-bottom: var(--space-3);
}

.footer-brand-col .brand-desc {
    color: var(--color-text-2);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: var(--space-4);
    max-width: 300px;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-bg-3);
    color: var(--color-text-2);
    transition: all 0.2s ease;
}

.footer-socials a:hover {
    background: var(--color-primary);
    color: #ffffff;
}

.footer-nav-col h4 {
    font-size: 14px;
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modern-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modern-links a {
    color: var(--color-text-2);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

.modern-links a:hover {
    color: var(--color-primary);
}

/* 3. Bottom Bar */
.footer-bottom-modern {
    border-top: 1px solid var(--color-border);
    padding: var(--space-4) 0;
    background: var(--color-surface);
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.copyright-text {
    font-size: 13px;
    color: var(--color-text-3);
}

.legal-swipe-menu {
    display: flex;
    gap: 20px;
}

.legal-swipe-menu a {
    color: var(--color-text-3);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
}


/* =============================================
   MOBILE COMPACT UI (The Real Magic Happens Here)
   ============================================= */
@media (max-width: 767px) {
    .site-footer-modern {
        padding-top: 20px;
    }
    
    /* 1. Newsletter Card - Compact */
    .newsletter-premium-card {
        flex-direction: column;
        align-items: stretch;
        padding: var(--space-5);
        transform: translateY(-30px);
        margin-bottom: -10px;
        border-radius: var(--radius-lg);
    }
    
    .newsletter-text {
        text-align: left;
    }

    .newsletter-text h3 {
        font-size: 18px;
        margin-bottom: 4px;
    }

    .newsletter-text p {
        font-size: 13px;
        margin-bottom: 12px;
    }
    
    .newsletter-form-modern .input-group {
        flex-direction: row; /* KEEP INPUT AND BUTTON ON SAME LINE */
        background: rgba(255,255,255,0.1);
        padding: 4px;
        border-radius: 8px;
    }
    
    .newsletter-form-modern input {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .newsletter-form-modern .btn-subscribe {
        padding: 8px 14px;
        font-size: 12px;
        white-space: nowrap;
    }

    /* 2. Main Grid - 2 COLUMNS ON MOBILE! (Halves the height) */
    .footer-grid-inner {
        grid-template-columns: 1fr 1fr; /* Split into 2 columns */
        gap: var(--space-6) var(--space-4);
    }

    .footer-brand-col {
        grid-column: span 2; /* Logo section takes full width */
        text-align: left;
        border-bottom: 1px solid var(--color-border);
        padding-bottom: var(--space-4);
    }

    .footer-brand-col .brand-desc {
        font-size: 13px;
        margin-bottom: 12px;
    }

    /* Column titles smaller */
    .footer-nav-col h4 {
        font-size: 13px;
        margin-bottom: 10px;
    }

    /* Third column (Company) spans full width at the bottom */
    .footer-nav-col:nth-child(4) {
        grid-column: span 2;
        border-top: 1px solid var(--color-border);
        padding-top: var(--space-4);
        margin-top: -10px;
    }

    .modern-links {
        gap: 8px;
    }

    .modern-links a {
        font-size: 13px;
        padding: 4px 0;
    }

    /* 3. Swipeable Bottom Links */
    .footer-bottom-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .legal-swipe-menu {
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 4px;
        gap: 12px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .legal-swipe-menu::-webkit-scrollbar {
        display: none;
    }
    
    .legal-swipe-menu a {
        background: var(--color-bg-3);
        padding: 6px 14px;
        border-radius: 50px;
        font-size: 12px;
        color: var(--color-text-2);
    }
}