/* 담장보수 · 무한건장 — editorial 테마 / C16 Honest Concrete 팔레트 */
:root {
  --primary: #3D3D3A;
  --accent: #E5B83D;
  --ink: #1A1A18;
  --sub: #666660;
  --line: #DCDCD8;
  --bg-tint: #E5E5E2;
  --bg-main: #F5F5F4;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Pretendard, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg-main);
  word-break: keep-all;
  overflow-wrap: break-word;
  line-height: 1.7;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

h1, h2, h3, h4 {
  font-family: 'Nanum Myeongjo', serif;
  font-weight: 800;
  line-height: 1.35;
  margin: 0 0 14px;
  color: var(--ink);
}
h2 { font-size: clamp(24px, 4vw, 34px); }
h3 { font-size: 19px; }
p { color: var(--ink); margin: 0 0 14px; }
.eyebrow {
  display: block;
  font-family: Pretendard, sans-serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 10px;
  text-transform: uppercase;
}

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(245,245,244,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-family: 'Nanum Myeongjo', serif; font-weight: 800; font-size: 17px; }
.brand-sub { font-size: 11px; color: var(--sub); }
.header-call {
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 2px;
}
.header-call:hover { background: var(--primary); color: var(--bg-main); }

.scroll-progress { position: fixed; top: 0; left: 0; height: 2px; background: var(--accent); z-index: 50; width: 0%; }

/* ── Floating home ── */
.floating-home {
  position: fixed; left: 16px; bottom: 88px; z-index: 30;
  background: var(--bg-main); border: 1px solid var(--line); border-radius: 2px;
  padding: 8px 14px; font-size: 13px; font-weight: 700; color: var(--primary);
}

/* ── Hero (단일이미지) ── */
.hero {
  position: relative;
  display: grid;
  min-height: 58vh;
}
.hero-gallery { grid-area: 1/1; position: relative; height: 100%; }
.hero-gallery img { width: 100%; height: 100%; object-fit: cover; }
.hero-content {
  grid-area: 1/1;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 48px 20px 40px;
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
}
.hero-content::before {
  content: ''; position: absolute; inset: auto 0 0 0; height: 55%;
  background: linear-gradient(to top, rgba(26,26,24,.38), transparent);
  z-index: -1;
}
.hero .eyebrow { color: var(--bg-main); }
.hero h1 {
  color: var(--bg-main);
  font-size: clamp(32px, 6vw, 52px);
  text-shadow: 0 2px 10px rgba(26,26,24,.55);
  margin-bottom: 16px;
}
.hero-lead { color: var(--bg-main); font-size: 16px; text-shadow: 0 1px 6px rgba(26,26,24,.6); max-width: 620px; }
.hero-cta-row { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.stat-strip {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(245,245,244,.35);
  margin-top: 28px; padding-top: 18px; max-width: 480px;
}
.stat-item { color: var(--bg-main); }
.stat-num { display: block; font-family: 'Nanum Myeongjo', serif; font-size: 24px; font-weight: 800; text-shadow: 0 1px 6px rgba(26,26,24,.5); }
.stat-label { font-size: 12px; color: rgba(245,245,244,.85); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 26px; font-size: 15px; font-weight: 700; border-radius: 2px;
  border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--primary); color: var(--bg-main); }
.btn-primary:hover { background: #2A2A27; }
.btn-ghost { background: rgba(245,245,244,.12); color: var(--bg-main); border-color: rgba(245,245,244,.7); }
.btn-ghost:hover { background: rgba(245,245,244,.22); }
.btn-cta-band { background: var(--bg-main); color: var(--primary); }
.btn-cta-band:hover { background: var(--bg-tint); }

/* ── Sub hero ── */
.sub-hero {
  padding: 52px 0 36px;
  border-bottom: 1px solid var(--line);
}
.sub-hero h1 { font-size: clamp(28px, 5vw, 40px); }
.sub-hero .lead { font-size: 16px; color: var(--ink); max-width: 720px; }
.sub-hero-actions { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.sub-hero .btn-primary { background: var(--primary); color: var(--bg-main); }
.sub-hero .btn-ghost { background: var(--bg-main); color: var(--primary); border-color: var(--primary); }
.sub-hero .btn-ghost:hover { background: var(--bg-tint); }

/* ── Section spacing ── */
.section { padding: 56px 0; }
.section-tint { background: var(--bg-tint); }
.section-line { border-top: 1px solid var(--line); }

/* ── Photo gallery (단일사진, 최대 6장, PC 3열/모바일 2열) ── */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 24px 0;
}
@media (min-width: 780px) {
  .photo-gallery { grid-template-columns: repeat(3, 1fr); }
}
.photo-card { margin: 0; cursor: zoom-in; }
.photo-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 2px; }
.photo-card figcaption { font-size: 12.5px; color: var(--sub); margin-top: 6px; }

/* ── Symptom / process ── */
.symptom-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin: 24px 0;
}
@media (min-width: 780px) { .symptom-grid { grid-template-columns: repeat(3, 1fr); } }
.symptom-card { display: flex; gap: 12px; padding: 18px 0; border-top: 1px solid var(--line); }
.symptom-num { font-family: 'Nanum Myeongjo', serif; font-size: 22px; font-weight: 800; color: var(--accent); flex-shrink: 0; }
.symptom-card h3 { margin-bottom: 4px; font-size: 16px; }
.symptom-card p { font-size: 13.5px; color: var(--sub); margin: 0; }

