/* ============================================
   Footer — Minimal Brand-Forward Design
   ============================================ */

.site-footer {
    background: var(--bg);
    font-family: var(--font-sans);
    color: var(--ink);
    position: relative;
}

/* ---- Brand Accent Line ---- */
.site-footer .footer-accent {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--brand) 30%, var(--brand) 70%, transparent);
    opacity: 0.5;
}

.site-footer .footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 2rem 0;
}

/* ---- Trust Badges ---- */
.site-footer .trust-badges {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--accent);
}

.site-footer .trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--ink-2);
    font-size: 0.8rem;
    font-weight: 500;
}

.site-footer .trust-badge svg {
    width: 18px;
    height: 18px;
    color: var(--brand);
    flex-shrink: 0;
}

/* ---- Main Grid ---- */
.site-footer .footer-content {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 0.8fr;
    gap: 2.5rem;
    padding-bottom: 2.5rem;
}

.site-footer .footer-col {
    display: flex;
    flex-direction: column;
}

/* ---- Brand Column ---- */
.site-footer .footer-brand {
    gap: 0.75rem;
}

.site-footer .footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    width: fit-content;
}

.site-footer .brand-logo {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-xs, 10px);
}

.site-footer .brand-name {
    color: var(--ink);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.site-footer .brand-tagline {
    color: var(--ink-2);
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
    max-width: 260px;
}

/* ---- Brand Journey Badge ---- */
.site-footer .footer-brand-journey {
    margin-top: 0.35rem;
    padding: 0.65rem 0.85rem;
    border-radius: var(--radius-xs, 10px);
    border: 1px solid rgba(91, 67, 234, 0.22);
    background: linear-gradient(135deg, rgba(91, 67, 234, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    max-width: 260px;
    box-sizing: border-box;
}

.site-footer .footer-brand-journey__track {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
}

.site-footer .footer-brand-journey__year {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--ink-2);
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

.site-footer .footer-brand-journey__year--now {
    color: rgba(196, 181, 253, 0.95);
}

.site-footer .footer-brand-journey__line {
    flex: 1;
    min-width: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(91, 67, 234, 0.35), rgba(139, 92, 246, 0.85));
    position: relative;
    overflow: hidden;
}

.site-footer .footer-brand-journey__pulse {
    position: absolute;
    top: 50%;
    left: 72%;
    width: 6px;
    height: 6px;
    margin: -3px 0 0 -3px;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 0 3px rgba(91, 67, 234, 0.25), 0 0 10px rgba(139, 92, 246, 0.55);
    animation: footer-brand-pulse 2.8s ease-in-out infinite;
}

@keyframes footer-brand-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.85; }
}

.site-footer .footer-brand-journey__caption {
    margin: 0.45rem 0 0;
    font-size: 0.75rem;
    line-height: 1.4;
    color: var(--ink-2);
    letter-spacing: 0.01em;
}

/* ---- Link Columns ---- */
.site-footer .footer-heading {
    color: var(--ink);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 1rem;
}

.site-footer .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.site-footer .footer-links a {
    color: var(--ink-2);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.15s ease;
}

.site-footer .footer-links a:hover {
    color: var(--ink);
}

/* ---- Payment / Crypto Column ---- */
.site-footer .footer-pay {
    align-items: flex-start;
}

.site-footer .crypto-icons {
    display: grid;
    grid-template-columns: repeat(2, 32px);
    gap: 0.5rem;
}

.site-footer .crypto-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
}

.site-footer .crypto-icon:hover {
    opacity: 0.75;
}

.site-footer .crypto-icon svg {
    width: 28px;
    height: 28px;
}

.site-footer .crypto-label {
    color: var(--ink-2);
    font-size: 0.75rem;
    margin-top: 0.6rem;
    white-space: nowrap;
}

/* ============================================
   SEO Sitemap Section
   ============================================ */
.site-footer .footer-sitemap-section {
    padding: 2rem 0;
    border-top: 1px solid var(--accent);
}

.site-footer .footer-sitemap-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.site-footer .footer-sitemap-header .footer-heading {
    margin: 0;
}

.site-footer .footer-sitemap-full-link {
    color: var(--brand);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.site-footer .footer-sitemap-full-link:hover {
    opacity: 0.75;
}

.site-footer .footer-sitemap-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.75rem;
}

