/* 주방리모델링 · 상생집수리 — 전용 디자인 시스템 (템플릿 재사용 없음) */
:root {
  --white: #ffffff;
  --bg-soft: #F7F7F5;
  --bg-soft-2: #F1F1EE;
  --charcoal: #1E2124;
  --charcoal-2: #3A3D40;
  --ink: #24272A;
  --muted: #6B6E71;
  --line: #E2E2DE;
  --line-strong: #D2D2CC;
  --accent: #1F6F52;
  --accent-dark: #175A42;
  --accent-soft: #E7F3EE;
  --radius-card: 22px;
  --radius-lg: 32px;
  --radius-pill: 999px;
  --wrap: 1180px;
  --shadow-soft: 0 18px 40px -24px rgba(30, 33, 36, 0.28);
  --font: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", "Malgun Gothic", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  word-break: keep-all;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, dl, figure { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.icon { width: 1.15em; height: 1.15em; vertical-align: -0.2em; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--charcoal); color: #fff;
  padding: 10px 16px; z-index: 200; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* ── 버튼 ─────────────────────────────────────────── */
.btn-call, .btn-outline, .btn-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 28px; border-radius: var(--radius-pill); font-weight: 700; font-size: 16px;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn-call, .btn-cta {
  background: var(--charcoal); color: #fff;
}
.btn-call:hover, .btn-cta:hover { transform: translateY(-2px); background: #000; }
.btn-outline {
  background: transparent; color: var(--charcoal); border: 1.5px solid var(--line-strong);
}
.btn-outline:hover { border-color: var(--charcoal); }
.btn-call-header {
  padding: 10px 20px; font-size: 14.5px;
}

/* ── 헤더 ─────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: 72px;
}
.header-side { display: flex; align-items: center; }
.header-side-right { justify-content: flex-end; }
.brand { grid-column: 2; justify-self: center; display: flex; align-items: center; gap: 8px; }
.brand-name { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; color: var(--charcoal); }
.brand-mark { display: inline-flex; width: 20px; height: 20px; }
.brand-mark svg { width: 100%; height: 100%; }

@media (max-width: 480px) {
  .header-inner { height: 62px; }
  .brand-name { font-size: 16.5px; }
  .brand-mark { width: 17px; height: 17px; }
  .btn-call-header .btn-label { display: none; }
  .btn-call-header { padding: 10px; width: 40px; height: 40px; }
}

/* ── 히어로 ─────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #FBFBFA 0%, #F3F3F0 100%);
  padding: 56px 0 40px;
}
.hero-inner {
  display: grid; grid-template-columns: minmax(280px, 420px) 1fr; gap: 24px; align-items: center;
}
.hero-copy .eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; color: var(--accent);
  background: var(--accent-soft); padding: 6px 14px; border-radius: var(--radius-pill); margin-bottom: 18px;
}
.hero-copy h1 {
  font-size: clamp(34px, 4.2vw, 52px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15;
  color: var(--charcoal); margin-bottom: 22px;
}
.hero-lead {
  font-size: clamp(19px, 2vw, 23px); font-weight: 700; line-height: 1.5; color: var(--ink);
  margin-bottom: 16px;
}
.hero-sub {
  font-size: 16px; color: var(--muted); line-height: 1.7; margin-bottom: 30px; max-width: 40ch;
}
.hero-cta-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero-hint { font-size: 13.5px; color: var(--muted); }

.hero-stage { position: relative; width: 100%; }
.hero-stage-inner { position: relative; width: 100%; max-width: 640px; margin: 0 auto; }
svg#kitchenHero { width: 100%; height: auto; display: block; overflow: visible; }

.hero-zone-label {
  position: absolute; pointer-events: none; opacity: 0; transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease;
  background: var(--charcoal); color: #fff; font-size: 13px; font-weight: 700;
  padding: 7px 14px; border-radius: var(--radius-pill); white-space: nowrap; z-index: 5;
}
.hero-zone-label.is-visible { opacity: 1; transform: translateY(0); }

/* SVG 셸/조명 */
.wall { fill: url(#gradWall); stroke: #DDDDD8; stroke-width: 1; }
.floor { fill: url(#gradFloor); stroke: #D8D8D3; stroke-width: 1; }
.baseboard { stroke: #CDCDC7; stroke-width: 2; }
.ground-shadow { fill: #1c1e1f; opacity: 0.08; }
.light-cord { stroke: #B9B9B3; stroke-width: 1.5; }
.light-shade { fill: #2A2C2E; opacity: 0.85; }

.face { stroke: #23262a; stroke-width: 1.6; stroke-linejoin: round; }
.cab-upper .face-top { fill: #FBFBFA; }
.cab-upper .face-front { fill: #F0F0EE; }
.cab-upper .face-side { fill: #DBDBD7; }
.cab-lower .face-top { fill: #FAFAF9; }
.cab-lower .face-front { fill: #EFEFED; }
.cab-lower .face-side { fill: #D8D8D4; }
.cab-sink-base .face-top { fill: #FAFAF9; }
.cab-sink-base .face-front { fill: #EFEFED; }
.cab-sink-base .face-side { fill: #D8D8D4; }
.face-counter-top { fill: #4B4F53; stroke: #23262a; stroke-width: 1.6; }
.face-counter-front { fill: #383B3E; stroke: #23262a; stroke-width: 1.6; }
.face-counter-side { fill: #2A2D30; stroke: #23262a; stroke-width: 1.6; }
.seam, .seam-h { stroke: #C9C9C4; stroke-width: 1.2; }
.handle { stroke: #3f4245; stroke-width: 2.6; stroke-linecap: round; }
.basin-rim { fill: #9AA0A6; stroke: #23262a; stroke-width: 1.4; }
.basin-well { fill: #666b70; }
.basin-highlight { fill: #fff; opacity: 0.35; }
.faucet { fill: none; stroke: #23262a; stroke-width: 3; stroke-linecap: round; }
.faucet-base { fill: #23262a; }
.swatch { stroke: #23262a; stroke-width: 1.4; }
.swatch-1 { fill: #F4F4F1; }
.swatch-2 { fill: #DADAD5; }
.swatch-3 { fill: var(--accent); }
.swatch-shadow { fill: #000; opacity: 0.12; }
.swatch-handle { stroke: #23262a; stroke-width: 1.6; opacity: 0.5; }

.hotspot { cursor: pointer; transform-box: fill-box; transform-origin: center; transition: transform .28s cubic-bezier(.2,.7,.3,1); }
.hotspot .face { transition: filter .2s ease, stroke .2s ease; }
.hotspot:focus-visible { outline: none; }
@media (hover: hover) and (pointer: fine) {
  .hotspot:hover { transform: translateY(-6px); }
  .hotspot:hover .face { filter: brightness(1.05); stroke: var(--accent); }
}
.hotspot:focus-visible .face { stroke: var(--accent); stroke-width: 2.4; }
.hotspot.is-touch-active { transform: translateY(-4px); }
.hotspot.is-touch-active .face { stroke: var(--accent); }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-cta-row { justify-content: center; }
  .hero-stage-inner { max-width: 420px; }
}
@media (max-width: 430px) {
  .hero { padding: 36px 0 28px; }
  .hero-stage-inner { max-width: 320px; }
}

/* ── 섹션 공통 ─────────────────────────────────────────── */
.section { padding: 88px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-head .eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; color: var(--accent);
  margin-bottom: 14px; letter-spacing: 0.02em;
}
.section-head h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 800; letter-spacing: -0.02em; color: var(--charcoal); }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 16px; }

@media (max-width: 600px) {
  .section { padding: 60px 0; }
  .section-head { margin-bottom: 36px; }
}

/* ── 시공 전후 사진 사례 (히어로 바로 아래) ─────────────────────────────────────────── */
.case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.case-card {
  display: block; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  background: var(--white); transition: transform .2s ease, box-shadow .2s ease;
}
.case-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-soft); }
.case-photos { display: grid; grid-template-columns: 1fr 1fr; }
.case-photo { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--bg-soft-2); }
.case-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.case-tag {
  position: absolute; top: 12px; left: 12px; background: rgba(30,33,36,0.82); color: #fff;
  font-size: 12px; font-weight: 700; padding: 4px 11px; border-radius: var(--radius-pill);
}
.case-card-body { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 24px; }
.case-card-title { font-size: 18px; font-weight: 800; color: var(--charcoal); }
.case-card-arrow { font-size: 13.5px; color: var(--muted); font-weight: 700; white-space: nowrap; }

@media (max-width: 760px) {
  .case-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* ── NSEO 3x2 카드 그리드 ─────────────────────────────────────────── */
.svc-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.svc-card {
  position: relative; display: block; border-radius: var(--radius-card);
  perspective: 1400px; height: 220px;
}
.svc-card-flip {
  display: block; position: relative; width: 100%; height: 100%;
  transition: transform .55s cubic-bezier(.3,.7,.2,1);
  transform-style: preserve-3d;
}
.svc-card-face {
  position: absolute; inset: 0; backface-visibility: hidden; border-radius: var(--radius-card);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 28px; border: 1px solid var(--line);
}
.svc-card-front {
  background: var(--white);
}
.svc-card-title {
  font-size: 25px; font-weight: 800; letter-spacing: -0.02em; color: var(--charcoal); line-height: 1.35;
}
.svc-card-back {
  background: var(--charcoal); color: #fff; transform: rotateY(180deg); gap: 16px;
}
.svc-card-back .svc-card-title { color: #fff; font-size: 20px; }
.svc-card-back-line { font-size: 14.5px; color: #C9CBCC; line-height: 1.6; }
.svc-card-call {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 4px;
  background: var(--accent); color: #fff; padding: 10px 20px; border-radius: var(--radius-pill);
  font-size: 14px; font-weight: 700; position: relative; z-index: 3;
}
.svc-card-call:hover { background: var(--accent-dark); }

@media (hover: hover) and (pointer: fine) {
  .svc-card:hover .svc-card-flip { transform: rotateY(180deg); }
}

.svc-card-illust-front {
  background: linear-gradient(160deg, #FAFAF8, #EEEEEA); padding: 20px;
}
.svc-card-illust-front svg { width: 100%; height: 100%; max-width: 190px; }

@media (max-width: 900px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .svc-grid { grid-template-columns: 1fr; }
  .svc-card { height: 168px; }
  .svc-card-face { padding: 22px; }
  .svc-card-title { font-size: 22px; }
}

/* ── FAQ ─────────────────────────────────────────── */
.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  border: 1px solid var(--line); border-radius: 18px; padding: 4px 8px; background: var(--white);
}
.faq-item summary {
  list-style: none; cursor: pointer; padding: 20px 16px; display: flex; align-items: center;
  justify-content: space-between; gap: 16px; font-size: 16.5px; font-weight: 700; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { color: var(--muted); transition: transform .2s ease; flex: none; }
.faq-item[open] summary .icon { transform: rotate(45deg); color: var(--accent); }
.faq-a { padding: 0 16px 22px; color: var(--muted); font-size: 15.5px; line-height: 1.75; }

/* ── CTA ─────────────────────────────────────────── */
.cta-section { padding: 110px 0; text-align: center; }
.cta-box {
  max-width: 720px; margin: 0 auto; padding: 64px 40px; border-radius: var(--radius-lg);
  background: var(--charcoal); color: #fff;
}
.cta-box h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; line-height: 1.4; letter-spacing: -0.02em; }
.cta-box p { margin-top: 18px; color: #C9CBCC; font-size: 16px; line-height: 1.7; }
.cta-box .btn-cta { margin-top: 34px; background: var(--accent); }
.cta-box .btn-cta:hover { background: var(--accent-dark); }

@media (max-width: 600px) {
  .cta-section { padding: 70px 0; }
  .cta-box { padding: 44px 24px; }
}

/* ── 허브 사진카드 (세부페이지 하단 내부링크, 페이지당 정확히 1개 섹션) ─── */
.hub-section { padding: 20px 0 0; }
.hub-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.hub-card {
  display: block; border-radius: var(--radius-card); overflow: hidden; border: 1px solid var(--line);
  background: var(--white); transition: transform .2s ease, box-shadow .2s ease;
}
.hub-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.hub-card-photo { display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--bg-soft-2); }
.hub-card-photo img { width: 100%; height: 100%; object-fit: cover; }
.hub-card-title { display: block; padding: 16px 18px; font-weight: 700; font-size: 15.5px; }

@media (max-width: 900px) {
  .hub-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .hub-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .hub-card-title { padding: 12px 14px; font-size: 14px; }
}

/* ── 세부페이지 공통 ─────────────────────────────────────────── */
.page-hero { padding: 52px 0 8px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; color: var(--accent); margin-bottom: 16px; }
.page-hero h1 { font-size: clamp(30px, 4vw, 42px); font-weight: 800; letter-spacing: -0.02em; color: var(--charcoal); }
.page-lead { margin-top: 18px; font-size: 17px; color: var(--muted); max-width: 62ch; line-height: 1.75; }

.detail-photo {
  margin: 36px auto 0; max-width: 420px;
  border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line);
}
.detail-photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; }

.detail-gallery {
  position: relative; margin: 36px auto 0; width: 100%;
  aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); background: var(--bg-soft);
}
.gallery-slide {
  position: absolute; inset: 0; margin: 0; opacity: 0;
  animation-timing-function: ease-in-out; animation-iteration-count: infinite;
}
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-slide figcaption {
  position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 10px 16px;
  font-size: 13px; font-weight: 700; color: #fff;
  background: linear-gradient(0deg, rgba(0,0,0,.55), rgba(0,0,0,0));
}
@media (prefers-reduced-motion: reduce) {
  .gallery-slide { animation: none !important; opacity: 0; }
  .gallery-slide.is-first { opacity: 1; }
}

.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 36px; }
.photo-pair figure { margin: 0; border-radius: var(--radius-card); overflow: hidden; border: 1px solid var(--line); }
.photo-pair img { width: 100%; height: auto; display: block; }
.photo-pair figcaption {
  padding: 12px 16px; font-size: 13.5px; font-weight: 700; color: var(--muted);
  background: var(--bg-soft); border-top: 1px solid var(--line);
}
@media (max-width: 640px) {
  .photo-pair { grid-template-columns: 1fr; }
}

.article-body { max-width: 760px; margin: 56px auto 0; display: flex; flex-direction: column; gap: 40px; }
.article-section h2 {
  display: flex; align-items: center; gap: 12px; font-size: 21px; font-weight: 800; color: var(--charcoal);
  margin-bottom: 14px;
}
.article-section h2 .icon { color: var(--accent); }
.article-section p { color: var(--ink); font-size: 16px; line-height: 1.85; }
.article-section ul { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.article-section li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); font-size: 15.5px; line-height: 1.7; }
.article-section li .icon { color: var(--accent); flex: none; margin-top: 3px; }
.article-section .process-list { display: flex; flex-direction: column; gap: 12px; margin: 14px 0 0; padding-left: 1.4em; }
.article-section .process-list li { display: list-item; color: var(--ink); font-size: 15.5px; line-height: 1.7; }
.article-section .process-list li::marker { color: var(--accent); font-weight: 800; }

.compare-table-wrap { overflow-x: auto; margin-top: 14px; -webkit-overflow-scrolling: touch; }
.compare-table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: 14.5px; }
.compare-table th, .compare-table td { border: 1px solid var(--line); padding: 12px 14px; text-align: left; line-height: 1.6; }
.compare-table th { background: var(--bg-soft); font-weight: 800; color: var(--charcoal); }
.compare-table td { color: var(--ink); }

.cost-factor-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 40px; }
.cost-factor {
  border: 1px solid var(--line); border-radius: var(--radius-card); padding: 26px; background: var(--bg-soft);
}
.cost-factor .icon { color: var(--accent); margin-bottom: 12px; width: 1.6em; height: 1.6em; }
.cost-factor h3 { font-size: 16.5px; font-weight: 800; margin-bottom: 8px; }
.cost-factor p { font-size: 14.5px; color: var(--muted); line-height: 1.7; }
@media (max-width: 640px) {
  .cost-factor-grid { grid-template-columns: 1fr; }
}

/* ── 모달 ─────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(20, 21, 22, 0.55); backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 300;
  opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.modal-overlay.is-open { opacity: 1; pointer-events: auto; }
.modal-box {
  background: #fff; border-radius: var(--radius-lg); max-width: 640px; width: 100%;
  max-height: 88vh; overflow-y: auto; padding: 36px; position: relative;
  transform: translateY(14px) scale(.98); transition: transform .22s ease;
}
.modal-overlay.is-open .modal-box { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute; top: 18px; right: 18px; width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg-soft); display: flex; align-items: center; justify-content: center;
}
.modal-close .icon { width: 18px; height: 18px; }
.modal-eyebrow { font-size: 13px; font-weight: 700; color: var(--accent); margin-bottom: 10px; }
.modal-title { font-size: 24px; font-weight: 800; color: var(--charcoal); margin-bottom: 6px; }
.modal-desc { color: var(--muted); font-size: 15px; margin-bottom: 22px; }
.modal-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
.modal-photos.is-single { grid-template-columns: 1fr; max-width: 340px; margin-left: auto; margin-right: auto; }
.modal-photo { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); position: relative; }
.modal-photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3/4; }
.modal-photo-tag {
  position: absolute; top: 10px; left: 10px; background: rgba(30,33,36,0.82); color: #fff;
  font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: var(--radius-pill);
}
.modal-photo-empty {
  aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center;
  background: var(--bg-soft); color: var(--muted); font-size: 13.5px; text-align: center; padding: 20px;
}
.modal-actions { display: flex; gap: 12px; flex-wrap: wrap; }
body.modal-open { overflow: hidden; }

@media (max-width: 480px) {
  .modal-box { padding: 26px 20px; }
  .modal-title { font-size: 20px; }
}

/* ── 푸터 ─────────────────────────────────────────── */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 52px 0 36px; }
.footer-inner { display: flex; flex-direction: column; gap: 22px; align-items: center; text-align: center; }
.footer-brand { font-size: 17px; font-weight: 800; color: var(--charcoal); }
.footer-meta {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; margin: 0;
}
.footer-meta > div { display: flex; gap: 6px; font-size: 13.5px; color: var(--muted); }
.footer-meta dt { font-weight: 700; color: var(--ink); }
.footer-meta dd { margin: 0; }
.footer-meta a { color: var(--ink); }
.footer-copy { font-size: 12.5px; color: #9EA1A3; }

/* ── 404 ─────────────────────────────────────────── */
.error-page { text-align: center; padding: 90px 0; }
.error-page h1 { font-size: 32px; font-weight: 800; margin: 14px 0; }
