/**
 * Custom Footer Styles for Kursai.net Child Theme
 *
 * @package Kursai
 * @since 1.0.0
 */

/* ==========================================================================
   CSS Variables - Footer Colors
   ========================================================================== */
:root {
    --footer-bg: #2d2f3a;
    --footer-text: #e6e8ec;
    --footer-text-muted: #98a3b6;
    --footer-text-bright: #f8f9fb;
    --footer-separator: #444952;
    --footer-link-hover: var(--color-primary, #3671ff);
}

/* ==========================================================================
   Footer Styles
   ========================================================================== */

/* Footer Container */
.kursai-footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 66px 0 60px;
    position: relative;
    border-radius: 20px;
    margin: 24px;
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    box-sizing: border-box;
}

.kursai-footer * {
    box-sizing: border-box;
}

.kursai-footer-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 25px;
    width: 100%;
}

.kursai-footer-content {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 45px;
    flex-wrap: wrap;
}

/* Company Info Section */
.kursai-footer-company {
    flex: 0 0 460px;
    max-width: 460px;
}

.kursai-footer-logo {
    margin-bottom: 30px;
}

.kursai-footer-logo img {
    height: 58px;
    width: auto;
    display: block;
}

.kursai-footer-description {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.7;
    color: var(--footer-text-bright);
    margin: 0 0 30px 0;
    max-width: 440px;
    padding: 0;
}

/* Contact and Badge Wrapper */
.kursai-footer-contact-badge-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

/* Contact Information */
.kursai-footer-contact {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1;
}

.kursai-contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.9;
    margin: 0;
    padding: 0;
}

.kursai-contact-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    filter: brightness(0) invert(1);
}

.kursai-contact-item span,
.kursai-contact-item a {
    color: var(--footer-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.kursai-contact-item a:hover {
    color: var(--footer-link-hover);
}

/* Footer Badge */
.kursai-footer-badge {
    flex-shrink: 0;
    align-self: flex-end;
}

.kursai-footer-badge img {
    height: 117px;
    width: auto;
    display: block;
}

/* Footer Menu Links */
.kursai-footer-menus {
    display: flex;
    gap: 100px;
    flex: 1;
    justify-content: flex-end;
}

.kursai-footer-menu {
    min-width: 200px;
}

.kursai-footer-menu-title {
    font-size: 20px;
    font-weight: 500;
    color: var(--footer-text-muted);
    margin: 0 0 25px 0;
    padding: 0;
    line-height: 1.25;
}

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

.kursai-footer-menu-list li {
    margin: 0 0 15px 0;
    padding: 0;
    list-style: none;
}

.kursai-footer-menu-list li::before {
    display: none;
    content: none;
}

.kursai-footer-menu-list a {
    color: var(--footer-text);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.kursai-footer-menu-list a:hover {
    color: var(--footer-link-hover);
}

/* Footer Separator */
.kursai-footer-separator {
    height: 1px;
    background-color: var(--footer-separator);
    margin-bottom: 40px;
    border: none;
}

/* Footer Bottom */
.kursai-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
}

.kursai-footer-copyright {
    font-size: 16px;
    font-weight: 500;
    color: var(--footer-text);
    line-height: 1.5;
    margin: 0;
    padding: 0;
}

/* Social Links */
.kursai-footer-social {
    display: flex;
    gap: 15px;
}

.kursai-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    transition: opacity 0.3s ease;
}

.kursai-social-link:hover {
    opacity: 0.7;
}

.kursai-social-link img {
    width: 100%;
    height: 100%;
    filter: brightness(0) invert(1);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

/* Large screens */
@media (max-width: 1200px) {
    .kursai-footer-menus {
        gap: 60px;
    }
}

@media (max-width: 1024px) {
    .kursai-footer-content {
        flex-direction: column;
        gap: 40px;
    }

    .kursai-footer-company {
        flex: none;
        max-width: 100%;
    }

    .kursai-footer-menus {
        gap: 40px;
        justify-content: flex-start;
    }
}

/* Medium Tablets: 428px to 768px */
@media (max-width: 768px) {
    .kursai-footer {
        padding: 40px 0 50px;
        margin: 8px;
    }

    .kursai-footer-container {
        padding: 0 20px;
    }

    .kursai-footer-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .kursai-footer-company {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .kursai-footer-description {
        text-align: center;
    }

    .kursai-footer-contact-badge-wrapper {
        flex-direction: column-reverse;
        align-items: center;
        gap: 30px;
    }

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

    .kursai-footer-badge {
        align-self: center;
    }

    .kursai-footer-badge img {
        height: 76px;
        width: auto;
    }

    .kursai-footer-menus {
        flex-direction: column;
        gap: 40px;
        text-align: center;
        align-items: center;
    }

    .kursai-footer-menu {
        min-width: auto;
    }

    .kursai-footer-menu-title {
        text-align: center;
        margin-bottom: 20px;
    }

    .kursai-footer-menu-list {
        text-align: center;
    }

    .kursai-footer-separator {
        margin: 30px 0;
    }

    .kursai-footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .kursai-footer {
        margin: 8px;
        padding: 30px 0 40px;
    }

    .kursai-footer-container {
        padding: 0 15px;
    }

    .kursai-footer-content {
        gap: 30px;
    }

    .kursai-footer-description {
        font-size: 20px;
        text-align: center;
    }

    .kursai-contact-item {
        font-size: 16px;
        justify-content: center;
    }

    .kursai-footer-menu-title {
        font-size: 18px;
    }

    .kursai-footer-badge img {
        height: 60px;
    }

    .kursai-footer-copyright {
        font-size: 14px;
    }
}
