footer {
    position: relative;
    background: var(--onyx);
    color: #6b7280;
    padding: 60px 40px 30px;
    font-size: 13px;
    overflow: hidden;
}

/* ---------- Background watermark ---------- */
.footer-watermark {
    position: absolute;
    top: 50%;
    right: -75px;
    transform: translateY(-50%);
    width: 380px;
    height: 380px;
    pointer-events: none;
    z-index: 0;
}

.footer-watermark .tri {
    fill: none ;
    stroke: #d1d5db;     
    stroke-width: 2;
    opacity: 0.6;
}

/* ---------- Layout ---------- */
.footer-inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    flex-wrap: wrap;
}

/* Brand column */
.footer-brand {
    max-width: 360px;
}

.footer-logo {
    height: 80px;
    width: 400px;
}

.footer-logo img {
    height: 100%;
    width: 100%;
    display: block;
    object-fit: cover;
    margin-left: -60px;
}

.footer-description {
    color:rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin: 0 0 20px;
}

.footer-social-media {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    color: #e5e7eb;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.footer-social-link:hover {
    background: var(--terracotta);
    border-color: var(--terracotta);
    color: #ffffff;
    transform: translateY(-2px);
}

.footer-social-link svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Links columns */
.footer-links-group {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
}

.footer-links-column {
    display: flex;
    flex-direction: column;
    min-width: 120px;
}

.footer-links-column h4 {
    color: var(--white);
    font-size: 14px;
    margin: 0 0 14px;
}

.footer-links-column a {
    color:rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.2s ease;
}

.footer-links-column a:hover {
    color: var(--terracotta);
}

/* Bottom bar */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.footer-copyright {
    margin: 0;
    color: #d7dce5;
}

.footer-legal-links {
    display: flex;
    gap: 20px;
    margin: 0;
}

.footer-legal-links a {
    color:  #d7dce5;
    text-decoration: none;
}

.footer-legal-links a:hover {
    color: var(--terracotta);
}

.footer-design-commpany {
    margin: 0;
    color: #d7dce5;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .footer-top {
        flex-direction: column;
        gap: 40px;
    }

    .footer-links-group {
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .footer-watermark {
        width: 320px;
        height: 320px;
        right: -100px;
        opacity: 0.5;
    }
}

/* =========================================================
   QUADSIGHT FOOTER — RESPONSIVE
   TABLET + MOBILE
========================================================= */


/* =========================================================
   TABLET
   769px — 1024px
========================================================= */

@media (min-width: 769px) and (max-width: 1024px) {

    footer {
        padding: 55px 30px 25px;
        font-size: 13px;
    }


    /* ---------- Inner ---------- */

    .footer-inner {
        width: 100%;
        max-width: 100%;
    }


    /* ---------- Top Layout ---------- */

    .footer-top {
        display: grid;
        grid-template-columns: 1fr 1.2fr;
        gap: 45px;
        align-items: start;
    }


    /* ---------- Brand ---------- */

    .footer-brand {
        width: 100%;
        max-width: 330px;
    }


    .footer-logo {
        width: 300px;
        height: 65px;
    }


    .footer-logo img {
        width: 100%;
        height: 100%;
        margin-left: -45px;
        object-fit: cover;
    }


    .footer-description {
        max-width: 320px;
        font-size: 13px;
        line-height: 1.65;
        margin-bottom: 20px;
    }


    /* ---------- Social ---------- */

    .footer-social-media {
        gap: 9px;
    }


    .footer-social-link {
        width: 34px;
        height: 34px;
    }


    .footer-social-link svg {
        width: 15px;
        height: 15px;
    }


    /* ---------- Link Groups ---------- */

    .footer-links-group {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }


    .footer-links-column {
        min-width: 0;
        width: 100%;
    }


    .footer-links-column h4 {
        font-size: 13px;
        margin-bottom: 14px;
    }


    .footer-links-column a {
        font-size: 12px;
        margin-bottom: 9px;
    }


    /* ---------- Bottom ---------- */

    .footer-bottom {
        margin-top: 45px;
        padding-top: 18px;

        display: grid;
        grid-template-columns: 1fr auto;
        gap: 12px 25px;

        align-items: center;
    }


    .footer-copyright,
    .footer-design-commpany {
        font-size: 11px;
    }


    .footer-legal-links {
        gap: 16px;
    }


    .footer-legal-links a {
        font-size: 11px;
    }


    /* ---------- Watermark ---------- */

    .footer-watermark {
        width: 300px;
        height: 300px;

        right: -90px;

        opacity: 0.35;
    }

}


