/* 가혼홈케어 — 로고의 짙은 초록 하나를 축으로, 나머지는 무채색. 카카오 버튼만 카카오 노랑. */
:root {
  --green: #0A532E;
  --green-ink: #083f23;
  --green-tint: #eef4f0;
  --ink: #1b1f1c;
  --ink-2: #4a524c;
  --line: #dfe3df;
  --bg: #ffffff;
  --bg-2: #f5f7f5;
  --kakao: #FEE500;
  --kakao-ink: #191600;
  --radius: 12px;
  --wrap: 1080px;
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; line-height: 1.7; font-size: 17px; word-break: keep-all; overflow-wrap: anywhere; padding-bottom: 76px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.35; letter-spacing: -0.01em; }
h1 { font-size: clamp(26px, 5vw, 38px); margin: 0 0 16px; }
h2 { font-size: clamp(21px, 3.4vw, 26px); margin: 48px 0 14px; }
h3 { font-size: 18px; margin: 28px 0 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 50; background: #fff; padding: 8px 12px; }

/* 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border-radius: 10px; font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap; }
.btn-kakao { background: var(--kakao); color: var(--kakao-ink); }
.btn-call { background: var(--green); color: #fff; }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #1f6feb; outline-offset: 2px; }
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* 머리글 */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(6px); }
.header-inner { display: flex; align-items: center; gap: 12px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--green); text-decoration: none; font-weight: 800; font-size: 19px; margin-right: auto; }
.brand-mark { display: inline-flex; width: 34px; height: 34px; border-radius: 8px; background: var(--green); color: #fff; align-items: center; justify-content: center; }
.brand-mark svg { width: 22px; height: 24px; }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; min-height: 44px; display: flex; align-items: center; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; font-weight: 600; font-size: 15px; }
.menu summary::-webkit-details-marker { display: none; }
.menu ul { position: absolute; right: 0; top: 52px; margin: 0; padding: 8px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 28px rgba(0,0,0,.10); min-width: 220px; }
.menu li a { display: block; padding: 10px 12px; color: var(--ink); text-decoration: none; border-radius: 8px; }
.menu li a:hover { background: var(--bg-2); }
.header-cta { display: none; }

