/* =========================================================
   PREMIUM FOOTER
========================================================= */

:root {
    --rf-primary: #111111;
    --rf-secondary: #f58220;
    --rf-accent: #ff9a4d;
    --rf-background: #111111;
    --rf-background-soft: #171717;
    --rf-background-lower: #080808;
    --rf-white: #ffffff;
    --rf-text: #d6d6d6;
    --rf-text-muted: #8f8f8f;
    --rf-border: rgba(255, 255, 255, 0.1);
    --rf-border-strong: rgba(255, 255, 255, 0.18);
    --rf-secondary-soft: rgba(245, 130, 32, 0.08);
    --rf-secondary-border: rgba(245, 130, 32, 0.18);
    --rf-surface: rgba(255, 255, 255, 0.04);
    --rf-surface-hover: rgba(255, 255, 255, 0.07);
    --rf-radius-small: 8px;
    --rf-radius: 14px;
    --rf-radius-large: 20px;
    --rf-radius-round: 999px;
    --rf-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
    --rf-transition: 0.3s ease;
}

.rf-footer,
.rf-footer * {
    box-sizing: border-box;
}

.rf-footer {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, #111111 0%, #151515 55%, #0d0d0d 100%);
    color: var(--rf-text);
}

.rf-footer::before,
.rf-footer::after {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    content: "";
}

.rf-footer::before {
    top: -220px;
    left: -160px;
    width: 440px;
    height: 440px;
    background: rgba(245, 130, 32, 0.08);
}

.rf-footer::after {
    right: -180px;
    bottom: -250px;
    width: 500px;
    height: 500px;
    background: rgba(245, 130, 32, 0.035);
}

.rf-footer a {
    text-decoration: none;
}

.rf-footer-main {
    position: relative;
    z-index: 2;
    padding: 78px 0 42px;
}

.rf-footer-grid {
    display: grid;
    grid-template-columns:
        minmax(260px, 1.35fr)
        minmax(150px, 0.75fr)
        minmax(150px, 0.75fr)
        minmax(260px, 1.15fr);
    gap: 55px;
}

/* Brand */

.rf-footer-logo {
    display: inline-flex;
    align-items: center;
    margin-bottom: 23px;
}

.rf-footer-logo-image {
    display: block;
    width: auto;
    max-width: 145px;
    max-height: 78px;
    object-fit: contain;
}

.rf-footer-description {
    max-width: 340px;
    margin: 0 0 25px;
    color: var(--rf-text);
    font-size: 14px;
    line-height: 1.8;
}

.rf-footer-contact-list {
    display: grid;
    gap: 13px;
}

.rf-footer-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--rf-text);
}

.rf-contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border: 1px solid var(--rf-secondary-border);
    border-radius: 50%;
    background: var(--rf-secondary-soft);
    color: var(--rf-secondary);
    transition:
        color var(--rf-transition),
        background var(--rf-transition),
        border-color var(--rf-transition),
        transform var(--rf-transition);
}

.rf-footer-contact-item:hover .rf-contact-icon {
    border-color: var(--rf-secondary);
    background: var(--rf-secondary);
    color: var(--rf-white);
    transform: translateY(-2px);
}

.rf-footer-contact-item small,
.rf-footer-contact-item strong {
    display: block;
}

.rf-footer-contact-item small {
    margin-bottom: 3px;
    color: var(--rf-text-muted);
    font-size: 11px;
    font-weight: 400;
}

.rf-footer-contact-item strong {
    color: var(--rf-white);
    font-size: 14px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.rf-social-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 25px;
}

.rf-social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--rf-border);
    border-radius: 50%;
    background: var(--rf-surface);
    color: var(--rf-white);
    font-size: 15px;
    transition:
        color var(--rf-transition),
        background var(--rf-transition),
        border-color var(--rf-transition),
        transform var(--rf-transition);
}

.rf-social-links a:hover {
    border-color: var(--rf-secondary);
    background: var(--rf-secondary);
    color: var(--rf-white);
    transform: translateY(-3px);
}

/* Columns and links */

.rf-footer-title {
    position: relative;
    margin: 0 0 25px;
    padding-bottom: 14px;
    color: var(--rf-white);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.rf-footer-title::after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 3px;
    border-radius: var(--rf-radius-round);
    background: var(--rf-secondary);
    content: "";
}

.rf-footer-links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.rf-footer-links li {
    margin: 0;
    padding: 0;
}

.rf-footer-links li + li {
    margin-top: 13px;
}

.rf-footer-links a {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding-left: 16px;
    color: #c8c8c8;
    font-size: 14px;
    line-height: 1.5;
    transition:
        color var(--rf-transition),
        padding-left var(--rf-transition);
}

.rf-footer-links a::before {
    position: absolute;
    left: 0;
    width: 6px;
    height: 6px;
    border: 1px solid var(--rf-secondary);
    border-radius: 50%;
    content: "";
    transition: background var(--rf-transition);
}

.rf-footer-links a:hover {
    padding-left: 21px;
    color: var(--rf-secondary);
}

.rf-footer-links a:hover::before {
    background: var(--rf-secondary);
}

/* Newsletter and support */

.rf-footer-newsletter > p {
    max-width: 330px;
    margin: 0 0 20px;
    color: var(--rf-text);
    font-size: 14px;
    line-height: 1.7;
}

.rf-newsletter-form {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

.rf-newsletter-form input {
    width: 100%;
    height: 54px;
    padding: 0 62px 0 17px;
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius-small);
    outline: none;
    background: rgba(255, 255, 255, 0.06);
    color: var(--rf-white);
    font-size: 13px;
    transition:
        border-color var(--rf-transition),
        background var(--rf-transition);
}