.process-list { list-style: none; margin: 24px 0; padding: 0; display: grid; gap: 0; }
.process-item { display: flex; gap: 18px; padding: 20px 0; border-top: 1px solid var(--line); }
.process-item:last-child { border-bottom: 1px solid var(--line); }
.process-num { font-family: 'Nanum Myeongjo', serif; font-size: 26px; font-weight: 800; color: var(--primary); flex-shrink: 0; width: 44px; }
.process-item h3 { margin-bottom: 4px; }
.process-item p { color: var(--sub); font-size: 14px; margin: 0; }

/* ── Info table / check list / tip box ── */
.info-table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14.5px; }
.info-table th, .info-table td { border-top: 1px solid var(--line); padding: 12px 10px; text-align: left; }
.info-table th { width: 30%; color: var(--sub); font-weight: 700; }
.info-table caption { text-align: left; font-size: 13px; color: var(--sub); margin-bottom: 6px; }

.check-list { margin: 18px 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.check-list li { padding-left: 22px; position: relative; font-size: 14.5px; }
.check-list li::before { content: '—'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

.tip-box { border: 1px solid var(--line); border-left: 3px solid var(--accent); padding: 16px 18px; margin: 20px 0; }
.tip-label { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; color: var(--accent); }
.tip-box p { margin: 6px 0 0; font-size: 14px; }

/* ── Nav cards (6개 고정, PC 3열 / 모바일 2열) ── */
.nav-cards-section { padding: 56px 0 8px; border-top: 1px solid var(--line); }
.nav-cards-title { text-align: center; margin-bottom: 26px; }
.nav-cards-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
}
@media (min-width: 780px) { .nav-cards-grid { grid-template-columns: repeat(3, 1fr); } }
.nav-card {
  display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 2px; overflow: hidden;
  transition: border-color .2s;
}
.nav-card:hover { border-color: var(--primary); }
.nav-card-thumb { display: block; padding-top: 66%; background-size: cover; background-position: center; }
.nav-card-tag { font-size: 11px; color: var(--accent); font-weight: 700; letter-spacing: 0.06em; padding: 12px 14px 0; }
.nav-card-label { font-family: 'Nanum Myeongjo', serif; font-weight: 800; font-size: 16px; padding: 4px 14px 0; }
.nav-card-desc { font-size: 12.5px; color: var(--sub); padding: 4px 14px 14px; }
.last-modified { text-align: center; font-size: 12px; color: var(--sub); margin: 20px 0 0; }

/* ── FAQ ── */
.faq-section { padding: 56px 0; border-top: 1px solid var(--line); }
.faq-layout { display: grid; grid-template-columns: 1fr; gap: 28px; margin-top: 26px; }
@media (min-width: 860px) { .faq-layout { grid-template-columns: 260px 1fr; } }
.faq-aside { border: 1px solid var(--line); padding: 22px; height: fit-content; }
.faq-aside p { font-size: 14px; color: var(--sub); }
.faq-list { display: grid; gap: 0; }
.faq-item { border-top: 1px solid var(--line); padding: 16px 0; }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q { cursor: pointer; list-style: none; }
.faq-q::-webkit-details-marker { display: none; }
.faq-q h3 { display: inline; font-family: Pretendard, sans-serif; font-size: 15.5px; font-weight: 700; }
.faq-a { margin: 10px 0 0; font-size: 14.5px; color: var(--sub); }

/* ── Final CTA ── */
.final-cta { background: var(--primary); padding: 48px 0; }
.final-cta-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 20px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
}
.final-cta h2 { color: var(--bg-main); margin-bottom: 8px; }
.final-cta p { color: rgba(245,245,244,.85); margin-bottom: 14px; }
.final-cta-badges { display: flex; gap: 10px; flex-wrap: wrap; }
.final-cta-badge { font-size: 12px; color: var(--bg-main); border: 1px solid rgba(245,245,244,.4); padding: 5px 12px; border-radius: 2px; }

/* ── Footer (CTA와 여백 없이 붙임) ── */
.site-footer { background: var(--bg-tint); padding: 40px 0 0; margin: 0; }
.footer-grid { padding-bottom: 24px; }
.footer-biz h4 { font-family: Pretendard, sans-serif; font-size: 13px; color: var(--sub); margin-bottom: 10px; }
.footer-biz p { font-size: 13px; color: var(--sub); margin: 3px 0; }
.footer-bottom {
  border-top: 1px solid var(--line); padding: 16px 20px; display: flex; justify-content: space-between;
  font-size: 12px; color: var(--sub);
}

/* ── Mobile CTA bar / back to top ── */
.mobile-cta-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; display: flex; }
.mobile-cta-btn { flex: 1; text-align: center; padding: 14px 0; font-weight: 700; font-size: 14px; }
.mobile-cta-call { background: var(--primary); color: var(--bg-main); }
.mobile-cta-sms { background: var(--accent); color: var(--bg-main); }
.back-to-top {
  position: fixed; right: 16px; bottom: 88px; z-index: 30;
  width: 40px; height: 40px; border-radius: 2px; border: 1px solid var(--line);
  background: var(--bg-main); color: var(--primary); font-size: 18px; cursor: pointer; display: none;
}
.back-to-top.visible { display: block; }

/* ── Lightbox ── */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 60; background: rgba(26,26,24,.88);
  align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; }
.lightbox-close { position: absolute; top: 18px; right: 22px; background: none; border: none; color: var(--bg-main); font-size: 32px; cursor: pointer; }

body { padding-bottom: 56px; }
@media (min-width: 780px) { body { padding-bottom: 0; } .mobile-cta-bar { display: none; } }

@media (max-width: 480px) {
  h1 { font-size: 28px; }
}
