/* =============================================
   HOBAN MEGA MENU PLUGIN  v1.0.3
   mega-menu.css
   ============================================= */

/* ── Variables ── */
:root {
    --hmm-gold:      #c8a96e;
    --hmm-gold-lt:   #e0c99a;
    --hmm-dark:      #080808;
    --hmm-h:         80px;
    --hmm-ease:      cubic-bezier(0.16, 1, 0.3, 1);
}

/* =============================================
   TOP-LEVEL NAV BAR
   ============================================= */
.hmm-nav {
    flex: 1;
    height: 100%;
    overflow: visible;
}

.hmm-top-list {
    display: flex;
    align-items: stretch;
    height: var(--hmm-h);
    list-style: none;
    margin: 0; padding: 0;
}

.hmm-top-item {
    position: relative; /* panels positioned from item */
    display: flex;
    align-items: stretch;
}

.hmm-top-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 15px;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: rgba(255,255,255,.82);
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    transition: color .2s;
    border: none;
    background: none;
}
.hmm-top-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 15px; right: 15px;
    height: 2px;
    background: var(--hmm-gold);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .25s var(--hmm-ease);
}

/* open state */
.hmm-top-item.hmm-open > .hmm-top-link { color: var(--hmm-gold); }
.hmm-top-item.hmm-open > .hmm-top-link::after { transform: scaleX(1); }

.hmm-arrow {
    flex-shrink: 0;
    opacity: .4;
    transition: transform .25s var(--hmm-ease), opacity .25s;
    pointer-events: none;
}
.hmm-top-item.hmm-open > .hmm-top-link .hmm-arrow {
    transform: rotate(180deg);
    opacity: .9;
}

/* =============================================
   DROPDOWN PANEL
   display:none by default — .hmm-open adds display:block
   position:fixed → always snaps below header bar
   ============================================= */
.hmm-panel {
    display: none;           /* HIDDEN by default — most reliable */
    position: fixed;
    top: var(--hmm-h);
    left: 0; right: 0;
    background: rgba(8,8,8,.98);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid rgba(200,169,110,.22);
    z-index: 99999;
    animation: hmmFadeIn .22s ease forwards;
}
.hmm-top-item.hmm-open > .hmm-panel { display: block; }

@keyframes hmmFadeIn {
    from { opacity:0; transform:translateY(-6px); }
    to   { opacity:1; transform:translateY(0); }
}

.hmm-panel-inner {
    display: flex;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Left column */
.hmm-col {
    flex: 0 0 280px;
    padding: 32px 32px 32px 0;
    border-right: 1px solid rgba(255,255,255,.07);
}
.hmm-col-title {
    font-family: 'Cinzel', serif;
    font-size: 9px;
    letter-spacing: .35em;
    color: var(--hmm-gold);
    text-transform: uppercase;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(200,169,110,.18);
}
.hmm-col ul {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-direction: column; gap: 1px;
}
.hmm-col ul li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 10px;
    font-size: 13px;
    color: rgba(255,255,255,.58);
    text-decoration: none;
    transition: all .18s;
}
.hmm-col ul li a:hover {
    color: #fff;
    background: rgba(200,169,110,.07);
    padding-left: 14px;
}
.hmm-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 11px;
    color: rgba(200,169,110,.65);
    min-width: 20px;
    font-style: italic;
}

/* Right: feature image */
.hmm-feature {
    flex: 1;
    padding: 28px 0 28px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
}
.hmm-feature-img {
    width: 100%;
    height: 150px;
    background: #2a2a2a;
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(255,255,255,.05);
    position: relative;
}
/* 이미지 없을 때 패턴 */
.hmm-feature-img:not([style]) {
    background: repeating-linear-gradient(
        135deg,
        #1a3a2a 0px, #1a3a2a 20px,
        #14301f 20px, #14301f 40px
    );
}
.hmm-feature-txt {
    font-family: 'Noto Serif KR', serif;
    font-size: 13px;
    color: rgba(255,255,255,.42);
    line-height: 1.8;
}
.hmm-feature-txt strong { color: rgba(255,255,255,.82); font-weight: 500; }

/* Contact box (고객센터) */
.hmm-contact-box {
    flex: 1;
    padding: 28px 0 28px 40px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
}
.hmm-contact-label {
    font-family: 'Cinzel', serif;
    font-size: 9px;
    letter-spacing: .3em;
    color: var(--hmm-gold);
    text-transform: uppercase;
    margin-bottom: 4px;
}
.hmm-contact-phone {
    font-family: 'Cormorant Garamond', serif;
    font-size: 34px;
    color: #fff;
    letter-spacing: .02em;
    line-height: 1;
    display: block;
    margin-bottom: 10px;
    text-decoration: none;
    transition: color .2s;
}
.hmm-contact-phone:hover { color: var(--hmm-gold); }
.hmm-contact-addr { font-size: 12px; color: rgba(255,255,255,.38); line-height: 1.8; }
.hmm-contact-addr strong { color: rgba(255,255,255,.62); font-weight: 500; }

