/* =========================================
   FM Collections Final Footer
   Reference-style Dark Layout
========================================= */

.site-footer {
    width: 100%;
    padding: 38px 0 0;
    background: #232323;
    color: #ffffff;
}

.footer-container {
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 15px;
}

/* =========================================
   Main Footer Panel
========================================= */

.footer-main-panel {
    display: grid;
    grid-template-columns:
        minmax(250px, 1.28fr)
        minmax(155px, 0.68fr)
        minmax(145px, 0.62fr)
        minmax(165px, 0.72fr)
        minmax(220px, 0.85fr);
    gap: 36px;
    align-items: start;

    padding: 38px 40px;

    border: 1px solid #333333;
    border-radius: 11px;

    background: #050505;
}

/* =========================================
   Brand Column
========================================= */

.footer-brand {
    min-width: 0;
}

.footer-brand-logo {
    display: inline-flex;
    align-items: center;

    margin-bottom: 24px;

    color: #ffffff;
    text-decoration: none;
}

.footer-brand-name {
    color: #ffffff;

    font-size: 29px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.7px;
}

.footer-brand-description {
    max-width: 285px;

    margin: 0 0 28px;

    color: #dedede;

    font-size: 13px;
    font-weight: 500;
    line-height: 1.85;
}

/* =========================================
   Payment Methods
========================================= */

.footer-payment-methods {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;

    max-width: 290px;

    padding-top: 19px;

    border-top: 1px solid #383838;
}

.footer-payment-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: #f2f2f2;
}

.footer-payment-item i {
    font-size: 25px;
}

