/* ==========================================================================
   상생집수리 · 주방싱크대교체
   [디자인 참고] https://sidewalkblock.kjipsuri.com/ — 넓은 여백, 큰 제목, 실제 작업사진
   중심 구성, 번호형 서비스 카드, Before/After 그리드, STEP 프로세스, FAQ 아코디언
   구조를 주방 싱크대 업종에 맞게 재해석. 문구·색상·이미지는 참고사이트와 무관한
   독자 제작(상생집수리 실제 시공사진). 색상: 웜 그래파이트 + 카퍼 액센트.
   ========================================================================== */

:root {
  --paper: #FAFAF7;
  --white: #FFFFFF;
  --panel: #F1EEE8;
  --ink: #262320;
  --ink-soft: #6B6459;
  --ink-faint: #99917F;
  --line: #E4DFD5;
  --line-strong: #CFC6B4;
  --accent: #B9603A;
  --accent-dark: #8F4426;
  --accent-soft: #F4E3D6;

  --font-kr: 'Pretendard', -apple-system, 'Apple SD Gothic Neo', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --wrap: 1180px;
  --section-v: 96px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font-kr);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.75;
  word-break: keep-all;
  overflow-wrap: break-word;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; background: none; border: none; cursor: pointer; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; word-break: keep-all; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-dark);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: ''; width: 22px; height: 1px; background: var(--accent-dark); }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--accent);
  box-shadow: 0 2px 16px rgba(38,35,32,.12);
}
.site-header-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.site-brand { font-weight: 800; font-size: 17px; letter-spacing: -0.01em; color: var(--white); }

.btn-call {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.05em;
  padding: 9px 18px;
  background: var(--white);
  color: var(--accent-dark);
  white-space: nowrap;
  font-weight: 700;
  transition: background .2s ease, color .2s ease;
}
.btn-call:hover { background: var(--ink); color: var(--white); }

/* ---------- floating call button ---------- */
.floating-call {
  position: fixed; right: 22px; bottom: 26px; z-index: 500;
  display: flex; align-items: center;
  height: 52px; width: 52px; overflow: hidden;
  background: var(--accent); color: var(--white);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(185,96,58,.45), 0 2px 8px rgba(38,35,32,.15);
  transition: width .35s cubic-bezier(.2,.8,.2,1), box-shadow .2s ease;
}
.floating-call:hover { width: 156px; box-shadow: 0 14px 38px rgba(185,96,58,.55); }
.floating-call-icon { flex: none; width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; }
.floating-call-icon svg { width: 22px; height: 22px; }
.floating-call-text { font-size: 13.5px; font-weight: 700; white-space: nowrap; opacity: 0; transition: opacity .25s ease; padding-right: 16px; }
.floating-call:hover .floating-call-text { opacity: 1; }

/* ---------- scroll reveal ---------- */
.reveal-anim { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal-anim.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- hero ---------- */
.hero { padding: 44px 0 var(--section-v); }
.hero-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 52px; align-items: center; }

.hero-copy h1 { font-size: clamp(40px, 5.6vw, 68px); line-height: 1.12; margin: 18px 0 22px; }
.hero-copy .lede { font-size: 17px; color: var(--ink-soft); max-width: 40ch; margin-bottom: 30px; white-space: pre-line; }

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.btn-primary { background: var(--ink); color: var(--white); padding: 15px 28px; font-weight: 700; font-size: 15px; display: inline-block; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-outline { border: 1px solid var(--line-strong); padding: 15px 28px; font-weight: 700; font-size: 15px; display: inline-block; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent-dark); }

.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-tag { font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; letter-spacing: 0.04em; color: var(--ink-soft); border: 1px solid var(--line); padding: 6px 13px; }

.hero-gallery { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 12px; }
.hero-gallery .hg-main { grid-column: 1 / -1; }
.hero-gallery figure { position: relative; overflow: hidden; background: var(--panel); margin: 0; }
.hero-gallery .hg-main img { aspect-ratio: 16/10; width: 100%; height: 100%; object-fit: cover; }
.hero-gallery figure:not(.hg-main) img { aspect-ratio: 4/3; width: 100%; height: 100%; object-fit: cover; }
.hero-gallery figcaption { position: absolute; left: 12px; bottom: 12px; background: rgba(38,35,32,.72); color: var(--white); font-size: 11.5px; padding: 6px 11px; letter-spacing: 0.01em; }

/* ---------- section frame ---------- */
.section { padding: var(--section-v) 0; border-top: 1px solid var(--line); }
.section-head { margin-bottom: 46px; }
.section-head.center { text-align: center; }
.section-head h2 { font-size: clamp(26px, 3.6vw, 40px); }
.section-lede { color: var(--ink-soft); font-size: 15.5px; max-width: 60ch; margin-top: 14px; }
.section-head.center .section-lede { margin-left: auto; margin-right: auto; }

