/* VN Elements — sitewide footer + call chip
   Values from horizons/VN/Latest mockups (shared footer, call chip) at 1920 and their responsive rules.
   Colors, sizes and position come from VN Elements settings as CSS vars (inline on :root).
   Breakpoints: tablet ≤1024 · mobile ≤767 · small ≤480 */

/* ── Footer ─────────────────────────────────────────────────────────── */

.vn-footer {
    background-color: var(--vn-footer-bg, var(--vn-footer));
    color: var(--vn-footer-text, var(--vn-white));
    font-family: var(--vn-font-body);
    padding: clamp(28px, 3vw, 50px) clamp(24px, 7.5vw, 144px);
}

.vn-footer a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.vn-footer a:hover,
.vn-footer a:focus-visible {
    color: inherit;
    opacity: 0.75;
}

.vn-footer a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.vn-footer__grid {
    max-width: 1780px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto repeat(3, minmax(0, 1fr)) auto;
    gap: clamp(24px, 4vw, 90px);
    align-items: start;
}

.vn-footer__grid > * { min-width: 0; }

.vn-footer .vn-footer__logo { display: block; width: clamp(90px, 10vw, 196px); }

.vn-footer__logo img {
    display: block;
    width: 100%;
    height: auto;
}

.vn-footer .vn-footer__heading {
    margin: 0 0 10px;
    font-family: var(--vn-font-body);
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: inherit;
}

.vn-footer__links,
.vn-footer__social,
.vn-footer__legal {
    list-style: none;
    margin: 0;
    padding: 0;
}

.vn-footer__links li {
    margin: 0 0 10px;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.35;
}

.vn-footer__contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

/* Icon color follows the footer text color (BUG-025/027) */
.vn-footer .vn-footer__icon {
    flex: none;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    color: inherit;
    fill: currentColor;
}

.vn-footer__social {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 16px;
}

.vn-footer__social a { display: flex; }

.vn-footer__social svg {
    display: block;
    width: 26px;
    height: 26px;
    fill: currentColor;
}

/* Image above the tagline (Equal Housing Opportunity logo by default) */
.vn-footer .vn-footer__badge {
    display: block;
    width: var(--vn-footer-badge-w, 84px);
    max-width: 100%;
    height: auto;
    margin: 0 0 14px;
}

/* Alignment within the tagline column (the column is as wide as its widest line) */
.vn-footer .vn-footer__badge--center { margin-left: auto; margin-right: auto; }
.vn-footer .vn-footer__badge--right  { margin-left: auto; margin-right: 0; }

.vn-footer .vn-footer__slam {
    margin: 0 0 12px;
    font-family: var(--vn-font-display);
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.35;
}

.vn-footer .vn-footer__note {
    margin: 0 0 12px;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.5;
}

.vn-footer__bottom {
    max-width: 1780px;
    margin: clamp(24px, 3vw, 40px) auto 0;
    padding-top: 20px;
    border-top: 1px solid color-mix(in srgb, currentColor 25%, transparent);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px 24px;
    font-size: 0.9rem;
}

.vn-footer__copy { margin: 0; }

.vn-footer__legal { display: flex; flex-wrap: wrap; gap: 8px 20px; }

@media (max-width: 1024px) {
    .vn-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 28px; }
    .vn-footer .vn-footer__logo,
    .vn-footer__tagline { grid-column: 1 / -1; }
    .vn-footer .vn-footer__slam { font-size: 1.35rem; }
}

@media (max-width: 767px) {
    .vn-footer { padding: 32px 22px 36px; }
    .vn-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; }
    .vn-footer .vn-footer__slam { font-size: 1.3rem; }
    /* Clear the fixed call bar */
    .vn-chip-mobile-bar .vn-footer { padding-bottom: 104px; }
}

@media (max-width: 480px) {
    .vn-footer__grid { gap: 22px 16px; }
    .vn-footer__links li { font-size: 0.95rem; }
}

/* ── Call chip ──────────────────────────────────────────────────────── */

.vn-chip {
    --vn-chip-scale: 1;
    position: fixed;
    z-index: 999;
    top: var(--vn-chip-top, 24px);
    right: var(--vn-chip-right, 24px);
    display: flex;
    align-items: center;
    gap: calc(18px * var(--vn-chip-scale));
    max-width: calc(100vw - 32px);
    padding: calc(14px * var(--vn-chip-scale)) calc(22px * var(--vn-chip-scale));
    background-color: var(--vn-chip-bg, var(--vn-white));
    border-radius: var(--vn-chip-radius, 10px);
    box-shadow: 0 4px 11.8px 11px rgba(0, 0, 0, 0.08);
    font-family: var(--vn-chip-font, var(--vn-font-body));
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

a.vn-chip:hover,
a.vn-chip:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px 8px rgba(0, 0, 0, 0.12);
}

a.vn-chip:focus-visible {
    outline: 3px solid var(--vn-chip-num, var(--vn-navy));
    outline-offset: 3px;
}

.admin-bar .vn-chip { top: calc(var(--vn-chip-top, 24px) + 32px); }

.vn-chip .vn-chip__icon {
    flex: none;
    display: flex;
    width: calc(var(--vn-chip-icon, 56px) * var(--vn-chip-scale));
    height: calc(var(--vn-chip-icon, 56px) * var(--vn-chip-scale));
    color: var(--vn-chip-icon-color, var(--vn-navy));
}

.vn-chip .vn-chip__icon svg,
.vn-chip .vn-chip__icon img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: contain;
    fill: currentColor;
}

.vn-chip__text { display: block; min-width: 0; }

.vn-chip__num,
.vn-chip__line { display: block; }

.vn-chip__num {
    font-size: calc(var(--vn-chip-num-size, 20px) * var(--vn-chip-scale));
    font-weight: var(--vn-chip-num-weight, 700);
    line-height: 1.2;
    color: var(--vn-chip-num, var(--vn-navy));
    white-space: nowrap;
}

.vn-chip__line {
    font-size: calc(var(--vn-chip-line-size, 14px) * var(--vn-chip-scale));
    font-style: var(--vn-chip-line-style, italic);
    line-height: 1.45;
}

.vn-chip__line--2 { font-weight: 600; color: var(--vn-chip-line2, var(--vn-navy)); }
.vn-chip__line--3 { font-weight: 500; color: var(--vn-chip-line3, var(--vn-blue)); }

@media (max-width: 1440px) {
    .vn-chip { --vn-chip-scale: 0.85; }
}

@media (max-width: 1024px) {
    .vn-chip { --vn-chip-scale: 0.75; top: 16px; right: 16px; }
    .admin-bar .vn-chip { top: 48px; }
}

@media (max-width: 782px) {
    .admin-bar .vn-chip { top: 62px; }
}

@media (max-width: 767px) {
    .vn-chip { --vn-chip-scale: 0.7; }

    /* Bottom bar so the chip never lands on top of body copy */
    .vn-chip-mobile-bar .vn-chip,
    .vn-chip-mobile-bar.admin-bar .vn-chip {
        top: auto;
        bottom: 12px;
        left: 12px;
        right: 12px;
        max-width: none;
        justify-content: center;
    }

    .vn-chip-mobile-corner .vn-chip,
    .vn-chip-mobile-corner.admin-bar .vn-chip {
        top: auto;
        bottom: 16px;
        right: 16px;
    }

    .vn-chip-mobile-hide .vn-chip { display: none; }
}

@media print {
    .vn-chip { display: none; }
}
