.irmanha-footer {
    padding: var(--irmanha-space-16) 0 0;
    background-color: var(--irmanha-beige);
    color: var(--irmanha-black);
}

.subfooter {
    margin-top: var(--irmanha-space-8);
    padding: var(--irmanha-space-5) 0;
    background-color: var(--irmanha-beige);
    color: var(--irmanha-black);
}

.footer-title {
    position: relative;
    text-align: left;
    margin-bottom: var(--irmanha-space-10);
    max-width: 1285px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 var(--irmanha-space-5);
    display: flex;
    align-items: flex-end;
    gap: var(--irmanha-space-5);
    color: var(--irmanha-black);
    font-size: var(--irmanha-h2);
}

@media (max-width: 768px) {
    .footer-title {
        padding: 0;
    }
    
    .footer-columns {
        padding: 0;
    }
    
    .footer-divider {
        padding: 0;
    }
    
    .subfooter-content {
        padding: 0;
    }
    
    .footer-credits {
        padding-left: 0;
        padding-right: 0;
    }
}

.footer-logo {
    max-height: 1.5em;
    width: auto;
    object-fit: contain;
}

.footer-title:after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: currentColor;
    opacity: 0.75;
    margin-bottom: var(--irmanha-space-3);
}

.footer-columns {
    display: flex;
    max-width: 1285px;
    margin: 0 auto;
    padding: 0 var(--irmanha-space-5);
    gap: var(--irmanha-space-16);
    color: var(--irmanha-black);
}

.footer-column {
    flex: 1;
}

.footer-column:first-child {
    flex: 2;
}

.footer-column h3 {
    font-size: var(--irmanha-h3);
    margin-bottom: var(--irmanha-space-5);
    font-weight: var(--irmanha-font-weight-normal);
    color: var(--irmanha-black);
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: var(--irmanha-space-2);
}

.footer-menu a {
    text-decoration: none;
    transition: opacity var(--irmanha-transition-base);
    color: var(--irmanha-black);
    font-size: var(--irmanha-body);
    font-weight: var(--irmanha-font-weight-normal);
    line-height: var(--irmanha-leading-normal);
}

.footer-menu a:hover {
    color: #b29f90;
    opacity: 1;
}

.column-content a,
.column-content .footer-menu a {
    text-decoration: none;
    transition: color var(--irmanha-transition-base);
    color: var(--irmanha-black);
    font-size: var(--irmanha-body);
    font-weight: var(--irmanha-font-weight-normal);
    line-height: var(--irmanha-leading-normal);
}

.column-content a:hover,
.column-content .footer-menu a:hover {
    color: #b29f90;
    opacity: 1;
}

.column-content p,
.footer-column p,
.subfooter-content p {
    font-size: var(--irmanha-body);
    font-weight: var(--irmanha-font-weight-normal);
    line-height: var(--irmanha-leading-normal);
    color: var(--irmanha-black);
    margin: 0 0 var(--irmanha-space-2) 0;
}

.column-content p:last-child,
.footer-column p:last-child,
.subfooter-content p:last-child {
    margin-bottom: 0;
}


.subfooter-content {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1285px;
    margin: 0 auto;
    padding: 0 var(--irmanha-space-5);
    font-size: var(--irmanha-body-sm);
    color: var(--irmanha-black);
    gap: var(--irmanha-space-10);
}

.footer-credits {
    text-align: center;
    padding: var(--irmanha-space-2) var(--irmanha-space-5) 0;
    font-size: var(--irmanha-body) !important;
    color: var(--irmanha-black);
}

.footer-credits p {
    margin: 0;
}

.footer-credits a {
    color: inherit;
    text-decoration: none;
    transition: color var(--irmanha-transition-base);
}

.footer-credits a:hover {
    color: #b29f90;
    opacity: 1;
}

.subfooter-left,
.subfooter-right {
    flex: none;
}

.subfooter-right {
    text-align: right;
}

.subfooter-content p {
    margin: 0;
}

