/* 대전 하늘채 루시에르 랜딩페이지 공통 & 모바일 반응형 스타일시트 */
@charset "UTF-8";
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

:root {
  --primary-color: #0d0251;
  --primary-hover: #170584;
  --gold-color: #ffcc00;
  --gold-hover: #e6b800;
  --text-dark: #222222;
  --text-gray: #666666;
  --border-color: #e5e5e5;
  --bg-light: #f8f9fa;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --header-height: 74px;
  --mobile-header-height: 58px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
  color: var(--text-dark);
  background-color: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ------------------------------------
   1. 상단 고정 헤더
------------------------------------ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  z-index: 1000;
  transition: all 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.header-container {
  max-width: 1300px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.header-logo {
  height: 44px;
  width: auto;
  max-width: 320px;
  object-fit: contain;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 24px;
  align-items: center;
}

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: #333333;
  transition: color 0.2s ease;
  position: relative;
  padding: 6px 0;
}

.nav-link:hover {
  color: var(--primary-color);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.25s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* 관심고객 등록 헤더 버튼 */
.btn-register-top {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  background: linear-gradient(135deg, #0d0251 0%, #1e1174 100%);
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 700;
  border-radius: 30px;
  box-shadow: 0 3px 12px rgba(13, 2, 81, 0.25);
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-register-top:hover {
  background: linear-gradient(135deg, #1b0a7d 0%, #2f1ea3 100%);
  box-shadow: 0 5px 16px rgba(13, 2, 81, 0.35);
  transform: translateY(-2px);
}

.btn-register-top .badge-glow {
  background: #ffcc00;
  color: #111;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 10px;
  letter-spacing: -0.5px;
}

/* 모바일 햄버거 메뉴 버튼 */
.mobile-menu-btn {
  display: none;
  font-size: 22px;
  color: #222;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  line-height: 1;
}

/* 모바일 사이드 드로어 메뉴 */
.mobile-drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2100;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-drawer-backdrop.show {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: #ffffff;
  z-index: 2200;
  box-shadow: -4px 0 25px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding-bottom: calc(20px + var(--safe-bottom));
}

.mobile-drawer.show {
  right: 0;
}

.mobile-drawer-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f1f5f9;
}

.mobile-drawer-logo {
  height: 32px;
  width: auto;
}

.mobile-drawer-close {
  font-size: 24px;
  color: #64748b;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.mobile-drawer-menu {
  list-style: none;
  padding: 16px 0;
  flex: 1;
  overflow-y: auto;
}

.mobile-drawer-item {
  border-bottom: 1px solid #f8fafc;
}

.mobile-drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
  transition: background 0.2s;
}

.mobile-drawer-link:active {
  background: #f1f5f9;
  color: var(--primary-color);
}

.mobile-drawer-footer {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid #f1f5f9;
}

.btn-drawer-reg {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px;
  background: var(--primary-color);
  color: #fff;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

.btn-drawer-call {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px;
  background: #ffcc00;
  color: #0d0251;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 800;
  text-align: center;
}

/* ------------------------------------
   2. 이미지 관리 툴바
------------------------------------ */
.admin-toolbar {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  background: #1e293b;
  color: #ffffff;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 990;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  font-size: 13px;
  transition: transform 0.3s ease;
}

.admin-toolbar.hidden {
  transform: translateY(-100%);
  pointer-events: none;
}

.admin-toolbar-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-badge {
  background: #3b82f6;
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}

.admin-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-admin {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-admin-primary {
  background: #3b82f6;
  color: white;
}
.btn-admin-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}
.btn-admin-toggle {
  background: #059669;
  color: white;
}

/* ------------------------------------
   3. 메인 랜딩페이지 이미지 컨테이너 (모바일 100% 최적화)
------------------------------------ */
.main-wrapper {
  margin-top: var(--header-height);
  min-height: calc(100vh - var(--header-height));
  padding-bottom: 90px; /* 하단 퀵바 공간 확보 */
}

.landing-images-container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
  background-color: #ffffff;
}

.image-block {
  position: relative;
  width: 100%;
  background: #ffffff;
  transition: all 0.2s ease;
  overflow: hidden;
}

.image-block img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* 이미지 편집 오버레이 */
.image-block-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 2, 81, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  cursor: pointer;
  padding: 16px;
}

/* 데스크탑 호버 또는 모바일 탭 활성화 시 */
.image-block:hover .image-block-overlay,
.image-block.touch-active .image-block-overlay {
  opacity: 1;
  visibility: visible;
}

.image-block-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 4px 10px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 700;
}

.overlay-btn-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 95%;
}

