/* ============================================================
   아파트공조시스템 · aptduct.bosungworld.com
   deep_id=1(스틸블루) accent_id=6(플럼) — B-21
   ============================================================ */

:root {
    --font-body: "Pretendard Variable", Pretendard, -apple-system, sans-serif;
    --font-kr: "Noto Sans KR", "Pretendard Variable", Pretendard, sans-serif;

    --deep: #143447;
    --accent: #7A4E78;
    --accent-soft: #EFE6ED;
    --accent-ink: #FFFFFF;
    --bar-chrome: #E8EAED;

    --ink: #1A1A1A;
    --desc: #4B5563;
    --bg: #FFFFFF;
    --bg-soft: #F6F7F8;
    --border: #E5E7EB;
    --radius: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- 버튼 ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 26px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: opacity .2s ease, transform .2s ease;
    white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { opacity: .9; }
.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 1.5px solid var(--accent);
}
.btn-outline-light {
    background: transparent;
    color: rgba(255,255,255,.92);
    border: 1px solid rgba(255,255,255,.4);
    padding: 11px 22px;
    font-size: 14px;
}
.btn-outline-light:hover { border-color: rgba(255,255,255,.8); }

/* ============================================================
   B-22 탑 헤더 — 투명 → 스크롤 시 연회색
   ============================================================ */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 500;
    background: transparent;
    transition: background .3s ease, box-shadow .3s ease, border-color .3s ease;
    border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
    background: var(--bar-chrome);
    box-shadow: 0 1px 16px rgba(0,0,0,.06);
    border-bottom: 1px solid var(--border);
}
.header-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    font-weight: 800;
    font-size: 19px;
    letter-spacing: -.02em;
    color: #fff;
    transition: color .3s ease;
}
.site-header.is-scrolled .logo { color: var(--ink); }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav ul { display: flex; align-items: center; gap: 26px; }
.main-nav ul a {
    font-size: 15px;
    font-weight: 600;
    color: rgba(255,255,255,.95);
    transition: color .3s ease;
}
.site-header.is-scrolled .main-nav ul a { color: var(--ink); }
.btn-nav-cta { padding: 10px 20px; font-size: 14px; }
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.nav-toggle span {
    width: 22px; height: 2px;
    background: #fff;
    transition: background .3s ease;
}
.site-header.is-scrolled .nav-toggle span { background: var(--ink); }

@media (max-width: 860px) {
    .main-nav ul { display: none; }
    .nav-toggle { display: flex; }
    .main-nav.mobile-open ul {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 72px; left: 0; right: 0;
        background: var(--bar-chrome);
        padding: 18px 24px;
        gap: 16px;
        box-shadow: 0 8px 20px rgba(0,0,0,.08);
    }
    .main-nav.mobile-open ul a { color: var(--ink); }
    .btn-nav-cta { padding: 9px 16px; font-size: 13px; }
}

/* ============================================================
   홈 히어로
   ============================================================ */
.hero {
    position: relative;
    min-height: 640px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--deep);
}
.hero-bg {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    animation: heroZoom 22s ease-in-out infinite alternate;
}
@keyframes heroZoom {
    from { transform: scale(1); }
    to { transform: scale(1.08); }
}
.hero::before {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(20,52,71,.72) 0%, rgba(20,52,71,.45) 45%, rgba(20,52,71,.75) 100%);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 120px 24px 64px;
    max-width: 760px;
}
.hero-eyebrow {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .06em;
    color: rgba(255,255,255,.8);
    margin-bottom: 14px;
}
.hero-content h1 {
    font-size: clamp(30px, 5vw, 48px);
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.28;
    margin-bottom: 16px;
}
.hero-desc {
    font-size: 17px;
    color: rgba(255,255,255,.88);
    margin-bottom: 34px;
}
.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: flex-start;
    margin-left: 4px;
}
@media (max-width: 560px) {
    .hero-actions { justify-content: center; margin-left: 0; }
}

/* ============================================================
   섹션 공통
   ============================================================ */
