/* ===== 엑소디움 상도역 ===== */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

:root {
  --ink: #14161a;
  --ink-2: #1d2026;
  --gold: #c8a45c;
  --gold-2: #e0c281;
  --line: #e3e0d8;
  --gray: #f5f3ef;
  --text: #2b2e34;
  --muted: #6d7179;
  --shadow: 0 18px 46px rgba(20,22,26,.14);
  --max: 1180px;
}

html { scroll-behavior: smooth; scroll-padding-top: 68px; }

body {
  margin: 0;
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  padding-bottom: 64px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.3; margin: 0; letter-spacing: -.02em; word-break: keep-all; }
p { margin: 0; word-break: keep-all; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 760px; }

/* ===== 네비게이션 ===== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  background: rgba(20,22,26,.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(200,164,92,.24);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 20px;
  height: 68px; display: flex; align-items: center; gap: 18px;
}
.brand { display: flex; flex-direction: column; line-height: 1.15; margin-right: auto; }
.brand-mark { color: var(--gold-2); font-size: 17px; font-weight: 800; letter-spacing: .16em; }
.brand-sub { color: #cfd2d8; font-size: 11px; letter-spacing: .04em; }
.nav-links { display: flex; gap: 22px; }
.nav-links a { color: #e6e7ea; font-size: 14.5px; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav-links a:hover, .nav-links a.active { color: var(--gold-2); border-bottom-color: var(--gold); }
.nav-tel {
  display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1;
  padding: 7px 14px; border: 1px solid var(--gold); border-radius: 999px; color: var(--gold-2);
}
.nav-tel-label { font-size: 10px; letter-spacing: .1em; opacity: .85; }
.nav-tel strong { font-size: 15px; letter-spacing: .02em; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; margin: 4px 0; transition: .2s; }

/* ===== 히어로 ===== */
/* 조감도 한 장이 화면 전체를 채우고, 글자는 그 위에 얹는다 */
.hero {
  position: relative; background: #0e1014; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding-top: 68px;
}
.hero-img {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
/* 글자 영역에만 아주 옅은 어둠 — 사진 상단은 가리지 않는다 */
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 58%; z-index: 1;
  background: linear-gradient(to top, rgba(8,9,12,.72), rgba(8,9,12,.34) 46%, rgba(8,9,12,0));
  pointer-events: none;
}
.hero-body {
  position: relative; z-index: 2; width: 100%; max-width: var(--max); margin: 0 auto;
  padding: 0 20px 104px; color: #fff;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
.hero-eyebrow {
  color: #f0d9a4; font-size: 13.5px; font-weight: 600; letter-spacing: .1em; margin-bottom: 12px;
  text-shadow: 0 1px 8px rgba(0,0,0,.5);
}
.hero-title {
  font-size: clamp(23px, 4.4vw, 42px); font-weight: 800; line-height: 1.28;
  letter-spacing: -.01em; color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,.55);
}
.hero-title em { font-style: normal; color: #f5dda6; }
.hero-desc {
  margin-top: 16px; font-size: clamp(14px, 2.4vw, 18px); font-weight: 600; color: #fff;
  text-shadow: 0 1px 10px rgba(0,0,0,.5);
}
.hero-desc strong { color: #f5dda6; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.hero-badges span {
  font-size: 12.5px; font-weight: 600; padding: 6px 13px; border-radius: 999px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.34); color: #fff;
  backdrop-filter: blur(4px);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-scroll {
  position: absolute; z-index: 3; left: 50%; bottom: 70px; transform: translateX(-50%);
  color: rgba(255,255,255,.72); font-size: 10.5px; letter-spacing: .3em;
  text-shadow: 0 1px 8px rgba(0,0,0,.5);
}

/* ===== 버튼 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: .18s; text-align: center;
}
.btn-gold { background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #1a1509; }
.btn-gold:hover { filter: brightness(1.07); transform: translateY(-1px); }
.btn-gold:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn-ghost { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.14); }
.btn-block { width: 100%; }

/* ===== 수치 스트립 ===== */
.strip { background: var(--ink); color: #fff; padding: 26px 0; }
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; text-align: center; }
.strip-grid div { display: flex; flex-direction: column; gap: 2px; }
.strip-grid b { font-size: clamp(20px, 4vw, 30px); color: var(--gold-2); letter-spacing: -.02em; }
.strip-grid span { font-size: 12.5px; color: #b9bdc5; }

/* ===== 섹션 공통 ===== */
.sec { padding: 84px 0; }
.sec-gray { background: var(--gray); }
.sec-dark { background: var(--ink-2); color: #e9eaee; }
.sec-dark .sec-lead, .sec-dark .bullets li { color: #b9bdc5; }
.sec-eyebrow { color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: .24em; margin-bottom: 10px; }
.sec-title { font-size: clamp(23px, 4.4vw, 38px); font-weight: 800; }
.sec-title em { font-style: normal; color: var(--gold); }
.sec-dark .sec-title em { color: var(--gold-2); }
.sec-lead { margin-top: 14px; color: var(--muted); font-size: 15.5px; max-width: 760px; }
.sec-lead a { color: var(--gold); font-weight: 700; }

/* ===== 카드 ===== */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; margin-top: 38px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px 22px;
  transition: .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--gold); }
.card-no { font-size: 11.5px; letter-spacing: .14em; color: var(--gold); font-weight: 700; }
.card h3 { margin: 8px 0 10px; font-size: 21px; }
.card p { font-size: 14.5px; color: var(--muted); }

/* ===== 강조 박스 ===== */
.note-box {
  margin-top: 34px; background: var(--ink); color: #fff; border-radius: 18px; padding: 30px 26px;
  border-left: 5px solid var(--gold);
}
.note-box h3 { font-size: 21px; color: var(--gold-2); margin-bottom: 10px; }
.note-box p { color: #ccd0d7; font-size: 15px; }
.note-box strong { color: #fff; }

/* ===== 이미지 ===== */
.figure { margin: 34px 0 0; }
.figure img {
  width: 100%; border-radius: 14px; border: 1px solid rgba(0,0,0,.08);
  box-shadow: var(--shadow); cursor: zoom-in; background: #fff;
}
.sec-dark .figure img { border-color: rgba(255,255,255,.12); }
.figure figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); text-align: center; }
.sec-dark .figure figcaption { color: #9ea3ac; }
.figure-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.figure-wide { margin-top: 34px; }
/* 원본 이미지 위쪽에 인쇄돼 있는 안내 문구 띠를 잘라서 감춘다(라이트박스에도 동일 적용) */
img[data-croptop], #lightboxImg.is-croptop {
  aspect-ratio: 874 / 533; object-fit: cover; object-position: center bottom;
}

/* ===== 입지 ===== */
.loc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-top: 34px; }
.loc-item {
  background: rgba(255,255,255,.05); border: 1px solid rgba(200,164,92,.28);
  border-radius: 14px; padding: 20px 16px; text-align: center;
}
.loc-item b { display: block; font-size: 22px; color: var(--gold-2); }
.loc-item span { font-size: 13px; color: #b9bdc5; }

.bullets { margin: 30px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.bullets li { position: relative; padding-left: 20px; font-size: 15px; color: var(--muted); }
.bullets li::before { content: ""; position: absolute; left: 0; top: 10px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }

/* ===== 표 ===== */
.overview-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 28px; align-items: start; }
.table-scroll { overflow-x: auto; margin-top: 34px; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; background: #fff; min-width: 300px; }
.table caption {
  text-align: left; font-weight: 800; font-size: 16px; padding: 0 0 10px; color: var(--ink);
}
.table th, .table td { border: 1px solid var(--line); padding: 11px 13px; text-align: left; vertical-align: top; }
.table th { background: var(--gray); width: 34%; font-weight: 700; color: var(--ink); white-space: nowrap; }
.table td em { font-style: normal; color: #b4453f; font-weight: 600; }

/* ===== 평형 탭 ===== */
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.tab {
  flex: 1 1 140px; padding: 14px 10px; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; cursor: pointer; font-size: 16px; font-weight: 700; color: var(--muted); transition: .18s;
  font-family: inherit;
}
.tab .tab-key { display: block; font-size: 19px; letter-spacing: -.02em; }
.tab small { display: block; font-size: 12px; font-weight: 500; margin-top: 2px; }
.tab:hover { border-color: var(--gold); color: var(--ink); }
.tab.active { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: var(--shadow); }
.tab.active .tab-key { color: var(--gold-2); }
.tab.active small { color: #cfd2d8; }

.type-panel { margin-top: 24px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
/* 선택한 타입 하나만 보인다 — 나머지는 감춘다 */
.type-view { display: none; }
.type-view.is-active { display: block; }
.type-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.type-head h3 { font-size: 30px; }
.type-head .type-count { font-size: 14px; color: var(--muted); }
.type-badge {
  align-self: center; background: var(--ink); color: var(--gold-2);
  font-size: 13px; font-weight: 800; letter-spacing: .04em;
  border-radius: 999px; padding: 5px 14px;
}
.type-specs {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px; margin-top: 16px;
}
.type-spec {
  background: var(--gray); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0;
}
.type-spec span { font-size: 12px; font-weight: 700; color: var(--gold); letter-spacing: .06em; }
.type-spec b { font-size: 16px; color: var(--ink); letter-spacing: -.01em; word-break: keep-all; }
.type-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 18px; }
.type-tags b { font-size: 12.5px; font-weight: 600; background: var(--gray); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; color: var(--text); }
.type-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 24px; align-items: start; }
.type-plan { margin: 0; min-width: 0; }
.type-body img { width: 100%; border-radius: 12px; border: 1px solid var(--line); cursor: zoom-in; }
.type-plan figcaption { margin-top: 8px; font-size: 12.5px; color: var(--muted); text-align: center; }
.type-body .table-scroll { margin-top: 0; }

/* 타입 비교표 */
.type-compare { margin-top: 34px; }
.type-compare h3 { font-size: 19px; }
.type-compare .table-scroll { margin-top: 14px; }
.table-compare { min-width: 520px; }
.table-compare th { width: 22%; }
.table-compare td { text-align: center; white-space: nowrap; }
.table-compare td.is-active { background: rgba(200,164,92,.16); color: var(--ink); font-weight: 700; }
.table-compare thead td.is-active { background: var(--ink); color: var(--gold-2); }
.type-note { margin-top: 10px; font-size: 12.5px; color: var(--muted); }

/* ===== 폼 ===== */
.form { margin-top: 30px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px 22px; display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 14px; font-weight: 700; color: var(--ink); }
.field .opt { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 15px; font-family: inherit; color: var(--text); background: #fff; resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200,164,92,.18); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--muted); cursor: pointer; }
.check input { margin-top: 3px; width: 17px; height: 17px; flex: 0 0 auto; accent-color: var(--gold); }
.form-msg { font-size: 14px; min-height: 20px; font-weight: 600; }
.form-msg.ok { color: #1f7a4d; }
.form-msg.err { color: #c0392b; }

.mylist { margin-top: 34px; }
.mylist h3 { font-size: 18px; margin-bottom: 12px; }
.mylist-body { display: grid; gap: 10px; }
.lead-item {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px;
  display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 14px;
}
.lead-item b { font-size: 15px; }
.lead-item .chip { background: var(--ink); color: var(--gold-2); border-radius: 999px; padding: 3px 11px; font-size: 12px; font-weight: 700; }
.lead-item .when { color: var(--muted); font-size: 12.5px; margin-left: auto; }
.lead-item .memo { flex: 1 1 100%; color: var(--muted); font-size: 13.5px; }
.empty { color: var(--muted); font-size: 14px; }

/* ===== 푸터 ===== */
.footer { background: var(--ink); color: #9ea3ac; padding: 46px 0 40px; text-align: center; }
.foot-brand { color: var(--gold-2); font-weight: 800; letter-spacing: .12em; font-size: 15px; }
.foot-tel { margin-top: 8px; color: #fff; font-size: 17px; font-weight: 700; }
.foot-tel a { color: var(--gold-2); }
.foot-note { margin-top: 18px; font-size: 12px; line-height: 1.7; max-width: 780px; margin-inline: auto; }

/* ===== 고정 하단바 ===== */
.fixbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: grid; grid-template-columns: 1.4fr 1fr;
  border-top: 1px solid rgba(255,255,255,.14);
}
.fixbar a { padding: 17px 8px; text-align: center; font-weight: 800; font-size: 15px; }
.fixbar-tel { background: var(--ink); color: var(--gold-2); }
.fixbar-reg { background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #1a1509; }

/* ===== 라이트박스 ===== */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 100;
  background: rgba(8,9,12,.92); padding: 56px 16px 16px;
  align-items: center; justify-content: center;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 10px; object-fit: contain; }
.lightbox-close {
  position: absolute; top: 12px; right: 14px; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.34); color: #fff;
  font-size: 18px; cursor: pointer; line-height: 1;
}
.lightbox-close:hover { background: rgba(255,255,255,.26); }
body.no-scroll { overflow: hidden; }

/* ===== 토스트 ===== */
.toast {
  position: fixed; left: 50%; bottom: 84px; transform: translate(-50%, 16px);
  z-index: 110; max-width: calc(100% - 32px);
  background: var(--ink); color: #fff; padding: 13px 20px; border-radius: 999px;
  font-size: 14.5px; font-weight: 600; box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transition: .24s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: #b4322a; }

/* ===== 반응형 ===== */
@media (max-width: 900px) {
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: rgba(20,22,26,.97);
    border-bottom: 1px solid rgba(200,164,92,.24); padding: 6px 20px 14px;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav-toggle { display: block; order: 3; }
  .nav-tel { order: 2; }
  .type-body { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  html { scroll-padding-top: 60px; }
  .nav-inner { height: 60px; gap: 10px; padding: 0 14px; }
  .nav-links { top: 60px; }
  .brand-mark { font-size: 15px; }
  .nav-tel { padding: 5px 10px; }
  .nav-tel strong { font-size: 13px; }
  .wrap { padding: 0 16px; }
  .hero { padding-top: 60px; }
  .hero::after { height: 66%; background: linear-gradient(to top, rgba(8,9,12,.78), rgba(8,9,12,.4) 48%, rgba(8,9,12,0)); }
  .hero-body { padding: 0 16px 96px; }
  .hero-scroll { display: none; }
  .sec { padding: 58px 0; }
  .strip-grid { grid-template-columns: repeat(2, 1fr); gap: 18px 10px; }
  .cards { grid-template-columns: 1fr; }
  .figure-row { grid-template-columns: 1fr; }
  .overview-grid { grid-template-columns: 1fr; }
  .type-panel { padding: 18px 14px; }
  .type-head h3 { font-size: 25px; }
  /* 모바일에서는 타입 탭이 가로로 스크롤된다 (페이지 전체는 흔들리지 않는다) */
  .tabs {
    flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch;
    padding-bottom: 6px; scrollbar-width: none;
  }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: 0 0 auto; min-width: 128px; padding: 12px 16px; }
  .type-specs { grid-template-columns: repeat(2, 1fr); }
  .type-spec b { font-size: 15px; }
  .form { padding: 20px 16px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .table th { width: 40%; white-space: normal; }
  .lead-item .when { margin-left: 0; flex: 1 1 100%; }
}
