* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
}

/* 고정 네비게이션 바 높이만큼 앵커 오프셋 */
#features,
#banner,
#inquiry {
  scroll-margin-top: 72px;
}

/* ── 네비게이션 ── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: clamp(12px, 2vw, 22px) clamp(16px, 4vw, 48px) clamp(12px, 2vw, 22px) clamp(12px, 3.2vw, 40px);
  background: transparent;
  transition: transform 0.35s ease, background 0.35s ease, padding 0.35s ease;
}

#navbar.hide {
  transform: translateY(-100%);
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

#navbar.scrolled .nav-menu a {
  color: rgba(20, 20, 20, 0.75);
}

#navbar.scrolled .nav-menu a:hover {
  color: #000;
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  gap: 12px;
  white-space: nowrap;
}

.nav-logo {
  color: #fff;
  font-size: clamp(0.75rem, 2vw, 1.35rem);
  font-weight: 800;
  letter-spacing: clamp(0px, 0.3vw, 3px);
  text-transform: uppercase;
  text-decoration: none;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.nav-logo img {
  height: clamp(24px, 3.4vw, 38px);
  width: auto;
}

.nav-menu {
  display: flex;
  gap: clamp(12px, 2.5vw, 36px);
  list-style: none;
  flex-shrink: 0;
}

.nav-menu a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: clamp(0.65rem, 1.2vw, 0.88rem);
  letter-spacing: clamp(0px, 0.15vw, 1.5px);
  font-weight: 500;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-menu a:hover {
  color: #fff;
}

/* ── 슬라이더 ── */
.main-swiper {
  width: 100%;
  height: 100vh;
}

.swiper-slide {
  position: relative;
  overflow: hidden;
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.6;
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.15) 0%,
    rgba(0, 0, 0, 0.45) 100%
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  padding: 0 20px;
}

.slide-label {
  font-size: 0.78rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  margin-bottom: 18px;
  opacity: 0;
  transform: translateY(20px);
}

.slide-title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.22;
  margin-bottom: 18px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(20px);
}

.slide-desc {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  letter-spacing: 0.5px;
  font-weight: 300;
  opacity: 0;
  transform: translateY(20px);
}

/* 슬라이드 텍스트 등장 애니메이션 */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: var(--target-opacity, 1);
    transform: translateY(0);
  }
}

.slide-label.anim {
  animation: slideUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.05s;
  --target-opacity: 0.75;
}

.slide-title.anim {
  animation: slideUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.22s;
  --target-opacity: 1;
}

.slide-desc.anim {
  animation: slideUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.38s;
  --target-opacity: 0.85;
}

/* 슬라이더 컨트롤 */
.swiper-button-next,
.swiper-button-prev {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.2s;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  color: #fff;
}

.swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.55);
  width: 9px;
  height: 9px;
}

.swiper-pagination-bullet-active {
  background: #fff;
  width: 28px;
  border-radius: 4px;
  transition: width 0.3s;
}

/* ── 임시 콘텐츠 영역 (스크롤 테스트용) ── */
.placeholder-section {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  font-size: 1.5rem;
  color: #999;
  letter-spacing: 2px;
}

/* ── 공통 섹션 헤더 ── */
.section-header {
  text-align: center;
  margin-bottom: 52px;
}

.section-label {
  font-size: 0.75rem;
  letter-spacing: 5px;
  color: #c9a96e;
  margin-bottom: 14px;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: #111;
  margin-bottom: 12px;
}

.section-sub {
  font-size: 0.95rem;
  color: #888;
}

/* ── 평방형 섹션 ── */
#features {
  background: #fff;
  padding: 100px 24px;
}

.features-inner {
  max-width: 1000px;
  margin: 0 auto;
}

/* 탭 버튼 */
.unit-tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 48px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.unit-tab {
  padding: 12px 40px;
  background: #fff;
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: #999;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  font-family: inherit;
  border-right: 1px solid #e0e0e0;
}

.unit-tab:last-child {
  border-right: none;
}

.unit-tab.active {
  background: #0d1117;
  color: #c9a96e;
}

.unit-tab:hover:not(.active) {
  background: #f5f5f5;
  color: #333;
}

/* 패널 */
.unit-panels {
  position: relative;
}

.unit-panel {
  display: none;
  flex-direction: column;
  gap: 12px;
}

.unit-panel.active {
  display: flex;
}

/* 메인 이미지 (항상 1장, 전체 폭) */
.unit-main-img {
  width: 100%;
  border-radius: 12px;
  display: block;
  object-fit: cover;
  aspect-ratio: 27 / 16;
}

/* 이미지 업로드 전 임시 안내 박스 */
.unit-sub-placeholder {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.unit-coming-soon {
  color: #999;
  font-size: 0.95rem;
  font-weight: 600;
}

/* 서브 이미지 (1열, 각각 전체 폭) */
.unit-sub-imgs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 600px) {
  .unit-sub-imgs {
    grid-template-columns: 1fr;
  }
}

.unit-sub-imgs img,
.unit-sub-grid img {
  width: 100%;
  border-radius: 10px;
  display: block;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

/* 서브 이미지 그룹 (거실/침실/작은방 등 공간별 소개) */
.unit-sub-group {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.unit-sub-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #222;
}

.unit-sub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 600px) {
  .unit-sub-grid {
    grid-template-columns: 1fr;
  }
}

/* 이미지 개수가 홀수면 마지막 이미지를 2칸 크게 표시 */
.unit-sub-grid img:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}



/* ── 고정 플로팅 버튼 ── */
.floating-btns {
  position: fixed;
  bottom: 36px;
  right: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}