@media (max-width: 768px) {
    .irmanha-footer {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .footer-columns {
        flex-direction: column;
        gap: 0;
    }
    
    .mobile-toggle {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin: 0;
        padding: var(--irmanha-space-4) 0;
        cursor: pointer;
        font-weight: var(--irmanha-font-weight-bold);
    }
    
    .toggle-icon {
        display: block;
        width: var(--irmanha-space-2);
        height: var(--irmanha-space-2);
    border-right: 2px solid var(--irmanha-black);
    border-bottom: 2px solid var(--irmanha-black);
        transform: rotate(45deg);
        transition: transform var(--irmanha-transition-base);
    }
    
    .mobile-toggle.active .toggle-icon {
        transform: rotate(-135deg);
    }
    
    .column-content {
        display: none;
        padding: 0 0 var(--irmanha-space-4);
    }
    
    .column-content.active {
        display: block;
    }
    
    .subfooter-content {
        flex-direction: column;
        gap: var(--irmanha-space-2);
    }

    .subfooter-left,
    .subfooter-right {
        text-align: center;
    }

    .footer-menu a,
    .column-content a,
    .column-content p,
    .footer-column p,
    .subfooter-content p,
    .footer-credits {
        font-size: var(--irmanha-text-mobile-lg) !important;
    }
}

/* Footer divider styling */
.footer-divider {
    max-width: 1285px;
    margin: var(--irmanha-space-8) auto;
    padding: 0 var(--irmanha-space-5);
}

.divider-line {
    width: 100%;
    height: 1px;
    background-color: var(--irmanha-black);
    opacity: 0.75;
}

.toggle-icon {
    display: none;
}

@media (max-width: 768px) {
    .irmanha-footer {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .footer-columns {
        flex-direction: column;
        gap: 0;
    }
    
    .mobile-toggle {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin: 0;
        padding: var(--irmanha-space-4) 0;
        cursor: pointer;
        font-weight: var(--irmanha-font-weight-bold);
    }
    
    .toggle-icon {
        display: block;
        width: var(--irmanha-space-2);
        height: var(--irmanha-space-2);
    border-right: 2px solid var(--irmanha-black);
    border-bottom: 2px solid var(--irmanha-black);
        transform: rotate(45deg);
        transition: transform var(--irmanha-transition-base);
    }
    
    .mobile-toggle.active .toggle-icon {
        transform: rotate(-135deg);
    }
    
    .column-content {
        display: none;
        padding: 0 0 var(--irmanha-space-4);
    }
    
    .column-content.active {
        display: block;
    }
}

.column-title {
    font-size: var(--irmanha-h4);
    margin-bottom: var(--irmanha-space-5);
    font-weight: var(--irmanha-font-weight-bold);
}

/* Voeg meer ruimte toe onder alle kolomtitels */
.footer-column .column-title {
    margin-bottom: var(--irmanha-space-2);
}

@media (max-width: 768px) {
    /* ... bestaande mobile CSS ... */
    
    .irmanha-footer {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .mobile-toggle {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin: 0;
        padding: var(--irmanha-space-4) 0;
        cursor: pointer;
        font-weight: var(--irmanha-font-weight-bold);
    }
}

/* Subfooter links styling */
.irmanha-footer .subfooter-links {
    display: flex;
    gap: var(--irmanha-space-2);
    justify-content: flex-end;
    align-items: center;
}

.irmanha-footer .subfooter-link {
    color: inherit;
    text-decoration: none;
    transition: color var(--irmanha-transition-base);
}

.irmanha-footer .subfooter-link:hover {
    color: #b29f90;
    opacity: 1;
}

.irmanha-footer .link-separator {
    color: inherit;
    margin: 0px;
}

/* Pop-up styling */
.irmanha-footer .popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: var(--irmanha-z-modal-backdrop);
    justify-content: center;
    align-items: center;
}

.irmanha-footer .popup-content {
    background-color: var(--irmanha-white);
    padding: var(--irmanha-space-8);
    border-radius: var(--irmanha-radius-md);
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    color: var(--irmanha-black);
    display: flex;
    flex-direction: column;
    gap: 0;
}

.irmanha-footer .popup-header {
    width: 100%;
    position: relative;
    margin-bottom: var(--irmanha-space-2);
}

.irmanha-footer .popup-title {
    margin: 0;
    font-size: var(--irmanha-h2);
    color: var(--irmanha-black);
    text-align: left;
    padding-right: var(--irmanha-space-10);
}

.irmanha-footer .popup-body {
    text-align: left;
    width: 100%;
}

.irmanha-footer .popup-body p {
    margin: 0 0 var(--irmanha-space-4) 0;
}

.irmanha-footer .popup-close {
    position: absolute;
    right: 0;
    top: 0;
    width: var(--irmanha-space-8);
    height: var(--irmanha-space-8);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--irmanha-radius-full);
    background: var(--irmanha-beige);
    cursor: pointer;
    transition: background-color var(--irmanha-transition-base);
}

.irmanha-footer .popup-close:before {
    content: '×';
    color: var(--irmanha-white);
    font-size: var(--irmanha-h3);
    line-height: 1;
}

.irmanha-footer .popup-close:hover {
    background: var(--irmanha-beige);
    opacity: 0.8;
}

@media (max-width: 768px) {
    .irmanha-footer .subfooter-links {
        justify-content: center;
        flex-wrap: wrap;
    }
}
