/* 기본 스타일 리셋 및 폰트 설정 */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Noto Sans KR', sans-serif; }
body { color: #333; line-height: 1.6; background-color: #f8f9fa; scroll-behavior: smooth; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* 헤더 & 네비게이션 */
header { position: fixed; top: 0; left: 0; width: 100%; background: #ffffff; box-shadow: 0 2px 10px rgba(0,0,0,0.1); z-index: 1000; display: flex; justify-content: space-between; align-items: center; padding: 15px 5%; }
.logo { font-size: 1.4rem; font-weight: 800; color: #0056b3; cursor: pointer; }
nav { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 0; }
nav a { margin-left: 20px; font-weight: 500; color: #555; }
nav a:hover, nav a.active { color: #0056b3; }
.btn-quote { background: #ff5722; color: #fff !important; padding: 10px 20px; border-radius: 5px; font-weight: bold; transition: background 0.3s; }
.btn-quote:hover { background: #e0471b; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; line-height: 1; color: #002855; cursor: pointer; padding: 4px 8px; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  header nav { display: none; position: absolute; top: 100%; left: 0; width: 100%; flex-direction: column; align-items: stretch; gap: 0; background: #fff; box-shadow: 0 10px 20px rgba(0,0,0,0.08); padding: 8px 5% 18px; }
  header nav.open { display: flex; }
  header nav a { margin-left: 0; padding: 12px 0; border-bottom: 1px solid #f1f5f9; }
  header nav a.btn-quote { margin-top: 10px; text-align: center; border-bottom: none; }
}

/* 히어로 영역 (메인 배너) */
.hero { height: 80vh; background: linear-gradient(rgba(0, 40, 85, 0), rgba(0, 40, 85, 0)), url('/images/drainsystem_14.jpg') no-repeat center/cover; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; color: #fff; padding: 0 20px; margin-top: 60px; }
.hero h1 { font-size: 3.5rem; font-weight: 900; margin-bottom: 20px; letter-spacing: -1px; text-shadow: 0 2px 12px rgba(0,0,0,0.65), 0 1px 3px rgba(0,0,0,0.8); }
.hero p { font-size: 1.25rem; margin-bottom: 40px; color: #f1f5f9; max-width: 600px; text-shadow: 0 2px 8px rgba(0,0,0,0.7); }
.hero-btns { display: flex; gap: 15px; flex-wrap: wrap; justify-content: center; }
.btn-main { padding: 15px 30px; font-size: 1.1rem; font-weight: bold; border-radius: 5px; transition: 0.3s; }
.btn-tel { background: #007bff; color: #fff; }
.btn-tel:hover { background: #0056b3; }
.btn-form { background: #fff; color: #002855; }
.btn-form:hover { background: #f1f5f9; }

/* 하위 페이지용 작은 히어로 */
.page-hero { margin-top: 60px; padding: 60px 10% 50px; background: linear-gradient(rgba(0, 40, 85, 0.9), rgba(0, 40, 85, 0.9)), url('https://images.unsplash.com/photo-1542013936693-8848e5744430?q=80&w=1920') no-repeat center/cover; color: #fff; text-align: center; }
.page-hero .breadcrumb { font-size: 0.85rem; color: #cbd5e1; margin-bottom: 18px; }
.page-hero .breadcrumb a { color: #9ec5ff; }
.page-hero .breadcrumb a:hover { text-decoration: underline; }
.page-hero h1 { font-size: 2.2rem; font-weight: 800; margin-bottom: 10px; }
.page-hero p { color: #cbd5e1; max-width: 640px; margin: 0 auto; }

/* 공통 섹션 스타일 */
section { padding: 80px 10%; }
.section-title { font-size: 2.2rem; font-weight: 700; text-align: center; margin-bottom: 50px; color: #002855; position: relative; }
.section-title::after { content: ''; display: block; width: 50px; height: 4px; background: #007bff; margin: 15px auto 0; }

/* 특징/특색 영역 */
.features { background: #fff; }
.feature-box { background: #f8f9fa; padding: 40px 30px; border-radius: 8px; border-top: 5px solid #007bff; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
.feature-box h3 { font-size: 1.3rem; margin-bottom: 15px; color: #1e293b; }

/* 전문 작업 내용 영역 */
.content-detail { background-color: #ffffff; line-height: 1.8; font-size: 1.05rem; color: #475569; }
.content-detail p { margin-bottom: 20px; text-align: justify; }
.content-detail .section-lead { max-width: 760px; margin: 0 auto 40px; text-align: center; font-size: 1.1rem; }
.content-detail .section-note { max-width: 760px; margin: 40px auto 0; text-align: center; }

.process-table-wrap { max-width: 980px; margin: 0 auto; overflow-x: auto; }
.process-table { width: 100%; border-collapse: collapse; background: #fff; }
.process-table th { background: #002855; color: #fff; font-size: 0.95rem; padding: 16px 20px; text-align: left; }
.process-table td { padding: 20px; border-bottom: 1px solid #e2e8f0; vertical-align: top; font-size: 0.95rem; color: #475569; text-align: left; }
.process-table tr:last-child td { border-bottom: none; }
.process-table .step-cell { color: #002855; font-weight: 700; white-space: nowrap; }
.process-table .step-num { display: block; font-size: 1.6rem; font-weight: 800; color: #007bff; line-height: 1.3; }
.process-table td ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.process-table td ul li { position: relative; padding-left: 20px; }
.process-table td ul li::before { content: '✓'; position: absolute; left: 0; color: #007bff; font-weight: 700; }
@media (max-width: 700px) {
  .process-table thead { display: none; }
  .process-table, .process-table tbody, .process-table tr, .process-table td { display: block; width: 100%; }
  .process-table tr { margin-bottom: 20px; border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden; }
  .process-table td { border-bottom: 1px solid #f1f5f9; }
  .process-table .step-cell { background: #f8f9fa; }
}

/* 갤러리 (시공사례) */
.gallery-section { background: #fff; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.gallery-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 768px) { .gallery-grid-4 { grid-template-columns: repeat(2, 1fr); } }

/* 지역 페이지 전용 시공사례 레이아웃 (대표 사진 + 썸네일 3장) */
.region-gallery figure { position: relative; overflow: hidden; border-radius: 8px; background: #e2e8f0; cursor: zoom-in; box-shadow: 0 4px 6px rgba(0,0,0,0.06); margin: 0; }
.region-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s; display: block; }
.region-gallery figure:hover img { transform: scale(1.05); }

/* Layout A (서울) — 배너 상단 + 썸네일 3장 하단 */
.region-gallery.layout-a { display: flex; flex-direction: column; gap: 14px; }
.region-gallery.layout-a .featured { border-radius: 10px; aspect-ratio: 21 / 9; }
.region-gallery.layout-a .thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.region-gallery.layout-a .thumbs figure { aspect-ratio: 4 / 3; }
@media (max-width: 600px) { .region-gallery.layout-a .thumbs { grid-template-columns: repeat(2, 1fr); } }

/* Layout B (인천) — 4장 가로 스트립 */
.region-gallery.layout-b { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.region-gallery.layout-b figure { aspect-ratio: 3 / 4; }
@media (max-width: 600px) { .region-gallery.layout-b { grid-template-columns: repeat(2, 1fr); } }

/* Layout C (경기) — 2x2 균등 그리드 */
.region-gallery.layout-c { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.region-gallery.layout-c figure { aspect-ratio: 4 / 3; }
@media (max-width: 480px) { .region-gallery.layout-c { grid-template-columns: 1fr; } }

/* Layout D (화성) — 대표 사진(좌, 세로 병합) + 썸네일 3장(우, 세로 배치) */
.region-gallery.layout-d { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: repeat(3, 1fr); gap: 14px; height: 400px; }
.region-gallery.layout-d figure:first-child { grid-row: 1 / 4; }
@media (max-width: 600px) {
  .region-gallery.layout-d { grid-template-columns: 1fr; grid-template-rows: 200px repeat(3, 100px); height: auto; }
  .region-gallery.layout-d figure:first-child { grid-row: 1 / 2; }
}

/* Layout E (수원) — 썸네일 3장 상단 + 배너 1장 하단 (레이아웃 A의 역순) */
.region-gallery.layout-e { display: flex; flex-direction: column-reverse; gap: 14px; }
.region-gallery.layout-e .featured { border-radius: 10px; aspect-ratio: 21 / 9; }
.region-gallery.layout-e .thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.region-gallery.layout-e .thumbs figure { aspect-ratio: 4 / 3; }
@media (max-width: 600px) { .region-gallery.layout-e .thumbs { grid-template-columns: repeat(2, 1fr); } }
.gallery-grid figure { position: relative; overflow: hidden; border-radius: 8px; aspect-ratio: 4 / 3; background: #e2e8f0; cursor: zoom-in; box-shadow: 0 4px 6px rgba(0,0,0,0.06); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s; }
.gallery-grid figure:hover img { transform: scale(1.06); }
.gallery-more { text-align: center; margin-top: 40px; }
.btn-outline { display: inline-block; padding: 14px 32px; border: 2px solid #007bff; color: #007bff; font-weight: bold; border-radius: 5px; transition: 0.3s; }
.btn-outline:hover { background: #007bff; color: #fff; }

.lightbox-overlay { display: none; position: fixed; inset: 0; background: rgba(0,10,25,0.92); z-index: 99999; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out; }
.lightbox-overlay.active { display: flex; }
.lightbox-overlay img { max-width: 92vw; max-height: 88vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.lightbox-close { position: absolute; top: 20px; right: 28px; color: #fff; font-size: 32px; cursor: pointer; line-height: 1; }

/* 사이트맵 페이지 */
.sitemap-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; background: #fff; }
.sitemap-col h3 { font-size: 1.1rem; color: #002855; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid #007bff; }
.sitemap-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.sitemap-col a { color: #475569; font-size: 0.95rem; transition: 0.3s; }
.sitemap-col a:hover { color: #007bff; }

/* 고객후기 */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; background: #fff; }
.review-card { background: #f8f9fa; border-radius: 10px; padding: 28px 26px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); display: flex; flex-direction: column; gap: 16px; }
.review-card .stars { color: #f5a623; font-size: 1.1rem; letter-spacing: 2px; }
.review-card p { color: #475569; line-height: 1.7; flex: 1; }
.review-card .who { display: flex; align-items: center; gap: 12px; }
.review-card .avatar { width: 40px; height: 40px; border-radius: 50%; background: #007bff; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.review-card .who strong { display: block; color: #1e293b; font-size: 0.95rem; }
.review-card .who span { display: block; color: #94a3b8; font-size: 0.8rem; }

/* 지역별 시공 안내 (홈 요약 카드) */
.seo-links { background: #fff; text-align: center; }
.seo-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; margin-top: 20px; }
.seo-card { background: #f1f5f9; padding: 12px 25px; border-radius: 30px; font-size: 0.95rem; font-weight: 500; color: #334155; border: 1px solid #e2e8f0; transition: 0.3s; }
.seo-card:hover { background: #007bff; color: #fff; border-color: #007bff; }

/* 서비스지역 허브 페이지 */
.regions-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.region-card { display: flex; flex-direction: column; gap: 10px; background: #f8f9fa; padding: 30px; border-radius: 10px; border-top: 5px solid #007bff; box-shadow: 0 4px 6px rgba(0,0,0,0.05); transition: 0.3s; }
.region-card:hover { transform: translateY(-4px); box-shadow: 0 10px 25px rgba(0,0,0,0.08); }
.region-card .tag { font-size: 0.8rem; font-weight: 700; color: #007bff; letter-spacing: 0.05em; }
.region-card h3 { color: #002855; font-size: 1.2rem; }
.region-card p { color: #64748b; font-size: 0.9rem; line-height: 1.6; flex: 1; }
.region-card .more { color: #007bff; font-weight: 600; font-size: 0.9rem; }

/* 지역 상세 페이지 */
.region-block { display: flex; flex-wrap: wrap; gap: 40px; background: #fff; align-items: flex-start; }
.region-visual { flex: 0 0 260px; background: linear-gradient(135deg, #002855, #0056b3); color: #fff; border-radius: 10px; padding: 40px 30px; }
.region-visual .num { font-size: 0.85rem; letter-spacing: 0.15em; color: #9ec5ff; font-weight: 700; }
.region-visual h3 { font-size: 1.7rem; font-weight: 800; margin-top: 14px; line-height: 1.4; }
.region-content { flex: 1; min-width: 280px; }
.region-content .keywords { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.region-content .keywords span { background: #edf2f7; color: #0056b3; font-size: 0.85rem; font-weight: 600; padding: 6px 14px; border-radius: 20px; }
.region-content p { color: #475569; margin-bottom: 14px; line-height: 1.8; }
.region-content .consult-block ul { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.region-content .consult-block ul li { position: relative; padding-left: 20px; color: #475569; font-size: 0.95rem; line-height: 1.6; }
.region-content .consult-block ul li::before { content: '✓'; position: absolute; left: 0; color: #007bff; font-weight: 700; }
.call-link { display: inline-block; margin-top: 16px; background: #007bff; color: #fff; padding: 14px 28px; border-radius: 5px; font-weight: bold; transition: 0.3s; }
.call-link:hover { background: #0056b3; }

.related-regions { background: #edf2f7; padding: 24px 10%; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.related-regions span.label { font-size: 0.85rem; font-weight: 700; color: #64748b; margin-right: 6px; }
.related-regions a { background: #fff; border: 1px solid #e2e8f0; padding: 8px 16px; border-radius: 20px; font-size: 0.85rem; color: #334155; transition: 0.3s; }
.related-regions a:hover { background: #007bff; color: #fff; border-color: #007bff; }

.cta-banner { background: linear-gradient(rgba(0, 40, 85, 0.92), rgba(0, 40, 85, 0.92)), url('https://images.unsplash.com/photo-1542013936693-8848e5744430?q=80&w=1920') no-repeat center/cover; color: #fff; text-align: center; }
.cta-banner h2 { font-size: 1.9rem; font-weight: 800; margin-bottom: 12px; }
.cta-banner p { color: #cbd5e1; margin-bottom: 26px; }
.cta-banner .btn-group { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }

/* 상담 안내 영역 (전화·문자 문의, 개인정보 미수집) */
.contact-section { background: #edf2f7; }
.consult-box { max-width: 720px; margin: 0 auto; text-align: center; }
.consult-lead { color: #475569; margin-bottom: 30px; font-size: 1.05rem; line-height: 1.8; }
.cta-box { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; margin-bottom: 10px; }
.btn-sms { background: transparent; border: 2px solid #002855; color: #002855; }
.btn-sms:hover { background: #002855; color: #fff; }
.consult-detail { text-align: left; margin-top: 40px; background: #fff; padding: 40px; border-radius: 10px; box-shadow: 0 10px 25px rgba(0,0,0,0.05); }
.consult-detail p { color: #475569; line-height: 1.8; margin-bottom: 16px; text-align: justify; }
.consult-detail p:last-child { margin-bottom: 0; }
.consult-block { margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid #edf2f7; }
.consult-block:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.consult-block h3 { color: #002855; font-size: 1.05rem; margin-bottom: 12px; }
.consult-block p:last-child { margin-bottom: 0; }
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 30px 0 40px; }
.quick-item { background: #f8f9fa; border-radius: 10px; padding: 22px 18px; text-align: center; border-top: 4px solid #007bff; }
.quick-item .ico { font-size: 26px; display: block; margin-bottom: 10px; }
.quick-item strong { display: block; color: #002855; font-size: 15px; margin-bottom: 6px; }
.quick-item span { display: block; color: #64748b; font-size: 13px; line-height: 1.6; }

/* 푸터 영역 (사업자 정보 기재) */
footer { background: #1e293b; color: #94a3b8; padding: 40px 5%; font-size: 0.9rem; border-top: 1px solid #334155; text-align: center; line-height: 2; }
.footer-info { max-width: 800px; margin: 0 auto; }
.footer-info span { margin: 0 10px; display: inline-block; }

@media (max-width: 768px) {
  .hero h1 { font-size: 2.4rem; }
  section { padding: 60px 6%; }
  .page-hero { padding: 50px 6% 40px; }
  .region-visual { flex: 1 1 100%; }
  .quick-grid { grid-template-columns: 1fr 1fr; }
  .consult-detail { padding: 26px 22px; }
}
