/**
 * BioCode Custom Footer Styles
 * Redesigned 2026-05-25 — Teal & Navy brand-matched palette
 *
 * Colour palette:
 *   --bc-footer-bg         : #0b1d35  (deep navy)
 *   --bc-footer-bottom-bg  : #06121f  (darker navy for copyright bar)
 *   --bc-footer-border     : rgba(255,255,255,0.07)
 *   --bc-footer-text       : #94a3b8  (slate-grey body text)
 *   --bc-footer-heading    : #ffffff
 *   --bc-footer-link-hover : #05A79D  (BioCode teal — from logo)
 *   --bc-footer-accent     : #05A79D  (top 3px border)
 *   --bc-footer-social-bg  : rgba(5,167,157,0.10)
 *   --bc-footer-social-hover: rgba(5,167,157,0.22)
 *
 * @package TutorStarter_Child
 */

/* ─── Custom properties ──────────────────────────────────────────────────── */
.biocode-footer {
    --bc-footer-bg:           #0b1d35;
    --bc-footer-bottom-bg:    #06121f;
    --bc-footer-border:       rgba(255, 255, 255, 0.07);
    --bc-footer-text:         #94a3b8;
    --bc-footer-heading:      #ffffff;
    --bc-footer-link-hover:   #05A79D;
    --bc-footer-accent:       #05A79D;
    --bc-footer-social-bg:    rgba(5, 167, 157, 0.10);
    --bc-footer-social-hover: rgba(5, 167, 157, 0.22);
    --bc-footer-social-color: #7ec8c2;
}

/* ─── Root element ───────────────────────────────────────────────────────── */
.biocode-footer {
    background-color: var(--bc-footer-bg);
    color: var(--bc-footer-text);
    font-family: inherit;
    font-size: 0.9375rem;
    line-height: 1.6;

    /* 3 px teal accent line at the very top */
    border-top: 3px solid var(--bc-footer-accent);
}

/* ─── Reset any parent theme footer styles that bleed in ─────────────────── */
.biocode-footer,
.biocode-footer * {
    box-sizing: border-box;
}

/* Suppress parent theme's footer-widgets section if accidentally output */
.biocode-footer .footer-widgets {
    display: none !important;
}

/* ─── Main body ──────────────────────────────────────────────────────────── */
.biocode-footer__main {
    padding: 64px 0 52px;
    border-bottom: 1px solid var(--bc-footer-border);
}

/* ─── Grid: brand col (wider) + 3 nav cols ───────────────────────────────── */
.biocode-footer__grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr 1fr 1fr;
    gap: 48px 36px;
    align-items: start;
}

/* ─── Brand column ───────────────────────────────────────────────────────── */
.biocode-footer__brand {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

/* Logo */
.biocode-footer__logo-link {
    display: inline-block;
    line-height: 0;
    text-decoration: none;
}

.biocode-footer__logo {
    max-width: 150px;
    height: auto;
    /* Do NOT invert — let the SVG render its own colours */
    filter: none;
    transition: opacity 0.2s ease;
}

.biocode-footer__logo-link:hover .biocode-footer__logo,
.biocode-footer__logo-link:focus .biocode-footer__logo {
    opacity: 0.85;
}

/* Tagline */
.biocode-footer__tagline {
    color: var(--bc-footer-text);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin: 0;
    max-width: 290px;
}

/* ─── Contact details ────────────────────────────────────────────────────── */
.biocode-footer__contact {
    display: flex;
    flex-direction: column;
    gap: 11px;
    font-style: normal;
    color: var(--bc-footer-text);
    font-size: 0.875rem;
}

.biocode-footer__contact-row {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    line-height: 1.45;
    color: inherit;
    text-decoration: none;
}

.biocode-footer__contact-link {
    transition: color 0.2s ease;
}

.biocode-footer__contact-link:hover,
.biocode-footer__contact-link:focus {
    color: var(--bc-footer-link-hover);
    text-decoration: none;
    outline: none;
}

.biocode-footer__contact-icon {
    flex-shrink: 0;
    margin-top: 2px;
    opacity: 0.55;
    color: var(--bc-footer-heading);
}

/* ─── Social icons ───────────────────────────────────────────────────────── */
.biocode-footer__social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 2px;
}

