/* =========================================================
   RBT PREMIUM FOOTER
========================================================= */

:root {
    --rf-navy: #061225;
    --rf-navy-soft: #0a1d38;
    --rf-blue: #1262b7;
    --rf-blue-light: #55a8ff;
    --rf-white: #ffffff;
    --rf-text: #c1ccda;
    --rf-muted: #8795a8;
    --rf-border: rgba(255, 255, 255, 0.12);
    --rf-surface: rgba(255, 255, 255, 0.05);
    --rf-transition: 0.25s ease;
}

.rf-footer,
.rf-footer * {
    box-sizing: border-box;
}

.rf-footer {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 8% 0%, rgba(18, 98, 183, 0.28), transparent 28%),
        radial-gradient(circle at 95% 95%, rgba(85, 168, 255, 0.1), transparent 30%),
        var(--rf-navy);
    color: var(--rf-text);
}

.rf-footer::before {
    position: absolute;
    top: 55px;
    left: 50%;
    width: min(78vw, 1080px);
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(85, 168, 255, 0.65),
        transparent
    );
    content: "";
    transform: translateX(-50%);
}

.rf-footer a {
    text-decoration: none;
}

/* Main */
.rf-footer-main {
    position: relative;
    z-index: 1;
    padding: 78px 0 36px;
}

.rf-footer-grid {
    display: grid;
    grid-template-columns:
        minmax(240px, 1.25fr)
        minmax(130px, 0.7fr)
        minmax(150px, 0.75fr)
        minmax(255px, 1fr);
    gap: clamp(28px, 4vw, 64px);
}

/* Brand */
.rf-footer-logo {
    display: inline-flex;
    margin-bottom: 22px;
    align-items: center;
}

.rf-footer-logo-image {
    display: block;
    width: auto;
    max-width: 165px;
    max-height: 72px;
    object-fit: contain;
}

.rf-footer-description {
    max-width: 330px;
    margin: 0 0 22px;
    color: var(--rf-text);
    font-size: 13px;
    line-height: 1.8;
}

.rf-footer-contact-list {
    display: grid;
    gap: 10px;
}

.rf-footer-contact-item {
    display: flex;
    align-items: center;
    gap: 11px;
    color: var(--rf-text);
}

.rf-contact-icon {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    border: 1px solid rgba(85, 168, 255, 0.38);
    border-radius: 50%;
    background: rgba(18, 98, 183, 0.16);
    color: var(--rf-blue-light);
    font-size: 14px;
    transition: var(--rf-transition);
}

.rf-footer-contact-item:hover .rf-contact-icon {
    border-color: var(--rf-blue-light);
    background: var(--rf-blue);
    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: 2px;
    color: var(--rf-muted);
    font-size: 10px;
}

.rf-footer-contact-item strong {
    color: var(--rf-white);
    font-size: 12px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.rf-social-links {
    display: flex;
    margin-top: 22px;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.rf-social-links a {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid var(--rf-border);
    border-radius: 50%;
    background: var(--rf-surface);
    color: var(--rf-white);
    font-size: 13px;
    transition: var(--rf-transition);
}

.rf-social-links a:hover {
    border-color: var(--rf-blue-light);
    background: var(--rf-blue);
    color: var(--rf-white);
    transform: translateY(-3px);
}

/* Footer links */
.rf-footer-title {
    position: relative;
    margin: 3px 0 21px;
    padding-bottom: 12px;
    color: var(--rf-white);
    font-family: "DM Mono", monospace;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.rf-footer-title::after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--rf-blue-light);
    content: "";
}

.rf-footer-links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.rf-footer-links li + li {
    margin-top: 11px;
}

.rf-footer-links a {
    display: inline-flex;
    align-items: center;
    color: var(--rf-text);
    font-size: 13px;
    transition: color var(--rf-transition), transform var(--rf-transition);
}

.rf-footer-links a::before {
    width: 4px;
    height: 4px;
    margin-right: 9px;
    border-radius: 50%;
    background: var(--rf-blue);
    content: "";
    transition: background var(--rf-transition);
}

.rf-footer-links a:hover {
    color: var(--rf-blue-light);
    transform: translateX(4px);
}

.rf-footer-links a:hover::before {
    background: var(--rf-blue-light);
}

/* Newsletter */
.rf-footer-newsletter > p {
    margin: 0 0 17px;
    color: var(--rf-text);
    font-size: 13px;
    line-height: 1.7;
}

.rf-newsletter-form {
    position: relative;
    margin-bottom: 16px;
}

.rf-newsletter-form input {
    width: 100%;
    height: 48px;
    padding: 0 56px 0 14px;
    border: 1px solid var(--rf-border);
    outline: none;
    background: rgba(255, 255, 255, 0.07);
    color: var(--rf-white);
    font-size: 12px;
}

.rf-newsletter-form input::placeholder {
    color: var(--rf-muted);
}

.rf-newsletter-form input:focus {
    border-color: var(--rf-blue-light);
}

.rf-newsletter-form button {
    position: absolute;
    top: 4px;
    right: 4px;
    display: grid;
    width: 40px;
    height: 40px;
    padding: 0;
    place-items: center;
    border: 0;
    background: var(--rf-blue);
    color: var(--rf-white);
    cursor: pointer;
    transition: var(--rf-transition);
}

.rf-newsletter-form button:hover {
    background: var(--rf-blue-light);
    transform: translateX(2px);
}

.rf-support-card {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px;
    border: 1px solid var(--rf-border);
    background: rgba(255, 255, 255, 0.035);
}

.rf-support-icon {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    border-radius: 50%;
    background: var(--rf-blue);
    color: var(--rf-white);
}

.rf-support-card small {
    display: block;
    margin-bottom: 2px;
    color: var(--rf-muted);
    font-size: 10px;
}

.rf-support-card a {
    color: var(--rf-white);
    font-size: 13px;
    font-weight: 700;
}

.rf-support-card a:hover {
    color: var(--rf-blue-light);
}

.rf-footer-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 13px;
}