section.block { padding: 88px 0; }
.section-label {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    font-size: 14px;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: .04em;
    margin-bottom: 14px;
}
.section-head { margin-bottom: 44px; }
.section-head h2 {
    font-size: clamp(24px, 3.4vw, 34px);
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.35;
    white-space: normal;
}
@media (min-width: 900px) {
    .section-head h2.nowrap { white-space: nowrap; }
}
.section-head p {
    margin-top: 12px;
    color: var(--desc);
    font-size: 16px;
}
.bg-soft { background: var(--bg-soft); }

/* ---------- 서비스 카드 ---------- */
.service-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}
@media (max-width: 980px) { .service-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
.service-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 26px 18px;
    text-align: center;
    transition: border-color .2s ease, transform .2s ease;
}
.service-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.service-card .icon-wrap {
    width: 56px; height: 56px;
    margin: 0 auto 16px;
    color: var(--accent);
}
.service-card .icon-wrap svg { width: 100%; height: 100%; }
.service-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.service-card p { font-size: 13.5px; color: var(--desc); line-height: 1.5; }

/* ---------- 가이드/정보 요약 ---------- */
.guide-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
@media (max-width: 900px) { .guide-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .guide-grid { grid-template-columns: 1fr; } }
.guide-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.guide-card .guide-num { font-size: 12px; font-weight: 800; color: var(--accent); }
.guide-card h3 { font-size: 16.5px; font-weight: 700; line-height: 1.4; }
.guide-card p { font-size: 13.5px; color: var(--desc); line-height: 1.55; }
.guide-card .guide-link { margin-top: auto; font-size: 13px; font-weight: 700; color: var(--accent); }

/* ---------- 시공사례 카드(홈 미리보기 + portfolio) ---------- */
.case-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
@media (max-width: 900px) { .case-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .case-grid { grid-template-columns: 1fr; } }
.case-card {
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border);
    transition: transform .2s ease, box-shadow .2s ease;
}
.case-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0,0,0,.08); }
.case-card .case-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.case-card .case-body { padding: 18px 18px 22px; }
.case-card .case-label { font-size: 12px; font-weight: 700; color: var(--accent); margin-bottom: 8px; }
.case-card h3 { font-size: 17px; font-weight: 700; }

/* ============================================================
   FAQ 아코디언
   ============================================================ */
.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: #fff; }
.faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 22px;
    background: none;
    border: none;
    text-align: left;
    font-size: 15.5px;
    font-weight: 700;
    cursor: pointer;
    color: var(--ink);
}
.faq-q .faq-mark { color: var(--accent); font-weight: 800; flex-shrink: 0; transition: transform .2s ease; }
.faq-item.open .faq-q .faq-mark { transform: rotate(45deg); }
.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
    padding: 0 22px;
    font-size: 14.5px;
    color: var(--desc);
}
.faq-item.open .faq-a { max-height: 400px; padding: 0 22px 20px; }

/* ============================================================
   B-25 Closing — FAQ 아래 시공사진 1장(650px) + 중앙 CTA
   ============================================================ */
.closing {
    position: relative;
    height: 650px;
    background-size: cover;
    background-position: center;
}
.closing-overlay {
    position: absolute; inset: 0;
    background: rgba(19,19,19,.55);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 26px;
    text-align: center;
    padding: 24px;
}
.closing-copy {
    color: #fff;
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 700;
    letter-spacing: -.01em;
}
.btn-closing {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255,255,255,.85);
    padding: 14px 34px;
    border-radius: var(--radius);
    font-weight: 700;
}
.btn-closing:hover { background: rgba(255,255,255,.12); }

/* ============================================================
   푸터 — B-21 deep
   ============================================================ */