.biocode-footer__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--bc-footer-social-bg);
    border: 1px solid rgba(5, 167, 157, 0.2);
    color: var(--bc-footer-social-color);
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease,
                border-color 0.2s ease, transform 0.15s ease;
}

.biocode-footer__social-link:hover,
.biocode-footer__social-link:focus {
    background: var(--bc-footer-social-hover);
    border-color: rgba(5, 167, 157, 0.55);
    color: #ffffff;
    transform: translateY(-2px);
    outline: none;
    text-decoration: none;
}

.biocode-footer__social-link:focus-visible {
    outline: 2px solid var(--bc-footer-accent);
    outline-offset: 2px;
}

/* ─── Nav columns ────────────────────────────────────────────────────────── */
.biocode-footer__col {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.biocode-footer__col-title {
    color: var(--bc-footer-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0;
    padding: 0;
    line-height: 1;

    /* Subtle teal underline accent */
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(5, 167, 157, 0.25);
}

.biocode-footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.biocode-footer__links li {
    margin: 0;
    padding: 0;
}

.biocode-footer__links a {
    color: var(--bc-footer-text);
    text-decoration: none;
    font-size: 0.9375rem;
    line-height: 1.4;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease, gap 0.2s ease;
}

.biocode-footer__links a::before {
    content: '';
    display: inline-block;
    width: 0;
    height: 1px;
    background: var(--bc-footer-link-hover);
    transition: width 0.2s ease;
    flex-shrink: 0;
    vertical-align: middle;
    margin-top: 1px;
}

.biocode-footer__links a:hover,
.biocode-footer__links a:focus {
    color: var(--bc-footer-link-hover);
    text-decoration: none;
    outline: none;
}

.biocode-footer__links a:hover::before,
.biocode-footer__links a:focus::before {
    width: 10px;
}

.biocode-footer__links a:focus-visible {
    outline: 2px solid var(--bc-footer-accent);
    outline-offset: 2px;
    border-radius: 2px;
}

/* ─── Bottom copyright bar ───────────────────────────────────────────────── */
.biocode-footer__bottom {
    background-color: var(--bc-footer-bottom-bg);
    padding: 16px 0;
}

.biocode-footer__bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.biocode-footer__copyright {
    font-size: 0.875rem;
    color: var(--bc-footer-text);
    opacity: 0.65;
}

/* Legal links */
.biocode-footer__legal {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.biocode-footer__legal a {
    font-size: 0.875rem;
    color: var(--bc-footer-text);
    text-decoration: none;
    opacity: 0.65;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.biocode-footer__legal a:hover,
.biocode-footer__legal a:focus {
    color: var(--bc-footer-link-hover);
    opacity: 1;
    text-decoration: none;
    outline: none;
}

.biocode-footer__legal-dot {
    color: var(--bc-footer-text);
    opacity: 0.3;
    pointer-events: none;
    user-select: none;
}

/* ─── Responsive — Tablet (≤ 960px) ─────────────────────────────────────── */
@media (max-width: 960px) {
    .biocode-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 44px 28px;
    }

    /* Brand spans full width on tablet */
    .biocode-footer__brand {
        grid-column: 1 / -1;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 28px 48px;
        align-items: flex-start;
    }

    .biocode-footer__tagline {
        max-width: 380px;
    }

    .biocode-footer__main {
        padding: 48px 0 44px;
    }
}

/* ─── Responsive — Mobile (≤ 600px) ─────────────────────────────────────── */
@media (max-width: 600px) {
    .biocode-footer__grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .biocode-footer__brand {
        flex-direction: column;
        gap: 18px;
    }

    .biocode-footer__tagline {
        max-width: 100%;
    }

    .biocode-footer__main {
        padding: 40px 0 36px;
    }

    .biocode-footer__bottom-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* ─── Reduce motion ──────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .biocode-footer__logo,
    .biocode-footer__social-link,
    .biocode-footer__links a,
    .biocode-footer__links a::before,
    .biocode-footer__contact-link {
        transition: none;
    }

    .biocode-footer__social-link:hover,
    .biocode-footer__social-link:focus {
        transform: none;
    }
}
