/* 테마 A / 카드클릭형 / 라벤더 / radius 1~1.5rem / grid-3 / label-none / btn-square */
:root {
    --primary: #D4B8D8;
    --primary-dark: #8E5C96;
    --primary-rgb: 212, 184, 216;
    --text: #2A2828;
    --text-muted: #6B6764;
    --border: #E7E1E6;
    --bg-soft: #FAF7FA;
    --card-radius: 1.25rem;
    --btn-radius: 0.5rem;
    --max-w: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "Pretendard", "Noto Sans KR", -apple-system, sans-serif;
    color: var(--text);
    word-break: keep-all;
    line-height: 1.6;
    background: #fff;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 1.25rem; }
section { padding: 4.5rem 0; }
h1, h2, h3 { line-height: 1.35; margin: 0 0 0.75rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; color: var(--text-muted); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.75rem; }
.section-head h2 { color: var(--text); }
.section-head .desc { font-size: 1rem; }

/* 버튼: 사각형(btn-square) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.9rem 1.6rem;
    border-radius: var(--btn-radius);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.95rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all .2s;
}
.btn-primary { background: var(--primary-dark); color: #fff; }
.btn-primary:hover { background: #7C5083; }
.btn-outline { background: #fff; border-color: var(--primary-dark); color: var(--primary-dark); }
.btn-outline:hover { background: var(--bg-soft); }
.btn-white { background: #fff; color: var(--text); }

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(6px);
}
.site-header .inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { font-size: 1.3rem; font-weight: 800; text-decoration: none; color: var(--text); }
.logo span { color: var(--primary-dark); }
.main-nav { display: flex; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.main-nav a { text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--text); }
.main-nav a:hover { color: var(--primary-dark); }
.header-cta { display: flex; align-items: center; gap: .75rem; }
.menu-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; }

@media (max-width: 860px) {
    .main-nav { position: fixed; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 1.25rem; border-bottom: 1px solid var(--border); gap: 1rem; display: none; }
    .main-nav.open { display: flex; }
    .menu-toggle { display: block; }
}

/* Hero (오버레이형) */
.hero-overlay {
    position: relative;
    min-height: 94vh;
    display: flex;
    align-items: flex-end;
    color: #fff;
    background-size: cover;
    background-position: center 65%;
}
.hero-overlay::before {
    content: "";
    position: absolute; inset: 0;
    background:
        linear-gradient(90deg, rgba(15,12,16,.88) 0%, rgba(15,12,16,.6) 30%, rgba(15,12,16,.2) 58%, rgba(15,12,16,0) 82%),
        linear-gradient(180deg, rgba(15,12,16,0) 55%, rgba(15,12,16,.5) 100%);
}
.hero-overlay .hero-inner { position: relative; z-index: 1; padding-bottom: 3.5rem; padding-left: clamp(1.5rem, 6vw, 4rem); width: 100%; }
.hero-overlay h1 { font-size: 2.6rem; margin-bottom: .5rem; }
.hero-overlay .sub { font-size: 1.1rem; color: rgba(255,255,255,.9); max-width: 560px; margin-bottom: 1.75rem; }
.hero-badges { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.hero-badges span { background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.35); padding: .35rem .9rem; border-radius: var(--btn-radius); font-size: .82rem; }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; }
@media (max-width: 640px) { .hero-overlay h1 { font-size: 1.9rem; } }

/* 카드 그리드 */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 1024px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3 { 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; transition: transform .4s; }
.portfolio-card:hover .thumb img { transform: scale(1.06); }
.portfolio-card .body { padding: 1.25rem 1.4rem 1.5rem; }
.portfolio-card .badge { display: inline-block; background: var(--bg-soft); color: var(--primary-dark); font-size: .78rem; font-weight: 700; padding: .25rem .7rem; border-radius: var(--btn-radius); margin-bottom: .6rem; }
.portfolio-card h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.portfolio-card .loc { font-size: .85rem; color: var(--text-muted); margin: 0; }

/* 중간 배너 */
.mid-banner {
    background: linear-gradient(120deg, var(--primary) 0%, #E9DAEB 100%);
    border-radius: var(--card-radius);
    padding: 2.75rem 2rem;
    text-align: center;
    color: #3a2c3d;
}
.mid-banner h2 { color: #3a2c3d; }

/* 서비스 카드 */
.service-card { border: 1px solid var(--border); border-radius: var(--card-radius); padding: 1.75rem; background: #fff; height: 100%; }
.service-card .num { font-size: .8rem; font-weight: 800; color: var(--primary-dark); margin-bottom: .6rem; display: block; }
.service-card img { border-radius: calc(var(--card-radius) - .4rem); margin-bottom: 1rem; aspect-ratio: 4/3; object-fit: cover; }

/* 프로세스 */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; counter-reset: step; }
@media (max-width: 860px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .process-grid { grid-template-columns: 1fr; } }
.process-grid.process-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .process-grid.process-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .process-grid.process-grid-3 { grid-template-columns: 1fr; } }
.process-step { border: 1px solid var(--border); border-radius: var(--card-radius); padding: 1.5rem; background: var(--bg-soft); }
.process-step .step-no { width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--primary-dark); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; margin-bottom: 1rem; }

/* 회사소개 */
.about-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
@media (max-width: 860px) { .about-wrap { grid-template-columns: 1fr; } }
.about-facts { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: .7rem; }
.about-facts li { display: flex; gap: .6rem; font-size: .95rem; }
.about-facts li strong { color: var(--text); min-width: 5.5rem; }