.rf-newsletter-form input::placeholder {
    color: var(--rf-text-muted);
}

.rf-newsletter-form input:focus {
    border-color: var(--rf-secondary);
    background: rgba(255, 255, 255, 0.08);
}

.rf-newsletter-form button {
    position: absolute;
    top: 5px;
    right: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: var(--rf-secondary);
    color: var(--rf-white);
    cursor: pointer;
    transition:
        color var(--rf-transition),
        background var(--rf-transition),
        transform var(--rf-transition);
}

.rf-newsletter-form button:hover {
    background: var(--rf-white);
    color: var(--rf-primary);
    transform: translateX(2px);
}

.rf-support-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius-small);
    background: rgba(255, 255, 255, 0.035);
}

.rf-support-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    border-radius: 50%;
    background: var(--rf-secondary);
    color: var(--rf-white);
}

.rf-support-card small {
    display: block;
    margin-bottom: 3px;
    color: var(--rf-text-muted);
    font-size: 11px;
}

.rf-support-card a {
    color: var(--rf-white);
    font-size: 15px;
    font-weight: 700;
}

.rf-support-card a:hover {
    color: var(--rf-secondary);
}

.rf-footer-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-top: 18px;
}

.rf-footer-features > div {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 48px;
    padding: 8px 10px;
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius-small);
    background: rgba(255, 255, 255, 0.025);
    color: var(--rf-text);
    font-size: 11px;
    line-height: 1.35;
}

.rf-footer-features i {
    color: var(--rf-secondary);
    font-size: 17px;
}

/* Delivery and payment partner strip */

.rf-footer-trust {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 54px;
    padding-top: 34px;
    border-top: 1px solid var(--rf-border);
}

.rf-footer-trust-card {
    display: grid;
    grid-template-columns: minmax(180px, 0.75fr) minmax(260px, 1.25fr);
    align-items: center;
    gap: 20px;
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius);
    background: linear-gradient(135deg, var(--rf-surface-hover), rgba(255, 255, 255, 0.025));
    box-shadow: var(--rf-shadow);
    transition:
        border-color var(--rf-transition),
        transform var(--rf-transition);
}

.rf-footer-trust-card:hover {
    border-color: var(--rf-secondary-border);
    transform: translateY(-3px);
}

.rf-footer-trust-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.rf-footer-trust-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border: 1px solid var(--rf-secondary-border);
    border-radius: 50%;
    background: var(--rf-secondary-soft);
    color: var(--rf-secondary);
    font-size: 17px;
}

.rf-footer-trust-heading span:not(.rf-footer-trust-icon) {
    display: block;
    margin-bottom: 3px;
    color: var(--rf-text-muted);
    font-size: 10px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.rf-footer-trust-heading h3 {
    margin: 0;
    color: var(--rf-white);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
}

.rf-footer-trust-media {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: 84px;
    padding: 10px 15px;
    overflow: hidden;
    border-radius: var(--rf-radius-small);
    background: var(--rf-white);
}

.rf-footer-trust-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.rf-footer-trust-media--payment img {
    max-width: 430px;
}

/* Lower footer */

.rf-footer-lower {
    position: relative;
    z-index: 2;
    border-top: 1px solid var(--rf-border);
    background: var(--rf-background-lower);
}

.rf-footer-lower-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    min-height: 72px;
    padding: 18px 0;
}

.rf-copyright,
.rf-developer {
    margin: 0;
    color: var(--rf-text-muted);
    font-size: 13px;
    line-height: 1.6;
}

.rf-copyright strong {
    color: var(--rf-white);
    font-weight: 600;
}

.rf-developer a {
    color: var(--rf-secondary);
    font-weight: 700;
}

.rf-developer a:hover {
    color: var(--rf-white);
}

@media (max-width: 1199px) {
    .rf-footer-grid {
        grid-template-columns:
            minmax(250px, 1.2fr)
            minmax(150px, 0.8fr)
            minmax(150px, 0.8fr)
            minmax(240px, 1fr);
        gap: 35px;
    }

    .rf-footer-trust-card {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 991px) {
    .rf-footer-main {
        padding: 58px 0 40px;
    }

    .rf-footer-grid,
    .rf-footer-trust {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rf-footer-grid {
        gap: 45px 35px;
    }

    .rf-footer-description {
        max-width: 100%;
    }

    .rf-footer-trust {
        margin-top: 42px;
    }
}

@media (max-width: 767px) {
    .rf-footer-trust {
        grid-template-columns: minmax(0, 1fr);
    }

    .rf-footer-trust-card {
        grid-template-columns: minmax(150px, 0.7fr) minmax(240px, 1.3fr);
    }
}

@media (max-width: 575px) {
    .rf-footer-main {
        padding: 45px 0 34px;
    }

    .rf-footer-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 38px;
    }

    .rf-footer-logo-image {
        max-width: 125px;
        max-height: 68px;
    }

    .rf-footer-title {
        margin-bottom: 19px;
        font-size: 17px;
    }

    .rf-footer-contact-item strong {
        font-size: 13px;
    }

    .rf-footer-features {
        grid-template-columns: minmax(0, 1fr);
    }

    .rf-footer-trust {
        gap: 14px;
        margin-top: 38px;
        padding-top: 28px;
    }

    .rf-footer-trust-card {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
        padding: 14px;
    }

    .rf-footer-trust-media {
        height: 74px;
        padding: 9px 12px;
    }

    .rf-footer-lower-inner {
        min-height: auto;
        padding: 22px 0 calc(95px + env(safe-area-inset-bottom));
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .rf-copyright,
    .rf-developer {
        width: 100%;
        font-size: 12px;
        text-align: left;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rf-footer *,
    .rf-footer *::before,
    .rf-footer *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
