/* ============================================
   Professional Footer Styles - MidwifePlus
   ============================================ */

.site-footer {
    margin-top: auto;
}

/* Footer Main Section */
.footer-main {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    color: #e2e8f0;
    padding: 4rem 0 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
    gap: 3.5rem;
    align-items: start;
}

/* Footer Brand */
.footer-brand {
    padding-right: 2rem;
}

.footer-logo-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 0;
}

.footer-logo-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    flex-shrink: 0;
}

.footer-brand-name {
    font-size: 1.625rem;
    font-weight: 700;
    color: #fbbf24;
    letter-spacing: -0.025em;
    line-height: 1;
}

.footer-tagline {
    color: #cbd5e0;
    font-size: 0.9375rem;
    line-height: 1.65;
    margin: 0;
    max-width: 100%;
}

/* Social Links */
.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    color: #e2e8f0;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    background: #fbbf24;
    color: #1a202c;
    transform: translateY(-3px);
    border-color: #fbbf24;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

.social-link svg {
    width: 18px;
    height: 18px;
}

/* Footer Columns */
.footer-column {
    min-width: 0;
}

.footer-heading {
    font-size: 1.0625rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1.75rem;
    position: relative;
    padding-bottom: 0.875rem;
    letter-spacing: -0.01em;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2.5px;
    background: #fbbf24;
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.875rem;
}

.footer-links a {
    color: #cbd5e0;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    display: inline-block;
    position: relative;
}

.footer-links a::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background: #fbbf24;
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: #fbbf24;
    transform: translateX(3px);
}

.footer-links a:hover::before {
    width: 100%;
}

/* Newsletter Section */
.newsletter-text {
    color: #cbd5e0;
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer-brand-newsletter {
    margin-top: 1.25rem;
}

.newsletter-message {
    margin-bottom: 0.75rem;
    padding: 0.65rem 0.8rem;
    border-radius: 8px;
    font-size: 0.8125rem;
    line-height: 1.35;
}

.newsletter-message.success {
    background: rgba(72, 187, 120, 0.18);
    color: #d1fae5;
    border: 1px solid rgba(72, 187, 120, 0.35);
}

.newsletter-form {
    margin-bottom: 2rem;
}

.newsletter-input-group {
    display: flex;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.newsletter-input-group:focus-within {
    border-color: #fbbf24;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.15);
}

.newsletter-input-group input {
    flex: 1;
    padding: 1rem 1.25rem;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 0.9375rem;
    outline: none;
}

.newsletter-input-group input::placeholder {
    color: #718096;
}

.newsletter-btn {
    padding: 1rem 1.5rem;
    background: #fbbf24;
    border: none;
    color: #1a202c;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-btn:hover {
    background: #f59e0b;
    transform: translateX(2px);
}

.newsletter-btn svg {
    width: 18px;
    height: 18px;
}

/* Footer Contact */
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contact .contact-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    color: #cbd5e0;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.footer-contact .contact-item a {
    color: #cbd5e0;
    text-decoration: none;
    display: inline-block;
    position: relative;
    transition: all 0.2s ease;
}

.footer-contact .contact-item a::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background: #fbbf24;
    transition: width 0.3s ease;
}

.footer-contact .contact-item:hover a {
    color: #fbbf24;
    transform: translateX(3px);
}

.footer-contact .contact-item:hover a::before {
    width: 100%;
}

.footer-contact .contact-item svg {
    width: 18px;
    height: 18px;
    color: #fbbf24;
    flex-shrink: 0;
}

/* Footer Bottom */
.footer-bottom {
    background: #1a202c;
    padding: 1.75rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.copyright {
    color: #718096;
    font-size: 0.875rem;
    margin: 0;
}

.footer-payments {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #718096;
    font-size: 0.8125rem;
}

.payment-icons {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.payment-icon {
    width: 22px;
    height: 22px;
    color: #cbd5e0;
}

.payment-text {
    background: rgba(255, 255, 255, 0.08);
    padding: 0.375rem 0.625rem;
    border-radius: 5px;
    font-size: 0.75rem;
    color: #cbd5e0;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-badges {
    display: flex;
    gap: 1.25rem;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    color: #cbd5e0;
    font-size: 0.8125rem;
    font-weight: 500;
}

.trust-badge svg {
    width: 18px;
    height: 18px;
    color: #48bb78;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
    }
    
    .footer-newsletter {
        grid-column: span 4;
        margin-top: 1rem;
        padding-top: 2rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .footer-brand {
        grid-column: span 2;
        padding-right: 0;
        padding-bottom: 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .footer-newsletter {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .footer-main {
        padding: 3rem 0 2rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-brand {
        grid-column: span 1;
        text-align: center;
    }
    
    .footer-logo-wrapper {
        justify-content: center;
    }
    
    .footer-social {
        justify-content: center;
    }

    .footer-brand-newsletter {
        text-align: left;
    }
    
    .footer-column {
        text-align: center;
    }
    
    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-links a:hover {
        transform: none;
    }
    
    .footer-newsletter {
        grid-column: span 1;
    }
    
    .footer-contact {
        align-items: center;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-badges {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .footer-main {
        padding: 2.5rem 0 1.5rem;
    }
    
    .footer-brand-name {
        font-size: 1.25rem;
    }
    
    .footer-logo {
        width: 38px;
        height: 38px;
    }
    
    .social-link {
        width: 38px;
        height: 38px;
    }
    
    .footer-payments {
        flex-direction: column;
        gap: 0.5rem;
    }
}
