/* Optimized Footer Styles */
.main-footer {
    background-color: #0f172a; /* Premium Slate/Navy */
    color: #94a3b8;
    padding: 0;
    position: relative;
    font-family: 'Outfit', sans-serif;
}

/* Newsletter Bar */
.footer-top-newsletter {
    background-color: var(--primary-color);
    padding: 40px 0;
    margin-bottom: 80px;
    position: relative;
}

.newsletter-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.newsletter-text h3 {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
}

.newsletter-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    flex: 1;
    max-width: 500px;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 20px;
    border-radius: 12px;
    border: none;
    outline: none;
    font-size: 15px;
}

.newsletter-form button {
    padding: 15px 30px;
    background-color: var(--secondary-color);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background-color: #000;
    transform: translateY(-2px);
}

/* Footer Grid */
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 50px;
    padding-bottom: 80px;
}

.footer-col h3 {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 30px;
    position: relative;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
}

.footer-logo img {
    height: 70px;
    margin-bottom: 25px;
    filter: brightness(0) invert(1); /* Optional: Make logo white if needed, or keep original */
}

/* Keeping original logo brightness for now as requested logo was color */
.footer-logo img {
    filter: none;
    background: white;
    padding: 10px;
    border-radius: 10px;
}

.footer-desc {
    line-height: 1.8;
    margin-bottom: 25px;
    font-size: 15px;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-socials a {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border-radius: 10px;
    transition: var(--transition);
}

.footer-socials a:hover {
    background-color: var(--primary-color);
    transform: rotate(360deg);
}

.footer-links {
    list-style: none;
}

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

.footer-links li a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
    font-size: 15px;
    display: block;
}

.footer-links li a:hover {
    color: var(--primary-color);
    padding-left: 8px;
}

/* Contact Info Refined */
.contact-info {
    list-style: none;
}

.contact-info li {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.info-icon {
    width: 45px;
    height: 45px;
    background: rgba(36, 182, 74, 0.1);
    color: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.info-text strong {
    display: block;
    color: #fff;
    font-size: 14px;
    margin-bottom: 3px;
}

.info-text span {
    font-size: 15px;
}

/* Footer Bottom */
.footer-bottom {
    background-color: #020617;
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.bottom-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.bottom-links {
    display: flex;
    gap: 25px;
}

.bottom-links a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.bottom-links a:hover {
    color: var(--primary-color);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    text-decoration: none;
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    box-shadow: 0 10px 20px rgba(36, 182, 74, 0.3);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .newsletter-wrapper {
        flex-direction: column;
        text-align: center;
    }
    
    .newsletter-form {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .bottom-wrapper {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}
