/*
  DESIGN TOKENS — Field Documentation / Technical Editorial
  화강석 실측 톤(따뜻한 스톤그레이·잉크블랙) + 현장 안전테이프 앰버.
  ink와 charcoal-surface는 동일 값 — "벽의 그림자"와 "그 벽을 설명하는 글자"가 같은 톤이라는 의도.
*/
:root {
  --ink: #211f1c;
  --stone: #e5e1d8;
  --stone-2: #d8d1c3;
  --line: #b3aa9a;
  --amber: #d99a2b;
  --amber-ink: #6b4a10;
  --rust: #a8432b;
  --paper: #f4f2ed;

  --font-display: -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  --font-body: var(--font-display);
  --font-mono: ui-monospace, "SFMono-Regular", "Noto Sans Mono", Menlo, Consolas, monospace;

  --gap: clamp(1.25rem, 3vw, 2.5rem);
  --radius: 0;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 0.6em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

/* ── header ─────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem var(--gap);
  background: var(--ink);
  color: var(--paper);
  border-bottom: 1px solid #000;
}
.site-logo {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
  font-size: 1.05rem;
}
.site-nav { display: flex; align-items: center; gap: 1.4rem; }
.site-nav a { text-decoration: none; font-size: 0.92rem; color: var(--paper); opacity: 0.85; }
.site-nav a:hover { opacity: 1; }
.site-nav .call {
  font-family: var(--font-mono);
  color: var(--ink);
  background: var(--amber);
  padding: 0.45rem 0.85rem;
  opacity: 1;
  font-weight: 700;
}

/* ── layout rhythm ──────────────────────────────────── */
main { display: block; }
section { padding: clamp(2.5rem, 6vw, 4.5rem) var(--gap); max-width: 76rem; margin: 0 auto; }
section.bleed { max-width: none; }
section + section { border-top: 1px solid var(--line); }
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--amber-ink);
  border: 1px solid var(--amber);
  padding: 0.2rem 0.55rem;
  margin-bottom: 0.9rem;
}

/* ── hero (asymmetric split) ────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: minmax(280px, 38%) 1fr;
  min-height: min(88vh, 700px);
  background: var(--ink);
  color: var(--paper);
}
.hero-text {
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.1rem;
}
.hero-text h1 { color: #fff; }
.hero-text p { color: #d8d3c8; max-width: 34ch; }
.hero-media { position: relative; overflow: hidden; background: #000; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; animation: reveal 0.9s ease-out 0.15s forwards;
}
@keyframes reveal { from { opacity: 0; transform: scale(1.03); } to { opacity: 1; transform: scale(1); } }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.85rem 1.4rem;
  background: var(--amber);
  color: var(--ink);
  border: 1px solid var(--amber);
}
.btn:hover { background: var(--paper); }
.btn--ghost { background: transparent; color: var(--paper); border-color: #6b675e; }
.btn--ghost:hover { border-color: var(--paper); }

/* ── field inspection tag (signature element) ──────── */
.tagged-photo { position: relative; }
.tagged-photo img { width: 100%; }
.photo-tag {
  position: absolute;
  left: 0.8rem;
  bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(33, 31, 28, 0.92);
  color: var(--paper);
  border-left: 3px solid var(--amber);
  padding: 0.4rem 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  transform: translateY(0);
  transition: transform 0.2s ease;
}
.photo-tag b { color: var(--amber); font-weight: 700; }
@media (hover: hover) {
  .tagged-photo .photo-tag { transform: translateY(4px); opacity: 0.88; }
  .tagged-photo:hover .photo-tag { transform: translateY(0); opacity: 1; }
}

/* ── feature banner (single-service, main page) ────── */
.feature-banner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--gap);
  align-items: center;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  background: var(--paper);
}
.feature-banner .tagged-photo { align-self: stretch; }
.feature-banner .tagged-photo img { height: 100%; object-fit: cover; }
.feature-banner-copy { padding: clamp(1.5rem, 3vw, 2.5rem); }
.feature-banner-copy p { color: #4a463f; }
.feature-banner-copy .btn { margin-top: 0.5rem; }

/* ── damage gallery (editorial grid) ───────────────── */
.damage-gallery {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--line);
}
.damage-gallery li { background: var(--paper); }
.damage-gallery li:nth-child(1) { grid-column: span 4; }
.damage-gallery li:nth-child(2) { grid-column: span 2; }
.damage-gallery li:nth-child(3) { grid-column: span 2; }
.damage-gallery li:nth-child(4) { grid-column: span 2; }
.damage-gallery li:nth-child(5) { grid-column: span 2; }
.damage-gallery li:nth-child(6) { grid-column: span 4; }
.damage-gallery .tagged-photo img { aspect-ratio: 4 / 3; object-fit: cover; }
.damage-gallery p { padding: 0.9rem 1rem 1.1rem; margin: 0; font-size: 0.92rem; color: #4a463f; }

/* ── table (process / repair method) ───────────────── */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; background: var(--paper); }
caption { display: none; }
th, td { text-align: left; padding: 0.85rem 1.1rem; border-bottom: 1px solid var(--line); }
thead th {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--amber-ink);
  background: var(--stone-2);
  border-bottom: 1px solid var(--line);
}
tbody tr:last-child td { border-bottom: none; }
tbody td:first-child { font-weight: 700; }

/* ── FAQ (native <details>) ────────────────────────── */
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 0.2rem;
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: "+";
  font-family: var(--font-mono);
  color: var(--amber);
  font-weight: 700;
  flex-shrink: 0;
}
.faq-item[open] summary::before { content: "–"; }
.faq-item summary h3 { display: inline; margin: 0; font-size: 1rem; }
.faq-item .faq-a { padding: 0 0.2rem 1.2rem 1.6rem; color: #4a463f; max-width: 62ch; }

/* ── CTA band ───────────────────────────────────────── */
.cta-band {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(2.5rem, 6vw, 4rem) var(--gap);
  text-align: center;
  border-top: 1px solid #000;
}
.cta-band .eyebrow { color: var(--amber); border-color: var(--amber); }
.cta-band .phone {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  margin: 0.6rem 0 1.2rem;
  letter-spacing: 0.02em;
}
.cta-band .phone:hover { color: var(--amber); }

/* ── footer ─────────────────────────────────────────── */
.site-footer {
  background: var(--stone-2);
  border-top: 1px solid var(--line);
  padding: 1.4rem var(--gap);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: #57534a;
}
.site-footer .biz-info { margin: 0 0 0.3rem; letter-spacing: 0.01em; }
.site-footer .page-modified { margin: 0; opacity: 0.8; }

/* ── scroll reveal ──────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ── responsive ─────────────────────────────────────── */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-media { aspect-ratio: 4 / 3; }
  .feature-banner { grid-template-columns: 1fr; }
  .feature-banner .tagged-photo img { aspect-ratio: 16 / 10; }
  .damage-gallery { grid-template-columns: repeat(2, 1fr); }
  .damage-gallery li:nth-child(1),
  .damage-gallery li:nth-child(6) { grid-column: span 2; }
  .site-nav { gap: 0.8rem; }
  .site-nav a:not(.call) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-media img { animation: none; opacity: 1; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .photo-tag { transition: none; }
}
