/*
 * Footer Styles
 * Contains all styles related to the site footer
 */

/* Footer Layout */
.site-footer {
    background: #F5F5F0;
    color: #2c3e50;
    padding: 3rem 0 2rem;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Footer Top Section */
.footer-top {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e9ecef;
}

.footer-column {
    text-align: left;
}

.footer-heading {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #3498db;
}

/* Footer Middle Section */
.footer-middle {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e9ecef;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.footer-links-horizontal {
    display: flex;
    justify-content: center;
    gap: 3rem;
}

.footer-links-horizontal a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-links-horizontal a:hover {
    color: #3498db;
}

/* Footer Bottom Section */
.footer-bottom {
    text-align: center;
}

.company-info {
    margin-bottom: 2rem;
}

.company-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.company-uen,
.company-address {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.footer-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.footer-btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: transparent;
    color: #2c3e50;
    text-decoration: none;
    border: 1px solid #2c3e50;
    border-radius: 4px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.footer-btn:hover {
    background: #2c3e50;
    color: #fff;
}

/* Bottom Mobile Menu */
.bottom-mobile-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #f5f5f0;
    border-top: 1px solid #e0e0e0;
    display: none;
    z-index: 1000;
}

.bottom-mobile-menu {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    height: 60px;
}

.bottom-menu-item {
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #e0e0e0;
    position: relative;
}

.bottom-menu-item:last-child {
    border-right: none;
}

.bottom-menu-btn {
    background: #4a4a4a;
    color: #fff;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    width: 100%;
    height: 100%;
    justify-content: center;
}

.bottom-menu-btn .menu-icon {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bottom-menu-btn .menu-icon span {
    width: 16px;
    height: 2px;
    background: #fff;
}

.bottom-menu-btn .menu-text {
    font-size: 0.7rem;
    color: #fff;
    font-weight: 500;
}

.bottom-menu-link {
    color: #2c3e50;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
    padding: 0.5rem;
    display: block;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.bottom-menu-link:hover {
    background: #e8e8e8;
    color: #2c3e50;
}

/* Show bottom menu only on mobile */
@media (min-width: 769px) {
    .bottom-mobile-menu {
        display: none;
    }
}

/* Add bottom padding to content when bottom menu is visible */
@media (max-width: 768px) {
    body {
        padding-bottom: 60px;
    }

    .site-content {
        margin-bottom: 60px;
    }
}