/* =========================================================
   FOOTER – Egen fil som kan brukes på alle sider
   Inkluder med: <link rel="stylesheet" href="css/bunn.css">
   ========================================================= */

:root {
    --footer-bg: rgba(8, 10, 20, 0.6);
    --footer-text: #ffffff;
    --footer-text-muted: rgba(255, 255, 255, 0.55);
    --footer-text-faint: rgba(255, 255, 255, 0.35);
    --footer-border: rgba(255, 255, 255, 0.06);
    --footer-accent: #5b8cff;
}

.site-footer {
    position: relative;
    margin-top: 100px;
    padding: 80px 48px 0;
    background: linear-gradient(180deg, transparent, rgba(8, 10, 20, 0.6));
    border-top: 1px solid var(--footer-border);
}

.site-footer__inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.8fr 1fr 1.2fr 1fr;
    gap: 48px;
    padding-bottom: 60px;
}

/* =========================================================
   VENSTRE: Logo + tagline
   ========================================================= */
.site-footer__brand {
    padding-right: 20px;
}

.site-footer__logo {
    display: inline-block;
    margin-bottom: 20px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.site-footer__logo:hover {
    transform: scale(1.03);
}

.site-footer__logo img {
    height: 56px;
    width: auto;
    display: block;
    filter: drop-shadow(0 0 16px rgba(91, 140, 255, 0.25));
}

.site-footer__tagline {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--footer-text-muted);
    font-weight: 300;
    max-width: 280px;
}

/* =========================================================
   KOLONNER MED LENKER
   ========================================================= */
.site-footer__column {
    display: flex;
    flex-direction: column;
}

.site-footer__heading {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--footer-text);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

.site-footer__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.site-footer__link {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--footer-text-muted);
    text-decoration: none;
    transition: color 0.25s ease, transform 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
}

.site-footer__link:hover {
    color: var(--footer-text);
    transform: translateX(2px);
}

.site-footer__link--social svg {
    color: var(--footer-text-muted);
    transition: color 0.25s ease;
    flex-shrink: 0;
}

.site-footer__link--social:hover svg {
    color: var(--footer-accent);
}

/* Kontakt-lenker (e-post, telefon, sted) */
.site-footer__list--contact {
    gap: 14px;
}

.site-footer__link--contact {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.site-footer__link--contact svg {
    color: var(--footer-accent);
    flex-shrink: 0;
}

/* Statisk lenke (uten klikk) */
.site-footer__link--static {
    cursor: default;
}

.site-footer__link--static:hover {
    color: var(--footer-text-muted);
    transform: none;
}

/* =========================================================
   BUNNLINJEN
   ========================================================= */
.site-footer__bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding: 28px 0;
    border-top: 1px solid var(--footer-border);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.site-footer__bottom > p {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Diskret skille mellom copyright og personvern */
.site-footer__legal::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--footer-text-faint);
    opacity: 0.5;
    margin-right: 16px;
    vertical-align: middle;
}

.site-footer__bottom p {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: var(--footer-text-faint);
    font-weight: 300;
}

.site-footer__legal {
    margin: 0;
}

.site-footer__legal a {
    color: var(--footer-text-faint);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.25s ease;
}

.site-footer__legal a:hover {
    color: var(--footer-accent);
}

/* =========================================================
   RESPONSIV
   ========================================================= */
@media (max-width: 1100px) {
    .site-footer {
        padding: 60px 32px 0;
    }

    .site-footer__inner {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .site-footer__brand {
        grid-column: 1 / -1;
        padding-right: 0;
    }
}

@media (max-width: 700px) {
    .site-footer {
        padding: 50px 20px 0;
        margin-top: 60px;
    }

    .site-footer__inner {
        grid-template-columns: 1fr;
        gap: 32px;
        padding-bottom: 40px;
    }

    .site-footer__brand {
        grid-column: 1 / -1;
        text-align: left;
    }

    .site-footer__logo img {
        height: 48px;
    }

    .site-footer__tagline {
        max-width: 100%;
    }

    .site-footer__heading {
        font-size: 12px;
        margin-bottom: 14px;
    }

    .site-footer__bottom {
        padding: 20px 0;
        gap: 8px;
    }

    .site-footer__bottom > p {
        gap: 8px;
    }

    /* På smal skjerm: stable under hverandre, skjul skilleprikken */
    .site-footer__legal::before {
        display: none;
    }
}