/* ============================================================
   common.css — 전 페이지 공통 스타일 (변수·리셋·nav·레이아웃·푸터)
   ============================================================ */

/* ── Reset ── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

/* ── Design Tokens ── */
:root {
    --bg: #faf9f7;
    --bg2: #f5f2ed;
    --tx: #1a1714;
    --tx2: #6b635a;
    --tx3: #9e958b;
    --ac: #8b6f47;
    --ac2: #a78b5f;
    --ac-light: rgba(139, 111, 71, .08);
    --fn: 'Pretendard Variable', -apple-system, sans-serif;
    --ease: cubic-bezier(.4, 0, .2, 1);
    --radius: 20px
}

html {
    scroll-behavior: smooth
}

body {
    font-family: var(--fn);
    background: var(--bg);
    color: var(--tx);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    line-height: 1.6;
    word-break: keep-all;
    overflow-wrap: break-word
}

/* ── Korean word-break ── */
body, p, li, blockquote, span,
h1, h2, h3, h4, h5, h6,
.narrative, .c-card, .jd-section,
.jd-highlight, .jd-oneliner {
    word-break: keep-all;
    overflow-wrap: break-word
}

/* ============================================================
   NAV — 데스크톱 pill nav + 모바일 햄버거
   ============================================================ */
nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    background: rgba(250, 249, 247, .85);
    backdrop-filter: blur(20px) saturate(1.8);
    -webkit-backdrop-filter: blur(20px) saturate(1.8);
    border: 1px solid rgba(139, 111, 71, .1);
    border-radius: 100px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, .06)
}

.nav-logo {
    font-weight: 800;
    font-size: 14px;
    letter-spacing: -.02em;
    padding: 0 16px 0 12px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--tx)
}

.nav-logo .nav-logo-icon {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    flex-shrink: 0
}

.nav-logo span {
    color: var(--tx3);
    font-weight: 400;
    font-size: 12px
}

nav a {
    text-decoration: none;
    color: var(--tx2);
    font-size: 13px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 100px;
    transition: all .25s var(--ease);
    white-space: nowrap
}

nav a:hover {
    color: var(--tx);
    background: var(--ac-light)
}

nav a.active {
    color: #fff;
    background: var(--ac)
}

.nav-cta {
    background: var(--ac);
    color: #fff !important;
    padding: 8px 20px !important;
    font-weight: 600 !important;
    margin-left: 4px
}

.nav-cta:hover {
    background: var(--ac2) !important;
    transform: scale(1.02)
}

/* ── Nav Links Wrapper (desktop) ── */
.nav-links {
    display: flex;
    align-items: center;
    gap: 4px
}

/* ── Hamburger Button ── */
.nav-hamburger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
    border-radius: 50%;
    transition: background .2s;
    flex-shrink: 0
}

.nav-hamburger:hover {
    background: var(--ac-light)
}

.nav-hamburger svg {
    width: 20px;
    height: 20px;
    stroke: var(--tx);
    stroke-width: 2;
    stroke-linecap: round;
    fill: none
}

/* ── Mobile Overlay ── */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(26, 23, 20, .5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10000;
    opacity: 0;
    transition: opacity .3s var(--ease)
}

.mobile-nav-overlay.open {
    opacity: 1
}

/* ── Mobile Drawer ── */
.mobile-nav-drawer {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 85vw);
    height: 100vh;
    background: var(--bg);
    z-index: 10001;
    flex-direction: column;
    padding: 24px;
    transition: right .35s var(--ease);
    box-shadow: -8px 0 32px rgba(0, 0, 0, .1)
}

.mobile-nav-drawer.open {
    right: 0
}

.mobile-nav-close {
    align-self: flex-end;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(139, 111, 71, .15);
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    color: var(--tx2);
    transition: all .2s;
    margin-bottom: 32px
}

.mobile-nav-close:hover {
    background: var(--ac);
    color: #fff;
    border-color: var(--ac)
}

.mobile-nav-drawer a {
    display: block;
    padding: 16px 20px;
    font-size: 17px;
    font-weight: 600;
    color: var(--tx);
    text-decoration: none;
    border-radius: 12px;
    transition: all .2s var(--ease);
    margin-bottom: 4px
}

.mobile-nav-drawer a:hover {
    background: var(--ac-light);
    color: var(--ac)
}

.mobile-nav-drawer a.active {
    background: var(--ac);
    color: #fff
}

.mobile-nav-drawer .nav-cta {
    margin-top: 16px;
    text-align: center;
    background: var(--ac);
    color: #fff !important;
    padding: 16px 20px !important;
    border-radius: 14px;
    font-weight: 700 !important;
    font-size: 16px
}

