:root {
  --c-primary: #1942B5;
  --c-primary-dark: #122F82;
  --c-accent: #EEC04D;
  --c-accent-dark: #8A6A1E;
  --c-accent-light: #F5D77E;
  --c-accent-rgb: 238,192,77;
  --c-bg: #FAF9F4;
  --c-bg-alt: #F1EEE2;
  --c-bg-card: #EAE5D3;
  --c-bg-dark: #12307F;
  --c-text: #1A1A22;
  --c-text-muted: #5C5C6B;
  --c-border: #E1DDCB;
  --c-white: #ffffff;
  --text-on-light: #1A1A22;
  --text-on-dark: #ffffff;
  --shadow-sm: none;
  --shadow-md: 0 2px 0 rgba(25,66,181,.18);
  --shadow-lg: 0 10px 24px rgba(18,30,50,.22);
  --radius: 0px;
  --radius-sm: 0px;
  --radius-full: 0px;
  --radius-card: 0px;
  --font-heading: 'Space Grotesk', 'Pretendard Variable', 'Pretendard', -apple-system, sans-serif;
  --font-body: 'Pretendard Variable', 'Pretendard', -apple-system, sans-serif;
  --container: 1200px;
  --section-v: 96px;
  --header-h: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body, p, h1, h2, h3, h4, h5, h6, li, td, th, a, span, div, button {
  word-break: keep-all;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-heading); margin: 0; line-height: 1.3; }
h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 700; }
h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 700; }
h3 { font-size: 20px; font-weight: 700; }
p { margin: 0 0 16px; color: var(--c-text); }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
section { padding: var(--section-v) 0; }
.section-tight { padding: 56px 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-heading);
  font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--c-accent-dark); margin-bottom: 18px;
}
.eyebrow::before { content: ''; width: 26px; height: 2px; background: var(--c-accent); flex-shrink: 0; }
.section-invert .eyebrow { color: var(--c-accent-light); }
.section-head { max-width: 640px; margin: 0 0 44px; }
.section-head p { color: var(--c-text-muted); font-size: 16px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 30px; border-radius: var(--radius); font-weight: 700; font-size: 16px;
  border: none; cursor: pointer; transition: transform .18s var(--ease, ease), box-shadow .18s;
}
.btn-primary { background: var(--c-accent); color: var(--c-primary); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--c-white); border: 1.5px solid rgba(255,255,255,.5); }
.btn-outline-dark { background: transparent; color: var(--c-primary); border: 1.5px solid var(--c-border); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover, .card:hover, .link-card:hover, .cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
}
.btn:active { transform: translateY(0); }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center; background: var(--c-bg);
  border-bottom: 2px solid var(--c-primary);
}
.hdr-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.hdr-logo { font-family: var(--font-heading); font-weight: 700; font-size: 20px; color: var(--c-primary); }
.hdr-logo span { color: var(--c-accent); }
.hdr-nav { display: flex; gap: 28px; }
.hdr-nav a { font-size: 15px; font-weight: 600; color: var(--c-text); }
.hdr-cta { display: flex; align-items: center; gap: 14px; }
.hdr-cta .btn { padding: 11px 22px; font-size: 14px; }
.hamburger { display: none; width: 40px; height: 40px; border: none; background: none; cursor: pointer; position: relative; }
.hamburger span { position: absolute; left: 8px; right: 8px; height: 2px; background: var(--c-primary); transition: transform .2s, opacity .2s; }
.hamburger span:nth-child(1) { top: 14px; }
.hamburger span:nth-child(2) { top: 20px; }
.hamburger span:nth-child(3) { top: 26px; }
.hamburger.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
#mob-nav {
  position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; background: var(--c-bg);
  transform: translateX(100%); transition: transform .28s var(--ease, ease); z-index: 99; overflow-y: auto;
}
#mob-nav.open { transform: translateX(0); }
#mob-nav .container { padding-top: 32px; }
#mob-nav a { display: block; padding: 16px 0; font-size: 18px; font-weight: 700; border-bottom: 1px solid var(--c-border); }

