@charset "utf-8";
/* =========================================================
   NOAH header  (css/header.css)
   - default.css 이후에 로드되어 헤더 영역을 덮어씁니다.
   - 배경 투명 / 로고 + GNB 메뉴 + 1:1 문의하기 버튼
   - 메뉴는 그누보드 메뉴 DB 루프 구조 유지(관리자 추가 시 자동 노출)
   - 메뉴마다 색상이 다르게 보이도록 nth-child 로 색상 순환
   ========================================================= */

/* ----- 기존 다크 헤더 스타일 초기화 ----- */
#hd { background: transparent; min-width: 0; }
#hd:after { content: ""; display: block; clear: both; }

/* ----- 헤더 래퍼 ----- */
.noah-hd {
    width: 100%;
    background: transparent;
    position: fixed;
    top: 0;
    z-index: 1111;
}
.noah-hd-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: 1920px;
    min-height: 92px;
    margin: 0 auto;
    padding: 0 30px;
    box-sizing: border-box;
}

/* ----- 로고 ----- */
.noah-logo {
    flex: 0 0 auto;
    margin: 0;
    line-height: 1;
}
.noah-logo a {
    display: inline-flex;
    align-items: center;
    transform-origin: center center;   /* 로고 가운데 기준 회전 */
    will-change: transform;
}
.noah-logo img {
    display: block;
    max-height: 30px;
    width: auto;
}
.noah-logo-text {
    font-family: "Mozilla Headline", "Noto Sans KR", sans-serif;
    font-size: 34px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #0F0E0E;
}

