/* ============================================================
   철거의 온도 — 메인 스타일시트
   작성 기준: 모바일 우선(Mobile First) 반응형 / 다크 테마
   브레이크포인트: 640px(태블릿) / 1024px(데스크톱) / 1280px(와이드)
============================================================ */


/* ============================================================
   1. CSS 변수 (디자인 토큰)
============================================================ */
:root {
  /* 배경색 계열 */
  --bg-base:        #0a0d14;   /* 최하단 배경 */
  --bg-surface:     #11151f;   /* 교차 섹션 배경 */
  --bg-card:        #161b27;   /* 카드 표면 */
  --bg-card-hover:  #1c2233;   /* 카드 호버 */
  --border:         #1e2535;   /* 기본 테두리 */
  --border-light:   #2a3349;   /* 밝은 테두리 */

  /* 포인트 컬러 — 신뢰 블루 */
  --blue:           #2563eb;   /* 메인 액션 컬러 */
  --blue-light:     #60a5fa;   /* 강조·라벨 컬러 */
  --blue-dark:      #1d4ed8;   /* 호버 상태 */
  --blue-alpha:     rgba(37, 99, 235, 0.14);  /* 반투명 블루 배경 */

  /* 텍스트 */
  --text:           #e8edf5;   /* 본문 기본 */
  --text-sub:       #8a93a6;   /* 보조 텍스트 */
  --text-muted:     #5a6478;   /* 흐린 텍스트 */

  /* 폰트 */
  --font:           'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-mono:      'JetBrains Mono', 'Fira Code', 'Courier New', monospace;

  /* 레이아웃 */
  --max-w:          1200px;
  --pad-x:          20px;
  --section-py:     80px;
  --header-h:       64px;

  /* 보더 반경 */
  --r-sm:   6px;
  --r-md:   10px;
  --r-lg:   16px;
  --r-xl:   24px;

  /* 전환 속도 */
  --t:      0.22s ease;
  --t-md:   0.35s ease;

  /* 그림자 */
  --shadow:    0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
}


/* ============================================================
   2. 리셋 & 기본 스타일
============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* 모바일 메뉴 열림 시 배경 스크롤 잠금 */
body.menu-open {
  overflow: hidden;
}

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

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

ul, ol {
  list-style: none;
}

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

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

/* 키보드 포커스 링 (접근성) */
:focus-visible {
  outline: 2px solid var(--blue-light);
  outline-offset: 3px;
  border-radius: 3px;
}


/* ============================================================
   3. 레이아웃: 컨테이너
============================================================ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}


/* ============================================================
   4. 공통: 버튼 컴포넌트
============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--r-md);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background var(--t),
    color var(--t),
    border-color var(--t),
    transform var(--t),
    box-shadow var(--t);
}

.btn:active {
  transform: scale(0.97);
}

/* 기본 블루 버튼 */
.btn-primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.btn-primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.28);
}

/* 외곽선 버튼 */
.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border-light);
}

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

/* 큰 사이즈 */
.btn-lg {
  padding: 15px 30px;
  font-size: 16px;
  border-radius: var(--r-lg);
}

/* 전체 너비 */
.btn-full {
  width: 100%;
  justify-content: center;
}


/* ============================================================
   5. 공통: 섹션 레이아웃
============================================================ */
.section {
  padding: var(--section-py) 0;
}

/* 교차 배경색 섹션 */
.section-alt {
  background: var(--bg-surface);
}

/* 섹션 상단 헤더 (라벨 + 타이틀 + 설명) */
.section-header {
  margin-bottom: 56px;
  text-align: center;
}

/* 영문 모노스페이스 섹션 라벨 */
.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--blue-light);
  text-transform: uppercase;
  margin-bottom: 16px;
  padding: 4px 10px;
  border: 1px solid rgba(96, 165, 250, 0.28);
  border-radius: 4px;
  background: rgba(96, 165, 250, 0.07);
}

/* 섹션 제목 */
.section-title {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 16px;
}

/* 섹션 설명 */
.section-desc {
  font-size: 16px;
  color: var(--text-sub);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.75;
}


