/**
 * Modern Footer CSS
 * Fully responsive and attractive footer design
 */

/* ========== Modern Footer ========== */
.modern-footer {
    background: linear-gradient(135deg, #1E293B, #334155);
    color: #E2E8F0;
    margin-top: 60px;
}

/* Main Footer */
.footer-main {
    padding: 60px 0 40px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.1);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
}

/* Footer About */
.footer-about {
    padding-right: 30px;
}

.footer-logo {
    height: 160px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
}

.footer-logo img {
    height: 100%;
    width: auto;
    max-width: 500px;
    object-fit: contain;
    object-position: left center;
}

.footer-description {
    font-size: 14px;
    line-height: 1.8;
    color: #CBD5E1;
    margin-bottom: 24px;
}

.footer-certifications {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.cert-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #93C5FD;
}

.cert-badge i {
    color: #60A5FA;
}

/* Social Links */
.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 18px;
}

.social-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.social-link.facebook:hover { background: #1877F2; }
.social-link.instagram:hover { background: linear-gradient(135deg, #E1306C, #FD1D1D, #F77737); }
.social-link.twitter:hover { background: #1DA1F2; }
.social-link.youtube:hover { background: #FF0000; }
.social-link.linkedin:hover { background: #0077B5; }

/* Footer Title */
.footer-title {
    font-size: 18px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 24px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(59, 130, 246, 0.5);
    display: inline-block;
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin: 12px 0;
}

.footer-links li a {
    color: #CBD5E1;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.footer-links li a i {
    font-size: 10px;
    color: #3B82F6;
    transition: all 0.3s ease;
}

.footer-links li a:hover {
    color: #FFFFFF;
    padding-left: 8px;
}

.footer-links li a:hover i {
    transform: translateX(4px);
}

/* Contact Info */
.contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-info li {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.contact-info li i {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.2);
    border-radius: 10px;
    color: #60A5FA;
    font-size: 16px;
    flex-shrink: 0;
}

.contact-info li div {
    flex: 1;
}

.contact-info li strong {
    display: block;
    color: #FFFFFF;
    font-size: 14px;
    margin-bottom: 6px;
}

.contact-info li p {
    margin: 0;
    font-size: 13px;
    color: #CBD5E1;
    line-height: 1.6;
}

.contact-info li a {
    color: #93C5FD;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-info li a:hover {
    color: #FFFFFF;
    text-decoration: underline;
}

/* Footer Branches */
.footer-branches {
    /* Styling for branches column */
}

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

.branch-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    font-size: 13px;
    color: #CBD5E1;
    line-height: 1.6;
}

.branch-list li i {
    color: #10B981;
    margin-top: 3px;
    flex-shrink: 0;
}

.footer-branch-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 10px 20px;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    color: #93C5FD;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.footer-branch-link:hover {
    background: rgba(59, 130, 246, 0.3);
    color: #FFFFFF;
    transform: translateX(4px);
}

.footer-branch-link i {
    font-size: 14px;
}

/* Service Areas */
.footer-areas {
    padding: 30px 0;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(226, 232, 240, 0.1);
}

.areas-title {
    font-size: 16px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 16px 0;
    text-align: center;
}

.areas-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.areas-list a {
    padding: 8px 16px;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 20px;
    color: #93C5FD;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.areas-list a:hover {
    background: rgba(59, 130, 246, 0.3);
    border-color: #3B82F6;
    color: #FFFFFF;
    transform: translateY(-2px);
}

/* Footer Bottom */
.footer-bottom {
    padding: 24px 0;
    background: rgba(0, 0, 0, 0.3);
}

.footer-bottom-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 20px;
}

.copyright p {
    margin: 0;
    font-size: 13px;
    color: #CBD5E1;
    white-space: nowrap;
}

.copyright strong {
    color: #FFFFFF;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}

.footer-bottom-links a {
    color: #93C5FD;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
}

.footer-bottom-links a:hover {
    color: #FFFFFF;
    text-decoration: underline;
}

.footer-bottom-links span {
    color: #64748B;
}

.footer-credits p {
    margin: 0;
    font-size: 13px;
    color: #CBD5E1;
    white-space: nowrap;
}

.footer-credits i {
    color: #EF4444;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.2); }
    50% { transform: scale(1); }
}

/* ========== Scroll to Top Button ========== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    color: #FFFFFF;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 997;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.6);
}

/* ========== Floating Action Buttons ========== */
.floating-actions {
    position: fixed;
    bottom: 100px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 996;
}

.fab-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 24px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.fab-phone {
    background: linear-gradient(135deg, #10B981, #059669);
    color: #FFFFFF;
    animation: ring-fab 3s ease-in-out infinite;
}

@keyframes ring-fab {
    0%, 100% { transform: scale(1) rotate(0deg); }
    10%, 30% { transform: scale(1.1) rotate(-15deg); }
    20%, 40% { transform: scale(1.1) rotate(15deg); }
}

.fab-whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #FFFFFF;
    animation: bounce-fab 2s ease-in-out infinite;
}

@keyframes bounce-fab {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.fab-quote {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: #FFFFFF;
}

.fab-btn:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* ========== Responsive Design ========== */
@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .footer-about {
        grid-column: 1 / -1;
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    .footer-main {
        padding: 40px 0 30px;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-about {
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-certifications {
        justify-content: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-title {
        width: 100%;
        text-align: center;
    }
    
    .footer-links li a {
        justify-content: center;
    }
    
    .areas-list {
        gap: 8px;
    }
    
    .areas-list a {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .footer-bottom-content {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
        gap: 10px;
    }
    
    .footer-bottom-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .copyright p,
    .footer-credits p {
        font-size: 12px;
    }
    
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .floating-actions {
        bottom: 80px;
        right: 20px;
    }
    
    .fab-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .footer-main {
        padding: 30px 0 20px;
    }
    
    .footer-container {
        padding: 0 15px;
    }
    
    .footer-logo {
        height: 70px;
        justify-content: center;
    }
    
    .footer-logo img {
        max-width: 200px;
    }
    
    .footer-description {
        font-size: 13px;
    }
    
    .cert-badge {
        font-size: 11px;
        padding: 6px 12px;
    }
    
    .social-link {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
    
    .contact-info li i {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .scroll-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .floating-actions {
        bottom: 70px;
        right: 15px;
        gap: 10px;
    }
    
    .fab-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

/* Footer All Services Section */
.footer-all-services {
    background: linear-gradient(135deg, #F8FAFC, #E2E8F0);
    padding: 60px 0;
    border-top: 3px solid #3B82F6;
}

.services-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-all-services .section-title {
    font-size: 32px;
    font-weight: 700;
    color: #1E293B;
    text-align: center;
    margin: 0 auto 10px auto;
    max-width: 700px;
    background: transparent !important; /* Remove any background */
    padding: 0;
}

.footer-all-services .section-subtitle {
    font-size: 16px;
    color: #475569; /* Darker for better visibility */
    text-align: center;
    margin: 0 0 40px 0;
    font-weight: 500;
    background: transparent !important; /* Remove any background */
    padding: 0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.footer-all-services .services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-category {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.service-category:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.category-name {
    font-size: 18px;
    font-weight: 700;
    color: #3B82F6;
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #E2E8F0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.service-links li {
    margin-bottom: 8px;
}

.service-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    color: #475569;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.service-links a:hover {
    background: linear-gradient(135deg, #EFF6FF, #DBEAFE);
    color: #3B82F6;
    transform: translateX(4px);
}

.service-links a i {
    font-size: 10px;
    color: #3B82F6;
}

@media (max-width: 1024px) {
    .footer-all-services .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .footer-all-services .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .footer-all-services .section-title {
        font-size: 24px;
    }
    
    .footer-all-services {
        padding: 40px 0;
    }
}

/* Print Styles */
@media print {
    .modern-footer,
    .scroll-to-top,
    .floating-actions {
        display: none;
    }
}
