/* ========================================
   MODERN FOOTER SECTION (SCOPED)
   ======================================== */

#footer.site-footer,
.site-footer {
    background: linear-gradient(135deg, #040404 0%, #0f172a 100%);
    color: #ffffff;
    padding: 80px 0 0 0;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #25d366, transparent);
}

.site-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

/* Footer Sections Grid */
.footer-sections {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 60px;
}

/* Footer Brand Section */
.footer-brand {
    max-width: 400px;
}

.footer-logo img {
    max-height: 150px;
    width: auto;
    margin-bottom: 24px;
    transition: transform 0.3s ease;
}

.footer-logo img:hover {
    transform: scale(1.05);
}

.footer-text {
    color: #cbd5e1;
    line-height: 1.7;
    font-size: 15px;
    margin-bottom: 32px;
}

/* Newsletter Signup */
.footer-newsletter {
    margin-top: 32px;
}

.newsletter-title {
    font-size: 16px;
    font-weight: 600;
    color: #25d366;
    margin-bottom: 12px;
}

.newsletter-form {
    display: flex;
    margin-bottom: 16px;
}

.newsletter-input-group {
    display: flex;
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 4px;
    transition: all 0.3s ease;
}

.newsletter-input-group:focus-within {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 2px rgba(37, 211, 102, 0.3);
}

.newsletter-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 16px;
    color: white;
    font-size: 14px;
    border-radius: 50px;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-input:focus {
    outline: none;
}

.newsletter-btn {
    background: linear-gradient(135deg, #25d366, #128c7e);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
}

.newsletter-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

/* Footer Headings */
.footer-heading {
    color: #25d366;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 24px;
    position: relative;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: #25d366;
}

/* Footer Menus */
.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 12px;
}

.footer-menu a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
}

.footer-menu a::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: #25d366;
    transition: width 0.3s ease;
}

.footer-menu a:hover {
    color: #25d366;
    padding-left: 12px;
}

.footer-menu a:hover::before {
    width: 6px;
}

/* Contact Information */
.footer-contact {
    max-width: none;
}

.contact-info {
    margin-bottom: 32px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateX(4px);
}

.contact-icon {
    width: 44px;
    height: 44px;
    background: rgba(37, 211, 102, 0.1);
    border: 1px solid rgba(37, 211, 102, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    color: #25d366;
}

.contact-item:hover .contact-icon {
    background: #25d366;
    color: white;
    border-color: #25d366;
    transform: scale(1.1);
}

.contact-details {
    display: flex;
    flex-direction: column;
}

.contact-text {
    color: #ffffff;
    font-weight: 500;
    font-size: 15px;
    margin-bottom: 4px;
}

.contact-label {
    color: #94a3b8;
    font-size: 12px;
}

/* Social Links */
.social-links {
    margin-top: 32px;
}

.social-title {
    font-size: 16px;
    font-weight: 600;
    color: #25d366;
    margin-bottom: 16px;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #25d366, #128c7e);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-link:hover {
    color: white;
    transform: translateY(-2px) scale(1.1);
}

.social-link:hover::before {
    opacity: 1;
}

.social-link svg {
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.social-link:hover svg {
    transform: scale(1.1);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 32px 20px;
    background: rgba(0, 0, 0, 0.2);
}

/* Updated grid for three items */
.footer-bottom-content {
    display: grid;
    grid-template-columns: minmax(200px, 1fr) auto minmax(200px, 1fr);
    align-items: center;
    gap: 20px;
}


/* Footer links (left side) */
.footer-links {
    display: flex;
    gap: 24px;
    justify-self: start; /* Align to left */
}

/* Copyright (center) */
.copyright {
    color: #94a3b8;
    font-size: 14px;
    justify-self: center; /* Center this item */
}

.copyright p {
    margin: 0; /* Remove default paragraph margin */
}

/* Footer right (right side) */
.footer-right {
    justify-self: end; /* Align to right */
}

/* Footer link styles */
.footer-link {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #25d366;
    transition: width 0.3s ease;
}

.footer-link:hover {
    color: #25d366;
}

.footer-link:hover::after {
    width: 100%;
}

/* CTA button styles */
.footer-cta-btn {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 25px;
    margin-right: 60px;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.25);
}

.footer-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.footer-cta-btn svg {
    transition: transform 0.3s ease;
}

.footer-cta-btn:hover svg {
    transform: translateX(4px);
}


/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Large Tablets */
@media (max-width: 1024px) {
    .footer-sections {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .footer-brand {
        max-width: none;
    }
}

/* Tablets */
@media (max-width: 768px) {
    .site-footer {
        padding: 60px 0 0 0;
    }
    
    .site-footer .container {
        padding: 0 20px;
    }
    
    .footer-sections {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 40px;
    }
    
    .footer-bottom-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }
    
    .footer-links {
        justify-self: center;
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
    
    .footer-right {
        justify-self: center;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .site-footer {
        padding: 40px 0 0 0;
        text-align: center;
    }
    
    .footer-sections {
        gap: 32px;
    }
    
    .newsletter-input-group {
        flex-direction: column;
        border-radius: 12px;
        padding: 0;
        background: rgba(255, 255, 255, 0.1);
    }
    
    .newsletter-input {
        border-radius: 12px 12px 0 0;
        padding: 12px 16px;
    }
    
    .newsletter-btn {
        border-radius: 0 0 12px 12px;
        width: 100%;
        height: 44px;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .contact-icon {
        margin-right: 0;
        margin-bottom: 8px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 8px;
    }
    
    .social-icons {
        justify-content: center;
    }
    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }
}
