﻿/* =========================================================
   HEADER
   ========================================================= */


.gm-header
{
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 8px 0 0;
    transition: padding 0.2s ease;
}

.gm-header__inner {
    width: 100%;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 8px 6px 10px;
    border: 1px solid rgba(216, 195, 172, 0.7);
    border-radius: 18px;
    background: rgba(255, 253, 249, 0.85);
    box-shadow: 0 6px 20px rgba(44, 24, 8, 0.05);
    backdrop-filter: blur(8px);
}

/* =========================
   STICKY HEADER
   ========================= */

/* =========================
   HIDE / SHOW ON SCROLL
   ========================= */



    .gm-header.is-hidden {
        transform: translateY(-110%);
    }

/*.gm-header__inner {
    background: #fffdf9;
    border: 1px solid var(--gm-border);
    box-shadow: 0 6px 18px rgba(44, 24, 8, 0.06);
    transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.4s ease;
}*/

/* scrolled state (stadig subtil forskel, men tydelig) */
.gm-header.is-scrolled .gm-header__inner {
    border-color: var(--gm-border-strong);
    box-shadow: 0 10px 28px rgba(44, 24, 8, 0.10);
}

/* lidt mindre header ved scroll */
.gm-header.is-scrolled {
    padding: 6px 0 0;
}

    /* ikon tweak ved scroll */
    .gm-header.is-scrolled .gm-header__giftmark {
        transform: translateY(-2px) scale(0.96);
    }
/* =========================
   BRAND
   ========================= */


.gm-header__giftmark {
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
    overflow: visible;
    transform: translateY(-1px);
}

.gm-header__giftmark-red {
    fill: var(--gm-accent);
}

.gm-header__giftmark-white {
    fill: #fffdf9;
}

.gm-header__giftmark-stroke {
    stroke: var(--gm-accent);
}


.gm-giftmark {
    width: 24px;
    height: 24px;
    position: relative;
    flex: 0 0 auto;
}

    /* box */
    .gm-giftmark::before {
        content: "";
        position: absolute;
        inset: 4px;
        border-radius: 6px;
        background: #fffdf9;
        border: 2px solid var(--gm-accent);
    }

    /* vertical ribbon */
    .gm-giftmark::after {
        content: "";
        position: absolute;
        top: 4px;
        bottom: 4px;
        left: 50%;
        width: 4px;
        transform: translateX(-50%);
        background: var(--gm-accent);
    }

.gm-giftmark--header {
    width: 26px;
    height: 26px;
}

    /* box */
    .gm-giftmark--header::before {
        content: "";
        position: absolute;
        inset: 5px;
        border-radius: 6px;
        border: 2px solid var(--gm-accent);
        background: #fffdf9;
    }

    /* vertical ribbon */
    .gm-giftmark--header::after {
        content: "";
        position: absolute;
        top: 5px;
        bottom: 5px;
        left: 50%;
        width: 4px;
        transform: translateX(-50%);
        background: var(--gm-accent);
    }

    /* horizontal ribbon */
    .gm-giftmark--header .gm-giftmark__h {
        position: absolute;
        left: 5px;
        right: 5px;
        top: 50%;
        height: 4px;
        transform: translateY(-50%);
        background: var(--gm-accent);
        border-radius: 999px;
    }


.gm-header__brand {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
}

/* --- BRANDMARK (grid) --- */

.gm-brandmark {
    width: 24px;
    height: 24px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3px;
    flex: 0 0 auto;
}

.gm-brandmark__cell {
    border-radius: 5px;
}

/* rød diagonale → giver “maskine / system” følelse */
.gm-brandmark__cell--1,
.gm-brandmark__cell--4 {
    background: linear-gradient(180deg, var(--gm-accent), var(--gm-accent-strong));
}

.gm-brandmark__cell--2,
.gm-brandmark__cell--3 {
    background: #d8c3ac;
}

/* --- WORDMARK --- */

.gm-wordmark {
    font-size: 0.99rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    white-space: nowrap;
}

.gm-wordmark__gave {
    color: var(--gm-text);
}

.gm-wordmark__maskinen {
    color: var(--gm-accent);
    font-weight: 700;
    margin-left: 1px;
}

.gm-wordmark__tld {
    color: #baa99b;
}

/* =========================
   ACTIONS
   ========================= */

.gm-header__actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* optional link (ikke på forsiden) */

.gm-header__finder-link {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border-radius: 12px;
    border: 1px solid var(--gm-border);
    background: rgba(244, 237, 229, 0.9);
    color: var(--gm-text-soft);
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -webkit-tap-highlight-color: transparent;
}

/* menu button */


.gm-header__menu-button {
    width: 40px;
    height: 40px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border-radius: 12px;
    border: 1px solid #decebf;
    background: #fffdf9;
    cursor: pointer;
}

.gm-header__menu-line {
    width: 15px;
    height: 2px;
    border-radius: 999px;
    background: var(--gm-text);
}

/* =========================
   HOVER (desktop)
   ========================= */

@media (hover: hover) and (pointer: fine) {
    .gm-header__menu-button:hover,
    .gm-header__finder-link:hover {
        background: var(--gm-surface);
        border-color: var(--gm-border-strong);
    }

    .gm-header__brand:hover .gm-wordmark__maskinen {
        color: var(--gm-accent-strong);
    }
}
