/* 테마 A / hero-grid / 패턴1 / grid-4 / label-number / btn-pill / brown #D4B8A8 */

:root {
  --primary: #D4B8A8;
  --primary-dark: #B89684;
  --primary-rgb: 212, 184, 168;
  --text: #2B2622;
  --text-muted: #756B63;
  --border: #E7E0D9;
  --bg: #FFFFFF;
  --bg-soft: #FAF7F4;
  --card-radius: 0;
  --btn-radius: 999px;
  --max-w: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Noto Sans KR", sans-serif;
  color: var(--text);
  background: var(--bg);
  word-break: keep-all;
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.35; }
p { margin: 0; }
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section-soft { background: var(--bg-soft); }
@media (max-width: 640px) { .section { padding: 56px 0; } }

/* 레이블: 숫자라인형 */
.label-number {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .85rem;
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: .04em;
  margin-bottom: 14px;
}
.label-number::before {
  content: '';
  width: 28px; height: 2px;
  background: var(--primary);
}

.section-title { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; }
.section-sub { margin-top: 12px; color: var(--text-muted); font-size: 1rem; }
.section-head { margin-bottom: 44px; }

/* 버튼: 필형 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--btn-radius);
  font-weight: 700;
  font-size: .95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .2s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { background: transparent; border-color: var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary-dark); }
.btn-sm { padding: 10px 20px; font-size: .85rem; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { font-size: 1.15rem; font-weight: 800; }
.logo span { color: var(--primary-dark); }
.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav a { font-size: .92rem; font-weight: 600; color: var(--text); }
.main-nav a:hover { color: var(--primary-dark); }
.header-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; }
@media (max-width: 900px) {
  .main-nav { position: fixed; top: 76px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: flex-start; padding: 20px 24px; gap: 18px; border-bottom: 1px solid var(--border); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: all .2s; }
  .main-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-toggle { display: block; }
}

/* Hero grid (사진그리드형) */
.hero-grid-section { padding: 56px 0 72px; }
.hero-grid-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.hero-copy .eyebrow { font-size: .85rem; font-weight: 700; color: var(--primary-dark); letter-spacing: .06em; margin-bottom: 16px; }
.hero-copy h1 { font-size: clamp(2.1rem, 4vw, 3rem); font-weight: 800; margin-bottom: 10px; }
.hero-copy .hero-sub { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 600; color: var(--primary-dark); margin-bottom: 18px; }
.hero-copy .desc { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 28px; }
.hero-badges { display: flex; gap: 24px; margin-top: 32px; flex-wrap: wrap; }
.hero-badge { font-size: .85rem; color: var(--text-muted); padding-left: 16px; border-left: 2px solid var(--primary); }
.hero-badge strong { display: block; color: var(--text); font-size: .98rem; }
.hero-photo-single { margin: 0; }
.hero-photo-single a { display: block; height: 440px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.12); }
.hero-photo-single img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-photo-single figcaption { margin-top: 14px; font-size: .85rem; color: var(--text-muted); text-align: center; }
@media (max-width: 900px) {
  .hero-grid-layout { grid-template-columns: 1fr; }
  .hero-photo-single a { height: 320px; }
}

/* 배너 (블록2) */
.mid-banner {
  background: linear-gradient(120deg, var(--primary), var(--primary-dark));
  border-radius: 0;
  padding: 40px 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  color: #fff;
}
.mid-banner h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: 8px; }
.mid-banner p { color: rgba(255,255,255,.85); }
.mid-banner .btn-outline { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.5); color: #fff; }

/* 카드 그리드 4열 */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-4 { grid-template-columns: 1fr; } }

.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 1024px) { .portfolio-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .portfolio-grid { grid-template-columns: 1fr; } }

