/* ==========================================================================
   Worklybd site footer  (markup: Views/Shared/_Footer.cshtml)

   Self-contained and theme-independent: it is always the deep-navy "ink" surface,
   so it reads the same in the light and the dark page theme. It replaces the old
   .rs-footer rules that were scattered over site.css, responsive.css and the
   inline <style> of _Layout.cshtml (which also left the footer unreadable in dark mode).

   Rules are prefixed with .wb-footer on purpose: they must beat the site-wide
   `a { outline: none !important }`, `* { font-family }` and Bootstrap element styles.
   Contrast (on #0a1322): body #b6c1d3 = 10:1, labels #8f9db4 = 6.6:1, accent #10b981 = 7.3:1.
   ========================================================================== */

.wb-footer {
    --wb-bg: #0a1322;
    --wb-line: rgba(255, 255, 255, 0.10);
    --wb-line-strong: rgba(255, 255, 255, 0.18);
    --wb-text: #eef2f8;
    --wb-text-2: #b6c1d3;
    --wb-text-3: #8f9db4;
    /* Accent on the dark surface. Follows the brand palette when css/brand.css defines the
       --brand-on-dark* tokens (a light tint of the brand colour, >= 7:1 on #0a1322); the emerald
       values are only the fallback for a palette that does not define them yet. */
    --wb-accent: var(--brand-on-dark, #10b981);
    --wb-accent-hi: var(--brand-on-dark-hi, #34d399);
    --wb-accent-ink: var(--brand-on-dark-ink, #03130d);
    --wb-accent-rgb: var(--brand-on-dark-rgb, 16 185 129);
    --wb-accent-soft: rgb(var(--wb-accent-rgb) / 0.12);

    position: relative;
    isolation: isolate;
    clear: both;
    background: var(--wb-bg);
    color: var(--wb-text-2);
    font-family: "Public Sans", "Noto Sans Bengali", "Hind Siliguri", "Nirmala UI", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    text-align: left;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* the layout sets `* { font-family }` site-wide: inherit the footer's own stack (adds Bangla fallbacks) */
.wb-footer *,
.wb-footer *::before,
.wb-footer *::after {
    box-sizing: border-box;
    font-family: inherit;
}

/* thin emerald edge + soft depth */
.wb-footer::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0, rgb(var(--wb-accent-rgb) / .55) 18%, rgb(var(--wb-accent-rgb) / .95) 50%, rgb(var(--wb-accent-rgb) / .55) 82%, transparent 100%);
}

.wb-footer::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(60% 90% at 6% 0%, rgb(var(--wb-accent-rgb) / .11), transparent 62%),
        radial-gradient(50% 80% at 100% 100%, rgba(59, 130, 246, .07), transparent 62%);
}

.wb-footer .wb-footer__container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.wb-footer .wb-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.wb-footer .wb-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* ---- icons (stroke icons from the inline sprite) ---- */
.wb-footer .wb-i {
    width: 20px;
    height: 20px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wb-footer .wb-i--sm { width: 18px; height: 18px; }
.wb-footer .wb-i--xs { width: 14px; height: 14px; }

/* ---- links + focus ---- */
.wb-footer a {
    color: inherit;
    text-decoration: none;
}

.wb-footer a:focus-visible,
.wb-footer button:focus-visible,
.wb-footer .wb-pay__scroll:focus-visible {
    outline: 2px solid var(--wb-accent-hi) !important; /* the site removes outlines with !important */
    outline-offset: 3px !important;
    border-radius: 8px;
}

/* ---- main grid ---- */
.wb-footer .wb-footer__main {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, .8fr) minmax(0, .8fr) minmax(0, 1.3fr);
    gap: 48px 56px;
    padding: 76px 0 56px;
}

/* brand */
.wb-footer .wb-footer__logo {
    display: inline-block;
    line-height: 0;
}

.wb-footer .wb-footer__logo img {
    display: block;
    width: 156px;
    height: auto;
}

.wb-footer .wb-footer__tagline {
    max-width: 38ch;
    margin: 22px 0 0;
    font-size: 15px;
    line-height: 1.7;
    color: var(--wb-text-2);
    text-wrap: pretty;
}

.wb-footer .wb-footer__cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 22px;
    margin-top: 28px;
}

