/* estimate.co.kr 정적 재현 — 공통 스타일
   섹션·위젯별 여백/높이/색은 각 페이지 <style>(원본 측정값)에 있다 */
/* 원본(아임웹)과 같은 폰트 파일. Cardo는 Regular만 있어 굵게는 합성 굵기로 보인다 (원본과 동일) */
@font-face { font-family: Cardo; src: url(/assets/fonts/Cardo-Regular.woff2) format("woff2"), url(/assets/fonts/Cardo-Regular.woff) format("woff"); font-weight: normal; font-style: normal; font-display: swap; }
@font-face { font-family: "Noto Sans Korean"; src: url(/assets/fonts/NotoSansKR-Regular-Hestia.woff) format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Noto Sans Korean"; src: url(/assets/fonts/NotoSansKR-Bold-Hestia.woff) format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: Lora; src: url(/assets/fonts/Lora-Regular.woff2) format("woff2"), url(/assets/fonts/Lora-Regular.woff) format("woff"); font-weight: normal; font-style: normal; font-display: swap; }
:root {
  --sans: helvetica, "Noto Sans Korean", "Apple SD Gothic Neo", "Malgun Gothic", "Nanum Gothic", "Noto Sans", sans-serif;
  --serif: Cardo, "Noto Sans Korean", "Apple SD Gothic Neo", "Malgun Gothic", "Nanum Gothic", "Noto Sans", serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #3d3d3d; color: #fefefe; font: 13px/1.5 var(--sans); overflow-wrap: break-word; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; vertical-align: middle; border: 0; }
button { font: inherit; color: inherit; }
.lora { font-family: Lora, serif; }

/* ---------- 헤더 */
.hd { position: fixed; top: 0; left: 0; right: 0; z-index: 50; }
body:not(.hd-overlay) main { padding-top: 75px; }
body:not(.hd-overlay) .hd { background: rgba(0, 0, 0, .9); }
.hd-pc { display: flex; align-items: center; height: 75px; padding-left: 50px; }
.hd-logo { position: relative; display: block; width: 41px; height: 41px; flex: none; }
.hd-logo img { position: absolute; left: 0; top: 0; width: 100%; height: auto; transition: opacity .3s; }
.hd-logo .lg-s, .hd.fixed .hd-logo .lg-n { opacity: 0; }
.hd.fixed .hd-logo .lg-s { opacity: 1; }
.hd-nav { display: flex; margin-left: 25px; }
.hd-nav a { width: 120px; line-height: 45px; text-align: center; font: 700 14px/45px var(--serif); color: rgba(128, 128, 128, .85); transition: color .2s; }
.hd-nav a.on, .hd-nav a:hover { color: rgba(188, 188, 188, .8); }
body:not(.hd-overlay) .hd-nav a { color: #888; }
body:not(.hd-overlay) .hd-nav a.on, body:not(.hd-overlay) .hd-nav a:hover { color: #eee; }
.hd-mo { display: none; }

/* 모바일 서랍 메뉴 */
.drawer { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, .6); }
.drawer[hidden] { display: none; }
.drawer-nav { position: absolute; left: 0; top: 0; bottom: 0; width: 300px; padding-top: 5px; background: rgba(0, 0, 0, .7); }
.drawer-nav a { display: block; padding: 13px 50px 14px 20px; font: 14px/19px var(--sans); color: #ddd; }
.drawer-nav a.on { color: #fff; background: rgba(144, 144, 144, .45); }
.drawer-close { position: absolute; left: 310px; top: 20px; width: 30px; height: 30px; border: 0; padding: 0; background: none; cursor: pointer; }
.drawer-close::before, .drawer-close::after { content: ""; position: absolute; left: 0; top: 14px; width: 30px; height: 1.5px; background: #fff; transform: rotate(45deg); }
.drawer-close::after { transform: rotate(-45deg); }

/* ---------- 섹션 그리드 (아임웹 doz 그리드 재현) */
.sec { position: relative; overflow-x: clip; }
.sec-bg, .sec-ov { position: absolute; inset: 0; pointer-events: none; background-repeat: no-repeat; }
.sec > .inside, .sec > .full { position: relative; }
.inside { margin: 0 auto; }
.row { display: flex; flex-wrap: wrap; }
.inside .row { margin: 0 -15px; }
.col { width: var(--w); flex: none; min-width: 0; }
.inside .col { padding: 0 15px; }
.col .row { margin: 0 -15px; }
.col .col { padding: 0 15px; }
.only-mo { display: none; }

/* ---------- 텍스트 (아임웹 froala 기본값) */
.fr h1, .fr h2, .fr h3, .fr h4, .fr h5, .fr h6 { font-family: var(--serif); font-weight: 400; margin: 10px 0; }
.fr h1 { font-size: 52px; line-height: 1.2; margin: 20px 0 10px; }
.fr h2 { font-size: 41.782px; line-height: 1.2; margin: 20px 0 10px; }
.fr h3 { font-size: 33.423px; line-height: 1.2; margin: 20px 0 10px; }
.fr h4 { font-size: 27.859px; line-height: 1.2; }
.fr h5 { font-size: 22.282px; line-height: 1.2; }
.fr h6 { font-size: 16.718px; line-height: 1.4; }
.fr p { margin: 0; }
.fr strong, .fr b { font-weight: 700; }
.fr img.fr-dib { display: block; margin: 5px auto; }
.fr img.fr-fil { float: left; margin: 5px 5px 5px 0; }
.fr img.fr-fir { float: right; margin: 5px 0 5px 5px; }
.fr table { width: 100%; border-collapse: collapse; }
.fr td { padding: 8px 0; }
.fr hr { border: 0; border-top: 1px solid currentColor; margin: 20px 0; }
.w-text { position: relative; }
.w-text .tt { position: relative; display: flex; flex-direction: column; }
.w-text .tbg { position: absolute; inset: 0; background: center/cover no-repeat; }

/* ---------- 위젯 */
.w-pad { min-height: 1px; }
.w-hr hr { margin: 0 auto; border: 0; border-top: 1px solid #505050; }
.w-hrt { display: flex; align-items: center; color: #858585; font: 16px/24px var(--sans); }
.w-hrt i { flex: 1; border-top: 1px solid #3d3d3d; }
.w-hrt span { padding: 0 25px; }
.w-img img { display: inline-block; }
.w-btn .btn { display: inline-flex; align-items: center; justify-content: center; text-align: center; transition: background-color .2s, color .2s; }
.w-btn .btn:hover { background: #2b2b2b !important; color: #fff !important; }
.ic { margin-right: 10px; flex: none; }

/* 그리드 갤러리 (Work·모달) */
.gi-list { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: var(--gap); padding: calc(var(--gap) / 2); }
.gi { position: relative; display: block; padding-top: var(--ratio); border-radius: var(--rad); overflow: hidden; isolation: isolate; cursor: pointer; }
.gi.hide { display: none; }
.gi-img { position: absolute; inset: 0; background: center/cover no-repeat; }
.gi-play { position: absolute; top: 16px; right: 16px; width: 23px; height: 23px; background: url(/assets/play.png) center/contain no-repeat; z-index: 2; }
.gi-play.big { top: 50%; left: 50%; right: auto; width: 46px; height: 46px; transform: translate(-50%, -50%); }
.gi-txt { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; padding: 20px; text-align: center; color: #fff; background: var(--ov); font-size: var(--tfs); line-height: 1.5; opacity: 0; transition: opacity .3s; }
.gi:hover .gi-txt, .gi:focus-visible .gi-txt { opacity: 1; }
.gi-txt .b { display: block; font-size: var(--bfs); }
.gi-more { text-align: center; margin-top: 8px; }
.gi-more[hidden] { display: none; }
.more-btn { padding: 10px 20px; border: 1px solid #2b2b2b; border-radius: 3px; background: #3d3d3d; color: #fefefe; font: 12px/17.1429px var(--sans); letter-spacing: 1px; cursor: pointer; transition: background-color .2s; }
.more-btn:hover { background: #2b2b2b; }

/* 슬라이드 갤러리 (About 서비스) */
.w-slide { position: relative; overflow: hidden; }
.sl { position: absolute; inset: 0; background: center/cover no-repeat; opacity: 0; transition: opacity var(--ft) ease; }
.sl.on { opacity: 1; z-index: 1; }
.sl-txt { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 0 80px; text-align: center; background: var(--ov); }
.sl-txt .t { margin: 0; font-size: var(--tfs); line-height: 1.5; color: var(--tc); }
.sl-txt .b { display: block; font-size: var(--bfs); line-height: 1.5; color: var(--bc); }
.sl-dots { position: absolute; left: 0; right: 0; bottom: 6px; z-index: 2; display: flex; justify-content: center; }
.sl-dots button { width: 43px; height: 20px; padding: 0; border: 0; background: none; cursor: pointer; }
.sl-dots button::before { content: ""; display: block; width: 15px; height: 2px; margin: 0 auto; background: rgba(255, 255, 255, .5); }
.sl-dots button.on::before { background: #fff; }

/* 무한 흐름 캐러셀 (파트너 로고·ESTi 사진) */
.w-mq { overflow: hidden; container-type: inline-size; }
.mq-track { display: flex; width: max-content; margin: 0; padding: 0; list-style: none; animation: mq var(--dur) linear infinite; }
.mq-i { flex: none; width: calc(100cqw / var(--cols)); }
.mq-i img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
@keyframes mq { to { transform: translateX(-50%); } }

/* ESTi 미디어 카드 */
.w-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 15px; }
.card { display: block; }
.card-img { display: block; padding-top: 56.3%; background: #222 center/cover no-repeat; }
.card-t { display: block; margin-top: 15px; font-size: 13px; line-height: 1.3; color: #ececec; }
.card-s { display: block; margin-top: 6px; font-size: 11px; line-height: 1.4; color: #bbb; }

/* 문의 폼 */
.cform .fg { margin-bottom: 15px; }
.cform label { display: block; margin-bottom: 5px; font-size: 13px; line-height: 19.5px; color: #ddd; }
.cform .req { display: inline-block; width: 5px; height: 5px; margin: 0 0 2px 6px; border-radius: 50%; background: #f35; vertical-align: middle; }
.cform input[type=text], .cform input[type=email], .cform input[type=tel], .cform select, .cform textarea { width: 100%; height: 34px; padding: 6px 12px; border: 1px solid #ccc; border-radius: 0; background: #ddd; color: #212121; font: 13px var(--sans); }
.cform textarea { height: 69px; resize: vertical; }
.cform .sel { position: relative; }
.cform select { appearance: none; -webkit-appearance: none; }
.cform .sel::after { content: ""; position: absolute; right: 14px; top: 15px; border: 4px solid transparent; border-top: 5px solid #999; pointer-events: none; }
.cform .phone { display: flex; align-items: center; gap: 0; }
.cform .phone input { width: 65px; }
.cform .phone span { width: 14px; text-align: center; color: #000; }
.cform .file-btn { position: relative; display: inline-flex; align-items: center; width: 128px; height: 39px; justify-content: center; margin: 0; background: #fff; color: #212121; font-size: 12px; letter-spacing: 1px; border-radius: 2px; cursor: pointer; }
.cform .file-btn .ic { margin-right: 6px; }
.cform .file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.cform .file-name { margin-left: 10px; color: #bbb; font-size: 12px; }
.cform .send { display: block; width: 100%; height: 39px; border: 1px solid #2b2b2b; border-radius: 3px; background: #3d3d3d; color: #fefefe; font-size: 12px; letter-spacing: 1px; cursor: pointer; }
.cform .send:hover { background: #2b2b2b; }
.cform .send:disabled { opacity: .6; cursor: default; }
.cform-msg { margin-top: 12px; color: #ddd; font-size: 13px; text-align: center; }

/* ---------- 비주얼 섹션 (배경 이미지·YouTube 배경) */
.vis { position: relative; display: flex; flex-direction: column; justify-content: var(--va); overflow: hidden; color: var(--vc); container-type: size; }
.vis-bg, .vis-ov, .vis-yt { position: absolute; inset: 0; }
.vis-bg { background-size: cover; background-repeat: no-repeat; }
.vis-yt { overflow: hidden; pointer-events: none; }
.vis-yt iframe { position: absolute; top: 50%; left: 50%; width: max(100cqw, 177.78cqh); height: max(100cqh, 56.25cqw); transform: translate(-50%, -50%); border: 0; opacity: 0; transition: opacity .8s; }
.vis-yt.ready iframe { opacity: 1; }
.vis-txt { position: relative; z-index: 2; width: 100%; max-width: 1260px; margin: 0 auto; padding: 0 15px; text-align: center; }
.hd-overlay .vis.first-pc .vis-txt { padding-top: 75px; }
.vis.va-bottom .vis-txt { padding-bottom: 50px; }
.vis-txt .btn { display: inline-block; padding: 15px 30px; border: 1px solid var(--bbd); background: var(--bbg); color: var(--bt); font: 14px/1.43 var(--serif); vertical-align: middle; letter-spacing: 1px; transition: all .3s; }
.vis-txt .btn:hover { border-color: var(--bhbd); background: var(--bhbg); color: var(--bht); }
.vis-pause { position: absolute; left: 50%; top: 50%; z-index: 3; width: 56px; height: 56px; margin: -28px 0 0 -28px; border: 0; border-radius: 50%; background: rgba(120, 120, 120, .75); cursor: pointer; }
.vis-pause::before, .vis-pause::after { content: ""; position: absolute; top: 18px; width: 5px; height: 20px; border-radius: 1px; background: #fff; }
.vis-pause::before { left: 20px; }
.vis-pause::after { left: 31px; }
.vis-pause.paused::before { left: 22px; width: 0; height: 0; border-radius: 0; background: none; border-left: 16px solid #fff; border-top: 10px solid transparent; border-bottom: 10px solid transparent; }
.vis-pause.paused::after { display: none; }

/* ---------- 스크롤 등장 애니메이션 (원본 animate.css 효과) */
.js [data-anim] { opacity: 0; }
.js [data-anim].in { animation: var(--ad, .7s) ease var(--al, 0s) both; }
[data-anim="fadeIn"].in { animation-name: fadeIn; }
[data-anim="fadeInUp"].in { animation-name: fadeInUp; }
[data-anim="zoomIn"].in { animation-name: zoomIn; }
[data-anim="rotateIn"].in { animation-name: rotateIn; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translate3d(0, 100%, 0); } to { opacity: 1; transform: none; } }
@keyframes zoomIn { from { opacity: 0; transform: scale3d(.3, .3, .3); } 50% { opacity: 1; } to { opacity: 1; } }
@keyframes rotateIn { from { opacity: 0; transform: rotate(-200deg); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .js [data-anim] { opacity: 1; }
  .js [data-anim].in { animation: none; }
  .mq-track { animation-duration: calc(var(--dur) * 3); }
}

/* ---------- Work 상세 모달 */
.wmodal { margin: 95px auto 40px; width: 550px; max-width: calc(100% - 20px); max-height: calc(100vh - 135px); padding: 0; border: 0; border-radius: 0; background: #fff; color: #212121; overflow: auto; }
.wmodal::backdrop { background: rgba(0, 0, 0, .5); }
.wm-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 12px 15px; background: #fff; border-bottom: 1px solid #f0f0f0; }
.wm-head h4 { margin: 0; font: 14px/1.5 var(--serif); }
.wm-close { position: relative; width: 26px; height: 26px; border: 0; padding: 0; background: none; cursor: pointer; }
.wm-close::before, .wm-close::after { content: ""; position: absolute; left: 2px; top: 12px; width: 22px; height: 1.5px; background: #555; transform: rotate(45deg); }
.wm-close::after { transform: rotate(-45deg); }
.wm-body { padding: 3px 3px 15px; }
.wm-body .w-grid { --ov: transparent; }
.wm-body .gi-more { margin-bottom: 10px; }
.m-text { padding: 10px 15px; font-size: 13px; line-height: 1.5; color: #212121; }
.m-text h1, .m-text h2, .m-text h3, .m-text h4, .m-text h5, .m-text h6 { color: #212121; }
.m-movie { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #000; cursor: pointer; }
.m-movie img { display: block; width: 100%; }
.m-movie iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.m-img { text-align: center; }
.m-hr { margin: 15px; border: 0; border-top: 1px solid #e5e5e5; }
.m-btn { padding: 5px 15px; text-align: center; }
.m-btn .btn { display: inline-block; padding: 10px 20px; border: 1px solid #2b2b2b; border-radius: 3px; background: #3d3d3d; color: #fefefe; font-size: 12px; letter-spacing: 1px; transition: background-color .2s; }
.m-btn .btn:hover { background: #2b2b2b; }

/* ---------- 라이트박스 (영상·이미지) */
.lb { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(0, 0, 0, .92); color: #eee; }
.lb[open] { display: flex; align-items: center; justify-content: center; }
.lb::backdrop { background: transparent; }
.lb-stage { width: min(90vw, 160vh); max-height: 80vh; }
.lb-stage iframe { display: block; width: 100%; aspect-ratio: 16 / 9; max-height: 80vh; border: 0; background: #000; }
.lb-stage img { display: block; max-width: 100%; max-height: 80vh; margin: 0 auto; }
.lb-count { position: absolute; left: 20px; top: 15px; font-size: 13px; color: #999; }
.lb-close, .lb-prev, .lb-next { position: absolute; border: 0; background: none; cursor: pointer; color: #999; }
.lb-close { right: 12px; top: 8px; width: 40px; height: 40px; }
.lb-close::before, .lb-close::after { content: ""; position: absolute; left: 10px; top: 19px; width: 20px; height: 1.5px; background: currentColor; transform: rotate(45deg); }
.lb-close::after { transform: rotate(-45deg); }
.lb-prev, .lb-next { top: 50%; width: 46px; height: 46px; margin-top: -23px; font-size: 24px; }
.lb-prev { left: 15px; }
.lb-next { right: 15px; }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { color: #fff; }
.lb-cap { position: absolute; left: 20px; right: 20px; bottom: 15px; font-size: 12px; line-height: 1.5; }
.lb-cap h4 { margin: 0 0 4px; font: 15px/1.4 var(--sans); color: #fff; }
.lb-cap p { margin: 0; color: #ccc; }

/* ---------- ESTi 게시글 */
.post { padding: 10px 0 40px; }
.post-t { margin: 0 0 25px; font: 20px/1.4 var(--sans); color: #eee; }
.post-list { display: inline-block; font-size: 13px; color: #eee; padding-bottom: 20px; }
.post-body { padding-top: 30px; border-top: 1px solid #333; font-size: 14px; line-height: 1.5; color: #ccc; }
.post-body img { max-width: 100%; height: auto; }
.post-body iframe { max-width: 100%; }
.post-body a { color: #9cf; }

/* ---------- 푸터 */
.ft { background: #1a1a1a; height: 65px; display: flex; align-items: center; justify-content: center; }
.ft p { margin: 0; font-size: 11px; line-height: 16.5px; color: #bbb; }

/* ---------- 모바일 (원본 기준 767px 이하) */
@media (max-width: 767px) {
  .only-pc { display: none !important; }
  .only-mo { display: block; }
  .vis.only-mo { display: flex; }
  .col { width: var(--mw); }
  .hd-pc { display: none; }
  .hd-mo { position: relative; display: flex; align-items: center; justify-content: center; height: 64px; }
  body:not(.hd-overlay) main { padding-top: 64px; }
  body:not(.hd-overlay) .hd { background: rgba(0, 0, 0, .85); }
  .hd-mo .hd-logo { width: 31px; height: 33px; }
  body:not(.hd-overlay) .hd-mo .lg-n { opacity: 0; }
  body:not(.hd-overlay) .hd-mo .lg-s { opacity: 1; }
  .hd-burger { position: absolute; left: 10px; top: 5px; width: 30px; height: 53px; padding: 0; border: 0; background: none; cursor: pointer; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
  .hd-burger span { display: block; width: 20px; height: 1.5px; margin-left: 5px; background: #fff; }
  .hd-overlay .vis.first-pc .vis-txt { padding-top: 0; }
  .vis-txt .btn { padding: 6px 22px; line-height: 19px; }
  .vis.va-bottom .vis-txt { padding-bottom: 14px; }
  .hd-overlay .vis.first-mo .vis-txt { padding-top: 64px; }
  .fr h1 { font-size: 32px; }
  .fr h2 { font-size: 26px; }
  .fr h3 { font-size: 23px; }
  .fr h4 { font-size: 20px; line-height: 1.5; }
  .fr h5 { font-size: 18px; }
  .fr h6 { font-size: 16px; }
  .gi-list { grid-template-columns: repeat(var(--mcols), minmax(0, 1fr)); gap: var(--mgap); padding: calc(var(--mgap) / 2); }
  .mq-i { width: calc(100cqw / var(--mcols)); }
  .w-board { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 7px; }
  .sl-txt { padding: 0 20px; }
  .lb-prev, .lb-next { display: none; }
  .wmodal { margin: 30px auto; max-height: calc(100vh - 60px); }
  .post-t { font-size: 17px; }
}
@media (min-width: 768px) {
  .drawer { display: none !important; }
}
