/* ==========================================================================
   RAKMANA CUSTOM FOOTER
   Scoped to .rk-footer so it cannot affect other theme components.
   ========================================================================== */

.rk-footer {
    --rk-footer-bg: #10162e;
    --rk-footer-text: #e8edf8;
    --rk-footer-muted: #aeb9cf;
    --rk-footer-dim: #8f9cb5;
    --rk-footer-accent: #a1c9ff;
    --rk-footer-blue: #1e8fcb;
    --rk-footer-line: rgba(255, 255, 255, 0.1);
    --rk-footer-line-strong: rgba(161, 201, 255, 0.2);

    position: relative;
    isolation: isolate;
    overflow: hidden;
    width: 100%;
    background-color: var(--rk-footer-bg);
    color: var(--rk-footer-text);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    text-align: start;
}

.rk-footer *,
.rk-footer *::before,
.rk-footer *::after {
    box-sizing: border-box;
}

/* Thin brand accent at the very top of the footer. */
.rk-footer::before {
    content: "";
    position: absolute;
    inset-block-start: 0;
    inset-inline: 0;
    z-index: 2;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--rk-footer-blue) 22%,
        var(--rk-footer-accent) 50%,
        var(--rk-footer-blue) 78%,
        transparent 100%
    );
    opacity: 0.85;
    pointer-events: none;
}

/* A very soft light source keeps the dark surface from looking flat. */
.rk-footer::after {
    content: "";
    position: absolute;
    inset-block-start: -260px;
    inset-inline-end: -140px;
    z-index: 0;
    width: 620px;
    height: 620px;
    background: radial-gradient(circle, rgba(30, 143, 203, 0.14) 0%, rgba(30, 143, 203, 0) 66%);
    pointer-events: none;
}

.rk-footer__container {
    position: relative;
    z-index: 1;
    padding-block: 64px 0;
}

/* ==========================================================================
   CTA BAND
   ========================================================================== */

.rk-footer__cta {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    overflow: hidden;
    padding: 32px 36px;
    border: 1px solid var(--rk-footer-line-strong);
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.035);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.rk-footer__cta::after {
    content: "";
    position: absolute;
    inset-block-start: -150px;
    inset-inline-end: -100px;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(30, 143, 203, 0.18) 0%, rgba(30, 143, 203, 0) 70%);
    pointer-events: none;
}

.rk-footer__cta-copy {
    position: relative;
    z-index: 1;
    max-width: 620px;
}

