/* ========================================
   FOOTER
======================================== */

.jrrs-footer {
    width: calc(100% - (var(--jrrs-container-padding) * 2));
    margin: 24px auto 0;
    overflow: hidden;

    color: var(--jrrs-color-footer-text);
    background-color: var(--jrrs-color-footer-background);
    border-radius:
        var(--jrrs-radius-footer)
        var(--jrrs-radius-footer)
        0
        0;
}

.jrrs-footer-container {
    width: 100%;
    max-width: 1240px;
    margin-inline: auto;
    padding-inline: clamp(24px, 5vw, 60px);
}


/* ========================================
   CTA
======================================== */

.jrrs-footer-cta-container {
    padding: clamp(24px, 4vw, 48px)
             clamp(20px, 5vw, 60px)
             0;
}

.jrrs-footer-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;

    width: 100%;
    max-width: 1120px;
    margin-inline: auto;
    padding: clamp(28px, 4vw, 45px);

    background:
        linear-gradient(
            135deg,
            var(--jrrs-color-footer-cta),
            var(--jrrs-color-footer-cta-accent)
        );

    border: 1px solid var(--jrrs-color-footer-border);
    border-radius: var(--jrrs-radius-footer-cta);
    box-shadow: var(--jrrs-shadow-footer-cta);
}

.jrrs-footer-cta__content {
    max-width: 720px;
}

.jrrs-footer-cta__eyebrow {
    display: block;
    margin-bottom: 10px;

    color: var(--jrrs-color-footer-text);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.jrrs-footer-cta__title {
    margin: 0;

    color: var(--jrrs-color-footer-heading);
    font-size: clamp(1.6rem, 3vw, 2.35rem);
    font-weight: 700;
    line-height: 1.25;
}

.jrrs-footer-cta__description {
    margin: 12px 0 0;

    color: var(--jrrs-color-footer-text);
    font-size: 0.95rem;
    line-height: 1.65;
}

.jrrs-footer-cta__button {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 10px;

    min-height: 50px;
    padding: 13px 24px;

    color: var(--jrrs-color-footer-background);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;

    background-color: var(--jrrs-color-footer-heading);
    border: 0;
    border-radius: var(--jrrs-radius-pill);

    transition:
        color 200ms ease,
        box-shadow 200ms ease,
        transform 200ms ease;
}

.jrrs-footer-cta__button svg {
    width: 20px;
    height: 20px;

    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;

    transition: transform 200ms ease;
}

.jrrs-footer-cta__button:hover {
    color: var(--jrrs-color-primary);
    box-shadow: var(--jrrs-shadow-footer-cta);
    transform: translateY(-2px);
}

.jrrs-footer-cta__button:hover svg {
    transform: translateX(4px);
}


/* ========================================
   MAIN FOOTER
======================================== */

.jrrs-footer-main {
    padding: clamp(55px, 7vw, 85px) 0;
}

.jrrs-footer-grid {
    display: grid;
    grid-template-columns:
        minmax(260px, 1.45fr)
        minmax(140px, 0.7fr)
        minmax(160px, 0.8fr)
        minmax(250px, 1.15fr);
    gap: clamp(35px, 5vw, 70px);
}


/* Brand */

.jrrs-footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;

    color: var(--jrrs-color-footer-heading);
    text-decoration: none;
}

.jrrs-footer-brand__logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 66px;
    height: 50px;
    padding: 5px;

    background-color: var(--jrrs-color-footer-logo-background);
    border-radius: 12px;
}

.jrrs-footer-brand__logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.jrrs-footer-brand__name {
    font-size: 1.3rem;
    font-weight: 700;
}

.jrrs-footer-company__description {
    max-width: 360px;
    margin: 22px 0 0;

    color: var(--jrrs-color-footer-muted);
    font-size: 0.9rem;
    line-height: 1.75;
}


/* Column headings */

.jrrs-footer-column__title {
    position: relative;

    margin: 0 0 24px;
    padding-bottom: 13px;

    color: var(--jrrs-color-footer-heading);
    font-size: 1.05rem;
    font-weight: 600;
}

.jrrs-footer-column__title::after {
    position: absolute;
    bottom: 0;
    left: 0;

    width: 35px;
    height: 2px;

    content: "";

    background-color: var(--jrrs-color-footer-cta-accent);
    border-radius: var(--jrrs-radius-pill);
}


/* Footer links */

.jrrs-footer-links {
    display: grid;
    gap: 14px;

    margin: 0;
    padding: 0;
    list-style: none;
}

