/* 하수구의 신 - 반응형 원페이지 사이트 스타일 */
:root {
  --gold: #f5a900;
  --gold-light: #ffd54a;
  --green: #163a1e;
  --green-2: #1f5c2e;
  --orange: #f5821f;
  --red: #e53935;
  --text: #222;
  --muted: #666;
  --line: #e7e2d6;
  --bg: #fffdf7;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Pretendard", "Malgun Gothic", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  word-break: keep-all;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--green);
  color: #fff;
  padding: 0 16px;
}
.site-header .header-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
}
.site-header .logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.15rem;
  color: #fff;
}
.site-header .logo img { width: 34px; height: 34px; border-radius: 50%; }
.site-header nav { display: flex; align-items: center; gap: 18px; }
.site-header nav a.nav-link { font-weight: 700; font-size: 0.92rem; color: #e9e2c8; }
.site-header nav a.nav-link:hover { color: #fff; }
.header-tel {
  background: linear-gradient(90deg, var(--red), #ff6f5e);
  color: #fff;
  padding: 9px 16px;
  border-radius: 22px;
  font-weight: 800;
  font-size: 0.92rem;
  white-space: nowrap;
}
.header-kakao {
  background: #fee500;
  color: #391b1b;
  padding: 9px 16px;
  border-radius: 22px;
  font-weight: 800;
  font-size: 0.92rem;
  white-space: nowrap;
}

/* ---------- masthead cta banner (godmain.jpg) ---------- */
.masthead {
  background: var(--gold);
  text-align: center;
  padding: 18px 16px 24px;
}
.masthead .masthead-inner {
  max-width: 480px;
  margin: 0 auto;
}
.masthead img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.18);
}
.masthead a.masthead-link { display: block; }

/* ---------- main hero (메인페이지 전용, 이미지 없이 카피 중심) ---------- */
.main-hero {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-2) 60%, #0f2913 100%);
  color: #fff;
  text-align: center;
  padding: 56px 16px 46px;
}
.main-hero .eyebrow {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  color: var(--gold-light);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 5px 14px;
  border-radius: 14px;
  margin-bottom: 18px;
}
.main-hero h1 {
  color: #fff;
  font-size: 2.1rem;
  line-height: 1.35;
  margin: 0 0 16px;
}
.main-hero h1 span { color: var(--gold-light); }
.main-hero p { color: #d9d9d9; font-size: 1.05rem; line-height: 1.7; margin: 0 0 28px; }
.main-hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 26px; }
.cta-btn-outline {
  display: inline-block;
  background: transparent;
  border: 2px solid rgba(255,255,255,0.5);
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 13px 28px;
  border-radius: 30px;
}
.cta-btn-outline:hover { border-color: var(--gold-light); color: var(--gold-light); }
.main-hero-badges {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 0;
  padding: 0;
}
.main-hero-badges li {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--gold-light);
  display: flex;
  align-items: center;
  gap: 6px;
}
.main-hero-badges li::before { content: "✔"; }
@media (max-width: 600px) {
  .main-hero h1 { font-size: 1.55rem; }
}

