/* =========================================================
   Brand Identity-side — bygger oven på style.css
   ========================================================= */

.is-active { color: var(--ink) !important; }
.is-active::after { width: 100% !important; }

/* ---------- KOMPAKT TOP ---------- */
.bh-top {
    max-width: var(--max);
    margin: 0 auto;
    padding: clamp(28px, 5vw, 52px) clamp(18px, 5vw, 64px) clamp(22px, 3vw, 34px);
}
.bh-eyebrow {
    display: inline-block;
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    font-size: .85rem;
    color: var(--accent);
    margin-bottom: 8px;
}
.bh-top__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    letter-spacing: -0.03em;
    margin-bottom: 6px;
}
.bh-top__sub { font-size: 1.05rem; color: var(--muted); max-width: 540px; }

/* ---------- SEKTION ---------- */
.bh-section {
    max-width: var(--max);
    margin: 0 auto;
    padding: clamp(48px, 8vw, 92px) clamp(18px, 5vw, 64px);
}
.bh-section--alt {
    max-width: none;
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
/* Skillelinje i toppen (fuld bredde) */
.bh-section--top {
    position: relative;
}
.bh-section--top::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    border-top: 1px solid var(--border);
}
.bh-section--alt .bh-head,
.bh-section--alt .swatches,
.bh-section--alt .bh-colors { max-width: var(--max); margin-left: auto; margin-right: auto; }

.bh-head { position: relative; margin-bottom: 40px; }
.bh-num {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    color: var(--accent);
    letter-spacing: .1em;
}
.bh-head h2 { font-size: clamp(2rem, 5vw, 3rem); margin: 6px 0 8px; }
.bh-head p { color: var(--muted); font-size: 1.05rem; max-width: 540px; }

/* ---------- LOGO-GRID ---------- */
.logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 26px;
}
.logo-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .2s ease, box-shadow .2s ease;
}
.logo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.logo-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 3;
    padding: 30px;
}
.logo-preview img { max-width: 88%; max-height: 82%; width: auto; height: auto; object-fit: contain; }
.logo-preview--light { background: #ffffff; }
/* Checkerboard, så transparens er tydelig */
.logo-preview--check {
    background-color: #f0f1f4;
    background-image:
        linear-gradient(45deg, #d7dae1 25%, transparent 25%),
        linear-gradient(-45deg, #d7dae1 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #d7dae1 75%),
        linear-gradient(-45deg, transparent 75%, #d7dae1 75%);
    background-size: 22px 22px;
    background-position: 0 0, 0 11px, 11px -11px, -11px 0;
}
.logo-preview--dark { background: var(--accent-deep); }
.logo-preview--3d {
    background: linear-gradient(140deg, var(--accent), var(--accent-deep));
    padding: 0;
}
.logo-preview--3d model-viewer { width: 100%; height: 100%; }

.logo-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 20px;
    border-top: 1px solid var(--border);
}
.logo-card__meta h3 { font-size: 1.12rem; font-weight: 600; }
.logo-card__meta span { font-size: .82rem; color: var(--muted); }
.btn--dl { padding: 9px 16px; font-size: .9rem; white-space: nowrap; }

/* ---------- FARVER (vandret stribe) ---------- */
.swatches {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}
.swatch {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 340px;
    padding: 22px 20px;
    border: 0;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-body);
    transition: flex .2s ease;
}
.swatch__info { display: flex; flex-direction: column; gap: 2px; position: relative; z-index: 1; }
.swatch__name { font-weight: 600; font-size: 1.02rem; }
.swatch__hex {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: .04em;
    margin-top: 2px;
}
.swatch__rgb { font-size: .76rem; opacity: .72; letter-spacing: .02em; }
.swatch__copy {
    position: absolute;
    top: 16px; left: 20px;
    font-size: .74rem;
    font-weight: 600;
    opacity: 0;
    z-index: 1;
    transition: opacity .2s ease;
}
.swatch:hover .swatch__copy,
.swatch.is-copied .swatch__copy { opacity: .85; }

@media (max-width: 760px) {
    .swatches { grid-template-columns: repeat(3, 1fr); }
    .swatch { min-height: 220px; }
}
@media (max-width: 440px) {
    .swatches { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- TYPOGRAFI ---------- */
.type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 26px;
}
.type-card {
    padding: 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.type-card__top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--border);
}
.type-card__role { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); font-weight: 600; }
.type-card__name { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; }
.type-spec { line-height: 1; margin: 0; color: var(--ink); }
.type-spec--display { font-family: 'Space Grotesk', sans-serif; }
.type-spec--body { font-family: 'Inter', sans-serif; }
.type-card .type-spec { font-size: clamp(4rem, 10vw, 7rem); font-weight: 700; letter-spacing: -0.03em; }
.type-glyphs { margin: 16px 0 22px; font-size: 1.15rem; line-height: 1.6; color: var(--muted); }
.type-weights { display: flex; flex-wrap: wrap; gap: 18px; }
.type-weights span { font-size: 1.25rem; color: var(--ink); }

/* ---------- TILBAGE ---------- */
.bh-back { text-align: center; padding: 20px 18px clamp(50px, 8vw, 90px); }

@media (prefers-reduced-motion: reduce) {
    .logo-card, .swatch { transition: none; }
}
