/* Footer Styles */
.site-footer {
    background-color: #153C6D; /* Dark blue background */
    color: #ffffff;
    padding: 60px 0 30px;
    font-family: 'Heebo', 'Assistant', sans-serif;
}

.footer-container {
    /* max-width: 1305px; */
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    max-width: 100%;
    max-width: 1400px;
}

/* Footer Top Section - Menu Left, Logo & Social Right (Column) */
.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 50px;
    gap: 60px;
    width: 100%;
}

/* Logo and Social Column (Right side, stacked vertically) */
.footer-logo-social-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
    /* flex-shrink: 0; */
    flex: 0 0 24%;
}

/* Logo Section */
.footer-logo-section {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-direction: row-reverse; /* RTL: Logo image on right, text on left */
}

.footer-logo-wrapper {
    flex-shrink: 0;
}

.footer-logo {
    max-width: 234px;
    height: auto;
}

/* Fallback Logo */
.footer-logo-fallback {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
}

.logo-a {
    width: 50px;
    height: 50px;
    background-color: #ffffff;
    color: #153C6D;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 24px;
    border-radius: 4px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-jan {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
}

.logo-office {
    font-size: 10px;
    color: #ffffff;
    margin-top: 2px;
}

.footer-office-name {
    display: flex;
    flex-direction: column;
}

.footer-office-title {
    font-size: 14px;
    font-weight: 400;
    margin: 0 0 5px 0;
    color: #ffffff;
}

.footer-attorney-name {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    color: #ffffff;
}

/* Social Media Section */
.footer-social-section {
    width: 100%;
    display: flex;
    justify-content: flex-start;
}

.social-media-icons {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-direction: row; /* Icons in a row */
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: transform 0.3s ease, opacity 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

.social-icon svg {
    width: 24px;
    height: 24px;
}

.social-tiktok {
    /* background-color: #000000; */
    color: #ffffff;
}

.social-instagram {
    /* background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); */
    color: #ffffff;
}

.social-facebook {
    /* background-color: #1877f2; */
    color: #ffffff;
}

.social-whatsapp {
    /* background-color: #25d366; */
    color: #ffffff;
}

/* Menu Section */
.footer-menu-section {
    flex: 1; /* Take remaining space on left */
}

.footer-top .footer-menu-section {
    margin-bottom: 0; /* No margin when inside footer-top */
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.footer-menu-grid {
    display: flex;
    flex-direction: row;
    gap: 40px;
    flex: 1;
    width: 100%;
}

.footer-menu-column {
    display: flex;
    flex-direction: column;
}

.footer-menu-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: #ffffff;
}

.footer-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-menu-list li {
    margin-bottom: 0;
}

.footer-menu-list a {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: opacity 0.3s ease;
    display: block;
}

.footer-menu-list a:hover {
    opacity: 0.7;
}

/* WordPress Menu Support */
.footer-menu-column ul.menu,
.footer-menu-column .menu,
.footer-menu-column .footer-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-menu-column ul.menu li,
.footer-menu-column .menu li,
.footer-menu-column .footer-menu-list li {
    margin-bottom: 0;
}

.footer-menu-column ul.menu li a,
.footer-menu-column .menu li a,
.footer-menu-column .footer-menu-list li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: opacity 0.3s ease;
    display: block;
}

.footer-menu-column ul.menu li a:hover,
.footer-menu-column .menu li a:hover,
.footer-menu-column .footer-menu-list li a:hover {
    opacity: 0.7;
}

/* Sub-menu styles */
.footer-menu-column ul.menu > li > .sub-menu,
.footer-menu-column .menu > li > .sub-menu,
.footer-menu-column .footer-menu-list > li > .sub-menu {
    margin-top: 8px;
    /* margin-right: 15px; */
    /* padding-right: 15px; */
    /* border-right: 1px solid rgba(255, 255, 255, 0.2); */
    list-style: none;
}

.footer-menu-column ul.menu > li > .sub-menu li,
.footer-menu-column .menu > li > .sub-menu li,
.footer-menu-column .footer-menu-list > li > .sub-menu li {
    margin-bottom: 8px;
}

.footer-menu-column ul.menu > li > .sub-menu a,
.footer-menu-column .menu > li > .sub-menu a,
.footer-menu-column .footer-menu-list > li > .sub-menu a {
    font-size: 15px;
    opacity: 1;
    font-weight: 300;
}

/* Copyright Section */
.footer-bottom {
    padding-top: 20px;
    text-align: center;
}

.footer-copyright {
    margin: 0;
}

.copyright-text {
    font-size: 14px;
    color: #ffffff;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.copyright-separator {
    opacity: 0.5;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .footer-menu-column ul.menu li, .footer-menu-column .menu li, .footer-menu-column .footer-menu-list li {
        margin-bottom: 0;
        flex: 0 0 45%;
    }
    .site-footer {
        padding: 40px 0 20px;
    }

    .footer-container {
        padding: 0 15px;
    }

    /* Mobile: Logo first, then social, then menu */
    .footer-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: 30px;
        gap: 25px;
    }

    .footer-logo-social-column {
        align-items: center;
        width: 100%;
        gap: 0;
        margin-bottom: 2rem;
    }

    .footer-logo-section {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .footer-social-section {
        justify-content: center;
    }

    .footer-logo-wrapper {
        margin-bottom: 15px;
    }

    .footer-office-name {
        align-items: center;
    }

    .footer-social-section {
        order: 2; /* Second on mobile */
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .social-media-icons {
        justify-content: center;
    }

    /* Menu Grid - Stack columns on mobile */
    .footer-menu-section {
        margin-bottom: 30px;
        flex-direction: column;
    }

    .footer-menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        flex: 0 0 100%;
    }

    .footer-menu-column {
        text-align: center;
    }

    .footer-menu-title {
        margin-bottom: 15px;
    }

    /* Copyright */
    .footer-bottom {
        padding-top: 15px;
    }

    .copyright-text {
        flex-direction: column;
        gap: 5px;
    }

    .copyright-separator {
        display: none;
    }
}

/* Tablet Styles */
@media (min-width: 769px) and (max-width: 1024px) {
    .footer-menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .footer-top {
        flex-wrap: wrap;
    }
}

