@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css');

:root {
  --ink:      #1a1a1a;
  --gray:     #6b6b6b;
  --line:     #e6e6e6;
  --bg:       #ffffff;
  --offwhite: #f4f2ee;
  --tint:     #eef3f2;
  --accent:   #b4502a;
  --panel:    #1f3d3a;
  --space-1:  8px;
  --space-2:  16px;
  --space-3:  24px;
  --space-4:  40px;
  --space-5:  64px;
  --space-6:  96px;
  --maxw:     1140px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Pretendard", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 19px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, p, li, th, td { word-break: keep-all; overflow-wrap: break-word; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--space-3); }

.label {
  display: block;
  font-size: 18px;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 600;
}

/* 버튼 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 var(--space-4);
  background: var(--ink);
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  border-radius: 4px;
  letter-spacing: 0.01em;
  transition: background 0.2s ease;
  white-space: nowrap;
}
.btn:hover { background: #000; }
.btn--accent { background: var(--accent); }
.btn--accent:hover { background: #9a4123; }
.btn--line {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn--line:hover { background: var(--ink); color: #fff; }

/* 헤더 */
header.site {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
  border-top: 3px solid var(--panel);
  z-index: 50;
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand-dot {
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 2px;
  display: inline-block;
  flex-shrink: 0;
}
.site-nav { display: flex; gap: var(--space-3); }
.site-nav a {
  font-size: 16px;
  font-weight: 500;
  color: var(--gray);
  transition: color 0.2s;
}
.site-nav a:hover { color: var(--ink); }
.site-tel { font-size: 18px; font-weight: 600; white-space: nowrap; }
.site-tel small { color: var(--gray); font-weight: 500; margin-right: 6px; letter-spacing: 0.04em; }

/* 히어로 */
.hero {
  padding: var(--space-6) 0 var(--space-5);
  background: var(--offwhite);
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-5);
  align-items: center;
}
.hero h1 {
  font-size: clamp(44px, 5.8vw, 76px);
  line-height: 1.12;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin: var(--space-2) 0 var(--space-3);
}
.hero p.lead {
  font-size: 21px;
  color: var(--gray);
  max-width: 26em;
  margin-bottom: var(--space-4);
}
.hero-actions { display: flex; gap: var(--space-2); flex-wrap: wrap; }

/* 히어로 사진 영역 */
.hero-figure {
  position: relative;
  padding-bottom: 64px;
}
.hero-figure::before {
  content: "";
  position: absolute;
  right: -20px;
  bottom: 0;
  width: 78%;
  height: 55%;
  background: var(--panel);
  border-radius: 6px;
  z-index: 0;
}
.hero-photo {
  position: relative;
  z-index: 1;
  aspect-ratio: 4 / 5;
  background: var(--offwhite);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.5s ease, opacity 0.4s ease;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-photo.rolling { transform: translateY(-24px); opacity: 0; }

.hero-thumb {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  width: 42%;
  aspect-ratio: 4 / 3;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  transition: transform 0.5s ease;
}
.hero-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-thumb.rolling { transform: translateY(-40px); }

/* 섹션 공통 */
section.block { padding: var(--space-6) 0; border-top: 1px solid var(--line); }
section.block--tint { background: var(--tint); }
section.block--soft { background: var(--offwhite); }
section[id] { scroll-margin-top: 80px; }
.sec-head { margin-bottom: var(--space-4); }
.sec-head h2 {
  font-size: clamp(32px, 4vw, 44px);
  letter-spacing: -0.025em;
  font-weight: 700;
  margin-top: var(--space-1);
}

/* 전/후 */
.case-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); margin-bottom: var(--space-2); }
.ph {
  aspect-ratio: 4 / 3;
  background: var(--offwhite);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: var(--space-2);
}
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph .tag {
  position: relative;
  z-index: 1;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
  background: #fff;
  padding: 2px 8px;
  border-radius: 3px;
}
.case-cap { font-size: 14px; color: var(--gray); }