.rk-footer__eyebrow {
    margin: 0 0 10px;
    color: var(--rk-footer-accent);
    font-family: var(--font-label);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.rk-footer__cta-title {
    margin: 0 0 8px;
    color: #ffffff;
    font-family: var(--font-display);
    font-size: clamp(24px, 2.6vw, 32px);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.015em;
}

.rk-footer__cta-text {
    max-width: 560px;
    margin: 0;
    color: var(--rk-footer-muted);
    font-size: 14.5px;
    line-height: 1.65;
}

.rk-footer__button {
    position: relative;
    z-index: 1;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 22px;
    border: 0;
    border-radius: 10px;
    background-color: #f6f9ff;
    color: #10162e;
    font-family: var(--font-label);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.01em;
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.rk-footer__button:hover,
.rk-footer__button:focus-visible {
    background-color: #dcebff;
    color: #10162e;
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
}

.rk-footer__button:active {
    transform: translateY(0);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.rk-footer__button .material-symbols-outlined {
    font-size: 19px;
    line-height: 1;
    transition: transform 0.2s ease;
}

.rk-footer__button:hover .material-symbols-outlined {
    transform: translateX(3px);
}

/* ==========================================================================
   MAIN GRID
   ========================================================================== */

.rk-footer__main {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) repeat(3, minmax(0, 0.9fr)) minmax(0, 1.25fr);
    gap: 48px 40px;
    padding-block: 56px 0;
}

.rk-footer__brand {
    min-width: 0;
}

.rk-footer__logo-plate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 10px;
    background-color: #f7f9ff;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

.rk-footer__logo-plate .custom-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
}

.rk-footer__logo-plate .custom-logo {
    display: block;
    width: auto;
    max-width: 190px;
    max-height: 42px;
    height: auto;
}

.rk-footer__brand-name {
    color: #10162e;
    font-family: var(--font-display);
    font-size: 25px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.rk-footer__description {
    max-width: 310px;
    margin: 22px 0 0;
    color: var(--rk-footer-muted);
    font-size: 14.5px;
    line-height: 1.75;
}

.rk-footer__philosophy {
    max-width: 325px;
    margin: 22px 0 0;
    padding-inline-start: 14px;
    border-inline-start: 2px solid var(--rk-footer-accent);
    color: #dbe4f5;
    font-family: var(--font-display);
    font-size: 13.5px;
    font-style: italic;
    font-weight: 500;
    line-height: 1.65;
}

.rk-footer__social {
    margin-block-start: 22px;
}

.rk-footer__social-label {
    margin: 0 0 10px;
    color: var(--rk-footer-dim);
    font-family: var(--font-label);
    font-size: 10px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.rk-footer__social-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rk-footer__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(161, 201, 255, 0.16);
    border-radius: 50%;
    background-color: rgba(161, 201, 255, 0.1);
    color: var(--rk-footer-accent);
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.rk-footer__social-link:hover,
.rk-footer__social-link:focus-visible {
    border-color: rgba(161, 201, 255, 0.5);
    background-color: rgba(161, 201, 255, 0.18);
    color: #ffffff;
    transform: translateY(-2px);
}

.rk-footer__social-icon {
    display: block;
    width: 18px;
    height: 18px;
}

.rk-footer__column {
    min-width: 0;
}

.rk-footer__heading {
    margin: 0 0 18px;
    color: var(--rk-footer-accent);
    font-family: var(--font-label);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.rk-footer__list,
.rk-footer__contact-list,
.rk-footer__legal,
.rk-footer__language-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.rk-footer__list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rk-footer__link {
    position: relative;
    display: inline-block;
    max-width: 100%;
    padding-block: 5px;
    color: #c5cfdf;
    font-size: 14px;
    line-height: 1.45;
    text-decoration: none;
    overflow-wrap: break-word;
    transition: color 0.2s ease;
}

.rk-footer__link::after {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    inset-block-end: 2px;
    width: 100%;
    height: 1px;
    background-color: var(--rk-footer-accent);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.2s ease;
}

.rk-footer__link:hover,
.rk-footer__link:focus-visible {
    color: #ffffff;
}

.rk-footer__link:hover::after,
.rk-footer__link:focus-visible::after {
    transform: scaleX(1);
}

/* ==========================================================================
   CONTACT COLUMN
   ========================================================================== */

.rk-footer__contact-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.rk-footer__contact-link {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: inherit;
    text-decoration: none;
}

.rk-footer__contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(161, 201, 255, 0.16);
    border-radius: 50%;
    background-color: rgba(161, 201, 255, 0.1);
    color: var(--rk-footer-accent);
    font-size: 18px;
    line-height: 1;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.rk-footer__contact-link:hover .rk-footer__contact-icon,
.rk-footer__contact-link:focus-visible .rk-footer__contact-icon {
    border-color: rgba(161, 201, 255, 0.36);
    background-color: rgba(161, 201, 255, 0.18);
    color: #ffffff;
}

.rk-footer__contact-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 2px;
}

.rk-footer__contact-label {
    color: var(--rk-footer-dim);
    font-family: var(--font-label);
    font-size: 10px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.rk-footer__contact-value {
    color: var(--rk-footer-text);
    font-size: 13.5px;
    line-height: 1.45;
    overflow-wrap: break-word;
    transition: color 0.2s ease;
}

.rk-footer__contact-link:hover .rk-footer__contact-value,
.rk-footer__contact-link:focus-visible .rk-footer__contact-value {
    color: #ffffff;
}

.rk-footer__contact-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding-block: 6px;
    color: var(--rk-footer-accent);
    font-family: var(--font-label);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: color 0.2s ease;
}

.rk-footer__contact-cta:hover,
.rk-footer__contact-cta:focus-visible {
    color: #ffffff;
}

.rk-footer__contact-cta .material-symbols-outlined {
    font-size: 17px;
    line-height: 1;
    transition: transform 0.2s ease;
}

.rk-footer__contact-cta:hover .material-symbols-outlined {
    transform: translateX(3px);
}

/* ==========================================================================
   BOTTOM BAR
   ========================================================================== */

.rk-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px 24px;
    margin-block-start: 56px;
    padding-block: 24px 30px;
    border-block-start: 1px solid var(--rk-footer-line);
}

.rk-footer__bottom-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 24px;
    min-width: 0;
}

.rk-footer__copyright {
    margin: 0;
    color: var(--rk-footer-dim);
    font-size: 12.5px;
    line-height: 1.6;
}

.rk-footer__copyright-brand {
    color: #dbe4f3;
    font-weight: 600;
}

.rk-footer__copyright-rights {
    margin-inline-start: 4px;
}

.rk-footer__legal {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 18px;
}

.rk-footer__legal-link {
    color: var(--rk-footer-dim);
    font-size: 12.5px;
    line-height: 1.6;
    padding-block: 4px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.rk-footer__legal-link:hover,
.rk-footer__legal-link:focus-visible {
    color: var(--rk-footer-accent);
}

.rk-footer__language {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.rk-footer__language-icon {
    color: var(--rk-footer-dim);
    font-size: 18px;
    line-height: 1;
}

.rk-footer__language-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2px;
}

.rk-footer__language-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 4px 9px;
    border-radius: 999px;
    color: var(--rk-footer-dim);
    font-family: var(--font-label);
    font-size: 11.5px;
    line-height: 1;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.rk-footer__language-link:hover,
.rk-footer__language-link:focus-visible {
    background-color: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

.rk-footer__language-link.is-current {
    background-color: rgba(161, 201, 255, 0.12);
    color: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(161, 201, 255, 0.22);
}

/* ==========================================================================
   FOCUS & MOTION
   ========================================================================== */

.rk-footer__link:focus-visible,
.rk-footer__contact-link:focus-visible,
.rk-footer__contact-cta:focus-visible,
.rk-footer__button:focus-visible,
.rk-footer__social-link:focus-visible,
.rk-footer__legal-link:focus-visible,
.rk-footer__language-link:focus-visible,
.rk-footer .custom-logo-link:focus-visible {
    outline: 2px solid var(--rk-footer-accent);
    outline-offset: 4px;
    border-radius: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .rk-footer *,
    .rk-footer *::before,
    .rk-footer *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1200px) {
    .rk-footer__main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 44px 48px;
    }

    .rk-footer__brand {
        grid-column: 1 / -1;
    }

    .rk-footer__description {
        max-width: 600px;
    }

    .rk-footer__philosophy {
        max-width: 600px;
    }
}

@media (max-width: 900px) {
    .rk-footer__cta {
        padding: 28px;
    }

    .rk-footer__cta-text {
        font-size: 14px;
    }
}

@media (max-width: 720px) {
    .rk-footer__container {
        padding-block-start: 48px;
    }

    .rk-footer__cta {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        padding: 24px;
        border-radius: 16px;
    }

    .rk-footer__cta-copy {
        max-width: none;
    }

    .rk-footer__button {
        width: 100%;
        min-height: 50px;
    }

    .rk-footer__main {
        grid-template-columns: minmax(0, 1fr);
        gap: 36px;
        padding-block-start: 44px;
    }

    .rk-footer__brand {
        grid-column: auto;
    }

    .rk-footer__description,
    .rk-footer__philosophy {
        max-width: none;
    }

    .rk-footer__logo-plate .custom-logo {
        max-height: 38px;
    }

    .rk-footer__link {
        padding-block: 9px;
    }

    .rk-footer__language-link {
        min-height: 34px;
        padding: 6px 11px;
    }

    .rk-footer__bottom {
        align-items: flex-start;
        flex-direction: column;
        margin-block-start: 44px;
    }

    .rk-footer__language {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .rk-footer__cta-title {
        font-size: 23px;
    }

    .rk-footer__logo-plate {
        padding: 10px 13px;
    }

    .rk-footer__logo-plate .custom-logo {
        max-height: 34px;
        max-width: 165px;
    }

    .rk-footer__copyright,
    .rk-footer__legal-link {
        font-size: 12px;
    }
}

/* ==========================================================================
   RTL
   ========================================================================== */

html[dir="rtl"] .rk-footer__heading,
html[dir="rtl"] .rk-footer__eyebrow,
html[dir="rtl"] .rk-footer__cta-title,
html[dir="rtl"] .rk-footer__contact-label,
html[dir="rtl"] .rk-footer__contact-cta,
html[dir="rtl"] .rk-footer__button,
html[dir="rtl"] .rk-footer__social-label,
html[dir="rtl"] .rk-footer__language-link {
    letter-spacing: 0;
    text-transform: none;
}

html[dir="rtl"] .rk-footer__link::after {
    transform-origin: right center;
}

html[dir="rtl"] .rk-footer__philosophy {
    font-style: normal;
}

html[dir="rtl"] .rk-footer__button .material-symbols-outlined,
html[dir="rtl"] .rk-footer__contact-cta .material-symbols-outlined {
    transform: scaleX(-1);
}

html[dir="rtl"] .rk-footer__button:hover .material-symbols-outlined,
html[dir="rtl"] .rk-footer__contact-cta:hover .material-symbols-outlined {
    transform: scaleX(-1) translateX(3px);
}

html[dir="rtl"] .rk-footer__copyright-rights {
    margin-inline-start: 0;
    margin-inline-end: 4px;
}