/* ---------- local hero (지역 페이지 상단 텍스트 배너) ---------- */
.local-hero {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-2) 100%);
  color: #fff;
  text-align: center;
  padding: 40px 16px 34px;
}
.local-hero .eyebrow {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  color: var(--gold-light);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 5px 14px;
  border-radius: 14px;
  margin-bottom: 14px;
}
.local-hero h1 {
  color: #fff;
  font-size: 1.7rem;
  margin: 0 0 12px;
}
.local-hero p { color: #d9d9d9; font-size: 1rem; margin: 0 0 20px; }
.local-hero .cta-btn { display: inline-block; }

/* ---------- breadcrumb ---------- */
.breadcrumb {
  max-width: 1080px;
  margin: 14px auto 0;
  padding: 0 20px;
  font-size: 0.82rem;
  color: var(--muted);
}
.breadcrumb a { color: var(--green-2); font-weight: 700; }

/* ---------- cta button (shared) ---------- */
.cta-btn {
  background: linear-gradient(90deg, var(--red), #ff6f5e);
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 15px 30px;
  border-radius: 30px;
  box-shadow: 0 6px 18px rgba(229,57,53,0.35);
}

/* ---------- hero grid (god1~god4) ---------- */
.hero-grid-section { padding: 44px 0 8px; }
.hero-grid-section .section-title {
  text-align: center;
  margin-bottom: 26px;
}
.hero-grid-section .section-title h2 {
  color: var(--green);
  font-size: 1.5rem;
  margin: 0 0 8px;
}
.hero-grid-section .section-title p { color: var(--muted); margin: 0; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.hero-grid a.hero-tile {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 22px rgba(0,0,0,0.12);
  transition: transform .15s ease;
}
.hero-grid a.hero-tile:hover { transform: translateY(-4px); }
.hero-grid img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 720px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* ---------- why-us checklist strip ---------- */
.why-strip {
  background: var(--green);
  color: #fff;
  padding: 30px 0;
  margin-top: 44px;
}
.why-strip ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 34px;
}
.why-strip li {
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.why-strip li::before {
  content: "✔";
  color: var(--gold-light);
  font-weight: 900;
}

/* ---------- service area teaser ---------- */
.area-teaser { padding: 54px 0; text-align: center; }
.area-teaser h2 { color: var(--green); font-size: 1.5rem; margin: 0 0 10px; }
.area-teaser p { color: var(--muted); margin: 0 0 26px; }
.area-teaser .sido-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.area-teaser .sido-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 30px;
  min-width: 150px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}
.area-teaser .sido-card .num { display: block; font-size: 1.6rem; font-weight: 900; color: var(--orange); }
.area-teaser .sido-card .name { font-weight: 700; color: var(--text); }
.area-teaser .more-btn {
  display: inline-block;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  padding: 14px 32px;
  border-radius: 26px;
}
.area-teaser .more-btn:hover { background: var(--green-2); }

/* ---------- area index page (지역목록) ---------- */
.area-index { padding: 40px 0 70px; }
.area-index .page-head { text-align: center; margin-bottom: 34px; }
.area-index .page-head h1 { color: var(--green); font-size: 1.6rem; margin: 0 0 10px; }
.area-index .page-head p { color: var(--muted); margin: 0; }

.sido-group { margin-bottom: 36px; }
.sido-group h2 {
  color: #fff;
  background: var(--green-2);
  display: inline-block;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 1.05rem;
  margin: 0 0 16px;
}
.region-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
}
.region-grid a {
  display: block;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 8px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text);
  transition: all .12s ease;
}
.region-grid a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--green);
}

/* ---------- local page body copy ---------- */
.local-body { padding: 40px 0; }
.local-body .info-box {
  background: #fff8e6;
  border-left: 5px solid var(--gold);
  border-radius: 10px;
  padding: 20px 22px;
  margin-bottom: 24px;
}
.local-body .info-box p { margin: 0; line-height: 1.8; }
.service-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 30px; }
.service-tags span {
  background: #eef3ec;
  color: var(--green-2);
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 0.85rem;
  font-weight: 700;
}
.local-cta { text-align: center; margin: 6px 0 40px; }

