:root {
    --footer-bg: #ffffff;
    --footer-text: #111111;
    --footer-dark: #173d2b;
    --footer-green: #2f6f49;
    --footer-green-soft: #edf5ef;
    --footer-muted: #666666;
    --footer-line: #e5e5e5;
}


/* =========================
   BASE
========================= */

.site-footer,
.site-footer * {
    box-sizing: border-box;
}

.site-footer {
    width: 100%;
    padding: 0;
    overflow: hidden;
    background: var(--footer-bg);
    color: var(--footer-text);
    content-visibility: auto;
    contain-intrinsic-size: 950px;
}

.site-footer__container {
    width: min(1440px, calc(100% - 120px));
    margin-right: auto;
    margin-left: auto;
}

.site-footer__eyebrow,
.site-footer__newsletter-label {
    display: block;
    color: var(--footer-green);
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}


/* =========================
   HERO
========================= */

.site-footer__hero {
    padding: 120px 0 90px;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
    align-items: end;
    gap: 110px;
    border-bottom: 1px solid var(--footer-line);
}

.site-footer__hero-copy h2 {
    max-width: 890px;
    margin: 24px 0 0;
    color: var(--footer-text);
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(52px, 5.8vw, 92px);
    font-weight: 300;
    line-height: 0.96;
    letter-spacing: -5px;
}

.site-footer__hero-copy p {
    max-width: 620px;
    margin: 30px 0 0;
    color: var(--footer-muted);
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 300;
    line-height: 1.82;
}


/* =========================
   NEWSLETTER
========================= */

.site-footer__newsletter {
    min-width: 0;
}

.site-footer__newsletter-label {
    margin-bottom: 18px;
}

.site-footer__form {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    border-bottom: 1px solid #bfc7c1;
}

.site-footer__form:focus-within {
    border-color: var(--footer-green);
}

.site-footer__form input {
    width: 100%;
    height: 68px;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--footer-text);
    caret-color: var(--footer-green);
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 300;
}

.site-footer__form input::placeholder {
    color: #8b8b8b;
}

.site-footer__form button {
    min-width: 150px;
    padding: 0 0 0 22px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
    border: 0;
    background: transparent;
    color: var(--footer-dark);
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}

.site-footer__form button:focus-visible {
    outline: 2px solid var(--footer-green);
    outline-offset: 4px;
}

.site-footer__form-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--footer-dark);
    color: #ffffff;
    font-size: 15px;
    transition:
        transform 0.28s ease,
        background-color 0.28s ease,
        color 0.28s ease;
}

.site-footer__newsletter > p {
    margin: 15px 0 0;
    color: #8a8a8a;
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 300;
    line-height: 1.6;
}


/* =========================
   NAVIGATION
========================= */

.site-footer__navigation {
    padding: 78px 0 70px;
    display: grid;
    grid-template-columns: minmax(280px, 1.6fr) repeat(3, minmax(150px, 0.7fr));
    gap: 70px;
    border-bottom: 1px solid var(--footer-line);
}

.site-footer__identity {
    max-width: 420px;
}

.site-footer__brand {
    display: inline-flex;
    align-items: center;
    line-height: 0;
    text-decoration: none;
}

.site-footer__brand-image {
    width: auto;
    height: 68px;
    max-width: 195px;
    display: block;
    object-fit: contain;
    filter: none;
    opacity: 1;
}

.site-footer__identity > p {
    max-width: 390px;
    margin: 28px 0 0;
    color: var(--footer-muted);
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 300;
    line-height: 1.78;
}

.site-footer__language {
    margin-top: 30px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--footer-green);
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 500;
}

.site-footer__language svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.site-footer__column h3 {
    margin: 0 0 25px;
    color: var(--footer-green);
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.site-footer__column nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
}

.site-footer__column a {
    color: #555555;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.55;
    transition:
        color 0.22s ease,
        transform 0.22s ease;
}

.site-footer__column a.active {
    color: var(--footer-text);
}

.site-footer__column a:focus-visible,
.site-footer__socials a:focus-visible,
.site-footer__legal a:focus-visible,
.site-footer__brand:focus-visible {
    outline: 2px solid var(--footer-green);
    outline-offset: 5px;
}


