/* 공간회복24 - 사이트 공통 스타일
   컨셉: 밝고 깨끗한 신뢰. 화이트 바탕 + 네이비 텍스트 + 차분한 블루 포인트, 고딕 서체. */

:root {
  --ink: #1e2936;
  --ink-soft: #5b6672;
  --paper: #ffffff;
  --alt: #f3f6f9;
  --line: #e2e7ec;
  --accent: #2f6fb4;
  --accent-deep: #24598f;
  --navy: #1b2c40;
  --white: #ffffff;
  --max: 1120px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .marquee { overflow-x: auto; }
}

body {
  font-family: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  font-size: 16px;
  word-break: keep-all;
}

h1, h2, h3 { font-weight: 800; line-height: 1.35; letter-spacing: -0.02em; }

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

a { color: inherit; }

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

.label {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 4px;
  margin-bottom: 18px;
}

/* ---------- 헤더 ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo { display: flex; align-items: baseline; text-decoration: none; }
.logo strong {
  font-size: 21px; letter-spacing: -0.02em; font-weight: 800;
}
.logo strong em { font-style: normal; color: var(--accent); }

.gnb { display: flex; gap: 26px; align-items: center; }
.gnb a {
  text-decoration: none; font-size: 15px; color: var(--ink-soft);
  padding: 6px 2px;
}
.gnb a:hover, .gnb a[aria-current="page"] { color: var(--ink); box-shadow: 0 2px 0 var(--accent); }
.gnb .call {
  color: var(--white); background: var(--accent);
  padding: 9px 16px; font-weight: 700; box-shadow: none; border-radius: 4px;
}
.gnb .call:hover { background: var(--accent-deep); color: var(--white); }

.menu-btn {
  display: none; background: none; border: 1px solid var(--line);
  padding: 8px 10px; font-size: 14px; cursor: pointer; color: var(--ink); border-radius: 4px;
}

@media (max-width: 860px) {
  .menu-btn { display: block; }
  .gnb {
    display: none;
    position: absolute; left: 0; right: 0; top: 64px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 16px;
  }
  .gnb.open { display: flex; }
  .gnb a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .gnb a:last-child { border-bottom: 0; }
  .gnb .call { margin-top: 10px; text-align: center; }
}

/* ---------- 히어로 ---------- */
.hero { position: relative; background: #46505a; color: var(--white); overflow: hidden; }
.hero video, .hero .hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5;
}
.hero .hero-inner {
  position: relative; z-index: 1;
  padding: 100px 20px 84px;
}
.hero h1 {
  font-size: clamp(30px, 5vw, 50px);
  color: var(--white);
  max-width: 21em;
  text-shadow: 0 2px 18px rgba(0,0,0,.35);
}
.hero h1 em { font-style: normal; color: #a9d1ff; }
.hero .sub {
  margin-top: 22px; font-size: clamp(15px, 2vw, 18px);
  color: #eef2f6; max-width: 34em; text-shadow: 0 1px 12px rgba(0,0,0,.4);
}
.hero .cta-row { margin-top: 36px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero .note { margin-top: 26px; font-size: 12px; color: #cdd4db; }

.btn {
  display: inline-block; text-decoration: none; font-weight: 700;
  padding: 15px 26px; font-size: 16px; border: 1px solid transparent; border-radius: 6px;
}
.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { background: var(--accent-deep); }
.btn-ghost { border-color: rgba(255,255,255,.75); color: var(--white); background: rgba(0,0,0,.15); }
.btn-ghost:hover { border-color: var(--white); background: rgba(0,0,0,.3); }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--white); }

/* ---------- 섹션 공통 ---------- */
section { padding: 84px 0; }
section.tight { padding: 56px 0; }
.sec-head { margin-bottom: 44px; }
.sec-head h2 { font-size: clamp(24px, 3.4vw, 34px); }
.sec-head p { margin-top: 12px; color: var(--ink-soft); max-width: 40em; }
.num { font-weight: 700; color: var(--accent); font-size: 14px; letter-spacing: .08em; }

.alt { background: var(--alt); }

/* ---------- 요약(핵심 답변) ---------- */
.answer {
  border-left: 3px solid var(--accent);
  padding: 6px 0 6px 22px;
  font-size: clamp(16px, 2.2vw, 19px);
  max-width: 46em;
}

/* ---------- 서비스 ---------- */
.svc-list { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.svc {
  border-bottom: 1px solid var(--line);
  padding: 30px 26px 32px;
  background: var(--paper);
}
.svc:nth-child(odd) { border-right: 1px solid var(--line); }
.svc h3 { font-size: 20px; display: flex; gap: 14px; align-items: baseline; }
.svc p { margin-top: 10px; color: var(--ink-soft); font-size: 15px; }
@media (max-width: 720px) {
  .svc-list { grid-template-columns: 1fr; }
  .svc:nth-child(odd) { border-right: 0; }
}

/* ---------- 절차 ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.step { border-top: 2px solid var(--accent); padding-top: 16px; }
.step b { font-size: 18px; display: block; }
.step .num { display: block; margin-bottom: 8px; }
.step p { margin-top: 8px; font-size: 14.5px; color: var(--ink-soft); }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

/* ---------- 인물 / 약속 ---------- */
.people-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 52px; align-items: center; }
@media (max-width: 860px) { .people-grid { grid-template-columns: 1fr; } }
.people-grid figure { position: relative; }
.people-grid figure img { border-radius: 8px; border: 1px solid var(--line); }
.people-grid figcaption { font-size: 12px; color: var(--ink-soft); margin-top: 8px; }
.promise { margin-top: 18px; display: grid; gap: 14px; }
.promise li { list-style: none; padding-left: 26px; position: relative; color: var(--ink-soft); }
.promise li::before {
  content: ""; position: absolute; left: 2px; top: 9px;
  width: 10px; height: 10px; background: var(--accent); border-radius: 2px;
}
.promise li strong { color: var(--ink); }

/* ---------- 신뢰 / 등록정보 ---------- */
.trust-grid { display: grid; grid-template-columns: 420px 1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .trust-grid { grid-template-columns: 1fr; } }
.fact-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.fact-table th, .fact-table td { text-align: left; padding: 12px 4px; border-bottom: 1px solid var(--line); vertical-align: top; }
.fact-table th { width: 9em; font-weight: 700; color: var(--ink-soft); }
.doc-frame { border: 1px solid var(--line); background: var(--paper); padding: 10px; border-radius: 6px; }
.doc-frame figcaption { font-size: 13px; color: var(--ink-soft); padding: 10px 4px 2px; }

/* ---------- 전후 비교 슬라이더 ---------- */
.ba-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
@media (max-width: 720px) { .ba-grid { grid-template-columns: 1fr; } }
.ba-item h3 { font-size: 17px; margin-bottom: 10px; display: flex; align-items: baseline; gap: 10px; }
.bas {
  position: relative; overflow: hidden; border-radius: 6px;
  border: 1px solid var(--line); background: #dfe4e9;
  --p: 50%;
  aspect-ratio: 4 / 3;
  touch-action: none;
  cursor: grab;
  user-select: none;
}
.bas.dragging { cursor: grabbing; }
.bas > img, .bas .bas-top img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.bas .bas-top {
  position: absolute; inset: 0;
  clip-path: inset(0 calc(100% - var(--p)) 0 0);
}
.bas .bas-line {
  position: absolute; top: 0; bottom: 0; left: var(--p); width: 2px;
  background: #fff; box-shadow: 0 0 8px rgba(0,0,0,.45);
  transform: translateX(-1px); pointer-events: none;
}
.bas .bas-knob {
  position: absolute; top: 50%; left: 1px; transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: #fff; color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700; letter-spacing: -2px;
  box-shadow: 0 2px 12px rgba(0,0,0,.35);
}
.bas .bas-hint {
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%);
  z-index: 3; font-size: 12.5px; color: #fff;
  background: rgba(20,28,38,.66); padding: 5px 12px; border-radius: 20px;
  pointer-events: none; transition: opacity .25s;
}
.bas.touched .bas-hint { opacity: 0; }
.bas .bas-tag {
  position: absolute; top: 12px; z-index: 2;
  font-size: 12.5px; font-weight: 700; color: #fff;
  background: rgba(20,28,38,.62); padding: 3px 10px; border-radius: 4px;
  pointer-events: none;
}
.bas .bas-tag-b { left: 12px; }
.bas .bas-tag-a { right: 12px; }
.bas input[type="range"] {
  position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 44px;
  opacity: 0; margin: 0; cursor: grab;
}
.ba-note { margin-top: 26px; font-size: 13.5px; color: var(--ink-soft); }

