/* ==========================================================================
   상생집수리 · 싱크대교체 — KITCHEN WORKBOOK / EDITORIAL CATALOG
   ========================================================================== */

:root {
  --paper: #FAF9F6;
  --white: #FFFFFF;
  --stainless: #F0F1EF;
  --ink: #24282A;
  --ink-soft: #5C6360;
  --ink-faint: #8B918C;
  --line: #DCDEDA;
  --line-strong: #B7BCB6;
  --accent: #48624F;
  --accent-soft: #E6ECE6;
  --accent-line: #8FA694;

  --font-kr: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --wrap: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-kr);
  color: var(--ink);
  background: var(--paper);
  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; }
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.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.eyebrow .num { color: var(--ink-faint); }

.section-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-faint);
  letter-spacing: 0.08em;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 249, 246, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.site-brand {
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.btn-call {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  padding: 8px 16px;
  border: 1px solid var(--ink);
  color: var(--ink);
  white-space: nowrap;
}

.btn-call:hover { background: var(--ink); color: var(--white); }

/* ---------- hero (editorial cover) ---------- */
.hero {
  position: relative;
  padding: 28px 0 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: stretch;
  gap: 0;
  min-height: 560px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 32px 40px 24px;
}

.hero-copy h1 {
  font-size: clamp(48px, 7vw, 84px);
  line-height: 0.98;
  margin: 14px 0 20px;
}

.hero-copy .lede {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 34ch;
  margin-bottom: 28px;
}

.hero-figure {
  position: relative;
  overflow: hidden;
  background: var(--stainless);
}

.hero-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-tag {
  position: absolute;
  left: 20px;
  bottom: 20px;
  background: var(--white);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 7px 12px;
  color: var(--ink-soft);
  border: 1px solid var(--line);
}

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

.btn-primary {
  background: var(--ink);
  color: var(--white);
  padding: 14px 26px;
  font-weight: 600;
  font-size: 15px;
  display: inline-block;
}
.btn-primary:hover { background: var(--accent); }

.btn-outline {
  border: 1px solid var(--ink);
  padding: 14px 26px;
  font-weight: 600;
  font-size: 15px;
  display: inline-block;
}

/* ---------- section frame ---------- */
.section {
  padding: 88px 0;
  border-top: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 42px);
}

.section-lede {
  max-width: 58ch;
  color: var(--ink-soft);
  font-size: 15.5px;
}

/* ---------- change story ---------- */
.story {
  display: grid;
  gap: 8px;
}

.story-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}

.story-row:first-child { border-top: none; }

.story-row .num {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink-faint);
  padding-top: 6px;
}

.story-row p {
  font-size: clamp(19px, 2.6vw, 26px);
  font-weight: 500;
  line-height: 1.5;
  max-width: 26ch;
}

.story-row.with-photo {
  grid-template-columns: 64px 1fr 220px;
}

.story-row .story-shot {
  overflow: hidden;
  background: var(--stainless);
}
.story-row .story-shot img { width: 100%; height: auto; object-fit: cover; aspect-ratio: 3/4; }

.story-final p {
  font-size: clamp(24px, 3.4vw, 34px);
  color: var(--accent);
}

/* ---------- NSEO editorial catalog ---------- */
.catalog { display: grid; gap: 4px; }

.catalog-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 46px 0;
  border-top: 1px solid var(--line);
}

.catalog-item:last-child { border-bottom: 1px solid var(--line); }

.catalog-item.rev .catalog-media { order: 2; }
.catalog-item.rev .catalog-copy { order: 1; }

.catalog-media {
  overflow: hidden;
  background: var(--stainless);
}
.catalog-media img { width: 100%; height: 100%; object-fit: cover; }

.catalog-item.wide .catalog-media { aspect-ratio: 16/10; }
.catalog-item.wide { grid-template-columns: 1fr; }
.catalog-item.wide .catalog-copy { margin-top: 24px; }

.catalog-item:not(.wide) .catalog-media { aspect-ratio: 4/5; }

.catalog-copy .num {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink-faint);
  display: block;
  margin-bottom: 10px;
}

.catalog-copy h3 {
  font-size: clamp(26px, 3.6vw, 40px);
  margin-bottom: 14px;
}

.catalog-copy p {
  color: var(--ink-soft);
  font-size: 16px;
  max-width: 38ch;
  margin-bottom: 18px;
}

.catalog-item.compact .catalog-copy p { max-width: 30ch; }

.catalog-link {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.05em;
  color: var(--accent);
  border-bottom: 1px solid var(--accent-line);
  padding-bottom: 2px;
  display: inline-block;
}

.catalog-item-link {
  display: contents;
}

/* ---------- before / after ---------- */
.ba-block { margin-bottom: 64px; }
.ba-block:last-child { margin-bottom: 0; }

.ba-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--line);
}

.ba-shot { position: relative; overflow: hidden; background: var(--stainless); }
.ba-shot img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; }
.ba-shot em {
  position: absolute;
  top: 14px;
  left: 14px;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  background: var(--white);
  padding: 5px 10px;
  color: var(--ink);
}
.ba-shot.ba-after em { background: var(--accent); color: var(--white); }

