/* 공개 홈페이지 디자인 시스템 (가평지하개발)
   원칙: 다크 모드 없음, 그라데이션 없음. 흰색과 연한 회색 면을 번갈아 쓰고,
   큰 제목과 넉넉한 여백, 포인트 색 하나. 제품 사이트처럼 절제된 구성.
   관리자 페이지는 style.css를 쓰며 이 파일과 분리되어 있다. */

:root {
  color-scheme: light only;
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --text: #1d1d1f;
  --text-2: #424245;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --line-soft: #e8e8ed;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --accent-link: #0066cc;
  --accent-soft: #e8f2fd;
  --accent-sky: #e6f4fb;
  --ok: #1d7f4e;
  --danger: #c4372f;
  --focus: #0071e3;
  --header-bg: rgba(255, 255, 255, 0.8);
  --radius-lg: 18px;
  --radius: 12px;
  --radius-sm: 10px;
  --max: 980px;
  --gutter: 22px;
  --header-h: 52px;
  --font: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.005em;
  color: var(--text);
  background: var(--bg);
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-link); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; color: var(--text); letter-spacing: -0.02em; }
p { margin: 0; color: var(--text-2); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- 헤더 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.logo { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; color: var(--text); }
.logo:hover { text-decoration: none; color: var(--text); }
.logo span { color: var(--accent); }
.nav { display: flex; gap: 28px; }
.nav a { font-size: 12px; font-weight: 400; color: var(--text); opacity: 0.8; transition: opacity .2s; }
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; text-decoration: none; }
.nav a[aria-current="page"] { font-weight: 600; }
.menu-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px 4px;
  font: inherit;
  font-size: 12px;
  color: var(--text);
  cursor: pointer;
}

/* ---------- 공통 블록 ---------- */
main { display: block; }
.block { padding: 120px 0; }
.block.alt { background: var(--bg-alt); }
.eyebrow {
  display: block;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--muted);
  margin-bottom: 8px;
}
.section-title {
  font-size: clamp(36px, 5.2vw, 56px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.028em;
  margin-bottom: 14px;
}
.section-lede { font-size: 21px; font-weight: 400; color: var(--muted); max-width: 680px; line-height: 1.38; }
.section-head { margin-bottom: 56px; }
.section-head.center { text-align: center; }
.section-head.center .section-lede { margin-left: auto; margin-right: auto; }

/* ---------- 버튼과 링크 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  border: 0;
  font: inherit;
  font-size: 17px;
  font-weight: 400;
  cursor: pointer;
  transition: background .2s, color .2s, transform .1s;
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: .45; cursor: default; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; text-decoration: none; }
.btn-ghost { background: transparent; color: var(--accent-link); padding: 0 4px; min-height: auto; }
.btn-ghost:hover { text-decoration: underline; }
.btn-outline { background: transparent; color: var(--accent-link); box-shadow: inset 0 0 0 1px var(--accent-link); }
.btn-outline:hover { background: var(--accent-soft); }
.btn-lg { min-height: 48px; padding: 0 26px; font-size: 18px; }
.link-arrow { font-size: 19px; font-weight: 400; color: var(--accent-link); }
.link-arrow::after { content: " ›"; }

/* ---------- 히어로 (흰 바탕, 큰 제목, 사진 한 장) ---------- */
.hero {
  padding: 128px 0 0;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 50%, #ffffff 100%),
    url("/assets/photos/hero-splash.jpg") center 40% / cover no-repeat;
  overflow: hidden;
  overflow: clip;
  isolation: isolate;
}
/* 빛이 천천히 흐르는 효과 (가벼운 CSS만 사용, 이미지 추가 없음) */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(40% 25% at 30% 60%, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0) 70%),
    radial-gradient(35% 22% at 72% 55%, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0) 70%);
  animation: hero-glow 9s ease-in-out infinite alternate;
  pointer-events: none;
}
.hero > .container, .hero > .hero-photo { position: relative; z-index: 1; }
@keyframes hero-glow {
  0%   { opacity: 0.35; }
  100% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .hero::before { animation: none; } }
