﻿/* =========================================
   Footer – Distinct Classes
   ========================================= */

/* Outer footer wrapper – full width, coloured background */
.tes-footer {
    background-color: #9c9c9c;
    color: #fff;
    padding: 1.5rem 0; /* compact vertical padding */
    box-sizing: border-box;
    font-family: monospace, sans-serif;
}

/* Inner container – centered, max width, horizontal padding */
.tes-footer-container {
    max-width: var(--size-lg, 1170px);
    margin: 0 auto;
    padding: 0 1.5rem;
    box-sizing: border-box;
}

/* ---- Top row: logo, nav, social ---- */
.tes-footer-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

/* Logo image */
.tes-footer-logo {
    max-width: 400px;
    height: auto;
    display: block;
    transition: filter 0.2s ease;
}

.tes-footer-logo:hover {
    filter: brightness(0.85); /* slightly darker */
}

/* Navigation list */
.tes-footer-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
}

/* Footer link (used in nav and legal links) */
.tes-footer-link {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.tes-footer-link:hover {
    color: #FF0033;
}

/* Bold variant for language toggle */
.tes-footer-link--bold {
    font-weight: 700;
}

/* Social icons row */
.tes-footer-social {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem; /* scales the SVG icons */
}

/* Social icon link */
.tes-footer-social-link {
    color: #fff;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s ease;
}

.tes-footer-social-link:hover {
    color: #FF0033;
}

/* SVG icon inside social link */
.tes-footer-social-icon {
    width: 1em;
    height: 1em;
    fill: currentColor;
}

/* ---- Thin separator ---- */
.tes-footer-separator {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.3);
    border: none;
    margin: 1rem 0;
}

/* ---- Bottom row: copyright + legal ---- */
.tes-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.9rem;
}

/* Legal links container */
.tes-footer-legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
}

/* Responsive: stack items on small screens */
@media (max-width: 767px) {
    .tes-footer-top {
        flex-direction: column;
        text-align: center;
        gap: 1.25rem; /* tighter vertical spacing */
    }

    /* Smaller logo */
    .tes-footer-logo {
        max-width: 320px; /* reduced from 400px */
        margin: 0 auto;
    }

    /* Navigation – single line, no wrapping, smaller text */
    .tes-footer-nav-list {
        justify-content: center;
        flex-wrap: nowrap; /* forces single line */
        gap: 0.9rem;
    }

    .tes-footer-link {
        font-size: 0.85rem; /* compact but readable */
    }

    /* Social icon – perfectly centred */
    .tes-footer-social {
        justify-content: center;
        width: 100%; /* occupy full width */
        font-size: 1.4rem;
    }

    /* Bottom row (copyright + legal) */
    .tes-footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .tes-footer-legal {
        justify-content: center;
    }
}

/* ---------- Extra‑small screens (≤480px) – even tighter ---------- */
@media (max-width: 480px) {
    .tes-footer-logo {
        max-width: 275px; /* very small logo */
    }

    .tes-footer-nav-list {
        gap: 0.65rem;
    }

    .tes-footer-link {
        font-size: 0.8rem;
    }

    .tes-footer-social {
        font-size: 1.3rem;
    }
}