/* Site footer */
.site-footer {
    position: relative;
    z-index: 30;
    clear: both;
    width: 100%;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.68);
    background:
        radial-gradient(circle at 85% 12%, rgba(41, 236, 255, 0.08), transparent 28%),
        radial-gradient(circle at 18% 90%, rgba(161, 92, 255, 0.1), transparent 34%),
        #060607;
}

.footer-top-border {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(161, 92, 255, 0.74), rgba(41, 236, 255, 0.66), transparent);
    box-shadow: 0 0 16px rgba(108, 92, 231, 0.34);
}

.footer-container {
    width: min(100% - 48px, 1240px);
    margin: 0 auto;
    padding: 64px 0 28px;
}

.footer-brand-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-bottom: 34px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-brand {
    display: block;
    width: clamp(220px, 26vw, 330px);
}

.footer-brand img {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.08));
}

.footer-brand:hover {
    transform: translateY(-2px);
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px;
    padding: 42px 0;
}

.footer-widgets:not(:has(.widget)) {
    display: none;
}

.footer-widget-area,
.footer-widget-area a {
    color: rgba(255, 255, 255, 0.66);
}

.footer-widget-area .widget-title {
    margin-bottom: 16px;
    color: #fff;
    font-size: 18px;
}

.footer-widget-area ul,
.footer-menu {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-middle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 22px 0 34px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
}

.footer-menu a:hover,
.footer-menu a:focus-visible {
    color: #fff;
}

.footer-social-icons {
    display: flex;
    flex: 0 0 auto;
    gap: 9px;
}

.site-footer .social-icon {
    border: 1px solid rgba(255, 255, 255, 0.13);
    background: rgba(255, 255, 255, 0.07);
}

.site-footer .social-icon:hover,
.site-footer .social-icon:focus-visible {
    background: rgba(255, 255, 255, 0.16);
}

.footer-newsletter {
    display: grid;
    grid-template-columns: minmax(220px, 0.8fr) minmax(320px, 1.2fr);
    align-items: center;
    gap: 40px;
    padding: 42px 0;
}

.footer-newsletter h4 {
    margin: 0;
    color: #fff;
    font-size: clamp(22px, 2.5vw, 34px);
    font-weight: 500;
    letter-spacing: -0.035em;
}

.newsletter-form {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.035);
}

.newsletter-form input[type="email"] {
    min-width: 0;
    padding: 12px 16px;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.newsletter-form button {
    flex: 0 0 auto;
    min-height: 45px;
    padding: 0 22px;
    background: #fff;
    color: #09090b;
    box-shadow: none;
}

.newsletter-form button:hover,
.newsletter-form button:focus-visible {
    background: #29ecff;
    color: #050506;
    box-shadow: 0 0 18px rgba(41, 236, 255, 0.28);
    transform: none;
}

.footer-bottom {
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.site-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
    color: rgba(255, 255, 255, 0.42);
    font-size: 13px;
}

.footer-credit-link {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    transition: color 180ms ease, text-shadow 180ms ease;
}

.footer-credit-link:hover,
.footer-credit-link:focus-visible {
    color: #29ecff;
    text-shadow: 0 0 12px rgba(41, 236, 255, 0.35);
}

body.single-post .site-footer {
    margin-top: 0;
}

@media (max-width: 800px) {
    .footer-widgets {
        grid-template-columns: 1fr;
    }

    .footer-middle {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-newsletter {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 520px) {
    .footer-container {
        width: min(100% - 30px, 1240px);
        padding-top: 46px;
    }

    .footer-brand-row {
        justify-content: center;
    }

    .footer-brand {
        width: min(78vw, 290px);
    }

    .newsletter-form {
        align-items: stretch;
        flex-direction: column;
        padding: 8px;
        border-radius: 18px;
    }

    .newsletter-form button {
        width: 100%;
    }

    .footer-menu {
        gap: 10px 20px;
    }

    .site-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}