.portfolio-card {
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  overflow: hidden;
  transition: all .3s;
  cursor: pointer;
  text-decoration: none;
  display: block;
  background: #fff;
}
.portfolio-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,.14); border-color: var(--primary); }
.portfolio-card .thumb { aspect-ratio: 4/3; overflow: hidden; }
.portfolio-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.portfolio-card .body { padding: 20px; }
.portfolio-card .badge { display: inline-block; font-size: .72rem; font-weight: 700; color: var(--primary-dark); background: rgba(var(--primary-rgb), .16); padding: 4px 12px; border-radius: 999px; margin-bottom: 10px; }
.portfolio-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.portfolio-card .meta { font-size: .82rem; color: var(--text-muted); }

/* 서비스 카드 */
.service-card { border: 1px solid var(--border); border-radius: var(--card-radius); padding: 28px; background: #fff; }
.service-card .num { font-size: .8rem; font-weight: 800; color: var(--primary-dark); }
.service-card img { border-radius: 0; aspect-ratio: 4/3; object-fit: cover; margin-bottom: 16px; }
.service-card h3 { font-size: 1.05rem; font-weight: 700; margin: 10px 0 8px; }
.service-card p { color: var(--text-muted); font-size: .9rem; }

/* 프로세스 */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: step; }
@media (max-width: 900px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .process-grid { grid-template-columns: 1fr; } }
.process-step { position: relative; padding: 28px 22px; border-radius: var(--card-radius); background: var(--bg-soft); }
.process-step .step-num { font-size: 1.6rem; font-weight: 800; color: var(--primary); margin-bottom: 12px; }
.process-step h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.process-step p { font-size: .88rem; color: var(--text-muted); }

/* 회사소개 */
.about-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .about-layout { grid-template-columns: 1fr; } }
.about-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 28px; }
.about-fact { padding: 18px 20px; border: 1px solid var(--border); border-radius: 0; }
.about-fact .k { font-size: .78rem; color: var(--text-muted); margin-bottom: 4px; }
.about-fact .v { font-weight: 700; }

/* 후기 */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 900px) { .review-grid { grid-template-columns: 1fr; } }
.review-card { border: 1px solid var(--border); border-radius: var(--card-radius); padding: 26px; background: var(--bg-soft); }
.review-card .stars { color: var(--primary-dark); font-size: .9rem; margin-bottom: 12px; }
.review-card p { font-size: .92rem; }
.review-card .who { margin-top: 16px; font-size: .82rem; color: var(--text-muted); }

/* 서비스지역 */
.area-list { display: flex; flex-wrap: wrap; gap: 10px; }
.area-chip { padding: 8px 18px; border: 1px solid var(--border); border-radius: 999px; font-size: .85rem; color: var(--text-muted); }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { padding: 22px 4px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; font-weight: 700; gap: 16px; }
.faq-q .icon { flex-shrink: 0; transition: transform .2s; color: var(--primary-dark); }
.faq-item.open .faq-q .icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; color: var(--text-muted); font-size: .92rem; }
.faq-item.open .faq-a { max-height: 320px; }
.faq-a-inner { padding: 0 4px 22px; }

/* CTA */
.cta-section { background: var(--bg-soft); text-align: center; }
.trust-badges { display: flex; justify-content: center; gap: 32px; flex-wrap: wrap; margin: 32px 0 36px; }
.trust-badge { font-size: .85rem; color: var(--text-muted); text-align: center; }
.trust-badge strong { display: block; font-size: 1.15rem; color: var(--text); margin-bottom: 4px; }

