/* ==========================================================================
   Unified Footer Styles - CodingHeads
   ========================================================================== */

/* --- Base Footer --- */
.page-footer {
    background-color: #000;
    color: #fff;
    font-family: 'B612', sans-serif;
    font-size: 14px;
    line-height: 1.6;
}

/* --- Top Zone: Navigation --- */
.footer-nav-zone {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 28px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 0;
}

.footer-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
}

.footer-nav-list li {
    position: relative;
}

.footer-nav-list li:not(:last-child)::after {
    content: '';
    display: inline-block;
    width: 1px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.25);
    vertical-align: middle;
    margin: 0 4px;
}

.footer-nav-list li a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 13px;
    font-family: 'Encode Sans Semi Expanded', sans-serif;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 4px 12px;
    transition: color 0.25s ease;
    display: inline-block;
}

.footer-nav-list li a:hover,
.footer-nav-list li a:focus {
    color: #e74c3c;
}

.footer-nav-list li.current-menu-item a,
.footer-nav-list li.current_page_item a {
    color: #fff;
}

.footer-legal-link {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 0.03em;
    margin-left: 24px;
    padding: 4px 0;
    transition: color 0.25s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-legal-link:hover,
.footer-legal-link:focus {
    color: #e74c3c;
    border-bottom-color: #e74c3c;
}

/* --- Middle Zone: Info Grid --- */
.footer-info-zone {
    padding: 56px 0 48px;
}

.footer-col {
    margin-bottom: 32px;
}

.footer-col h4 {
    font-family: 'Encode Sans Semi Expanded', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 24px 0;
    padding-bottom: 16px;
    position: relative;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 24px;
    height: 2px;
    background-color: #fff;
}

/* Logo column */
.footer-col-logo {
    display: flex;
    align-items: flex-start;
}

.footer-logo {
    display: inline-block;
    text-decoration: none;
    transition: opacity 0.25s ease;
}

.footer-logo:hover,
.footer-logo:focus {
    opacity: 0.8;
}

.footer-logo img {
    display: block;
    max-width: 180px;
    height: auto;
}

.footer-logo-text {
    font-family: 'Encode Sans Semi Expanded', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.02em;
}

/* Contact column */
.footer-link {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: 6px;
    transition: color 0.25s ease;
    word-break: break-word;
}

.footer-link:hover,
.footer-link:focus {
    color: #e74c3c;
}

/* Address column */
.footer-address {
    color: rgba(255, 255, 255, 0.7);
    font-style: normal;
    line-height: 1.7;
}

/* Social column */
.footer-social-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.footer-social-list li {
    position: relative;
}

.footer-social-list li:not(:last-child)::after {
    content: '';
    display: inline-block;
    width: 1px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.25);
    vertical-align: middle;
    margin: 0 2px;
}

.footer-social-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 13px;
    padding: 4px 10px;
    transition: color 0.25s ease;
    display: inline-block;
}

.footer-social-link:hover,
.footer-social-link:focus {
    color: #e74c3c;
}

/* --- Bottom Zone: Copyright --- */
.footer-copyright-zone {
    background-color: rgba(255, 255, 255, 0.03);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 0;
}

.footer-copyright {
    margin: 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.35);
    font-size: 12px;
    letter-spacing: 0.03em;
}

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

/* Tablet and below */
@media screen and (max-width: 1023px) {
    .footer-info-zone {
        padding: 40px 0 8px;
    }

    .footer-col {
        margin-bottom: 36px;
        text-align: center;
    }

    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-col-logo {
        justify-content: center;
        margin-bottom: 36px;
    }

    .footer-social-list {
        justify-content: center;
    }

    .footer-link {
        text-align: center;
    }

    .footer-address {
        text-align: center;
    }
}

/* Mobile */
@media screen and (max-width: 639px) {
    .footer-nav-zone {
        padding: 20px 0;
    }

    .footer-nav {
        flex-direction: column;
        gap: 12px;
    }

    .footer-nav-list {
        flex-direction: column;
        gap: 4px;
    }

    .footer-nav-list li:not(:last-child)::after {
        display: none;
    }

    .footer-nav-list li a {
        padding: 6px 16px;
    }

    .footer-legal-link {
        margin-left: 0;
        margin-top: 4px;
    }

    .footer-info-zone {
        padding: 32px 0 0;
    }

    .footer-col {
        margin-bottom: 32px;
    }

    .footer-social-list li:not(:last-child)::after {
        display: none;
    }

    .footer-social-list {
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }

    .footer-social-link {
        padding: 4px 8px;
    }
}
