/* ============================================
   뉴월드 — 배관·설비 접수/연계 네트워크 디자인 시스템
   Palette: Deep Teal #0F766E / Slate #475569 / Coral #FF6B4A
            Violet(accent) #7C3AED / Mist #F0FDFA / Emerald(trust) #059669
   Font: Pretendard
   Concept: "네트워크로 연결된다"는 느낌 — 각지고 딱딱한 파이프 라인 대신
   둥근 노드·연결선 모티프, 어두운 히어로 배경으로 고고고설비(밝은 하늘색/파이프 톤)와 구분
   ============================================ */

@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable.css');

:root {
  --ink: #0F766E;
  --ink-soft: #14B8A6;
  --navy: #0B1B1E;
  --steel: #5B6B6E;
  --steel-line: #2DD4BF;
  --amber: #FF6B4A;
  --amber-bright: #FF8B6E;
  --copper: #7C3AED;
  --bone: #F0FDFA;
  --bone-dim: #D9F2EC;
  --teal: #059669;
  --teal-bright: #34D399;
  --danger: #E11D48;
  --radius: 14px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Pretendard Variable', Pretendard, -apple-system, sans-serif;
  background: #fff;
  color: var(--navy);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .display {
  font-family: 'Pretendard Variable', Pretendard, sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.35;
  margin: 0;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--copper);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--copper);
  display: inline-block;
}

/* ---------- 상단 긴급 바 ---------- */
.hotbar {
  background: var(--danger);
  color: #fff;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 12px;
  letter-spacing: 0.02em;
}
.hotbar strong { text-decoration: underline; }

/* ---------- 헤더 ---------- */
header.site {
  background: #fff;
  color: var(--navy);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--bone-dim);
  box-shadow: 0 2px 12px rgba(15,118,110,0.08);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  max-width: var(--max);
  margin: 0 auto;
}
.brand {
  font-family: 'Pretendard Variable', sans-serif;
  font-weight: 800;
  font-size: 27px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.brand small {
  font-family: 'Pretendard Variable', sans-serif;
  font-size: 13.5px;
  color: var(--copper);
  font-weight: 700;
}
.nav-links { display: flex; gap: 30px; font-size: 16px; font-weight: 600; }
.nav-links a { opacity: 0.8; }
.nav-links a:hover { opacity: 1; color: var(--ink); }
.nav-call {
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 15.5px;
  white-space: nowrap;
}
.nav-menu-toggle { display: none; }

/* ---------- 히어로 (어두운 네트워크 배경) ---------- */
.hero {
  background:
    radial-gradient(circle at 12% 20%, rgba(124,58,237,0.35), transparent 40%),
    radial-gradient(circle at 85% 0%, rgba(45,212,191,0.25), transparent 50%),
    linear-gradient(180deg, #0B1B1E 0%, #0F2A28 100%);
  color: #fff;
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  position: relative;
}
.hero h1 {
  font-size: 46px;
  margin-bottom: 18px;
  color: #fff;
}
.hero h1 .hl { color: var(--teal-bright); }
.hero p.lead {
  font-size: 17px;
  color: #A9C4C0;
  max-width: 46ch;
  margin-bottom: 28px;
}
.hero-stats {
  display: flex;
  gap: 28px;
  margin: 30px 0 34px;
  flex-wrap: wrap;
}
.stat b {
  font-family: 'Pretendard Variable', sans-serif;
  font-weight: 800;
  font-size: 30px;
  color: var(--teal-bright);
  display: block;
}
.stat span { font-size: 13px; color: #A9C4C0; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 26px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--amber); color: #fff; }
.btn-primary:hover { background: var(--amber-bright); }
.btn-outline { border-color: rgba(255,255,255,0.4); color: #fff; background: transparent; }
.btn-outline:hover { border-color: var(--teal-bright); color: var(--teal-bright); }

.hero-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  padding: 26px;
  backdrop-filter: blur(6px);
}
.hero-card h3 { color: #fff; font-size: 17px; margin-bottom: 14px; }
.diag-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(255,255,255,0.15);
  font-size: 14px;
  color: #DCEAE8;
}
.diag-row:last-child { border-bottom: none; }
.diag-row span:last-child { color: var(--teal-bright); font-weight: 700; }

/* ---------- 신뢰 배지 스트립 ---------- */
.trustbar {
  background: var(--bone-dim);
  border-bottom: 1px solid #BEEAE0;
  padding: 18px 0;
}
.trustbar .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--steel);
}
.trustbar span { display: flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); display: inline-block; }