@media (max-width: 760px) { .hero::before { display: none; } }
.hero .eyebrow { font-size: 19px; color: var(--muted); }
.hero h1 {
  font-size: clamp(48px, 8.4vw, 96px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.045em;
  color: var(--text);
}
.hero h1 em { font-style: normal; color: var(--text); }
.hero p.lede {
  margin: 20px auto 0;
  max-width: 640px;
  font-size: clamp(19px, 2.2vw, 24px);
  font-weight: 400;
  color: var(--muted);
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.hero .actions {
  margin-top: 30px;
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.hero-photo { margin: 72px auto 0; max-width: var(--max); padding: 0 var(--gutter); }
.hero-photo figure { margin: 0; position: relative; border-radius: 24px 24px 0 0; overflow: hidden; background: var(--bg-alt); }
.hero-photo img { width: 100%; height: 440px; object-fit: cover; object-position: center 40%; }
.hero-photo figcaption {
  position: absolute;
  left: 22px;
  bottom: 20px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

/* ---------- 수치 ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat { padding: 40px 16px 8px; text-align: center; border-left: 1px solid var(--line-soft); }
.stat:first-child { border-left: 0; }
.stat-num {
  font-size: clamp(44px, 5.4vw, 64px);
  font-weight: 600;
  letter-spacing: -0.035em;
  color: var(--text);
  line-height: 1;
}
.stat-num { white-space: nowrap; }
.stat-num small { font-size: 0.4em; font-weight: 500; margin-left: 4px; color: var(--muted); letter-spacing: -0.01em; }
.stat-label { margin-top: 12px; font-size: 17px; font-weight: 600; color: var(--text); }
.stat-desc { margin-top: 4px; font-size: 14px; color: var(--muted); }

/* ---------- 공정 단계 ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { background: var(--bg-alt); border-radius: var(--radius-lg); padding: 40px 32px 44px; }
.block.alt .step { background: #fff; }
.step-no { font-size: 17px; font-weight: 600; color: var(--accent-link); }
.step h3 { font-size: 24px; font-weight: 600; margin: 14px 0 10px; line-height: 1.2; letter-spacing: -0.02em; }
.step p { font-size: 17px; color: var(--muted); line-height: 1.45; }

/* ---------- 비교 ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.compare-col { background: #fff; border-radius: var(--radius-lg); padding: 44px 40px; }
.compare-col h3 { font-size: 26px; font-weight: 600; margin-bottom: 8px; letter-spacing: -0.02em; }
.compare-col .lede { font-size: 17px; color: var(--muted); margin-bottom: 26px; }
.compare-col ul { list-style: none; margin: 0; padding: 0; }
.compare-col li { padding: 18px 0; border-top: 1px solid var(--line-soft); font-size: 17px; color: var(--text-2); line-height: 1.45; }
.compare-col li strong { display: block; color: var(--text); font-weight: 600; margin-bottom: 2px; }
.compare-col.us { box-shadow: inset 0 0 0 2px var(--accent); }
.compare-col.us h3 { color: var(--accent-link); }

/* ---------- 현장 사진 ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery-row { margin-top: 12px; }
.shot { margin: 0; position: relative; overflow: hidden; border-radius: 18px; background: var(--bg-alt); }
.shot img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.shot:hover img { transform: scale(1.03); }
.shot-lg { grid-column: span 2; grid-row: span 2; }
.shot-lg img { aspect-ratio: auto; height: 100%; min-height: 420px; }
.shot figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

/* ---------- 카드 ---------- */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card { background: var(--bg-alt); border-radius: var(--radius-lg); padding: 36px 32px; display: flex; flex-direction: column; gap: 10px; }
.block.alt .card { background: #fff; }
.card h3 { font-size: 22px; font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; }
.card p { font-size: 17px; color: var(--muted); line-height: 1.45; }
.card .tag { align-self: flex-start; font-size: 13px; font-weight: 600; color: var(--accent-link); background: var(--accent-soft); padding: 4px 11px; border-radius: 999px; }
.card .meta { font-size: 14px; color: var(--muted); }
.card .foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line-soft); font-size: 14px; color: var(--ok); font-weight: 600; }

/* ---------- 목록 ---------- */
.list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-soft); }
.list li { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line-soft); }
.list li a { color: var(--text); font-size: 19px; font-weight: 500; letter-spacing: -0.01em; }
.list li a:hover { color: var(--accent-link); text-decoration: none; }
.list .meta { font-size: 14px; color: var(--muted); white-space: nowrap; }
.list .empty { display: block; color: var(--muted); }
.timeline li { justify-content: flex-start; }
.timeline .year { min-width: 124px; font-weight: 600; color: var(--text); font-size: 17px; }
.timeline .text { color: var(--text-2); font-size: 17px; }

