/* 테마C(신뢰형 인덱스구조) / grid-4 / label-none / btn-square / 그린 파스텔 #B8D8B0 */

:root {
    --primary: #B8D8B0;
    --primary-dark: #6FA168;
    --ink: #1F2A24;
    --ink-soft: #4B584F;
    --line: #E1E8DE;
    --bg-soft: #F5F8F3;
    --white: #FFFFFF;
    --radius: 1.25rem;
    --radius-sm: 0.75rem;
    --radius-btn: 0.4rem;
    --font-head: "Paperlogy", "Pretendard Variable", -apple-system, sans-serif;
    --font-body: "Pretendard Variable", "Paperlogy", -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--white);
    line-height: 1.7;
}
h1, h2, h3, h4 {
    font-family: var(--font-head);
    font-weight: 800;
    line-height: 1.35;
    margin: 0 0 0.75rem;
}
p { margin: 0 0 1rem; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.85rem 1.6rem;
    border-radius: var(--radius-btn);
    font-weight: 700;
    font-family: var(--font-head);
    border: 1px solid transparent;
    cursor: pointer;
}
.btn-primary { background: var(--primary-dark); color: var(--white); }
.btn-primary:hover { background: #5c8a56; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--bg-soft); }

/* header */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,0.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 1.5rem; }
.brand { font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; color: var(--ink); }
.site-nav { display: flex; gap: 1.5rem; font-weight: 600; font-size: 0.95rem; }
.site-nav a:hover { color: var(--primary-dark); }
.header-cta { padding: 0.6rem 1.2rem; font-size: 0.95rem; }

@media (max-width: 720px) {
    .site-header__inner { height: 60px; gap: 0.6rem; }
    .site-nav { display: none; }
    .brand { font-size: 1.1rem; }
    .header-cta { padding: 0.5rem 0.8rem; font-size: 0.85rem; white-space: nowrap; }
}

/* section shell (label-none: 헤딩만 노출, 상단 라벨 없음) */
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-soft); }
.section-head { max-width: 640px; margin: 0 0 2.5rem; }
.section-head h1, .section-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.section-head p { color: var(--ink-soft); }

/* hero-statement (테마C 고정) */
.hero-statement { padding: 4.5rem 0 4rem; }
.hero-statement--top { background: linear-gradient(180deg, var(--bg-soft) 0%, var(--white) 100%); border-bottom: 1px solid var(--line); }
.hero-statement .breadcrumb-label { display: inline-block; font-weight: 700; color: var(--primary-dark); margin-bottom: 1rem; font-size: 0.9rem; }
.hero-statement h1 { font-size: clamp(2.1rem, 4.5vw, 3rem); }
.hero-statement .positioning { font-size: 1.15rem; font-weight: 700; color: var(--ink-soft); margin-bottom: 1rem; }
.hero-statement .description { max-width: 640px; color: var(--ink-soft); }
.cta-group { display: flex; gap: 0.75rem; margin: 1.75rem 0; flex-wrap: wrap; }
.hero-statement .tag-list { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.hero-statement .tag-list span { padding: 0.4rem 0.9rem; background: var(--bg-soft); border-radius: var(--radius-btn); font-size: 0.85rem; color: var(--ink-soft); border: 1px solid var(--line); }

/* grid-4 카드 그리드 (포트폴리오/서비스 공용) */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-4 { grid-template-columns: 1fr; } }

.card-portfolio { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.card-portfolio__img { aspect-ratio: 4/3; overflow: hidden; }
.card-portfolio__img img { width: 100%; height: 100%; object-fit: cover; }
.card-portfolio__body { padding: 1.1rem 1.2rem 1.4rem; }
.card-portfolio__badge { display: inline-block; font-size: 0.75rem; font-weight: 700; color: var(--primary-dark); margin-bottom: 0.4rem; }
.card-portfolio__title { font-family: var(--font-head); font-weight: 700; font-size: 1rem; margin-bottom: 0.3rem; }
.card-portfolio__loc { font-size: 0.85rem; color: var(--ink-soft); }
.card-portfolio__more { margin-top: 0.8rem; font-size: 0.85rem; font-weight: 700; color: var(--primary-dark); }
.card-portfolio:hover .card-portfolio__more { text-decoration: underline; }

/* grid-3: 시공사례(포트폴리오) 전용 3열 그리드, 카드 이미지 확대 */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-3 .card-portfolio__img { aspect-ratio: 16/10; }
@media (max-width: 960px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-3 { grid-template-columns: 1fr; } }

/* 중간 배너 */
.banner-mid { background: var(--primary); border-radius: var(--radius); padding: 2.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-top: 2.5rem; }
.banner-mid h3 { margin: 0 0 0.3rem; }
.banner-mid p { margin: 0; color: var(--ink-soft); }

/* 서비스 + 갤러리 */
.service-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; background: var(--white); }
.service-card h3 { font-size: 1.1rem; }
.service-card p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 0; }

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.5rem; }
@media (max-width: 720px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
.gallery-item { border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); }
.gallery-item img { aspect-ratio: 1/1; object-fit: cover; }
.gallery-caption { padding: 0.7rem 0.9rem; font-size: 0.85rem; color: var(--ink-soft); }