/* ---------- 신뢰 문구 배너 ---------- */
.quote-band {
  background: var(--bone-dim);
  color: var(--navy);
  text-align: center;
  padding: 56px 0;
}
.quote-band .quote {
  font-family: 'Pretendard Variable', sans-serif;
  font-weight: 800;
  font-size: 26px;
  line-height: 1.5;
  margin: 0 0 14px;
}
.quote-band .quote .hl { color: var(--ink); }
.quote-band .quote-sub { font-size: 13.5px; color: var(--steel); }

/* ---------- 섹션 공통 ---------- */
section { padding: 72px 0; }
.section-head { max-width: 620px; margin-bottom: 44px; }
.section-head h2 { font-size: 32px; }
.section-head p { color: var(--steel); margin-top: 12px; font-size: 15px; }

/* ---------- 증상/단계 카드 (핵심 시그니처 요소: 연결 노드) ---------- */
.symptom-line {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.symptom-card {
  padding: 28px 24px;
  background: var(--bone);
  border: 1px solid var(--bone-dim);
  border-radius: var(--radius);
  position: relative;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.symptom-card:hover { transform: translateY(-3px); border-color: var(--ink-soft); }
.symptom-card .num {
  font-family: 'Pretendard Variable', sans-serif;
  font-weight: 800;
  font-size: 13px;
  color: #fff;
  background: var(--copper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  margin-bottom: 14px;
}
.symptom-card h3 { font-size: 18px; margin-bottom: 8px; }
.symptom-card p { font-size: 13.5px; color: var(--steel); margin-bottom: 14px; }
.symptom-card .price { font-weight: 800; color: var(--amber); font-size: 14px; }
.symptom-card a.more { font-size: 13px; font-weight: 700; color: var(--ink); margin-top: 10px; display: inline-block; }

/* ---------- 시공 사례 ---------- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.portfolio-card {
  display: block;
  background: #fff;
  border: 1px solid var(--bone-dim);
  border-radius: var(--radius);
  overflow: hidden;
}
.portfolio-card:hover { border-color: var(--amber); }
.portfolio-grid .portfolio-card:only-child {
  max-width: 280px;
  justify-self: start;
}
.portfolio-thumb {
  position: relative;
  height: 160px;
  overflow: hidden;
}
.portfolio-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.portfolio-thumb .thumb-tag {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: rgba(11,27,30,0.85);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.01em;
}
.portfolio-card h4 { font-size: 15.5px; margin: 16px 18px 6px; }
.portfolio-card p { font-size: 13px; color: var(--steel); margin: 0 18px 18px; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--bone);
  border: 1px solid var(--bone-dim);
  border-radius: var(--radius);
  padding: 4px 22px;
}
.faq-item summary {
  padding: 18px 0;
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: 'Pretendard Variable', sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: var(--copper);
  flex: none;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p { font-size: 14px; color: var(--steel); margin: 0 0 20px; }

/* ---------- 지역+증상 커버리지 (SEO 핵심 섹션) ---------- */
.coverage {
  background: var(--navy);
  color: #fff;
}
.coverage .section-head p { color: #A9C4C0; }
.coverage .eyebrow { color: var(--teal-bright); }
.coverage .eyebrow::before { background: var(--teal-bright); }
.coverage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}
.coverage-grid a {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  padding: 14px 18px;
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  text-align: center;
}
.coverage-grid a:hover { border-color: var(--teal-bright); color: var(--teal-bright); }

/* ---------- 후기 ---------- */
.reviews-strip {
  display: flex;
  align-items: baseline;
  gap: 22px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.reviews-strip .score {
  font-family: 'Pretendard Variable', sans-serif;
  font-weight: 800;
  font-size: 44px;
  color: var(--amber);
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.review-card {
  background: var(--bone);
  border: 1px solid var(--bone-dim);
  border-radius: var(--radius);
  padding: 22px;
}
.review-card .who {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  color: var(--steel);
  margin-bottom: 10px;
}
.review-card .stars { color: var(--amber); letter-spacing: 2px; margin-bottom: 8px; }
.review-card p { font-size: 14px; }
.review-card .reply {
  margin-top: 12px;
  padding: 10px 12px;
  background: #fff;
  border-radius: 8px;
  font-size: 12.5px;
  color: var(--ink);
}

/* ---------- 가격표 ---------- */
.price-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.price-table th, .price-table td {
  text-align: left;
  padding: 16px 18px;
  border-bottom: 1px solid var(--bone-dim);
}
.price-table th { color: var(--steel); font-size: 12.5px; letter-spacing: 0.04em; text-transform: uppercase; }
.price-table td.amt { color: var(--amber); font-weight: 800; white-space: nowrap; }
.price-note { font-size: 12.5px; color: var(--steel); margin-top: 14px; }

/* ---------- 프로세스 ---------- */
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.process li { list-style: none; position: relative; }
.process .step-num {
  font-family: 'Pretendard Variable', sans-serif;
  font-weight: 900;
  font-size: 34px;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--copper);
  display: block;
  margin-bottom: 10px;
}
.process h4 { font-size: 15.5px; margin-bottom: 6px; }
.process p { font-size: 13px; color: var(--steel); }

/* ---------- CTA 배너 ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--ink), var(--ink-soft));
  color: #fff;
  padding: 50px 0;
  text-align: center;
}
.cta-band h2 { font-size: 28px; margin-bottom: 10px; }
.cta-band p { margin-bottom: 22px; font-weight: 600; }
.cta-band .btn-primary { background: var(--amber); color: #fff; }
.cta-band .btn-primary:hover { background: var(--amber-bright); }

/* ---------- 푸터 ---------- */
footer.site {
  background: var(--navy);
  color: #A9C4C0;
  padding: 44px 0 26px;
  font-size: 13px;
}
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; margin-bottom: 24px; }
.footer-grid h5 { color: #fff; font-size: 14px; margin-bottom: 12px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 7px; }
.footer-legal { border-top: 1px solid rgba(255,255,255,0.14); padding-top: 18px; font-size: 12px; line-height: 1.8; }

/* ---------- 시공사례/지역 상세글 ---------- */
.case-hero {
  background: var(--bone-dim);
  padding: 44px 0 36px;
  text-align: center;
}
.case-hero .wrap { max-width: 700px; }
.case-hero .case-back { font-size: 13px; font-weight: 700; color: var(--ink); display: inline-block; margin-bottom: 14px; }
.case-hero h1 { font-size: 28px; color: var(--navy); }
.case-hero .meta { color: var(--steel); font-size: 14px; margin-top: 10px; }
.case-article { padding: 48px 0 64px; }
.case-article .wrap { max-width: 760px; }
.answer-box {
  background: var(--bone);
  border: 1px solid var(--bone-dim);
  border-left: 4px solid var(--ink);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 0 0 32px;
  font-size: 15.5px;
  line-height: 1.8;
}
.answer-box b { color: var(--ink); }
.case-article img.full,
.case-article video.full {
  width: 100%;
  border-radius: var(--radius);
  margin: 8px 0 32px;
  display: block;
  background: #000;
}
.case-article video.full {
  max-height: 480px;
  object-fit: contain;
  margin-left: auto;
  margin-right: auto;
}
.case-article .photo-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 8px 0 32px;
}
.case-article .photo-row img {
  width: 100%;
  border-radius: var(--radius);
  display: block;
  margin: 0;
}
.case-article h2 { font-size: 20px; color: var(--ink); margin: 36px 0 12px; }
.case-article h2:first-of-type { margin-top: 0; }
.case-article p { margin: 0 0 16px; color: var(--navy); font-size: 15.5px; line-height: 1.8; }
.case-article ul { margin: 0 0 16px; padding-left: 20px; color: var(--navy); font-size: 15.5px; line-height: 1.8; }
.case-article figure { margin: 8px 0 32px; }
.case-article figure img.full { margin-bottom: 8px; }
.case-article figcaption { color: var(--steel); font-size: 13px; line-height: 1.6; text-align: center; }

/* ---------- 플로팅 콜버튼 (모바일) ---------- */
.float-call {
  position: fixed;
  bottom: 18px; right: 18px;
  background: var(--amber);
  color: #fff;
  width: 58px; height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 22px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
  z-index: 60;
}

/* ---------- 구조 변형: 중앙정렬 히어로 ---------- */
.hero-center {
  text-align: center;
  padding: 70px 0;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.hero-center .wrap { max-width: 760px; }
.eyebrow-center { justify-content: center; }
.eyebrow-center::before { display: none; }
.lead-center { margin-left: auto; margin-right: auto; }
.cta-row-center { justify-content: center; }

/* ---------- 구조 변형: 스텝 티커 (히어로 하단 가로 띠) ---------- */
.step-ticker {
  background: var(--bone);
  border-bottom: 1px solid var(--bone-dim);
  padding: 26px 0;
  margin-top: 44px;
}
.step-ticker-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.step-ticker-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  border-right: 1px solid var(--bone-dim);
}
.step-ticker-item:last-child { border-right: none; }
.step-ticker-num {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  flex: none;
}
.step-ticker-item div { display: flex; flex-direction: column; }
.step-ticker-item b { font-size: 14px; }
.step-ticker-item span { font-size: 12px; color: var(--steel); }

/* ---------- 구조 변형: 증상 리스트(행 단위) ---------- */
.list-rows { display: flex; flex-direction: column; border-top: 1px solid var(--bone-dim); }
.list-row {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 22px 4px;
  border-bottom: 1px solid var(--bone-dim);
}
.list-row .row-num {
  font-weight: 800;
  font-size: 15px;
  color: var(--copper);
}
.row-body h3 { font-size: 17px; margin-bottom: 4px; }
.row-body p { font-size: 13.5px; color: var(--steel); margin: 0; }
.row-cta { font-size: 13.5px; font-weight: 700; color: var(--ink); white-space: nowrap; }

/* ---------- 구조 변형: 지역 커버리지 시/도별 그룹 ---------- */
.coverage-columns {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 32px;
  align-items: start;
}
.coverage-col h4 { color: var(--teal-bright); font-size: 15px; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,0.14); }

/* 기본(밝은 배경, 지역 상세 페이지용) */
.coverage-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
.coverage-tags a {
  background: var(--bone);
  border: 1px solid var(--bone-dim);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--navy);
}
.coverage-tags a:hover { border-color: var(--ink); color: var(--ink); }

/* 어두운 배경(홈페이지 coverage 섹션)용 오버라이드 */
.coverage .coverage-tags a {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  color: #fff;
}
.coverage .coverage-tags a:hover { border-color: var(--teal-bright); color: var(--teal-bright); }

/* ---------- 구조 변형: 푸터 단일 컬럼 ---------- */
.footer-stack { display: flex; flex-direction: column; gap: 18px; }
.footer-block ul { list-style: none; padding: 0; margin: 8px 0 0; }
.footer-block li { margin-bottom: 6px; }
.footer-links-inline { display: flex; gap: 20px; font-size: 13.5px; font-weight: 600; }
.footer-links-inline a { opacity: 0.85; }
.footer-links-inline a:hover { opacity: 1; color: var(--teal-bright); }

/* ---------- 반응형 ---------- */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .nav-links { display: none; }
  .symptom-line { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .coverage-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: 1fr; }
  .process { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { flex-direction: column; }
  .quote-band .quote { font-size: 21px; }
  .step-ticker-grid { grid-template-columns: 1fr; gap: 14px; }
  .step-ticker-item { border-right: none; padding: 0; }
  .list-row { grid-template-columns: 32px 1fr; }
  .list-row .row-cta { grid-column: 2; }
  .coverage-columns { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
