:root {
  --bg-main: #faf8f4;
  --bg-soft: #f2ede4;
  --bg-card: #ffffff;
  --bg-dark: #1f1d1a;
  --bg-dark-soft: #2c2823;
  --text-main: #1f1d1a;
  --text-sub: #575149;
  --text-muted: #7c7469;
  --accent: #8b5e3c;
  --accent-dark: #6c462b;
  --accent-light: #f6efe7;
  --accent-border: #decbb7;
  --line: #e4ddd2;
  --line-strong: #cfc5b6;
  --success: #166534;
  --success-bg: #dcfce7;
  --warn: #b45309;
  --warn-bg: #fef3c7;
  --info: #1d4ed8;
  --info-bg: #dbeafe;
  --purple: #6d28d9;
  --purple-bg: #ede9fe;
  --danger: #b91c1c;
  --danger-bg: #fee2e2;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 10px rgba(31, 29, 26, 0.05);
  --shadow-md: 0 10px 28px rgba(31, 29, 26, 0.08);
  --shadow-lg: 0 20px 48px rgba(31, 29, 26, 0.14);
  --container: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', '맑은 고딕', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}

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

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

button,
input,
select,
textarea {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* 상단 고정 헤더 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 244, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.top-notice {
  background: var(--bg-dark);
  color: #ede6dc;
  font-size: 0.82rem;
  padding: 7px 0;
}

.top-notice-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.top-notice-badge {
  color: #f3c898;
  font-weight: 700;
  margin-right: 8px;
}

.header-main {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--bg-dark);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.brand-mark::before {
  content: '';
  width: 18px;
  height: 22px;
  border: 2.5px solid #e6c39c;
  border-bottom: none;
  border-radius: 2px 2px 0 0;
}

.brand-mark::after {
  content: '';
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #e6c39c;
  right: 13px;
  top: 20px;
}

.brand-text-group {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.brand-sub {
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 600;
}

/* 중앙 주메뉴 */
.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--text-main);
  border-radius: var(--radius-sm);
  transition: background-color 0.2s, color 0.2s;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
  background: var(--accent-light);
}

.nav-arrow {
  font-size: 0.72rem;
  opacity: 0.7;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 210px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  list-style: none;
  margin: 0;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.18s ease;
  z-index: 120;
}

.nav-item:hover .dropdown-menu,
.nav-item:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-sub);
  transition: background-color 0.15s, color 0.15s;
}

.dropdown-menu a:hover {
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 600;
}

/* 우측 강조 버튼 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.header-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  transition: background-color 0.2s, transform 0.15s;
  box-shadow: 0 4px 12px rgba(139, 94, 60, 0.25);
  white-space: nowrap;
}

.header-cta-btn:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.mobile-quick-cta {
  display: none;
}

.mobile-menu-toggle {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
}

/* 모바일 드로어 메뉴 */
.mobile-drawer {
  display: none;
  background: var(--bg-card);
  border-top: 1px solid var(--line);
  padding: 16px 20px 24px;
  max-height: calc(100vh - 74px);
  overflow-y: auto;
}

.mobile-drawer.open {
  display: block;
}

.mobile-group {
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}

.mobile-group-title {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  padding: 6px 0;
  color: var(--text-main);
}

.mobile-sublinks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.mobile-sublinks a {
  font-size: 0.86rem;
  color: var(--text-sub);
  background: var(--bg-soft);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
}