.site-footer .footer-sitemap-category {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.site-footer .footer-sitemap-category-title {
    margin: 0;
}

.site-footer .footer-sitemap-category-title .footer-sitemap-link {
    color: var(--ink);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s ease;
}

.site-footer .footer-sitemap-category-title .footer-sitemap-link:hover {
    color: var(--brand);
}

.site-footer .footer-sitemap-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.site-footer .footer-sitemap-item {
    margin: 0;
}

.site-footer .footer-sitemap-sublist {
    list-style: none;
    padding: 0;
    margin: 0.4rem 0 0 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.site-footer .footer-sitemap-subitem {
    margin: 0;
}

.site-footer .footer-sitemap-link {
    color: var(--ink-2);
    text-decoration: none;
    font-size: 0.825rem;
    transition: color 0.15s ease;
    display: inline-block;
}

.site-footer .footer-sitemap-link:hover {
    color: var(--ink);
}

.site-footer .footer-sitemap-sublist .footer-sitemap-link {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.site-footer .footer-sitemap-sublist .footer-sitemap-link:hover {
    color: var(--ink-2);
}

/* ============================================
   Bottom Bar
   ============================================ */
.site-footer .footer-bottom {
    border-top: 1px solid var(--accent);
    padding: 1.25rem 0;
}

.site-footer .footer-bottom-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.site-footer .copyright {
    color: var(--ink-2);
    font-size: 0.75rem;
    margin: 0;
    white-space: nowrap;
}

.site-footer .legal-links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.site-footer .legal-links a {
    color: var(--ink-2);
    text-decoration: none;
    font-size: 0.75rem;
    transition: color 0.15s ease;
}

.site-footer .legal-links a:hover {
    color: var(--ink);
}

/* ---- Locale tools (global site link + language switcher) ---- */
.site-footer .footer-locale-tools {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.site-footer .footer-global-site-link {
    color: var(--ink-2);
    text-decoration: none;
    font-size: 0.75rem;
    white-space: nowrap;
    transition: color 0.15s ease;
}

.site-footer .footer-global-site-link:hover {
    color: var(--ink);
}

.site-footer .language-switcher {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.site-footer .globe-icon {
    width: 14px;
    height: 14px;
    color: var(--ink-2);
    flex-shrink: 0;
}

.site-footer .language-select {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--accent);
    border-radius: var(--radius-xs, 10px);
    color: var(--ink-2);
    padding: 0.4rem 2rem 0.4rem 0.6rem;
    font-size: 0.8rem;
    font-family: var(--font-sans);
    cursor: pointer;
    outline: none;
    appearance: none;
    transition: border-color 0.2s ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
}

.site-footer .language-select:hover {
    border-color: var(--active-border);
}

.site-footer .language-select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 2px rgba(var(--brand-rgb), 0.08);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 900px) {
    .site-footer .footer-content {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 2rem;
    }

    .site-footer .footer-brand,
    .site-footer .footer-pay {
        flex: 1 1 100%;
        width: 100%;
    }

    .site-footer .footer-col:not(.footer-brand):not(.footer-pay) {
        flex: 1 1 calc(50% - 1rem);
        min-width: 0;
    }

    .site-footer .trust-badges {
        gap: 1.5rem;
    }
}

@media (max-width: 600px) {
    .site-footer .footer-container {
        padding: 2rem 1.25rem 0;
    }

    .site-footer .trust-badges {
        flex-wrap: wrap;
        gap: 0.75rem 1.5rem;
        justify-content: flex-start;
        padding-bottom: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .site-footer .footer-content {
        gap: 1.5rem;
        padding-bottom: 2rem;
    }

    .site-footer .footer-col:not(.footer-brand):not(.footer-pay) {
        flex-basis: calc(50% - 0.75rem);
    }

    .site-footer .footer-brand-journey {
        max-width: none;
        width: 100%;
        box-sizing: border-box;
    }

    .site-footer .footer-heading {
        margin-bottom: 0.75rem;
    }

    .site-footer .footer-links a {
        display: inline-block;
        padding-block: 0.15rem;
    }

    .site-footer .crypto-icons {
        grid-template-columns: repeat(4, 32px);
    }

    .site-footer .footer-sitemap-container {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 1.25rem;
    }

    .site-footer .footer-bottom-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .site-footer .copyright {
        white-space: normal;
    }

    .site-footer .legal-links {
        row-gap: 0.4rem;
        line-height: 1.45;
    }

    .site-footer .footer-locale-tools {
        margin-left: 0;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .site-footer .language-select {
        width: 100%;
        max-width: 220px;
    }

    .site-footer .back-to-top {
        right: 1.25rem;
    }
}

/* ---- Back to Top ---- */
.site-footer .back-to-top {
    position: absolute;
    top: -18px;
    right: 2rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg);
    border: 1px solid var(--accent);
    color: var(--ink-2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.site-footer .back-to-top:hover {
    border-color: var(--brand);
    color: var(--brand);
    transform: translateY(-2px);
}

.site-footer .back-to-top svg {
    width: 16px;
    height: 16px;
}

/* ============================================
   Accessibility
   ============================================ */
.site-footer .footer-links a:focus-visible,
.site-footer .footer-global-site-link:focus-visible,
.site-footer .legal-links a:focus-visible,
.site-footer .footer-logo:focus-visible,
.site-footer .footer-sitemap-link:focus-visible,
.site-footer .footer-sitemap-full-link:focus-visible,
.site-footer .back-to-top:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
    border-radius: 3px;
}

@media (prefers-contrast: high) {
    .site-footer {
        border-top-width: 2px;
    }

    .site-footer .footer-links a,
    .site-footer .legal-links a {
        text-decoration: underline;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-footer *,
    .site-footer .crypto-icon {
        transition: none !important;
    }

    .site-footer .footer-brand-journey__pulse {
        animation: none;
    }
}