/* =========================
   UTILITY
========================= */

.site-footer__utility {
    padding: 35px 0 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 45px;
}

.site-footer__socials {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-footer__socials a {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid var(--footer-line);
    border-radius: 50%;
    color: #555555;
    text-decoration: none;
    transition:
        background-color 0.22s ease,
        border-color 0.22s ease,
        color 0.22s ease,
        transform 0.22s ease;
}

.site-footer__socials svg {
    width: 18px;
    height: 18px;
}

.site-footer__legal {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 35px;
}

.site-footer__legal p {
    margin: 0;
    color: #888888;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 300;
}

.site-footer__legal nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 24px;
}

.site-footer__legal a {
    color: #777777;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 300;
    transition: color 0.22s ease;
}


/* =========================
   HOVER
========================= */

@media (hover: hover) and (pointer: fine) {
    .site-footer__form button:hover .site-footer__form-icon {
        background: var(--footer-green);
        color: #ffffff;
        transform: rotate(45deg);
    }

    .site-footer__column a:hover {
        color: var(--footer-text);
        transform: translateX(3px);
    }

    .site-footer__socials a:hover {
        border-color: var(--footer-green);
        background: var(--footer-green);
        color: #ffffff;
        transform: translateY(-2px);
    }

    .site-footer__legal a:hover {
        color: var(--footer-text);
    }

    .site-footer__brand:hover .site-footer__brand-image {
        opacity: 0.78;
    }
}


/* =========================
   HELPERS
========================= */

.site-footer__sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1150px) {
    .site-footer__container {
        width: min(100% - 64px, 1440px);
    }

    .site-footer__hero {
        grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
        gap: 65px;
    }

    .site-footer__navigation {
        grid-template-columns: minmax(250px, 1.3fr) repeat(3, minmax(130px, 0.7fr));
        gap: 45px;
    }
}

@media (max-width: 900px) {
    .site-footer__container {
        width: calc(100% - 40px);
    }

    .site-footer__hero {
        grid-template-columns: 1fr;
        gap: 55px;
    }

    .site-footer__navigation {
        grid-template-columns: 1.3fr 1fr 1fr;
    }

    .site-footer__identity {
        grid-column: 1 / -1;
        max-width: 540px;
    }

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

    .site-footer__legal {
        width: 100%;
        align-items: flex-start;
        justify-content: space-between;
    }
}

@media (max-width: 650px) {
    .site-footer__container {
        width: calc(100% - 28px);
    }

    .site-footer__hero {
        padding: 82px 0 68px;
    }

    .site-footer__hero-copy h2 {
        font-size: 43px;
        letter-spacing: -2.2px;
    }

    .site-footer__hero-copy p {
        font-size: 14px;
    }

    .site-footer__form {
        grid-template-columns: 1fr;
        border-bottom: 0;
    }

    .site-footer__form input {
        height: 58px;
        border-bottom: 1px solid #c9c9c9;
    }

    .site-footer__form button {
        min-height: 58px;
        padding: 0;
        justify-content: space-between;
        border-bottom: 1px solid var(--footer-line);
    }

    .site-footer__navigation {
        padding: 62px 0;
        grid-template-columns: 1fr 1fr;
        gap: 48px 28px;
    }

    .site-footer__identity {
        grid-column: 1 / -1;
    }

    .site-footer__brand-image {
        height: 58px;
        max-width: 170px;
    }

    .site-footer__utility {
        padding: 30px 0 36px;
    }

    .site-footer__legal {
        flex-direction: column;
        gap: 22px;
    }

    .site-footer__legal nav {
        justify-content: flex-start;
        gap: 15px 20px;
    }
}

@media (max-width: 420px) {
    .site-footer__hero-copy h2 {
        font-size: 38px;
    }

    .site-footer__navigation {
        grid-template-columns: 1fr;
    }

    .site-footer__identity {
        grid-column: auto;
    }

    .site-footer__socials {
        gap: 9px;
    }

    .site-footer__socials a {
        width: 40px;
        height: 40px;
    }
}


/* =========================
   REDUCED MOTION
========================= */

@media (prefers-reduced-motion: reduce) {
    .site-footer *,
    .site-footer *::before,
    .site-footer *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