/* 프로세스 */
.process-steps { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); gap: 1.25rem; counter-reset: step; }
@media (max-width: 860px) { .process-steps { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 560px) { .process-steps { grid-template-columns: 1fr !important; } }
.process-step { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.process-step::before { counter-increment: step; content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 2.2rem; height: 2.2rem; border-radius: var(--radius-btn); background: var(--primary); font-family: var(--font-head); font-weight: 800; margin-bottom: 0.8rem; }

/* STATEMENT */
.statement-section { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
@media (max-width: 860px) { .statement-section { grid-template-columns: 1fr; } }
.statement-section .declaration { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.4rem, 3vw, 2rem); }
.statement-section img { border-radius: var(--radius); }

/* TRUST */
.trust-table { width: 100%; border-collapse: collapse; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.trust-table th, .trust-table td { text-align: left; padding: 1rem 1.4rem; border-bottom: 1px solid var(--line); }
.trust-table th { width: 180px; background: var(--bg-soft); font-family: var(--font-head); }
.trust-table tr:last-child th, .trust-table tr:last-child td { border-bottom: none; }

@media (max-width: 560px) {
    .trust-table th, .trust-table td { padding: 0.8rem 1rem; }
    .trust-table th { width: 110px; font-size: 0.9rem; }
}

/* INDEX (NSEO 인덱스) */
.index-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
@media (max-width: 720px) { .index-grid { grid-template-columns: 1fr; } }
.index-card { display: flex; gap: 1.1rem; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; background: var(--white); }
.index-card__num { font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; color: var(--primary-dark); width: 2.4rem; flex-shrink: 0; }
.index-card__thumb { width: 72px; height: 72px; border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0; }
.index-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.index-card__type { font-size: 0.78rem; color: var(--primary-dark); font-weight: 700; }
.index-card__title { font-family: var(--font-head); font-weight: 700; }

/* EXPERTISE */
.expertise-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
@media (max-width: 960px) { .expertise-grid { grid-template-columns: repeat(2, 1fr); } }
.expertise-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.expertise-card h3 { font-size: 1.05rem; }
.expertise-card ul { margin-top: 0.6rem; }
.expertise-card li { font-size: 0.9rem; color: var(--ink-soft); padding-left: 1.1rem; position: relative; margin-bottom: 0.4rem; }
.expertise-card li::before { content: ""; position: absolute; left: 0; top: 0.55rem; width: 6px; height: 6px; background: var(--primary-dark); border-radius: 50%; }

/* 고객후기 */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 860px) { .review-grid { grid-template-columns: 1fr; } }
.review-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; background: var(--bg-soft); }
.review-card__name { font-weight: 700; margin-top: 1rem; font-size: 0.9rem; color: var(--ink-soft); }

/* GUIDE */
.guide-links { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.guide-links a { padding: 0.7rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius-btn); font-weight: 600; font-size: 0.92rem; }
.guide-links a:hover { border-color: var(--primary-dark); color: var(--primary-dark); }

/* 서비스지역 */
.area-list { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.area-list span { padding: 0.5rem 1rem; background: var(--bg-soft); border-radius: var(--radius-btn); font-size: 0.9rem; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--line); padding: 1.3rem 0; }
.faq-item h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.faq-item p { color: var(--ink-soft); margin: 0; font-size: 0.95rem; }

/* 미니멀 CTA */
.cta-minimal { text-align: center; background: var(--ink); color: var(--white); border-radius: var(--radius); padding: 3.5rem 2rem; }
.cta-minimal h2 { color: var(--white); }
.cta-minimal .btn-primary { background: var(--primary); color: var(--ink); }
.cta-minimal .btn-primary:hover { background: var(--primary-dark); color: var(--white); }

.checklist { list-style: none; padding: 0; margin: 1.5rem 0; }
.checklist li { padding: 0.6rem 0 0.6rem 1.8rem; border-bottom: 1px solid var(--line); position: relative; }
.checklist li::before { content: '✓'; position: absolute; left: 0; color: var(--primary-dark); font-weight: 800; }
.blog-body p { color: var(--ink-soft); line-height: 1.8; margin-bottom: 1.2rem; }
/* 섹션·헤딩 구분 */
.blog-body h2 { font-size: 1.35rem; margin: 3.5rem 0 1.2rem; padding: 2.2rem 0 0 1rem; border-top: 2px solid var(--line); position: relative; }
.blog-body h2::before { content: ""; position: absolute; left: 0; top: 2.2rem; bottom: 0.1rem; width: 4px; border-radius: 2px; background: var(--primary-dark); }
.blog-body > .wrap > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.blog-body > .wrap > h2:first-child::before { top: 0; }
.blog-body h3 { font-size: 1.05rem; margin: 2rem 0 0.6rem; color: var(--ink); }
.blog-body .process-step h3, .blog-body .faq-item h3 { margin-top: 0; }
.blog-body .faq-item h3::before { content: "Q. "; color: var(--primary-dark); }
.blog-body .checklist, .blog-body .trust-table, .blog-body .process-steps { margin-bottom: 1.5rem; }

/* footer */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 3rem 0 2rem; margin-top: 2rem; }
.site-footer__brand { font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; margin-bottom: 0.8rem; }
.site-footer__info { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 1.2rem; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 0.9rem; font-size: 0.85rem; margin-bottom: 1.2rem; }
.site-footer__nav a:hover { color: var(--primary-dark); }
.site-footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }
.site-footer__copy { font-size: 0.78rem; color: var(--ink-soft); margin: 0; }
.site-footer__bottom a { font-size: 0.78rem; color: var(--ink-soft); }
.site-footer__bottom a:hover { color: var(--primary-dark); }

