:root {
    --dark: #0f172a;
    --gray: #6b7280;
    --light: #ffffff;
    --primary: #2563eb;
    --soft: #eff6ff;
    --line: #e5e7eb;
    --naver: #415a75;
    /* 네이버 버튼 기준 컬러 */
    --max: 1200px;
}

/* ================= Reset ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Pretendard', sans-serif;
    background: var(--light);
    color: var(--dark);
    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 20px;
}

/* ================= Header / Nav ================= */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    z-index: 100;
}

.nav {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

/* Logo */
.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 120px;
}

.logo-img {
    width: 72px;
    height: auto;
    display: block;
}

/* Nav menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-menu a {
    padding: 9px 14px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    color: var(--dark);
    letter-spacing: -0.2px;
    transition: background .18s ease, color .18s ease;
    white-space: nowrap;
}

/* ✅ 네이버 버튼과 톤 통일된 hover */
.nav-menu a:hover {
    background: rgba(65, 90, 117, 0.14);
    color: var(--naver);
}

/* ================= 네이버 스마트스토어 버튼 (플랫 / 통일 UX) ================= */
.nav-cta.nav-cta--naver {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    padding: 11px 18px;
    border-radius: 9px;

    background: var(--naver);
    color: #ffffff !important;

    font-weight: 700;
    font-size: 15.5px;
    letter-spacing: -0.2px;
    line-height: 1;
    white-space: nowrap;

    border: 0;
    box-shadow: none;
    /* ✅ 그림자 제거 */

    transition:
        background .15s ease,
        transform .12s ease;
}

/* 아이콘 / 텍스트 */
.nav-cta--naver .naver-n {
    font-weight: 800;
    font-size: 17px;
    line-height: 1;
    opacity: 0.95;
}

.nav-cta--naver .naver-text {
    font-weight: 700;
}

/* hover */
.nav-cta.nav-cta--naver:hover {
    background: #364d66;
    transform: translateY(-1px);
}

/* active (눌림) */
.nav-cta.nav-cta--naver:active {
    transform: translateY(1px);
}

/* focus (접근성) */
.nav-cta.nav-cta--naver:focus-visible {
    outline: 3px solid rgba(65, 90, 117, 0.35);
    outline-offset: 3px;
}

/* Mobile toggle */
.nav-toggle {
    display: none;
    font-size: 26px;
    cursor: pointer;
    user-select: none;
    padding: 8px 10px;
    border-radius: 12px;
    border: none;
    background: transparent;
}

.nav-toggle:hover {
    background: var(--soft);
    color: var(--naver);
}

/* fixed header spacing */
main {
    padding-top: 72px;
}

/* ================= Footer ================= */
.site-footer {
    background: #3f3f3f;
    color: #e9e9e9;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 34px 24px;
    display: flex;
    align-items: flex-start;
    gap: 56px;
}

.footer-logo {
    display: inline-flex;
    align-items: flex-start;
    flex: 0 0 auto;
}

.footer-logo img {
    width: 120px;
    height: auto;
    display: block;
}

.footer-info {
    flex: 1 1 auto;
    min-width: 0;
}

.footer-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    line-height: 1.9;
    font-size: 14px;
    margin: 6px 0;
}

.footer-item {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    white-space: nowrap;
}

.label {
    color: #f1f1f1;
    font-weight: 600;
}

.value {
    color: #d7d7d7;
    font-weight: 400;
}

.sep {
    color: #9a9a9a;
    user-select: none;
}

.footer-split {
    justify-content: space-between;
    gap: 18px;
}

.footer-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    white-space: nowrap;
}

.footer-address {
    white-space: normal;
}

.footer-link {
    color: #f1f1f1;
    font-weight: 700;
}

.footer-link:hover {
    text-decoration: underline;
}

.footer-copy {
    color: #d0d0d0;
    font-size: 13px;
}

.site-footer a {
    color: inherit;
}

/* ================= Responsive ================= */
@media (max-width: 900px) {
    .footer-inner {
        flex-direction: column;
        gap: 18px;
    }

    .footer-logo img {
        width: 110px;
    }

    .footer-right {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .footer-row.footer-split {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .footer-right {
        white-space: normal;
        flex-wrap: wrap;
    }

    .footer-item {
        white-space: normal;
    }
}

/* ================= Mobile Nav (COMMON) ================= */
@media (max-width: 900px) {

    /* 햄버거 버튼 보이기 */
    .nav-toggle {
        display: block;
    }

    /* 메뉴는 모바일에서 드롭다운 */
    .nav-menu {
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;

        background: #fff;
        border-bottom: 1px solid var(--line);

        display: none;
        /* 기본 숨김 */
        flex-direction: column;
        gap: 0;
        padding: 8px 0;

        z-index: 2000;
    }

    /* toggleNav()가 active 붙이면 열림 */
    .nav-menu.active {
        display: flex;
    }

    /* 모바일 메뉴 아이템 */
    .nav-menu a {
        width: 100%;
        padding: 16px 20px;
        border-radius: 0;
    }

    /* 네이버 CTA는 모바일에서 줄 맞추기 */
    .nav-cta.nav-cta--naver {
        margin: 10px 20px;
        justify-content: center;
        border-radius: 14px;
    }

    /* 로고는 모바일에서 조금 축소 */
    .logo-img {
        width: 56px;
    }
}