@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");
@import url("https://fonts.googleapis.com/css2?family=Noto+Serif+KR:wght@600;700&display=swap");

/* 색: 슬레이트(짙은 회청) · 석고 흰색 · 콘크리트 회색 · 원목 */
:root {
  --slate: #1f2b33;
  --slate2: #2c3a44;
  --plaster: #eef0ec;
  --concrete: #c9cdc6;
  --oak: #b5835a;
  --oak-text: #8a5d38;
  --ink: #1a1f23;
  --sub: #586269;
  --rule: #dfe2dc;
  --red: #b83a2a;
  --serif: "Noto Serif KR", "Nanum Myeongjo", serif;
  --max: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Pretendard", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  color: var(--ink); font-size: 18px; line-height: 1.75;
  word-break: keep-all; -webkit-font-smoothing: antialiased; background: #fff;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
:focus-visible { outline: 3px solid var(--oak); outline-offset: 3px; }

/* ── 머리 ── */
header { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid var(--rule); }
header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo b { font-size: 25px; font-weight: 800; letter-spacing: -1.4px; color: var(--slate); line-height: 1; }
.logo b::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 3px; background: var(--oak); vertical-align: baseline; }
.logo span { font-size: 11px; font-weight: 600; letter-spacing: 3px; color: var(--oak-text); padding-left: 12px; border-left: 1px solid var(--concrete); line-height: 1.2; }
nav { display: flex; align-items: center; gap: 30px; font-size: 16px; font-weight: 500; color: var(--sub); }
nav a:hover, nav a.on { color: var(--ink); }
nav a.on { box-shadow: inset 0 -2px 0 var(--oak); }
nav a.call { background: var(--slate); color: #fff; font-weight: 700; padding: 10px 18px; border-radius: 4px; box-shadow: none; }

/* ── 버튼 ── */
.btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }
.btn { display: inline-block; padding: 16px 28px; border-radius: 4px; font-size: 17px; font-weight: 700; border: 2px solid transparent; }
.btn.oak { background: var(--oak); color: #fff; }
.btn.oak:hover { background: var(--oak-text); }
.btn.line-w { border-color: rgba(255,255,255,.7); color: #fff; }
.btn.line-w:hover { background: rgba(255,255,255,.12); }
.btn.slate { background: var(--slate); color: #fff; }
.btn.line { border-color: var(--slate); color: var(--slate); }
.btn.line:hover { background: var(--slate); color: #fff; }

/* ── 메인 첫 화면: 사진 + 공정표 ── */
.hero { position: relative; color: #fff; background: var(--slate) center / cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(23,32,38,.92) 0%, rgba(23,32,38,.78) 42%, rgba(23,32,38,.15) 100%); }
.hero .wrap { position: relative; padding-top: 76px; padding-bottom: 80px; }
.hero h1 { font-family: var(--serif); font-size: 46px; font-weight: 700; line-height: 1.35; letter-spacing: -1px; max-width: 13em; }
.hero p.lead { margin-top: 26px; font-size: 20px; color: #dfe4e6; max-width: 30em; }
.hero p.lead small { display: block; margin-top: 6px; font-size: 15px; color: #a9b3b8; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ── 하위 페이지 머리 ── */
.page-head { background: var(--plaster); }
.page-head .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.page-head h1 { font-family: var(--serif); font-size: 42px; font-weight: 700; line-height: 1.4; letter-spacing: -0.5px; color: var(--slate); }
.page-head p { margin-top: 20px; color: var(--sub); font-size: 19px; }
.page-head .photo { aspect-ratio: 4 / 3; background: var(--concrete) center / cover no-repeat; }

/* ── 구역 ── */
section { padding: 84px 0; }
section.plaster { background: var(--plaster); }
section.slate { background: var(--slate); color: #fff; }
.head { max-width: 640px; margin-bottom: 40px; }
.head h2 { font-family: var(--serif); font-size: 34px; font-weight: 700; line-height: 1.4; letter-spacing: -0.5px; color: var(--slate); }
section.slate .head h2 { color: #fff; }
.head p { margin-top: 12px; color: var(--sub); font-size: 18px; }
section.slate .head p { color: #b6c0c5; }

/* ── 무엇을 고치나요: 사진 3칸 ── */
.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.works a { display: block; }
.works .photo { aspect-ratio: 4 / 3; background: var(--concrete) center / cover no-repeat; margin-bottom: 20px; }
.works h3 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.works a:hover h3 { color: var(--oak-text); }
.works p { color: var(--sub); font-size: 17px; }

/* ── 비교표 ── */
.compare { width: 100%; border-collapse: collapse; font-size: 17px; }
.compare th, .compare td { padding: 20px 22px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
.compare thead th { font-size: 18px; font-weight: 700; border-bottom: 2px solid var(--slate); }
.compare tbody th { width: 150px; color: var(--sub); font-weight: 600; }
.compare td { color: var(--sub); }
.compare .me { background: var(--plaster); color: var(--ink); font-weight: 600; }
.compare thead .me { background: var(--slate); color: #fff; border-bottom-color: var(--slate); }

/* ── 견적 예시 ── */
.estimate { display: grid; grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: start; }
.estimate .head { margin-bottom: 0; }
.sample { width: 100%; border-collapse: collapse; font-size: 17px; background: #fff; }
.sample th, .sample td { padding: 14px 16px; border-bottom: 1px solid var(--rule); text-align: right; white-space: nowrap; }
.sample th:first-child, .sample td:first-child { text-align: left; white-space: normal; }
.sample thead th { font-size: 14px; color: var(--sub); font-weight: 600; border-bottom: 2px solid var(--slate); }
.sample .was { color: #8d969b; text-decoration: line-through; }
.sample .save { color: var(--oak-text); font-weight: 800; }
.sample caption { caption-side: bottom; text-align: left; font-size: 14px; color: var(--sub); padding-top: 12px; }

/* ── 관리 서비스 타일 ── */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.tile { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--slate) center / cover no-repeat; color: #fff; }
/* 사진은 여기(CSS)에 둠: 넷리파이가 <a> 태그의 style 따옴표를 바꿔 사진 주소가 깨지는 문제 방지 */
.tile-building { background-image: url("https://images.unsplash.com/photo-1749532125405-70950966b0e5?w=1200&q=75&auto=format&fit=crop"); }
.tile-aircon { background-image: url("aircon-main.jpg"); }
.tile::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(23,32,38,.88) 0%, rgba(23,32,38,.2) 60%); }
.tile div { position: absolute; left: 30px; right: 30px; bottom: 26px; }
.tile h3 { font-family: var(--serif); font-size: 26px; font-weight: 700; }
.tile p { color: #dfe4e6; font-size: 17px; margin-top: 4px; }
.tile:hover h3 { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }

/* ── 경력 연표 ── */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--slate); }
.timeline li { padding: 24px 24px 0 0; }
.timeline li + li { padding-left: 24px; border-left: 1px solid var(--rule); }
.timeline time { display: block; font-family: var(--serif); font-size: 26px; font-weight: 700; color: var(--oak-text); margin-bottom: 8px; }
.timeline b { display: block; font-size: 19px; margin-bottom: 4px; }
.timeline span { color: var(--sub); font-size: 16px; }

/* ── 목록 ── */
.list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; }
.list li { position: relative; padding: 22px 0 22px 26px; border-bottom: 1px solid var(--rule); }
.list li::before { content: ""; position: absolute; left: 0; top: 33px; width: 10px; height: 10px; background: var(--oak); }
.list li b { display: block; font-size: 19px; margin-bottom: 4px; }
.list li span { color: var(--sub); font-size: 17px; }
section.slate .list li { border-color: rgba(255,255,255,.14); }
section.slate .list li span { color: #b6c0c5; }

/* ── 진행 순서 ── */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.steps li { counter-increment: s; padding: 0 26px 0 0; }
.steps li + li { padding-left: 26px; border-left: 1px solid rgba(255,255,255,.16); }
.steps li::before { content: counter(s); display: block; font-family: var(--serif); font-size: 44px; font-weight: 700; color: var(--oak); line-height: 1; margin-bottom: 18px; }
.steps li b { display: block; font-size: 20px; margin-bottom: 8px; }
.steps li span { color: #b6c0c5; font-size: 16px; }
section:not(.slate) .steps li + li { border-color: var(--rule); }
section:not(.slate) .steps li span { color: var(--sub); }

/* ── 두 칸 글 + 사진 ── */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.duo .photo { aspect-ratio: 3 / 2; background: var(--concrete) center / cover no-repeat; margin-bottom: 22px; }
.duo h3 { font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.duo p { color: var(--sub); font-size: 17px; }
.duo p + p { margin-top: 10px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split .photo { aspect-ratio: 4 / 3; background: var(--concrete) center / cover no-repeat; }
.guide img { display: block; width: 100%; max-width: 520px; height: auto; margin: 0 auto; border-radius: 6px; box-shadow: 0 10px 30px rgba(23,32,38,.12); }

.note { margin-top: 40px; padding: 20px 24px; background: var(--plaster); border-left: 4px solid var(--oak); font-size: 17px; color: var(--sub); }
.note b { color: var(--ink); }
.warn { color: var(--red); font-weight: 800; }

/* ── 문의 ── */
.contact { background: var(--slate); color: #fff; padding: 88px 0; }
.contact .wrap { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; }
.contact h2 { font-family: var(--serif); font-size: 32px; font-weight: 700; }
.contact p { color: #b6c0c5; margin-top: 8px; }
.contact .tel { display: block; margin-top: 18px; font-size: 44px; font-weight: 800; letter-spacing: 0.5px; }
.contact .btns { margin-top: 0; }

/* ── 바닥 ── */
footer { background: #172026; color: #8d999f; padding: 40px 0 56px; font-size: 14px; line-height: 2; }
footer b { color: #fff; }
footer a { color: #d9b48f; }

/* ── 휴대폰 ── */
.mobile-nav { display: none; }

@media (max-width: 900px) {
  body { font-size: 17px; }
  .wrap { padding: 0 20px; }
  header .wrap { height: 60px; }
  .logo span { display: none; }
  nav a:not(.call) { display: none; }
  nav a.call { font-size: 14px; padding: 8px 12px; }
  .mobile-nav { display: flex; gap: 22px; overflow-x: auto; padding: 0 20px; height: 44px; align-items: center; border-top: 1px solid var(--rule); font-size: 15px; color: var(--sub); }
  .mobile-nav a { white-space: nowrap; }
  .mobile-nav a.on { color: var(--ink); font-weight: 700; box-shadow: inset 0 -2px 0 var(--oak); }

  .hero::before { background: linear-gradient(180deg, rgba(23,32,38,.7) 0%, rgba(23,32,38,.92) 70%); }
  .hero .wrap { padding-top: 48px; padding-bottom: 52px; }
  .hero h1 { font-size: 32px; }
  .hero p.lead { font-size: 17px; }
  /* 휴대폰: 첫 화면 버튼 2개를 가운데로, 같은 너비로 */
  .hero .btns { flex-direction: column; align-items: center; }
  .hero .btns .btn { width: 100%; max-width: 300px; text-align: center; }
  .page-head .wrap { grid-template-columns: 1fr; gap: 28px; padding-top: 44px; padding-bottom: 44px; }
  .page-head h1 { font-size: 29px; }
  .page-head p { font-size: 17px; }
  section { padding: 64px 0; }
  .head { margin-bottom: 32px; }
  .head h2 { font-size: 26px; }
  .works, .tiles, .duo, .split, .estimate, .list { grid-template-columns: 1fr; }
  .works { gap: 40px; }
  .estimate { gap: 32px; }
  .estimate > * { min-width: 0; }
  .timeline, .steps { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .timeline li:nth-child(3), .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .compare { font-size: 15px; }
  .compare th, .compare td { padding: 14px 10px; }
  .compare tbody th { width: 72px; }
  .sample { font-size: 15px; }
  .sample th, .sample td { padding: 12px 8px; }
  /* 휴대폰: 5칸 예시표가 화면보다 넓어 좌우로 밀리던 문제 → 머리글 줄바꿈 허용, 간격 축소 */
  .sample thead th { white-space: normal; font-size: 13px; line-height: 1.35; vertical-align: bottom; }
  .sample th, .sample td { padding: 11px 5px; }
  .sample td { font-size: 14px; }
  .tile div { left: 20px; right: 20px; bottom: 18px; }
  .contact .wrap { grid-template-columns: 1fr; }
  .contact .tel { font-size: 34px; }
  /* 아래에 떠 있던 전화 상담 버튼은 삭제(사용자 요청, 위 머리 전화번호 버튼으로 충분). 넷리파이 표시에 가리지 않게 여백만 둠 */
  footer { padding-bottom: 90px; }
}
