/**
 * Footer Styles
 * ANS System Certification
 */

/* Footer Base Styles */
#footer.footer.dark-background {
    background: linear-gradient(180deg, #1a1f2e 0%, #0d1117 100%);
    color: #e6e6e6;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15) 0%, rgba(99, 102, 241, 0.1) 100%);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 20px;
    padding: 3rem 2rem;
    backdrop-filter: blur(10px);
}

.newsletter-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.5px;
}

.newsletter-subtitle {
    color: #a0aec0;
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-input-wrapper .input-group {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.newsletter-input-wrapper .input-group:focus-within {
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

.newsletter-input-wrapper .input-group-text {
    background: transparent;
    border: none;
    color: #6366f1;
    padding-left: 1.25rem;
}

.newsletter-input-wrapper .form-control {
    background: transparent;
    border: none;
    color: #fff;
    padding: 0.875rem 1rem;
    font-size: 1rem;
}

.newsletter-input-wrapper .form-control::placeholder {
    color: #718096;
}

.newsletter-input-wrapper .form-control:focus {
    box-shadow: none;
    background: transparent;
}

.newsletter-submit-btn {
    border-radius: 50px !important;
    padding: 0.75rem 1.75rem;
    font-weight: 600;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    border: none;
    color: #fff;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.newsletter-submit-btn:hover {
    transform: translateX(5px);
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    color: #fff;
}

.form-note {
    color: #718096;
    font-size: 0.85rem;
}

.form-note i {
    color: #10b981;
}

/* Company Info Section */
.footer-company-info {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.company-logo-section .custom-logo {
    max-height: 60px;
    filter: brightness(1.1);
}

.company-description {
    color: #a0aec0;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.contact-summary {
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem 1.25rem;
    border-radius: 12px;
    border-left: 3px solid #6366f1;
}

.contact-summary p {
    color: #cbd5e0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.contact-summary i {
    color: #6366f1;
    width: 20px;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 12px;
    margin-top: 1.5rem;
}

.social-link {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    color: #a0aec0;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.social-link:hover {
    background: #6366f1;
    color: #fff;
    transform: translateY(-3px);
    border-color: #6366f1;
}

/* Office Card */
.office-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.5rem;
    height: 100%;
    transition: all 0.3s ease;
}

.office-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-5px);
}

.office-header {
    text-align: center;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.flag-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.office-header h5 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.office-header .country {
    color: #6366f1;
    font-size: 0.85rem;
    font-weight: 500;
}

.office-address {
    color: #a0aec0;
    font-size: 0.9rem;
    line-height: 1.6;
}

.office-address .contact-info {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.office-address .contact-info p {
    margin-bottom: 0.25rem;
    font-size: 0.85rem;
}

.office-address .contact-info strong {
    color: #cbd5e0;
}

/* Footer Section Title */
.footer-section-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    position: relative;
    padding-left: 15px;
}

.footer-section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: linear-gradient(180deg, #6366f1, #4f46e5);
    border-radius: 2px;
}

.footer-subtitle {
    color: #cbd5e0;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 1rem;
    margin-top: 1.5rem;
}

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-list li {
    margin-bottom: 0.6rem;
}

.footer-links-list a {
    color: #a0aec0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.footer-links-list a::before {
    content: '→';
    margin-right: 8px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    color: #6366f1;
}

.footer-links-list a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-links-list a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* Combined Section */
.footer-combined-section {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Quick Links Grid */
.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.6rem;
}

.quick-link-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 0.5rem 0.65rem;
    transition: all 0.3s ease;
}

.quick-link-item:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
}

.quick-link {
    color: #a0aec0;
    text-decoration: none;
    font-size: 0.75rem;
    display: block;
    transition: color 0.3s ease;
    line-height: 1.4;
}

.quick-link:hover {
    color: #fff;
}

/* Copyright Section */
#footer .copyright {
    padding: 1.5rem 0;
    color: #718096;
    font-size: 0.9rem;
}

#footer .copyright strong {
    color: #6366f1;
}

/* Mobile Responsive Styles */
@media (max-width: 991px) {
    .newsletter-section {
        padding: 2rem 1.5rem;
    }

    .newsletter-title {
        font-size: 1.5rem;
    }

    .quick-links-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .office-card {
        margin-bottom: 1rem;
    }
}

@media (max-width: 767px) {
    .newsletter-section {
        padding: 1.5rem 1rem;
    }

    .newsletter-title {
        font-size: 1.25rem;
    }

    .newsletter-subtitle {
        font-size: 0.9rem;
    }

    .newsletter-input-wrapper .input-group {
        flex-direction: column;
        border-radius: 16px;
        padding: 0.5rem;
    }

    .newsletter-input-wrapper .input-group-text {
        display: none;
    }

    .newsletter-input-wrapper .form-control {
        border-radius: 12px !important;
        margin-bottom: 0.5rem;
        background: rgba(255, 255, 255, 0.05);
        padding: 1rem;
    }

    .newsletter-submit-btn {
        width: 100%;
        border-radius: 12px !important;
        padding: 1rem;
    }

    .company-logo-section {
        text-align: center;
        margin-bottom: 2rem;
    }

    .contact-summary {
        border-left: none;
        border-top: 3px solid #6366f1;
    }

    .social-links {
        justify-content: center;
    }

    .quick-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-section-title {
        text-align: center;
        padding-left: 0;
    }

    .footer-section-title::before {
        display: none;
    }

    .footer-links-list {
        text-align: center;
    }

    .footer-links-list a::before {
        display: none;
    }

    .footer-subtitle {
        text-align: center;
    }

    .office-card {
        max-width: 100%;
        margin: 0 auto 1.5rem;
    }

    .footer-combined-section .col-lg-4,
    .footer-combined-section .col-lg-8 {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .newsletter-title {
        font-size: 1.1rem;
    }

    .newsletter-subtitle {
        font-size: 0.85rem;
    }

    .company-logo-section .custom-logo {
        max-height: 50px;
    }

    .footer-section-title {
        font-size: 1rem;
    }

    .quick-link {
        font-size: 0.7rem;
    }

    .quick-links-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .quick-link-item {
        padding: 0.4rem 0.5rem;
    }
}