/* ============================================================
   6. 스크롤 등장 애니메이션
   — IntersectionObserver가 .revealed 클래스를 추가
   — --delay CSS 변수로 순차 등장 제어
============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
  transition-delay: var(--delay, 0s);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}


/* ============================================================
   7. 헤더
============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  /* 처음엔 투명 → 스크롤 시 배경 추가 (JS로 .scrolled 토글) */
  background: transparent;
  transition: background var(--t-md), box-shadow var(--t-md);
}

.site-header.scrolled {
  background: rgba(10, 13, 20, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  height: var(--header-h);
  gap: 32px;
}

/* 로고 */
.logo {
  flex-shrink: 0;
}

.logo-text {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  transition: color var(--t);
}

.logo:hover .logo-text {
  color: var(--blue-light);
}

/* 데스크톱 내비 — 모바일에서 숨김 */
.nav-desktop {
  display: none;
  flex: 1;
}

.nav-desktop ul {
  display: flex;
  gap: 2px;
}

.nav-desktop a {
  display: block;
  padding: 7px 13px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-sub);
  border-radius: var(--r-sm);
  transition: color var(--t), background var(--t);
}

.nav-desktop a:hover {
  color: var(--text);
  background: var(--bg-card);
}

/* 헤더 CTA 버튼 — 모바일에서 숨김 */
.btn-header-cta {
  display: none;
  margin-left: auto;
  padding: 9px 18px;
  font-size: 14px;
}

/* 햄버거 버튼 */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  margin-left: auto;
  padding: 4px;
  border-radius: var(--r-sm);
  transition: background var(--t);
}

.hamburger:hover {
  background: var(--bg-card);
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transform-origin: center;
  transition: transform var(--t), opacity var(--t);
}

/* 햄버거 → X 변환 (활성 상태) */
.hamburger.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.is-active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* 모바일 전체화면 메뉴 */
.nav-mobile {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--bg-base);
  padding: 28px var(--pad-x) 40px;
  /* 우측으로 밀려 숨겨진 상태 */
  transform: translateX(100%);
  transition: transform var(--t-md);
  overflow-y: auto;
  z-index: 999;
}

.nav-mobile.is-open {
  transform: translateX(0);
}

.nav-mobile ul {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.nav-mobile li a:not(.btn) {
  display: block;
  padding: 16px 4px;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-sub);
  border-bottom: 1px solid var(--border);
  transition: color var(--t);
}

.nav-mobile li a:not(.btn):hover {
  color: var(--text);
}

.nav-mobile .btn {
  margin-top: 28px;
}


/* ============================================================
   8. 히어로 섹션
============================================================ */
.hero {
  position: relative;
  min-height: 100svh;  /* svh: 모바일 주소창 고려 */
  display: flex;
  align-items: center;
  /* 헤더 높이 + 여유 패딩 */
  padding: calc(var(--header-h) + 48px) 0 88px;
}

/* 배경 이미지 레이어 */
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/* 어두운 그라디언트 오버레이 — 텍스트 가독성 확보 */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 13, 20, 0.92) 0%,
    rgba(10, 13, 20, 0.76) 50%,
    rgba(10, 13, 20, 0.58) 100%
  );
}

/* 콘텐츠는 오버레이 위에 표시 */
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero-content .section-label {
  margin-bottom: 24px;
}

/* H1 타이틀 */
.hero-title {
  font-size: clamp(34px, 6vw, 62px);
  font-weight: 800;
  line-height: 1.17;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 22px;
}

/* "철거업체" 강조 */
.hero-title strong {
  color: var(--blue-light);
  font-weight: 800;
}

/* 브랜드명 기울임 제거 */
.hero-title em {
  font-style: normal;
  color: var(--text);
}

.hero-desc {
  font-size: clamp(15px, 1.8vw, 18px);
  color: var(--text-sub);
  line-height: 1.8;
  margin-bottom: 38px;
}

/* CTA 버튼 그룹 */
.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}


/* ============================================================
   9. 신뢰 지표 스트립
============================================================ */
.trust-strip {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.trust-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.trust-icon {
  color: var(--blue-light);
  font-size: 9px;
}

.trust-divider {
  width: 1px;
  height: 16px;
  background: var(--border-light);
  flex-shrink: 0;
}


/* ============================================================
   10. POINT — 차별점 번호 카드
============================================================ */
.point-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.point-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  transition:
    border-color var(--t),
    box-shadow var(--t),
    transform var(--t);
}

