/* =========================================================
   FOOTER VARIABLES
========================================================= */

:root {
    /*
     * Header theme follow করবে।
     * rikaz-header.css-এর color পরিবর্তন করলে footer-ও বদলাবে।
     */
    --rf-primary: var(--rk-primary, #000000);
    --rf-secondary: var(--rk-secondary, #FEBEE8);
    --rf-accent: var(--rk-accent, #d5ae75);

    --rf-background: #000000;
    --rf-background-soft: #000000;
    --rf-background-lower: #000000;

    --rf-white: #ffffff;
    --rf-text: #cad1da;
    --rf-text-muted: #8f9bab;

    --rf-border: rgba(255, 255, 255, 0.1);
    --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.18);

    --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: 210px;
    max-height: 150px;
    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: linear-gradient(135deg, #FECEB3 0%, #FEBEE8 50%, #D0C5FF 100%);
    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: linear-gradient(135deg, #FECEB3 0%, #FEBEE8 50%, #D0C5FF 100%);
    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: linear-gradient(135deg, #FECEB3 0%, #FEBEE8 50%, #D0C5FF 100%);
}

.rf-footer-links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.rf-footer-links li {
    display: block;
    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: linear-gradient(135deg, #FECEB3 0%, #FEBEE8 50%, #D0C5FF 100%);
}

/* =========================================================
   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: linear-gradient(135deg, #FECEB3 0%, #FEBEE8 50%, #D0C5FF 100%);
    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: linear-gradient(135deg, #FECEB3 0%, #FEBEE8 50%, #D0C5FF 100%);
    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: 170px;
        max-height: 115px;
    }

    .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;
    }
}