.site-footer { background: var(--deep); color: rgba(255,255,255,.9); padding: 56px 0 28px; }
.footer-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
}
.footer-biz-name { font-size: 16px; font-weight: 800; margin-bottom: 8px; color: #fff; }
.footer-biz-line { font-size: 13.5px; color: rgba(255,255,255,.72); margin-top: 4px; line-height: 1.6; }
.footer-hours { white-space: nowrap; }
.footer-biz-reg { white-space: normal; }
.footer-guides { max-width: 420px; }
.footer-guides ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 20px; }
.footer-guides li { margin-top: 4px; line-height: 1.6; }
.footer-guides a { font-size: 13.5px; color: rgba(255,255,255,.72); text-decoration: none; }
.footer-guides a:hover { color: #fff; }
.footer-actions { display: flex; gap: 10px; }
.footer-copyright {
    max-width: 1120px;
    margin: 20px auto 0;
    padding: 0 24px;
    font-size: 12px;
    color: rgba(255,255,255,.35);
}

/* ============================================================
   B-23 하단 고정 상담바
   ============================================================ */
.bottom-cta-bar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 480;
    background: var(--bar-chrome);
    border-top: 1px solid var(--border);
    box-shadow: 0 -6px 22px rgba(0,0,0,.08);
    padding: 12px 20px;
    display: flex;
    justify-content: center;
    transform: translateY(100%);
    opacity: 0;
    transition: transform .3s ease, opacity .3s ease;
}
.bottom-cta-bar.show { transform: translateY(0); opacity: 1; }
.btn-bottom-cta { min-height: 48px; width: 100%; max-width: 420px; font-size: 15.5px; }

