/* ============================================================
   더 웹이즈 시그니처 (theme/13) — 보조 CSS
   Tailwind utility로 처리 불가한 예외만: full-bleed/overflow,
   GNB 드롭다운, 모바일 드로어, Swiper fade·pagination, 갤러리 캡션.
   ============================================================ */

html { scroll-behavior: smooth; overflow-x: hidden; }
body { overflow-x: hidden; width: 100%; line-height: 1.6; }
img { display: block; max-width: 100%; height: auto; }

/* 앵커 이동 시 고정 헤더 가림 방지 */
section[id], main[id] { scroll-margin-top: 80px; }

/* ===== GNB 드롭다운 (PC) ===== */
.gnb-sub {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  min-width: 160px; background: rgba(0,0,0,0.92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  padding: 8px 0; border-radius: 4px;
  opacity: 0; visibility: hidden; transition: all 0.25s;
  z-index: 50;
}
.group:hover .gnb-sub { opacity: 1; visibility: visible; }
.gnb-sub li a {
  display: block; padding: 10px 24px; font-size: 14px;
  color: rgba(255,255,255,0.7); white-space: nowrap; transition: all 0.2s;
}
.gnb-sub li a:hover { color: #C9B8A8; padding-left: 28px; }

/* ===== 모바일 드로어 ===== */
/* Tailwind4의 translate-x-full은 'translate' 속성을 써서 transform 덮기가 안 됨 → transform으로 일원화 */
.mobile-nav { transform: translateX(100%); transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1); }
.mobile-nav.active { transform: translateX(0); }
.mobile-nav-overlay.active { opacity: 1; visibility: visible; }
.mnav-title.open i { transform: rotate(180deg); }

/* ===== HERO Swiper ===== */
.hero-slide { position: relative; }
.hero-overlay {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,0.30) 0%, rgba(0,0,0,0.10) 40%, rgba(0,0,0,0.55) 100%);
}
/* Swiper가 슬라이드에 display:block 강제 → fade 정렬 보정 */
.hero-slider .swiper-slide { display: block !important; }

.hero-pagination { position: absolute; bottom: 40px !important; z-index: 10; }
.hero-pagination .swiper-pagination-bullet {
  width: 40px; height: 3px; border-radius: 0;
  background: rgba(255,255,255,0.4); opacity: 1; transition: all 0.3s;
}
.hero-pagination .swiper-pagination-bullet-active {
  background: #fff; width: 60px;
}

/* ===== Location 리스트 불릿 ===== */
.loc-li::before {
  content: ''; flex-shrink: 0; width: 6px; height: 6px;
  border-radius: 50%; background: #AC8F78; margin-top: 8px;
}
.loc-more:hover, .plans-more:hover { gap: 12px; }

/* ===== Plans 탭 active/hover ===== */
.plans-tab.active,
.plans-tab:hover {
  background: #AC8F78; color: #fff; border-color: #AC8F78;
}

/* ===== 갤러리 캡션 ===== */
.gallery-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 16px; font-size: 13px; font-weight: 600; color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,0.55));
}

/* ===== CTA / Scroll top hover ===== */
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
.scroll-top.visible { opacity: 1; visibility: visible; }
.scroll-top:hover { background: #8B7260; transform: translateY(-2px); }

/* ===== 푸터 패밀리사이트 select ===== */
.family-select option { color: #222; background: #fff; }

/* ===== 진입 팝업 ===== */
.popup-layer { -webkit-overflow-scrolling: touch; }
.popup-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(172,143,120,0.4); }

/* ===== 모바일 하단 quick-menu 가림 보정 ===== */
@media (max-width: 767px) {
  body { padding-bottom: 52px; }
  .scroll-top { bottom: 72px; }
}