/* ---------- 고민 목록 ---------- */
.concern-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; border-top: 1px solid var(--line); }
.concern-row { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 26px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.concern-row .num { font-family: var(--font-mono); font-size: 13px; color: var(--ink-faint); }
.concern-row p { font-size: 17px; font-weight: 600; }

/* ---------- 서비스(NSEO) sv2 카드 ---------- */
.sv-list { display: flex; flex-direction: column; gap: 4px; }
.sv-card {
  display: grid; grid-template-columns: 1fr 380px; gap: 0;
  background: var(--white); border: 1px solid var(--line);
  transition: box-shadow .25s ease, transform .25s ease;
}
.sv-card:hover { box-shadow: 0 10px 30px rgba(38,35,32,.08); transform: translateY(-2px); }
.sv-body { padding: 34px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.sv-num { font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: var(--accent-dark); letter-spacing: 0.08em; }
.sv-title { font-size: clamp(21px, 2.6vw, 27px); }
.sv-desc { color: var(--ink-soft); font-size: 15px; max-width: 44ch; }
.sv-link { font-family: var(--font-mono); font-size: 12.5px; color: var(--accent-dark); border-bottom: 1px solid var(--accent); padding-bottom: 2px; display: inline-block; width: fit-content; margin-top: 4px; }

.sv-photos { display: grid; grid-template-columns: 1fr 34px 1fr; align-items: center; background: var(--panel); padding: 14px; }
.sv-photos img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.sv-arrow { text-align: center; color: var(--accent-dark); font-size: 1.1rem; }
.sv-photo-label { font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; letter-spacing: 0.05em; color: var(--ink-faint); text-align: center; margin-top: 6px; text-transform: uppercase; }

.sv-photo-single { background: var(--panel); padding: 0; overflow: hidden; }
.sv-photo-single img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }

/* ---------- before/after 단독 섹션 ---------- */
.ba-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ba-grid-4 { grid-template-columns: repeat(4, 1fr); gap: 18px; }
.ba-pair { position: relative; background: var(--line); display: grid; gap: 2px; grid-template-columns: 1fr 1fr; }
.ba-shot { position: relative; overflow: hidden; background: var(--panel); }
.ba-shot img { width: 100%; height: auto; aspect-ratio: 3/4; object-fit: cover; }
.ba-shot em {
  position: absolute; top: 10px; left: 10px; font-style: normal;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em;
  background: rgba(38,35,32,.72); color: var(--white); padding: 5px 10px;
}
.ba-shot.ba-after em { background: var(--accent-dark); left: auto; right: 10px; }
.ba-pair figcaption { grid-column: 1/-1; background: var(--white); padding: 13px 14px; font-size: 13.5px; color: var(--ink-soft); border: 1px solid var(--line); border-top: none; }

/* ---------- process ---------- */
.process-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.pt-card { background: var(--white); padding: 26px 20px; }
.pt-label { font-family: var(--font-mono); font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; color: var(--accent-dark); border-bottom: 2px solid var(--accent); padding-bottom: 6px; margin-bottom: 14px; display: inline-block; }
.pt-title { font-size: 16.5px; margin-bottom: 8px; }
.pt-desc { font-size: 13.8px; color: var(--ink-soft); }

/* ---------- 작업사진 갤러리 ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.gallery-grid figure { margin: 0; overflow: hidden; background: var(--panel); position: relative; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3/4; transition: transform .35s ease; }
.gallery-grid a:hover img { transform: scale(1.04); }
.gallery-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 12px; background: linear-gradient(0deg, rgba(38,35,32,.78), transparent); color: var(--white); font-size: 12px; }

/* ---------- FAQ ---------- */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 2px; font-weight: 700; font-size: 16.5px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-toggle { flex: none; display: grid; place-items: center; width: 27px; height: 27px; border: 1px solid var(--line-strong); color: var(--ink-soft); transition: transform .2s ease; }
.faq-item[open] .faq-toggle { transform: rotate(45deg); background: var(--accent-soft); border-color: var(--accent); color: var(--accent-dark); }
.faq-a { padding: 0 2px 22px; color: var(--ink-soft); font-size: 15px; max-width: 72ch; }

/* ---------- final cta ---------- */
.final-cta-banner { background: var(--ink); padding: 64px 0; }
.final-cta-inner { display: grid; grid-template-columns: 1fr 1.15fr; align-items: center; gap: 40px; }
.final-cta-panel { color: var(--white); display: flex; flex-direction: column; gap: 14px; }
.final-cta-panel .eyebrow { color: var(--accent-soft); }
.final-cta-panel .eyebrow::before { background: var(--accent-soft); }
.final-cta-panel h2 { color: var(--white); font-size: clamp(24px, 3vw, 32px); line-height: 1.3; }
.final-cta-panel .btn-primary { background: var(--accent); align-self: flex-start; margin-top: 6px; }
.final-cta-panel .btn-primary:hover { background: var(--accent-dark); }
.final-cta-img { max-width: 560px; width: 100%; justify-self: end; overflow: hidden; border-radius: 6px; box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.final-cta-img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16/9; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 46px 0 96px; background: var(--panel); }
.footer-brand { font-weight: 800; font-size: 18px; margin-bottom: 16px; }
.footer-meta { display: grid; grid-template-columns: repeat(4, auto); gap: 22px 32px; font-size: 13.5px; color: var(--ink-soft); margin-bottom: 20px; }
.footer-meta dt { font-family: var(--font-mono); font-size: 11px; color: var(--ink-faint); margin-bottom: 4px; }
.footer-meta dd a { text-decoration: underline; text-underline-offset: 3px; }
.footer-copy { font-size: 12.5px; color: var(--ink-faint); }

.mobile-cta-bar { display: none; }

/* ---------- NSEO 상세 페이지 ---------- */
.breadcrumb { font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); padding: 16px 0; }
.breadcrumb a { color: var(--ink-soft); }
.breadcrumb a:hover { text-decoration: underline; }