.overlay-btn {
  padding: 9px 15px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  background: #ffffff;
  color: var(--text-dark);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.overlay-btn:active {
  transform: scale(0.96);
}

.overlay-btn-add { background: #10b981; color: white; }
.overlay-btn-edit { background: #3b82f6; color: white; }
.overlay-btn-del { background: #ef4444; color: white; }

/* 새 이미지 추가 전용 블록 */
.add-new-block {
  padding: 30px 16px;
  margin: 20px auto;
  width: calc(100% - 32px);
  max-width: 900px;
  border: 2px dashed #cbd5e1;
  border-radius: 10px;
  text-align: center;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.2s ease;
}

.add-new-block:active {
  background: #eff6ff;
  border-color: var(--primary-color);
}

.add-new-block .icon {
  font-size: 26px;
  margin-bottom: 6px;
  color: var(--primary-color);
}

.add-new-block .title {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
}

.add-new-block .desc {
  font-size: 12px;
  color: #64748b;
  margin-top: 3px;
}

/* ------------------------------------
   4. 하단 퀵 플로팅 바 (모바일 반응형 듀얼 탭바)
------------------------------------ */
.quick-floating-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(13, 2, 81, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  padding: 10px 20px;
  padding-bottom: calc(10px + var(--safe-bottom));
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 950;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

.quick-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.quick-title {
  font-size: 14px;
  font-weight: 700;
  color: #ffcc00;
  white-space: nowrap;
}

.quick-desc {
  font-size: 13px;
  color: #cbd5e1;
}

.quick-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-quick-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #ffcc00;
  color: #0d0251;
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 800;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-quick-call:active {
  background: #e6b800;
  transform: scale(0.97);
}

.btn-quick-reg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #ffffff;
  color: #0d0251;
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 800;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-quick-reg:active {
  background: #f1f5f9;
  transform: scale(0.97);
}

/* 맨 위로 가기 버튼 */
.btn-goto-top {
  position: fixed;
  bottom: calc(75px + var(--safe-bottom));
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  color: #0d0251;
  box-shadow: 0 4px 15px rgba(0,0,0,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  z-index: 940;
  transition: all 0.25s ease;
  border: 1px solid rgba(0,0,0,0.06);
}

.btn-goto-top:hover, .btn-goto-top:active {
  background: #0d0251;
  color: #ffffff;
}

/* ------------------------------------
   5. 푸터 영역
------------------------------------ */
.site-footer {
  background-color: #292929;
  color: #ffffff;
  padding: 50px 20px 110px;
  font-size: 13px;
}

.footer-container {
  max-width: 1080px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #444;
  padding-bottom: 20px;
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  max-height: 38px;
  width: auto;
  background: #ffffff;
  padding: 4px 10px;
  border-radius: 6px;
  object-fit: contain;
}

.footer-call {
  font-size: 22px;
  font-weight: 800;
  color: #ffcc00;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-info {
  line-height: 1.8;
  color: #cccccc;
}

.footer-info p {
  margin-bottom: 5px;
}

.footer-info strong {
  color: #ffffff;
}

.footer-notice {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #3a3a3a;
  color: #888888;
  font-size: 11.5px;
  line-height: 1.7;
}

/* ------------------------------------
   6. 모달 공통 스타일
------------------------------------ */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  padding: 16px;
}

.modal-backdrop.show {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: #ffffff;
  border-radius: 12px;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  overflow: hidden;
  transform: translateY(20px);
  transition: transform 0.25s ease;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.modal-backdrop.show .modal-card {
  transform: translateY(0);
}

.modal-header {
  padding: 18px 20px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 17px;
  font-weight: 700;
  color: #1e293b;
}

.modal-close {
  font-size: 22px;
  color: #64748b;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
}

.modal-footer {
  padding: 14px 20px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.form-group-item {
  margin-bottom: 14px;
}

.form-group-item label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 5px;
}

.form-group-item input,
.form-group-item textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 15px; /* iOS 자동 줌 방지 */
  font-family: inherit;
}

.form-group-item input:focus,
.form-group-item textarea:focus {
  border-color: var(--primary-color);
  outline: none;
}

/* 알림 토스트 */
.toast-notice {
  position: fixed;
  bottom: calc(75px + var(--safe-bottom));
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  background: #1e293b;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0,0,0,0.25);
  z-index: 2500;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  white-space: nowrap;
  max-width: 90%;
  text-align: center;
}

.toast-notice.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   7. 모바일 전용 반응형 미디어 쿼리 (스마트폰 & 태블릿 완벽 대응)
========================================================================== */
@media (max-width: 992px) {
  .header-nav {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  .quick-desc {
    display: none;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 58px;
  }

  .site-header {
    height: var(--header-height);
  }

  .header-container {
    padding: 0 12px;
  }

  .header-brand {
    gap: 8px;
  }

  .header-logo {
    height: 32px;
    max-width: 220px;
  }

  .btn-register-top {
    padding: 6px 12px;
    font-size: 12.5px;
    gap: 5px;
  }

  .btn-register-top .badge-glow {
    font-size: 9px;
    padding: 1px 5px;
  }

  .btn-register-top i {
    font-size: 11px;
  }

  .btn-admin-toggle {
    padding: 5px 8px;
    font-size: 11px;
  }

  .admin-toolbar {
    top: var(--header-height);
    font-size: 12px;
    padding: 8px 12px;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }

  .admin-toolbar-info {
    font-size: 11px;
    flex-wrap: wrap;
  }

  /* 모바일에서 랜딩페이지 이미지는 좌우 여백 없이 100% 꽉 채움 */
  .main-wrapper {
    margin-top: var(--header-height);
    padding-bottom: calc(75px + var(--safe-bottom));
  }

  .landing-images-container {
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .image-block {
    width: 100%;
    outline: none !important;
  }

  .image-block img {
    width: 100%;
    height: auto;
  }

  /* 모바일 오버레이 버튼 크기 및 터치 영역 확대 */
  .overlay-btn-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 90%;
  }

  .overlay-btn {
    padding: 12px 10px;
    font-size: 13px;
    justify-content: center;
  }

  .overlay-btn-edit {
    grid-column: span 2;
  }

  /* 모바일 하단 퀵바: 완벽한 5:5 듀얼 고정 탭바 */
  .quick-floating-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 8px 10px calc(8px + var(--safe-bottom));
  }

  .quick-info {
    display: none;
  }

  .quick-actions {
    display: contents;
  }

  .btn-quick-call {
    width: 100%;
    height: 48px;
    padding: 0 10px;
    font-size: 14.5px;
    font-weight: 800;
    border-radius: 8px;
    gap: 6px;
  }

  .btn-quick-reg {
    width: 100%;
    height: 48px;
    padding: 0 10px;
    font-size: 14.5px;
    font-weight: 800;
    border-radius: 8px;
    gap: 6px;
  }

  .btn-goto-top {
    bottom: calc(70px + var(--safe-bottom));
    right: 12px;
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .site-footer {
    padding: 35px 16px calc(90px + var(--safe-bottom));
  }

  .footer-call {
    font-size: 19px;
  }
}

@media (max-width: 480px) {
  .header-logo {
    height: 26px;
    max-width: 175px;
  }

  .btn-register-top {
    padding: 5px 10px;
    font-size: 12px;
  }

  .btn-admin-toggle span {
    display: none;
  }

  .btn-quick-call, .btn-quick-reg {
    font-size: 13.5px;
  }
}
