/* 결이음 인테리어 — 웜그레이·우드, Hahmlet + IBM Plex Sans KR, P7 공정 + 시공 사례 */
:root {
  --bg: #EEEAE4;
  --paper: #F7F5F1;
  --ink: #2A2724;
  --sub: #6B645C;
  --line: #D6CFC5;
  --wood: #8C5E3C;
  --wood-d: #6E4729;
  --serif: 'Hahmlet', 'Noto Serif KR', serif;
  --sans: 'IBM Plex Sans KR', -apple-system, 'Malgun Gothic', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.7 var(--sans); word-break: keep-all; overflow-wrap: break-word; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.045em; line-height: 1.3; margin: 0; }
.wrap { width: min(1160px, 100% - 48px); margin: 0 auto; }
.eyebrow { margin: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; color: var(--wood); }

/* 헤더 */
.top { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.top__in { display: flex; align-items: center; gap: 32px; height: 68px; }
.logo { font: 600 22px/1 var(--serif); text-decoration: none; display: flex; align-items: baseline; gap: 10px; }
.logo small { font: 400 12px/1 var(--sans); color: var(--sub); }
.nav { display: flex; gap: 26px; margin-left: auto; font-size: 15px; }
.nav a { text-decoration: none; color: var(--sub); }
.nav a:hover { color: var(--ink); }
.top__tel { font-weight: 600; text-decoration: none; padding: 9px 16px; border: 1px solid var(--ink); border-radius: 2px; font-variant-numeric: tabular-nums; }
.top__tel:hover { background: var(--ink); color: var(--paper); }

/* 버튼 */
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 2px; font-weight: 600; font-size: 15px; text-decoration: none; }
.btn--wood { background: var(--wood); color: #fff; }
.btn--wood:hover { background: var(--wood-d); }
.btn--line { border: 1px solid var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); }

