/**
 * Vision Research - Custom Footer Styles
 * Uses global --vr-* tokens from variables.css
 */

/* ============================================
   MAIN FOOTER
   ============================================ */
.vr-footer {
    font-family: var(--vr-font-primary);
    margin-top: auto;
}

.vr-footer__main {
    background: var(--vr-dark);
    padding: 56px 0 40px;
}

.vr-footer__container {
    max-width: var(--vr-container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.vr-footer__main > .vr-footer__container {
    display: grid;
    grid-template-columns: 260px 1fr 1fr 1.6fr;
    gap: 48px;
}

/* ============================================
   COLUMN STYLES
   ============================================ */
.vr-footer__col {
    display: flex;
    flex-direction: column;
}

/* Logo */
.vr-footer__logo {
    display: inline-block;
    margin-bottom: 16px;
    text-decoration: none;
}

.vr-footer__logo img {
    max-width: 150px;
    height: auto;
}

/* Tagline */
.vr-footer__tagline {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    line-height: 1.6;
    margin: 0 0 16px;
}

.vr-footer__company {
    margin: 0 0 20px;
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.vr-footer__company p {
    margin: 0;
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
    line-height: 1.7;
}

/* Trust items */
.vr-footer__trust {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vr-footer__trust li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
    font-weight: 500;
}

.vr-footer__trust svg {
    flex-shrink: 0;
    color: var(--vr-primary);
    opacity: 0.9;
}

/* Column headings */
.vr-footer__heading {
    color: rgba(255, 255, 255, 0.95);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 20px;
}

/* Link lists */
.vr-footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vr-footer__links a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.vr-footer__links a:hover {
    color: rgba(255, 255, 255, 0.95);
}

/* ============================================
   CONTACT COLUMN
   ============================================ */
.vr-footer__email,
.vr-footer__phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.vr-footer__email {
    margin-bottom: 8px;
}

.vr-footer__phone {
    margin-bottom: 24px;
}

.vr-footer__email svg,
.vr-footer__phone svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.vr-footer__email:hover,
.vr-footer__phone:hover {
    color: rgba(255, 255, 255, 0.95);
}

/* ============================================
   FOOTER NEWSLETTER
   ============================================ */
.vr-footer__newsletter {
    margin-top: 0;
    max-width: 380px;
}

.vr-footer__newsletter-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    font-weight: 500;
    margin: 0 0 10px;
}

.vr-footer__newsletter-label span {
    color: var(--vr-primary);
    font-weight: 600;
}

.vr-footer__newsletter-row {
    display: flex;
    gap: 0;
}

.vr-footer .vr-footer__newsletter-input {
    flex: 1;
    min-width: 120px;
    padding: 11px 14px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-right: none;
    border-radius: var(--vr-radius-sm) 0 0 var(--vr-radius-sm);
    color: #fff;
    font-size: 14px;
    font-family: var(--vr-font-primary);
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.vr-footer .vr-footer__newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.vr-footer .vr-footer__newsletter-input:focus {
    background: rgba(255, 255, 255, 0.16);
    border-color: var(--vr-primary);
}

.vr-footer__newsletter-btn {
    padding: 11px 20px;
    background: var(--vr-primary);
    color: #fff;
    border: none;
    border-radius: 0 var(--vr-radius-sm) var(--vr-radius-sm) 0;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--vr-font-primary);
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.vr-footer__newsletter-btn:hover {
    background: var(--vr-primary-hover);
}

.vr-footer__newsletter-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.vr-footer__newsletter-btn-loading svg {
    animation: vr-footer-spin 0.8s linear infinite;
}

@keyframes vr-footer-spin {
    to { transform: rotate(360deg); }
}

/* Success state */
.vr-footer__newsletter-success {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--vr-green);
    font-size: 13px;
    font-weight: 500;
    padding: 8px 0;
}

.vr-footer__newsletter-success svg {
    flex-shrink: 0;
}

/* Error state */
.vr-footer__newsletter-error {
    color: #f87171;
    font-size: 12px;
    margin-top: 6px;
}

/* ============================================
   BOTTOM BAR
   ============================================ */
.vr-footer__bottom {
    background: var(--vr-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 0;
}

.vr-footer__bottom-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 20px;
}

.vr-footer__copyright {
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
}

.vr-footer__legal {
    display: flex;
    align-items: center;
    gap: 6px;
}

.vr-footer__legal a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    font-size: 12px;
    transition: color 0.2s ease;
}

.vr-footer__legal a:hover {
    color: rgba(255, 255, 255, 0.7);
}

.vr-footer__legal a + a::before {
    content: "\00B7";
    margin-right: 6px;
    color: rgba(255, 255, 255, 0.25);
}

.vr-footer__disclaimer {
    width: 100%;
    text-align: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 11px;
    font-style: italic;
    margin: 4px 0 0;
}

/* ============================================
   RESPONSIVE: TABLET (≤1024px)
   ============================================ */
@media (max-width: 1024px) {
    .vr-footer__main {
        padding: 44px 0 32px;
    }

    .vr-footer__main > .vr-footer__container {
        grid-template-columns: 1fr 1fr;
        gap: 36px 32px;
    }
}

/* ============================================
   RESPONSIVE: MOBILE (≤768px)
   ============================================ */
@media (max-width: 768px) {
    .vr-footer__main {
        padding: 36px 0 28px;
    }

    .vr-footer__main > .vr-footer__container {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .vr-footer__col--brand {
        text-align: center;
        align-items: center;
    }

    .vr-footer__trust {
        align-items: center;
    }

    .vr-footer__heading {
        font-size: 13px;
    }

    .vr-footer__bottom-inner {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .vr-footer__legal {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ============================================
   RESPONSIVE: SMALL MOBILE (≤530px)
   ============================================ */
@media (max-width: 530px) {
    .vr-footer__main {
        padding: 32px 0 24px;
    }

    .vr-footer__container {
        padding: 0 16px;
    }

    .vr-footer__newsletter-row {
        flex-direction: column;
        gap: 8px;
    }

    .vr-footer .vr-footer__newsletter-input {
        border-right: 1px solid rgba(255, 255, 255, 0.22);
        border-radius: var(--vr-radius-sm);
    }

    .vr-footer__newsletter-btn {
        border-radius: var(--vr-radius-sm);
        padding: 12px 18px;
    }
}

/* ============================================
   SAFETY: HIDE BLOCKSY DEFAULT FOOTER
   ============================================ */
footer.ct-footer {
    display: none !important;
}