.ba-pair figcaption {
  grid-column: 1 / -1;
  background: var(--paper);
  padding: 14px 4px 0;
  font-size: 14px;
  color: var(--ink-soft);
}

/* ---------- kitchen detail strip ---------- */
.detail-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}

.detail-strip figure { overflow: hidden; background: var(--stainless); }
.detail-strip figure img { width: 100%; height: 100%; object-fit: cover; }

.detail-strip .span-2 { grid-column: span 2; }
.detail-strip .tall img { aspect-ratio: 3/4; }
.detail-strip .wide img { aspect-ratio: 4/3; }
.detail-strip .square img { aspect-ratio: 1/1; }

/* ---------- 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 4px;
  font-weight: 600;
  font-size: 16.5px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-toggle {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line-strong);
  color: var(--ink-soft);
  transition: transform .2s ease;
}

.faq-item[open] .faq-toggle { transform: rotate(45deg); }

.faq-a { padding: 0 4px 22px; color: var(--ink-soft); font-size: 15px; max-width: 70ch; }

/* ---------- about & cta ---------- */
.about-cta {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.about-copy p {
  font-size: clamp(18px, 2.2vw, 23px);
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 10px;
}

.about-copy .brand-line {
  margin-top: 26px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.about-cta-box {
  border: 1px solid var(--line-strong);
  padding: 36px 30px;
  background: var(--white);
}

.about-cta-box p { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 22px; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 44px 0 100px;
  background: var(--stainless);
}

.footer-brand { font-weight: 800; font-size: 18px; margin-bottom: 16px; }

.footer-meta {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 24px 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 ---------- */
.mobile-cta-bar { display: none; }

/* ---------- NSEO detail page ---------- */
.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: 40px;
  align-items: center;
  padding: 20px 0 60px;
}

.page-hero.flip .page-hero-media { order: 2; }
.page-hero.flip .page-hero-copy { order: 1; }

.page-hero-media { overflow: hidden; background: var(--stainless); }
.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(34px, 5vw, 56px);
  margin-bottom: 18px;
}

.page-hero-copy .lede {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 40ch;
}

.section-basic { padding: 60px 0; }
.section-basic h2 { font-size: clamp(24px, 3.4vw, 32px); margin-bottom: 20px; }
.section-basic p { color: var(--ink-soft); font-size: 15.5px; max-width: 68ch; margin-bottom: 14px; }
.section-basic p.ba-lede { margin-bottom: 20px; }

.plain-list { border-top: 1px solid var(--line); }
.plain-list li { border-bottom: 1px solid var(--line); padding: 14px 4px; }
.plain-list a { display: flex; align-items: center; gap: 10px; }

.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(--stainless);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  font-weight: 500;
}

.detail-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 8px 0 20px;
}
.detail-photos figure { overflow: hidden; background: var(--stainless); }
.detail-photos img { width: 100%; height: auto; aspect-ratio: 3/4; object-fit: cover; }

.related-section { padding: 60px 0; border-top: 1px solid var(--line); }
.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.related-card { display: block; }
.related-shot { display: block; overflow: hidden; background: var(--stainless); margin-bottom: 10px; }
.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 { font-size: 14.5px; font-weight: 600; }

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

.dates-note { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-faint); margin-top: 8px; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; min-height: auto; }
  .hero-figure { aspect-ratio: 4/3; }
  .hero-copy { padding: 32px 4px 28px; }

  .story-row { grid-template-columns: 40px 1fr; }
  .story-row.with-photo { grid-template-columns: 40px 1fr; }
  .story-row.with-photo .story-shot { grid-column: 2 / -1; margin-top: 14px; max-width: 200px; }

  .catalog-item,
  .catalog-item.rev { grid-template-columns: 1fr; gap: 20px; }
  .catalog-item.rev .catalog-media { order: 1; }
  .catalog-item.rev .catalog-copy { order: 2; }
  .catalog-item:not(.wide) .catalog-media { aspect-ratio: 4/3; }

  .ba-pair { grid-template-columns: 1fr 1fr; }
  .ba-shot img { aspect-ratio: 4/3; }

  .detail-strip { grid-template-columns: repeat(3, 1fr); }
  .detail-strip .span-2 { grid-column: span 1; }

  .about-cta { grid-template-columns: 1fr; gap: 32px; }

  .footer-meta { grid-template-columns: repeat(2, auto); }

  .page-hero, .page-hero.flip { grid-template-columns: 1fr; }
  .page-hero.flip .page-hero-media { order: 1; }
  .page-hero.flip .page-hero-copy { order: 2; }
  .page-hero-media img { aspect-ratio: 4/3; }

  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-photos { grid-template-columns: repeat(2, 1fr); }

  .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;
  }
  body { padding-bottom: 0; }
  .site-footer { padding-bottom: 90px; }
}

@media (max-width: 600px) {
  .wrap { padding: 0 18px; }
  .section { padding: 60px 0; }
  .section-head { margin-bottom: 30px; }
  .hero-copy h1 { font-size: clamp(38px, 11vw, 54px); }
  .detail-strip { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