/* Footer */
.site-footer { background: #211D1A; color: #C9C2BB; padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 16px; }
.site-footer a { color: #C9C2BB; font-size: .88rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-bottom { border-top: 1px solid #3A342E; margin-top: 40px; padding-top: 24px; font-size: .78rem; color: #8A8177; }

/* Floating */
.floating-btns { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.floating-btn { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--primary); color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.floating-btn.alt { background: #211D1A; }

/* 시공사례 상세 - 블로그형 스토리 */
.detail-hero { position: relative; padding: 120px 0 60px; color: #fff; background-size: cover; background-position: center; }
.detail-hero::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.detail-hero .wrap { position: relative; }
.detail-hero .back-link { display: inline-block; margin-bottom: 18px; font-size: .85rem; opacity: .9; }
.detail-hero h1 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 800; }
.detail-hero .loc { margin-top: 10px; opacity: .9; }

.info-bar { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--border); border-radius: var(--card-radius); overflow: hidden; margin-top: -48px; position: relative; background: #fff; }
@media (max-width: 700px) { .info-bar { grid-template-columns: repeat(2, 1fr); } }
.info-bar div { padding: 22px; border-right: 1px solid var(--border); }
.info-bar div:last-child { border-right: none; }
.info-bar .k { font-size: .78rem; color: var(--text-muted); margin-bottom: 6px; }
.info-bar .v { font-weight: 700; }

.story-body { max-width: 720px; margin: 0 auto; font-size: 1rem; line-height: 1.9; }
.story-body h2 { font-size: 1.4rem; font-weight: 800; margin: 48px 0 18px; }
.story-body h3 { font-size: 1.15rem; font-weight: 700; margin: 36px 0 14px; }
.story-body p { margin-bottom: 1.5rem; }
.story-body figure { margin: 2rem 0; }
.story-body figure img { width: 100%; border-radius: var(--card-radius); }
.story-body figcaption { margin-top: .5rem; font-size: .85rem; color: var(--text-muted); text-align: center; }
.story-body mark {
  background: rgba(var(--primary-rgb), .35);
  padding: 0.05em 0.2em;
  border-radius: 2px;
  font-weight: 700;
}
.story-quote {
  max-width: 720px; margin: 2rem auto;
  border-left: 3px solid var(--primary);
  padding: 1rem 1.5rem;
  font-size: 1.05rem;
  font-style: italic;
  background: rgba(var(--primary-rgb), .06);
}
.story-quote .signature { display: block; margin-top: .75rem; font-size: .85rem; font-style: normal; color: var(--text-muted); text-align: right; }
.result-box { max-width: 720px; margin: 0 auto 2rem; background: var(--bg-soft); border-radius: var(--card-radius); padding: 28px 32px; }
.result-box h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 14px; }
.result-box ul { margin: 0; padding-left: 20px; color: var(--text-muted); font-size: .95rem; }
.result-box li { margin-bottom: 8px; }
.related-links { max-width: 720px; margin: 0 auto; display: flex; gap: 12px; flex-wrap: wrap; }

/* NSEO 페이지 */
.nseo-hero { padding: 80px 0 60px; background: var(--bg-soft); text-align: center; }
.nseo-hero h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 800; }
.nseo-hero .sub { margin-top: 16px; color: var(--text-muted); font-size: 1.05rem; max-width: 640px; margin-left: auto; margin-right: auto; }
.related-page-list { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--border); }
.related-page-list a { display: flex; justify-content: space-between; padding: 18px 4px; border-bottom: 1px solid var(--border); font-weight: 600; }
.related-page-list a:hover { color: var(--primary-dark); }

.consult-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 768px) { .consult-steps { grid-template-columns: 1fr; } }

/* E-1 캡션 이미지 갤러리 */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
.gallery-grid figure { margin: 0; }
.gallery-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 0; }
.gallery-grid figcaption { margin-top: .6rem; font-size: .82rem; color: var(--text-muted); }

/* NSEO 본문 패턴 B: 비교표 / 체크리스트 */
.compare-table { max-width: 720px; margin: 0 auto 2.5rem; width: 100%; border-collapse: collapse; }
.compare-table th, .compare-table td { border: 1px solid var(--border); padding: 14px 16px; font-size: .92rem; text-align: left; }
.compare-table th { background: var(--bg-soft); font-weight: 700; }
.compare-table td.hl { background: rgba(var(--primary-rgb), .08); font-weight: 700; color: var(--primary-dark); }
.checklist { max-width: 720px; margin: 0 auto 2rem; list-style: none; padding: 0; }
.checklist li { display: flex; gap: 12px; padding: 14px 4px; border-bottom: 1px solid var(--border); font-size: .95rem; }
.checklist li::before { content: '✓'; flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--primary); color: #fff; font-size: .78rem; font-weight: 800; display: flex; align-items: center; justify-content: center; }