.point-card:hover {
  border-color: var(--border-light);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

/* 영문 모노 번호 */
.point-number {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--blue-light);
  margin-bottom: 14px;
  opacity: 0.75;
}

.point-card-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.3;
}

.point-card-desc {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.75;
}


/* ============================================================
   11. 시공사례 그리드
============================================================ */
.cases-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.case-item {
  border-radius: var(--r-lg);
  overflow: hidden;
}

.case-img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.case-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

/* 호버 시 이미지 살짝 확대 */
.case-item:hover .case-img-wrap img {
  transform: scale(1.05);
}

/* 이미지 위 하단 그라디언트 + 태그 오버레이 */
.case-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 13, 20, 0.72) 0%,
    transparent 55%
  );
  display: flex;
  align-items: flex-end;
  padding: 16px;
  opacity: 0;
  transition: opacity var(--t);
}

.case-item:hover .case-overlay {
  opacity: 1;
}

/* 카드 태그 */
.case-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: #fff;
  background: var(--blue);
  padding: 4px 10px;
  border-radius: 4px;
}


/* ============================================================
   12. REVIEW — 후기 카드
============================================================ */
.review-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  transition: border-color var(--t), box-shadow var(--t);
}

.review-card:hover {
  border-color: var(--border-light);
  box-shadow: var(--shadow);
}

/* 별점 */
.review-stars {
  color: #f59e0b;
  font-size: 15px;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

/* 후기 헤드라인 */
.review-headline {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.45;
}

/* 후기 본문 */
.review-body {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.75;
  margin-bottom: 18px;
}

/* 후기 메타 (지역 + 업종) */
.review-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.review-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--blue-light);
  background: var(--blue-alpha);
  padding: 3px 8px;
  border-radius: 4px;
}

.review-type {
  font-size: 12px;
  color: var(--text-muted);
}


/* ============================================================
   13. PROCESS — 6단계 리스트
============================================================ */
.process-list {
  display: flex;
  flex-direction: column;
  max-width: 740px;
  margin: 0 auto;
}

.process-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.process-item:last-child {
  border-bottom: none;
}

/* 단계 번호 */
.process-step-num {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--blue-light);
  min-width: 28px;
  padding-top: 3px;
}

.process-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.process-desc {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.75;
}


/* ============================================================
   14. STRUCTURE — 비용 구조 카드
============================================================ */
.structure-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 48px;
}

.structure-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  transition:
    border-color var(--t),
    box-shadow var(--t),
    transform var(--t);
}

.structure-card:hover {
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.1), var(--shadow-lg);
  transform: translateY(-2px);
}

/* 아이콘 박스 */
.structure-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-alpha);
  border-radius: var(--r-md);
  margin-bottom: 20px;
}

.structure-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.structure-desc {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.8;
}

.structure-desc strong {
  color: var(--text);
  font-weight: 600;
}

/* 하단 결론 박스 */
.structure-note {
  text-align: center;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}

.structure-note p {
  font-size: 16px;
  color: var(--text-sub);
  line-height: 1.85;
}

.structure-note strong {
  color: var(--text);
}

.structure-note a {
  color: var(--blue-light);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--t);
}

.structure-note a:hover {
  color: #fff;
}


/* ============================================================
   15. 무료 견적 폼
============================================================ */
.section-quote {
  background: var(--bg-surface);
}

/* 폼 최대 너비 제한 */
.quote-form {
  max-width: 660px;
  margin: 0 auto;
}

/* 필드셋 카드 */
.form-fieldset {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  margin-bottom: 20px;
  background: var(--bg-card);
}

/* 필드셋 범례 (영문 모노 스타일) */
.form-legend {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.09em;
  color: var(--blue-light);
  padding: 0 8px;
}

/* 폼 그룹: 라벨 + 입력 묶음 */
.form-group {
  margin-bottom: 24px;
}

.form-group:last-child {
  margin-bottom: 0;
}

/* 폼 라벨 */
.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}

/* 필수 표시 (*) */
.form-label.required::after {
  content: ' *';
  color: var(--blue-light);
}

/* 힌트·선택사항 텍스트 */
.form-hint,
.form-optional {
  font-weight: 400;
  font-size: 12px;
  color: var(--text-muted);
}


/* ── 버튼형 라디오 그룹 ── */
.btn-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* 라디오 input은 시각적으로 숨기고 span을 버튼처럼 스타일 */
.btn-radio {
  display: inline-block;
  cursor: pointer;
}

