/* ════════════════════════════════════════
   NAV — 네비게이션 / 서브메뉴 / 모바일 메뉴
   ════════════════════════════════════════ */

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 72px;
  background: transparent;
  backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, border-bottom 0.4s ease;
}

/* 스크롤 전 투명 상태일 때 텍스트 색상 (영상 위 가독성) */
nav:not(.scrolled) .nav-links a {
  color: var(--white);
  text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

nav:not(.scrolled) .btn-reserve {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}

nav:not(.scrolled) .btn-menu span {
  background: var(--white);
}

/* 전체 화면 영상인 index2.html 전용: 로고까지 흰색으로 변경 */
nav.nav-immersive:not(.scrolled) .logo {
  color: var(--white);
}

/* index.html을 제외한 서브 페이지: 상단 영상/사진 위 가독성을 위해 로고 텍스트 흰색 */
nav.nav-sub:not(.scrolled) .logo {
  color: var(--white);
}

nav.scrolled {
  background: rgba(242,237,228,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(139,111,71,0.12);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--brown-deep);
}

.logo img {
  height: 38px; /* 로고 사이즈를 조절하는 부분입니다 */
  width: auto;
  display: block;
}

.logo-text {
  font-family: 'Noto Serif KR', serif;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
  margin-left: auto; /* 로고로부터 메뉴를 오른쪽으로 밀어냄 */
  margin-right: 40px; /* 예약 버튼과의 간격 확보 */
}

.nav-links a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: inherit; /* 부모 상태에 따라 색상 상속 */
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold); }

/* Submenu */
.nav-links li {
  position: relative;
}

.submenu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--white);
  min-width: 170px;
  list-style: none;
  padding: 12px 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  border-top: 2px solid var(--gold);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 110;
}

.nav-links li:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* 모바일 전용 하위 메뉴 스타일 */
.nav-links.mobile-active .has-submenu > a {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.nav-links.mobile-active .has-submenu > a::after {
  content: '▾';
  font-size: 12px;
  transition: transform 0.3s ease;
  color: var(--gold);
}
.nav-links.mobile-active .has-submenu.active .submenu {
  opacity: 1;
  visibility: visible;
  position: static;
  transform: none;
  box-shadow: none;
  border-top: none;
  padding: 10px 0 10px 20px;
  background: transparent;
  display: block;
}
.nav-links.mobile-active .has-submenu.active > a::after {
  transform: rotate(180deg);
}
.nav-links.mobile-active .submenu li a {
  color: var(--white) !important;
  font-size: 14px;
  padding: 8px 0;
  display: block;
}

/* Submenu link styles - Overriding top-level color if necessary */
nav .nav-links li .submenu li a {
  display: block;
  padding: 10px 24px;
  font-size: 13px;
  color: var(--brown-deep) !important;
  text-shadow: none !important;
  white-space: nowrap;
  letter-spacing: 0.05em;
}

.nav-links .submenu a:hover {
  background: rgba(139, 111, 71, 0.05);
  color: var(--gold) !important;
}

.nav-right { display: flex; align-items: center; gap: 16px; }

.btn-reserve {
  padding: 9px 22px;
  border: 1.5px solid var(--gold);
  border-radius: 40px;
  background: transparent;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--brown-deep);
  cursor: pointer;
  transition: all 0.25s;
}
.btn-reserve:hover { background: var(--gold); color: var(--white); }

.btn-menu {
  width: 36px; height: 36px;
  border: 1px solid rgba(139,111,71,0.35);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  display: none; align-items: center; justify-content: center; /* PC 버전에서는 숨김 */
  gap: 0;
  flex-direction: column;
}
.btn-menu span {
  display: block;
  width: 14px; height: 1px;
  background: var(--brown-deep) !important;
  margin: 2px 0;
  transition: all 0.2s;
}

.btn-menu.active span {
  background: var(--brown-deep) !important;
}

.btn-menu.active span:nth-child(1) {
  transform: translateY(2.5px) rotate(45deg);
}
.btn-menu.active span:nth-child(2) {
  transform: translateY(-2.5px) rotate(-45deg);
}
