.main-footer {
    background: linear-gradient(135deg,
        #003b4f 0%,
        #004e63 25%,
        #005b6f 50%,
        #004b46 75%,
        #00382e 100%
    );
    color: var(--white);
    padding: 80px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 50px;
    margin-bottom: 50px;
}

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 25px;
    font-weight: 700;
    color: var(--white);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.9;
    font-size: 15px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section li {
    margin-bottom: 14px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.85);
    transition: all var(--transition-fast);
    font-size: 15px;
    display: inline-block;
}

.footer-section a:hover {
    color: var(--primary-green);
    transform: translateX(5px);
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.footer-social a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

.footer-social a:hover {
    background: var(--gradient-primary);
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 35px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.footer-logo-container {
    margin-bottom: 20px;
}

.footer-logo-img {
    height: 50px;
    width: auto;
}

.footer-certificates-section {
    text-align: center;
}

.footer-certificates-title {
    color: #ffffff;
    font-size: 20px;
    margin-bottom: 25px;
    font-weight: 700;
}

.footer-certificate-thumb {
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    cursor: pointer;
    border-radius: 12px;
    max-width: 200px;
    display: inline-block;
}

.footer-certificate-thumb:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

.footer-map-container {
    margin-top: 2rem;
    border-radius: 16px;
    overflow: hidden;
    height: 300px;
}

.footer-map-iframe {
    border: 0;
}

.footer-whatsapp-note {
    max-width: 400px;
    margin: 20px auto 0;
    padding: 15px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    font-size: 12px;
    opacity: 0.8;
}

.certificate-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
}

.certificate-modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 100000;
}

.certificate-modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    height: 90%;
    margin: 2% auto;
}

.certificate-modal-iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

.whatsapp-float {
    position: fixed;
    bottom: 100px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all var(--transition-base);
    animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
    background: linear-gradient(135deg, #128C7E, #25D366);
}

@keyframes whatsapp-pulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
    }
}

.scroll-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 998;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

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

.scroll-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 166, 81, 0.4);
}

@media (max-width: 1025px) and (min-width: 768px) {
    .footer-content {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 30px;
    }

    .footer-section:first-child {
        grid-column: 1 / -1;
        text-align: center;
    }

    .footer-section:first-child .footer-logo {
        display: flex;
        justify-content: center;
    }

    .footer-section:first-child .footer-social {
        justify-content: center;
    }

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

    .footer-section ul {
        list-style: none;
        padding: 0;
    }
}

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

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 35px;
    }
}

@media (max-width: 767px) {
    .footer-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .footer-section:first-child {
        grid-column: 1 / -1;
        text-align: center;
    }

    .footer-section:first-child .footer-logo {
        display: flex;
        justify-content: center;
    }

    .footer-section:first-child .footer-social {
        justify-content: center;
    }

    .footer-section:nth-child(2),
    .footer-section:nth-child(3) {
        text-align: center;
    }

    .footer-section:nth-child(4) {
        grid-column: 1 / -1;
        text-align: center;
        max-width: 400px;
        margin: 0 auto;
    }

    .footer-section ul {
        list-style: none;
        padding: 0;
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 90px;
        right: 20px;
    }

    .scroll-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
}