/* =========================================================
   MOBILE
   0 — 768px
========================================================= */

@media (max-width: 768px) {

    footer {
        padding: 50px 20px 25px;
        font-size: 12px;
    }


    /* =====================================================
       INNER
    ===================================================== */

    .footer-inner {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }


    /* =====================================================
       TOP
    ===================================================== */

    .footer-top {
        width: 100%;

        display: flex;
        flex-direction: column;

        gap: 38px;

        align-items: center;
        align-content: center;
        align-items: center;
    }


    /* =====================================================
       BRAND
    ===================================================== */

    .footer-brand {
        width: 100%;
        max-width: 100%;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }


    /* ---------- Logo ---------- */

    .footer-logo {
        width: 250px;
        height: 58px;
        overflow: hidden;
    }


    .footer-logo img {
        width: 100%;
        height: 100%;

        margin-left: 0;

        object-fit: cover;
        object-position: left center;
    }


    /* ---------- Description ---------- */

    .footer-description {
        width: 100%;
        max-width: 430px;

        font-size: 12px;
        line-height: 1.65;

        margin: 0 0 20px;
    }


    /* =====================================================
       SOCIAL MEDIA
    ===================================================== */

    .footer-social-media {
        display: flex;
        align-items: center;

        gap: 9px;
    }


    .footer-social-link {
        width: 35px;
        height: 35px;
    }


    .footer-social-link svg {
        width: 15px;
        height: 15px;
    }


    /* =====================================================
       LINKS
    ===================================================== */

    .footer-links-group {

        width: 100%;

        display: grid;

        grid-template-columns:
            repeat(1, minmax(0, 1fr));

        gap: 35px 25px;
    }


    .footer-links-column {
        width: 100%;
        min-width: 0;

        display: flex;
        flex-direction: column;
        align-items: center;
    }


    .footer-links-column h4 {
        font-size: 13px;

        margin: 0 0 13px;
    }


    .footer-links-column a {
        font-size: 12px;

        margin-bottom: 9px;

        line-height: 1.4;
    }


    /* =====================================================
       BOTTOM BAR
    ===================================================== */

    .footer-bottom {

        width: 100%;

        display: flex;
        flex-direction: column;

        align-items: center;

        gap: 14px;

        margin-top: 42px;
        padding-top: 18px;

        border-top:
            1px solid rgba(255,255,255,0.15);

        text-align: center;
    }


    /* ---------- Copyright ---------- */

    .footer-copyright {
        width: 100%;

        margin: 0;

        font-size: 10px;
        line-height: 1.5;

        color: #d7dce5;
    }


    /* ---------- Legal ---------- */

    .footer-legal-links {

        width: 100%;

        display: flex;

        flex-wrap: wrap;
        text-align: center;
        justify-content: center;

        gap: 8px 18px;

        margin: 0;
    }


    .footer-legal-links a {
        font-size: 10px;
        line-height: 1.5;
    }


    /* ---------- Design Company ---------- */

    .footer-design-commpany {

        width: 100%;

        margin: 0;

        font-size: 10px;
        line-height: 1.5;

        color: #d7dce5;
    }


    /* =====================================================
       WATERMARK
    ===================================================== */

    .footer-watermark {

        width: 260px;
        height: 260px;

        right: -110px;
        top: 55%;

        opacity: 0.25;

        pointer-events: none;
    }

}
