/* 상가공조시공 — main_skin=2(apt_variant) · font_id=5(Pretendard 전한글) · hero_id=11 · header_variant=1
   accent_id=7 forest #3E6B4A · deep(footer)=apt-ink #13130A · bar_chrome #E6E8EB */
:root {
    --accent: #3E6B4A;
    --accent-soft: #E4EDE5;
    --accent-text: #FFFFFF;
    --ink: #13130A;
    --desc: #5B6169;
    --bar-chrome: #E6E8EB;
    --font-body: "Pretendard", "Pretendard Variable", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: var(--font-body);
    color: var(--ink);
    background: #fff;
    letter-spacing: -0.3px;
    word-break: keep-all;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, a, li, button, input, textarea { font-family: var(--font-body); letter-spacing: -0.3px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
button { cursor: pointer; font: inherit; }

/* ---------- Header (B-22) ---------- */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: transparent;
    transition: background .3s ease, box-shadow .3s ease, border-color .3s ease;
    border-bottom: 1px solid transparent;
}
.site-header.scrolled {
    background: var(--bar-chrome);
    box-shadow: 0 1px 16px rgba(0,0,0,0.06);
    border-bottom-color: #E5E7EB;
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 76px;
}
.nav-left, .nav-right { display: flex; align-items: center; gap: 26px; flex: 1; }
.nav-right { justify-content: flex-end; }
.nav-left a, .nav-right a {
    font-size: 17px; font-weight: 400; letter-spacing: -0.3px;
    color: #fff; transition: color .3s ease;
}
.site-header.scrolled .nav-left a, .site-header.scrolled .nav-right a { color: var(--ink); }
.home-page .site-header:not(.scrolled) { border-bottom-color: transparent; }
body:not(.home-page) .site-header { background: var(--bar-chrome); border-bottom-color: #E5E7EB; box-shadow: 0 1px 16px rgba(0,0,0,0.06); }
body:not(.home-page) .nav-left a, body:not(.home-page) .nav-right a { color: var(--ink); }

.logo { display: flex; align-items: center; gap: 8px; }
.logo-icon { width: 32px; height: 32px; flex-shrink: 0; color: #fff; transition: color .3s ease; }
.site-header.scrolled .logo-icon, body:not(.home-page) .logo-icon { color: var(--accent); }
.logo-icon svg { width: 100%; height: 100%; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-brand { font-size: 0.92rem; font-weight: 700; color: #fff; transition: color .3s ease; }
.site-header.scrolled .logo-brand, body:not(.home-page) .logo-brand { color: var(--ink); }
.logo-keyword { font-size: 0.7rem; font-weight: 500; color: var(--accent); letter-spacing: 0.02em; }

.btn-consult-toggle {
    background: var(--accent); color: var(--accent-text); border: none;
    padding: 10px 20px; border-radius: 4px; font-size: 14px; font-weight: 600;
    position: relative;
}
.consult-pop {
    display: none; position: absolute; top: 60px; right: 24px; background: #fff;
    border: 1px solid #E5E7EB; border-radius: 8px; padding: 12px 18px; box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.consult-pop.open { display: block; }
.consult-pop a { font-weight: 700; color: var(--ink); font-size: 16px; }

/* ---------- Hero (hero_id=11 apt-service-hero) ---------- */
.hero {
    position: relative; height: 700px; display: flex; align-items: flex-end;
    background-size: cover; background-position: center; overflow: hidden;
}
.hero-inner { position: relative; z-index: 2; padding: 64px 0 72px; width: 100%; }
.hero-label { display: inline-block; background: #fff; color: var(--ink); font-size: 13px; font-weight: 700; padding: 6px 14px; border-radius: 4px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(30px, 4.6vw, 46px); font-weight: 700; color: var(--ink); margin: 0 0 16px; line-height: 1.25; max-width: 720px; }
.hero-desc { font-size: 17px; color: var(--ink); background: rgba(255,255,255,.82); display: inline-block; padding: 12px 18px; border-radius: 6px; max-width: 640px; line-height: 1.6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-actions { margin-top: 22px; display: flex; gap: 12px; }
.hero-actions .btn { padding: 14px 26px; border-radius: 4px; font-weight: 700; font-size: 15px; }
.btn-primary { background: var(--accent); color: var(--accent-text); }
.btn-outline { background: rgba(255,255,255,.9); color: var(--ink); border: 1px solid var(--ink); }

.page-hero {
    position: relative; height: 320px; display: flex; align-items: center;
    background-size: cover; background-position: center;
}
.page-hero::after { content: ''; position: absolute; inset: 0; background: rgba(19,19,10,.42); }
.page-hero-inner { position: relative; z-index: 2; }
.page-hero .hero-label { background: rgba(255,255,255,.92); }
.page-hero h1 { color: #fff; font-size: clamp(26px, 3.6vw, 38px); margin: 0; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-head { margin-bottom: 44px; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; }
.eyebrow svg { flex-shrink: 0; }
.section-title { font-size: clamp(24px, 3vw, 34px); font-weight: 700; margin: 0; line-height: 1.35; }
.section-sub { color: var(--desc); font-size: 15.5px; margin-top: 10px; max-width: 640px; }

/* section_variant=7 hidden-delight: eyebrow + big title + 3-col vertical cards */
.hd-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 8px; }
.hd-card { border: 1px solid #E5E7EB; border-radius: 8px; overflow: hidden; background: #fff; position: relative; transition: transform .25s ease; }
.hd-card img { width: 100%; height: 210px; object-fit: cover; }
.hd-card .hd-body { padding: 22px 20px 26px; }
.hd-tag { font-size: 12px; font-weight: 700; color: var(--accent); letter-spacing: .04em; margin-bottom: 8px; display: block; }
.hd-card h3 { font-size: 18px; font-weight: 700; margin: 0 0 8px; }
.hd-card p { font-size: 14px; color: var(--desc); line-height: 1.6; margin: 0; }
/* draw_id=1: 챔피언스시티 박스 호버 (검정 1px 네 변이 자라며 둘레) */
.hd-card::before, .hd-card::after { content: ''; position: absolute; pointer-events: none; }
.box-hover { position: relative; }
.box-hover .bh-top, .box-hover .bh-bottom, .box-hover .bh-left, .box-hover .bh-right { position: absolute; background: var(--ink); transition: all .6s ease; z-index: 3; }
.box-hover .bh-top { top: 0; left: 0; height: 1px; width: 0; }
.box-hover .bh-bottom { bottom: 0; right: 0; height: 1px; width: 0; }
.box-hover .bh-left { top: 0; left: 0; width: 1px; height: 0; }
.box-hover .bh-right { bottom: 0; right: 0; width: 1px; height: 0; }
.box-hover:hover .bh-top, .box-hover:hover .bh-bottom { width: 100%; }
.box-hover:hover .bh-left, .box-hover:hover .bh-right { height: 100%; }

/* Mid backgrounds cycle handled inline via style="background:..." */

/* ---------- Portfolio list (list_variant=2 editorial-meta-card) ---------- */
.emc-list { display: flex; flex-direction: column; gap: 22px; }
.emc-card { display: grid; grid-template-columns: 320px 1fr; gap: 26px; border: 1px solid #E5E7EB; border-radius: 8px; overflow: hidden; background: #fff; position: relative; }
.emc-card img { width: 100%; height: 220px; object-fit: cover; }
.emc-body { padding: 22px 24px 22px 0; display: flex; flex-direction: column; justify-content: center; }
.emc-tags { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.emc-tag { font-size: 11.5px; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 4px 10px; border-radius: 20px; }
.emc-body h3 { font-size: 21px; font-weight: 700; margin: 0 0 8px; }
.emc-meta { font-size: 13.5px; color: var(--desc); }
@media (max-width: 767px) { .emc-card { grid-template-columns: 1fr; } .emc-body { padding: 18px 20px 22px; } }

.pf-intro { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 64px 0 24px; }
.pf-intro img { width: 100%; aspect-ratio: 7/6; object-fit: cover; border-radius: 8px; }
.pf-intro .about-list { margin: 18px 0 0; padding: 0; list-style: none; font-size: 14.5px; color: var(--desc); }
.pf-intro .about-list li { padding: 6px 0; border-top: 1px solid #EEE; }

/* ---------- Case detail (case_detail_variant=1 apt-journal typography) ---------- */
.case-hero-fig { width: 550px; max-width: 100%; height: 410px; margin: 0 auto 40px; border-radius: 18px; overflow: hidden; }
.case-hero-fig img { width: 100%; height: 100%; object-fit: cover; }
.case-body-wrap { max-width: 760px; margin: 0 auto; }
.case-label { font-size: 12px; color: var(--desc); letter-spacing: .05em; margin-bottom: 10px; }
.case-title { font-size: 27px; font-weight: 700; margin: 0 0 36px; line-height: 1.4; }
.case-body p { font-size: 15px; font-weight: 500; line-height: 1.85; color: #2E3138; margin: 0 0 22px; }
.case-body p b { font-weight: 700; }

.phase-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 900px; margin: 40px auto; }
.phase-row figure { margin: 0; }
.phase-row img { width: 100%; height: auto; max-height: 500px; object-fit: contain; background: #F4F4F2; border-radius: 8px; }
.phase-row figcaption { text-align: center; font-size: 13px; color: var(--desc); margin-top: 8px; font-weight: 600; }
@media (max-width: 767px) { .phase-row { grid-template-columns: 1fr 1fr; } }

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 900px; margin: 0 auto 20px; }
.gallery-grid img { width: 100%; height: 220px; object-fit: cover; border-radius: 12px; cursor: zoom-in; }
@media (max-width: 767px) { .gallery-grid { grid-template-columns: 1fr 1fr; } }

.process-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid #E0E0DC; }
.process-item { padding: 28px 20px 28px 24px; border-right: 1px solid #E0E0DC; }
.process-item:first-child { padding-left: 0; }
.process-item:last-child { border-right: none; }
.pnum { display: block; font-size: 13px; font-weight: 700; color: var(--accent); margin-bottom: 10px; }
.process-item h3 { font-size: 16px; font-weight: 800; color: #22262B; margin: 0 0 8px; }
.process-item p { font-size: 13.5px; color: var(--desc); line-height: 1.65; margin: 0; }
@media (max-width: 767px) { .process-list { grid-template-columns: 1fr 1fr; } }

.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item { border: 1px solid #E5E7EB; border-radius: 8px; padding: 18px 20px; }
.faq-item summary { font-weight: 700; font-size: 15.5px; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: 'Q. '; color: var(--accent); }
.faq-item p { margin: 12px 0 0; color: var(--desc); font-size: 14.5px; line-height: 1.7; }

.related-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 900px; margin: 40px auto 0; }
.related-row a { display: block; border-radius: 12px; overflow: hidden; position: relative; }
.related-row img { width: 100%; height: 180px; object-fit: cover; }
.related-row .rr-label { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,.65)); color: #fff; padding: 26px 14px 12px; font-size: 14px; font-weight: 700; }

/* ---------- Closing (B-25) ---------- */
.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; text-align: center; padding: 20px; }
.closing-overlay h2 { color: #fff; font-size: clamp(22px, 3.2vw, 32px); margin: 0 0 16px; font-weight: 700; }
.closing-quote { color: rgba(255,255,255,.88); font-size: 15px; max-width: 560px; margin: 0 0 26px; line-height: 1.7; }
.btn-closing { color: #fff; border: 1px solid #fff; border-radius: 0; padding: 14px 34px; font-weight: 700; font-size: 15px; }

/* ---------- Footer (apt_variant = black) ---------- */
.site-footer { background: var(--ink); color: #C9C9C2; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; padding: 56px 24px 32px; flex-wrap: wrap; gap: 24px; }
.footer-brand { color: #fff; font-weight: 700; font-size: 16px; margin: 0 0 8px; }
.footer-biz p { margin: 4px 0; font-size: 13.5px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { font-size: 13.5px; color: #C9C9C2; }
.footer-copy { padding: 20px 24px 32px; font-size: 12px; color: #75756B; border-top: 1px solid #2A2A22; }

/* ---------- Bottom consult bar (B-23) ---------- */
.bottom-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 999;
    display: flex; background: var(--bar-chrome); border-top: 1px solid #E5E7EB;
    box-shadow: 0 -6px 22px rgba(0,0,0,.08);
    transform: translateY(100%); opacity: 0; transition: transform .3s ease, opacity .3s ease;
}
.bottom-bar.show { transform: translateY(0); opacity: 1; }
.bottom-bar-cta { flex: 1; text-align: center; background: var(--accent); color: var(--accent-text); font-weight: 700; padding: 16px 0; font-size: 15px; }
.bottom-bar-tel { width: 56px; display: flex; align-items: center; justify-content: center; color: var(--ink); }

/* Desktop: bottom bar behaves per B-23; Mobile: always show 2-col per CC */
@media (max-width: 767px) {
    .bottom-bar { transform: translateY(0) !important; opacity: 1 !important; }
    .hero { height: 520px; }
    .page-hero { height: 240px; }
    .hd-grid { grid-template-columns: 1fr; }
    .pf-intro { grid-template-columns: 1fr; }
    .process-list { grid-template-columns: 1fr 1fr; }
    body { padding-bottom: 58px; }
}
@media (min-width: 768px) {
    body.footer-visible .bottom-bar { transform: translateY(100%); opacity: 0; }
}

/* ---------- Misc ---------- */
.about-block { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-block img { border-radius: 10px; width: 100%; height: 420px; object-fit: cover; }
@media (max-width: 767px) { .about-block { grid-template-columns: 1fr; } .about-block img { height: 260px; } }

.info-row { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid #EEE; font-size: 14.5px; }
.info-row b { font-weight: 700; }

.lightbox-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.88); display: none; align-items: center; justify-content: center; z-index: 3000; flex-direction: column; }
.lightbox-overlay.open { display: flex; }
.lightbox-overlay img { max-width: 92vw; max-height: 86vh; object-fit: contain; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); color: #fff; font-size: 32px; padding: 12px 18px; }
.lightbox-nav.prev { left: 12px; } .lightbox-nav.next { right: 12px; }
.lightbox-close { position: absolute; top: 20px; right: 24px; color: #fff; font-size: 28px; }

.contact-hero-box { max-width: 560px; margin: 60px auto; text-align: center; border: 1px solid #E5E7EB; border-radius: 12px; padding: 48px 32px; }
.contact-hero-box .phone-big { font-size: 30px; font-weight: 800; color: var(--accent); margin: 18px 0; display: block; }
.contact-hero-box .btn-primary { display: inline-block; padding: 16px 36px; }

.area-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.area-grid a { border: 1px solid #E5E7EB; border-radius: 8px; padding: 16px; text-align: center; font-weight: 600; font-size: 14px; }
@media (max-width: 767px) { .area-grid { grid-template-columns: repeat(2, 1fr); } }

.card-outline-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card-outline-list .card { border: 1px solid #E5E7EB; border-radius: 8px; padding: 24px; transition: transform .2s ease; }
.card-outline-list .card:hover { transform: translateY(-4px); }
.card-outline-list h3 { font-size: 17px; margin: 0 0 8px; }
.card-outline-list p { font-size: 13.5px; color: var(--desc); line-height: 1.6; }
@media (max-width: 767px) { .card-outline-list { grid-template-columns: 1fr; } }