/* 현장 사진 갤러리 (3열 그리드) */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
}
.gphoto {
  aspect-ratio: 4 / 3;
  background: var(--offwhite);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: var(--space-2);
}
.gphoto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gphoto .cap {
  position: relative;
  z-index: 1;
  background: #fff;
  color: var(--gray);
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 3px;
}

/* 서비스 */
.service-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--space-5);
  align-items: start;
}
.service-grid p { font-size: 19px; margin-bottom: var(--space-2); }
.service-table { width: 100%; border-collapse: collapse; }
.service-table th,
.service-table td {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}
.service-table tr:first-child th,
.service-table tr:first-child td {
  border-top: 2px solid var(--ink);
  padding-top: 12px;
}
.service-table tr:last-child th,
.service-table tr:last-child td {
  border-bottom: 2px solid var(--ink);
}
.service-table th {
  font-size: 18px;
  font-weight: 600;
  width: 50%;
}
.service-table td {
  font-size: 16px;
  color: var(--gray);
  text-align: right;
}

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
  padding: var(--space-3) 0;
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
}
.faq-q .mark { color: var(--accent); font-weight: 400; transition: transform 0.2s; flex-shrink: 0; }
.faq-item.open .faq-q .mark { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  color: var(--gray);
  font-size: 18px;
}
.faq-a div { padding: 0 0 var(--space-3); max-width: 46em; }

/* 출장 지역 */
.region-tabs { display: flex; gap: var(--space-1); margin-bottom: var(--space-3); flex-wrap: wrap; }
.rtab {
  padding: 8px 20px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  color: var(--gray);
  transition: all 0.15s;
}
.rtab.active, .rtab:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.region-grid { display: none; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: var(--space-1); }
.region-grid.active { display: grid; }
.region-grid a {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 15px;
  color: var(--gray);
  background: #fff;
  text-align: center;
  transition: all 0.15s;
  display: block;
}
.region-grid a:hover { border-color: var(--ink); color: var(--ink); }
.region-grid a.current { border-color: var(--accent); color: var(--accent); font-weight: 600; }

/* 푸터 */
footer.site {
  border-top: none;
  background: var(--panel);
  color: #e8eceb;
  padding: var(--space-6) 0 var(--space-4);
}
footer.site .label { color: #8fb5ae; }
footer.site h2 { color: #fff; }
footer.site .btn--line { border-color: rgba(255,255,255,0.5); color: #fff; }
footer.site .btn--line:hover { background: #fff; color: var(--panel); }
.foot-meta {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 14px;
  color: #a8bdb9;
  line-height: 1.9;
}
.foot-meta strong { color: #fff; font-weight: 600; }
.foot-meta a:hover { color: #fff; }
.foot-cta { margin-bottom: var(--space-5); }
.foot-cta h2 { font-size: clamp(28px, 3.5vw, 38px); letter-spacing: -0.025em; margin: var(--space-1) 0 var(--space-3); }
.foot-actions { display: flex; gap: var(--space-2); flex-wrap: wrap; }

/* 플로팅 전화 */
.float-tel {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 100;
}
.float-tel a {
  display: flex;
  align-items: center;
  background: var(--accent);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  padding: 14px 22px;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  transition: background 0.2s;
}
.float-tel a:hover { background: #9a4123; }

/* 반응형 */
@media (max-width: 820px) {
  body { font-size: 18px; }
  .hero { padding: var(--space-5) 0; }
  .hero-grid { grid-template-columns: 1fr; gap: var(--space-4); }
  .hero h1 { font-size: clamp(44px, 11vw, 52px); }
  .hero p.lead { font-size: 18px; }
  .hero-figure { order: -1; padding-bottom: 56px; }
  .hero-photo { aspect-ratio: 16 / 11; }
  .hero-figure::before { right: -12px; }
  .sec-head h2 { font-size: clamp(30px, 8vw, 36px); }
  .faq-q { font-size: 19px; }
  .foot-cta h2 { font-size: 28px; }
  .service-grid { grid-template-columns: 1fr; gap: var(--space-3); }
  section.block { padding: var(--space-5) 0; }
  .site-tel small { display: none; }
  .site-nav { display: none; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .gallery-grid { grid-template-columns: 1fr; }
}