/* ─── Full-page override ─────────────────────────────────────────────────── */
html:has(.nb-cs),
body:has(.nb-cs) {
    margin: 0;
    padding: 0;
    overflow: hidden;
    height: 100%;
}

/* ─── Reset ──────────────────────────────────────────────────────────────── */
.nb-cs *,
.nb-cs *::before,
.nb-cs *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ─── Container — fixed to fill entire browser window ───────────────────── */
.nb-cs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    font-family: 'Montserrat', sans-serif;
    color: #fff;
    overflow: hidden;
    z-index: 999;
}

/* ─── Background ─────────────────────────────────────────────────────────── */
.nb-cs__bg {
    position: absolute;
    inset: 0;
    background-image: url('niuba_bg.jpg');
    background-size: cover;
    background-position: center;
    z-index: 0;
}
.nb-cs__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.42);
}

/* ─── Corner graphic ─────────────────────────────────────────────────────── */
.nb-cs__corner {
    position: absolute;
    top: 0;
    right: 0;
    width: clamp(180px, 22vw, 360px);
    height: auto;
    display: block;
    z-index: 10;
}

/* ─── Mobile social (hidden on desktop) ──────────────────────────────────── */
.nb-cs__social-m {
    display: none;
}

/* ─── Main content ───────────────────────────────────────────────────────── */
.nb-cs__main {
    position: relative;
    z-index: 5;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 4vh 4vw 6vh;
    gap: 2vh;
}

/* ─── Logo ───────────────────────────────────────────────────────────────── */
.nb-cs__logo { line-height: 0; }

.nb-cs__logo-d {
    width: clamp(300px, 63vw, 980px);
    height: auto;
    display: block;
}
.nb-cs__logo-m { display: none; }

/* ─── Mobile contact block (hidden on desktop) ───────────────────────────── */
.nb-cs__contact-m {
    display: none;
}

/* ─── Description texts ──────────────────────────────────────────────────── */
.nb-cs__desc {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3vw;
    width: clamp(300px, 63vw, 980px);
    font-size: clamp(11px, 0.8vw, 13px);
    font-weight: 400;
    line-height: 1.75;
}

/* ─── Footer ─────────────────────────────────────────────────────────────── */
.nb-cs__footer {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: clamp(60px, 10vw, 180px);
    padding: 2vh 4vw 5vh;
}

.nb-cs__address {
    font-size: clamp(10px, 0.75vw, 12px);
    font-weight: 400;
    font-style: normal;
    line-height: 1.6;
}

.nb-cs__email {
    font-size: clamp(10px, 0.75vw, 12px);
    font-weight: 400;
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s ease;
}
.nb-cs__email:hover { opacity: 0.7; }

.nb-cs__social-d {
    display: flex;
    align-items: center;
    gap: clamp(14px, 1.4vw, 24px);
}

/* ─── Icons ──────────────────────────────────────────────────────────────── */
.nb-cs__icon {
    display: flex;
    align-items: center;
    color: #fff;
    transition: opacity 0.3s ease;
    cursor: default;
    text-decoration: none;
}
a.nb-cs__icon { cursor: pointer; }
a.nb-cs__icon:hover { opacity: 0.7; }

.nb-cs__icon svg {
    width: clamp(18px, 1.3vw, 22px);
    height: clamp(18px, 1.3vw, 22px);
}

/* ─── Mobile ─────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    html:has(.nb-cs),
    body:has(.nb-cs) { overflow: hidden; }

    /* Social icons: top-left, stacked */
    .nb-cs__social-m {
        display: flex;
        flex-direction: column;
        gap: 16px;
        position: absolute;
        top: 22px;
        left: 22px;
        z-index: 10;
    }
    .nb-cs__social-m .nb-cs__icon svg {
        width: 22px;
        height: 22px;
    }

    .nb-cs__corner {
        width: clamp(140px, 46vw, 210px);
    }

    .nb-cs__main {
        justify-content: center;
        align-items: center;
        padding: 10vh 6vw 3vh;
        gap: 3.5vh;
    }

    /* Mobile logo */
    .nb-cs__logo-d { display: none; }
    .nb-cs__logo-m {
        display: block;
        width: 100%;
        height: auto;
    }

    /* Contact above text, visible on mobile */
    .nb-cs__contact-m {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        width: 100%;
        gap: 4vw;
    }
    .nb-cs__contact-m .nb-cs__address {
        font-size: 11px;
        flex: 1;
    }
    .nb-cs__contact-m .nb-cs__email {
        font-size: 11px;
        text-align: right;
    }

    /* Descriptions: single column */
    .nb-cs__desc {
        grid-template-columns: 1fr;
        gap: 2.5vh;
        font-size: 12px;
        width: 100%;
    }

    /* Hide footer entirely on mobile */
    .nb-cs__footer {
        display: none;
    }
}