/* 히어로 */
.hero { padding: 64px 0 0; }
.hero__grid { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: end; }
.hero h1 { font-size: clamp(38px, 4.6vw, 58px); margin-bottom: 24px; }
.lead { color: var(--sub); font-size: 17px; margin: 0 0 32px; max-width: 30em; }
.hero__img { margin: 0; }
.hero__img img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.hero__img figcaption { font-size: 13px; color: var(--sub); margin-top: 10px; text-align: right; }
.strip { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 48px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.strip div { padding: 18px 20px 18px 0; font-size: 15px; }
.strip div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.strip span { display: block; font-size: 12px; color: var(--sub); margin-bottom: 2px; }
.strip a { text-decoration-color: var(--line); text-underline-offset: 4px; }

.notice { display: flex; gap: 20px; align-items: baseline; margin-top: 28px; padding: 16px 20px; background: var(--paper); border-left: 3px solid var(--wood); }
.notice strong { font-size: 13px; color: var(--wood); white-space: nowrap; font-variant-numeric: tabular-nums; }
.notice p { margin: 0; font-size: 15px; }

/* 섹션 공통 */
section { scroll-margin-top: 80px; }
.process, .works, .cost, .contact { padding: 104px 0 0; }
.sec-head { max-width: 560px; margin-bottom: 48px; }
.sec-head h2 { font-size: clamp(28px, 3.2vw, 38px); }
.sec-head p:not(.eyebrow) { color: var(--sub); margin: 14px 0 0; }

/* 진행 과정 */
.steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.steps li { display: grid; grid-template-columns: 96px 1fr 300px; gap: 32px; padding: 30px 0; border-bottom: 1px solid var(--line); align-items: start; }
.steps__no { font: 400 44px/1 var(--serif); color: var(--wood); }
.steps h3 { font-size: 22px; margin-bottom: 8px; }
.steps__body p { margin: 0; color: var(--sub); max-width: 36em; }
.steps dl { display: grid; grid-template-columns: 44px 1fr; gap: 6px 12px; margin: 4px 0 0; font-size: 14px; }
.steps dt { color: var(--sub); }
.steps dd { margin: 0; font-weight: 500; }
.process__foot { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-top: 48px; }
.process__foot img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.process__foot p { font: 400 22px/1.55 var(--serif); margin: 0 0 24px; }

/* 시공 사례 */
.case { display: grid; grid-template-columns: 7fr 5fr; gap: 48px; align-items: center; margin-bottom: 64px; }
.case--flip img { order: 2; }
.case img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.case h3 { font-size: 24px; margin-bottom: 14px; }
.case p { color: var(--sub); margin: 0 0 24px; }
.case dl { display: grid; grid-template-columns: 64px 1fr; margin: 0; border-top: 1px solid var(--line); }
.case dt, .case dd { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.case dt { color: var(--sub); }
.case dd { margin: 0; }
.works__now { margin: 0; padding: 18px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); font-size: 15px; }
.works__now span { display: inline-block; margin-right: 12px; padding: 2px 10px; background: var(--ink); color: var(--paper); font-size: 12px; font-weight: 600; }

/* 비용 */
.cost__grid { display: grid; grid-template-columns: 4fr 7fr; gap: 64px; align-items: start; }
.cost .sec-head { margin: 0; }
.cost .sec-head .btn { margin-top: 28px; }
.cost__table { width: 100%; border-collapse: collapse; font-size: 16px; background: var(--paper); }
.cost__table th { text-align: left; font-size: 13px; font-weight: 500; color: var(--sub); padding: 14px 20px; border-bottom: 1px solid var(--ink); }
.cost__table td { padding: 18px 20px; border-bottom: 1px solid var(--line); }
.cost__table td:nth-child(2) { color: var(--sub); white-space: nowrap; }
.cost__table td:last-child, .cost__table th:last-child { text-align: right; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* 사후관리 */
.warranty { margin-top: 104px; background: var(--ink); color: var(--paper); padding: 72px 0; }
.warranty__grid { display: grid; grid-template-columns: 3fr 8fr; gap: 48px; }
.warranty h2 { font-size: 32px; }
.warranty ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.warranty li { font-size: 15px; color: #CFC8BE; border-top: 1px solid #5A544D; padding-top: 18px; }
.warranty strong { display: block; color: var(--paper); font: 500 19px/1.4 var(--serif); margin-bottom: 8px; }

/* 연락 */
.contact { padding-bottom: 104px; }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.contact h2 { font-size: clamp(28px, 3vw, 36px); }
.contact__tel { display: block; margin: 28px 0 24px; font: 500 clamp(36px, 4.4vw, 52px)/1 var(--serif); text-decoration: none; font-variant-numeric: tabular-nums; }
.contact__list { margin: 0; display: grid; grid-template-columns: 96px 1fr; border-top: 1px solid var(--ink); }
.contact__list dt, .contact__list dd { padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact__list dt { font-size: 14px; color: var(--sub); }
.contact__list dd { margin: 0; }
.contact__list dd a { color: var(--wood); font-weight: 500; }

.foot { border-top: 1px solid var(--line); padding: 32px 0 40px; font-size: 13px; color: var(--sub); }
.foot p { margin: 0 0 4px; }

.dock { display: none; }

/* 태블릿 */
@media (max-width: 960px) {
  .nav { display: none; }
  .top__in { justify-content: space-between; }
  .hero__grid, .process__foot, .case, .cost__grid, .contact__grid, .warranty__grid { grid-template-columns: 1fr; gap: 32px; }
  .case--flip img { order: 0; }
  .steps li { grid-template-columns: 64px 1fr; }
  .steps dl { grid-column: 2; }
  .warranty ul { grid-template-columns: 1fr; gap: 20px; }
}

/* 모바일 */
@media (max-width: 600px) {
  body { font-size: 15px; padding-bottom: 64px; }
  .wrap { width: calc(100% - 40px); }
  .top__in { height: 58px; gap: 12px; }
  .logo small { display: none; }
  .top__tel { padding: 7px 12px; font-size: 14px; }
  .hero { padding-top: 36px; }
  .hero h1 { font-size: 34px; }
  .lead { font-size: 16px; margin-bottom: 24px; }
  .btns .btn { flex: 1 1 100%; }
  .hero__img figcaption { text-align: left; }
  .strip { grid-template-columns: 1fr; margin-top: 32px; }
  .strip div, .strip div + div { padding: 12px 0; border-left: 0; }
  .strip div + div { border-top: 1px solid var(--line); }
  .notice { flex-direction: column; gap: 4px; }
  .process, .works, .cost, .contact { padding-top: 72px; }
  .sec-head { margin-bottom: 32px; }
  .steps li { grid-template-columns: 1fr; gap: 10px; padding: 24px 0; }
  .steps dl { grid-column: auto; }
  .steps__no { font-size: 30px; }
  .process__foot p { font-size: 19px; }
  .case { margin-bottom: 48px; gap: 20px; }
  .works__now span { display: block; width: max-content; margin-bottom: 8px; }
  .cost__table th, .cost__table td { padding: 14px 10px; }
  .cost__table td:nth-child(2), .cost__table th:nth-child(2) { display: none; }
  .warranty { margin-top: 72px; padding: 56px 0; }
  .contact { padding-bottom: 64px; }
  .contact__list { grid-template-columns: 1fr; }
  .contact__list dt { padding: 16px 0 0; border: 0; }
  .contact__list dd { padding: 4px 0 16px; }
  .dock { display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--ink); }
  .dock a { color: var(--paper); text-align: center; text-decoration: none; padding: 0; line-height: 56px; font-weight: 600; }
  .dock a:first-child { background: var(--wood); }
  .dock a + a { border-left: 1px solid #45403A; }
}
