.site-footer {
    margin-top: clamp(4rem, 10vw, 8rem);
    color: var(--header-muted);
    background: var(--header-surface);
    border-top: 1px solid var(--header-border);
}

.footer-container {
    width: min(100% - 2rem, 1400px);
    margin-inline: auto;
}

.footer-newsletter {
    padding: clamp(3.5rem, 7vw, 6.5rem) 0;
    background: var(--header-text);
    color: var(--header-bg);
}

.newsletter-layout {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(320px, .7fr);
    align-items: end;
    gap: clamp(2rem, 7vw, 8rem);
}

.footer-kicker {
    margin: 0 0 .75rem;
    color: #786440;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.newsletter-layout h2 {
    max-width: 700px;
    margin: 0;
    font-family: var(--header-display);
    font-size: clamp(2.5rem, 5vw, 5rem);
    font-weight: 500;
    letter-spacing: -.035em;
    line-height: .95;
}

.newsletter-form label {
    display: block;
    margin-bottom: .75rem;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.newsletter-field {
    display: flex;
    border-bottom: 1px solid #8b8b86;
}

.newsletter-field input {
    min-width: 0;
    flex: 1;
    padding: 1rem 0;
    border: 0;
    outline: 0;
    color: var(--header-bg);
    background: transparent;
    font: inherit;
}

.newsletter-field input::placeholder { color: #767672; }

.newsletter-field:focus-within { border-color: var(--header-accent); }

.newsletter-field button {
    padding: .75rem 0 .75rem 1.25rem;
    border: 0;
    color: var(--header-bg);
    background: transparent;
    font: 600 .72rem var(--header-body);
    letter-spacing: .1em;
    text-transform: uppercase;
    cursor: pointer;
}

.newsletter-field button:hover { color: #786440; }

.newsletter-form > p {
    margin: .75rem 0 0;
    color: #666662;
    font-size: .68rem;
    line-height: 1.5;
}

.newsletter-form > p a { text-underline-offset: 3px; }

.footer-main {
    display: grid;
    grid-template-columns: minmax(220px, 1.15fr) minmax(300px, 1fr) minmax(220px, .65fr);
    gap: clamp(2.5rem, 6vw, 7rem);
    padding: clamp(4rem, 7vw, 7rem) 0;
}

.footer-logo {
    display: grid;
    width: 105px;
    height: 110px;
    place-items: center;
    overflow: hidden;
}

.footer-logo img {
    display: block;
    width: 100px;
    height: 105px;
    object-fit: contain;
    filter: invert(1);
}

.footer-brand > p {
    max-width: 300px;
    margin: 1.25rem 0 1.5rem;
    font-family: var(--header-display);
    font-size: 1.35rem;
    line-height: 1.35;
}

.footer-socials {
    display: flex;
    gap: .5rem;
}

.footer-socials a {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid var(--header-border);
    border-radius: 50%;
    transition: color 200ms ease, border-color 200ms ease, background 200ms ease;
}

.footer-socials a:hover,
.footer-socials a:focus-visible {
    color: var(--header-bg);
    border-color: var(--header-accent);
    background: var(--header-accent);
}

.footer-socials svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap: 2rem;
}

.footer-links div,
.footer-contact {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: .9rem;
}

.footer-main h3 {
    margin: 0 0 .55rem;
    color: var(--header-text);
    font-size: .72rem;
    font-style: normal;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.footer-links a,
.footer-contact a {
    text-decoration: none;
    transition: color 200ms ease;
}

.footer-links a:hover,
.footer-contact a:hover { color: var(--header-text); }

.footer-contact {
    margin: 0;
    font-size: .85rem;
    font-style: normal;
    line-height: 1.7;
}

.footer-contact p { margin: 0 0 .35rem; }

.footer-bottom {
    display: flex;
    min-height: 70px;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid var(--header-border);
    font-size: .68rem;
    letter-spacing: .04em;
}

.footer-bottom p { margin: 0; }

.developer-mark a,
.developer-mark span {
    color: var(--header-text);
    text-decoration: none;
}

.developer-mark a:hover { color: var(--header-accent); }

@media (max-width: 900px) {
    .newsletter-layout,
    .footer-main {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
    .footer-container { width: min(100% - 2.5rem, 1400px); }

    .newsletter-layout,
    .footer-main { grid-template-columns: 1fr; }

    .newsletter-field { align-items: stretch; }

    .footer-brand { grid-column: auto; }

    .footer-links {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        padding-block: 1.25rem;
    }
}

@media (max-width: 390px) {
    .newsletter-field { flex-direction: column; }

    .newsletter-field button {
        min-height: 44px;
        padding-left: 0;
        text-align: left;
    }

    .footer-links { grid-template-columns: 1fr; }
}