.btn-radio input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.btn-radio span {
  display: inline-block;
  padding: 9px 16px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-sub);
  background: var(--bg-surface);
  transition:
    border-color var(--t),
    background var(--t),
    color var(--t);
  user-select: none;
}

.btn-radio:hover span {
  border-color: var(--blue-light);
  color: var(--text);
}

/* 선택된 라디오 상태 */
.btn-radio input[type="radio"]:checked + span {
  border-color: var(--blue);
  background: var(--blue-alpha);
  color: var(--blue-light);
  font-weight: 600;
}

.btn-radio input[type="radio"]:focus-visible + span {
  outline: 2px solid var(--blue-light);
  outline-offset: 2px;
}


/* ── 체크박스 그룹 ── */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 13px 16px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--r-md);
  background: var(--bg-surface);
  transition: border-color var(--t), background var(--t);
}

.form-checkbox:hover {
  border-color: var(--blue-light);
}

/* 체크박스 input 숨김 */
.form-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* 커스텀 체크박스 박스 */
.checkbox-mark {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--border-light);
  border-radius: 4px;
  background: var(--bg-base);
  transition: background var(--t), border-color var(--t);
  position: relative;
}

/* 체크박스 선택 상태 — 파란 박스 */
.form-checkbox input:checked ~ .checkbox-mark {
  background: var(--blue);
  border-color: var(--blue);
}

/* 체크 표시 (CSS 삼각형 기반) */
.form-checkbox input:checked ~ .checkbox-mark::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 6px;
  height: 10px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

/* 체크박스 라벨 텍스트 */
.form-checkbox span:last-child {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-sub);
  transition: color var(--t);
}

.form-checkbox input:checked ~ span:last-child {
  color: var(--text);
}


/* ── 일반 텍스트 입력 ── */
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.form-input {
  display: block;
  width: 100%;
  padding: 13px 16px;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-light);
  border-radius: var(--r-md);
  color: var(--text);
  font-size: 15px;
  transition: border-color var(--t), box-shadow var(--t);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-input:hover {
  border-color: var(--blue-light);
}

.form-input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

/* ── 제출 버튼 ── */
.btn-submit {
  display: flex;
  width: 100%;
  justify-content: center;
  padding: 17px;
  font-size: 16px;
  font-weight: 700;
  border-radius: var(--r-lg);
  margin-top: 20px;
  letter-spacing: 0.02em;
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* 개인정보 안내 */
.form-privacy {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 14px;
  line-height: 1.65;
}


/* ============================================================
   16. 푸터
============================================================ */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-top: 56px;
  padding-bottom: 44px;
}

.footer-logo {
  font-size: 20px;
  font-weight: 800;
  display: block;
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 13px;
  color: var(--text-sub);
}

/* 사업자 정보 목록 */
.biz-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.biz-row {
  display: flex;
  gap: 12px;
  font-size: 13px;
}

.biz-row dt {
  flex-shrink: 0;
  min-width: 96px;
  color: var(--text-muted);
  font-weight: 500;
}

.biz-row dd {
  color: var(--text-sub);
}

.biz-row dd a {
  color: var(--blue-light);
  transition: color var(--t);
}

.biz-row dd a:hover {
  color: var(--text);
}

/* 푸터 내비 */
.footer-nav-title {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav a {
  font-size: 14px;
  color: var(--text-sub);
  transition: color var(--t);
}

.footer-nav a:hover {
  color: var(--text);
}

/* 푸터 하단 카피라이트 줄 */
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
}

.copyright {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}


/* ============================================================
   17. 하단 고정 CTA 바
   — 기본 숨김, JS가 .is-visible 추가 시 슬라이드 업
============================================================ */
.fixed-cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  padding: 12px 16px;
  background: rgba(10, 13, 20, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);

  /* 초기 숨김 상태 */
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.38s ease, opacity 0.38s ease;
  pointer-events: none;
}

.fixed-cta-bar.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.btn-fixed-cta {
  display: flex;
  width: 100%;
  justify-content: center;
  padding: 15px;
  font-size: 16px;
  font-weight: 700;
  border-radius: var(--r-lg);
  gap: 8px;
}