/* ---------- inquiry form ---------- */
.apply-form { max-width: 640px; margin: 0 auto; padding: 0 20px 20px; }
.apply-form-head {
  background: var(--green);
  color: #fff;
  border-radius: 14px 14px 0 0;
  padding: 20px;
  text-align: center;
}
.apply-form-head h2 { color: #fff; font-size: 1.15rem; margin: 0 0 4px; }
.apply-form-head p { color: #d9d9d9; margin: 0; font-size: 0.85rem; }
.apply-form-body {
  background: #fff;
  border: 1px solid var(--line);
  border-top: none;
  border-radius: 0 0 14px 14px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.apply-form-body label { display: block; font-weight: 700; font-size: 0.9rem; }
.apply-form-body .req { color: var(--red); }
.apply-form-body input[type=text],
.apply-form-body input[type=tel],
.apply-form-body textarea {
  width: 100%;
  margin-top: 6px;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
}
.apply-form-body textarea { min-height: 80px; resize: vertical; }
.apply-form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.apply-form-agree {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f5f7fa;
  padding: 12px;
  border-radius: 8px;
  font-size: 0.85rem;
}
.apply-form-agree input { width: auto; margin: 0; }
.apply-form-body button {
  background: linear-gradient(90deg, var(--orange), var(--gold-light));
  color: #2b1900;
  border: none;
  padding: 16px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 1.05rem;
  cursor: pointer;
}
.apply-form-body button:disabled { opacity: 0.6; cursor: not-allowed; }
.apply-form-status { margin: 0; text-align: center; font-size: 0.85rem; font-weight: 700; min-height: 1.2em; }
.apply-form-status.ok { color: #1e7e34; }
.apply-form-status.err { color: var(--red); }

/* ---------- footer ---------- */
.site-footer {
  background: #101c12;
  color: #9c9c9c;
  padding: 30px 16px 90px;
  font-size: 0.82rem;
  text-align: center;
  line-height: 1.8;
}
.site-footer strong { color: #d9d9d9; }
.site-footer .footer-links { margin-top: 10px; }
.site-footer .footer-links a { color: #cbb46a; font-weight: 700; margin: 0 8px; }

/* ---------- sticky bottom bar (전화 + 카톡) ---------- */
.sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  z-index: 200;
  box-shadow: 0 -4px 14px rgba(0,0,0,0.2);
}
.sticky-bar a {
  flex: 1 1 50%;
  text-align: center;
  padding: 15px 8px;
  font-weight: 800;
  font-size: 1.02rem;
}
.sticky-bar .sticky-tel { background: linear-gradient(90deg, var(--red), #ff6f5e); color: #fff; }
.sticky-bar .sticky-kakao { background: #fee500; color: #391b1b; }

@media (max-width: 600px) {
  .site-header .logo span.brand-text { display: none; }
  .site-header nav { gap: 8px; }
  .site-header nav a.nav-link { display: none; }
  .header-tel, .header-kakao { padding: 8px 12px; font-size: 0.82rem; }
  .local-hero h1 { font-size: 1.35rem; }
  .why-strip ul { gap: 12px 20px; }
}

/* ==================================================================
   동×키워드 정보 가이드 페이지 (area/{시도}-{시군구}/{동}-{키워드}.html)
   ================================================================== */

/* ---------- kw badges (지역·키워드 뱃지) ---------- */
.kw-badges { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0 0 16px; }
.kw-badges span {
  background: rgba(255,255,255,0.14);
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 5px 13px;
  border-radius: 14px;
}

/* ---------- 요약 박스(핵심요약) ---------- */
.summary-box {
  background: #fff;
  border: 2px solid var(--gold);
  border-radius: 12px;
  padding: 18px 20px;
  margin: 0 0 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px 18px;
}
.summary-box dt { font-size: 0.78rem; color: var(--muted); font-weight: 700; margin: 0; }
.summary-box dd { font-size: 0.98rem; color: var(--text); font-weight: 800; margin: 2px 0 0; }

/* ---------- 가이드 섹션 (원인/비용/예방 공통) ---------- */
.guide-section { margin: 0 0 30px; }
.guide-section h2 {
  color: var(--green);
  font-size: 1.25rem;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.guide-section h2 .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  font-size: 0.85rem;
}
.guide-section p { line-height: 1.85; margin: 0 0 10px; color: #333; }
.guide-section p.lead { color: var(--muted); font-weight: 700; margin-bottom: 12px; }

/* ---------- 해결 3단계 ---------- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 0 0 12px;
}
.process-steps li {
  list-style: none;
  background: #f4f8f4;
  border-radius: 12px;
  padding: 16px 14px;
  text-align: center;
}
.process-steps .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  margin-bottom: 8px;
}
.process-steps .step-title { font-weight: 800; color: var(--green); display: block; margin-bottom: 4px; }
.process-steps .step-desc { font-size: 0.85rem; color: var(--muted); }
@media (max-width: 620px) {
  .process-steps { grid-template-columns: 1fr; }
}

/* ---------- expert-signal 강조 박스 ---------- */
.expert-signal {
  background: #fdeeee;
  border-left: 5px solid var(--red);
  border-radius: 10px;
  padding: 16px 20px;
  margin: 0 0 30px;
}
.expert-signal strong { color: var(--red); }
.expert-signal p { margin: 6px 0 0; line-height: 1.8; }

/* ---------- 이미지 갤러리 스트립 ---------- */
.gallery-strip { margin: 0 0 30px; text-align: center; }
.gallery-strip h2 { color: var(--green); font-size: 1.1rem; margin: 0 0 12px; }
.gallery-strip .strip-scroll {
  display: flex;
  justify-content: center;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
}
.gallery-strip .strip-scroll img {
  width: 130px;
  height: 130px;
  object-fit: cover;
  border-radius: 10px;
  flex: 0 0 auto;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* ---------- FAQ 아코디언 (native details/summary) ---------- */
.faq-list { margin: 0 0 30px; }
.faq-list h2 { color: var(--green); font-size: 1.25rem; margin: 0 0 14px; }
.faq-list details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 10px;
  padding: 14px 18px;
}
.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--text);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before { content: "Q"; color: #fff; background: var(--orange); font-weight: 900; font-size: 0.78rem; width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.faq-list details p { margin: 10px 0 0 32px; line-height: 1.8; color: var(--muted); }

/* ---------- 관련 서비스(같은 동, 다른 키워드) 내부링크 ---------- */
.related-kw-nav { padding: 34px 0 50px; }
.related-kw-nav h2 { color: var(--green); font-size: 1.1rem; margin: 0 0 14px; text-align: center; }
.related-kw-nav .chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.related-kw-nav .chip-grid a {
  background: #eef3ec;
  color: var(--green-2);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 14px;
}
.related-kw-nav .chip-grid a:hover { background: var(--gold); color: #fff; }

/* ---------- 동 목록 그리드 (시군구 허브 페이지) ---------- */
.dong-list { padding: 10px 0 0; }
.dong-list h2 { color: var(--green); font-size: 1.15rem; margin: 30px 0 14px; }
