/* =========================================
   FOOTER — uses theme tokens defined in style.css
   All colors come from --ftr-* variables set
   in :root (default) and [data-theme="..."]
   ========================================= */


/* ================================================================
   BASE FOOTER STYLES
   ================================================================ */

.trp-footer {
    background-color: var(--ftr-bg, #0f4a3c);
    color: var(--ftr-text, #d6e8e2);
    font-family: var(--font-sans);
    position: relative;
    transition: background-color 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}


/* ──────────────────────────────────────────
   GRADIENT BAR
──────────────────────────────────────────── */

.trp-footer__gradient-bar {
    height: 2px;
    background: var(--ftr-gradient, linear-gradient(90deg, transparent, #2a9d8f, transparent));
    transition: background 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}


/* ──────────────────────────────────────────
   SHARED CONTAINER
──────────────────────────────────────────── */

.trp-footer__container {
    max-width: var(--container-max, 1280px);
    margin-inline: auto;
    padding-inline: var(--section-pad-x, 40px);
}


/* ──────────────────────────────────────────
   MAIN BAND — single row: Logo | Nav | Social
──────────────────────────────────────────── */

.trp-footer__main {
    padding-block: 28px;
    border-bottom: 1px solid var(--ftr-border, rgba(255,255,255,0.08));
    transition: border-color 0.5s ease;
}

.trp-footer__main .trp-footer__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}


/* ──────────────────────────────────────────
   LOGO — left column
──────────────────────────────────────────── */

.trp-footer__logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.trp-footer__logo a {
    display: block;
    line-height: 0;
}

.trp-footer__logo-img {
    height: 70px;
    width: auto;
    display: block;
    object-fit: contain;
    /* Make logo white/light to show on dark green */
    filter: brightness(0) invert(1);
    opacity: 0.92;
    transition: opacity 0.22s ease;
}

.trp-footer__logo a:hover .trp-footer__logo-img {
    opacity: 1;
}


/* ──────────────────────────────────────────
   NAV — centre column, horizontal links
──────────────────────────────────────────── */

.trp-footer__nav {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.trp-footer__nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.trp-footer__nav-list li a {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--ftr-text, #d6e8e2);
    text-decoration: none;
    padding: 6px 16px;
    display: inline-flex;
    align-items: center;
    letter-spacing: 0.03em;
    white-space: nowrap;
    transition: color 0.22s ease;
}

.trp-footer__nav-list li a:hover {
    color: var(--color-bg);
}

.trp-footer__nav-list li.current-menu-item a {
    color: var(--color-bg);
    font-weight: 500;
}


/* ──────────────────────────────────────────
   SOCIAL ICONS — right column
──────────────────────────────────────────── */

.trp-footer__social {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 18px;
}

.trp-footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    color: var(--ftr-text, var(--color-bg));
    text-decoration: none;
    background: none;
    transition:
        color     0.22s ease,
        transform 0.22s ease;
    flex-shrink: 0;
}

.trp-footer__social-link svg {
    width: 20px;
    height: 20px;
    display: block;
}

.trp-footer__social-link:hover {
    color: var(--color-bg);
    transform: translateY(-2px);
}

.trp-footer__social-link:focus-visible {
    outline: 2px solid var(--ftr-accent, #2a9d8f);
    outline-offset: 3px;
    border-radius: 3px;
}


/* ──────────────────────────────────────────
   LOWER BAND — copyright left, credit right
──────────────────────────────────────────── */

.trp-footer__lower {
    background-color: var(--ftr-bg-solid, #0d3d32);
    padding-block: 14px;
    transition: background-color 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.trp-footer__lower-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.trp-footer__copy,
.trp-footer__credit {
    font-size: 0.75rem;
    font-weight: 300;
    color: var(--ftr-muted, rgba(214, 232, 226, 0.6));
    margin: 0;
    letter-spacing: 0.01em;
    transition: color 0.4s ease;
}

.trp-footer__copy a {
    color: inherit;
    text-decoration: none;
    transition: color 0.22s ease;
}

.trp-footer__credit a {
    color: inherit;
    text-decoration: none;
    transition: color 0.22s ease;
}

.trp-footer__copy a:hover,
.trp-footer__credit a:hover {
    color: var(--color-bg);
}


/* ================================================================
   RESPONSIVE
   ================================================================ */

@media (max-width: 768px) {
    .trp-footer__main .trp-footer__container {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    .trp-footer__nav {
        width: 100%;
    }

    .trp-footer__nav-list {
        justify-content: center;
        flex-wrap: wrap;
        gap: 4px;
    }

    .trp-footer__social {
        justify-content: center;
    }

    .trp-footer__lower-inner {
        flex-direction: column;
        align-items: center;
        gap: 6px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .trp-footer__container {
        padding-inline: 20px;
    }

    .trp-footer__main {
        padding-block: 24px;
    }

    .trp-footer__logo-img {
        height: 56px;
    }

    .trp-footer__nav-list li a {
        font-size: 0.85rem;
        padding: 5px 10px;
    }
}