/* ===================================
   EEHO TAX — Header & Footer
   Design tokens from homepage
   =================================== */

:root {
    --bg: #FFF;
    --bg2: #FAFAFA;
    --bg-w: #F8F7F5;
    --tx: #111118;
    --tx2: #555566;
    --tx3: #8E8E9A;
    --bd: #E8E8EC;
    --bd2: #D0D0D8;
    --coral: #FF6161;
    --coral-bg: #FFF0F0;
    --dk: #111118;
    --dk2: #1A1A24;
    --pill: 100px;
    --F: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
    --ease: cubic-bezier(.16, 1, .3, 1);
}

.eh *, .ef * {
    margin: 0; padding: 0; box-sizing: border-box;
}

/* ===================================
   HEADER
   =================================== */
.eh {
    position: sticky;
    top: 0;
    z-index: 99999;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    font-family: var(--F);
    transition: border-color .3s, box-shadow .3s;
}

.eh.scrolled {
    border-bottom-color: var(--bd);
    box-shadow: 0 1px 12px rgba(0, 0, 0, .04);
}

.eh-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* ── Logo (이미지) ── */
.eh-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
    transition: opacity .2s;
}

.eh-logo:hover {
    opacity: .8;
}

.eh-logo-symbol {
    height: 34px;
    width: auto;
    object-fit: contain;
}

.eh-logo-wordmark {
    height: 26px;
    width: auto;
    object-fit: contain;
}

/* ── Nav ── */
.eh-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    flex: 1;
    justify-content: center;
}

.eh-nav a {
    display: block;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--tx2);
    text-decoration: none;
    border-radius: 8px;
    transition: color .2s, background .2s;
    white-space: nowrap;
}

.eh-nav a:hover,
.eh-nav .current-menu-item a,
.eh-nav a.current {
    color: var(--tx);
    background: var(--bg2);
}

/* ── Actions ── */
.eh-acts {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.eh-btn-login {
    padding: 7px 16px;
    font-family: var(--F);
    font-size: 13px;
    font-weight: 600;
    color: var(--tx);
    background: transparent;
    border: 1.5px solid var(--bd);
    border-radius: var(--pill);
    cursor: pointer;
    transition: all .2s;
    text-decoration: none;
    white-space: nowrap;
}

.eh-btn-login:hover {
    border-color: var(--bd2);
    background: var(--bg2);
    color: var(--tx);
}

.eh-btn-cta {
    padding: 8px 20px;
    font-family: var(--F);
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: var(--tx);
    border: none;
    border-radius: var(--pill);
    cursor: pointer;
    transition: all .25s;
    text-decoration: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.eh-btn-cta:hover {
    background: #3A3A45;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .12);
}

/* ── Mobile Toggle ── */
.eh-mob-toggle {
    display: none;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}

.eh-mob-toggle span {
    display: block;
    width: 20px;
    height: 1.5px;
    background: var(--tx);
    border-radius: 2px;
    position: absolute;
    left: 8px;
    transition: all .3s var(--ease);
}

.eh-mob-toggle span:nth-child(1) { top: 11px; }
.eh-mob-toggle span:nth-child(2) { top: 17px; }
.eh-mob-toggle span:nth-child(3) { top: 23px; }

.eh-mob-toggle.is-open span:nth-child(1) { top: 17px; transform: rotate(45deg); }
.eh-mob-toggle.is-open span:nth-child(2) { opacity: 0; }
.eh-mob-toggle.is-open span:nth-child(3) { top: 17px; transform: rotate(-45deg); }

.eh-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(17, 17, 24, .3);
    z-index: 99998;
    opacity: 0;
    transition: opacity .3s;
    backdrop-filter: blur(4px);
}

.eh-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}


/* ===================================
   FOOTER
   =================================== */
.ef {
    background: var(--dk);
    color: rgba(255, 255, 255, .6);
    font-family: var(--F);
}

.ef a {
    color: rgba(255, 255, 255, .6);
    text-decoration: none;
    transition: color .2s;
}

.ef a:hover {
    color: #fff;
}

.ef-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 56px 20px 28px;
}

.ef-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

/* ── Footer Brand ── */
.ef-brand {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ef-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: opacity .2s;
}

.ef-logo:hover {
    opacity: .8;
}

/* 다크 배경에서 로고 흰색 반전 */
.ef-logo-symbol {
    height: 30px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.ef-logo-wordmark {
    height: 20px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.ef-desc {
    font-size: 13px;
    line-height: 1.65;
    color: rgba(255, 255, 255, .4);
    max-width: 300px;
}

.ef-kakao {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: var(--pill);
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, .7);
    transition: all .2s;
    width: fit-content;
}

.ef-kakao:hover {
    background: rgba(255, 255, 255, .1);
    color: #fff;
}

/* ── Footer Columns ── */
.ef-cols {
    display: flex;
    justify-content: flex-end;
    gap: 80px;
}

.ef-col h4 {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, .3);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
}

.ef-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.ef-col ul a {
    font-size: 13px;
    padding: 1px 0;
}

/* ── Footer Bottom ── */
.ef-bot {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 20px;
    font-size: 11px;
    color: rgba(255, 255, 255, .25);
}

.ef-legal {
    display: flex;
    gap: 16px;
}

.ef-legal a {
    font-size: 11px;
    color: rgba(255, 255, 255, .25);
}

.ef-legal a:hover {
    color: rgba(255, 255, 255, .5);
}

/* ===================================
   RESPONSIVE
   =================================== */

@media (max-width: 767px) {
    .eh-inner { height: 56px; }
    .eh-logo-symbol { height: 28px; }
    .eh-logo-wordmark { height: 20px; }
    .eh-mob-toggle { display: block; }
    .eh-overlay { display: block; pointer-events: none; }

    .eh-nav {
        position: fixed;
        top: 0; right: 0;
        width: 260px; height: 100dvh;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: #fff;
        padding: 72px 16px 24px;
        z-index: 99999;
        transform: translateX(100%);
        transition: transform .35s var(--ease);
        box-shadow: -4px 0 32px rgba(0, 0, 0, .08);
    }

    .eh-nav.is-open { transform: translateX(0); }
    .eh-nav a { padding: 12px 14px; font-size: 15px; border-radius: 10px; }

    .eh-btn-login { padding: 5px 10px; font-size: 11px; }
    .eh-btn-cta { padding: 6px 12px; font-size: 11px; gap: 4px; }

    .ef-cols { gap: 24px; }
}

@media (min-width: 768px) {
    .eh-inner { height: 68px; padding: 0 28px; }
    .eh-logo-symbol { height: 36px; }
    .eh-logo-wordmark { height: 28px; }
    .eh-nav a { padding: 8px 20px; font-size: 14px; }

    .ef-inner { padding: 64px 28px 32px; }
    .ef-top { grid-template-columns: 260px 1fr; gap: 48px; }
    .ef-cols { gap: 60px; }
    .ef-bot { flex-direction: row; justify-content: space-between; align-items: center; }
}

@media (min-width: 1100px) {
    .eh-inner { height: 72px; }
    .eh-logo-symbol { height: 38px; }
    .eh-logo-wordmark { height: 30px; }
    .eh-nav a { font-size: 15px; padding: 8px 24px; }
    .eh-btn-login { padding: 8px 18px; font-size: 14px; }
    .eh-btn-cta { padding: 9px 22px; font-size: 14px; }

    .ef-top { grid-template-columns: 280px 1fr; gap: 60px; }
    .ef-cols { gap: 100px; }
    .ef-logo-symbol { height: 32px; }
    .ef-logo-wordmark { height: 22px; }
}