/* ---------- 필터 ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 44px; }
.filter-btn {
  min-height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.filter-btn:hover { border-color: var(--text); }
.filter-btn.active { background: var(--text); border-color: var(--text); color: #fff; }

/* ---------- 페이지 상단 ---------- */
.page-head { padding: 128px 0 80px; text-align: center; background: var(--bg); }
.page-head h1 { font-size: clamp(44px, 7vw, 80px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.04; }
.page-head p { margin: 18px auto 0; max-width: 640px; font-size: 21px; color: var(--muted); line-height: 1.38; }
.page-head .eyebrow { font-size: 19px; }

/* ---------- 상담 영역 ---------- */
.cta-band { background: var(--bg-alt); border-radius: 28px; padding: 88px 40px; text-align: center; }
.cta-band h2 { font-size: clamp(36px, 4.8vw, 52px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.08; }
.cta-band p { margin: 14px auto 32px; max-width: 560px; color: var(--muted); font-size: 21px; line-height: 1.38; }

/* ---------- 폼 ---------- */
.form { display: grid; gap: 20px; }
.form .row { display: grid; gap: 20px; grid-template-columns: 1fr 1fr; }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.field .req { color: var(--danger); }
input, textarea, select {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 17px;
  color: var(--text);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
input::placeholder, textarea::placeholder { color: #a1a1a6; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
input[readonly] { background: var(--bg-alt); color: var(--muted); }
textarea { min-height: 120px; resize: vertical; }
.form-msg { font-size: 15px; min-height: 1.5em; margin: 0; text-align: center; }
.form-msg.ok { color: var(--ok); font-weight: 600; }
.form-msg.err { color: var(--danger); }

/* ---------- 단계형 신청 ---------- */
.wizard-steps { display: flex; justify-content: center; gap: 36px; margin-bottom: 56px; flex-wrap: wrap; }
.w-step { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--muted); }
.w-circle { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 13px; font-weight: 600; background: #fff; }
.w-step.active { color: var(--text); font-weight: 600; }
.w-step.active .w-circle { background: var(--text); border-color: var(--text); color: #fff; }
.w-step.done { color: var(--text-2); }
.w-step.done .w-circle { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--accent-link); }

.choice-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.choice {
  text-align: left;
  padding: 26px 24px;
  border-radius: var(--radius-lg);
  background: var(--bg-alt);
  border: 2px solid transparent;
  font: inherit;
  color: var(--text);
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.choice:hover { border-color: var(--line); }
.choice.selected { border-color: var(--accent); background: #fff; }
.choice .t { display: block; font-size: 19px; font-weight: 600; margin-bottom: 6px; letter-spacing: -0.01em; }
.choice .d { display: block; font-size: 15px; color: var(--muted); line-height: 1.45; }
.choice .badge { display: inline-block; font-size: 12px; font-weight: 600; color: #fff; background: var(--accent); padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; }

.panel { background: var(--bg-alt); border-radius: var(--radius-lg); padding: 32px; }
.summary { border-radius: var(--radius-lg); padding: 32px; margin-bottom: 32px; background: var(--bg-alt); }
.summary h3 { font-size: 20px; font-weight: 600; margin-bottom: 20px; }
.summary dl { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 32px; margin: 0; }
.summary dt { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.summary dd { margin: 0; font-size: 19px; font-weight: 500; color: var(--text); }
.summary .docs { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 15px; color: var(--text-2); }
.wizard-nav { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 34px; }

.contact-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 80px; }
.contact-list div { background: var(--bg-alt); border-radius: var(--radius); padding: 22px 24px; }
.contact-list dt { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.contact-list dd { margin: 0; font-size: 17px; font-weight: 500; color: var(--text); }

/* ---------- 푸터 (밝은 회색, 작은 글씨, 법적 고지) ---------- */
.site-footer { background: var(--bg-alt); padding: 36px 0 32px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line-soft); }
.site-footer .logo { font-size: 12px; color: var(--text); }
.site-footer p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.site-footer a { color: var(--accent-link); }
.site-footer .foot-grid { display: grid; grid-template-columns: 1fr; gap: 6px; margin-top: 14px; }
.site-footer .legal { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }

/* ---------- 상담 유도 ---------- */
.head-actions { display: flex; align-items: center; gap: 14px; }
.head-tel { font-size: 13px; color: var(--text); font-weight: 500; }
.head-tel:hover { text-decoration: none; color: var(--accent-link); }
.head-cta { min-height: 30px; padding: 0 14px; font-size: 13px; }
.mobile-cta { display: none; }
.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.flow-item { background: #fff; border-radius: var(--radius-lg); padding: 36px 30px; }
.block.alt .flow-item { background: var(--bg); }
.flow-item .step-no { font-size: 15px; font-weight: 600; color: var(--accent-link); }
.flow-item h3 { font-size: 22px; font-weight: 600; margin: 12px 0 8px; letter-spacing: -0.02em; }
.flow-item p { font-size: 16px; color: var(--muted); line-height: 1.45; }
.hero-tel { margin-top: 20px; font-size: 17px; color: var(--text-2); }
.hero-tel a { font-weight: 600; color: var(--accent-link); }

@media (max-width: 760px) {
  .head-tel, .head-cta { display: none; }
  .flow { grid-template-columns: 1fr; }
  body { padding-bottom: 72px; }
  .mobile-cta {
    display: flex;
    gap: 10px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    backdrop-filter: saturate(180%) blur(18px);
    border-top: 1px solid var(--line-soft);
  }
  .mobile-cta a { flex: 1; min-height: 46px; display: flex; align-items: center; justify-content: center; border-radius: 999px; font-size: 16px; }
  .mobile-cta-tel { background: var(--bg-alt); color: var(--accent-link); font-weight: 500; }
  .mobile-cta-btn { color: #fff; }
}

/* ---------- 반응형 ---------- */
@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat { border-top: 1px solid var(--line-soft); }
  .stat:nth-child(-n+2) { border-top: 0; }
  .compare { grid-template-columns: 1fr; }
  .contact-list { grid-template-columns: 1fr; }
  .hero-photo img { height: 320px; }
}
@media (max-width: 760px) {
  :root { --gutter: 20px; }
  body { font-size: 17px; }
  .block { padding: 88px 0; }
  .hero { padding: 104px 0 0; }
  .page-head { padding: 104px 0 56px; }
  .menu-toggle { display: inline-block; }
  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--line-soft);
    padding: 6px var(--gutter) 14px;
  }
  .nav.open { display: flex; }
  .nav a { font-size: 17px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); opacity: 1; }
  .form .row { grid-template-columns: 1fr; }
  .summary dl { grid-template-columns: 1fr; }
  .cta-band { padding: 56px 24px; border-radius: 22px; }
  .panel, .summary, .compare-col { padding: 26px 22px; }
  .timeline .year { min-width: 92px; }
  .list li { flex-direction: column; gap: 6px; }
  .list .meta { white-space: normal; }
  .wizard-steps { gap: 18px; font-size: 14px; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 8px; }
  .shot-lg { grid-column: span 2; grid-row: auto; }
  .shot-lg img { min-height: 0; aspect-ratio: 4 / 3; }
  .shot figcaption { left: 10px; bottom: 10px; font-size: 12px; }
  .hero-photo { padding: 0 var(--gutter); }
  .hero-photo img { height: 220px; }
  .hero-photo figcaption { left: 14px; bottom: 14px; font-size: 12px; }
}
@media (max-width: 420px) {
  .stat-num { font-size: 40px; }
}

/* ---------- 접근성: 본문 바로가기 ---------- */
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; color: var(--text); padding: 10px 16px; border-radius: 10px; font-size: 14px; font-weight: 600; box-shadow: 0 2px 10px rgba(0, 0, 0, .15); }
.skip-link:focus { left: 12px; }
