/* W.N 소신 — 누수피해 복구 리포트 스타일 */

:root {
  --bg: #1A1614;
  --bg-alt: #241F1C;
  --panel: #2A241F;
  --ink: #EFEAE4;
  --ink-soft: #9E958D;
  --line: #3D3530;
  --accent: #17A67B;
  --accent-dark: #34C79A;
  --on-accent: #062E21;
  --before: #9E958D;
  --after: #17A67B;
  --radius: 2px;
  --maxw: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(26,22,20,0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  height: 60px; display: flex; align-items: center; justify-content: space-between;
}
.brand { font-weight: 700; font-size: 17px; letter-spacing: 0.02em; display: inline-flex; align-items: center; height: 44px; }
.site-nav { display: flex; gap: 28px; }
.site-nav a { font-size: 14px; color: var(--ink-soft); transition: color .15s; }
.site-nav a:hover { color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.btn-call-small {
  border: 1px solid var(--accent); color: var(--accent);
  font-size: 13px; padding: 7px 16px; border-radius: 999px;
  display: inline-flex; align-items: center; min-height: 44px;
  transition: background .15s, color .15s;
}
.btn-call-small:hover { background: var(--accent); color: var(--on-accent); }
.nav-toggle { display: none; flex-direction: column; gap: 4px; background: none; border: 0; padding: 15px; cursor: pointer; }
.nav-toggle span { width: 20px; height: 2px; background: var(--ink); display: block; }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 72px; }
.hero-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.hero-eyebrow { font-size: 13px; letter-spacing: 0.12em; color: var(--accent); font-weight: 600; margin: 0 0 14px; }
.hero h1 { font-size: 30px; margin: 0 0 6px; font-weight: 800; }
.hero-copy { font-size: 26px; font-weight: 700; margin: 18px 0 18px; line-height: 1.45; }
.hero-sub { color: var(--ink-soft); font-size: 15.5px; margin: 0 0 30px; }
.btn-primary {
  display: inline-block; background: var(--accent); color: var(--on-accent);
  padding: 14px 30px; font-size: 15px; font-weight: 600; border-radius: 999px;
  transition: background .15s;
}
.btn-primary:hover { background: var(--accent-dark); }
.hero-photos { position: relative; display: flex; gap: 12px; }
.hero-photo { position: relative; flex: 1; overflow: hidden; border-radius: var(--radius); background: var(--bg-alt); aspect-ratio: 3/4; border: 1px solid var(--line); }
.hero-photos .hero-photo:last-child { border-color: var(--after); }
.hero-photo img { width: 100%; height: 100%; object-fit: contain; background: var(--bg-alt); }
.photo-tag {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  font-size: 11px; letter-spacing: 0.1em; font-weight: 700;
  padding: 4px 10px; border-radius: 999px; background: rgba(26,22,20,0.72);
}
.photo-tag.before { color: var(--before); }
.photo-tag.after { color: var(--after); }

/* ---------- Statement section (03) ---------- */
.statement { padding: 84px 0; border-top: 1px solid var(--line); }
.statement h2 { font-size: 30px; line-height: 1.5; margin: 0 0 40px; max-width: 640px; font-weight: 800; }
.statement-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.statement-grid span {
  padding: 18px 6px 18px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; color: var(--ink-soft);
}
.statement-grid span:nth-child(3n+2) { padding-left: 24px; border-left: 1px solid var(--line); }
.statement-grid span:nth-child(3n) { padding-left: 24px; border-left: 1px solid var(--line); }
.statement-note {
  margin-top: 36px; font-size: 15px; color: var(--accent); font-weight: 600;
  border-left: 3px solid var(--accent); padding-left: 16px;
}

/* ---------- Section shell ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin: 0 0 48px; }
.section-eyebrow { font-size: 13px; letter-spacing: 0.12em; color: var(--accent); font-weight: 700; margin: 0 0 10px; }
.section-head h2 { font-size: 28px; margin: 0; font-weight: 800; }
.section-head p { color: var(--ink-soft); margin: 14px 0 0; font-size: 15.5px; }

/* ---------- NSEO index (04) ---------- */
.service-index { border-top: 1px solid var(--line); }
.index-row {
  display: flex; align-items: center; gap: 24px;
  padding: 26px 4px; border-bottom: 1px solid var(--line);
  transition: background .15s;
}
.index-row:hover { background: var(--panel); }
.index-num { font-size: 15px; font-weight: 700; color: var(--accent); width: 32px; flex-shrink: 0; }
.index-body { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.index-title { font-size: 19px; font-weight: 700; }
.index-desc { font-size: 14.5px; color: var(--ink-soft); }
.index-arrow { font-size: 18px; color: var(--ink-soft); transition: transform .15s; }
.index-row:hover .index-arrow { transform: translateX(4px); color: var(--accent); }

/* ---------- Case archive (05 / 09) ---------- */
.case-row { display: flex; flex-direction: column; gap: 24px; padding: 56px 0; border-bottom: 1px solid var(--line); }
.case-row:last-child { border-bottom: none; }
.case-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.case-photo { position: relative; background: var(--bg-alt); border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; border: 1px solid var(--line); }
.case-photos .case-photo:last-child { border-color: var(--after); }
.case-photo img { width: 100%; height: 100%; object-fit: contain; }
.case-tag {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  font-size: 10.5px; letter-spacing: 0.1em; font-weight: 700;
  padding: 4px 10px; border-radius: 999px; background: rgba(26,22,20,0.72);
}
.case-tag-before { color: var(--before); }
.case-tag-after { color: var(--after); }
.case-note .case-index { font-size: 12.5px; letter-spacing: 0.1em; color: var(--accent); font-weight: 700; margin: 0 0 8px; }
.case-note h3 { font-size: 20px; margin: 0 0 8px; font-weight: 700; }
.case-note p { color: var(--ink-soft); font-size: 15px; margin: 0; max-width: 60ch; }

@media (min-width: 860px) {
  .case-row { flex-direction: row; align-items: center; gap: 48px; }
  .case-photos { flex: 1.2; }
  .case-note { flex: 1; }
  .case-row.is-reverse { flex-direction: row-reverse; }
}

/* ---------- Scope list (07) ---------- */
.scope-list { display: flex; flex-wrap: wrap; gap: 10px; }
.scope-list li {
  list-style: none; font-size: 15px; font-weight: 500; color: var(--ink);
  padding: 10px 18px; border: 1px solid var(--line); border-radius: 4px;
}

/* ---------- Process steps (08) ---------- */
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.process-step .step-num { font-size: 13px; font-weight: 700; color: var(--accent); margin: 0 0 10px; }
.process-step h3 { font-size: 17px; margin: 0 0 8px; font-weight: 700; }
.process-step p { color: var(--ink-soft); font-size: 14.5px; margin: 0; }
.process-note {
  margin-top: 40px; font-size: 15px; color: var(--accent); font-weight: 600;
  border-left: 3px solid var(--accent); padding-left: 16px; max-width: 640px;
}

/* ---------- Feature case (09) ---------- */
.case-feature { padding: 56px 0; border-bottom: 1px solid var(--line); }
.case-feature:first-child { padding-top: 0; }
.case-feature:last-child { padding-bottom: 0; border-bottom: none; }
.feature-case-photos {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0 auto 40px; max-width: 1080px;
}
.feature-case-photos .case-photo { aspect-ratio: 4/5; }
.feature-case-photos .case-photo:last-child { border-color: var(--after); }
.case-feature .case-note { text-align: center; }
.case-feature .case-note p { margin-left: auto; margin-right: auto; }
.feature-detail-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.feature-detail-grid div { padding: 20px 20px 20px 0; border-bottom: 1px solid var(--line); }
.feature-detail-grid div:not(:first-child) { border-left: 1px solid var(--line); padding-left: 20px; }
.feature-detail-grid dt { font-size: 12.5px; letter-spacing: 0.08em; color: var(--accent); font-weight: 700; margin: 0 0 10px; }
.feature-detail-grid dd { margin: 0; font-size: 14.5px; color: var(--ink-soft); }

/* ---------- FAQ (10) ---------- */
.faq-list { border-top: 1px solid var(--line); max-width: 760px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 2px; font-size: 16.5px; font-weight: 600; color: var(--ink);
}
.faq-q .faq-plus { font-size: 20px; color: var(--accent); flex-shrink: 0; transition: transform .2s; }
.faq-item.open .faq-plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-a p { margin: 0 2px 22px; color: var(--ink-soft); font-size: 15px; max-width: 62ch; }

/* ---------- Final CTA (11) ---------- */
.final-cta { padding: 96px 0; background: var(--bg-alt); color: var(--ink); text-align: center; border-top: 1px solid var(--line); }
.final-cta h2 { font-size: 28px; line-height: 1.5; margin: 0 0 32px; font-weight: 800; }
.final-cta .btn-primary { background: var(--accent); color: var(--on-accent); }
.final-cta .btn-primary:hover { background: var(--accent-dark); }

/* ---------- Footer ---------- */
.site-footer { padding: 48px 0; border-top: 1px solid var(--line); }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.footer-brand { font-weight: 700; margin: 0 0 12px; }
.footer-info { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13.5px; color: var(--ink-soft); }
.footer-copy { font-size: 12.5px; color: var(--ink-soft); margin: 0; }

/* ---------- Inner page (NSEO / FAQ / contact) shell ---------- */
.page-hero { padding: 56px 0 40px; border-bottom: 1px solid var(--line); }
.breadcrumb { font-size: 13px; color: var(--ink-soft); margin: 0 0 16px; }
.breadcrumb a { color: var(--ink-soft); }
.breadcrumb a:hover { color: var(--accent); }
.page-hero h1 { font-size: 30px; margin: 0 0 14px; font-weight: 800; }
.page-hero .lead { font-size: 16px; color: var(--ink-soft); max-width: 62ch; margin: 0; }
.prose { max-width: 720px; }
.prose h2 { font-size: 21px; margin: 44px 0 16px; font-weight: 700; }
.prose p { font-size: 15.5px; color: var(--ink-soft); margin: 0 0 14px; }
.prose ul { padding-left: 20px; margin: 0 0 14px; color: var(--ink-soft); font-size: 15.5px; }
.prose li { margin-bottom: 6px; }
.prose h3 { font-size: 16.5px; margin: 24px 0 8px; font-weight: 700; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: 14.5px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose th { font-size: 12.5px; letter-spacing: 0.04em; color: var(--accent); font-weight: 700; }
.prose td { color: var(--ink-soft); }
.updated-note { font-size: 13px; color: var(--ink-soft); margin: 8px 0 0; }
.faq-list h3 { margin: 0; font-size: inherit; font-weight: inherit; }
.related-services { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.related-label { font-size: 12.5px; letter-spacing: 0.1em; color: var(--accent); font-weight: 700; margin: 0 0 14px; }
.related-services ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 14px; flex-wrap: wrap; }
.related-services a {
  display: inline-block; padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 14px; font-weight: 600; transition: border-color .15s, color .15s;
}
.related-services a:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Standalone work photo (single site photo, not before/after) ---------- */
.work-photo { display: block; aspect-ratio: 4/3; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-alt); }
.work-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.work-photo-wide { aspect-ratio: 16/9; }
.work-photo-caption { margin: 10px 0 0; font-size: 14px; color: var(--ink-soft); }

/* ---------- NSEO service photo cards ---------- */
.nseo-cards { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: 24px; scrollbar-width: none; -ms-overflow-style: none; }
.nseo-cards::-webkit-scrollbar { display: none; }
.nseo-card { flex: 0 0 calc((100% - 40px) / 3); scroll-snap-align: start; display: block; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); transition: border-color .15s; }
.nseo-card:hover { border-color: var(--accent); }
.nseo-card-photo { display: block; aspect-ratio: 4/3; overflow: hidden; background: var(--bg-alt); }
.nseo-card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nseo-card-title { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; font-size: 14.5px; font-weight: 700; }
.nseo-card-title .index-arrow { color: var(--accent); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .site-nav { position: absolute; top: 60px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); flex-direction: column; gap: 0; display: none; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 14px 24px; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: flex; }
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero h1 { font-size: 24px; }
  .hero-copy { font-size: 21px; }
  .statement h2 { font-size: 24px; }
  .statement-grid { grid-template-columns: 1fr; }
  .statement-grid span:nth-child(3n+2), .statement-grid span:nth-child(3n) { padding-left: 0; border-left: none; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .feature-case-photos { grid-template-columns: 1fr; }
  .feature-detail-grid { grid-template-columns: 1fr 1fr; }
  .feature-detail-grid div:nth-child(odd) { border-left: none; padding-left: 0; }
  .section-head h2 { font-size: 23px; }
  .nseo-card { flex-basis: calc((100% - 20px) / 2); }
}
@media (max-width: 560px) {
  .case-photos { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .nseo-card { flex-basis: 82%; }
  .scope-list li { font-size: 14px; padding: 8px 14px; }
}
