/* ================================
   Footer
================================ */

.site-footer {
    padding: 74px 0 22px;
    margin-top: 40px;
    background:
        radial-gradient(circle at 10% 20%, rgba(20, 184, 166, 0.18), transparent 46%),
        linear-gradient(150deg, #0f3a3b, #0a262d 65%);
    color: #d6e5ea;
}

.footer-newsletter {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 20px;
    margin-bottom: 26px;
    padding: 22px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-newsletter h3,
.footer-newsletter p {
    color: #ffffff;
}

.newsletter-form {
    align-items: end;
}

.newsletter-form input {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    padding: 11px 12px;
    font: inherit;
    color: #ffffff;
    font-weight: 700;
    caret-color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.newsletter-form label {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 700;
    font-size: 0.9rem;
    margin-top: 4px;
}

.newsletter-form input::placeholder {
    color: #ffffff;
    font-weight: 700;
}

.newsletter-success-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 1000;
    padding: 16px 24px;
    border-radius: 12px;
    background: #14835c;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.01em;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
    opacity: 0;
    transform: translate(-50%, -46%);
    pointer-events: none;
    transition: opacity 0.24s ease, transform 0.24s ease;
}

.newsletter-success-popup.is-visible {
    opacity: 1;
    transform: translate(-50%, -50%);
    animation: newsletter-popup-fade 5s ease forwards;
}

@keyframes newsletter-popup-fade {
    0%, 80% {
        opacity: 1;
        transform: translate(-50%, -50%);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -46%);
    }
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
    gap: clamp(20px, 3vw, 34px);
    margin-bottom: 30px;
}

.footer-logo {
    height: 68px;
    width: auto;
    margin-bottom: 12px;
}

.site-footer h4 {
    margin-bottom: 12px;
    color: #ffffff;
    font-size: 1rem;
}

.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer li {
    margin-bottom: 8px;
}

.site-footer a {
    color: #d6e5ea;
    text-decoration: none;
}

.site-footer a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    padding-top: 18px;
    font-size: 0.92rem;
    color: #bdd2d8;
}

@media (max-width: 1024px) {
    .footer-newsletter,
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .footer-newsletter,
    .footer-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .newsletter-success-popup {
        width: min(90vw, 360px);
        padding: 14px 18px;
        text-align: center;
    }
}