/* ---------- 플로팅 상담 버튼 (2단계 노출) ---------- */
.floating-consult {
    position: fixed;
    bottom: 96px;
    z-index: 490;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.floating-left { left: 20px; }
.floating-right { right: 20px; }
.floating-toggle {
    background: var(--accent);
    color: var(--accent-ink);
    border: none;
    border-radius: 999px;
    padding: 15px 20px;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 10px 24px rgba(0,0,0,.18);
    cursor: pointer;
}
.floating-phone {
    background: #fff;
    color: var(--accent);
    border: 1.5px solid var(--accent);
    border-radius: 999px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(0,0,0,.14);
    display: none;
}
.floating-consult.active .floating-phone { display: block; }

@media (max-width: 640px) {
    .floating-consult { display: none; } /* 모바일은 하단 고정바로 대체 */
}

/* ============================================================
   서브페이지 상단 풀블리드 히어로 (밝은 오버레이 · 다크 금지)
   ============================================================ */
.page-hero {
    position: relative;
    min-height: 320px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
}
.page-hero-overlay {
    width: 100%;
    background: linear-gradient(180deg, rgba(255,255,255,.28) 0%, rgba(255,255,255,.42) 100%);
    padding: 140px 24px 56px;
    text-align: center;
}
.page-hero-eyebrow {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
    color: var(--deep);
    text-shadow: 0 1px 3px rgba(255,255,255,.6);
    margin-bottom: 10px;
}
.page-hero-overlay h1 {
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 800;
    color: var(--ink);
    text-shadow: 0 2px 10px rgba(255,255,255,.55);
    letter-spacing: -.02em;
}

/* ============================================================
   시공사례·후기 본문 레이아웃 — 맨 위 550x410 고정 + Pretendard
   ============================================================ */
.detail-main { max-width: 760px; margin: 0 auto; padding: 56px 24px 90px; }
.detail-photo {
    width: 550px;
    height: 410px;
    max-width: 100%;
    object-fit: cover;
    border-radius: 18px;
    margin: 0 auto 32px;
    display: block;
}
@media (max-width: 640px) {
    .detail-photo { width: 100%; aspect-ratio: 550 / 410; height: auto; }
}
.detail-label { font-size: 11px; font-weight: 700; color: #9CA3AF; letter-spacing: .06em; margin-bottom: 10px; }
.detail-title { font-size: clamp(22px, 3vw, 28px); font-weight: 800; line-height: 1.4; margin-bottom: 20px; }
.detail-body { font-size: 15.5px; color: var(--desc); line-height: 1.85; }
.detail-body p { margin-bottom: 20px; white-space: pre-line; }
.detail-body strong { color: var(--ink); font-weight: 700; }
.detail-points {
    margin-top: 30px;
    padding: 22px;
    background: var(--bg-soft);
    border-radius: 14px;
}
.detail-points h3 { font-size: 15px; font-weight: 800; margin-bottom: 12px; }
.detail-points li { font-size: 14.5px; color: var(--desc); padding-left: 16px; position: relative; margin-top: 8px; }
.detail-points li::before { content: "-"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.detail-nav { display: flex; justify-content: space-between; margin-top: 40px; gap: 12px; }
.detail-nav a { font-size: 14px; font-weight: 700; color: var(--accent); }

/* ---------- 지역 페이지 4단계 / 인접지역 ---------- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 34px 0; }
@media (max-width: 700px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
.process-step { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 20px 16px; text-align: center; }
.process-step .step-no { font-size: 13px; font-weight: 800; color: var(--accent); margin-bottom: 8px; }
.process-step p { font-size: 13.5px; color: var(--desc); }
.neighbor-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.neighbor-list span { font-size: 12.5px; padding: 6px 12px; background: var(--accent-soft); color: var(--accent); border-radius: 999px; }
.related-regions { margin-top: 36px; display: flex; gap: 12px; flex-wrap: wrap; }
.related-regions a {
    font-size: 13.5px; font-weight: 700; color: var(--ink);
    border: 1px solid var(--border); border-radius: 999px; padding: 9px 18px;
}
.related-regions a:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- 사이트맵 페이지 ---------- */
.sitemap-page { padding: 150px 0 90px; }
.sitemap-page h1 { font-size: 28px; font-weight: 800; margin-bottom: 40px; }
.sitemap-group { margin-bottom: 36px; }
.sitemap-group h2 { font-size: 15px; font-weight: 800; color: var(--accent); margin-bottom: 14px; }
.sitemap-group ul { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.sitemap-group a { font-size: 14.5px; color: var(--desc); }
.sitemap-group a:hover { color: var(--accent); }

/* ---------- about / contact ---------- */
.simple-page { max-width: 760px; margin: 0 auto; padding: 56px 24px 90px; }
.simple-page h2 { font-size: 20px; font-weight: 800; margin: 36px 0 14px; }
.simple-page p { font-size: 15.5px; color: var(--desc); line-height: 1.85; }
.contact-phone {
    display: block;
    text-align: center;
    font-size: clamp(28px, 5vw, 40px);
    font-weight: 800;
    color: var(--accent);
    margin: 26px 0;
    letter-spacing: -.01em;
}
.contact-hours-row { text-align: center; color: var(--desc); font-size: 14.5px; white-space: nowrap; }
.info-table { width: 100%; border-collapse: collapse; margin-top: 20px; }
.info-table th, .info-table td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 14.5px; }
.info-table th { width: 130px; color: var(--ink); font-weight: 700; }
.info-table td { color: var(--desc); }

/* 모바일 공통 정렬 */
@media (max-width: 640px) {
    section.block { padding: 60px 0; }
    .footer-inner, .footer-actions { justify-content: center; text-align: center; }
    .footer-biz { width: 100%; text-align: center; }
    .case-grid, .service-grid, .guide-grid { text-align: center; }
    .faq-list, .detail-main { text-align: left; }
}

/* ---------- Guide 허브 / 관련 사례 / 모바일 ---------- */
.footer-guides { max-width: none; }
.footer-guides a { font-size: 16px; font-weight: 800; color: #fff; }
.guide-hub { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.guide-hub .guide-grid { gap: 22px; }
.guide-thumb-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.guide-thumb-card img { width: 100%; height: 200px; object-fit: cover; display: block; }
.guide-thumb-card .gt-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.guide-thumb-card h3 { font-size: 18px; font-weight: 800; line-height: 1.4; }
.guide-thumb-card p { font-size: 13.5px; color: var(--desc); line-height: 1.55; }
.guide-thumb-card .guide-link { margin-top: auto; font-size: 13px; font-weight: 700; color: var(--accent); }
.guide-more { text-align: center; margin-top: 36px; }
.related-cases { margin-top: 56px; }
.related-cases h3 { font-size: 17px; font-weight: 800; margin-bottom: 16px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.related-card { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: #fff; }
.related-card img { width: 100%; height: 170px; object-fit: cover; display: block; }
.related-card span { display: block; padding: 10px 12px; font-size: 14px; font-weight: 700; }
@media (max-width: 767px) {
    body { word-break: keep-all; }
    .related-grid { grid-template-columns: 1fr; }
    .main-nav.mobile-open ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; text-align: center; padding: 14px 12px; }
    .main-nav.mobile-open ul a { font-size: 13px; white-space: nowrap; }
    h1, h2, .page-hero-overlay h1 { word-break: keep-all; }
    .guide-thumb-card img { height: 180px; }
}