/* 공통 버튼 & 배지 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 13px 24px;
  border-radius: var(--radius-pill);
  font-size: 0.98rem;
  font-weight: 700;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 18px rgba(139, 94, 60, 0.26);
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.btn-dark {
  background: var(--bg-dark);
  color: #fff;
}

.btn-dark:hover {
  background: #35302a;
}

.btn-outline {
  background: var(--bg-card);
  color: var(--text-main);
  border-color: var(--line-strong);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.85rem;
}

.section {
  padding: 76px 0;
}

.section-soft {
  background: var(--bg-soft);
}

.section-dark {
  background: var(--bg-dark);
  color: #fff;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.section-kicker {
  display: inline-block;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  background: var(--accent-light);
  color: var(--accent);
  border: 1px solid var(--accent-border);
  font-size: 0.84rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.section-dark .section-kicker {
  background: rgba(230, 195, 156, 0.14);
  color: #f3c898;
  border-color: rgba(230, 195, 156, 0.35);
}

.section-title {
  margin: 0 0 12px;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.3;
}

.section-desc {
  margin: 0;
  font-size: 1.02rem;
  color: var(--text-sub);
}

.section-dark .section-desc {
  color: #d6cfc5;
}

/* 서브페이지 상단 배너 */
.page-banner {
  background: linear-gradient(135deg, #211e1a 0%, #342c24 100%);
  color: #fff;
  padding: 54px 0;
  border-bottom: 4px solid var(--accent);
}

.breadcrumb {
  font-size: 0.86rem;
  color: #cfc4b5;
  margin-bottom: 10px;
}

.page-banner h1 {
  margin: 0 0 10px;
  font-size: clamp(1.75rem, 3.2vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.page-banner p {
  margin: 0;
  color: #e5ddd3;
  max-width: 720px;
  font-size: 1.02rem;
}

/* 히어로 섹션 */
.hero {
  padding: 56px 0 72px;
  background: radial-gradient(circle at top right, #efe6da 0%, var(--bg-main) 58%);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 44px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--bg-dark);
  color: #f3c898;
  font-size: 0.86rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.hero-title {
  margin: 0 0 18px;
  font-size: clamp(2rem, 4vw, 2.85rem);
  font-weight: 800;
  line-height: 1.24;
  letter-spacing: -0.03em;
}

.hero-title .highlight {
  color: var(--accent);
}

.hero-lead {
  margin: 0 0 26px;
  font-size: 1.06rem;
  color: var(--text-sub);
  line-height: 1.75;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.hero-point-box {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
}

.hero-point-box strong {
  display: block;
  font-size: 1.05rem;
  color: var(--accent);
  margin-bottom: 2px;
}

.hero-point-box span {
  font-size: 0.84rem;
  color: var(--text-sub);
}

.hero-visual {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: var(--shadow-lg);
}

.hero-visual img {
  width: 100%;
  border-radius: var(--radius-md);
}

.hero-visual-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 6px 4px;
  font-size: 0.88rem;
  color: var(--text-sub);
  font-weight: 600;
}

/* 카드 그리드 */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.card-body {
  padding: 24px;
}

.card-media {
  background: #f5f2ec;
  border-bottom: 1px solid var(--line);
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--accent-light);
  color: var(--accent);
}

.card-title {
  margin: 10px 0 8px;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.4;
}

.card-text {
  margin: 0;
  color: var(--text-sub);
  font-size: 0.95rem;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
}

.check-list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.92rem;
  color: var(--text-sub);
  margin-bottom: 6px;
}

.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 800;
}

/* 비교 표 / 박스 */
.compare-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.compare-card {
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1.5px solid var(--line);
  background: var(--bg-card);
}

.compare-card.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, #fffdf9 0%, #f9f2ea 100%);
  box-shadow: var(--shadow-md);
}

.compare-label {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}

.compare-card:not(.featured) .compare-label {
  background: #eceae6;
  color: #555;
}

.compare-card.featured .compare-label {
  background: var(--accent);
  color: #fff;
}

/* 작업 과정 스텝 */
.steps-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  position: relative;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-dark);
  color: #f3c898;
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.step-card h3 {
  margin: 0 0 8px;
  font-size: 1.06rem;
  font-weight: 800;
}

.step-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-sub);
}

/* 필터 탭 */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 32px;
}

.filter-btn {
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--line-strong);
  background: var(--bg-card);
  color: var(--text-sub);
  font-size: 0.94rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--bg-dark);
  color: #fff;
  border-color: var(--bg-dark);
}

/* 폼 스타일 */
.form-panel {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

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

.form-group {
  margin-bottom: 18px;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-label {
  display: block;
  font-size: 0.94rem;
  font-weight: 700;
  margin-bottom: 7px;
  color: var(--text-main);
}

.required-dot {
  color: var(--danger);
  margin-left: 3px;
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: 0.96rem;
  background: #fff;
  color: var(--text-main);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(139, 94, 60, 0.14);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.check-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  transition: all 0.15s;
}

.check-chip:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-light);
  color: var(--accent-dark);
}

.check-chip input {
  width: 17px;
  height: 17px;
  accent-color: var(--accent);
}

.photo-upload-box {
  border: 2px dashed var(--line-strong);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  background: var(--bg-main);
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}

.photo-upload-box:hover {
  border-color: var(--accent);
  background: var(--accent-light);
}

.photo-preview-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.photo-thumb {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 1 / 1;
  background: #eee;
}

.photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-remove-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: rgba(31, 29, 26, 0.8);
  color: #fff;
  font-size: 0.78rem;
  cursor: pointer;
}

/* 상태 배지 */
.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.status-신규접수 {
  background: var(--warn-bg);
  color: var(--warn);
}

.status-상담완료 {
  background: var(--info-bg);
  color: var(--info);
}

.status-실측예정 {
  background: var(--purple-bg);
  color: var(--purple);
}

.status-계약완료 {
  background: var(--success-bg);
  color: var(--success);
}

/* 모달 */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 15, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 300;
}

.modal-backdrop.open {
  display: flex;
}

.modal-dialog {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  max-width: 820px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.modal-head {
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  position: sticky;
  top: 0;
  background: var(--bg-card);
  z-index: 5;
}

.modal-head h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
}

.modal-close {
  border: 1px solid var(--line-strong);
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-weight: 700;
  cursor: pointer;
}

.modal-body {
  padding: 24px;
}

/* 푸터 */
.site-footer {
  background: var(--bg-dark);
  color: #cfc6b9;
  padding: 56px 0 36px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 10px;
}

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

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #f3c898;
}

.footer-bottom {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: #9e9589;
}

/* 토스트 알림 & 맨 위로 */
.toast-msg {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg-dark);
  color: #fff;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s;
  z-index: 400;
}

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

.scroll-top-btn {
  position: fixed;
  right: 22px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--bg-card);
  color: var(--text-main);
  font-size: 0.82rem;
  font-weight: 800;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s;
  z-index: 90;
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
}

/* 반응형 */
@media (max-width: 1024px) {
  .main-nav,
  .header-cta-btn {
    display: none;
  }

  .mobile-quick-cta {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    background: var(--accent);
    color: #fff;
    font-size: 0.86rem;
    font-weight: 700;
  }

  .mobile-menu-toggle {
    display: inline-flex;
  }

  .hero-grid,
  .compare-box,
  .grid-3,
  .steps-5,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero-points,
  .form-grid,
  .checkbox-grid {
    grid-template-columns: 1fr;
  }

  .photo-preview-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .form-panel {
    padding: 20px;
  }
}
