/* 게시된 사이트 공통 스타일 — 색은 페이지마다 :root 변수로 들어온다 */
:root { --sans: "Pretendard", -apple-system, "Apple SD Gothic Neo", sans-serif; --hh: 76px; }
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--sans); line-height: 1.7; word-break: keep-all; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

.site-header { position: fixed; inset: 0 0 auto 0; height: var(--hh); z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 clamp(16px, 4vw, 56px); background: linear-gradient(rgba(0,0,0,.6), transparent); color: #fff; transition: background .3s; }
.site-header.solid, .solid-top .site-header { background: var(--bg); color: var(--text); border-bottom: 1px solid var(--line); }
.brand { font-family: var(--head); font-size: 22px; letter-spacing: .14em; white-space: nowrap; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; gap: clamp(14px, 2.2vw, 34px); }
.nav a { font-size: 15px; opacity: .85; padding: 6px 0; position: relative; white-space: nowrap; }
.nav a.on, .nav a:hover { opacity: 1; }
.nav a.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent); }
.cta { display: flex; align-items: center; gap: 14px; }
.tel { font-size: 17px; white-space: nowrap; }
.header-space { height: var(--hh); }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 18px; border: 1px solid var(--accent); color: var(--accent); font-size: 14px; background: transparent; cursor: pointer; transition: .25s; white-space: nowrap; }
.btn:hover { background: var(--accent); color: #111; }
.btn.fill { background: var(--accent); color: #111; }
.btn.wide { width: 100%; padding: 15px; font-size: 16px; }
.menu-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 1px; background: currentColor; margin: 6px auto; }

section { padding: clamp(60px, 9vw, 130px) clamp(16px, 6vw, 96px); }
section.alt { background: var(--surface); }
.wrap { max-width: 1240px; margin: 0 auto; }
.wrap.narrow { max-width: 820px; }
.eyebrow { font-family: var(--head); color: var(--accent); letter-spacing: .28em; font-size: 14px; text-transform: uppercase; }
.sec-title { text-align: center; margin-bottom: clamp(32px, 5vw, 64px); }
.sec-title h2, .h2 { font-family: var(--head); font-weight: 400; font-size: clamp(26px, 3.4vw, 42px); letter-spacing: .05em; line-height: 1.3; margin-top: 6px; }
.h2 { margin: 6px 0 18px; }
.body { color: var(--text); opacity: .86; font-size: clamp(15px, 1.5vw, 17px); line-height: 2; }
.muted { color: var(--muted); }
.big { font-size: 22px; }
.btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.split { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.split.rev > :first-child { order: 2; }
.split .btn { margin-top: 24px; }
.ph { background: var(--surface); border: 1px dashed var(--line); color: var(--muted); display: flex; align-items: center; justify-content: center; min-height: 180px; font-size: 14px; width: 100%; height: 100%; }

.b-hero { position: relative; height: 100svh; min-height: 520px; overflow: hidden; display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; background: #111; }
.b-hero.half { height: 60vh; min-height: 380px; }
.b-hero .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.b-hero .bg.yt { width: 177.78vh; height: 56.25vw; min-width: 100%; min-height: 100%; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(1.3); border: 0; pointer-events: none; }
.b-hero .shade { position: absolute; inset: 0; background: rgba(0,0,0,.35); }
.b-hero .inner { position: relative; z-index: 2; padding: 0 16px; }
.b-hero h1 { font-family: var(--head); font-weight: 400; font-size: clamp(32px, 6vw, 74px); letter-spacing: .1em; line-height: 1.2; }
.b-hero .sub { margin-top: 16px; font-size: clamp(15px, 1.8vw, 20px); opacity: .9; }
.b-hero .eyebrow { margin-bottom: 10px; }
.b-hero .btn { margin-top: 26px; }
.b-image img { width: 100%; }
.b-two { display: grid; grid-template-columns: 1fr 1fr; }
.b-two img { width: 100%; height: 100%; object-fit: cover; }

.gallery { display: grid; gap: 10px; grid-auto-rows: clamp(150px, 20vw, 280px); }
.gallery.c2 { grid-template-columns: repeat(2, 1fr); }
.gallery.c3 { grid-template-columns: repeat(3, 1fr); }
.gallery.c4 { grid-template-columns: repeat(4, 1fr); }
.gallery button { border: 0; padding: 0; background: none; cursor: zoom-in; overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.gallery button:hover img { transform: scale(1.05); }

.spec { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.spec > div { background: var(--bg); padding: clamp(22px, 3vw, 36px); }
.spec h3 { font-family: var(--head); color: var(--accent); font-weight: 400; letter-spacing: .18em; font-size: 15px; margin-bottom: 16px; }
.spec dl { display: grid; grid-template-columns: 92px 1fr; gap: 12px; font-size: 15px; }
.spec dt { color: var(--muted); }

.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 24px; }
.tabs button { padding: 10px 16px; border: 1px solid var(--line); background: transparent; cursor: pointer; font-size: 14px; color: var(--muted); }
.tabs button.on { border-color: var(--accent); color: var(--accent); }
.tab-view { border: 0; padding: 0; background: none; cursor: zoom-in; width: 100%; }
.tab-view img { width: 100%; border: 1px solid var(--line); }

.map { aspect-ratio: 16 / 9; border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; border: 0; }

.lead-form { max-width: 720px; margin: 0 auto; background: var(--bg); border: 1px solid var(--line); padding: clamp(22px, 4vw, 44px); display: grid; gap: 14px; }
.lead-form label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.lead-form input, .lead-form select, .lead-form textarea { width: 100%; padding: 13px 14px; background: var(--surface); border: 1px solid var(--line); outline: none; font-size: 16px; color: var(--text); }
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { border-color: var(--accent); }
.lead-form .kinds { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: 1px solid var(--line); }
.lead-form .kinds button { padding: 12px 4px; border: 0; background: transparent; cursor: pointer; color: var(--muted); font-size: 14px; white-space: nowrap; }
.lead-form .kinds button + button { border-left: 1px solid var(--line); }
.lead-form .kinds button.on { background: var(--accent); color: #111; }
.lead-form .consent { max-height: 140px; overflow: auto; white-space: pre-line; font-size: 13px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); padding: 12px; }
.lead-form .check { display: flex; align-items: center; gap: 8px; color: var(--text); cursor: pointer; }
.lead-form .check input { width: 18px; height: 18px; accent-color: var(--accent); }
.lead-form .msg { text-align: center; min-height: 1.5em; }
.lead-form .msg.ok { color: var(--accent); }
.lead-form .msg.err { color: #ff8a7a; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hidden { display: none !important; }
.hp { position: absolute; left: -9999px; }

.site-footer { border-top: 1px solid var(--line); padding: 44px clamp(16px, 6vw, 96px) 110px; color: var(--muted); font-size: 13px; line-height: 1.9; }
.site-footer .flogo { height: 48px; width: auto; margin-bottom: 14px; opacity: .85; }
.site-footer .fbrand { font-family: var(--head); font-size: 18px; letter-spacing: .14em; color: var(--text); margin-bottom: 10px; }
.site-footer a { color: var(--text); }

.float-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: none; grid-auto-flow: column; grid-auto-columns: 1fr; }
.float-cta a { padding: 16px 8px; text-align: center; font-weight: 600; background: #1c1c1c; color: #fff; }
.float-cta a:last-child { background: var(--accent); color: #111; }

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.94); display: none; align-items: center; justify-content: center; padding: 16px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 90vh; max-width: 100%; object-fit: contain; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 36px; cursor: pointer; padding: 12px; }
.lightbox .x { top: 8px; right: 12px; }
.lightbox .prev { left: 6px; top: 50%; transform: translateY(-50%); }
.lightbox .next { right: 6px; top: 50%; transform: translateY(-50%); }

/* 편집기 미리보기: 블록 선택 표시 */
.preview .pb { position: relative; cursor: pointer; }
.preview .pb:hover { outline: 2px dashed rgba(80,150,255,.7); outline-offset: -2px; }
.preview .pb.sel { outline: 3px solid #3d8bff; outline-offset: -3px; }
.preview .site-header { position: sticky; }
.preview .b-hero { height: 70vh; }
.preview .float-cta { display: none !important; }

@media (max-width: 960px) {
  .nav, .cta .tel, .cta .btn { display: none; }
  .menu-toggle { display: block; }
  .nav.open { display: flex; position: fixed; top: var(--hh); left: 0; right: 0; bottom: 0; flex-direction: column; align-items: center; justify-content: center; gap: 26px; background: var(--bg); color: var(--text); }
  .nav.open a { font-size: 20px; }
  .split { grid-template-columns: 1fr; }
  .split.rev > :first-child { order: 0; }
  .gallery.c3, .gallery.c4 { grid-template-columns: 1fr 1fr; }
  .float-cta { display: grid; }
}
@media (max-width: 520px) {
  .row2, .b-two { grid-template-columns: 1fr; }
  .brand { font-size: 18px; }
}
