/* 색은 여기 맨 위만 바꾸면 전체에 적용됩니다 */
:root {
  --navy: #14304f;
  --navy-2: #0d2238;
  --accent: #e0731f;
  --ink: #1d232b;
  --muted: #5d6773;
  --line: #e2e6ea;
  --gray: #f4f6f8;
  --radius: 10px;
  --wrap: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Pretendard", -apple-system, "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  color: var(--ink);
  line-height: 1.65;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .5em; letter-spacing: -0.02em; }
p { margin: 0 0 .8em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.boot { padding: 120px 20px; text-align: center; color: var(--muted); }

/* 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 13px 24px; border-radius: 8px; border: 1.5px solid var(--accent);
  background: var(--accent); color: #fff; font-weight: 600; font-size: 15px; cursor: pointer;
  transition: filter .15s, background .15s;
}
.btn:hover { filter: brightness(1.08); }
.btn-line { background: transparent; border-color: rgba(255,255,255,.7); color: #fff; }
.btn-line:hover { background: rgba(255,255,255,.1); }
.btn-line.dark { border-color: var(--navy); color: var(--navy); }
.btn-line.dark:hover { background: var(--gray); }
.btn-sm { padding: 8px 16px; font-size: 14px; }

/* 헤더 */
.hd { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.hd-in { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 20px; }
.brand img { height: 38px; width: auto; }
.brand b { color: var(--navy); font-weight: 800; }
.mark { width: 36px; height: 36px; border-radius: 8px; background: var(--navy); color: #fff; font-weight: 800; font-size: 14px; display: grid; place-items: center; }
.nav { display: flex; gap: 6px; }
.nav a { padding: 10px 16px; border-radius: 8px; font-weight: 600; color: #39424d; }
.nav a:hover { background: var(--gray); }
.nav a.on { color: var(--accent); }
.burger { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.burger i { display: block; width: 22px; height: 2px; background: var(--navy); margin: 5px 0; transition: .2s; }

/* 메인 */
.hero {
  position: relative; min-height: 560px; display: flex; align-items: center; color: #fff;
  background: linear-gradient(135deg, var(--navy-2), var(--navy) 60%, #24507c) center/cover no-repeat;
}
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,24,40,.82), rgba(10,24,40,.35)); }
.hero-in { position: relative; width: 100%; padding-top: 60px; padding-bottom: 60px; }
.eyebrow { font-size: 13px; letter-spacing: .18em; font-weight: 700; color: #f2a35e; margin-bottom: 14px; }
.eyebrow.dark { color: var(--accent); }
.hero h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; margin-bottom: 18px; }
.hero-sub { font-size: clamp(16px, 1.8vw, 19px); opacity: .92; max-width: 640px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.badges { background: var(--navy-2); color: #fff; }
.badges-in { display: grid; grid-template-columns: repeat(4, 1fr); }
.badge { padding: 22px 10px; text-align: center; font-weight: 700; font-size: 16px; border-left: 1px solid rgba(255,255,255,.12); }
.badge:first-child { border-left: 0; }

.sec { padding: 90px 0; }
.sec-gray { background: var(--gray); }
.sec-title { font-size: 30px; text-align: center; margin-bottom: 40px; }
.sub-title { font-size: 22px; margin: 60px 0 20px; }
.sec-hd { display: flex; justify-content: space-between; align-items: end; margin-bottom: 28px; }
.sec-hd h2 { font-size: 28px; margin: 0; }
.sec-hd a { color: var(--accent); font-weight: 600; }
.note { text-align: center; color: var(--muted); margin-top: 26px; }

/* 사진 자리 */
.ph { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); background: #dfe4e9; }
.ph-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  color: #8592a0; font-weight: 600; text-align: center; padding: 10px;
  background: repeating-linear-gradient(45deg, #e8ecf0, #e8ecf0 12px, #e1e6eb 12px, #e1e6eb 24px);
}
.ph-empty small { font-weight: 400; font-size: 13px; }

.teasers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.teaser { border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.teaser:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(20,48,79,.12); }
.teaser .ph { border-radius: 0; }
.teaser-tx { padding: 24px; }
.teaser-tx small { color: var(--accent); font-weight: 700; }
.teaser-tx h3 { font-size: 21px; margin-top: 6px; }
.teaser-tx p { color: var(--muted); font-size: 15px; }
.more { color: var(--navy); font-weight: 700; font-size: 14px; }

.cta { background: var(--navy); color: #fff; padding: 60px 0; }
.cta-in { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta h2 { font-size: 26px; }
.cta p { opacity: .85; margin: 0; }
.cta-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* 페이지 머리 */
.phead { background: linear-gradient(135deg, var(--navy-2), var(--navy)); color: #fff; padding: 70px 0 60px; }
.phead h1 { font-size: 38px; font-weight: 800; }
.phead p { opacity: .85; margin: 0; font-size: 17px; }

/* 회사소개 */
.about { display: grid; grid-template-columns: 1fr 1.15fr; gap: 60px; align-items: start; }
.about-img .ph { aspect-ratio: 4/5; }
.about-tx h2 { font-size: 30px; margin-bottom: 24px; }
.about-tx p { color: #3c4550; font-size: 16.5px; }
.sign { margin-top: 28px; font-size: 17px !important; }
.sign b { font-size: 20px; margin-left: 6px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.fact { background: #fff; border-radius: var(--radius); padding: 28px 22px; border-top: 4px solid var(--accent); }
.fact b { font-size: 18px; color: var(--navy); }
.fact p { color: var(--muted); margin: 8px 0 0; font-size: 15px; }

/* 공법개요 */
.mrow { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-bottom: 80px; }
.mrow:last-child { margin-bottom: 0; }
.mrow.rev .mrow-img { order: 2; }
.num { color: var(--accent); font-weight: 800; font-size: 15px; }
.mrow-tx h2 { font-size: 28px; }
.mrow-tx > p { color: var(--muted); }
.spec { display: grid; grid-template-columns: 120px 1fr; margin: 20px 0 0; border-top: 2px solid var(--navy); }
.spec dt, .spec dd { padding: 12px 4px; border-bottom: 1px solid var(--line); margin: 0; }
.spec dt { font-weight: 700; color: var(--navy); }
.tbl-wrap { overflow-x: auto; margin-top: 16px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 420px; }
.tbl th, .tbl td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: center; }
.tbl th { background: var(--gray); }
.tbl .hl { background: #fff3e8; color: var(--accent); font-weight: 700; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.tiles.t3 { grid-template-columns: repeat(3, 1fr); }
.tile h4 { margin: 14px 0 4px; font-size: 18px; }
.tile p { color: var(--muted); font-size: 15px; }
.papers { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--navy); }
.papers li { padding: 16px 4px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.papers span { color: var(--muted); font-size: 14px; }

/* 시공사례 */
.tabs { display: flex; gap: 8px; margin-bottom: 30px; flex-wrap: wrap; }
.tabs a { padding: 10px 22px; border-radius: 999px; border: 1px solid var(--line); font-weight: 600; color: var(--muted); }
.tabs a.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { position: relative; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; padding: 0; cursor: pointer; font: inherit; color: inherit; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(20,48,79,.12); }
.card .ph { border-radius: 0; }
.cnt { position: absolute; top: 12px; right: 12px; background: rgba(0,0,0,.6); color: #fff; font-size: 13px; padding: 3px 10px; border-radius: 999px; }
.card-tx { padding: 18px 20px; }
.card-tx small { color: var(--accent); font-weight: 700; }
.card-tx h3 { font-size: 18px; margin: 4px 0; }
.card-tx p { color: var(--muted); font-size: 14px; margin: 0; }
.empty { color: var(--muted); padding: 40px 0; text-align: center; grid-column: 1/-1; list-style: none; }

.modal { position: fixed; inset: 0; z-index: 100; background: rgba(8,16,26,.86); display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-box { position: relative; background: #fff; border-radius: 14px; width: min(980px, 100%); max-height: 94vh; overflow: auto; }
.x { position: absolute; top: 10px; right: 12px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(0,0,0,.55); color: #fff; font-size: 26px; cursor: pointer; line-height: 1; }
.viewer { position: relative; background: #111; display: flex; align-items: center; justify-content: center; min-height: 300px; }
.viewer img { max-height: 66vh; width: auto; margin: 0 auto; }
.viewer .ph-empty { aspect-ratio: 16/9; border-radius: 0; }
.nav-b { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.85); font-size: 30px; cursor: pointer; line-height: 1; }
.prev { left: 14px; } .next { right: 14px; }
.pg { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,.6); color: #fff; font-size: 13px; padding: 3px 12px; border-radius: 999px; }
.thumbs { display: flex; gap: 6px; padding: 10px; overflow-x: auto; background: #f1f3f5; }
.thumbs img { width: 84px; height: 62px; object-fit: cover; border-radius: 6px; cursor: pointer; opacity: .55; flex: none; }
.thumbs img.on { opacity: 1; outline: 2px solid var(--accent); }
.modal-tx { padding: 22px 26px 26px; }
.modal-tx h3 { font-size: 22px; }
.meta { color: var(--accent); font-weight: 600; }

/* 자료실 */
.res { list-style: none; padding: 0; margin: 0 auto; max-width: 860px; border-top: 2px solid var(--navy); }
.res li { display: flex; align-items: center; gap: 16px; padding: 20px 8px; border-bottom: 1px solid var(--line); }
.res-ic { width: 44px; height: 44px; border-radius: 10px; background: var(--gray); display: grid; place-items: center; flex: none; color: var(--navy); }
.res-tx { flex: 1; }
.res-tx b { font-size: 17px; display: block; }
.res-tx small { color: var(--muted); }
.soon { color: var(--muted); font-size: 14px; }

/* 오시는길 */
.locs { display: grid; gap: 40px; }
.loc { display: grid; grid-template-columns: 1.4fr 1fr; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.loc iframe { width: 100%; height: 100%; min-height: 340px; border: 0; }
.loc-tx { padding: 32px; }
.loc-tx h3 { font-size: 24px; color: var(--navy); }
.loc-tx dl { display: grid; grid-template-columns: 56px 1fr; gap: 10px 8px; margin: 20px 0 26px; }
.loc-tx dt { font-weight: 700; color: var(--muted); }
.loc-tx dd { margin: 0; }

/* 푸터 */
.ft { background: #11171e; color: #9aa4af; font-size: 14px; padding: 46px 0 26px; }
.ft-in { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.ft-name { color: #fff; font-size: 17px; display: block; margin-bottom: 10px; }
.ft p { margin: 0 0 4px; }
.ft-links { display: flex; gap: 18px; align-items: start; }
.ft-links a:hover { color: #fff; }
.ft-copy { border-top: 1px solid #222b35; margin-top: 30px; padding-top: 18px; font-size: 13px; }

/* 반응형 */
@media (max-width: 960px) {
  .teasers, .cards { grid-template-columns: repeat(2, 1fr); }
  .tiles, .facts { grid-template-columns: repeat(2, 1fr); }
  .about, .mrow, .loc { grid-template-columns: 1fr; gap: 30px; }
  .mrow.rev .mrow-img { order: 0; }
  .badges-in { grid-template-columns: repeat(2, 1fr); }
  .badge:nth-child(3) { border-left: 0; }
  .badge { border-top: 1px solid rgba(255,255,255,.12); }
}
@media (max-width: 760px) {
  .burger { display: block; }
  .nav { position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 12px 14px; display: none; }
  body.nav-open .nav { display: flex; }
  .sec { padding: 60px 0; }
  .hero { min-height: 480px; }
  .teasers, .cards, .tiles, .tiles.t3 { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .phead { padding: 50px 0 40px; }
  .phead h1 { font-size: 30px; }
  .loc iframe { min-height: 260px; }
}

/* ───────── 메인 슬라이드 ───────── */
.hero { overflow: hidden; }
.slides { position: absolute; inset: 0; }
.slide {
  position: absolute; inset: 0; background: center/cover no-repeat;
  opacity: 0; transform: scale(1.06); transition: opacity 1.2s ease, transform 6s ease;
}
.slide.on { opacity: 1; transform: scale(1); }
.slide.demo { background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.04) 0 24px, transparent 24px 48px); }
.slide.d1 { background-color: #3d4a57; }
.slide.d2 { background-color: #4f5d4a; }
.slide.d3 { background-color: #5b4e44; }
.slide.d4 { background-color: #3f4e63; }
.demo-tag { position: absolute; right: 6%; top: 50%; transform: translateY(-50%); font-size: clamp(18px, 2.4vw, 28px); font-weight: 700; color: rgba(255,255,255,.35); }
.hero.has-slides .hero-shade { background: linear-gradient(90deg, rgba(10,24,40,.78), rgba(10,24,40,.25) 70%); }
.sl-b {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); cursor: pointer;
  background: rgba(0,0,0,.25); color: #fff; font-size: 22px; line-height: 1; padding: 0 0 3px;
}
.sl-b:hover { background: rgba(0,0,0,.5); border-color: #fff; }
.sl-b.prev { margin-right: 6px; }
.sl-b.next { margin-left: 6px; }
.sl-foot {
  position: absolute; left: 0; right: 0; bottom: 22px; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.sl-cap { font-size: 14px; color: rgba(255,255,255,.85); text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.sl-cap:not(:empty)::before { content: "시공현장 · "; color: #f2a35e; font-weight: 700; }
.dots { display: flex; align-items: center; gap: 8px; }
.dots .dot { width: 10px; height: 10px; border-radius: 5px; border: 0; padding: 0; cursor: pointer; background: rgba(255,255,255,.45); transition: width .3s; }
.dots .dot.on { width: 28px; background: var(--accent); }
@media (prefers-reduced-motion: reduce) {
  .slide { transition: opacity .3s; transform: none; }
}

/* ───────── 첫 화면 팝업 ───────── */
.pop-layer {
  position: fixed; inset: 0; z-index: 90; background: rgba(8,16,26,.5);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px;
  padding: 20px; overflow-y: auto;
}
.pop { width: min(420px, 100%); background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.pop-body img { display: block; width: 100%; height: auto; max-height: 70vh; object-fit: contain; background: #fff; }
.pop-body a { display: block; color: inherit; }
.pop-tx { padding: 34px 28px 30px; }
.pop-tx h3 { font-size: 21px; color: var(--navy); margin-bottom: 14px; padding-bottom: 14px; border-bottom: 2px solid var(--accent); }
.pop-tx p { color: var(--ink); line-height: 1.75; }
.pop-bar { display: flex; justify-content: space-between; background: #1d232b; }
.pop-bar button { background: none; border: 0; color: #fff; font: inherit; font-size: 14px; padding: 12px 16px; cursor: pointer; }
.pop-bar button:hover { color: #f2a35e; }
@media (max-width: 760px) {
  .sl-foot { bottom: 16px; }
  .hero.has-slides .hero-in { padding-bottom: 96px; }
  .demo-tag { display: none; }
  .sl-cap { font-size: 12px; }
}