.footer-payment-text {
    font-size: 8px;
    font-weight: 850;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

/* =========================================
   Footer Link Columns
========================================= */

.footer-links-column {
    min-width: 0;
}

.footer-links-column h2 {
    margin: 0 0 23px;

    color: #ffffff;

    font-size: 16px;
    font-weight: 850;
    line-height: 1.3;
}

.footer-links-column ul {
    display: grid;
    gap: 15px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.footer-links-column li {
    margin: 0;
}

.footer-links-column a {
    display: inline-flex;

    color: #eeeeee;

    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;

    text-decoration: none;

    transition:
        color 0.22s ease,
        transform 0.22s ease;
}

.footer-links-column a:hover {
    color: #ffffff;
    transform: translateX(3px);
}

/* =========================================
   Rating Column
========================================= */

.footer-rating {
    min-width: 0;

    padding-left: 38px;

    border-left: 1px solid #393939;
}

.footer-rating-number {
    display: flex;
    align-items: flex-start;

    margin-bottom: 14px;
}

.footer-rating-number strong {
    color: #ffffff;

    font-size: 44px;
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -1.5px;
}

.footer-rating-number span {
    margin-top: 4px;

    color: #ffffff;

    font-size: 16px;
    font-weight: 850;
}

.footer-rating-stars {
    display: inline-flex;
    align-items: center;
    gap: 4px;

    margin-bottom: 14px;

    color: #ffffff;

    font-size: 16px;
}

.footer-rating-text {
    max-width: 210px;

    margin: 0 0 21px;

    color: #e1e1e1;

    font-size: 11px;
    font-weight: 650;
    line-height: 1.6;
}

.footer-review-button {
    min-height: 43px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 20px;

    border: 1px solid #777777;
    border-radius: 999px;

    background: transparent;
    color: #ffffff;

    font-size: 10px;
    font-weight: 850;

    text-decoration: none;

    transition:
        background 0.22s ease,
        color 0.22s ease,
        border-color 0.22s ease,
        transform 0.22s ease;
}

.footer-review-button:hover {
    border-color: #ffffff;
    background: #ffffff;
    color: #111111;

    transform: translateY(-1px);
}

/* =========================================
   Bottom Footer Row
========================================= */

.footer-bottom {
    min-height: 78px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding: 18px 0;
}

.footer-copyright {
    margin: 0;

    color: #eeeeee;

    font-size: 11px;
    font-weight: 500;
    line-height: 1.5;
}

.footer-copyright strong {
    color: #ffffff;
    font-weight: 850;
}

/* =========================================
   Social Icons
========================================= */

.footer-social-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-social-links a {
    width: 35px;
    height: 35px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #6b6b6b;
    border-radius: 50%;

    background: transparent;
    color: #ffffff;

    font-size: 13px;

    text-decoration: none;

    transition:
        background 0.22s ease,
        color 0.22s ease,
        border-color 0.22s ease,
        transform 0.22s ease;
}

.footer-social-links a:hover {
    border-color: #ffffff;

    background: #ffffff;
    color: #111111;

    transform: translateY(-2px);
}

/* =========================================
   Screen Reader Only
========================================= */

.footer-sr-only {
    position: absolute;

    width: 1px;
    height: 1px;

    padding: 0;
    margin: -1px;

    overflow: hidden;

    clip: rect(0, 0, 0, 0);
    white-space: nowrap;

    border: 0;
}

/* =========================================
   Medium Desktop
========================================= */

@media (max-width: 1150px) {

    .footer-main-panel {
        grid-template-columns:
            minmax(240px, 1.15fr)
            repeat(3, minmax(140px, 0.7fr));

        gap: 30px;
    }

    .footer-rating {
        grid-column: 1 / -1;

        display: grid;
        grid-template-columns:
            auto
            auto
            minmax(180px, 1fr)
            auto;

        align-items: center;
        gap: 22px;

        padding: 25px 0 0;

        border-top: 1px solid #393939;
        border-left: 0;
    }

    .footer-rating-number,
    .footer-rating-stars,
    .footer-rating-text {
        margin-bottom: 0;
    }

    .footer-rating-text {
        max-width: none;
    }
}

/* =========================================
   Tablet
========================================= */

@media (max-width: 850px) {

    .site-footer {
        padding-top: 28px;
    }

    .footer-main-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 30px;

        padding: 32px 28px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-brand-description {
        max-width: 520px;
    }

    .footer-rating {
        grid-template-columns: auto auto;

        gap: 18px 24px;
    }

    .footer-rating-text {
        grid-column: 1 / 2;
    }

    .footer-review-button {
        grid-column: 2 / 3;
        grid-row: 2;

        justify-self: start;
    }
}

/* =========================================
   Mobile
========================================= */

@media (max-width: 576px) {

    .site-footer {
        padding-top: 18px;
    }

    .footer-container {
        padding: 0 10px;
    }

    .footer-main-panel {
        grid-template-columns: 1fr;

        gap: 26px;

        padding: 27px 20px;

        border-radius: 10px;
    }

    .footer-brand {
        grid-column: auto;
    }

    .footer-brand-logo {
        margin-bottom: 17px;
    }

    .footer-brand-name {
        font-size: 24px;
    }

    .footer-brand-description {
        max-width: 100%;

        margin-bottom: 22px;

        font-size: 12px;
        line-height: 1.75;
    }

    .footer-payment-methods {
        max-width: 100%;

        gap: 13px;
    }

    .footer-payment-item i {
        font-size: 23px;
    }

    .footer-links-column h2 {
        margin-bottom: 15px;

        font-size: 16px;
    }

    .footer-links-column ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 12px 18px;
    }

    .footer-links-column a {
        font-size: 11px;
    }

    .footer-rating {
        grid-column: auto;

        grid-template-columns: 1fr;

        gap: 12px;

        padding-top: 23px;

        border-top: 1px solid #393939;
    }

    .footer-rating-number strong {
        font-size: 40px;
    }

    .footer-rating-stars {
        font-size: 15px;
    }

    .footer-rating-text,
    .footer-review-button {
        grid-column: auto;
        grid-row: auto;
    }

    .footer-review-button {
        width: 100%;

        min-height: 46px;
    }

    .footer-bottom {
        min-height: auto;

        align-items: center;
        flex-direction: column;

        gap: 14px;

        padding: 21px 0;

        text-align: center;
    }

    .footer-copyright {
        order: 1;

        font-size: 10px;
    }

    .footer-social-links {
        order: 2;
    }

    .footer-social-links a {
        width: 38px;
        height: 38px;

        font-size: 14px;
    }
}

/* =========================================
   Small Mobile
========================================= */

@media (max-width: 370px) {

    .footer-links-column ul {
        grid-template-columns: 1fr;
    }

    .footer-main-panel {
        padding-right: 17px;
        padding-left: 17px;
    }
}

/* =========================================
   Reduced Motion
========================================= */

@media (prefers-reduced-motion: reduce) {

    .footer-links-column a,
    .footer-review-button,
    .footer-social-links a {
        transition: none;
    }
}