.wb-footer .wb-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 10px;
    background: var(--wb-accent);
    color: var(--wb-accent-ink);
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .28) inset, 0 12px 26px -14px rgb(var(--wb-accent-rgb) / .8);
    transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.wb-footer .wb-btn:hover {
    background: var(--wb-accent-hi);
    color: var(--wb-accent-ink);
    transform: translateY(-1px);
}

.wb-footer .wb-btn .wb-i { transition: transform .18s ease; }
.wb-footer .wb-btn:hover .wb-i { transform: translateX(3px); }

.wb-footer .wb-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding-bottom: 2px;
    color: var(--wb-accent-hi);
    font-size: 15px;
    font-weight: 600;
    background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
    transition: background-size .2s ease, color .2s ease;
}

.wb-footer .wb-link:hover {
    color: #fff;
    background-size: 100% 1px;
}

.wb-footer .wb-link--sm {
    margin-top: 6px;
    font-size: 13.5px;
}

/* link columns */
.wb-footer .wb-footer__title {
    margin: 0 0 20px;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--wb-text-3);
}

.wb-footer .wb-footer__list {
    display: grid;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wb-footer .wb-footer__list a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    color: var(--wb-text-2);
    font-size: 15px;
    background: linear-gradient(currentColor, currentColor) 0 calc(100% - 6px) / 0 1px no-repeat;
    transition: color .18s ease, background-size .22s ease;
}

.wb-footer .wb-footer__list a:hover {
    color: #fff;
    background-size: 100% 1px;
}

/* contact */
.wb-footer .wb-contact {
    display: grid;
    gap: 20px;
    margin: 0;
    font-style: normal;
    line-height: 1.6;
}

.wb-footer .wb-contact__row {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    column-gap: 14px;
    align-items: start;
}

.wb-footer .wb-contact__row > .wb-i {
    margin-top: 2px;
    color: var(--wb-accent);
}

.wb-footer .wb-contact strong {
    display: block;
    color: var(--wb-text);
    font-weight: 600;
}

.wb-footer .wb-contact__text {
    display: block;
    color: var(--wb-text-2);
    text-wrap: balance; /* no orphaned "Dhaka" on its own line (progressive enhancement) */
}

.wb-footer .wb-contact__strong {
    color: var(--wb-text);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    transition: color .18s ease;
}

.wb-footer .wb-contact__strong:hover { color: var(--wb-accent-hi); }

/* ---- trust band: former name, BASIS membership, secure payments ---- */
.wb-footer .wb-footer__trust {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 22px 32px;
    padding: 28px 0;
    border-top: 1px solid var(--wb-line);
}

.wb-footer .wb-footer__trust .wb-pay { grid-column: 1 / -1; }

.wb-footer .wb-trust__former {
    display: flex;
    align-items: center;
    gap: 14px;
}

.wb-footer .wb-trust__icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    color: var(--wb-accent);
    background: var(--wb-accent-soft);
    border: 1px solid rgb(var(--wb-accent-rgb) / .32);
}

.wb-footer .wb-trust__icon .wb-i {
    width: 22px;
    height: 22px;
}

.wb-footer .wb-trust__label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--wb-accent);
}

.wb-footer .wb-trust__text {
    display: block;
    margin-top: 2px;
    font-size: 14.5px;
    line-height: 1.45;
    color: var(--wb-text);
}

.wb-footer .wb-chip {
    display: grid;
    place-items: center;
    height: 56px;
    padding: 0 16px;
    border-radius: 12px;
    background: #fff;
    transition: transform .18s ease, box-shadow .18s ease;
}

.wb-footer .wb-chip img {
    display: block;
    width: 111px;
    height: auto;
}

.wb-footer .wb-chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px -16px rgba(0, 0, 0, .8);
}

.wb-footer .wb-pay {
    min-width: 0;
    padding: 10px 16px;
    border-radius: 12px;
    background: #fff;
}