/* hero */
.hero { position: relative; min-height: 640px; display: flex; align-items: center; overflow: hidden; }
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide { position: absolute; inset: 0; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-slide::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 45%;
  background: linear-gradient(to top, rgba(18,20,30,.55), transparent);
}
.hero-content { position: relative; z-index: 2; }
.hero-card {
  max-width: 620px; background: var(--c-primary-dark);
  padding: 44px; border: 2px solid var(--c-primary);
}
.hero-card .eyebrow { color: var(--c-accent-light); }
.hero-card h1 { color: #fff; }
.hero-sub { color: #DCE3F5; font-size: 17px; margin: 18px 0 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* hero bento (메인 전용) — 텍스트 패널이 사진 그리드 안의 한 칸으로 들어가는 벤토형 레이아웃.
   완료 현장 애프터 사진을 가로형 타일로 채워 시공 이력을 시각적으로 보여준다.
   타일마다 aspect-ratio를 고정해 어떤 뷰포트·컬럼수에서도 세로로 크롭되지 않는다. */
.hero--mosaic { display: block; min-height: 0; overflow: visible; padding: 0; }
.hero-mosaic {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--c-primary-dark);
}
@media (min-width: 900px) { .hero-mosaic { grid-template-columns: repeat(5, 1fr); grid-auto-flow: dense; } }
.hero-mosaic img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
/* 모바일 3열 그리드는 3x3(9장)까지만 노출 — 나머지는 데스크톱(5열x4행, 16장)에서만 보인다 */
@media (max-width: 899px) { .hero-mosaic img:nth-of-type(n+10) { display: none; } }
.hero-mosaic .hero-card {
  grid-column: span 3; grid-row: span 1; max-width: none;
  background: var(--c-primary-dark); border: none; color: #fff;
  padding: 32px 28px; display: flex; flex-direction: column; justify-content: center;
}
@media (min-width: 900px) { .hero-mosaic .hero-card { grid-column: span 2; grid-row: span 2; padding: 44px; } }
.hero-mosaic .hero-card .eyebrow { color: var(--c-accent-light); }
.hero-mosaic .hero-card h1 { color: #fff; }
.hero-mosaic .hero-sub { color: #DCE3F5; }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
.stagger.in > * { transition-delay: calc(var(--i, 0) * 80ms); }

/* grids */
.dp-g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.dp-g3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.dp-g4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.dp-stat3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; text-align: center; align-items: center; }
@media (max-width: 1024px) { .dp-g3, .dp-g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .dp-g2, .dp-g3, .dp-g4 { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .dp-stat3 { grid-template-columns: 1fr; gap: 16px; } }

/* cards */
.card {
  background: var(--c-white); border: 1px solid var(--c-border); border-radius: var(--radius-card);
  padding: 28px; box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .18s;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--c-text-muted); margin-bottom: 0; font-size: 14.5px; }
.card-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
@media (max-width: 768px) { .card-badges { flex-direction: column; align-items: flex-start; gap: 6px; } }
.badge {
  display: inline-block; font-size: 12.5px; font-weight: 600; padding: 5px 12px;
  border-radius: var(--radius-full); background: var(--c-bg-alt); color: var(--c-accent-dark);
}

/* category / link cards (thumbnail) */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 1024px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cat-grid { grid-template-columns: 1fr; } #categories .cat-grid > a:nth-child(n+7) { display: none; } }
.link-card {
  display: block; background: var(--c-white); border: 1px solid var(--c-border); border-radius: var(--radius-card);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .18s;
}
.link-card .thumb { width: 100%; aspect-ratio: 4/3; overflow: hidden; background: var(--c-bg-card); }
.link-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.link-card .body { padding: 18px 20px; }
.link-card .body .cat-label { font-size: 12px; color: var(--c-accent-dark); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.link-card .body h3 { margin: 6px 0 6px; font-size: 17px; }
.link-card .body p { font-size: 13.5px; margin: 0; }
.link-card.cta-card { display: flex; align-items: center; justify-content: center; text-align: center; background: var(--c-primary); color: #fff; }
.link-card.cta-card .body { padding: 40px 20px; }
.link-card.cta-card h3 { color: #fff; }
.link-card.cta-card p { color: #C9D3EC; }

/* before/after */
.ba-set h3 { margin-bottom: 14px; }
.ba-set-link { display: inline-block; margin-top: 12px; font-weight: 700; font-size: 14px; color: var(--c-accent-light); }
.ba-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-md); }
@media (max-width: 600px) { .ba-wrap { grid-template-columns: 1fr; } }
.ba-item { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.ba-item img { width: 100%; height: 100%; object-fit: cover; }
.ba-item .ba-tag {
  position: absolute; top: 14px; left: 14px; background: rgba(18,20,30,.82); color: #fff;
  font-size: 12.5px; font-weight: 700; padding: 6px 14px; border-radius: var(--radius-full); letter-spacing: .04em;
}

/* process / timeline */
.proc-list { display: flex; }
.proc-step { flex: 1; position: relative; padding: 0 12px; text-align: center; }
.proc-step:not(:last-child)::after {
  content: ''; position: absolute; top: 24px; left: 50%; width: 100%; height: 2px;
  background: var(--c-border); z-index: 0;
}
.proc-num {
  position: relative; z-index: 1; margin: 0 auto 14px; width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center; background: var(--c-accent); color: var(--c-primary);
  font-family: var(--font-heading); font-weight: 700;
}
.proc-step p { font-size: 14.5px; font-weight: 600; margin: 0; }
@media (max-width: 768px) {
  .proc-list { flex-direction: column; gap: 10px; }
  .proc-step { padding: 24px 0; }
  .proc-step::after { display: none; }
}

/* stat block / compare table / term card */
.stat-block { background: var(--c-primary); color: #fff; border-radius: var(--radius-card); padding: 32px; text-align: center; }
.stat-block .num { font-family: var(--font-heading); font-size: 34px; font-weight: 700; color: var(--c-accent); }
.stat-block p { color: #C9D3EC; margin: 6px 0 0; font-size: 14px; }
.term-card { background: var(--c-bg-alt); border-radius: var(--radius-card); padding: 22px; }
.term-card h4 { color: var(--c-primary); margin-bottom: 8px; }
.term-card p { color: var(--c-text-muted); font-size: 14px; margin: 0; }
.compare-wrap { overflow-x: auto; }
.compare-table { width: 100%; border-collapse: collapse; background: var(--c-white); border-radius: var(--radius-card); overflow: hidden; min-width: 480px; }
.compare-table th, .compare-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--c-border); font-size: 14.5px; }
.compare-table td { color: var(--c-text); }
.compare-table th { background: var(--c-primary); color: #fff; font-family: var(--font-heading); }
.checklist li { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--c-border); font-size: 15px; }
.checklist li::before { content: '✓'; color: var(--c-accent-dark); font-weight: 700; }
.section-invert .checklist li { border-bottom-color: rgba(255,255,255,.18); }
.section-invert .checklist li::before { color: var(--c-accent-light); }

/* faq accordion */
.faq-item { border-bottom: 1px solid var(--c-border); }
.faq-q { display: flex; justify-content: space-between; align-items: center; padding: 20px 4px; cursor: pointer; font-weight: 700; font-size: 15.5px; }
.faq-q .plus { font-family: var(--font-heading); font-size: 20px; color: var(--c-accent-dark); transition: transform .25s; }
.faq-item.open .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding: 0 4px 20px; color: var(--c-text-muted); font-size: 14.5px; }

/* section-invert */
.section-invert { background: var(--c-primary); color: #fff; }
.section-invert h2, .section-invert h3 { color: #fff; }
.section-invert p { color: #C9D3EC; }
.section-invert .card { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); }
.section-invert .card h3 { color: #fff; }
.section-invert .card p { color: #C9D3EC; }
.section-invert .stat-block { background: rgba(255,255,255,.08); }
.section-invert .term-card { background: rgba(255,255,255,.06); }
.section-invert .term-card h4 { color: #fff; }
.section-invert .term-card p { color: #C9D3EC; }
.section-invert .compare-table th { background: var(--c-accent); color: var(--c-primary); }
.section-invert .proc-step p { color: #fff; }

/* footer */
.site-footer { background: var(--c-primary-dark); color: #C9D3EC; padding: 64px 0 28px; }
.ftr-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
@media (max-width: 768px) { .ftr-grid { grid-template-columns: 1fr; gap: 32px; } }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.site-footer p, .site-footer li { font-size: 13.5px; color: #96A6D6; line-height: 1.9; }
.site-footer a { color: #C9D3EC; }
.ftr-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 22px; font-size: 12.5px; color: #6B7AA8; }

/* mobile sticky bar */
#mob-bar {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  background: var(--c-white); border-top: 2px solid var(--c-primary); padding: 10px 16px;
}
#mob-bar a { display: flex; align-items: center; justify-content: center; }
#float-cta {
  position: fixed; right: 28px; bottom: 28px; z-index: 90; box-shadow: var(--shadow-lg);
}
#top-btn {
  position: fixed; left: 28px; bottom: 28px; z-index: 89; width: 48px; height: 48px;
  display: none; align-items: center; justify-content: center;
  background: var(--c-primary); color: #fff; border: none; cursor: pointer; box-shadow: var(--shadow-lg);
  font-size: 18px; font-weight: 700;
}
#top-btn.show { display: flex; }
@media (max-width: 768px) {
  .hdr-nav, .hdr-phone, .hdr-cta .btn-outline-dark { display: none; }
  .hamburger { display: block; }
  #mob-bar { display: block; }
  #float-cta { display: none; }
  #top-btn { left: auto; right: 16px; bottom: 80px; width: 42px; height: 42px; }
  body { padding-bottom: 64px; }
  .cat-grid, .dp-g2 { grid-template-columns: 1fr; }
}
@media (max-width: 1024px) { .ba-wrap { grid-template-columns: 1fr 1fr; } }

.br-mobile { display: none; }
.br-desktop { display: inline; }
@media (max-width: 768px) {
  .br-mobile { display: inline; }
  .br-desktop { display: none; }
}

table { overflow-x: auto; }
.table-wrap { overflow-x: auto; }

/* animations */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
