/* Footer Frame */
.site-footer {
    margin-top: 4rem;
    padding: 0;
    border-top: 0;
    background: #111418;
    color: #eef4fb;
}

.site-footer a {
    color: inherit;
    text-decoration: none;
}

.site-footer .logo__wording strong {
    color: white;
}

.site-footer .logo__wording span {
    color: rgba(226, 236, 248, 0.72);
}

.logo--footer {
    margin: 0;
}

/* Footer Primary */
.site-footer__primary {
    background:
        radial-gradient(circle at top right, rgba(127, 196, 255, 0.08), transparent 26%),
        #1d2025;
}

.site-footer__primary-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 3rem;
    padding: 3.4rem 0 3.1rem;
}

.footer-kicker {
    display: inline-block;
    margin-bottom: 0.8rem;
    color: #8fd3f2;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

/* Footer Newsletter */
.footer-newsletter {
    display: grid;
    align-content: start;
    gap: 1rem;
}

.footer-newsletter h2,
.footer-posts__header h2 {
    margin: 0;
    color: white;
    font-size: clamp(2rem, 2.6vw, 3rem);
    line-height: 1.1;
}

.footer-newsletter p {
    max-width: 34rem;
    margin: 0;
    color: rgba(226, 236, 248, 0.78);
    font-size: 1rem;
    line-height: 1.75;
}

.footer-newsletter__form {
    margin-top: 0.35rem;
}

.footer-newsletter__honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.footer-newsletter__field-group {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: min(100%, 34rem);
    padding: 0.4rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.footer-newsletter__field-group input {
    flex: 1;
    min-width: 0;
    padding: 0.92rem 1.15rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: white;
    font: inherit;
    box-shadow: none;
}

.footer-newsletter__field-group input::placeholder {
    color: rgba(226, 236, 248, 0.56);
}

.footer-newsletter__field-group input:focus {
    outline: none;
    box-shadow: none;
}

.footer-newsletter__field-group button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0.92rem 1.35rem;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(180deg, #4da8ff, #2d79c5);
    color: white;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.footer-newsletter__field-group button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(45, 121, 197, 0.28);
    filter: brightness(1.04);
}

.footer-newsletter__field-group:focus-within {
    border-color: rgba(143, 211, 242, 0.42);
    box-shadow: 0 0 0 4px rgba(127, 196, 255, 0.08);
}

.footer-newsletter__actions {
    display: grid;
    gap: 0.9rem;
    margin-top: 0.3rem;
}

.footer-text-link {
    width: fit-content;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.02rem;
    font-weight: 500;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-text-link:hover {
    color: white;
    transform: translateX(3px);
}

.footer-text-link--strong {
    color: white;
    font-weight: 700;
}

.footer-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Footer Posts */
.footer-posts {
    display: grid;
    align-content: start;
    gap: 1.4rem;
}

.footer-posts__header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1.5rem;
}

.footer-posts__controls {
    display: flex;
    gap: 0.75rem;
}

.footer-posts__control {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 10px;
    background: transparent;
    color: white;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.footer-posts__control:hover {
    background: rgba(127, 196, 255, 0.14);
    border-color: rgba(143, 211, 242, 0.44);
    transform: translateY(-1px);
}

.footer-posts__viewport {
    overflow: hidden;
}

.footer-posts__track {
    display: flex;
    transition: transform 0.34s ease;
    will-change: transform;
}

.footer-post {
    min-width: 100%;
    display: grid;
    grid-template-columns: 5.6rem minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
    padding: 1.05rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-post__image {
    display: block;
    width: 5.6rem;
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(5, 8, 12, 0.24);
}

.footer-post__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.footer-post__content {
    min-width: 0;
}

.footer-post__meta {
    display: inline-block;
    margin-bottom: 0.45rem;
    color: #8fd3f2;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-post__content h3 {
    margin: 0;
    font-size: 1.35rem;
    line-height: 1.18;
}

.footer-post__content h3 a {
    transition: color 0.2s ease;
}

.footer-post__content h3 a:hover {
    color: #8fd3f2;
}

.footer-post__content p {
    margin: 0.35rem 0 0;
    color: rgba(226, 236, 248, 0.72);
    font-size: 0.98rem;
    line-height: 1.6;
}

/* Footer Main */
.site-footer__main {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    background: #13171b;
}

.site-footer__main-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 0.8fr));
    gap: 2rem;
    padding: 2.5rem 0 2.2rem;
}

.footer-brand,
.footer-nav,
.footer-contact {
    display: grid;
    align-content: start;
    gap: 0.85rem;
}

.footer-brand__text,
.footer-brand__meta {
    margin: 0;
    color: rgba(226, 236, 248, 0.74);
    font-size: 0.97rem;
    line-height: 1.72;
}

.footer-nav h3,
.footer-contact h3 {
    margin: 0;
    color: white;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-nav a,
.footer-contact > a {
    color: rgba(226, 236, 248, 0.8);
    font-size: 0.98rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-nav a:hover,
.footer-contact > a:hover {
    color: white;
    transform: translateX(3px);
}

.footer-contact__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    margin-top: 0.35rem;
    padding: 0.8rem 1.2rem;
    border-radius: 999px;
    background: #2d79c5;
    color: white;
    font-weight: 700;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.footer-contact__cta:hover {
    background: #1f69b2;
    transform: translateY(-1px);
}

/* Footer Bottom */
.site-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    background: #0f1215;
}

.site-footer__bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 0;
}

.site-footer__bottom-inner p {
    margin: 0;
    color: rgba(226, 236, 248, 0.74);
    font-size: 0.94rem;
}

.footer-socials {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.footer-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.footer-social:hover {
    background: rgba(143, 211, 242, 0.18);
    transform: translateY(-1px);
}

.footer-social svg {
    width: 1.15rem;
    height: 1.15rem;
}

/* Footer Responsive */
@media (max-width: 1080px) {
    .site-footer__primary-inner,
    .site-footer__main-inner {
        grid-template-columns: 1fr;
    }

    .site-footer__main-inner {
        gap: 1.8rem;
    }
}

@media (max-width: 720px) {
    .site-footer {
        margin-top: 3rem;
    }

    .site-footer__primary-inner {
        gap: 2.2rem;
        padding: 2.8rem 0 2.5rem;
    }

    .footer-newsletter h2,
    .footer-posts__header h2 {
        font-size: clamp(1.7rem, 7vw, 2.25rem);
    }

    .footer-newsletter__field-group {
        width: 100%;
        gap: 0.45rem;
        padding: 0.34rem;
    }

    .footer-newsletter__field-group input {
        padding: 0.82rem 0.95rem;
    }

    .footer-newsletter__field-group button {
        padding: 0.82rem 1.05rem;
        font-size: 0.94rem;
    }

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

    .footer-post {
        grid-template-columns: 4.8rem minmax(0, 1fr);
        gap: 0.85rem;
    }

    .footer-post__image {
        width: 4.8rem;
    }

    .footer-post__content h3 {
        font-size: 1.1rem;
    }

    .site-footer__bottom-inner {
        align-items: start;
        flex-direction: column;
    }
}


/* Footer theme refresh */
.site-footer {
    background: #031629;
    color: #ffffff;
}

.site-footer__primary {
    background: #031629;
}

.site-footer__main {
    background: #071c31;
    border-top-color: rgba(255, 255, 255, 0.09);
}

.site-footer__bottom {
    background: #031629;
    border-top-color: rgba(255, 255, 255, 0.09);
}

.footer-kicker,
.footer-post__meta {
    color: #f78b08;
}

.footer-newsletter h2,
.footer-posts__header h2 {
    font-size: 2.1rem;
    line-height: 1.18;
}

.footer-newsletter__field-group {
    border-color: rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
}

.footer-newsletter__field-group input {
    border-radius: 8px;
}

.footer-newsletter__field-group button,
.footer-contact__cta {
    border-radius: 8px;
    background: #f78b08;
    color: #101820;
    font-weight: 800;
}

.footer-newsletter__field-group button:hover,
.footer-contact__cta:hover {
    background: #e07d05;
    color: #101820;
    box-shadow: 0 12px 24px rgba(247, 139, 8, 0.18);
}

.footer-newsletter__field-group:focus-within {
    border-color: rgba(247, 139, 8, 0.58);
    box-shadow: 0 0 0 4px rgba(247, 139, 8, 0.1);
}

.footer-posts__control {
    border-radius: 8px;
}

.footer-posts__control:hover {
    background: rgba(247, 139, 8, 0.14);
    border-color: rgba(247, 139, 8, 0.5);
}

.footer-post__content h3 a:hover,
.footer-nav a:hover,
.footer-contact > a:hover,
.footer-text-link:hover {
    color: #f78b08;
}

.logo--footer {
    width: fit-content;
    padding: 0.55rem 0.7rem;
    border-radius: 8px;
    background: #ffffff;
}

.footer-social {
    border-radius: 8px;
}

.footer-social:hover {
    background: rgba(247, 139, 8, 0.18);
    color: #f78b08;
}