/* ----- GNB 메뉴 ----- */
.noah-gnb {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
}
.noah-gnb-list {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.noah-gnb-item {
    position: relative;
}
.noah-gnb-link {
    display: inline-block;
    padding: 12px;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -0.02em;
    color: #0F0E0E;
    white-space: nowrap;
    transition: filter .15s ease, transform .15s ease;
}
.noah-gnb-link:hover,
.noah-gnb-link:focus {
    filter: brightness(0.94);
    transform: translateY(-1px);
}

/* 배경 이미지 공통 */
.noah-gnb-item .noah-gnb-link {
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
}
/* 1·2·3번째 메뉴만 지정 배경 이미지 유지 */
.noah-gnb-item:nth-child(1) .noah-gnb-link {
    border-radius: 0;
    background-image: url(../assets/images/nav_bg-1.png);
}
.noah-gnb-item:nth-child(2) .noah-gnb-link {
    border-radius: 999px;
    background-image: url(../assets/images/nav_bg-2.png);
}
.noah-gnb-item:nth-child(3) .noah-gnb-link {
    border-radius: 6px;
    background-image: url(../assets/images/nav_bg-3.png);
}

/* 4번째부터: 단색 버튼 스타일 (노랑 알약 → 베이지 사각 → 핑크 알약 → 파랑 라운드, 4개 주기 반복) */
.noah-gnb-item:nth-child(n+4) .noah-gnb-link {
    padding: 12px 24px;
    background-image: none;
}
.noah-gnb-item:nth-child(n+4):nth-child(4n) .noah-gnb-link {      /* 4, 8, 12 … 노랑 알약 */
    border-radius: 999px;
    background-color: #FFCC00;
}
.noah-gnb-item:nth-child(n+4):nth-child(4n+1) .noah-gnb-link {    /* 5, 9, 13 … 베이지 사각 */
    border-radius: 0;
    background-color: #C3A278;
}
.noah-gnb-item:nth-child(n+4):nth-child(4n+2) .noah-gnb-link {    /* 6, 10, 14 … 핑크 알약 */
    border-radius: 999px;
    background-color: #FF7B94;
}
.noah-gnb-item:nth-child(n+4):nth-child(4n+3) .noah-gnb-link {    /* 7, 11, 15 … 파랑 라운드 */
    border-radius: 6px;
    background-color: #4AA0FF;
}

/* 하위 메뉴 (드롭다운) */
.noah-gnb-sub {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 160px;
    margin: 8px 0 0;
    padding: 8px 0;
    list-style: none;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .15s ease, transform .15s ease, visibility .15s;
    z-index: 100;
}
.noah-gnb-item.has-sub:hover .noah-gnb-sub,
.noah-gnb-item.has-sub:focus-within .noah-gnb-sub {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.noah-gnb-sub li a {
    display: block;
    padding: 10px 18px;
    font-size: 15px;
    color: #0F0E0E;
    white-space: nowrap;
}
.noah-gnb-sub li a:hover,
.noah-gnb-sub li a:focus {
    background: #f4f4f4;
    color: #111;
}

.noah-gnb-empty {
    color: #666;
    font-size: 15px;
}

/* ----- 1:1 문의하기 버튼 ----- */
.noah-cta {
    flex: 0 0 auto;
}
.noah-cta-btn {
    display: inline-block;
    padding: 12px;
    border-radius: 99px;
    background: #D1D2D8;
    color: #0F0E0E;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -0.02em;
    white-space: nowrap;
    transition: background .15s ease, transform .15s ease;
}
.noah-cta-btn:hover,
.noah-cta-btn:focus {
    background: #cfcfcf;
    transform: translateY(-1px);
}

/* ----- 햄버거 버튼 (기본: 데스크톱에서 숨김) ----- */
.noah-hamburger {
    display: none;
    flex: 0 0 auto;
    position: relative;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    z-index: 1120;
    background: #fff;
}
.noah-hamburger-bar {
    position: absolute;
    left: 10px;
    width: 24px;
    height: 2px;
    background: #0F0E0E;
    border-radius: 2px;
    transition: transform .25s ease, opacity .2s ease, top .25s ease;
}
.noah-hamburger-bar:nth-child(1) { top: 15px; }
.noah-hamburger-bar:nth-child(2) { top: 21px; }
.noah-hamburger-bar:nth-child(3) { top: 27px; }
/* 열렸을 때 X 모양 */
.noah-hamburger.is-active .noah-hamburger-bar:nth-child(1) {
    top: 21px;
    transform: rotate(45deg);
}
.noah-hamburger.is-active .noah-hamburger-bar:nth-child(2) {
    opacity: 0;
}
.noah-hamburger.is-active .noah-hamburger-bar:nth-child(3) {
    top: 21px;
    transform: rotate(-45deg);
}

/* ----- 모바일 GNB (기본: 숨김, 1024px 이하에서만 노출) ----- */
.noah-mobile-gnb {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 112px 28px 40px;
    background: linear-gradient(180deg, #ffffff 0%, #f6f6f8 100%);
    overflow-y: auto;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .35s ease, transform .35s cubic-bezier(.22,.61,.36,1), visibility .35s;
    z-index: 1100;
}
.noah-mobile-gnb.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.noah-mobile-gnb-list {
    margin: 0;
    padding: 0;
    list-style: none;
}
.noah-mobile-gnb-item {
    border-bottom: 1px solid rgba(15, 14, 14, .08);
    /* 열릴 때 항목이 순차적으로 페이드업 */
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .4s ease, transform .4s ease;
}
.noah-mobile-gnb.is-open .noah-mobile-gnb-item {
    opacity: 1;
    transform: translateY(0);
}
.noah-mobile-gnb.is-open .noah-mobile-gnb-item:nth-child(1) { transition-delay: .10s; }
.noah-mobile-gnb.is-open .noah-mobile-gnb-item:nth-child(2) { transition-delay: .16s; }
.noah-mobile-gnb.is-open .noah-mobile-gnb-item:nth-child(3) { transition-delay: .22s; }
.noah-mobile-gnb.is-open .noah-mobile-gnb-item:nth-child(4) { transition-delay: .28s; }
.noah-mobile-gnb.is-open .noah-mobile-gnb-item:nth-child(5) { transition-delay: .34s; }
.noah-mobile-gnb.is-open .noah-mobile-gnb-item:nth-child(6) { transition-delay: .40s; }
.noah-mobile-gnb.is-open .noah-mobile-gnb-item:nth-child(n+7) { transition-delay: .46s; }

.noah-mobile-gnb-link {
    display: flex;
    align-items: center;
    padding: 20px 4px;
    font-family: "Mozilla Headline", "Noto Sans KR", sans-serif;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #0F0E0E;
    transition: color .2s ease, padding-left .2s ease;
}
.noah-mobile-gnb-link:hover,
.noah-mobile-gnb-link:focus {
    color: var(--orange);
    padding-left: 10px;
}
/* 하위 메뉴가 있는 항목 표시(+ 화살표 느낌) */
.noah-mobile-gnb-item.has-sub > .noah-mobile-gnb-link::after {
    content: "";
    width: 8px;
    height: 8px;
    margin-left: auto;
    border-right: 2px solid rgba(15, 14, 14, .35);
    border-bottom: 2px solid rgba(15, 14, 14, .35);
    transform: rotate(45deg);
}
.noah-mobile-gnb-sub {
    margin: 0 0 14px;
    padding: 0 0 6px 14px;
    list-style: none;
    border-left: 2px solid rgba(15, 14, 14, .08);
}
.noah-mobile-gnb-sub li a {
    display: block;
    padding: 11px 4px;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    transition: color .2s ease, padding-left .2s ease;
}
.noah-mobile-gnb-sub li a:hover,
.noah-mobile-gnb-sub li a:focus {
    color: #0F0E0E;
    padding-left: 8px;
}
.noah-mobile-gnb-empty {
    padding: 20px 4px;
    color: #666;
    font-size: 16px;
}
.noah-mobile-cta {
    margin-top: 36px;
}
.noah-mobile-cta .noah-cta-btn {
    display: block;
    padding: 18px;
    text-align: center;
    font-size: 18px;
    border-radius: 16px;
    background: #0F0E0E;
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 14, 14, .18);
}
.noah-mobile-cta .noah-cta-btn:hover,
.noah-mobile-cta .noah-cta-btn:focus {
    background: #2a2930;
    transform: translateY(-1px);
}
/* 모바일 메뉴 열렸을 때 본문 스크롤 잠금 */
body.noah-mobile-gnb-open {
    overflow: hidden;
}

/* 데스크톱(1024px 초과)에서는 모바일 GNB 완전 숨김 */
@media (min-width: 1140px) {
    .noah-mobile-gnb { display: none; }
}

/* ----- 반응형 ----- */
@media (max-width: 1139px) {
    .noah-hd-inner { gap: 16px; padding: 0 20px; }
    /* 데스크톱 GNB / CTA 숨기고 로고 + 햄버거만 노출 */
    .noah-gnb,
    .noah-cta { display: none; }
    .noah-hamburger { display: block; }
}
