/* building-approval.css — 사무실이전철거 관리사무소협의 (slug: building-approval) — page-specific, not shared */

:root{
  --h: 158;
  --bg:      hsl(var(--h) 12% 95%);
  --surface: hsl(var(--h) 18% 99%);
  --ink:     hsl(var(--h) 28% 13%);
  --muted:   hsl(var(--h) 10% 40%);
  --accent:  hsl(var(--h) 60% 32%);
  --accent-2:hsl(var(--h) 55% 24%);
  --line:    hsl(var(--h) 14% 84%);
  --r: 14px;
}

*{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; }
body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:'Pretendard',-apple-system,BlinkMacSystemFont,'Apple SD Gothic Neo','Malgun Gothic',sans-serif;
  line-height:1.74;
  font-size:16px;
}
h1,h2,h3{
  font-family:'IBM Plex Sans KR','Noto Sans KR','Apple SD Gothic Neo','Malgun Gothic',sans-serif;
  font-weight:700;
  color:var(--ink);
  letter-spacing:-0.01em;
}
img{ max-width:100%; }
a{ color:var(--accent); }
:focus-visible{ outline:3px solid var(--accent); outline-offset:3px; }
.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

/* ---------- 헤더: 박스형 ---------- */
.hdr{
  max-width:1120px;
  margin:1.5rem auto 0;
  padding:0 1.25rem;
}
.hdr__inner{
  background:var(--surface);
  border:2px solid var(--accent);
  border-radius:var(--r);
  padding:1rem 1.5rem;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  flex-wrap:wrap;
  box-shadow:0 1px 0 var(--line);
}
.hdr__tag{
  color:var(--accent-2);
  font-weight:700;
  font-size:0.95rem;
  letter-spacing:0.02em;
}
.hdr__nav{ display:flex; gap:1.25rem; }
.hdr__nav a{
  color:var(--ink);
  text-decoration:none;
  font-size:0.95rem;
  font-weight:600;
  border-bottom:2px solid transparent;
  padding-bottom:2px;
}
.hdr__nav a:hover{ border-bottom-color:var(--accent); }

/* ---------- 히어로: 프레임 박스형(이중선) ---------- */
.hero{
  max-width:1120px;
  margin:2rem auto;
  padding:0 1.25rem;
}
.hero__frame{
  position:relative;
  background:var(--surface);
  border:4px double var(--accent);
  border-radius:var(--r);
  padding:3rem 2.75rem;
  outline:1px solid var(--line);
  outline-offset:8px;
}
.hero__eyebrow{
  font-size:0.85rem;
  font-weight:700;
  letter-spacing:0.06em;
  color:var(--accent-2);
  margin:0 0 0.9rem;
}
.hero__title{
  font-size:clamp(1.8rem,4.2vw,2.6rem);
  line-height:1.3;
  margin:0 0 1.1rem;
  color:var(--ink);
}
.hero__lead{
  font-size:1.05rem;
  max-width:56ch;
  margin:0 0 1.75rem;
  color:var(--muted);
}

/* ---------- CTA: 두 버튼 가로 ---------- */
.cta--dual{
  display:flex;
  gap:0.9rem;
  flex-wrap:wrap;
}
.cta__btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0.85rem 1.8rem;
  border:2px solid var(--accent);
  border-radius:999px;
  color:hsl(var(--h) 25% 99%);
  background:var(--accent);
  font-weight:700;
  font-size:0.98rem;
  text-decoration:none;
  transition:background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.cta__btn:hover{ background:var(--accent-2); border-color:var(--accent-2); }
.cta__btn--ghost{
  background:transparent;
  color:var(--accent-2);
}
.cta__btn--ghost:hover{ background:var(--accent); color:hsl(var(--h) 25% 99%); }
.cta--bottom{
  max-width:1120px;
  margin:3rem auto 4rem;
  padding:0 1.25rem;
  justify-content:center;
}

/* ---------- 본문 섹션 ---------- */
main{ max-width:1120px; margin:0 auto; }
.sec{ padding:2.75rem 1.25rem; border-top:1px solid var(--line); }
.sec h2{
  font-size:1.45rem;
  margin:0 0 1.1rem;
}
.sec p{ color:var(--ink); max-width:74ch; }
.sec p + p{ margin-top:1rem; }

