/* ==========================================================================
   layout.css - 헤더(hd-) / 사이드메뉴(gnb-) / 푸터(ft-) / 배경 이펙트(bg-orb-) 전용 스타일
   모바일 우선(mobile-first) 반응형
   ========================================================================== */

/* ---------- background orb (site-wide, content 뒷면) ---------- */
.bg-orb-wrap {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.bg-orb {
    position: absolute;
    left: 0;
    top: 0;
    width: 150vmax;
    height: 150vmax;
    animation: bgOrbOrbit 36s linear infinite;
}

@keyframes bgOrbOrbit {
    0%   { transform: translate(calc(20vw - 50%), -50%); }
    25%  { transform: translate(calc(100vw - 50%), -50%); }
    50%  { transform: translate(calc(100vw - 50%), calc(100vh - 50%)); }
    75%  { transform: translate(-50%, calc(100vh - 50%)); }
    100% { transform: translate(calc(20vw - 50%), -50%); }
}

/* ---------- header ---------- */
.hd-wrap {
    position: sticky;
    top: 0;
    z-index: 100;
    background: transparent;
}

.hd-inner {
    max-width: var(--content-max-width);
    margin: 0 auto;
    height: var(--header-height);
    padding: 0 16px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

/* ---------- 좌: 햄버거 / 중: 로고 / 우: 파트너사 ---------- */
.gnb-btn,
.hd-partner-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gnb-btn {
    justify-self: start;
}

.hd-partner-btn {
    justify-self: end;
}

.hd-logo {
    justify-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hd-logo-img {
    height: 44px;
    width: auto;
    max-width: 100%;
}

.hd-icon {
    display: block;
}

/* ---------- side menu (off-canvas) ---------- */
.gnb-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease;
    z-index: 200;
}

.gnb-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 320px;
    height: 100%;
    background: #ffffff;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    z-index: 201;
    display: flex;
    flex-direction: column;
}

body.is-gnb-open .gnb-overlay {
    opacity: 1;
    visibility: visible;
}

body.is-gnb-open .gnb-panel {
    transform: translateX(0);
}

.gnb-panel-head {
    height: 56px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--color-border);
}

.gnb-panel-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #9e9e9e;
}

.gnb-close-btn {
    font-size: 22px;
    line-height: 1;
    color: #9e9e9e;
}

.gnb-list {
    flex: 1;
    overflow-y: auto;
}

.gnb-item {
    border-bottom: 1px solid var(--color-border);
}

.gnb-link {
    display: block;
    padding: 14px 16px;
    font-size: 15px;
}

/* ---------- footer ---------- */
.ft-wrap {
    border-top: 1px solid var(--color-border);
    background: #fafafa;
}

.ft-inner {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 20px 16px;
    text-align: center;
}

.ft-copy {
    font-size: 12px;
    color: #9e9e9e;
}
