/*
 * VastiqTrade shared public footer.
 * The footer follows the theme stored on <html data-bs-theme="...">.
 */

:root {
    --footer-bg: var(--gt-bg, #07111f);
    --footer-surface: var(--gt-surface, #0d1b2d);
    --footer-surface-2: var(--gt-surface-2, #111d33);
    --footer-text: var(--gt-text, #f5f7fb);
    --footer-muted: var(--gt-muted, #9eacbd);
    --footer-border: var(--gt-border, rgba(255,255,255,.10));
    --footer-accent: var(--gt-accent, #35d39a);
    --footer-button: var(--gt-primary, #6c8cff);
}

html[data-bs-theme="dark"] {
    --footer-bg: var(--gt-bg, #07111f);
    --footer-surface: var(--gt-surface, #0d1b2d);
    --footer-surface-2: var(--gt-surface-2, #111d33);
    --footer-text: var(--gt-text, #f5f7fb);
    --footer-muted: var(--gt-muted, #9eacbd);
    --footer-border: var(--gt-border, rgba(255,255,255,.10));
}

html[data-bs-theme="light"] {
    --footer-bg: var(--gt-bg, #f8fafc);
    --footer-surface: var(--gt-surface, #ffffff);
    --footer-surface-2: var(--gt-surface-2, #eef3ff);
    --footer-text: var(--gt-text, #172033);
    --footer-muted: var(--gt-muted, #526174);
    --footer-border: var(--gt-border, #dce3ec);
}

html, body {
    min-height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.landing-main,
body > .landing-main {
    flex: 1 0 auto;
    width: 100%;
}

.footer-spacer {
    height: 0;
    margin: 0;
    padding: 0;
}

.landing-footer {
    position: static !important;
    inset: auto !important;
    width: 100%;
    flex: 0 0 auto;
    margin-top: 48px;
    padding: 0;
    background: var(--footer-bg);
    color: var(--footer-text);
    border-top: 1px solid var(--footer-border);
    transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}

.landing-footer .container {
    width: 100%;
}

.footer-newsletter {
    margin: 0 0 56px;
    padding: 42px 0;
    background: linear-gradient(135deg, var(--footer-surface-2), var(--footer-surface));
    border-bottom: 1px solid var(--footer-border);
}

.footer-newsletter h3 {
    margin: 0;
    color: var(--footer-text);
    font-size: clamp(1.15rem, 2vw, 1.65rem);
    line-height: 1.45;
    font-weight: 700;
}

.newsletter-form {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
}

.newsletter-form input {
    flex: 1 1 auto;
    min-width: 0;
    height: 56px;
    padding: 0 0 0 2px;
    border: 0;
    border-bottom: 2px solid var(--footer-border);
    border-radius: 0;
    outline: none;
    background: transparent;
    color: var(--footer-text);
    font: inherit;
}

.newsletter-form input::placeholder {
    color: var(--footer-muted);
    opacity: 1;
}

.newsletter-form input:focus {
    border-bottom-color: var(--footer-accent);
}

.newsletter-form button {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: var(--footer-button);
    color: #fff;
    cursor: pointer;
}

.footer-content {
    display: grid;
    grid-template-columns: minmax(240px, 1.7fr) repeat(2, minmax(150px, 1fr)) minmax(240px, 1.3fr);
    gap: 48px;
    padding: 30px 0 52px;
}

.footer-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.footer-logo {
    display: block;
    width: auto;
    max-width: 180px;
    height: auto;
    max-height: 54px;
    object-fit: contain;
}

.footer-logo-text {
    color: var(--footer-text);
    font-weight: 700;
    font-size: 1.1rem;
}

.footer-description {
    max-width: 390px;
    margin: 28px 0 0;
    color: var(--footer-muted);
    line-height: 1.7;
}

.social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.social-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--footer-border);
    border-radius: 50%;
    color: var(--footer-text);
    text-decoration: none;
    transition: color .2s ease, border-color .2s ease, transform .2s ease;
}

.social-icon:hover {
    color: var(--footer-accent);
    border-color: var(--footer-accent);
    transform: translateY(-1px);
}

.footer-links h4,
.footer-contact h4 {
    margin: 0 0 24px;
    color: var(--footer-text);
    font-size: 1.05rem;
    font-weight: 700;
}

.footer-links h4::after,
.footer-contact h4::after {
    content: "";
    display: block;
    width: 42px;
    height: 3px;
    margin-top: 12px;
    border-radius: 2px;
    background: var(--footer-accent);
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin: 0 0 13px;
}

.footer-links a,
.footer-contact a,
.footer-contact span {
    color: var(--footer-muted);
    text-decoration: none;
    line-height: 1.5;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--footer-accent);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0 0 18px;
}

.footer-contact li svg {
    flex: 0 0 auto;
    margin-top: 3px;
    color: var(--footer-accent);
}

.footer-bottom {
    border-top: 1px solid var(--footer-border);
    padding: 22px 0;
}

.footer-bottom-content {
      display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    color: var(--footer-muted);
    font-size: .95rem;
}

.footer-bottom .gtranslate_wrapper {
    min-height: 24px;
}

@media (max-width: 991.98px) {
    .landing-footer {
        margin-top: 36px;
    }

    .footer-newsletter {
        margin-bottom: 40px;
        padding: 32px 0;
    }

    .footer-newsletter .row {
        --bs-gutter-y: 28px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 36px 28px;
        padding-bottom: 38px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-bottom-content {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 575.98px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-brand {
        grid-column: auto;
    }

    .newsletter-form {
        gap: 10px;
    }

    .newsletter-form input {
        height: 50px;
    }

    .newsletter-form button {
        flex-basis: 50px;
        width: 50px;
        height: 50px;
    }

    .footer-logo {
        max-width: 155px;
    }
}

