/* 빌딩공조시스템 (building.bosungworld.com) — design_id 0 / font_id 0 / draw_id none */

:root {
  --accent: #9A6B80;
  --accent-soft: #F3E8EE;
  --accent-text: #FFFFFF;
  --deep: #3A1520;
  --bar-chrome: #EBECEE;
  --ink: #000000;
  --desc: #5B6169;
  --line: #E5E5E5;
  --font-body: "Noto Serif KR", serif;
  --font-btn: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: #fff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-body); margin: 0; word-break: keep-all; }
p { margin: 0; word-break: keep-all; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: var(--font-btn); border: none; background: none; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }

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

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-btn); font-weight: 600; font-size: 15px;
  padding: 12px 24px; border-radius: 8px;
  background: var(--accent); color: var(--accent-text);
  transition: background .2s ease, opacity .2s ease;
}
.btn:hover { opacity: .88; }
.btn-outline {
  background: transparent; color: var(--ink);
  border: 1px solid var(--accent);
}
.btn-outline:hover { background: var(--accent-soft); opacity: 1; }

/* ---------- header (B-22) ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  background: transparent; border-bottom: 1px solid transparent;
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { display: flex; align-items: center; gap: 8px; color: #fff; transition: color .3s ease; }
.logo-icon { width: 32px; height: 32px; flex-shrink: 0; color: var(--accent); }
.logo-icon svg { width: 100%; height: 100%; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; font-family: var(--font-btn); }
.logo-brand { font-size: .95rem; font-weight: 700; }
.logo-keyword { font-size: .7rem; font-weight: 400; color: var(--accent); letter-spacing: .04em; }
.nav-menu { display: flex; align-items: center; gap: 30px; font-family: var(--font-btn); }
.nav-menu a { font-size: 15px; font-weight: 500; color: #fff; transition: color .3s ease; }
.nav-menu a.btn { color: var(--accent-text); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 26px; }
.nav-toggle span { display: block; height: 2px; background: #fff; transition: background .3s ease; }

.site-header.is-scrolled { background: var(--bar-chrome); border-bottom-color: #E5E7EB; box-shadow: 0 1px 16px rgba(0,0,0,.06); }
.site-header.is-scrolled .logo,
.site-header.is-scrolled .nav-menu a:not(.btn) { color: var(--ink); }
.site-header.is-scrolled .nav-toggle span { background: var(--ink); }

.mobile-menu {
  position: fixed; top: 76px; left: 0; right: 0; z-index: 499;
  background: #fff; border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 8px 24px 20px;
  transform: translateY(-8px); opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.mobile-menu.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.mobile-menu a { padding: 12px 0; font-size: 16px; font-family: var(--font-btn); border-bottom: 1px solid var(--line); }
.mobile-menu a.btn { border: none; text-align: center; margin-top: 12px; border-radius: 8px; }

/* ---------- home hero ---------- */
.hero {
  position: relative; height: 92vh; min-height: 560px; max-height: 860px;
  display: flex; align-items: center; overflow: hidden; background: #111;
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: heroZoom 18s ease-in-out infinite alternate; }
@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.06); } }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,10,15,.55) 0%, rgba(20,10,15,.35) 45%, rgba(20,10,15,.72) 100%); }
.hero-inner { position: relative; z-index: 2; color: #fff; max-width: 640px; }
.hero-eyebrow { font-family: var(--font-btn); letter-spacing: .12em; font-size: 13px; color: var(--accent-soft); margin-bottom: 18px; }
.hero h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 700; line-height: 1.3; margin-bottom: 20px; }
.hero-sub { font-size: 17px; color: #EDE9EB; margin-bottom: 34px; line-height: 1.8; }
.hero-cta { display: flex; gap: 14px; }

/* ---------- page-hero (sub pages) ---------- */
.page-hero { position: relative; height: 46vh; min-height: 320px; max-height: 480px; overflow: hidden; background: #111; display: flex; align-items: center; }
.page-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,8,11,.5), rgba(15,8,11,.68)); }
.page-hero-inner { position: relative; z-index: 2; color: #fff; padding-top: 76px; }
.page-hero h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; }
.page-hero-sub { margin-top: 12px; color: #EDE9EB; font-size: 15px; }
.eyebrow { font-family: var(--font-btn); font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--accent); margin-bottom: 10px; }
.eyebrow-light { color: var(--accent-soft); }

/* ---------- sections ---------- */
.section { padding: 88px 0; }
.section-head { margin-bottom: 44px; }
.section-title { font-size: clamp(24px, 3vw, 32px); font-weight: 700; }
.section-desc { margin-top: 12px; color: var(--desc); font-size: 15.5px; max-width: 640px; }

