/* =========================================================
   FOOTER VARIABLES
========================================================= */

:root {
    --rf-primary: #111111;
    --rf-secondary: #f58220;
    --rf-accent: #ff9a4d;

    --rf-background: #111111;
    --rf-background-soft: #171717;
    --rf-background-lower: #0a0a0a;

    --rf-white: #ffffff;
    --rf-text: #d6d6d6;
    --rf-text-muted: #8f8f8f;

    --rf-border: rgba(255, 255, 255, 0.10);
    --rf-border-strong: rgba(255, 255, 255, 0.18);

    --rf-success: #20a464;

    --rf-radius-small: 8px;
    --rf-radius: 14px;
    --rf-radius-round: 999px;

    --rf-shadow:
        0 18px 50px rgba(0, 0, 0, 0.22);

    --rf-transition: 0.3s ease;
}

/* =========================================================
   BASE
========================================================= */

.rf-footer,
.rf-footer * {
    box-sizing: border-box;
}

.rf-footer {
    position: relative;
    overflow: hidden;
    background: var(--rf-background);
    color: var(--rf-text);
}

.rf-footer::before {
    content: "";
    position: absolute;
    top: -220px;
    left: -160px;
    width: 440px;
    height: 440px;
    border-radius: 50%;
    background: rgba(183, 139, 79, 0.07);
    pointer-events: none;
}

.rf-footer::after {
    content: "";
    position: absolute;
    right: -180px;
    bottom: -250px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.025);
    pointer-events: none;
}

.rf-footer a {
    text-decoration: none;
}

/* =========================================================
   MAIN AREA
========================================================= */

.rf-footer-main {
    position: relative;
    z-index: 2;
    padding: 78px 0 65px;
}

.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 COLUMN
========================================================= */

.rf-footer-logo {
    display: inline-flex;
    align-items: center;
    margin-bottom: 23px;
}

.rf-footer-logo img {
    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 {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border: 1px solid var(--rf-border);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    color: var(--rf-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
        color var(--rf-transition),
        background var(--rf-transition),
        border-color var(--rf-transition);
}

.rf-footer-contact-item:hover .rf-contact-icon {
    color: var(--rf-white);
    background: var(--rf-secondary);
    border-color: var(--rf-secondary);
}

.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;
}

/* Social links */

.rf-social-links {
    margin-top: 25px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.rf-social-links a {
    width: 42px;
    height: 42px;
    border: 1px solid var(--rf-border);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    color: var(--rf-white);
    display: flex;
    align-items: center;
    justify-content: center;
    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 {
    color: var(--rf-white);
    background: var(--rf-secondary);
    border-color: var(--rf-secondary);
    transform: translateY(-3px);
}

/* =========================================================
   FOOTER COLUMNS
========================================================= */

.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 {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 42px;
    height: 2px;
    background: var(--rf-secondary);
}

.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: var(--rf-text);
    font-size: 14px;
    line-height: 1.5;
    transition:
        color var(--rf-transition),
        padding-left var(--rf-transition);
}

.rf-footer-links a::before {
    content: "";
    position: absolute;
    left: 0;
    width: 6px;
    height: 6px;
    border: 1px solid var(--rf-secondary);
    border-radius: 50%;
    transition: background var(--rf-transition);
}

.rf-footer-links a:hover {
    padding-left: 21px;
    color: var(--rf-white);
}

.rf-footer-links a:hover::before {
    background: var(--rf-secondary);
}

/* =========================================================
   NEWSLETTER
========================================================= */

.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.055);
    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;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: var(--rf-secondary);
    color: var(--rf-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition:
        background var(--rf-transition),
        transform var(--rf-transition);
}

.rf-newsletter-form button:hover {
    background: var(--rf-accent);
    transform: translateX(2px);
}

/* Support */

.rf-support-card {
    padding: 15px;
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius-small);
    background: rgba(255, 255, 255, 0.035);
    display: flex;
    align-items: center;
    gap: 12px;
}