/* 후기 */
.review-card { border: 1px solid var(--border); border-radius: var(--card-radius); padding: 1.6rem; background: #fff; }
.review-card .stars { color: #E0A800; margin-bottom: .6rem; letter-spacing: .1em; }
.review-card .who { font-size: .82rem; color: var(--text-muted); margin-top: .8rem; }

/* 서비스 지역 */
.area-tags { display: flex; flex-wrap: wrap; gap: .6rem; }
.area-tags span { background: var(--bg-soft); border: 1px solid var(--border); padding: .5rem 1rem; border-radius: var(--btn-radius); font-size: .9rem; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { width: 100%; text-align: left; background: none; border: none; padding: 1.25rem 0; font-size: 1rem; font-weight: 700; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-a p { padding-bottom: 1.1rem; margin: 0; }
.faq-item.open .faq-a { max-height: 400px; }
.faq-q .icon { transition: transform .2s; flex-shrink: 0; }
.faq-item.open .faq-q .icon { transform: rotate(45deg); }

/* CTA 섹션 (신뢰배지4 + 버튼2) */
.cta-section { background: #221E22; color: #fff; text-align: center; border-radius: var(--card-radius); padding: 3.5rem 2rem; }
.cta-section h2 { color: #fff; }
.cta-section .desc { color: rgba(255,255,255,.75); }
.trust-badges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; max-width: 760px; margin: 2rem auto; }
@media (max-width: 640px) { .trust-badges { grid-template-columns: repeat(2, 1fr); } }
.trust-badges div { border: 1px solid rgba(255,255,255,.18); border-radius: var(--btn-radius); padding: 1rem .5rem; font-size: .85rem; }
.cta-btns { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; margin-top: 1.75rem; }

/* Footer */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--border); padding: 3rem 0 2rem; font-size: .88rem; color: var(--text-muted); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: var(--text); margin-bottom: .8rem; font-size: .95rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.footer-grid a { text-decoration: none; color: var(--text-muted); }
.footer-grid a:hover { color: var(--primary-dark); }
.footer-biz { border-top: 1px solid var(--border); padding-top: 1.5rem; font-size: .8rem; line-height: 1.8; }
.footer-bottom-links { margin-top: .75rem; }
.footer-bottom-links a { text-decoration: underline; color: var(--text-muted); }
.footer-bottom-links a:hover { color: var(--primary-dark); }

/* Floating */
.floating-btns { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 60; display: flex; flex-direction: column; gap: .7rem; }
.floating-btns a {
    width: 3.2rem; height: 3.2rem; border-radius: var(--btn-radius);
    display: flex; align-items: center; justify-content: center;
    text-decoration: none; box-shadow: 0 8px 22px rgba(0,0,0,.2); font-size: 1.4rem;
}
.floating-btns .call { background: var(--primary-dark); color: #fff; }

/* 브레드크럼 / 뒤로가기 */
.back-link { color: rgba(255,255,255,.85); text-decoration: none; font-size: .9rem; display: inline-block; margin-bottom: 1rem; }

/* 시공 정보 요약 바 */
.info-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; border: 1px solid var(--border); border-radius: var(--card-radius); padding: 1.5rem; margin: -3.5rem auto 3rem; background: #fff; position: relative; z-index: 2; max-width: var(--max-w); }
@media (max-width: 760px) { .info-bar { grid-template-columns: repeat(2, 1fr); margin-top: 1.5rem; } }
.info-bar div { text-align: center; }
.info-bar .label { font-size: .78rem; color: var(--text-muted); display: block; margin-bottom: .3rem; }
.info-bar .value { font-weight: 700; }

/* 블로그형 스토리 본문 */
.story-body { max-width: 720px; margin: 0 auto; font-size: 1rem; line-height: 1.9; }
.story-body p { margin-bottom: 1.5rem; color: var(--text); }
.story-body h2 { font-size: 1.4rem; margin-top: 2.5rem; }
.story-body h3 { font-size: 1.1rem; margin-top: 2rem; color: var(--text-muted); }
.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), .38);
    padding: 0.05em 0.25em;
    border-radius: 2px;
    font-weight: 600;
}
.story-quote {
    max-width: 720px; margin: 2.5rem auto;
    border-left: 3px solid var(--primary-dark);
    padding: 1rem 1.5rem;
    font-size: 1.05rem;
    font-style: italic;
    background: rgba(var(--primary-rgb), .1);
}
.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: 2rem auto; background: var(--bg-soft); border-radius: var(--card-radius); padding: 1.75rem 2rem; }
.result-box ul { margin: 0; padding-left: 1.2rem; }
.result-box li { margin-bottom: .5rem; }
.related-links { max-width: 720px; margin: 2.5rem auto; display: flex; gap: 1rem; flex-wrap: wrap; }
.related-links a { text-decoration: none; padding: .7rem 1.2rem; border: 1px solid var(--border); border-radius: var(--btn-radius); font-size: .9rem; font-weight: 600; }

/* 세부페이지 본문 패턴 B: 비교표/체크리스트 */
.compare-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0 2rem; font-size: .95rem; }
.compare-table th, .compare-table td { border: 1px solid var(--border); padding: .75rem 1rem; text-align: left; }
.compare-table th { background: var(--bg-soft); font-weight: 700; }
.checklist { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: .6rem; }
.checklist li { padding-left: 1.6rem; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .45em; width: .55rem; height: .55rem; background: var(--primary-dark); border-radius: 2px; }

/* 유틸 */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