.tbl-wrap{ overflow-x:auto; margin-top:1.25rem; }
.tbl{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  min-width:560px;
  border:1px solid var(--line);
  border-radius:var(--r);
  overflow:hidden;
}
.tbl caption{ text-align:left; }
.tbl th, .tbl td{
  border-bottom:1px solid var(--line);
  padding:0.8rem 0.95rem;
  text-align:left;
  font-size:0.95rem;
}
.tbl thead th{
  background:var(--accent);
  color:hsl(var(--h) 25% 99%);
  font-weight:700;
  border-bottom:none;
}
.tbl tbody th{ background:var(--surface); font-weight:700; }
.tbl tbody tr:last-child th, .tbl tbody tr:last-child td{ border-bottom:none; }

.steps{
  margin:1.25rem 0 0;
  padding-left:1.2rem;
  display:flex;
  flex-direction:column;
  gap:0.85rem;
  max-width:74ch;
}
.steps li{ padding-left:0.3rem; }
.steps strong{ color:var(--accent-2); }

.diagram{
  width:100%;
  max-width:700px;
  height:auto;
  margin-top:2rem;
  color:var(--accent-2);
}

/* ---------- 이미지 2장 ---------- */
.shot{ margin: 3rem auto; max-width: 1000px; padding:0 1.25rem; }
.shot__row{ display:flex; justify-content:center; align-items:stretch; gap:1rem; flex-wrap:nowrap; }
.shot__row img{ flex:1 1 0; min-width:0; width:100%; height:auto; display:block; object-fit:cover; border-radius: var(--r); border:1px solid var(--line); }
@media (max-width: 640px){ .shot__row{ flex-wrap:wrap; } .shot__row img{ flex:1 1 100%; } }

/* ---------- FAQ ---------- */
.sec--faq{ background:var(--surface); border-radius:var(--r); margin:0 1.25rem; border:1px solid var(--line); border-top:1px solid var(--line); }
.faq{
  padding:1.4rem 0;
  border-bottom:1px solid var(--line);
}
.faq:last-child{ border-bottom:none; }
.faq h3{
  font-size:1.06rem;
  margin:0 0 0.6rem;
}
.faq p{ margin:0; color:var(--muted); max-width:74ch; }

/* ---------- 푸터: 4단 그리드 ---------- */
.ftr{
  background:var(--ink);
  color:hsl(var(--h) 8% 88%);
  margin-top:1rem;
}
.ftr__inner{
  max-width:1120px;
  margin:0 auto;
  padding:2.75rem 1.25rem;
  display:grid;
  grid-template-columns:1.6fr 1fr 0.6fr;
  gap:2rem;
  align-items:start;
}
.ftr__biz{
  margin:0;
  font-size:0.92rem;
  line-height:1.9;
  color:hsl(var(--h) 8% 82%);
}
.ftr__biz a{ color:hsl(var(--h) 40% 78%); }
.ftr__nav{
  display:flex;
  flex-direction:column;
  gap:0.75rem;
}
.ftr__nav a{
  color:hsl(var(--h) 8% 88%);
  text-decoration:none;
  font-weight:600;
  font-size:0.95rem;
}
.ftr__nav a:hover{ text-decoration:underline; }
.ftr__deco{
  width:100%;
  height:100%;
  min-height:60px;
  border-left:2px double hsl(var(--h) 30% 40%);
}
.ftr__copy{
  grid-column:1 / -1;
  margin:1.5rem 0 0;
  font-size:0.82rem;
  color:hsl(var(--h) 6% 60%);
  border-top:1px solid hsl(var(--h) 10% 24%);
  padding-top:1.25rem;
}

/* ---------- 반응형 ---------- */
@media (max-width: 860px){
  .hero__frame{ padding:2.25rem 1.5rem; outline-offset:5px; }
  .ftr__inner{ grid-template-columns:1fr 1fr; }
  .ftr__deco{ display:none; }
}
@media (max-width: 375px){
  .hdr__inner{ padding:0.85rem 1.1rem; }
  .hero__frame{ padding:1.75rem 1.1rem; }
  .cta__btn{ width:100%; }
  .ftr__inner{ grid-template-columns:1fr; }
}

@media (prefers-reduced-motion: reduce){
  .cta__btn{ transition:none; }
}