.jrrs-footer-links a {
    position: relative;

    display: inline-flex;
    align-items: center;

    color: var(--jrrs-color-footer-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    text-decoration: none;

    transition:
        color 200ms ease,
        transform 200ms ease;
}

.jrrs-footer-links a::before {
    width: 0;
    margin-right: 0;

    content: "›";

    color: var(--jrrs-color-footer-heading);
    opacity: 0;

    transition:
        width 200ms ease,
        margin-right 200ms ease,
        opacity 200ms ease;
}

.jrrs-footer-links a:hover {
    color: var(--jrrs-color-footer-heading);
    transform: translateX(3px);
}

.jrrs-footer-links a:hover::before {
    width: 8px;
    margin-right: 4px;
    opacity: 1;
}


/* Contact information */

.jrrs-footer-contact {
    display: grid;
    gap: 18px;

    margin: 0;
    padding: 0;
    list-style: none;
}

.jrrs-footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.jrrs-footer-contact__icon {
    display: inline-flex;
    flex: 0 0 36px;
    align-items: center;
    justify-content: center;

    width: 36px;
    height: 36px;

    color: var(--jrrs-color-footer-heading);
    background-color: var(--jrrs-color-footer-icon);
    border-radius: var(--jrrs-radius-control);
}

.jrrs-footer-contact__icon svg {
    width: 18px;
    height: 18px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.jrrs-footer-contact address,
.jrrs-footer-contact a {
    padding-top: 6px;

    color: var(--jrrs-color-footer-muted);
    font-size: 0.88rem;
    font-style: normal;
    line-height: 1.6;
    text-decoration: none;
    overflow-wrap: anywhere;

    transition: color 200ms ease;
}

.jrrs-footer-contact a:hover {
    color: var(--jrrs-color-footer-heading);
}


/* ========================================
   BOTTOM FOOTER
======================================== */

.jrrs-footer-bottom {
    background-color: var(--jrrs-color-footer-bottom);
    border-top: 1px solid var(--jrrs-color-footer-border);
}

.jrrs-footer-bottom__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;

    min-height: 72px;
    padding-top: 18px;
    padding-bottom: 18px;
}

.jrrs-footer-copyright {
    margin: 0;

    color: var(--jrrs-color-footer-muted);
    font-size: 0.82rem;
    line-height: 1.5;
}

.jrrs-footer-legal {
    display: flex;
    align-items: center;
    gap: 24px;
}

.jrrs-footer-legal a {
    color: var(--jrrs-color-footer-muted);
    font-size: 0.82rem;
    text-decoration: none;

    transition: color 200ms ease;
}

.jrrs-footer-legal a:hover {
    color: var(--jrrs-color-footer-heading);
}


/* General footer focus */

.jrrs-footer a:focus-visible {
    outline: 2px solid var(--jrrs-color-footer-heading);
    outline-offset: 4px;
}


/* ========================================
   TABLET
======================================== */

@media (min-width: 768px) and (max-width: 1023px) {
    .jrrs-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 50px;
    }

    .jrrs-footer-cta {
        gap: 30px;
    }

    .jrrs-footer-cta__content {
        max-width: 520px;
    }
}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 767px) {
    .jrrs-footer {
        margin-top: 16px;
    }

    .jrrs-footer-cta-container {
        padding: 18px 16px 0;
    }

    .jrrs-footer-cta {
        flex-direction: column;
        align-items: flex-start;
        gap: 25px;

        padding: 28px 22px;
    }

    .jrrs-footer-cta__title {
        font-size: 1.65rem;
    }

    .jrrs-footer-cta__button {
        width: 100%;
    }

    .jrrs-footer-main {
        padding: 55px 0;
    }

    .jrrs-footer-container {
        padding-inline: 24px;
    }

    .jrrs-footer-grid {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .jrrs-footer-company__description {
        max-width: none;
    }

    .jrrs-footer-bottom__inner {
        flex-direction: column;
        justify-content: center;
        gap: 12px;

        padding-top: 22px;
        padding-bottom: 22px;
        text-align: center;
    }

    .jrrs-footer-legal {
        justify-content: center;
        gap: 18px;
    }
}

.jrrs-footer-language {
    display: grid;
    gap: 7px;
    max-width: 260px;
    margin-top: 24px;
}

.jrrs-footer-language label {
    color: var(--jrrs-color-footer-heading);
    font-size: 0.8rem;
    font-weight: 600;
}

.jrrs-footer-language select {
    width: 100%;
    min-height: 42px;
    padding: 8px 38px 8px 12px;
    color: var(--jrrs-color-footer-text);
    border: 1px solid var(--jrrs-color-footer-border);
    border-radius: var(--jrrs-radius-md);
    background: var(--jrrs-color-footer-bottom);
}

.jrrs-footer-language small {
    color: var(--jrrs-color-footer-muted);
    font-size: 0.7rem;
    line-height: 1.4;
}