.rf-footer-features > div {
    display: flex;
    min-height: 46px;
    padding: 8px;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--rf-border);
    background: rgba(255, 255, 255, 0.025);
    color: var(--rf-text);
    font-size: 10px;
}

.rf-footer-features i {
    color: var(--rf-blue-light);
    font-size: 15px;
}

/* Partner cards */
.rf-footer-trust {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 50px;
    padding-top: 28px;
    border-top: 1px solid var(--rf-border);
}

.rf-footer-trust-card {
    display: grid;
    grid-template-columns: minmax(150px, 0.7fr) minmax(190px, 1.3fr);
    gap: 16px;
    padding: 16px;
    align-items: center;
    border: 1px solid var(--rf-border);
    background: rgba(255, 255, 255, 0.035);
}

.rf-footer-trust-heading {
    display: flex;
    align-items: center;
    gap: 11px;
}

.rf-footer-trust-icon {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    border-radius: 50%;
    background: rgba(18, 98, 183, 0.23);
    color: var(--rf-blue-light);
}

.rf-footer-trust-heading > div > span {
    display: block;
    margin-bottom: 4px;
    color: var(--rf-muted);
    font-size: 9px;
}

.rf-footer-trust-heading h3 {
    margin: 0;
    color: var(--rf-white);
    font-size: 13px;
    line-height: 1.35;
}

.rf-footer-trust-media {
    display: flex;
    min-height: 54px;
    padding: 9px;
    align-items: center;
    justify-content: center;
    background: #ffffff;
}

.rf-footer-trust-media img {
    display: block;
    width: 100%;
    max-height: 42px;
    object-fit: contain;
}

/* Footer bottom */
.rf-footer-lower {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--rf-border);
    background: rgba(0, 0, 0, 0.2);
}

.rf-footer-lower-inner {
    display: flex;
    min-height: 64px;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.rf-copyright,
.rf-developer {
    margin: 0;
    color: var(--rf-muted);
    font-size: 11px;
}

.rf-copyright strong {
    color: var(--rf-white);
}

.rf-developer a {
    color: var(--rf-blue-light);
    font-weight: 700;
}

.rf-developer a:hover {
    color: var(--rf-white);
}

/* Responsive */
@media (max-width: 991px) {
    .rf-footer-main {
        padding-top: 60px;
    }

    .rf-footer-grid {
        grid-template-columns: 1.3fr 0.7fr 0.8fr;
    }

    .rf-footer-newsletter {
        grid-column: 1 / -1;
        max-width: 500px;
    }

    .rf-footer-trust-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .rf-footer-main {
        padding: 48px 0 28px;
    }

    .rf-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 34px 20px;
    }

    .rf-footer-brand,
    .rf-footer-newsletter {
        grid-column: 1 / -1;
    }

    .rf-footer-logo-image {
        max-width: 145px;
    }

    .rf-footer-trust {
        grid-template-columns: 1fr;
        margin-top: 34px;
    }

    .rf-footer-trust-card {
        grid-template-columns: 1fr;
    }

    .rf-footer-lower-inner {
        min-height: 0;
        padding: 17px 0;
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 420px) {
    .rf-footer-grid {
        grid-template-columns: 1fr;
    }

    .rf-footer-brand,
    .rf-footer-newsletter {
        grid-column: auto;
    }

    .rf-footer-features {
        grid-template-columns: 1fr;
    }
}




/* Footer links: one item per row */
.rf-footer-links {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0 !important;
}

.rf-footer-links li,
.rf-footer-links li + li {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
}

.rf-footer-links a {
    display: inline-flex !important;
    width: fit-content;
    margin: 0 0 13px !important;
    white-space: normal;
}