/* =========================
   Footer Styles
   ========================= */
.custom-footer {
    margin-top: 0;
    background:
        linear-gradient(rgba(10, 10, 26, 0.88), rgba(10, 10, 26, 0.88)),
        url("/media/dark_section_bg.jpg") center / cover no-repeat,
        var(--color-surface-dark);
    color: var(--color-details);
    font-size: var(--text-sm);
    line-height: var(--leading-normal);
    font-family: var(--font-body);
    border-top: 3px solid transparent;
    border-image: var(--gradient-border) 1;
    border-image-slice: 1 0 0 0;
}

/* ---------- Footer Columns / Rows ---------- */
.custom-footer .row {
    margin-bottom: var(--space-4);
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
}

/* ---------- Footer Titles / Labels ---------- */
.custom-footer-label {
    color: var(--color-primary);
    font-size: var(--text-sm);
    font-weight: 600;
    font-family: var(--font-heading);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: var(--space-2);
}

/* ---------- Footer Links ---------- */
.custom-footer .list-unstyled li {
    margin-bottom: var(--space-1);
}

.custom-footer .list-unstyled li a {
    color: var(--color-details);
    text-decoration: none;
    position: relative;
    transition: color var(--transition-base);
}

/* Subtle underline hover effect */
.custom-footer .list-unstyled li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0%;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-base);
}

.custom-footer .list-unstyled li a:hover::after,
.custom-footer .list-unstyled li a:focus-visible::after {
    width: 100%;
}

.custom-footer .list-unstyled li a:hover,
.custom-footer .list-unstyled li a:focus-visible {
    color: var(--color-primary);
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* ---------- Address Styling ---------- */
.custom-footer address {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.custom-footer address a {
    color: var(--color-details);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color var(--transition-base);
}

.custom-footer address a:hover,
.custom-footer address a:focus-visible {
    color: var(--color-primary);
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* ---------- Social Icons ---------- */
.custom-footer .fab {
    color: var(--color-details);
    transition: color var(--transition-base), transform var(--transition-base);
}

.custom-footer .fa-linkedin:hover,
.custom-footer .fa-linkedin:focus-visible {
    transform: translateY(-3px);
    color: #0a66c2;
}

.custom-footer .fa-facebook:hover,
.custom-footer .fa-facebook:focus-visible {
    transform: translateY(-3px);
    color: #1877f2;
}

.custom-footer .fa-instagram:hover,
.custom-footer .fa-instagram:focus-visible {
    transform: translateY(-3px);
    color: #e4405f;
}

.custom-footer .fab:hover,
.custom-footer .fab:focus-visible {
    transform: translateY(-3px);
}

.custom-row-socials a {
    margin: 0 var(--space-1);
    display: inline-block;
}

/* Screenreader span for icons */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ---------- Dividers ---------- */
.footer-divider {
    margin: var(--space-4) 0;
    padding-top: var(--space-2);
}

.footer-divider hr {
    border: 1px solid var(--color-primary);
    width: 50%;
    margin: var(--space-1) auto;
}

/* ---------- Copyright Divider ---------- */
.footer-copyright-divider {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--color-border-light) 30%, var(--color-border-light) 70%, transparent 100%);
    width: 60%;
    margin: 0 auto var(--space-3);
}

/* ---------- Copyright ---------- */
.custom-footer small {
    display: block;
    margin-top: var(--space-1);
    color: var(--color-details);
    font-size: var(--text-xs);
}

/* ---------- Back to top ---------- */
.back-to-top {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-details);
    text-decoration: none;
    font-size: var(--text-sm);
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-border-dark);
    border-radius: var(--radius-full);
    transition: color var(--transition-base), transform var(--transition-base),
                background-color var(--transition-base), border-color var(--transition-base);
    margin-bottom: var(--space-4);
}

.back-to-top:hover {
    color: var(--color-primary);
    transform: translateY(-2px);
    background: var(--glass-bg);
    border-color: var(--color-border-light);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .custom-footer {
        padding: var(--space-6) var(--space-2) var(--space-4);
    }
}

@media (max-width: 576px) {
    .custom-footer .col-sm {
        margin-bottom: var(--space-4);
    }

    .custom-footer-label {
        font-size: var(--text-base);
    }

    .custom-row-socials a {
        margin: 0 var(--space-1);
    }

    .custom-footer .list-unstyled li {
        margin-bottom: var(--space-2);
    }

    .custom-footer .list-unstyled li a {
        display: inline-block;
        padding-block: 4px;
    }
}

.footer-svg-divider {
    fill: var(--color-surface-dark);
    padding-bottom: 0;
}

/* ---------- Footer Legal Section ---------- */
.footer-legal-section {
    padding-top: var(--space-3);
}

.footer-links {
    padding-bottom: var(--space-1);
}

/* ============================================================
   SHINE-8 — Footer polish
   ============================================================
   Adds a brand-row hero above the metadata columns so the footer
   opens with presence; gives social icons a small framed
   treatment; promotes the "powered by" attribution from a faded
   line to a small intentional badge.
   ============================================================ */

.footer-brand-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: var(--space-6);
    flex-wrap: wrap;
    padding: 0 var(--space-3) var(--space-5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: var(--space-6);
}

.footer-brand-mark {
    font-family: var(--font-heading);
    font-size: clamp(24px, 3vw, 38px);
    font-weight: 700;
    color: var(--color-text-light);
    letter-spacing: -0.025em;
    line-height: 1;
    display: block;
}
.footer-brand-accent {
    color: var(--color-primary);
}
.footer-brand-tagline {
    font-size: 0.95rem;
    color: var(--color-text-light-dim);
    margin: 0.65rem 0 0;
    max-width: 52ch;
    line-height: 1.5;
}

.footer-cta {
    color: var(--color-text-light);
    font-family: var(--font-heading);
    font-size: 1.0625rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.75rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition:
        color 0.2s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1)),
        border-color 0.2s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1)),
        background 0.2s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1)),
        gap 0.2s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1));
}
.footer-cta:hover,
.footer-cta:focus-visible {
    color: var(--color-primary);
    border-color: var(--color-primary);
    background: rgba(252, 177, 92, 0.08);
    gap: 0.85em;
    text-decoration: none;
}
.footer-cta-arrow {
    font-family: ui-monospace, 'SF Mono', monospace;
    transition: transform 0.2s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1));
}

.custom-footer .footer-social-icons {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem !important;
}
.custom-footer .footer-social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: var(--color-text-light-dim);
    transition:
        border-color 0.2s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1)),
        color 0.2s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1)),
        transform 0.2s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1));
}
.custom-footer .footer-social-icons a:hover,
.custom-footer .footer-social-icons a:focus-visible {
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-2px);
}

.footer-built-with {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    font-family: ui-monospace, 'SF Mono', monospace;
    font-size: 0.75rem;
    color: var(--color-text-light-dim);
    letter-spacing: 0.02em;
}

@media (max-width: 768px) {
    .footer-brand-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .footer-cta {
        width: 100%;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .footer-cta,
    .footer-cta-arrow,
    .custom-footer .footer-social-icons a {
        transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    }
    .footer-cta:hover,
    .custom-footer .footer-social-icons a:hover {
        gap: 0.5em;
        transform: none;
    }
}
