/**
 * CDL Footer - Custom Condalab Footer
 */

/* Reset default PS footer styles */
#footer {
    background-color: #000;
    color: #fff;
    padding: 0;
}

#footer .footer-container {
    background: none;
    padding: 0;
    margin: 0;
}

/* ===== MAIN FOOTER ===== */
.cdl-footer {
    max-width: 1280px;
    margin: 0 auto;
    padding: 64px 32px;
}

.cdl-footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 48px;
}

/* Column 1: Brand */
.cdl-footer-brand {}

.cdl-footer-logo {
    height: 40px;
    margin-bottom: 24px;
    filter: brightness(0) invert(1);
}

.cdl-footer-tagline {
    color: #9ca3af;
    font-size: 14px;
    line-height: 1.625;
    margin: 0 0 24px;
}

.cdl-footer-social {
    display: flex;
    gap: 12px;
}

.cdl-footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease;
}

.cdl-footer-social a:hover {
    background: #EBBE18;
    color: #000;
}

.cdl-footer-social a svg {
    width: 20px;
    height: 20px;
}

/* Column headers */
.cdl-footer-col-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.cdl-footer-col-icon {
    width: 32px;
    height: 32px;
    background: #EBBE18;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cdl-footer-col-icon svg {
    width: 16px;
    height: 16px;
    color: #000;
}

.cdl-footer-col-title {
    font-family: 'Jost', sans-serif;
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    margin: 0;
    line-height: 1.3;
}

/* Link lists */
.cdl-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cdl-footer-links li {
    margin-bottom: 12px;
}

.cdl-footer-links li:last-child {
    margin-bottom: 0;
}

.cdl-footer-links a {
    color: #d1d5db;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.cdl-footer-links a:hover {
    color: #EBBE18;
}

.cdl-footer-links .cdl-bullet {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    flex-shrink: 0;
    transition: background 0.3s ease;
}

.cdl-footer-links a:hover .cdl-bullet {
    background: #EBBE18;
}

.cdl-footer-links .cdl-link-icon {
    width: 16px;
    height: 16px;
    color: #9ca3af;
    flex-shrink: 0;
    transition: color 0.3s ease;
}

.cdl-footer-links a:hover .cdl-link-icon {
    color: #EBBE18;
}

/* Contact items */
.cdl-footer-contact {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cdl-footer-contact li {
    margin-bottom: 16px;
}

.cdl-footer-contact li:last-child {
    margin-bottom: 0;
}

.cdl-footer-contact a,
.cdl-footer-contact .cdl-contact-item {
    color: #d1d5db;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: color 0.3s ease;
}

.cdl-footer-contact a:hover {
    color: #EBBE18;
}

.cdl-footer-contact .cdl-contact-icon {
    width: 16px;
    height: 16px;
    color: #9ca3af;
    flex-shrink: 0;
    margin-top: 2px;
    transition: color 0.3s ease;
}

.cdl-footer-contact a:hover .cdl-contact-icon {
    color: #EBBE18;
}

/* Newsletter */
.cdl-footer-newsletter {
    margin-top: 24px;
}

.cdl-footer-newsletter p {
    color: #9ca3af;
    font-size: 14px;
    margin: 0 0 12px;
}

.cdl-footer-newsletter-form {
    display: flex;
    gap: 8px;
}

.cdl-footer-newsletter-form input {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 14px;
    color: #fff;
    outline: none;
    transition: border-color 0.3s ease;
    min-width: 0;
}

.cdl-footer-newsletter-form input::placeholder {
    color: #6b7280;
}

.cdl-footer-newsletter-form input:focus {
    border-color: #EBBE18;
}

.cdl-footer-newsletter-form button {
    background: #EBBE18;
    color: #000;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.cdl-footer-newsletter-form button:hover {
    background: #d4ad14;
}

.cdl-footer-newsletter-form button svg {
    width: 16px;
    height: 16px;
}

/* Newsletter message */
.cdl-footer-newsletter-msg {
    display: none;
    font-size: 13px;
    margin-top: 8px;
    padding: 6px 0;
    line-height: 1.4;
}

.cdl-footer-newsletter-msg.cdl-msg-ok {
    color: #4ade80;
}

.cdl-footer-newsletter-msg.cdl-msg-err {
    color: #f87171;
}

/* ===== BOTTOM BAR ===== */
.cdl-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cdl-footer-bottom-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.cdl-footer-copyright {
    font-size: 14px;
    color: #9ca3af;
    margin: 0;
}

.cdl-footer-legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
}

.cdl-footer-legal a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.cdl-footer-legal a:hover {
    color: #EBBE18;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .cdl-footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media (max-width: 767px) {
    .cdl-footer {
        padding: 48px 20px;
    }

    .cdl-footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .cdl-footer-bottom-inner {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .cdl-footer-legal {
        justify-content: center;
    }
}
