:root {
  --primary: #1d3557;
  --accent: #c9a227;
  --ink: #16181d;
  --muted: #646a75;
  --line: #e4e6ea;
  --bg: #ffffff;
  --tint: #f5f4f0;
  --hd-h: 76px;
  --radius: 4px;
  --max: 1200px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hd-h) - 1px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
img, video, iframe { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
.in { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
[hidden] { display: none !important; }

/* ── 헤더 ── */
.hd { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--hd-h); color: #fff; transition: background .3s, color .3s, box-shadow .3s; }
.hd-in { height: 100%; max-width: 1440px; margin: 0 auto; padding: 0 28px; display: flex; align-items: center; gap: 28px; }
.hd.scrolled, .hd.open { background: rgba(255,255,255,.97); color: var(--ink); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(8px); }
.logo { font-weight: 800; font-size: 20px; letter-spacing: -.02em; white-space: nowrap; display: flex; align-items: center; }
.logo img { height: 36px; width: auto; }
.hd:not(.scrolled):not(.open) .logo img { filter: brightness(0) invert(1); }
.gnb { display: flex; gap: 30px; margin-left: auto; font-size: 15px; font-weight: 500; }
.gnb a { position: relative; padding: 6px 0; opacity: .9; }
.gnb a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--accent); transition: right .25s; }
.gnb a:hover::after { right: 0; }
.hd-call { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 40px; background: var(--accent); color: #fff; font-weight: 700; font-size: 15px; white-space: nowrap; }
.hd-call svg { width: 16px; height: 16px; fill: currentColor; }
.burger { display: none; margin-left: auto; width: 40px; height: 40px; background: none; border: 0; padding: 8px; color: inherit; }
.burger i { display: block; height: 2px; background: currentColor; margin: 6px 0; transition: transform .25s, opacity .25s; }
.hd.open .burger i:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hd.open .burger i:nth-child(2) { opacity: 0; }
.hd.open .burger i:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ── 히어로 ── */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; overflow: hidden; background: var(--primary); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: heroZoom 14s ease-out both; }
.hero-empty { background: linear-gradient(135deg, var(--primary), #0b1220); }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-dim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,.3) 40%, rgba(0,0,0,.6) 100%); }
.hero-tx { position: relative; padding: 0 24px; max-width: 900px; animation: up 1s .2s both; }
.hero .eyebrow { display: inline-block; color: #fff; background: var(--accent); letter-spacing: .2em; font-weight: 700; font-size: 14px; margin: 0 0 20px; padding: 6px 14px 6px 18px; border-radius: 2px; }
.hero h1 { font-size: clamp(34px, 6vw, 72px); line-height: 1.2; letter-spacing: -.03em; font-weight: 800; margin: 0; text-shadow: 0 2px 24px rgba(0,0,0,.25); }
.hero-sub { font-size: clamp(16px, 2vw, 21px); margin: 22px 0 0; opacity: .92; }
.hero .btns { justify-content: center; margin-top: 38px; }
.hero-scroll { position: absolute; bottom: 30px; left: 50%; width: 26px; height: 42px; margin-left: -13px; border: 2px solid rgba(255,255,255,.7); border-radius: 14px; }
.hero-scroll i { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: scrollDot 1.8s infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@keyframes up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ── 버튼 ── */
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 15px 30px; border-radius: var(--radius); font-weight: 700; font-size: 16px; border: 1px solid transparent; transition: transform .2s, background .2s, color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-primary { background: var(--primary); color: #fff; border: 0; }
.btn-primary:disabled { opacity: .6; }
.btn-line { border-color: var(--primary); color: var(--primary); padding: 11px 22px; font-size: 15px; }
.btn-line:hover { background: var(--primary); color: #fff; }

/* ── 섹션 공통 ── */
.sec { padding: 120px 0; }
.sec-tint { background: var(--tint); }
.sec-dark { background: #111418; color: #fff; }
.sec-hd { text-align: center; margin-bottom: 56px; }
.eyebrow { margin: 0 0 10px; color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: .28em; }
.sec-hd h2, .ct-side h2 { margin: 0; font-size: clamp(28px, 3.6vw, 44px); line-height: 1.3; letter-spacing: -.03em; font-weight: 800; }
.sec-hd h2::after { content: ""; display: block; width: 36px; height: 2px; background: var(--accent); margin: 22px auto 0; }
.ph { display: flex; align-items: center; justify-content: center; min-height: 260px; background: repeating-linear-gradient(45deg, #eef0f3, #eef0f3 12px, #e6e9ee 12px, #e6e9ee 24px); color: #9aa1ac; font-size: 14px; }
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in-view { opacity: 1; transform: none; }
img.zoomable { cursor: zoom-in; }

/* 사업개요 */
.ov { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.ov-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.ov-tb { margin: 0; display: grid; grid-template-columns: 120px 1fr; border-top: 2px solid var(--primary); }
.ov-tb dt, .ov-tb dd { margin: 0; padding: 16px 4px; border-bottom: 1px solid var(--line); }
.ov-tb dt { font-weight: 700; color: var(--primary); }
.ov-tb dd { color: #333; }

/* 이미지+글 */
.it { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: center; }
.it.it-r .it-img { order: 2; }
.it-img img { width: 100%; }
.it-tx p { font-size: 18px; color: #333; margin: 0; }

/* 이미지 나열 */
.imgs { display: grid; gap: 28px; }
.imgs figure, .gal figure { margin: 0; }
.imgs img { width: 100%; }
figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); text-align: center; }

/* 입지 */
.loc img { width: 100%; }
.loc-info { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; margin-top: 32px; }
.loc-tx { margin: 0; font-size: 18px; font-weight: 500; flex: 1 1 420px; }
.loc-addr { margin: 0; color: var(--muted); }
.loc-addr b { color: var(--primary); margin-right: 6px; }

/* 프리미엄 카드 */
.ft-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card { background: #fff; overflow: hidden; box-shadow: 0 10px 30px rgba(20,30,50,.06); }
.card-img { overflow: hidden; }
.card-img img, .card-img .ph { width: 100%; aspect-ratio: 16/10; object-fit: cover; min-height: 0; transition: transform .6s; }
.card:hover .card-img img { transform: scale(1.06); }
.card-tx { padding: 26px 28px 30px; }
.card-tx .num { color: var(--accent); font-weight: 800; font-size: 14px; letter-spacing: .1em; }
.card-tx h3 { margin: 6px 0 8px; font-size: 21px; letter-spacing: -.02em; }
.card-tx p { margin: 0; color: var(--muted); font-size: 15px; }

/* 탭(평면) */
.tab-bar { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.tab-bar button { padding: 12px 28px; border: 1px solid var(--line); background: #fff; border-radius: 40px; font-weight: 700; color: var(--muted); transition: all .2s; }
.tab-bar button.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.tab-panel { text-align: center; }
.tab-img img { margin: 0 auto; max-height: 760px; width: auto; }
.tab-tx { margin: 24px 0 0; font-size: 17px; color: #333; }

/* 갤러리 */
.gal { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.gal img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.sec-dark figcaption { color: #c9ccd2; text-align: left; }
.sec-dark .sec-hd h2::after { background: var(--accent); }

/* 영상 */
.vid { position: relative; aspect-ratio: 16/9; background: #000; }
.vid iframe, .vid video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vid-tx { text-align: center; color: var(--muted); margin-top: 20px; }

/* 일정 */
.sch { list-style: none; margin: 0 auto; padding: 0; max-width: 760px; position: relative; }
.sch::before { content: ""; position: absolute; left: 11px; top: 14px; bottom: 14px; width: 2px; background: #d9d5c8; }
.sch li { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 20px 24px 20px 52px; margin-bottom: 12px; background: #fff; }
.sch-dot { position: absolute; left: 4px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); }
.sch strong { font-size: 18px; }
.sch-date { font-weight: 700; color: var(--primary); text-align: right; }
.sch em { grid-column: 1 / -1; font-style: normal; color: var(--muted); font-size: 14px; }
.note { text-align: center; color: var(--muted); font-size: 14px; margin-top: 28px; }

/* 관심고객 등록 */
.sec-contact { background: var(--primary); color: #fff; }
.ct { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; align-items: start; }
.ct-side p { opacity: .85; font-size: 17px; }
.ct-phone { display: inline-flex; flex-direction: column; margin-top: 24px; font-size: 36px; font-weight: 800; letter-spacing: -.02em; color: var(--accent); line-height: 1.2; }
.ct-phone small { font-size: 14px; color: #fff; opacity: .7; font-weight: 500; letter-spacing: 0; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; background: #fff; color: var(--ink); padding: 40px; border-radius: var(--radius); }
.fld { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.fld input, .fld select, .fld textarea { font: inherit; font-weight: 400; font-size: 16px; padding: 13px 14px; border: 1px solid #d5d8de; border-radius: var(--radius); background: #fff; width: 100%; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
.full { grid-column: 1 / -1; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.agree details { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.agree summary { cursor: pointer; }
.agree details p { background: #f6f7f9; padding: 12px 14px; margin: 8px 0 0; white-space: normal; }
.chk { display: flex; gap: 8px; align-items: center; font-size: 15px; font-weight: 600; }
.chk input { width: 18px; height: 18px; accent-color: var(--primary); }
.form .btn { padding: 17px; font-size: 17px; }
.form-msg { grid-column: 1 / -1; margin: 0; min-height: 1.5em; font-size: 15px; text-align: center; }
.form-msg.err { color: #c62828; }
.form-msg.ok { color: #1b7f3b; font-weight: 700; }

/* 푸터 */
.ft { background: #0d0f12; color: #9aa0aa; font-size: 14px; padding: 56px 0 120px; }
.ft p { margin: 4px 0; }
.ft-name { color: #fff; font-weight: 700; font-size: 17px; margin-bottom: 12px !important; }
.ft a { color: #fff; }
.ft-disc { margin-top: 20px !important; font-size: 13px; color: #6d737d; }
.ft-copy { margin-top: 20px !important; font-size: 12px; color: #555b64; }

/* 하단 고정 버튼 */
.fab { position: fixed; right: 24px; bottom: 24px; z-index: 40; display: flex; flex-direction: column; gap: 10px; }
.fab a { display: flex; align-items: center; justify-content: center; width: 92px; height: 92px; border-radius: 50%; text-align: center; font-weight: 700; font-size: 14px; line-height: 1.3; padding: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.2); transition: transform .2s; }
.fab a:hover { transform: scale(1.06); }
.fab-call { background: var(--accent); color: #fff; }
.fab-reg { background: var(--primary); color: #fff; }

/* 팝업 */
.popups { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.55); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; }
.pop-wrap { display: flex; gap: 12px; max-width: 100%; overflow-x: auto; scroll-snap-type: x mandatory; }
.pop { flex: 0 0 auto; width: min(420px, 86vw); scroll-snap-align: center; background: #fff; }
.pop img { width: 100%; max-height: 72vh; object-fit: contain; }
.pop-ctl { display: flex; width: min(420px, 86vw); background: #222; }
.pop-ctl button { flex: 1; border: 0; background: none; color: #fff; padding: 13px; font-size: 14px; }
.pop-ctl button + button { border-left: 1px solid #444; }

/* 확대 보기 */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.92); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 86vh; object-fit: contain; }
.lightbox p { color: #ddd; margin: 12px 0 0; }
.lb-x { position: absolute; top: 14px; right: 18px; background: none; border: 0; color: #fff; font-size: 38px; line-height: 1; }

/* ── 반응형 ── */
@media (max-width: 1080px) {
  .gnb { gap: 20px; font-size: 14px; }
  .hd-call span { display: none; }
  .hd-call { padding: 10px; }
}
@media (max-width: 900px) {
  :root { --hd-h: 62px; }
  .hd-in { padding: 0 16px; gap: 12px; }
  .burger { display: block; order: 3; margin-left: 0; }
  .hd-call { margin-left: auto; }
  .gnb { position: fixed; top: var(--hd-h); left: 0; right: 0; flex-direction: column; gap: 0; background: #fff; color: var(--ink); padding: 8px 20px 20px; box-shadow: 0 10px 20px rgba(0,0,0,.08); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: all .25s; margin: 0; font-size: 17px; }
  .gnb a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .gnb a::after { display: none; }
  .hd.open .gnb { transform: none; opacity: 1; pointer-events: auto; }
  .sec { padding: 80px 0; }
  .sec-hd { margin-bottom: 36px; }
  .ov, .it, .ct { grid-template-columns: 1fr; gap: 32px; }
  .it.it-r .it-img { order: 0; }
  .ft-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .card-tx { padding: 18px; }
  .card-tx h3 { font-size: 17px; }
  .card-tx p { font-size: 14px; }
}
@media (max-width: 600px) {
  .in { padding: 0 18px; }
  .ft-grid { grid-template-columns: 1fr; }
  .gal { grid-template-columns: 1fr; }
  .ov-tb { grid-template-columns: 92px 1fr; font-size: 15px; }
  .form { grid-template-columns: 1fr; padding: 26px 20px; }
  .sch li { grid-template-columns: 1fr; padding: 16px 18px 16px 46px; }
  .sch-date { text-align: left; }
  .ct-phone { font-size: 30px; }
  .hero .btns .btn { width: 100%; }
  .tab-bar button { padding: 10px 18px; }
  .fab { left: 0; right: 0; bottom: 0; flex-direction: row; gap: 0; padding-bottom: env(safe-area-inset-bottom); background: #fff; box-shadow: 0 -4px 16px rgba(0,0,0,.08); }
  .fab a { flex: 1; width: auto; height: 56px; border-radius: 0; box-shadow: none; font-size: 16px; }
  .fab a:hover { transform: none; }
  .ft { padding-bottom: 96px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