/* ============================================================
   18. 반응형 — 태블릿 (640px 이상)
============================================================ */
@media (min-width: 640px) {
  :root {
    --pad-x: 32px;
  }

  /* 2열 그리드 전환 */
  .point-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .review-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .structure-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* 이름·연락처 한 줄 배치 */
  .form-row {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* ============================================================
   19. 반응형 — 데스크톱 (1024px 이상)
============================================================ */
@media (min-width: 1024px) {
  :root {
    --pad-x: 40px;
    --section-py: 112px;
    --header-h: 72px;
  }

  /* 데스크톱 내비 표시 */
  .nav-desktop {
    display: flex;
  }

  .btn-header-cta {
    display: inline-flex;
  }

  /* 모바일 햄버거 숨김 */
  .hamburger {
    display: none;
  }

  /* 포인트 카드 4열 */
  .point-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* 시공사례 3열 */
  .cases-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* 후기 3열 */
  .review-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* 비용구조 3열 */
  .structure-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* 데스크톱 고정 CTA: 모바일 전체 바 → 우하단 플로팅 버튼 */
  .fixed-cta-bar {
    left: auto;
    right: 32px;
    bottom: 32px;
    width: auto;
    padding: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
  }

  .btn-fixed-cta {
    width: auto;
    padding: 15px 28px;
    border-radius: var(--r-xl);
    box-shadow:
      0 4px 24px rgba(37, 99, 235, 0.45),
      0 2px 8px rgba(0, 0, 0, 0.5);
  }

  .btn-fixed-cta:hover {
    box-shadow:
      0 6px 32px rgba(37, 99, 235, 0.55),
      0 4px 16px rgba(0, 0, 0, 0.5);
    transform: translateY(-2px);
  }

  /* 푸터 3열 (브랜드 | 사업자정보 | 내비) */
  .footer-inner {
    grid-template-columns: 1fr 2fr 1fr;
    gap: 60px;
  }
}


/* ============================================================
   20. 반응형 — 와이드 (1280px 이상)
============================================================ */
@media (min-width: 1280px) {
  :root {
    --pad-x: 48px;
  }
}


/* ============================================================
   21. 접근성: 모션 감소 설정 대응
   (시스템 설정에서 애니메이션 줄이기 활성화 시)
============================================================ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .case-img-wrap img,
  .btn,
  .point-card,
  .structure-card {
    transition: none;
  }
}


/* ============================================================
   22. 폐업지원금 팝업 모달
   — z-index: 오버레이 1100 / 모달 1101 (헤더 1000보다 위)
   — 등장: opacity + scale 동시 전환 (fade + pop)
============================================================ */

/* ── 딤 오버레이 ── */
.popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(5, 7, 12, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);

  /* 기본 숨김 */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.popup-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

/* ── 모달 다이얼로그 ── */
.popup-modal {
  position: fixed;
  /* 뷰포트 중앙 */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  z-index: 1101;

  width: calc(100% - 32px); /* 모바일: 좌우 16px 여백 */
  max-width: 440px;

  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--r-xl);
  padding: 36px 28px 28px;

  /* 기본 숨김 */
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.38s ease,
    transform 0.38s ease,
    visibility 0.38s ease;

  /* 포커스 링 제거 (JS에서 tabindex=-1로 프로그래매틱 포커스) */
  outline: none;
}

.popup-modal.is-open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

/* ── 닫기(X) 버튼 ── */
.popup-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--r-md);
  color: var(--text-muted);
  background: transparent;
  cursor: pointer;
  transition: background var(--t), color var(--t);
}

.popup-close:hover {
  background: var(--bg-card-hover);
  color: var(--text);
}

/* ── 라벨 ── */
.popup-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--blue-light);
  text-transform: uppercase;
  background: var(--blue-alpha);
  border: 1px solid rgba(96, 165, 250, 0.25);
  border-radius: 4px;
  padding: 3px 9px;
  margin-bottom: 16px;
}

/* ── 헤드라인 ── */
.popup-headline {
  font-size: clamp(20px, 4vw, 24px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 14px;
}

/* ── 본문 ── */
.popup-body {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.8;
  margin-bottom: 24px;
}

.popup-body strong {
  color: var(--text);
  font-weight: 600;
}

/* ── 주 CTA 버튼 ── */
.popup-cta {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 15px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--r-lg);
  margin-bottom: 20px;
  gap: 8px;
}

