/* 가벽공사 사이트 공통 디자인 시스템 */
:root {
  --white: #ffffff;
  --charcoal: #1c1c1e;
  --deep-gray: #3a3a3c;
  --gray-700: #4b4b4d;
  --gray-500: #7c7c80;
  --gray-300: #d4d4d8;
  --gray-100: #f4f4f5;
  --wood: #a97c50;
  --wood-dark: #8a5f3a;
  --radius: 10px;
  --maxw: 1200px;
  --shadow: 0 8px 24px rgba(0,0,0,.08);
  font-size: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Noto Sans KR", sans-serif;
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--charcoal); color: #fff;
  padding: 10px 16px; z-index: 200;
}
.skip-link:focus { left: 10px; top: 10px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96);
  backdrop-filter: blur(6px); border-bottom: 1px solid var(--gray-100);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; }
.site-nav { display: flex; gap: 28px; font-weight: 600; font-size: .95rem; }
.site-nav a:hover { color: var(--wood-dark); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--charcoal); display: block; }

@media (max-width: 767px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed; inset: 64px 0 auto 0; background: #fff; flex-direction: column;
    gap: 0; padding: 8px 20px 16px; box-shadow: var(--shadow);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: .2s;
  }
  .site-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--gray-100); }
}

/* Breadcrumb */
.breadcrumb { padding: 14px 20px; font-size: .85rem; color: var(--gray-500); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumb li:not(:last-child)::after { content: '/'; margin-left: 6px; color: var(--gray-300); }
.breadcrumb a:hover { color: var(--wood-dark); }

/* Hero (shared base, page-specific hero-N variants extend) */
.hero { position: relative; color: #fff; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28,28,30,.55), rgba(28,28,30,.78)); }
.hero-content { position: relative; z-index: 1; padding: 96px 20px 72px; max-width: var(--maxw); margin: 0 auto; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -.02em; margin: 0 0 18px; }
.hero .lede { font-size: 1.1rem; max-width: 640px; margin: 0 0 28px; opacity: .95; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.btn { display: inline-block; padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: .95rem; transition: .2s; border: 2px solid transparent; }
.btn-primary { background: var(--wood); color: #fff; }
.btn-primary:hover { background: var(--wood-dark); }
.btn-outline { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-dark { border-color: var(--charcoal); color: var(--charcoal); }
.btn-dark:hover { background: var(--charcoal); color: #fff; }

/* Split hero variant */
.hero-split { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; color: var(--charcoal); }
.hero-split .hero-text { padding: 80px 40px; display: flex; flex-direction: column; justify-content: center; background: var(--gray-100); }
.hero-split .hero-photo { min-height: 320px; }
.hero-split .hero-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .hero-split { grid-template-columns: 1fr; } .hero-split .hero-text { padding: 56px 24px; } .hero-split.reverse .hero-text, .hero-split.reverse .hero-photo { order: unset; } }
.hero-split.reverse .hero-text { order: 2; }
.hero-split.reverse .hero-photo { order: 1; }
.hero-split.compact .hero-text { padding: 56px 40px; }
.hero-split.compact .hero-photo { min-height: 260px; }

/* 이미지 카드형 히어로 */
.hero-card { background: linear-gradient(135deg, var(--charcoal), var(--deep-gray)); color: #fff; padding: 84px 20px; }
.hero-card .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: center; }
.hero-card .hero-photo-card { border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); transform: rotate(-1deg); }
.hero-card .hero-photo-card img { width: 100%; height: 320px; object-fit: cover; }
.hero-card-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: center; }
.hero-card-photo img { width: 100%; height: 320px; object-fit: cover; border-radius: 16px; box-shadow: var(--shadow); }
@media (max-width: 900px) { .hero-card .container { grid-template-columns: 1fr; } .hero-card-inner { grid-template-columns: 1fr; } }

/* Dark portfolio hero variant */
.hero-dark { background: var(--charcoal); color: #fff; padding: 88px 20px; }
.hero-dark .container { max-width: var(--maxw); }

/* Minimal white hero variant */
.hero-minimal { background: #fff; color: var(--charcoal); padding: 90px 20px 50px; border-bottom: 1px solid var(--gray-100); }

section { padding: 64px 0; }
.section-alt { background: var(--gray-100); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -.02em; margin: 0 0 12px; }
h2 + .section-sub { color: var(--gray-500); margin: 0 0 32px; max-width: 640px; }

/* Prose content */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { margin-top: 40px; }
.prose h3 { margin-top: 28px; font-size: 1.15rem; }
.prose p { margin: 0 0 16px; color: var(--deep-gray); }
.prose ul, .prose ol { color: var(--deep-gray); padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: .95rem; }
.prose table th, .prose table td { border: 1px solid var(--gray-300); padding: 10px 12px; text-align: left; }
.prose table th { background: var(--gray-100); }
.page-updated { font-size: .8rem; color: var(--gray-500); margin-top: 24px; }

/* Carousel (native scroll-snap, touch swipe built-in) */
.carousel { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 20px 20px; margin: 0 -20px; -webkit-overflow-scrolling: touch; }
.carousel::-webkit-scrollbar { height: 6px; }
.carousel::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 3px; }
.carousel-card { scroll-snap-align: start; flex: 0 0 300px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: transform .2s; }
.carousel-card:hover { transform: translateY(-4px); }
.carousel-card img { height: 190px; object-fit: cover; }
.carousel-card .cc-body { padding: 18px; }
.carousel-card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.carousel-card p { color: var(--gray-500); font-size: .9rem; margin: 0 0 10px; }
.carousel-card .point { font-size: .78rem; color: var(--wood-dark); font-weight: 700; margin-bottom: 10px; }
.carousel-card .more { font-weight: 700; font-size: .88rem; }
@media (min-width: 900px) { .carousel { display: grid; grid-template-columns: repeat(3, 1fr); overflow: visible; margin: 0; padding: 0; } .carousel-card { flex: unset; } }

/* Grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 900px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .grid-2, .grid-4 { grid-template-columns: 1fr; } }

/* Before/After card */
.ba-card { background: #fff; border: 1px solid var(--gray-100); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.ba-num { font-weight: 800; color: var(--wood-dark); font-size: .9rem; margin-bottom: 10px; }
.ba-images { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ba-images img { border-radius: 8px; aspect-ratio: 4 / 3; height: auto; object-fit: cover; width: 100%; }
body.home #photos .grid-2 { grid-template-columns: repeat(2, 1fr); align-items: stretch; }
body.home #photos .ba-card { display: flex; flex-direction: column; padding: 14px; }
body.home #photos .ba-images img { aspect-ratio: 3 / 4; }
body.home #photos .ba-card p { flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 560px) { body.home #photos .grid-2 { grid-template-columns: 1fr; } }
.ba-images figcaption { text-align: center; font-size: .75rem; font-weight: 700; color: var(--gray-500); margin-top: 6px; letter-spacing: .05em; }
.ba-card h3 { margin: 16px 0 6px; font-size: 1.1rem; }
.ba-card p { margin: 0; color: var(--gray-500); font-size: .92rem; }
@media (max-width: 560px) { .ba-images { gap: 8px; } }

/* Photo grid (4 photos on detail pages) */
.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.photo-grid-item img { height: 190px; object-fit: cover; border-radius: var(--radius); }
.photo-grid-item figcaption { font-size: .78rem; color: var(--gray-500); margin-top: 6px; }
@media (max-width: 900px) { .photo-grid { grid-template-columns: repeat(2, 1fr); } }

/* Service / content cards */
.svc-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.svc-card img { height: 160px; object-fit: cover; }
.svc-card .body { padding: 16px; }
.svc-card h3 { margin: 0 0 6px; font-size: 1rem; }
.svc-card p { color: var(--gray-500); font-size: .88rem; margin: 0 0 10px; }
.svc-card .more { font-weight: 700; font-size: .85rem; color: var(--wood-dark); }

.more-btn-row { text-align: center; margin-top: 28px; }

/* Process steps */
.process-steps { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0; }
.process-steps li { display: flex; align-items: center; gap: 10px; padding: 10px 18px 10px 0; font-weight: 600; }
.process-steps li:not(:last-child)::after { content: '→'; margin-left: 18px; color: var(--gray-300); font-weight: 400; }
.step-num { width: 28px; height: 28px; border-radius: 50%; background: var(--charcoal); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; }

/* Vertical timeline variant */
.timeline { position: relative; padding-left: 28px; border-left: 2px solid var(--gray-300); }
.timeline li { margin-bottom: 22px; list-style: none; position: relative; }
.timeline li::before { content: ''; position: absolute; left: -35px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--wood); }

/* FAQ (native details/summary, no JS) */
.faq-block { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--gray-100); padding: 16px 0; }
.faq-item summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font-size: 1rem; font-weight: 700; margin: 0; }
.faq-item summary::after { content: '+'; font-weight: 400; color: var(--gray-500); }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { margin: 10px 0 0; color: var(--gray-500); }

/* CTA */
.cta-block { background: var(--charcoal); color: #fff; }
.cta-inner { text-align: center; max-width: 640px; margin: 0 auto; }
.cta-inner h2 { color: #fff; }
.cta-inner p { color: rgba(255,255,255,.75); margin-bottom: 28px; }

/* Related links */
.related-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.related-card { background: #fff; border: 1px solid var(--gray-100); border-radius: var(--radius); padding: 16px; transition: .2s; }
.related-card:hover { border-color: var(--wood); transform: translateY(-2px); }
.related-card h3 { font-size: .92rem; margin: 0 0 6px; }
.related-card p { font-size: .8rem; color: var(--gray-500); margin: 0; }
@media (max-width: 900px) { .related-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .related-grid { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--gray-100); padding: 20px 0; }
.footer-inner { text-align: center; }
.footer-nap { font-size: .82rem; color: var(--gray-500); margin: 0 0 6px; }
.footer-copy { font-size: .76rem; color: var(--gray-300); margin: 0; }

/* Fade-up scroll reveal */
.fade-up { opacity: 0; transform: translateY(18px); transition: opacity .5s, transform .5s; }
.fade-up.visible { opacity: 1; transform: none; }

/* Counter numbers */
.stat-row { display: flex; gap: 40px; flex-wrap: wrap; }
.stat-num { font-size: 2.2rem; font-weight: 800; color: var(--wood-dark); }
.stat-label { font-size: .85rem; color: var(--gray-500); }

/* ===== service-content 4개 페이지 개별 디자인 + 확대 현장사진 ===== */

/* 가벽공사 비용: 우드 톤, 세리프 헤딩, 2x2 대형 사진 */
body.sc-cost h1, body.sc-cost .prose h2 { font-family: Georgia, 'Noto Serif KR', serif; color: var(--wood-dark); }
body.sc-cost .prose h2 { border-bottom: 3px solid var(--wood); padding-bottom: 10px; }
body.sc-cost table th { background: var(--wood-dark); }
body.sc-cost .photo-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
body.sc-cost .photo-grid-item img { height: 360px; }

/* 홈페이지: 히어로 세로폭 확대 + 오버레이 불투명 0% */
body.home .hero { min-height: 82vh; display: flex; align-items: center; }
body.home .hero-content { padding: 60px 20px; text-shadow: 0 2px 10px rgba(0,0,0,.6); }
body.home .hero-media::after { background: transparent; }

/* 가벽공사 견적: 블루 톤, 라운드 카드, 4열 확대 사진 */
body.sc-estimate .hero-card { background: linear-gradient(135deg, #eaf3fa, #d3e6f2); color: var(--charcoal); padding: 24px 20px; }
body.sc-estimate .hero-card .lede { color: var(--gray-700) !important; }
body.sc-estimate .hero-card-photo img { height: 200px; object-fit: cover; border-radius: 16px; }
body.sc-estimate .hero-card-photo { order: 2; }
body.sc-estimate .hero-card-text { order: 1; }
body.sc-estimate h1, body.sc-estimate .prose h2 { color: #1d5f8a; }
body.sc-estimate .timeline li { border-left: 3px solid #2b7fb8; padding-left: 16px; margin-bottom: 12px; }
body.sc-estimate table th { background: #1d5f8a; }
body.sc-estimate .photo-grid-item img { height: 270px; border-radius: 16px; }
body.sc-estimate .photo-grid-item { text-align: center; }

/* 가벽공사 시공: 다크·industrial, 모노스페이스 헤딩, 2x2 대형 사진 */
body.sc-construction h2, body.sc-construction h3 { font-family: 'Courier New', monospace; letter-spacing: -.02em; }
body.sc-construction .prose h2 { border-left: 4px solid #d97706; padding-left: 12px; }
body.sc-construction table th { background: #d97706; color: #1c1c1e; }
body.sc-construction .photo-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
body.sc-construction .photo-grid-item img { height: 340px; }

/* 가벽공사 자재: 그린 톤, 카드 상단 라인, 4열 확대 사진 */
body.sc-materials h1, body.sc-materials .prose h2 { color: #2f6b4f; }
body.sc-materials .svc-card { border-top: 4px solid #3f8a63; }
body.sc-materials table th { background: #2f6b4f; }
body.sc-materials .photo-grid-item img { height: 260px; }

/* ===== local-service 4개 페이지 개별 디자인 + 확대 현장사진 ===== */

/* 서울: 다크 차콜 톤, 볼드 헤딩, 2x2 대형 사진 */
body.ls-seoul h1, body.ls-seoul .prose h2 { color: var(--charcoal); font-weight: 800; letter-spacing: -.01em; }
body.ls-seoul table th { background: var(--charcoal); }
body.ls-seoul .photo-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
body.ls-seoul .photo-grid-item img { height: 340px; }

/* 인천: 네이비·틸 톤, 4열 확대 사진 */
body.ls-incheon h1, body.ls-incheon .prose h2 { color: #0f5c66; }
body.ls-incheon table th { background: #0f5c66; }
body.ls-incheon .photo-grid-item img { height: 270px; }

/* 경기: 골드·앰버 톤, 2x2 대형 사진 */
body.ls-gyeonggi h1, body.ls-gyeonggi .prose h2 { color: #a15c1f; }
body.ls-gyeonggi .hero-card h1 { color: #fff; }
body.ls-gyeonggi .hero-card-text .lede { color: rgba(255,255,255,.85) !important; }
body.ls-gyeonggi table th { background: #a15c1f; }
body.ls-gyeonggi .svc-card { border-top: 4px solid #c47a2f; }
body.ls-gyeonggi .photo-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
body.ls-gyeonggi .photo-grid-item img { height: 340px; }

/* 화성: 그린 톤, 4열 확대 사진 */
body.ls-hwaseong h1, body.ls-hwaseong .prose h2 { color: #2f6b4f; }
body.ls-hwaseong table th { background: #2f6b4f; }
body.ls-hwaseong .photo-grid-item img { height: 270px; }

/* 지역서비스 목록 페이지: 다른 인덱스 페이지와 구분되는 히어로 */
body.ls-index .hero-minimal { background: linear-gradient(135deg, #eef2f7, #dbe4f0); border-bottom: none; }
body.ls-index .hero-minimal h1 { color: #1d3a5f; }

/* 서비스내용 목록 페이지: 다른 인덱스 페이지와 구분되는 히어로 */
body.sc-index .hero-minimal { background: linear-gradient(135deg, #fdf3e7, #f5e2c8); border-bottom: none; }
body.sc-index .hero-minimal h1 { color: #8a5a1f; }
