/* =========================================================
   MJ STUDIO65
   PUBLIC HEADER
   DESKTOP / DEFAULT
   ========================================================= */


/* =========================
   HEADER SHELL
   ========================= */

.mj-site-header {
    position: relative;
    z-index: 1000;

    width: 100%;

    background: rgba(248, 247, 244, 0.97);

    border-bottom: 1px solid var(--mj-border);
}


.mj-site-header__inner {
    min-height: 76px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 32px;
}


/* =========================
   BRAND
   ========================= */

.mj-brand {
    display: inline-flex;
    flex-direction: column;

    flex-shrink: 0;

    text-decoration: none;

    line-height: 1;
}


.mj-brand__name {
    color: var(--mj-text);

    font-size: 1.75rem;
    font-weight: 800;

    letter-spacing: -0.04em;
}


.mj-brand__65 {
    color: var(--mj-orange);
}


.mj-brand__sub {
    margin-top: 5px;

    color: var(--mj-text-secondary);

    font-size: 0.56rem;
    font-weight: 700;

    letter-spacing: 0.22em;
}


/* =========================
   DESKTOP NAVIGATION
   ========================= */

.mj-desktop-nav {
    display: flex;
    align-items: center;

    gap: 34px;
}


.mj-desktop-nav a {
    position: relative;

    padding: 27px 0 24px;

    color: var(--mj-text);

    font-size: 0.93rem;
    font-weight: 600;

    text-decoration: none;

    transition:
        color 0.2s ease;
}


.mj-desktop-nav a:hover {
    color: var(--mj-orange);
}


/* ACTIVE UNDERLINE */

.mj-desktop-nav a::after {
    content: "";

    position: absolute;

    left: 50%;
    bottom: 16px;

    width: 0;
    height: 3px;

    border-radius: 999px;

    background: var(--mj-orange);

    transform: translateX(-50%);

    transition:
        width 0.2s ease;
}


.mj-desktop-nav a:hover::after,
.mj-desktop-nav a.is-active::after {
    width: 100%;
}


.mj-desktop-nav a.is-active {
    color: var(--mj-text);
}


/* =========================
   MOBILE NAVIGATION
   ========================= */

.mj-mobile-nav {
    display: none;

    position: relative;

    z-index: 2000;
}


.mj-mobile-nav__toggle {
    position: relative;

    z-index: 2001;

    width: 44px;
    height: 44px;

    padding: 0;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 5px;

    border: 0;
    border-radius: var(--mj-radius-sm);

    background: transparent;

    cursor: pointer;
}


.mj-menu-line {
    width: 23px;
    height: 2px;

    display: block;

    border-radius: 5px;

    background: var(--mj-text);
}


.mj-mobile-nav__panel {
    position: absolute;

    top: calc(100% + 12px);
    right: 0;

    z-index: 2000;

    width: 260px;

    display: none;

    padding: 12px;

    background: var(--mj-surface);

    border: 1px solid var(--mj-border);
    border-radius: var(--mj-radius-md);

    box-shadow: var(--mj-shadow-card);
}


.mj-mobile-nav.is-open .mj-mobile-nav__panel {
    display: block;
}


.mj-mobile-nav__panel a {
    display: block;

    padding: 12px 14px;

    border-radius: var(--mj-radius-sm);

    color: var(--mj-text);

    font-size: 0.95rem;
    font-weight: 600;

    text-decoration: none;
}


.mj-mobile-nav__panel a:hover {
    background: var(--mj-surface-soft);

    color: var(--mj-orange);
}


/* =========================================================
   RESPONSIVE
   ALL RESPONSIVE RULES STAY AT THE END
   ========================================================= */


/* =========================
   TABLET
   ========================= */

@media (max-width: 1024px) {

    .mj-site-header__inner {
        min-height: 70px;
    }

    .mj-desktop-nav {
        gap: 22px;
    }

    .mj-desktop-nav a {
        font-size: 0.88rem;
    }

}


/* =========================
   MOBILE
   ========================= */

@media (max-width: 768px) {

    .mj-site-header__inner {
        min-height: 66px;

        gap: 16px;
    }


    .mj-brand__name {
        font-size: 1.5rem;
    }


    .mj-brand__sub {
        font-size: 0.52rem;

        letter-spacing: 0.21em;
    }


    .mj-desktop-nav {
        display: none;
    }


    .mj-mobile-nav {
        display: block;

        position: relative;

        z-index: 2000;
    }

}


/* =========================
   SMALL MOBILE
   ========================= */

@media (max-width: 480px) {

    .mj-site-header__inner {
        min-height: 62px;
    }


    .mj-brand__name {
        font-size: 1.25rem;
    }


    .mj-brand__sub {
        margin-top: 4px;

        font-size: 0.45rem;
    }


    .mj-mobile-nav__panel {
        width: min(
            260px,
            calc(100vw - 36px)
        );
    }

}