/* ── 오늘 하루 보지 않기 영역 ── */
.popup-dismiss {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  gap: 12px;
}

/* 체크박스 + 텍스트 라벨 */
.popup-dismiss-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-muted);
  user-select: none;
  transition: color var(--t);
}

.popup-dismiss-label:hover {
  color: var(--text-sub);
}

/* 실제 input 숨김 */
.popup-dismiss-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* 커스텀 체크박스 박스 */
.popup-dismiss-mark {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--border-light);
  border-radius: 3px;
  background: var(--bg-surface);
  position: relative;
  transition: background var(--t), border-color var(--t);
}

.popup-dismiss-label input:checked ~ .popup-dismiss-mark {
  background: var(--blue);
  border-color: var(--blue);
}

.popup-dismiss-label input:checked ~ .popup-dismiss-mark::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 0px;
  width: 5px;
  height: 9px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

/* 닫기 텍스트 버튼 */
.popup-dismiss-close {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  transition: color var(--t), border-color var(--t), background var(--t);
}

.popup-dismiss-close:hover {
  color: var(--text);
  border-color: var(--border-light);
  background: var(--bg-card-hover);
}

/* ── 모션 감소 시 애니메이션 제거 ── */
@media (prefers-reduced-motion: reduce) {
  .popup-overlay,
  .popup-modal {
    transition: opacity 0.01s, visibility 0.01s;
  }

  .popup-modal {
    transform: translate(-50%, -50%) scale(1);
  }
}


/* ============================================================
   23. 푸터 하단 레이아웃 수정
   — copyright + 개인정보처리방침 버튼 좌우 배치
============================================================ */
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* 데스크톱 푸터 그리드: 사업자정보 블록 제거로 2열 조정 */
@media (min-width: 1024px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

/* 개인정보처리방침 텍스트 버튼 */
.privacy-open-btn {
  font-size: 12px;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 2px 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--t);
}

.privacy-open-btn:hover {
  color: var(--text-sub);
}


/* ============================================================
   24. 개인정보처리방침 모달
   — 팝업 모달(섹션 22)과 동일한 오버레이 패턴 사용
   — z-index: 오버레이 1200 / 모달 1201 (팝업 1100보다 위)
============================================================ */

/* ── 딤 오버레이 ── */
.privacy-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(5, 7, 12, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.privacy-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

/* ── 모달 다이얼로그 ── */
.privacy-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.94);
  z-index: 1201;

  width: calc(100% - 32px);
  max-width: 520px;
  /* 모바일에서 뷰포트 높이의 85% 이내로 제한 */
  max-height: 85svh;

  display: flex;
  flex-direction: column;

  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--r-xl);
  outline: none;

  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.32s ease,
    transform 0.32s ease,
    visibility 0.32s ease;
}

.privacy-modal.is-open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

/* ── 모달 헤더 (고정, 스크롤 안 됨) ── */
.privacy-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.privacy-modal-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}

/* ── 닫기(X) 버튼 ── */
.privacy-modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
  color: var(--text-muted);
  background: transparent;
  cursor: pointer;
  transition: background var(--t), color var(--t);
}

.privacy-modal-close:hover {
  background: var(--bg-card-hover);
  color: var(--text);
}

/* ── 모달 본문 (스크롤 가능) ── */
.privacy-modal-body {
  padding: 20px 24px 24px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.8;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 목록 */
.privacy-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-left: 4px;
}

.privacy-list li {
  display: flex;
  flex-direction: column;
  gap: 3px;
  counter-increment: none;
}

/* 항목 번호 — CSS 카운터로 자동 생성 */
.privacy-list {
  counter-reset: privacy-counter;
}

.privacy-list li::before {
  content: counter(privacy-counter) ". ";
  counter-increment: privacy-counter;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--blue-light);
  font-weight: 500;
}

.privacy-list li strong {
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
}

/* 시행일 문구 */
.privacy-effective {
  font-size: 12px;
  color: var(--text-muted);
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

/* ── 모션 감소 시 애니메이션 제거 ── */
@media (prefers-reduced-motion: reduce) {
  .privacy-overlay,
  .privacy-modal {
    transition: opacity 0.01s, visibility 0.01s;
  }

  .privacy-modal {
    transform: translate(-50%, -50%) scale(1);
  }
}
