/* --- MODERN FOOTER GREEN BLEND --- */
.modern-footer {
    background-color: #022c22; 
    color: #ffffff;
    padding: 80px 0 40px; /* Slightly reduced top padding for mobile balance */
    font-family: 'Inter', sans-serif;
    position: relative;
    overflow: hidden;
}

.modern-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #15803d, #10b981, #15803d);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px; /* Better spacing for mobile edges */
}

/* Newsletter Section */
.newsletter-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 60px;
    flex-wrap: wrap;
    gap: 30px;
}

.newsletter-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #ffffff;
}

.newsletter-content p {
    color: #cbd5e1;
    font-size: 1rem;
}

.newsletter-controls {
    display: flex;
    gap: 12px;
}

.modern-input {
    width: 350px;
    background: #ffffff;
    border: 2px solid transparent;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.modern-input:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}

.btn-subscribe {
    background: #10b981; 
    color: #ffffff;
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-subscribe:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Grid Layout */
.footer-main-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #ffffff;
}

.footer-logo img {
    height: 32px;
}

.brand-col p {
    color: #cbd5e1;
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 25px;
}

/* Social Icons */
.social-icons-row {
    display: flex;
    gap: 25px;

}



.social-icons-row a:hover {
    background: none;
    transform: translateY(-3px);
}

/* Links & Typography */
.footer-col h4 {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
    color: #ffffff;
    text-transform: uppercase;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

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

.footer-col a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s;
    display: inline-block;
}

.footer-col a:hover {
    color: #6ee7b7; 
    transform: translateX(5px);
}

.contact-info-block p {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 12px;
}

.contact-info-block strong {
    color: #ffffff;
    display: block;
    margin-bottom: 4px;
}

/* Legal Bottom */
.footer-legal {
    margin-top: 60px;
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.developer-credit {
    margin-top: 8px;
    font-size: 0.85rem;
    color: #888;
}

.developer-credit a {
    color: #10b981; /* Unified emerald for the link */
    text-decoration: none;
    font-weight: bold;
}

/* ============================================================
   RESPONSIVE ADJUSTMENTS
   ============================================================ */

@media (max-width: 1024px) {
    .footer-main-grid {
        grid-template-columns: 1fr 1fr;
        gap: 50px;
    }
    
    .newsletter-section {
        flex-direction: column;
        text-align: center;
    }

    .modern-input {
        width: 100%;
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .modern-footer {
        padding: 60px 0 30px;
    }

    .newsletter-content h2 {
        font-size: 1.6rem;
    }

    .newsletter-controls {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }

    .modern-input, .btn-subscribe {
        width: 100%;
        max-width: 100%;
    }

    .footer-main-grid {
        grid-template-columns: 1fr; /* Single column stack */
        text-align: center;
        gap: 40px;
    }

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

    .social-icons-row {
        justify-content: center;
    }

    .footer-col a:hover {
        transform: none; /* Disable horizontal slide on mobile for better stability */
    }
}

@media (max-width: 480px) {
    .footer-legal {
        margin-top: 40px;
        font-size: 0.8rem;
    }
}