/* Footer Styles */

.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10rem 0 2rem;
    position: relative;
    z-index: 1;
}

.footer .container {
    width: 72%;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 3rem;
}

.footer-main h5 {
    color: var(--white);
    max-width: 500px;
    font-size: 2.5rem;
    line-height: 1.3;
    font-weight: 400;
}

.footer-emergency h5 {
    color: var(--white);
    margin-bottom: 0.5rem;
    font-size: 24px;
    font-weight: 500;
}

.footer-emergency h5:last-child {
    font-size: 24px;
    font-weight: 500;
}

.footer-emergency a {
    color: var(--white);
    text-decoration: none;
}

/* Footer phone button styling */
.footer-phone-btn {
    background: white;
    color: var(--primary-color) !important;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.25rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    z-index: 10;
    min-height: 50px;
}

.footer-phone-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: rotate(-45deg);
    transition: transform 0.6s ease;
    z-index: -1;
    pointer-events: none;
    will-change: transform;
}

.footer-phone-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    color: var(--primary-color) !important;
    text-decoration: none;
}

.footer-phone-btn:hover::before {
    transform: translateX(100%) translateY(100%) rotate(-45deg);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-column h5 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 24px;
    font-weight: 500;
}

.footer-column nav {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-column a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    font-size: 16px;
    font-weight: 300;
}

.footer-column a:hover {
    opacity: 1;
}

.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--white);
    text-decoration: none;
    transition: transform 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    min-width: 44px;
    min-height: 44px;
    padding: 10px;
}

.social-links a svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.social-links a:hover {
    transform: scale(1.2);
}

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

.footer-copyright p {
    color: var(--overlay-light);
    margin: 0;
    font-size: 0.9rem;
}

.footer-copyright a {
    color: var(--overlay-light);
    text-decoration: underline;
}

/* Footer Mobile Responsive */
@media (max-width: 768px) {
    .footer {
        padding: 2rem 0 2rem;
    }
    
    .footer .container {
        width: 90vw;
        padding: 0;
        margin: 0 auto;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-top,
    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .footer-phone-btn {
        font-size: 1.1rem;
        padding: 0.875rem 1.75rem;
    }
    
    .footer-emergency {
        text-align: center;
    }
    
    .footer-main h5 {
        font-size: 2rem;
        text-align: center;
    }
    
    .footer-emergency {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 3rem 0 2rem;
    }
    
    .footer-column h5 {
        font-size: 1.1rem;
    }
    
    .footer-main h5 {
        font-size: 1.75rem;
    }
    
    .footer-emergency h5 {
        font-size: 1.1rem;
    }
    
    .footer-phone-btn {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }
}