.rf-support-icon {
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    border-radius: 50%;
    background: var(--rf-secondary);
    color: var(--rf-white);
    display: flex;
    align-items: center;
    justify-content: center;
}

.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);
}

/* Features */

.rf-footer-features {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.rf-footer-features > div {
    min-height: 48px;
    padding: 8px 10px;
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius-small);
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--rf-text);
    font-size: 11px;
    line-height: 1.35;
}

.rf-footer-features i {
    color: var(--rf-secondary);
    font-size: 17px;
}

/* =========================================================
   LOWER FOOTER
========================================================= */

.rf-footer-lower {
    position: relative;
    z-index: 2;
    background: var(--rf-background-lower);
    border-top: 1px solid var(--rf-border);
}

.rf-footer-lower-inner {
    min-height: 72px;
    padding: 18px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.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);
}

/* =========================================================
   RESPONSIVE
========================================================= */

@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;
    }
}

@media (max-width: 991px) {
    .rf-footer-main {
        padding: 58px 0 50px;
    }

    .rf-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 45px 35px;
    }

    .rf-footer-description {
        max-width: 100%;
    }
}

@media (max-width: 575px) {
    .rf-footer-main {
        padding: 45px 0 38px;
    }

    .rf-footer-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 38px;
    }

    .rf-footer-logo img {
        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-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;
    }
}



/* =========================================
   HEAVEN TOUCH FOOTER PREMIUM TOUCH
========================================= */

.rf-footer {
    background:
        linear-gradient(
            145deg,
            #111111 0%,
            #151515 55%,
            #0d0d0d 100%
        );
}

/* Orange soft glow */

.rf-footer::before {
    background: rgba(245, 130, 32, 0.08);
}

.rf-footer::after {
    background: rgba(245, 130, 32, 0.035);
}


/* Footer titles */

.rf-footer-title {
    color: var(--rf-white);
}

.rf-footer-title::after {
    width: 35px;
    height: 3px;
    border-radius: 10px;
    background: var(--rf-secondary);
}


/* Links */

.rf-footer-links a {
    color: #c8c8c8;
}

.rf-footer-links a:hover {
    color: var(--rf-secondary);
}

.rf-footer-links a::before {
    border-color: var(--rf-secondary);
}


/* Contact icons */

.rf-contact-icon {
    color: var(--rf-secondary);
    background: rgba(245, 130, 32, 0.08);
    border-color: rgba(245, 130, 32, 0.18);
}

.rf-footer-contact-item:hover .rf-contact-icon {
    background: var(--rf-secondary);
    color: var(--rf-white);
    border-color: var(--rf-secondary);
}


/* Social icons */

.rf-social-links a {
    background: rgba(255, 255, 255, 0.04);
}

.rf-social-links a:hover {
    background: var(--rf-secondary);
    border-color: var(--rf-secondary);
    color: var(--rf-white);
}


/* Newsletter */

.rf-newsletter-form input {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.11);
}

.rf-newsletter-form input:focus {
    border-color: var(--rf-secondary);
    background: rgba(255, 255, 255, 0.08);
}

.rf-newsletter-form button {
    background: var(--rf-secondary);
}

.rf-newsletter-form button:hover {
    background: var(--rf-white);
    color: var(--rf-primary);
}


/* Support card */

.rf-support-card {
    background: rgba(255, 255, 255, 0.035);
    border-color: rgba(255, 255, 255, 0.10);
}

.rf-support-icon {
    background: var(--rf-secondary);
}


/* Features */

.rf-footer-features > div {
    background: rgba(255, 255, 255, 0.025);
}

.rf-footer-features i {
    color: var(--rf-secondary);
}


/* Bottom footer */

.rf-footer-lower {
    background: #080808;
    border-top-color: rgba(255, 255, 255, 0.08);
}

.rf-copyright strong {
    color: var(--rf-white);
}

.rf-developer a {
    color: var(--rf-secondary);
}

.rf-developer a:hover {
    color: var(--rf-white);
}