/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Footer Styles */
footer {
    background: #333;
    color: white;
    padding: 3rem 0;
    text-align: center;
    margin-top: auto;
}

.footer-main {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    min-height: 80px;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-social {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.footer-social a {
    color: #ccc;
    font-size: 1.5rem;
    transition: color 0.3s ease;
    text-decoration: none;
}

.footer-social a:hover {
    color: #3E5CAA;
}

.footer-logo {
    flex: 1;
    text-align: center;
}

.footer-logo img {
    max-width: 250px;
    height: auto;
    width: 100%;
}

.footer-contact {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-contact div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: flex-end;
}

.footer-contact a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: #3E5CAA;
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 2rem;
    margin-top: 2rem;
}

.footer-bottom p {
    margin: 0.5rem 0;
}

.footer-version {
    font-size: 0.8rem;
    color: #999;
    margin-top: 0.5rem;
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    footer {
        padding: 2rem 0;
    }

    .footer-main {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        min-height: auto;
    }

    .footer-social {
        order: 1;
        justify-content: center;
    }

    .footer-logo {
        order: 2;
        margin: 1rem 0;
    }

    .footer-logo img {
        max-width: 200px;
    }

    .footer-contact {
        order: 3;
        text-align: center;
        align-items: center;
    }

    .footer-contact div {
        justify-content: center;
        flex-wrap: wrap;
    }

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

    .footer-bottom p {
        font-size: 0.9rem;
        line-height: 1.4;
    }
}

@media (max-width: 480px) {
    .footer-contact div {
        font-size: 0.9rem;
    }

    .footer-logo img {
        max-width: 150px;
    }

    .footer-social {
        gap: 1rem;
    }

    .footer-social a {
        font-size: 1.3rem;
    }
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #3E5CAA;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(62, 92, 170, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: #091435;
    transform: translateY(-2px);
}

/* Mobile Navigation Bar */
.mobile-nav-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(62, 92, 170, 0.1);
    padding: 8px 0 max(8px, env(safe-area-inset-bottom));
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    justify-content: space-around;
    align-items: center;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #666;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
    min-width: 60px;
    position: relative;
}

.mobile-nav-item:hover,
.mobile-nav-item:active {
    color: #3E5CAA;
    background: rgba(62, 92, 170, 0.1);
    transform: translateY(-1px);
}

.mobile-nav-item i {
    font-size: 1.4rem;
    margin-bottom: 4px;
}

.mobile-nav-item span {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Phone call item special styling */
.mobile-nav-item[href^="tel:"] {
    color: #28a745;
}

.mobile-nav-item[href^="tel:"]:hover {
    color: #1e7e34;
    background: rgba(40, 167, 69, 0.1);
}

/* Show mobile nav only on small screens */
@media (max-width: 768px) {
    .mobile-nav-bar {
        display: flex;
    }
    
    /* Add bottom padding to body to prevent content being hidden behind mobile nav */
    body {
        padding-bottom: 70px;
    }
    
    /* Adjust scroll to top button position when mobile nav is visible */
    .scroll-to-top {
        bottom: 80px;
        right: 15px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .mobile-nav-item {
        padding: 6px 8px;
        min-width: 50px;
    }
    
    .mobile-nav-item i {
        font-size: 1.2rem;
    }
    
    .mobile-nav-item span {
        font-size: 0.65rem;
    }
}