.float-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.float-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
}

.float-visit {
  background: #c9a96e;
  color: #0d1117;
}

.float-call {
  background: #0d1117;
  color: #fff;
}

.float-icon {
  font-size: 1rem;
  line-height: 1;
}

.float-label {
  font-size: 0.85rem;
}

/* ── 푸터 ── */
#footer {
  background: #07090e;
  padding: 48px 24px 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.footer-brand {
  font-size: 1rem;
  font-weight: 700;
  color: #c9a96e;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.footer-details {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 32px;
}

.footer-details li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
}

.footer-label {
  color: rgba(255, 255, 255, 0.35);
}

.footer-value {
  color: rgba(255, 255, 255, 0.65);
}

.footer-copy {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.22);
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ── 비주얼 배너 섹션 ── */
#banner {
  width: 100%;
  overflow: hidden;
}

#banner img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── 방문 예약 폼 섹션 ── */
#inquiry {
  background: #0d1117;
  padding: 100px 24px;
}

.inquiry-inner {
  max-width: 680px;
  margin: 0 auto;
}

.inquiry-header {
  text-align: center;
  margin-bottom: 52px;
}

.inquiry-label {
  font-size: 0.75rem;
  letter-spacing: 5px;
  color: #c9a96e;
  margin-bottom: 14px;
}

.inquiry-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

.inquiry-sub {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.5px;
}

/* 폼 레이아웃 */
#inquiry-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 540px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.5px;
}

.required {
  color: #c9a96e;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group select {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 13px 16px;
  font-size: 0.95rem;
  color: #fff;
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
  color-scheme: dark;
}

.form-group input:focus,
.form-group select:focus {
  border-color: #c9a96e;
}

.form-group input::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

/* 방문 날짜 선택 (Flatpickr 트리거) */
#visit-date {
  cursor: pointer;
}

/* 방문 시간 선택 (콤보박스) */
.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23c9a96e'%3E%3Cpath d='M4 6l4 4 4-4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-group select option {
  background: #161b22;
  color: #fff;
}

.form-group select:invalid {
  color: rgba(255, 255, 255, 0.25);
}

/* Flatpickr 캘린더 다크/골드 테마 커스터마이징 */
.flatpickr-calendar {
  background: #161b22;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.flatpickr-calendar.arrowTop:before,
.flatpickr-calendar.arrowTop:after {
  border-bottom-color: #161b22;
}

.flatpickr-months .flatpickr-month,
.flatpickr-current-month .flatpickr-monthDropdown-months,
span.flatpickr-weekday {
  background: #161b22;
}

.flatpickr-months .flatpickr-month,
.flatpickr-current-month,
.flatpickr-current-month .numInputWrapper,
.flatpickr-current-month .flatpickr-monthDropdown-months,
span.flatpickr-weekday {
  color: rgba(255, 255, 255, 0.75);
  fill: rgba(255, 255, 255, 0.75);
}

.flatpickr-current-month input.cur-year {
  color: rgba(255, 255, 255, 0.75);
}

.flatpickr-prev-month:hover svg,
.flatpickr-next-month:hover svg {
  fill: #c9a96e;
}

.flatpickr-day {
  color: rgba(255, 255, 255, 0.85);
}

.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover,
.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
  color: rgba(255, 255, 255, 0.15);
}

.flatpickr-day:hover {
  background: rgba(201, 169, 110, 0.18);
  border-color: transparent;
}

.flatpickr-day.today {
  border-color: #c9a96e;
}

.flatpickr-day.selected,
.flatpickr-day.selected:hover {
  background: #c9a96e;
  border-color: #c9a96e;
  color: #0d1117;
  font-weight: 700;
}

/* 개인정보 안내 박스 */
.privacy-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 20px 24px;
}

.privacy-box-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 14px;
  letter-spacing: 0.5px;
}

.privacy-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 14px;
}

.privacy-table th,
.privacy-table td {
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 12px;
  text-align: center;
  line-height: 1.6;
}

.privacy-table th {
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.65);
  font-weight: 600;
}

.privacy-notice {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.7;
}

/* 동의 라디오 */
.privacy-consent {
  gap: 12px;
}

.consent-question {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
}

.radio-group {
  display: flex;
  gap: 28px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.75);
  user-select: none;
}

.radio-label input[type="radio"] {
  display: none;
}

.radio-custom {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.2s;
}

.radio-label input[type="radio"]:checked + .radio-custom {
  border-color: #c9a96e;
  background: #c9a96e;
  box-shadow: inset 0 0 0 4px #0d1117;
}

.radio-label:hover .radio-custom {
  border-color: rgba(201, 169, 110, 0.6);
}

/* 에러 메시지 */
.form-error {
  font-size: 0.82rem;
  color: #ff6b6b;
  min-height: 18px;
}

/* 제출 버튼 */
.submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #c9a96e;
  color: #0d1117;
  border: none;
  border-radius: 6px;
  padding: 16px 32px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  font-family: inherit;
  width: 100%;
  margin-top: 8px;
}

.submit-btn:hover {
  background: #dbbe85;
  transform: translateY(-1px);
}

.submit-btn:active {
  transform: translateY(0);
}

.submit-icon {
  font-size: 1.1rem;
  transition: transform 0.2s;
}

.submit-btn:hover .submit-icon {
  transform: translateX(4px);
}

/* 제출 완료 메시지 */
.form-success {
  display: none;
  text-align: center;
  padding: 60px 0;
}

.form-success.show {
  display: block;
}

.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #c9a96e;
  color: #0d1117;
  font-size: 1.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.success-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.success-sub {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
}