/* ── Mobile Responsive ── */
@media (max-width: 900px) {
    nav {
        border-radius: 16px;
        padding: 8px 12px
    }

    .nav-links {
        display: none
    }

    .nav-hamburger {
        display: flex
    }

    .mobile-nav-overlay,
    .mobile-nav-drawer {
        display: block
    }

    .mobile-nav-drawer {
        display: flex
    }
}

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .8s var(--ease), transform .8s var(--ease)
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0)
}

.reveal-delay-1 { transition-delay: .15s }
.reveal-delay-2 { transition-delay: .3s }
.reveal-delay-3 { transition-delay: .45s }

/* ============================================================
   LAYOUT
   ============================================================ */
.section {
    padding: 120px 0
}

.col {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 32px
}

.wide-col {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 32px
}

.chapter-marker {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 48px
}

.chapter-num {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--ac);
    background: var(--ac-light);
    padding: 6px 16px;
    border-radius: 100px;
    white-space: nowrap
}

.chapter-line {
    flex: 1;
    height: 1px;
    background: rgba(139, 111, 71, .15)
}

.pull-quote {
    font-size: clamp(28px, 3.5vw, 42px);
    font-weight: 800;
    color: var(--tx);
    line-height: 1.35;
    letter-spacing: -.04em;
    margin: 72px 0;
    padding-left: 28px;
    border-left: 4px solid var(--ac)
}

.pull-quote em {
    font-style: normal;
    background: linear-gradient(135deg, var(--ac), #c9a96e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text
}

.narrative p {
    font-size: 18px;
    line-height: 2;
    color: var(--tx2);
    margin-bottom: 32px
}

.narrative p strong {
    color: var(--tx);
    font-weight: 700
}

/* ============================================================
   PAGE HERO (서브페이지 공통)
   ============================================================ */
.page-hero {
    padding: 180px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden
}

.page-hero .col {
    position: relative;
    z-index: 1
}

.page-hero .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--ac);
    margin-bottom: 24px
}

.page-hero .eyebrow .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ac);
    animation: pulse 2s infinite
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1) }
    50% { opacity: .5; transform: scale(1.3) }
}

.page-hero h1 {
    font-size: clamp(40px, 6vw, 68px);
    font-weight: 900;
    letter-spacing: -.06em;
    line-height: 1.1;
    margin-bottom: 24px;
    position: relative
}

.page-hero h1 em {
    font-style: normal;
    background: linear-gradient(135deg, var(--ac), #c9a96e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text
}

.page-hero .sub {
    font-size: clamp(16px, 1.8vw, 19px);
    color: var(--tx2);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.8
}

/* ============================================================
   PHOTO BREAK
   ============================================================ */
.photo-break {
    margin: 0;
    width: 100%;
    position: relative;
    overflow: hidden
}

.photo-break img {
    width: 100%;
    height: 50vh;
    object-fit: cover;
    display: block;
    transition: transform 8s linear
}

.photo-break:hover img {
    transform: scale(1.03)
}

.photo-break .caption {
    max-width: 720px;
    margin: 20px auto 0;
    padding: 0 32px;
    font-size: 13px;
    color: var(--tx3);
    font-style: italic
}

/* ============================================================
   CTA BANNER (서브페이지 공통)
   ============================================================ */
.cta-banner {
    background: var(--tx);
    padding: 80px 0;
    text-align: center
}

.cta-banner h2 {
    color: #fff;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    letter-spacing: -.04em;
    margin-bottom: 12px
}

.cta-banner h2 em {
    font-style: normal;
    background: linear-gradient(135deg, #f0d68a, #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text
}

.cta-banner p {
    color: rgba(255, 255, 255, .6);
    font-size: 15px;
    margin-bottom: 28px
}

.cta-banner .btn-group {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap
}

.btn-primary {
    display: inline-block;
    background: #fff;
    color: var(--ac);
    padding: 16px 40px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: all .3s var(--ease);
    box-shadow: 0 4px 20px rgba(0, 0, 0, .1)
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .2)
}

.btn-outline {
    display: inline-block;
    background: transparent;
    color: rgba(255, 255, 255, .8);
    padding: 16px 40px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, .2);
    transition: all .3s var(--ease)
}

.btn-outline:hover {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .4);
    transform: translateY(-2px)
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
    text-align: center;
    padding: 48px 32px;
    font-size: 12px;
    color: var(--tx3)
}

footer a {
    color: var(--ac);
    text-decoration: none
}

/* ============================================================
   RESPONSIVE — 공통 breakpoints
   ============================================================ */
@media (max-width: 600px) {
    .section {
        padding: 80px 0
    }

    .page-hero {
        padding: 140px 0 72px
    }

    .photo-break img {
        height: 40vh
    }
}
