/* ===========================================
   footer.css — Dark navy footer
   Clean, refined layout matching header style.
   All colors flow from --brand-* (admin Branding panel).
   =========================================== */

.site-footer {
    font-family: var(--brand-font-body, 'Inter', sans-serif);
    margin-top: auto;
    color: var(--brand-text, #E8EEF7);
    position: relative;
}

.site-footer *, .site-footer *::before, .site-footer *::after { box-sizing: border-box; }

/* ---- Main section ---- */
.site-footer__main {
    background: var(--brand-bg-secondary, #1A2F4F);
    border-top: 1px solid color-mix(in srgb, var(--brand-accent) 70%, transparent);
    padding: 48px 0 40px;
    position: relative;
}

/* Subtle top accent line — sky-blue gradient */
.site-footer__main::before {
    content: '';
    position: absolute;
    left: 0; right: 0; top: 0; height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        color-mix(in srgb, var(--brand-secondary) 45%, transparent) 50%,
        transparent 100%
    );
    pointer-events: none;
}

.site-footer__inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 36px;
}

/* ---- Brand column (left) ---- */
.site-footer__brand-col {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.site-footer__brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    text-decoration: none;
}

.site-footer__logo {
    height: 192px;
    width: auto;
    object-fit: contain;
}

.site-footer__company {
    font-family: var(--brand-font-heading, 'Inter', sans-serif);
    font-weight: var(--brand-font-heading-weight, 700);
    font-size: 20px;
    color: var(--brand-text, #E8EEF7);
    letter-spacing: -0.02em;
}

/* Contacts */
.site-footer__contacts {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.site-footer__contact-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 14px;
    color: var(--brand-text-secondary, #9AAFC9);
    text-decoration: none;
    transition: color 0.25s ease;
}

a.site-footer__contact-link:hover {
    color: var(--brand-secondary, #5BA3F5);
}

.site-footer__contact-link svg {
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity 0.25s ease, color 0.25s ease;
}

a.site-footer__contact-link:hover svg {
    opacity: 1;
    color: var(--brand-secondary, #5BA3F5);
}

/* Social */
.site-footer__social {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 4px;
}

.site-footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    color: var(--brand-text-secondary, #9AAFC9);
    background: color-mix(in srgb, var(--brand-text) 5%, transparent);
    border: 1px solid color-mix(in srgb, var(--brand-accent) 55%, transparent);
    transition: color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.site-footer__social-link:hover {
    color: var(--brand-secondary, #5BA3F5);
    background: color-mix(in srgb, var(--brand-primary) 14%, transparent);
    border-color: color-mix(in srgb, var(--brand-secondary) 55%, transparent);
    box-shadow: 0 0 18px color-mix(in srgb, var(--brand-secondary) 40%, transparent);
    transform: translateY(-2px);
}

.site-footer__social-link:focus-visible {
    outline: 2px solid var(--brand-secondary, #5BA3F5);
    outline-offset: 2px;
}

.site-footer__social-link svg { width: 20px; height: 20px; }
.site-footer__social-link img { width: 20px; height: 20px; object-fit: contain; }

/* ---- Dynamic columns (right) ---- */
.site-footer__columns {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 28px;
}

.site-footer__col-title {
    font-family: var(--brand-font-heading, 'Inter', sans-serif);
    font-weight: 600;
    font-size: 15px;
    color: var(--brand-text, #E8EEF7);
    margin: 0 0 14px 0;
    position: relative;
    padding-bottom: 8px;
    letter-spacing: 0.01em;
}

.site-footer__col-title::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 24px; height: 2px;
    border-radius: 2px;
    background: var(--brand-secondary, #5BA3F5);
    box-shadow: 0 0 8px color-mix(in srgb, var(--brand-secondary) 60%, transparent);
}

.site-footer__col-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.site-footer__col-link {
    font-size: 14px;
    color: var(--brand-text-secondary, #9AAFC9);
    text-decoration: none;
    transition: color 0.25s ease, transform 0.25s ease;
    display: inline-block;
    position: relative;
}

.site-footer__col-link::before {
    content: '';
    position: absolute;
    left: -10px; top: 50%;
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--brand-secondary, #5BA3F5);
    opacity: 0;
    transform: translateY(-50%) scale(0.6);
    transition: opacity 0.25s ease, transform 0.25s ease;
    box-shadow: 0 0 6px color-mix(in srgb, var(--brand-secondary) 55%, transparent);
}

.site-footer__col-link:hover {
    color: var(--brand-secondary, #5BA3F5);
    transform: translateX(4px);
}

.site-footer__col-link:hover::before {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

.site-footer__col-link:focus-visible {
    outline: 2px solid var(--brand-secondary, #5BA3F5);
    outline-offset: 3px;
    border-radius: 2px;
}

/* ---- Bottom bar ---- */
.site-footer__bottom {
    background: var(--brand-bg, #0F1E36);
    border-top: 1px solid color-mix(in srgb, var(--brand-accent) 70%, transparent);
    padding: 18px 0;
}

.site-footer__bottom-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

.site-footer__copyright {
    font-size: 13px;
    color: var(--brand-text-secondary, #9AAFC9);
}

.site-footer__legal {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.site-footer__legal-link {
    font-size: 13px;
    color: var(--brand-text-secondary, #9AAFC9);
    text-decoration: none;
    transition: color 0.25s ease;
}

.site-footer__legal-link:hover {
    color: var(--brand-secondary, #5BA3F5);
}

.site-footer__legal-link:focus-visible {
    outline: 2px solid var(--brand-secondary, #5BA3F5);
    outline-offset: 3px;
    border-radius: 2px;
}

/* ===========================================
   RESPONSIVE — Tablet (768px+)
   =========================================== */
@media (min-width: 768px) {
    .site-footer__inner {
        padding: 0 28px;
        flex-direction: row;
        align-items: flex-start;
        gap: 48px;
    }

    .site-footer__brand-col {
        flex-shrink: 0;
        width: 280px;
    }

    .site-footer__columns {
        flex: 1;
        padding-top: 4px;
    }

    .site-footer__bottom-inner {
        padding: 0 28px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

/* ===========================================
   RESPONSIVE — Desktop (1024px+)
   =========================================== */
@media (min-width: 1024px) {
    .site-footer__main {
        padding: 56px 0 44px;
    }

    .site-footer__inner {
        padding: 0 40px;
        gap: 80px;
    }

    .site-footer__brand-col {
        width: 320px;
    }

    .site-footer__bottom-inner {
        padding: 0 40px;
    }
}

/* ===========================================
   REDUCED MOTION
   =========================================== */
@media (prefers-reduced-motion: reduce) {
    .site-footer * {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
    .site-footer__col-link:hover { transform: none; }
    .site-footer__social-link:hover { transform: none; }
}