/* mid banner (집반찬형) */
.mid-banner {
  background: #E9E7E0; border-radius: 12px; padding: 0; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between;
  min-height: 140px; max-width: 1200px; margin: 0 auto;
}
.mid-banner-text { padding: 24px 32px; }
.mid-banner-text b { font-size: 18px; font-weight: 700; color: #2F3A32; display: block; margin-bottom: 8px; }
.mid-banner-text span { font-size: 13.5px; color: #4C554D; font-weight: 600; }
.mid-banner-img { width: 260px; height: 140px; flex-shrink: 0; }
.mid-banner-img img { width: 100%; height: 100%; object-fit: cover; }
.mid-banner-wrap { padding: 0 24px; }

/* ---------- service cards ---------- */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.service-card { padding: 32px 24px; border: 1px solid var(--line); border-radius: 10px; transition: border-color .2s ease, transform .2s ease; }
.service-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.service-icon { width: 44px; height: 44px; color: var(--accent); margin-bottom: 18px; }
.service-icon svg { width: 100%; height: 100%; }
.service-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.service-card p { font-size: 14px; color: var(--desc); line-height: 1.7; }

/* ---------- #cases design 1 (4-card 2x2 hover) ---------- */
.cases-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.case-card { position: relative; overflow: hidden; border-radius: 4px; aspect-ratio: 590/396; }
.case-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.case-card:hover img { transform: scale(1.06); }
.case-card-label { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 22px; background: linear-gradient(0deg, rgba(0,0,0,.62), transparent); color: #fff; font-family: var(--font-btn); font-weight: 600; font-size: 15px; transition: opacity .35s ease; }
.case-card-reveal {
  position: absolute; inset: 0; background: rgba(255,255,255,.96);
  display: flex; flex-direction: column; justify-content: center; padding: 26px;
  opacity: 0; transition: opacity .35s ease;
}
.case-card:hover .case-card-reveal { opacity: 1; }
.case-card:hover .case-card-label { opacity: 0; }
.case-card-reveal b { font-size: 15px; font-weight: 700; color: var(--accent); margin-bottom: 10px; }
.case-card-reveal p { font-size: 13.5px; color: var(--desc); line-height: 1.7; }
.cases-more { text-align: center; margin-top: 40px; }

/* ---------- guide preview cards ---------- */
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.guide-card { border: 1px solid var(--line); border-radius: 10px; padding: 26px 22px; transition: border-color .2s ease; }
.guide-card:hover { border-color: var(--accent); }
.guide-card .guide-icon { width: 34px; height: 34px; color: var(--accent); margin-bottom: 14px; }
.guide-card .guide-icon svg { width: 100%; height: 100%; }
.guide-card h3 { font-size: 15.5px; font-weight: 700; margin-bottom: 8px; }
.guide-card p { font-size: 13.5px; color: var(--desc); }

/* ---------- region grid ---------- */
.region-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.region-chip { display: block; text-align: center; padding: 18px 10px; border: 1px solid var(--line); border-radius: 8px; font-family: var(--font-btn); font-weight: 600; font-size: 14.5px; transition: border-color .2s ease, background .2s ease; }
.region-chip:hover { border-color: var(--accent); background: var(--accent-soft); }

/* ---------- about strip ---------- */
.about-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.about-strip-item { padding: 26px; border-top: 2px solid var(--accent); }
.about-strip-item b { display: block; font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.about-strip-item p { font-size: 13.5px; color: var(--desc); }

/* ---------- portfolio intro ---------- */
.pf-intro { display: flex; gap: 56px; align-items: center; margin-bottom: 56px; }
.pf-intro-text { flex: 1 1 0; min-width: 0; }
.pf-intro-text .eyebrow { }
.pf-intro-text p { margin-top: 14px; font-size: 15px; color: var(--desc); line-height: 1.85; }
.pf-intro-list { margin-top: 18px; }
.pf-intro-list li { font-size: 14px; color: var(--ink); padding: 6px 0; }
.pf-intro-list li span { color: var(--accent); font-weight: 700; margin-right: 8px; }
.pf-intro-img { flex: 1 1 0; min-width: 0; aspect-ratio: 7/6; overflow: hidden; border-radius: 0; }
.pf-intro-img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- portfolio grid (영림 레이아웃 참고) ---------- */
.pf-list { display: flex; flex-wrap: wrap; gap: 22px; }
.pf-item { flex: 1 1 49%; text-decoration: none; }
.pf-thumb { aspect-ratio: 7/6; overflow: hidden; }
.pf-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pf-item:nth-child(12n+1) , .pf-item:nth-child(12n+6), .pf-item:nth-child(12n+9) { flex-basis: 29%; }
.pf-item:nth-child(12n+1) .pf-thumb, .pf-item:nth-child(12n+6) .pf-thumb, .pf-item:nth-child(12n+9) .pf-thumb { aspect-ratio: 5/6; }
.pf-item:nth-child(12n+2), .pf-item:nth-child(12n+5), .pf-item:nth-child(12n+10) { flex-basis: 67%; }
.pf-item:nth-child(12n+2) .pf-thumb, .pf-item:nth-child(12n+5) .pf-thumb, .pf-item:nth-child(12n+10) .pf-thumb { aspect-ratio: 9.45/5; }
.pf-cap { padding-top: 14px; }
.pf-cap .pf-cat { font-family: var(--font-btn); font-size: 12px; color: var(--accent); font-weight: 700; }
.pf-cap h3 { font-size: 15.5px; font-weight: 700; margin-top: 6px; }
.pf-pagi { display: flex; justify-content: center; gap: 10px; margin-top: 56px; }
.pf-pagi a, .pf-pagi span { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-btn); font-size: 14px; border: 1px solid var(--line); }
.pf-pagi .is-current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- gallery-case detail ---------- */
.case-body-wrap { max-width: 760px; margin: 0 auto; }
.case-top-img { width: 550px; max-width: 100%; height: 410px; border-radius: 18px; overflow: hidden; margin: 0 auto 40px; }
.case-top-img img { width: 100%; height: 100%; object-fit: cover; }
.case-label { font-family: var(--font-btn); font-size: 11px; color: var(--desc); letter-spacing: .06em; margin-bottom: 10px; }
.case-title { font-size: clamp(22px, 3vw, 28px); font-weight: 700; margin-bottom: 22px; }
.case-text p { font-size: 15.5px; color: #3A3F44; line-height: 1.95; margin-bottom: 20px; }
.case-text b { font-weight: 700; color: var(--ink); }

.phase-row { display: grid; grid-template-columns: repeat(var(--n, 2), 1fr); gap: 18px; margin: 44px 0; }
.phase-item { text-align: center; }
.phase-item img { width: 100%; height: auto; max-height: 500px; object-fit: contain; border-radius: 10px; background: #F4F4F2; }
.phase-item span { display: block; margin-top: 10px; font-family: var(--font-btn); font-size: 12.5px; font-weight: 700; color: var(--accent); }

.related-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 12px 0 0; max-width: 760px; margin-left: auto; margin-right: auto; }
.related-row a { display: block; }
.related-row img { width: 100%; height: 180px; object-fit: cover; border-radius: 10px; }
.related-row .pf-cap { padding-top: 10px; }

.guide-related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 12px; }
.guide-related a { display: block; min-width: 0; }
.guide-related img { width: 100%; height: 170px; object-fit: cover; border-radius: 10px; }
.guide-related .pf-cap { padding-top: 10px; }

.guide-hub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; max-width: 1200px; margin: 0 auto; }
.guide-hub-card { display: block; min-width: 0; }
.guide-hub-thumb { aspect-ratio: 4/3; overflow: hidden; border-radius: 10px; }
.guide-hub-thumb img { width: 100%; height: 100%; object-fit: cover; }
.guide-hub-card .pf-cat { font-family: var(--font-btn); font-size: 12px; color: var(--accent); font-weight: 700; margin-top: 14px; }
.guide-hub-card h3 { font-size: 17px; font-weight: 700; margin-top: 6px; }
.guide-hub-card p { font-size: 13.5px; color: var(--desc); margin-top: 8px; line-height: 1.7; }
.guide-hub-more { display: inline-block; margin-top: 10px; font-family: var(--font-btn); font-size: 13px; font-weight: 700; color: var(--accent); }

/* ---------- process (rackmaster) ---------- */
.process-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid #E0E0DC; }
.process-item { padding: 28px 24px 28px 0; border-right: 1px solid #E0E0DC; }
.process-item:not(:first-child) { padding-left: 24px; }
.process-item:last-child { border-right: none; padding-right: 0; }
.pnum { display: block; font-size: 13px; font-weight: 700; color: var(--accent); margin-bottom: 12px; font-family: var(--font-btn); }
.process-item h3 { font-size: 16px; font-weight: 800; color: #22262B; margin: 0 0 10px; }
.process-item p { font-size: 13.5px; color: #5B6169; line-height: 1.7; margin: 0; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 20px 4px; text-align: left; font-size: 15.5px; font-weight: 600; }
.faq-plus { color: var(--accent); font-size: 18px; font-family: var(--font-btn); transition: transform .25s ease; }
.faq-item.is-open .faq-plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-item.is-open .faq-a { max-height: 240px; }
.faq-a p { padding: 0 4px 20px; font-size: 14.5px; color: var(--desc); line-height: 1.8; }

/* ---------- closing (B-25) ---------- */
.closing { position: relative; height: 650px; overflow: hidden; background: #111; }
.closing-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.closing-overlay { position: absolute; inset: 0; background: rgba(19,19,19,.55); }
.closing-inner { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #fff; padding: 0 24px; }
.closing-inner h2 { font-size: clamp(24px, 3.4vw, 36px); font-weight: 700; max-width: 720px; }
.closing-quote { margin-top: 20px; font-size: 15.5px; color: #EDE9EB; max-width: 520px; }
.btn-closing { margin-top: 30px; padding: 14px 34px; border: 1px solid #fff; color: #fff; font-family: var(--font-btn); font-weight: 600; font-size: 15px; border-radius: 0; }
.btn-closing:hover { background: rgba(255,255,255,.12); }

/* ---------- footer ---------- */
.site-footer { background: #FFFFFF; color: var(--ink); border-top: 1px solid var(--line); padding: 56px 0 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; padding-bottom: 40px; flex-wrap: wrap; }
.footer-brand { font-family: var(--font-btn); font-weight: 700; font-size: 17px; margin-bottom: 14px; }
.footer-biz { font-size: 13px; color: var(--desc); line-height: 1.9; white-space: nowrap; }
.footer-col { min-width: 160px; }
.footer-heading { font-family: var(--font-btn); font-weight: 700; font-size: 13px; color: var(--desc); margin-bottom: 14px; }
.footer-col a { display: block; font-size: 14px; padding: 5px 0; font-family: var(--font-btn); }
.footer-col-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}
.footer-col-cta .footer-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 140px;
  height: 44px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 6px;
  text-align: center;
  box-sizing: border-box;
}
.footer-col-cta .btn:not(.btn-outline) {
  background: var(--accent);
  color: #fff;
  border: 2px solid var(--accent);
}
.footer-col-cta .btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.footer-copy { border-top: 1px solid var(--line); padding: 18px 0; font-size: 12px; color: #9A9EA3; font-family: var(--font-btn); }

/* ---------- bottom bar (B-23, desktop only) ---------- */
.bottom-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 400;
  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.is-visible { transform: translateY(0); opacity: 1; }
.bottom-bar-inner { display: flex; justify-content: flex-end; padding: 14px 24px; }
.bottom-bar-cta { min-height: 48px; padding: 0 28px; }

/* ---------- mobile bar (mobile only, always visible) ---------- */
.mobile-bar { display: none; }

@media (max-width: 767px) {
  .nav-menu { display: none; }
  .nav-toggle { display: flex; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .cases-grid { grid-template-columns: 1fr; }
  .guide-grid { grid-template-columns: 1fr; }
  .about-strip { grid-template-columns: 1fr; }
  .region-grid { grid-template-columns: repeat(2, 1fr); }
  .pf-intro { flex-direction: column; gap: 24px; }
  .pf-item { flex-basis: 100% !important; }
  .pf-item .pf-thumb { aspect-ratio: 4/3 !important; }
  .phase-row { grid-template-columns: 1fr !important; }
  .related-row { grid-template-columns: 1fr 1fr; }
  .guide-related, .guide-hub-grid { grid-template-columns: 1fr; }
  .mobile-menu { display: grid; grid-template-columns: repeat(4, 1fr); column-gap: 6px; padding: 8px 12px 16px; }
  .mobile-menu a { padding: 12px 2px; font-size: 14px; text-align: center; white-space: nowrap; word-break: keep-all; }
  .mobile-menu a.btn { grid-column: 1 / -1; }
  h1, h2, h3, .btn, .btn-closing { word-break: keep-all; }
  .page-hero h1 { font-size: clamp(22px, 7vw, 30px); }
  .logo-keyword, .guide-hub-card h3, .pf-cap h3 { white-space: normal; }
  .process-list { grid-template-columns: 1fr 1fr; column-gap: 20px; }
  .process-item { border-right: none; border-bottom: 1px solid #E0E0DC; padding: 20px 0 !important; }
  .case-top-img { height: 320px; }
  .bottom-bar { display: none; }
  .mid-banner { flex-direction: column; }
  .mid-banner-img { width: 100%; }

  .mobile-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 600;
    background: var(--bar-chrome); border-top: 1px solid #E5E7EB;
    box-shadow: 0 -4px 16px rgba(0,0,0,.08);
  }
  .mobile-bar-btn { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 56px; font-family: var(--font-btn); font-weight: 700; font-size: 15px; }
  .mobile-bar-primary { background: var(--accent); color: var(--accent-text); }
  .mobile-bar-tel { flex: 0 0 56px; color: var(--ink); }
  body { padding-bottom: 56px; }
  .footer-biz { white-space: normal; }
}