/* ---------- 후기 마퀴(가로 흐름) ---------- */
.marquee {
  overflow: hidden; position: relative;
  padding: 6px 0;
}
.marquee-track {
  display: flex; gap: 18px; width: max-content;
  animation: marquee-scroll 80s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee img {
  width: 280px; height: auto;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 2px 10px rgba(30,41,54,.06);
}
@keyframes marquee-scroll {
  to { transform: translateX(-50%); }
}
.marquee-note { margin-top: 18px; font-size: 13.5px; color: var(--ink-soft); }

/* 숨고 브랜드 포인트 */
:root { --soomgo: #7c4dff; --soomgo-soft: #f3efff; }
.soomgo-band { background: var(--soomgo-soft); }
.soomgo-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--soomgo); color: #fff;
  font-size: 13px; font-weight: 700; letter-spacing: -0.01em;
  padding: 7px 14px; border-radius: 20px;
}
.soomgo-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.marquee img { border-color: #e4dbff; }
.rv-card.soomgo { border-top: 3px solid var(--soomgo); }
.rv-card.soomgo .rv-src { color: var(--soomgo); font-weight: 700; }

/* ---------- 후기 카드 ---------- */
.rv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 960px) { .rv-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .rv-grid { grid-template-columns: 1fr; } }
.rv-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 8px;
  padding: 26px 24px; display: flex; flex-direction: column; gap: 14px;
}
.rv-meta { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--ink-soft); }
.rv-cat { font-weight: 700; color: var(--ink); font-size: 14px; }
.rv-stars { color: #e8a93c; letter-spacing: 2px; font-size: 13px; }
.rv-body { font-size: 15px; flex: 1; }
.rv-src { font-size: 12.5px; color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: 12px; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 4px;
  font-weight: 700; font-size: 16.5px; display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq .a { padding: 0 4px 22px; color: var(--ink-soft); max-width: 46em; }

/* ---------- 컨택트 ---------- */
.contact { background: var(--alt); }
.contact-box { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 800px) { .contact-box { grid-template-columns: 1fr; } }
.contact-box .tel {
  font-size: clamp(30px, 5vw, 44px); font-weight: 800;
  color: var(--accent-deep); text-decoration: none; letter-spacing: .01em;
}
.contact-box .tel:hover { color: var(--accent); }
.contact-hours { margin-top: 10px; font-size: 14px; color: var(--ink-soft); }

/* ---------- 푸터 ---------- */
.site-foot { background: var(--navy); color: #aeb9c6; font-size: 13.5px; padding: 46px 0 110px; }
.site-foot .cols { display: flex; flex-wrap: wrap; gap: 34px; justify-content: space-between; }
.site-foot b { color: #f0f4f8; font-size: 15px; }
.site-foot a { color: #d5dde6; }
.site-foot .legal { margin-top: 26px; border-top: 1px solid #31425a; padding-top: 18px; line-height: 1.9; }

/* ---------- 모바일 하단 고정 CTA ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr 1fr; box-shadow: 0 -4px 16px rgba(0,0,0,.14);
}
.sticky-cta a {
  text-align: center; padding: 15px 8px; font-weight: 800; font-size: 16px; text-decoration: none;
}
.sticky-cta .t { background: var(--accent); color: var(--white); }
.sticky-cta .k { background: #fae100; color: #3c1e1e; }
@media (min-width: 861px) { .sticky-cta { display: none; } .site-foot { padding-bottom: 46px; } }

/* ---------- 서브페이지 헤더 ---------- */
.page-head { background: var(--alt); border-bottom: 1px solid var(--line); padding: 64px 0 52px; }
.page-head h1 { font-size: clamp(28px, 4vw, 40px); }
.page-head p { margin-top: 12px; color: var(--ink-soft); max-width: 42em; }
.crumb { font-size: 13px; color: var(--ink-soft); margin-bottom: 18px; }
.crumb a { color: var(--ink-soft); }

/* 접근성: 포커스 표시 */
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px;
}
.bas:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.skip {
  position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--white);
  padding: 10px 16px; z-index: 100;
}
.skip:focus { left: 0; }


/* ---------- 숫자 카운터 ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 640px) { .stats { grid-template-columns: 1fr; } }
.stat {
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px;
  padding: 28px 22px; text-align: center;
}
.stat .v {
  font-size: clamp(30px, 4.4vw, 44px); font-weight: 800;
  color: var(--accent-deep); line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stat .v .u { font-size: .5em; margin-left: 3px; color: var(--ink-soft); font-weight: 700; }
.stat .k { margin-top: 10px; font-size: 14.5px; color: var(--ink-soft); }
.stat .ex {
  display: inline-block; margin-top: 8px; font-size: 11.5px; font-weight: 700;
  color: #8a5a00; background: #fff3d6; border: 1px solid #f0dca8;
  padding: 2px 8px; border-radius: 4px;
}
.stats-note { margin-top: 20px; font-size: 13px; color: var(--ink-soft); }

/* ---------- PC 우측 플로팅 버튼 ---------- */
.side-cta {
  position: fixed; right: 20px; top: 50%; transform: translateY(-50%);
  z-index: 55; display: none; flex-direction: column; gap: 10px;
}
@media (min-width: 861px) { .side-cta { display: flex; } }
.side-cta a {
  width: 62px; height: 62px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; text-decoration: none; font-size: 11px; font-weight: 700;
  box-shadow: 0 4px 14px rgba(27,44,64,.22);
  transition: transform .15s;
}
.side-cta a:hover { transform: translateY(-2px); }
.side-cta a svg { width: 22px; height: 22px; display: block; }
.side-cta .s-kakao { background: #fae100; color: #3c1e1e; }
.side-cta .s-blog { background: #03c75a; color: #fff; }
.side-cta .s-tel { background: var(--accent); color: #fff; }

/* ---------- 스크롤 등장 애니메이션 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
  transition-delay: var(--d, 0s);
}
[data-reveal].shown { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- 강점 카드 (WHY US) ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }
.why {
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  padding: 30px 26px 32px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.why:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(30,41,54,.10); border-color: #c9dcef; }
.why .ico {
  width: 50px; height: 50px; border-radius: 12px;
  background: #e8f1fa; color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.why .ico svg { width: 26px; height: 26px; }
.why h3 { font-size: 18px; }
.why p { margin-top: 10px; font-size: 14.5px; color: var(--ink-soft); }

/* ---------- 서비스 이미지 카드 ---------- */
.svc-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .svc-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .svc-cards { grid-template-columns: 1fr; } }
.svc-card {
  position: relative; overflow: hidden; border-radius: 12px;
  border: 1px solid var(--line); background: var(--navy);
  aspect-ratio: 4 / 3;
  transition: transform .3s ease, box-shadow .3s ease;
}
.svc-card:hover, .svc-card:focus-within { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(30,41,54,.16); }
.svc-card img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease, filter .3s ease;
}
.svc-card:hover img, .svc-card:focus-within img { transform: scale(1.06); }
.svc-card .veil {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,24,36,.82) 0%, rgba(15,24,36,.38) 50%, rgba(15,24,36,.06) 100%);
  transition: background .3s ease;
}
.svc-card:hover .veil, .svc-card:focus-within .veil { background: rgba(15,24,36,.8); }
.svc-card .body {
  position: absolute; inset: auto 0 0 0; padding: 22px 22px 24px; color: #fff;
}
.svc-card .n { font-size: 12.5px; font-weight: 700; letter-spacing: .12em; color: #a9d1ff; }
.svc-card h3 { font-size: 20px; margin-top: 6px; color: #fff; }
.svc-card p {
  font-size: 14.5px; color: #dbe4ee; margin-top: 10px;
}
/* 마우스가 있는 환경에서만 설명을 접었다가 펼친다. 터치 기기에서는 항상 보인다. */
@media (hover: hover) and (pointer: fine) {
  .svc-card p {
    max-height: 0; opacity: 0; margin-top: 0;
    overflow: hidden;
    transition: max-height .35s ease, opacity .3s ease, margin-top .35s ease;
  }
  .svc-card:hover p, .svc-card:focus-within p { max-height: 9em; opacity: 1; margin-top: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .svc-card p { max-height: none !important; opacity: 1 !important; margin-top: 10px !important; }
}
.svc-card a.cover {
  position: absolute; inset: 0; z-index: 2;
  text-indent: -9999px; overflow: hidden;
}

/* ---------- 진행 절차 (연결선 + 등장) ---------- */
.steps { position: relative; }
.step { position: relative; }
.step .badge {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 17px; margin-bottom: 14px;
  box-shadow: 0 0 0 6px #e8f1fa;
}
.step-line {
  position: absolute; top: 21px; left: 0; right: 0; height: 2px;
  background: var(--line); z-index: -1;
}
.step-line span {
  display: block; height: 100%; width: 0; background: var(--accent);
  transition: width 1.6s ease .2s;
}
.step-line.run span { width: 100%; }
@media (max-width: 860px) { .step-line { display: none; } }

/* 절차 섹션에서는 기존 상단 보더 대신 뱃지를 쓴다 */
.steps.flow .step { border-top: 0; padding-top: 0; }
