@charset "utf-8";

/* ===========================
   HEADER
=========================== */
#header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: #fff;
}


.btn-consult {
    /* 기존 스타일 유지 */
    width: 140px;
    height: 80px;
    display: block;  /* flex → block */
    align-items: center;
    gap: 8px;
    color: #fff;
    padding: 8px 16px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(232, 92, 0, 0.3);

    /* gooey 효과 추가 */
    background-image: linear-gradient(120deg, #ff6b31 0%, #f7bb15 100%);
    border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
    transform-style: preserve-3d;
    outline: 1px solid transparent;
    will-change: border-radius;
    position: relative;
    animation: morph 3s linear infinite;
}

@keyframes morph {
    0%, 100% {
        border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
        transform: translateY(0) rotateZ(0.01deg);
    }
    34% {
        border-radius: 70% 30% 46% 54% / 30% 29% 71% 70%;
        transform: translateY(-6px) rotateZ(0.01deg);
    }
    50% {
        transform: translateY(0) rotateZ(0.01deg);
    }
    67% {
        border-radius: 100% 60% 60% 100% / 100% 100% 60% 60%;
        transform: translateY(3px) rotateZ(0.01deg);
    }
}


.btn-consult:before,
.btn-consult:after {
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    left: 2px;
    top: 0;
    border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
    will-change: border-radius, transform, opacity;
    animation-delay: 200ms;
    background-image: linear-gradient(120deg, #ff6b31 0%, #f7bb15 100%);
    z-index: 0;
}

.btn-consult:after {
    content: var(--phone, "전화상담\A 1234-5678");
    white-space: pre;
    color: white;
    line-height: 1.4;        /* 49px → 1.4 */
    text-indent: 8px;
    font-size: 21px;         /* 21px → 14px */
    font-weight: 700;
    font-family: 'Pretendard-Regular', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    text-indent: 0;
    text-align: center;
    padding: 0 10px;
}

.btn-consult > span {
    position: relative;
    z-index: 1;
    animation: none !important;
    transform: none !important;
}

.btn-consult:before {
    animation: morph 3s linear infinite;
    opacity: .21;
    animation-duration: 1.5s;
}




/* ===========================
   GNB DROPDOWN
=========================== */
.gnb-item--dropdown {
    position: relative;
}

.gnb-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);  /* Y축으로 10px 띄움 */
    min-width: 140px;
    border-radius: 10px;
    z-index: 100;
    list-style: none;
    padding: 6px 0;
    background-color: white;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.gnb-item--dropdown:hover .gnb-dropdown {
    display: block;
}


.gnb-dropdown li a {
    display: block;
    padding: 12px 20px;
    color: #222;                /* 기본 텍스트 색상 */
    white-space: nowrap;
    text-align: center;
    transition: background 0.2s;
}

.gnb-dropdown li a:hover {
    background-color: var(--primary);
    color: #fff;                /* hover시 텍스트 흰색 */
}

.logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.header-inner {
    height: 100px;
    gap: 32px;
}

/* ===========================
   LOGO
=========================== */
.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
}


.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.logo-main {
    font-size: 1.125rem;  /* 18px */
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.3px;
}

.logo-sub {
    font-size: 0.625rem;  /* 10px */
    color: #999;
    font-weight: 400;
}

/* ===========================
   GNB
=========================== */
.gnb-wrap {
    flex: 1;
}

.gnb {
    display: flex;
    align-items: center;
    gap: 40px;
}

.gnb-item {
    position: relative;
}

.gnb-link {
    display: block;
    padding: 8px 14px;
    color: #222;
    border-radius: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.gnb-link:hover {
    color: var(--primary);
    font-weight: 600;
}

.gnb-item.active .gnb-link {
    color: var(--primary);
    font-weight: 700;
}

.gnb-item.active::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

/* ===========================
   HEADER RIGHT
=========================== */
.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.consult-icon,
.consult-text {
    position: relative;
    z-index: 1;  /* 텍스트를 위로 */
}

.btn-consult:hover {
    box-shadow: 0 4px 16px rgba(232, 92, 0, 0.4);
    color: #fff;
}

.consult-icon {
    font-size: 1rem;
}

.consult-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.consult-label {
    font-size: 0.625rem;  /* 10px */
    font-weight: 500;
    opacity: 0.9;
}

.consult-number {
    font-size: 0.8125rem;  /* 13px */
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* 로그인/회원가입 */
.header-auth {
    display: flex;
    align-items: center;
    gap: 6px;
}

.auth-username {
    color: var(--aticle-title);
}

.auth-link {
    color: var(--aticle-title);
    padding: 4px 6px;
    transition: color 0.2s;
}


.primary {
    color: var(--primary);
}

.auth-divider {
    color: var(--aticle-title);
}

/* ===========================
   HAMBURGER
=========================== */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
    border-radius: 6px;
    background: none;
    border: none;
    transition: background 0.2s;
}

.hamburger:hover {
    background: var(--primary-light);
}

.hbg-line {
    display: block;
    width: 22px;
    height: 2px;
    background: #222;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.open .hbg-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.open .hbg-line:nth-child(2) {
    opacity: 0;
}

.hamburger.open .hbg-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===========================
   MOBILE MENU
=========================== */
.mobile-menu {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--header-border);
    padding: 16px 24px 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

.mobile-menu.open {
    display: block;
}

.mobile-gnb li a {
    display: block;
    padding: 14px 0;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #222;
    border-bottom: 1px solid var(--header-border);
    transition: color 0.2s;
}

.mobile-gnb li:last-child a {
    border-bottom: none;
}

.mobile-gnb li a:hover {
    color: var(--primary);
}

.mobile-auth {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--header-border);
}

.mobile-auth a {
    flex: 1;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid var(--header-border);
    color: #666;
    transition: opacity 0.2s;
}

.mobile-auth a:last-child {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.mobile-auth a:hover {
    opacity: 0.85;
}

/* ===========================
   OVERLAY
=========================== */
.header-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 998;
}

.header-overlay.open {
    display: block;
}

/* ===========================
   RESPONSIVE
=========================== */
@media screen and (max-width: 900px) {
    .gnb-wrap,
    .btn-consult,
    .header-auth {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .header-inner {
        justify-content: space-between;
        gap: 0;
    }
}

@media screen and (max-width: 767px) {
    .header-inner {
        padding: 0 16px;
    }

    .logo-main {
        font-size: 1rem;
    }
}