.page-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; padding: 16px 0 64px; }
.page-hero-media { overflow: hidden; background: var(--panel); }
.page-hero-media img { width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; }
.page-hero-copy .eyebrow { margin-bottom: 16px; }
.page-hero-copy h1 { font-size: clamp(32px, 4.6vw, 52px); margin-bottom: 18px; }
.page-hero-copy .lede { font-size: 17px; color: var(--ink-soft); max-width: 42ch; margin-bottom: 24px; }

.section-basic { padding: 60px 0; border-top: 1px solid var(--line); }
.section-basic h2 { font-size: clamp(23px, 3.2vw, 30px); margin-bottom: 20px; }
.section-basic p { color: var(--ink-soft); font-size: 15.5px; margin-bottom: 14px; max-width: 74ch; }
.section-basic p.ba-lede { max-width: none; margin-bottom: 22px; }

.plain-list { border-top: 1px solid var(--line); }
.plain-list li { border-bottom: 1px solid var(--line); padding: 14px 2px; }

.cost-table-wrap { overflow-x: auto; }
table.cost-table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 8px 0 4px; }
table.cost-table th, table.cost-table td { border: 1px solid var(--line); padding: 12px 14px; text-align: left; vertical-align: top; }
table.cost-table th { background: var(--panel); font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.05em; color: var(--ink-soft); font-weight: 500; }

.content-photo { max-width: 460px; margin: 4px auto 28px; background: var(--panel); overflow: hidden; }
.content-photo img { width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; display: block; }
.content-photo figcaption { padding: 12px 2px 0; font-size: 13.5px; color: var(--ink-faint); text-align: center; }

.related-section { padding: 60px 0; border-top: 1px solid var(--line); }
.related-grid { display: grid; grid-template-columns: 1fr 1fr 2fr; grid-template-rows: repeat(2, 1fr); gap: 16px; }
.related-card { display: flex; flex-direction: column; text-align: center; }
.related-shot { display: block; overflow: hidden; background: var(--panel); margin-bottom: 10px; flex: 1; }
.related-shot img { width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; transition: transform .3s ease; }
.related-card:hover .related-shot img { transform: scale(1.03); }
.related-name { display: block; font-size: 14.5px; font-weight: 700; }
.related-card-lg { grid-column: 3; grid-row: 1 / 3; }
.related-card-lg .related-shot img { width: 100%; height: 100%; aspect-ratio: auto; }

.final-cta { padding: 70px 0; text-align: center; border-top: 1px solid var(--line); }
.final-cta p { font-size: clamp(20px, 3vw, 27px); font-weight: 700; margin-bottom: 24px; max-width: 26ch; margin-left: auto; margin-right: auto; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .sv-card { grid-template-columns: 1fr; }
  .sv-photos { grid-template-columns: 1fr 28px 1fr; }
  .ba-grid { grid-template-columns: 1fr 1fr; }
  .process-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .related-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: none; }
  .related-card-lg { grid-column: 1 / -1; grid-row: auto; }
  .related-card-lg .related-shot img { aspect-ratio: 21/9; height: auto; }
}

@media (max-width: 768px) {
  :root { --section-v: 60px; }
  .concern-list { grid-template-columns: 1fr; }
  .ba-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-meta { grid-template-columns: repeat(2, auto); }
  .page-hero { grid-template-columns: 1fr; padding-bottom: 44px; }
  .page-hero-media img { aspect-ratio: 4/3; }
  .final-cta-banner { padding: 44px 0; }
  .final-cta-inner { grid-template-columns: 1fr; gap: 24px; text-align: left; }
  .final-cta-img { max-width: 100%; justify-self: start; }

  .mobile-cta-bar {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--white); border-top: 1px solid var(--line);
  }
  .mobile-cta-btn { display: block; text-align: center; background: var(--ink); color: var(--white); font-weight: 700; font-size: 15px; padding: 14px; }
  .site-footer { padding-bottom: 92px; }
  .floating-call { bottom: 84px; }
}

@media (max-width: 600px) {
  .wrap { padding: 0 18px; }
  .hero { padding: 28px 0 var(--section-v); }
  .hero-copy h1 { font-size: clamp(34px, 10vw, 48px); }
  .hero-gallery { grid-template-columns: 1fr 1fr; }
  .sv-body { padding: 24px 20px; }
  .sv-photos { grid-template-columns: 1fr 22px 1fr; padding: 10px; }
  .related-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; grid-template-rows: none; }
  .related-card-lg .related-shot img { aspect-ratio: 16/9; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .footer-meta { grid-template-columns: 1fr 1fr; }
}