/* Backdrop */
.hmm-backdrop {
    display: none;
    position: fixed;
    top: var(--hmm-h); left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,.52);
    z-index: 99998;
}
.hmm-backdrop.hmm-open { display: block; }

/* =============================================
   MOBILE HAMBURGER TOGGLE
   ============================================= */
.hmm-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
    flex-shrink: 0;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: 12px;
}
.hmm-toggle span {
    display: block;
    width: 24px; height: 1.5px;
    background: #fff;
    transition: all .3s;
}
.hmm-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hmm-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hmm-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* =============================================
   MOBILE DRAWER
   ============================================= */
.hmm-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,.62);
    z-index: 99997;
    opacity: 0;
    transition: opacity .3s;
}
.hmm-overlay.hmm-open { display: block; opacity: 1; }

.hmm-drawer {
    display: none;
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(380px, 92vw);
    background: #111;
    z-index: 99999;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform .38s var(--hmm-ease);
    overflow: hidden;
}
.hmm-drawer.hmm-open { transform: translateX(0); }

.hmm-drawer-inner { display: flex; flex-direction: column; height: 100%; overflow-y: auto; }

.hmm-drawer-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    flex-shrink: 0;
}
.hmm-drawer-logo { font-family: 'Cinzel', serif; font-size: 12px; letter-spacing: .12em; color: rgba(255,255,255,.6); }
.hmm-drawer-close { color: rgba(255,255,255,.4); background: none; border: none; cursor: pointer; padding: 4px; transition: color .2s; }
.hmm-drawer-close:hover { color: var(--hmm-gold); }

.hmm-mob-nav { flex: 1; padding: 8px 0; overflow-y: auto; list-style: none; margin: 0; }
.hmm-mob-item { border-bottom: 1px solid rgba(255,255,255,.05); }
.hmm-mob-toggle {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; padding: 16px 24px;
    font-family: 'Noto Sans KR', sans-serif; font-size: 15px; font-weight: 400;
    color: rgba(255,255,255,.75); text-align: left;
    background: none; border: none; cursor: pointer;
    transition: color .2s;
}
.hmm-mob-toggle:hover { color: var(--hmm-gold); }
.hmm-mob-toggle svg { flex-shrink: 0; opacity: .4; transition: transform .3s, opacity .3s; }
.hmm-mob-toggle[aria-expanded="true"] { color: var(--hmm-gold); }
.hmm-mob-toggle[aria-expanded="true"] svg { transform: rotate(180deg); opacity: .9; }

.hmm-mob-sub {
    display: none;
    background: rgba(255,255,255,.025);
    border-top: 1px solid rgba(255,255,255,.04);
    list-style: none; margin: 0; padding: 4px 0;
}
.hmm-mob-sub.hmm-open { display: block; }
.hmm-mob-sub li a {
    display: block; padding: 11px 24px 11px 40px;
    font-size: 13px; color: rgba(255,255,255,.45);
    text-decoration: none; position: relative;
    transition: all .18s;
}
.hmm-mob-sub li a::before {
    content: ''; position: absolute; left: 26px; top: 50%;
    width: 8px; height: 1px;
    background: rgba(200,169,110,.5);
    transform: translateY(-50%);
}
.hmm-mob-sub li a:hover { color: var(--hmm-gold); padding-left: 44px; }

.hmm-drawer-footer {
    padding: 16px 24px; border-top: 1px solid rgba(255,255,255,.08);
    display: flex; gap: 10px; flex-shrink: 0;
}
.hmm-mob-phone {
    display: flex; align-items: center; gap: 8px; flex: 1;
    padding: 12px 14px; background: rgba(255,255,255,.05);
    font-size: 13px; font-weight: 600; color: #fff;
    border: 1px solid rgba(255,255,255,.1);
    text-decoration: none; transition: all .2s;
}
.hmm-mob-phone:hover { border-color: var(--hmm-gold); color: var(--hmm-gold); }
.hmm-mob-reg {
    display: flex; align-items: center; justify-content: center; flex: 1;
    padding: 12px 14px; background: var(--hmm-gold);
    font-size: 13px; font-weight: 700; color: #111;
    text-decoration: none; transition: background .2s;
}
.hmm-mob-reg:hover { background: var(--hmm-gold-lt); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1199px) {
    .hmm-top-link { padding: 0 10px; font-size: 13px; }
}

@media (max-width: 1023px) {
    /* Hide desktop nav, show hamburger */
    .hmm-nav      { display: none !important; }
    .hmm-toggle   { display: flex !important; }
    .hmm-drawer   { display: flex; }  /* JS controls open state */
}