.sitemap-list { list-style: none; padding: 0; margin: 0 0 2rem; }
.sitemap-list li { border-bottom: 1px solid var(--line); }
.sitemap-list a { display: block; padding: 0.85rem 0.2rem; }
.sitemap-list a:hover { color: var(--primary-dark); }

/* floating CTA */
.floating-cta { position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 50; background: var(--ink); color: var(--white); padding: 0.9rem 1.4rem; border-radius: var(--radius-btn); font-weight: 700; box-shadow: 0 10px 24px rgba(0,0,0,0.18); }

/* 시공사례 상세 - 스토리텔링 블로그 */
.breadcrumb { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 1rem; }
.breadcrumb a:hover { color: var(--primary-dark); }
.story-meta { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 2rem; }
.story-body { max-width: 720px; margin: 0 auto; }
.story-body h2 { font-size: 1.3rem; margin-top: 2.5rem; }
.story-body p { color: var(--ink-soft); font-size: 1.02rem; }
.story-body mark { background: linear-gradient(180deg, transparent 60%, var(--primary) 60%); color: var(--ink); padding: 0 0.1rem; }
.story-body figure { margin: 2rem 0; }
.story-body figure img { border-radius: var(--radius); }
.story-body figcaption { text-align: center; font-size: 0.85rem; color: var(--ink-soft); margin-top: 0.6rem; }
.story-summary { max-width: 720px; margin: 2.5rem auto 0; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.8rem; }
.story-summary li { padding-left: 1.2rem; position: relative; margin-bottom: 0.5rem; }
.story-summary li::before { content: ""; position: absolute; left: 0; top: 0.6rem; width: 6px; height: 6px; background: var(--primary-dark); border-radius: 50%; }
.story-quote { max-width: 720px; margin: 2rem auto 0; background: var(--bg-soft); border-radius: var(--radius); padding: 1.8rem; font-style: normal; }
.story-quote p { color: var(--ink); font-weight: 600; margin-bottom: 0.6rem; }
.story-quote cite { font-size: 0.85rem; color: var(--ink-soft); font-style: normal; }
.story-cta { max-width: 720px; margin: 2.5rem auto 0; text-align: center; }

.blog-figure { margin: 1.8rem auto; max-width: 400px; }
.blog-figure img { width: 100%; height: auto; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.blog-figure figcaption { font-size: 0.85rem; color: var(--ink-soft); margin-top: 0.5rem; text-align: center; }

/* 표 모바일: 행을 카드로 쌓기 */
@media (max-width: 640px) {
    .trust-table--stack, .trust-table--stack tbody { display: block; border: 0; }
    .trust-table--stack .tt-head { display: none; }
    .trust-table--stack tr { display: block; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 0.8rem; overflow: hidden; }
    .trust-table--stack th { display: block; width: auto; padding: 0.7rem 1rem; border-bottom: 1px solid var(--line); }
    .trust-table--stack td { display: block; padding: 0.7rem 1rem; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
    .trust-table--stack td:last-child { border-bottom: 0; }
    .trust-table--stack td::before { content: attr(data-label); display: block; font-size: 0.75rem; font-weight: 700; color: var(--primary-dark); margin-bottom: 0.15rem; }
}

@media (max-width: 860px) { .process-step { padding: 1.2rem; } }
.process-step h3 { font-size: 1rem; word-break: keep-all; }
.process-step p { word-break: keep-all; }
