﻿:root {
    --dm-black: #1E1E1E;
    --dm-dark-grey: #828282;
    --dm-medium-grey: #D1D1D1;
    --dm-light-grey: #EDEDED;
    --dm-invisible-grey: #F9F9F9;
    --dm-white: #FFFFFF;
    --dm-blue: #284B8F;
    --dm-blue-hover: #1F3F7A;
    --container: 1360px;
    --space-xs: .5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;
    --space-xxl: 10rem;
}



/* ==========================================================
   FOOTER
   ========================================================== */

.site-footer {
    background: #1f1f1f;
    color: rgba(255,255,255,.78);
    padding: 4.5rem 0 1.25rem;
    margin-top: 0;
    position: relative;
}

    .site-footer::before {
        content: "";
        position: absolute;
        inset: 0 0 auto 0;
        height: 3px;
        background: var(--dm-blue);
    }

    .site-footer a {
        color: inherit;
        text-decoration: none;
        transition: color .2s ease;
    }

        .site-footer a:hover {
            color: #fff;
        }


/* ==========================================================
   MAIN GRID
   ========================================================== */

.footer-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr 1fr 1.25fr;
    gap: 4rem;
    align-items: start;
}


/* ==========================================================
   BRAND
   ========================================================== */

.footer-brand {
    width: 100%;
    max-width: 22rem;
    padding-right: 2rem;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 1.25rem;
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: -.02em;
    color: #fff !important;
}

.footer-brand p {
    margin: 0;
    color: rgba(255,255,255,.72);
    line-height: 1.75;
}


/* ==========================================================
   COLUMNS
   ========================================================== */

.footer-column {
    display: flex;
    flex-direction: column;
}

    .footer-column h4 {
        margin-bottom: 1rem;
        font-size: .75rem;
        font-weight: 500;
        letter-spacing: .04em;
        text-transform: uppercase;
        color: rgba(255,255,255,.45);
    }

    .footer-column a {
        display: inline-flex;
        align-items: center;
        margin-bottom: .35rem;
        line-height: 1.4;
        color: rgba(255,255,255,.82);
    }

        .footer-column a:last-child {
            margin-bottom: 0;
        }

        .footer-column a:hover {
            transform: translateX(2px);
        }


/* ==========================================================
   CERTIFICATION
   ========================================================== */

.footer-certification {
    display: flex;
    align-items: center;
    gap: .9rem;
    margin-bottom: 1.25rem;
    padding: .85rem 1rem;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: .5rem;
}

    .footer-certification svg {
        width: 24px;
        height: 24px;
        flex-shrink: 0;
        fill: var(--color-primary);
    }

    .footer-certification strong {
        display: block;
        color: #fff;
        font-size: .95rem;
        font-weight: 500;
    }

    .footer-certification span {
        display: block;
        margin-top: .15rem;
        font-size: .82rem;
        color: rgba(255,255,255,.58);
    }


/* ==========================================================
   BOTTOM BAR
   ========================================================== */

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,.08);
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
    font-size: .88rem;
    color: rgba(255,255,255,.55);
}

    .footer-legal a:hover {
        color: #fff;
    }


/* ==========================================================
   SOCIAL
   ========================================================== */

.footer-social {
    display: flex;
    gap: .75rem;
}

    .footer-social a {
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--dm-blue); /* Färgar den blå rutan i SVG */

        transition: color .2s, transform .2s;
    }

        .footer-social a:hover {
            color: var(--dm-blue-hover);
            transform: translateY(-2px);
        }

    .footer-social svg {
        width: 2.25rem;
        height: 2.25rem;
    }

/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width:1100px) {

    .footer-grid {
        grid-template-columns: repeat(2,1fr);
        gap: 3rem;
    }


    .footer-brand {
        order: 1;
    }

    .footer-cert {
        order: 2;
        padding-top: 0.8rem;
    }

    .footer-column-products {
        order: 3;
    }

    .footer-column-company {
        order: 4;
    }
}

@media (max-width:700px) {

    .site-footer {
        padding: 4rem 0 2rem;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem 2rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
        width: 100%;
        max-width: 100%;
        padding-right: 2rem;
    }

    .footer-column {
        min-width: 0;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        margin-top: 2.5rem;
        padding-top: 1.25rem;
    }
}

@media (max-width:430px) {

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.25rem;
    }
}