/* 첫 화면 */
.hero { background: var(--green); color: #fff; padding: 44px 0 40px; }
.hero h1 { color: #fff; font-size: clamp(27px, 5.6vw, 44px); max-width: 18em; }
.hero .eyebrow { display: inline-block; margin: 0 0 14px; padding: 4px 12px; font-size: 14px; font-weight: 600; color: #fff; background: rgba(255,255,255,.14); border-radius: 999px; }
.hero .lede { font-size: 18px; color: #e6efe9; max-width: 34em; margin: 0 0 24px; }
.hero .btn-call { background: #fff; color: var(--green); }

/* 블록 */
.block { padding-top: 8px; padding-bottom: 8px; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.block-head a { font-size: 15px; white-space: nowrap; }
.lede { color: var(--ink-2); }

/* 서비스 카드 */
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.svc-card { display: flex; flex-direction: column; gap: 4px; padding: 0 0 14px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--ink); text-decoration: none; background: #fff; }
.svc-card:hover { border-color: var(--green); }
.svc-thumb { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--bg-2); }
.svc-card:not(:has(img))::before { content: ""; display: block; aspect-ratio: 4 / 3; background: var(--green-tint); }
.svc-title { font-weight: 700; padding: 8px 12px 0; }
.svc-line { font-size: 14px; color: var(--ink-2); padding: 0 12px; line-height: 1.5; }

/* 사례 카드 */
.case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 16px 0; }
.case-card { display: flex; flex-direction: column; color: var(--ink); text-decoration: none; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; padding-bottom: 12px; background: #fff; }
.case-card:hover { border-color: var(--green); }
.case-thumb { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--bg-2); }
.case-meta { font-size: 13px; color: var(--ink-2); padding: 10px 12px 0; }
.case-title { font-weight: 700; line-height: 1.45; padding: 2px 12px 0; font-size: 16px; }
.case-time { font-size: 13px; color: var(--green); font-weight: 600; padding: 4px 12px 0; }

/* 진행 방식 */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 10px; }
.steps li { counter-increment: s; display: flex; gap: 14px; align-items: flex-start; padding: 16px; background: var(--bg-2); border-radius: var(--radius); }
.steps li::before { content: counter(s); flex: 0 0 32px; height: 32px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.steps li strong { display: block; font-size: 17px; }
.steps li .step-desc { display: block; color: var(--ink-2); font-size: 15px; margin-top: 2px; }
.area-line { font-weight: 600; font-size: 18px; margin: 0 0 4px; }

/* 문의 상자 */
.inquiry { margin: 40px 0 24px; padding: 24px 20px; border-radius: var(--radius); background: var(--green-tint); border: 1px solid #cfe0d5; }
.inquiry h2 { margin-top: 0; }
.inquiry ol { padding-left: 20px; margin: 0 0 18px; }

/* 본문 */
.crumbs { font-size: 14px; color: var(--ink-2); padding-top: 16px; padding-bottom: 4px; }
.crumbs a { color: var(--ink-2); }
.prose { max-width: 760px; padding-top: 16px; }
.prose p, .prose li { color: var(--ink); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 4px; }
.prose .case-grid, .prose .inquiry { margin-left: 0; margin-right: 0; }
.service > p:first-of-type { font-size: 18px; }

.facts { width: 100%; border-collapse: collapse; margin: 8px 0 24px; font-size: 16px; }
.facts caption { text-align: left; font-weight: 700; padding-bottom: 6px; }
.facts th, .facts td { text-align: left; vertical-align: top; padding: 9px 0; border-bottom: 1px solid var(--line); }
.facts th { width: 6.5em; color: var(--ink-2); font-weight: 600; }

.gallery { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 24px 0; }
.gallery figure { margin: 0; }
.gallery img { border-radius: var(--radius); width: 100%; max-height: 80vh; object-fit: cover; }
.gallery figcaption { font-size: 15px; color: var(--ink-2); padding-top: 6px; }
.blog-link a { font-weight: 700; }

/* 꼬리말 */
.site-footer { margin-top: 48px; background: var(--bg-2); border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.footer-inner { padding-top: 28px; padding-bottom: 28px; }
.footer-inner p { margin: 0 0 6px; }
.footer-brand { font-weight: 700; color: var(--ink); }
.footer-inner a { color: var(--ink-2); }

/* 휴대폰 하단 고정 문의 */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); }

@media (min-width: 720px) {
  .svc-grid { grid-template-columns: repeat(3, 1fr); }
  .case-grid { grid-template-columns: repeat(3, 1fr); }
  .prose .case-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: 1fr 1fr; }
  .hero { padding: 72px 0 64px; }
}
@media (min-width: 960px) {
  body { padding-bottom: 0; }
  .sticky-cta { display: none; }
  .header-cta { display: inline-flex; }
  .menu ul { min-width: 240px; }
}

/* 서비스 작업 순서 (단계마다 사진 1장) */
.step-photos { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 14px; counter-reset: st; }
.step-photos li { counter-increment: st; display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: center; margin: 0; }
.step-photos img { width: 112px; height: 112px; object-fit: cover; border-radius: 10px; }
.step-photos h3 { margin: 0 0 2px; font-size: 17px; }
.step-photos h3::before { content: counter(st) ". "; color: var(--green); }
.step-photos p { margin: 0; font-size: 15px; color: var(--ink-2); line-height: 1.6; }

/* 주 메뉴: 휴대폰은 접어서, 넓은 화면은 펼쳐서 */
.nav-inline { display: none; list-style: none; margin: 0; padding: 0; gap: 4px; }
.nav-inline a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; border-radius: 8px; }
.nav-inline a:hover { background: var(--bg-2); }
@media (min-width: 960px) {
  .nav-inline { display: flex; }
  .main-nav .menu { display: none; }
}

/* 시공 사례 카테고리 버튼 */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 4px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; background: #fff; }
.chip span { color: var(--ink-2); font-weight: 500; }
.chip[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.chip[aria-pressed="true"] span { color: #cfe3d6; }
.filter-note { margin: 12px 0 0; font-size: 15px; }
.filter-note a { font-weight: 600; }
.case-card[hidden] { display: none; }
#services { scroll-margin-top: 72px; }

/* ── 섹션 구분 ───────────────────────────────── */
/* 홈: 섹션마다 전폭 띠, 번갈아 배경 */
.band { padding: 44px 0; }
.band + .band { border-top: 1px solid var(--line); }
.band-alt { background: var(--bg-2); }
.band h2 { margin-top: 0; }
.band .inquiry { margin: 0; }
.band-alt .case-card, .band-alt .svc-card { background: #fff; }

/* 본문 페이지: ## 마다 블록 하나, 위에 구분선 */
.prose .sec { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.prose .sec.sec-first { margin-top: 8px; padding-top: 0; border-top: 0; }
.prose .sec.sec-first + .sec { border-top: 0; margin-top: 0; padding-top: 16px; }
.prose .sec > h2:first-child, .prose .sec > .block-head:first-child h2 { margin-top: 0; }
.prose > .inquiry { margin-top: 48px; }
.block-head .count { font-size: 15px; color: var(--ink-2); font-weight: 600; white-space: nowrap; }

/* 지역 바로가기 */
.area-jump { margin: 20px 0 0; }
.region { scroll-margin-top: 76px; }

/* 사례 그리드 '더보기' 블록 — 4번째 자리 */
.case-grid.collapsed [data-extra] { display: none; }
.case-more { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 160px; border: 1.5px dashed #b9c9be; border-radius: var(--radius); background: var(--green-tint); color: var(--green); font: inherit; cursor: pointer; }
.case-more:hover { border-color: var(--green); background: #e3eee7; }
.case-more:focus-visible { outline: 3px solid #1f6feb; outline-offset: 2px; }
.case-more-label { font-weight: 800; font-size: 17px; }
.case-more-count { font-size: 14px; color: var(--ink-2); }
.case-more[hidden] { display: none; }

/* 접히는 그리드는 넓은 화면에서 4칸 → 3장 + 더보기가 한 줄 */
@media (min-width: 720px) {
  .case-grid.collapsible, .prose .case-grid.collapsible { grid-template-columns: repeat(4, 1fr); }
  .band { padding: 64px 0; }
}

/* 고객 후기 (숨고 인용) */
.rev-summary { margin: 0 0 18px; color: var(--ink-2); }
.rev-summary strong { color: var(--ink); }
.rev-summary span { font-size: 14px; }
.review-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .review-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .review-grid { grid-template-columns: repeat(3, 1fr); } }
.review { margin: 0; padding: 18px 18px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; display: flex; flex-direction: column; gap: 10px; }
.review blockquote { margin: 0; font-size: 16px; line-height: 1.7; }
.review blockquote::before { content: "“"; color: var(--green); font-weight: 700; margin-right: 2px; }
.review blockquote::after { content: "”"; color: var(--green); font-weight: 700; margin-left: 2px; }
.review figcaption { font-size: 14px; color: var(--ink-2); margin-top: auto; }
.rev-note { font-size: 13px; color: var(--ink-2); margin: 14px 0 0; }
.hero-badges { list-style: none; margin: -8px 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-badges li { font-size: 14px; font-weight: 600; color: #fff; border: 1px solid rgba(255,255,255,.45); border-radius: 999px; padding: 4px 12px; }