.wb-footer .wb-pay__scroll {
    overflow-x: auto;
    border-radius: 6px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.wb-footer .wb-pay img {
    display: block;
    width: 100%;
    min-width: 640px; /* keeps the small bank logos legible on phones: the strip scrolls sideways there */
    height: auto;
}

/* ---- bottom bar ---- */
.wb-footer .wb-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px 28px;
    padding: 26px 0 34px;
    border-top: 1px solid var(--wb-line);
}

.wb-footer .wb-footer__legal p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.75;
    color: var(--wb-text-3);
}

.wb-footer .wb-footer__legal p:first-child { color: var(--wb-text-2); }

.wb-footer .wb-footer__legal span {
    color: var(--wb-text-2);
    font-variant-numeric: tabular-nums;
}

.wb-footer .wb-footer__tools {
    display: flex;
    align-items: center;
    gap: 14px;
}

.wb-footer .wb-lang {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid var(--wb-line-strong);
    border-radius: 999px;
    background: transparent;
    color: var(--wb-text);
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    transition: background-color .18s ease, border-color .18s ease;
}

.wb-footer .wb-lang:hover {
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .32);
}

.wb-footer .wb-social {
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wb-footer .wb-social a {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--wb-line-strong);
    border-radius: 50%;
    color: var(--wb-text-2);
    transition: color .18s ease, border-color .18s ease, background-color .18s ease, transform .18s ease;
}

.wb-footer .wb-social a:hover {
    color: #fff;
    border-color: var(--wb-accent);
    background: var(--wb-accent-soft);
    transform: translateY(-1px);
}

.wb-footer .wb-social svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* ---- Bangla: no tracking or capitals (they break conjuncts), a little more line height ---- */
.wb-footer:lang(bn) { line-height: 1.75; }

.wb-footer:lang(bn) .wb-footer__title,
.wb-footer:lang(bn) .wb-trust__label {
    font-size: 14px;
    letter-spacing: 0;
    text-transform: none;
}

/* ---- responsive ---- */
@media (max-width: 1200px) {
    .wb-footer .wb-footer__main { gap: 44px 40px; }
}

@media (max-width: 900px) {
    /* brand on top; Explore, Legal and Contact share one row (3 + 3 + 6 of 12 columns) */
    .wb-footer .wb-footer__main {
        grid-template-columns: repeat(12, minmax(0, 1fr));
        gap: 40px 28px;
        padding: 56px 0 40px;
    }

    .wb-footer .wb-footer__brand { grid-column: 1 / -1; }
    .wb-footer .wb-footer__col { grid-column: span 3; }
    .wb-footer .wb-footer__col--contact { grid-column: span 6; }
    .wb-footer .wb-footer__tagline { max-width: 52ch; }
}

@media (max-width: 720px) {
    .wb-footer .wb-footer__container { padding: 0 20px; }
    .wb-footer .wb-footer__main { gap: 36px 24px; padding: 48px 0 36px; }

    .wb-footer .wb-footer__trust {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
        padding: 24px 0;
    }

    .wb-footer .wb-chip { justify-self: start; }

    .wb-footer .wb-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px 0 28px;
    }

    .wb-footer .wb-footer__tools {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 640px) {
    /* the two link lists sit side by side, Contact gets the full width */
    .wb-footer .wb-footer__col { grid-column: span 6; }
    .wb-footer .wb-footer__col--contact { grid-column: 1 / -1; }
}

@media (max-width: 380px) {
    .wb-footer .wb-footer__col { grid-column: 1 / -1; }
}

@media (pointer: coarse) {
    .wb-footer .wb-footer__list a { min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
    .wb-footer *,
    .wb-footer *::before,
    .wb-footer *::after {
        transition: none !important;
        animation: none !important;
    }

    .wb-footer .wb-btn:hover,
    .wb-footer .wb-chip:hover,
    .wb-footer .wb-social a:hover { transform: none; }
}

@media print {
    .wb-footer { background: #fff; color: #000; }
    .wb-footer::before,
    .wb-footer::after,
    .wb-footer .wb-footer__trust,
    .wb-footer .wb-footer__tools { display: none; }
    .wb-footer a { color: #000; }
}
