:root {
  --navy: #0f2238;
  --navy-2: #1a3150;
  --sea: #2c5d84;
  --gold: #b8935a;
  --gold-dark: #9c7a45;
  --gold-light: #d8bd8c;
  --cream: #f6f1e8;
  --tint: #f4f6f8;
  --ink: #18202b;
  --muted: #5f6b7a;
  --line: #e3e6ea;
  --white: #ffffff;
  --header-h: 76px;
  --radius: 16px;
  --shadow: 0 18px 50px rgba(15, 34, 56, .12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: var(--ink); background: var(--white);
  font-size: 16px; line-height: 1.65;
  word-break: keep-all; overflow-wrap: break-word;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
figure { margin: 0; }
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 32px; }

/* 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; padding: 0 24px; border-radius: 10px;
  font-weight: 700; font-size: 16px; white-space: nowrap;
  transition: background-color .15s, color .15s, transform .15s;
}
.btn:active { transform: scale(.98); }
.btn-sm { height: 42px; padding: 0 18px; font-size: 15px; }
.btn-lg { height: 58px; padding: 0 30px; font-size: 17px; }
.btn-block { width: 100%; }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-dark); }
.btn-gold:disabled { background: #cdb791; cursor: wait; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); }
.btn-line { border: 1px solid rgba(255, 255, 255, .55); color: #fff; background: rgba(255, 255, 255, .08); }
.btn-line:hover { background: rgba(255, 255, 255, .18); }
.btn-outline { border: 1px solid var(--navy); color: var(--navy); background: #fff; }
.btn-outline:hover { background: var(--tint); }

/* 헤더 */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.header.scrolled { box-shadow: 0 6px 24px rgba(15, 34, 56, .08); }
.header-inner { display: flex; align-items: center; height: 100%; gap: 32px; }
.logo { display: flex; flex-direction: column; line-height: 1.2; flex: none; }
.logo-sub { font-size: 11px; font-weight: 700; letter-spacing: .24em; color: var(--gold); }
.logo-main { font-size: 18px; font-weight: 800; letter-spacing: -.02em; color: var(--navy); }
.gnb { display: flex; gap: 4px; margin-left: auto; }
.gnb a { padding: 8px 14px; border-radius: 8px; font-size: 16px; font-weight: 600; color: #3a4655; }
.gnb a:hover, .gnb a.active { color: var(--navy); background: var(--tint); }
.header-cta { display: flex; align-items: center; gap: 16px; }
.header-tel { display: inline-flex; align-items: center; gap: 6px; font-size: 20px; font-weight: 800; color: var(--navy); letter-spacing: -.01em; }
.header-tel svg { width: 20px; height: 20px; color: var(--gold); }
.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 10px; position: relative; }
.menu-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--navy); transition: transform .2s, opacity .2s; }
.menu-toggle span:nth-child(1) { top: 15px; }
.menu-toggle span:nth-child(2) { top: 21px; }
.menu-toggle span:nth-child(3) { top: 27px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* 메인 비주얼 */
.hero {
  position: relative; display: flex; align-items: center;
  min-height: clamp(560px, 100vh, 860px); padding-top: var(--header-h);
  color: #fff; background: var(--navy); overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% center; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 20, 36, .88) 0%, rgba(8, 20, 36, .62) 42%, rgba(8, 20, 36, .1) 75%), linear-gradient(0deg, rgba(8, 20, 36, .55), transparent 40%); }
.hero-body { position: relative; padding-bottom: 60px; }
.hero-badge {
  display: inline-block; padding: 8px 16px; border-radius: 999px;
  background: var(--gold); color: #fff; font-size: 15px; font-weight: 700;
}
.hero h1 { margin-top: 22px; font-size: clamp(40px, 5.6vw, 74px); line-height: 1.12; font-weight: 800; letter-spacing: -.03em; }
.hero h1 em { font-style: normal; color: var(--gold-light); }
.hero-sub { margin-top: 20px; font-size: clamp(17px, 1.6vw, 21px); color: rgba(255, 255, 255, .88); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-caption { position: absolute; right: 32px; bottom: 80px; font-size: 12px; color: rgba(255, 255, 255, .6); }

.stats {
  position: relative; z-index: 2; list-style: none;
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: -56px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
}
.stats li { padding: 30px 20px; text-align: center; }
.stats li + li { border-left: 1px solid var(--line); }
.stats strong { display: block; font-size: 36px; font-weight: 800; color: var(--navy); letter-spacing: -.02em; line-height: 1.2; }
.stats small { margin-left: 4px; font-size: 16px; font-weight: 700; color: var(--gold-dark); }
.stats span { display: block; margin-top: 6px; font-size: 14px; color: var(--muted); }

/* 공통 섹션 */
.section { padding: 120px 0; }
.section-tint { background: var(--tint); }
.section-navy { background: var(--navy); color: #fff; }
.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: .22em; color: var(--gold); }
.title { margin-top: 10px; font-size: clamp(28px, 3.2vw, 42px); font-weight: 800; letter-spacing: -.03em; line-height: 1.3; }
.lead { margin-top: 14px; font-size: 18px; color: rgba(255, 255, 255, .8); }
.note { margin-top: 28px; font-size: 13px; color: var(--muted); }
.section-navy .note { color: rgba(255, 255, 255, .55); }
.split { display: grid; grid-template-columns: 1.15fr 1fr; gap: 72px; align-items: center; }
.framed { border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.framed figcaption { padding: 14px 20px; font-size: 14px; font-weight: 700; color: var(--navy); border-top: 1px solid var(--line); }

/* 사업개요 */
.spec { margin-top: 36px; border-top: 2px solid var(--navy); }
.spec div { display: grid; grid-template-columns: 120px 1fr; border-bottom: 1px solid var(--line); }
.spec dt { padding: 16px 0; font-weight: 700; color: var(--navy); }
.spec dd { padding: 16px 0; color: #2b3542; }
.overview-photo { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); max-width: 460px; justify-self: end; }
.overview-photo img { width: 100%; aspect-ratio: 457 / 600; object-fit: cover; }
.overview-photo figcaption { position: absolute; right: 12px; bottom: 10px; font-size: 12px; color: rgba(255, 255, 255, .8); }

/* 입지 */
.location { display: grid; grid-template-columns: 1.35fr 1fr; gap: 40px; margin-top: 44px; align-items: start; }
.location-map { border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.loc-list { list-style: none; display: grid; gap: 14px; }
.loc-list li { display: flex; gap: 18px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.loc-tag {
  flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px;
  background: var(--navy); color: var(--gold-light); font-size: 14px; font-weight: 800;
}
.loc-list strong { display: block; font-size: 18px; color: var(--navy); }
.loc-list p { margin-top: 4px; font-size: 15px; color: var(--muted); }

.banner {
  position: relative; padding: 140px 0; color: #fff;
  background: linear-gradient(90deg, rgba(8, 20, 36, .78), rgba(8, 20, 36, .25)), var(--bg) center / cover no-repeat;
}
.banner .eyebrow { color: var(--gold-light); }
.banner-text { margin-top: 14px; font-size: clamp(26px, 3vw, 40px); font-weight: 800; line-height: 1.4; letter-spacing: -.02em; }
@media (min-width: 1240px) {
  .banner {
    background-image: linear-gradient(90deg, rgba(8, 20, 36, .78), rgba(8, 20, 36, .25)), var(--bg), linear-gradient(var(--tint), var(--white));
    background-position: center;
    background-repeat: no-repeat;
    background-size: 1240px 100%, 1240px auto, 100% 100%;
  }
}

/* 단지안내 */
.complex { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; margin-top: 44px; align-items: center; }
.features { list-style: none; display: grid; gap: 28px; }
.features li { padding-left: 22px; border-left: 3px solid var(--gold); }
.features strong { display: block; font-size: 20px; color: var(--navy); }
.features p { margin-top: 6px; color: var(--muted); }
.community { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; margin-top: 96px; align-items: start; }
.community > figure { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.community h3 { font-size: 30px; font-weight: 800; letter-spacing: -.02em; color: var(--navy); }
.community-body > p { margin-top: 8px; color: var(--muted); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chips li { padding: 7px 14px; border-radius: 999px; background: var(--cream); color: #6b5530; font-size: 14px; font-weight: 600; }
.community-plan { margin-top: 24px; width: 100%; }

/* 평면 */
.tabs { display: flex; gap: 8px; margin-top: 40px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: 1 0 auto; min-width: 96px; height: 52px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
  font-size: 16px; font-weight: 700; color: var(--muted);
}
.tab:hover { color: var(--navy); border-color: #c7ced6; }
.tab[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.plan { display: grid; grid-template-columns: 1fr 340px; margin-top: 20px; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.plan[hidden] { display: none; }
.plan > img { width: 100%; border-right: 1px solid var(--line); }
.plan-side { padding: 40px 32px; align-self: start; position: sticky; top: calc(var(--header-h) + 20px); }
.plan-side h3 { font-size: 34px; font-weight: 800; color: var(--navy); letter-spacing: -.02em; }
.plan-side dl { margin: 22px 0 28px; border-top: 1px solid var(--line); }
.plan-side dl div { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.plan-side dt { color: var(--muted); flex: none; }
.plan-side dd { font-weight: 700; text-align: right; }
.plan-side dd small { font-weight: 500; color: var(--muted); }

/* 분양안내 */
.pay { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.pay li { padding: 34px 30px; border-radius: var(--radius); background: var(--navy-2); border: 1px solid rgba(216, 189, 140, .25); }
.pay span { font-size: 15px; font-weight: 700; color: rgba(255, 255, 255, .7); }
.pay strong { display: block; margin-top: 4px; font-size: 52px; font-weight: 800; color: var(--gold-light); line-height: 1.15; }
.pay p { margin-top: 12px; color: rgba(255, 255, 255, .78); font-size: 15px; }
.sale-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  margin-top: 28px; padding: 32px 36px; border-radius: var(--radius); background: rgba(255, 255, 255, .06);
}
.sale-cta p { font-size: 20px; font-weight: 700; }
.sale-cta div { display: flex; gap: 12px; flex-wrap: wrap; }

/* 오시는길 */
.visit-info { margin-top: 32px; display: grid; gap: 20px; }
.visit-info dt { font-size: 14px; font-weight: 700; color: var(--gold-dark); }
.visit-info dd { font-size: 19px; font-weight: 600; }
.visit-info a { font-size: 30px; font-weight: 800; color: var(--navy); }
.visit-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }

/* 푸터 */
.footer { padding: 56px 0 64px; background: #0a1726; color: rgba(255, 255, 255, .6); font-size: 13.5px; line-height: 1.8; }
.footer-title { font-size: 17px; font-weight: 800; color: #fff; margin-bottom: 6px; }
.footer-title span { margin-left: 10px; color: var(--gold-light); }
.footer ul { list-style: none; margin-top: 16px; }
.footer li { padding-left: 1.1em; text-indent: -1.1em; }
.footer li::before { content: "※ "; }
.footer-links { margin-top: 16px; }
.footer-links a { color: #fff; text-decoration: underline; }

/* 퀵메뉴 */
.quick {
  position: fixed; right: 24px; top: 50%; z-index: 40; transform: translateY(-50%);
  display: flex; flex-direction: column; width: 92px;
  background: #fff; border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; border: 1px solid var(--line);
}
.quick button, .quick a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  height: 88px; font-size: 14px; font-weight: 700; color: var(--navy);
}
.quick button + button { border-top: 1px solid var(--line); }
.quick button:hover { background: var(--tint); }
.quick svg { width: 24px; height: 24px; }
.quick .quick-main { background: var(--gold); color: #fff; }
.quick .quick-main:hover { background: var(--gold-dark); }
.quick .quick-top { height: 44px; background: var(--navy); color: #fff; font-size: 12px; letter-spacing: .1em; }

/* 상담 팝업 */
.modal {
  width: min(480px, calc(100% - 32px)); max-height: calc(100dvh - 32px);
  margin: auto; padding: 0; border: 0; border-radius: 20px;
  background: #fff; color: var(--ink); box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
  overflow: auto;
}
.modal::backdrop { background: rgba(8, 20, 36, .6); backdrop-filter: blur(2px); }
.modal[open] { animation: pop .2s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.modal-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 24px 24px 20px; background: var(--navy); color: #fff; }
.modal-kicker { font-size: 13px; font-weight: 600; color: var(--gold-light); }
.modal-head h2 { margin-top: 2px; font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.modal-close { display: grid; place-items: center; width: 40px; height: 40px; margin: -6px -8px 0 0; border-radius: 10px; color: #fff; }
.modal-close:hover { background: rgba(255, 255, 255, .12); }
.modal-close svg { width: 22px; height: 22px; }
.modal-body { display: grid; gap: 16px; padding: 24px; }
.modal-body[hidden] { display: none; }
.modal-desc { font-size: 15px; color: var(--muted); }
.field label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 700; }
.field input, .field select, .field textarea {
  width: 100%; padding: 0 14px; border: 1px solid #d4d9df; border-radius: 10px;
  background: #fff; color: var(--ink); font: inherit; font-size: 16px;
  -webkit-appearance: none; appearance: none;
}
.field input, .field select { height: 50px; }
.field textarea { padding: 12px 14px; resize: vertical; min-height: 104px; }
.field select {
  padding-right: 38px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235f6b7a' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.field [aria-invalid="true"] { border-color: #b42318; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
[data-modes][hidden] { display: none; }
.req { color: #c2410c; font-weight: 700; }
.agree { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; font-weight: 600; cursor: pointer; }
.agree input { flex: none; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--navy); }
.consent { padding: 12px 14px; border-radius: 10px; background: var(--tint); font-size: 13px; color: var(--muted); }
.consent summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.consent ul { list-style: none; display: grid; gap: 4px; margin: 10px 0; }
.consent b { color: var(--ink); }
.consent a { text-decoration: underline; }
.form-error { font-size: 14px; font-weight: 600; color: #b42318; }
.form-error:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.modal-done { padding: 40px 28px 28px; text-align: center; }
.done-mark { display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 18px; border-radius: 50%; background: var(--cream); color: var(--gold-dark); }
.done-mark svg { width: 32px; height: 32px; stroke-width: 2.6; }
.modal-done h3 { font-size: 22px; font-weight: 800; color: var(--navy); }
.modal-done p { margin-top: 8px; color: var(--muted); }
.modal-done .btn { margin-top: 24px; }
.test-note { padding: 10px; border-radius: 8px; background: #fff4e5; color: #9a3412 !important; font-size: 13px; font-weight: 600; }
body.modal-open { overflow: hidden; }

/* 반응형 */
@media (max-width: 1360px) {
  .quick { right: 12px; width: 84px; }
}
@media (max-width: 1180px) {
  .gnb a { padding: 8px 10px; font-size: 15px; }
  .header-tel { font-size: 18px; }
}
@media (max-width: 1023px) {
  :root { --header-h: 64px; }
  .container { padding: 0 20px; }
  .header-inner { gap: 12px; }
  .logo-main { font-size: 16px; }
  .header-tel { display: none; }
  .header-cta { margin-left: auto; gap: 8px; }
  .menu-toggle { display: block; }
  .gnb {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; gap: 0; margin: 0; padding: 8px 20px 20px;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(15, 34, 56, .1);
    visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s;
  }
  .gnb.open { visibility: visible; opacity: 1; transform: none; }
  .gnb a { padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 16px; }
  .gnb a:hover, .gnb a.active { background: none; }

  .hero { min-height: 640px; align-items: flex-end; }
  .hero-body { padding-bottom: 96px; }
  .hero-shade { background: linear-gradient(0deg, rgba(8, 20, 36, .92) 0%, rgba(8, 20, 36, .55) 55%, rgba(8, 20, 36, .15) 100%); }
  .hero-cta .btn { flex: 1 1 200px; }
  .hero-caption { right: 20px; bottom: 70px; }
  .stats { grid-template-columns: repeat(2, 1fr); margin-top: -40px; }
  .stats li { padding: 22px 12px; }
  .stats li:nth-child(3) { border-left: 0; }
  .stats li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stats strong { font-size: 28px; }

  .section { padding: 80px 0; }
  .split, .location, .complex, .community { grid-template-columns: 1fr; gap: 36px; }
  .overview-photo { justify-self: stretch; max-width: none; }
  .overview-photo img { aspect-ratio: 4 / 3; }
  .community { margin-top: 64px; }
  .plan { grid-template-columns: 1fr; }
  .plan > img { border-right: 0; border-bottom: 1px solid var(--line); }
  .plan-side { position: static; padding: 28px 24px; }
  .pay { grid-template-columns: 1fr; }
  .pay li { display: grid; grid-template-columns: auto 1fr; column-gap: 24px; align-items: center; padding: 24px; }
  .pay span { grid-column: 1; }
  .pay strong { grid-column: 1; font-size: 40px; }
  .pay p { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
  .sale-cta { padding: 24px; }
  .sale-cta div, .sale-cta .btn { width: 100%; }
  .banner { padding: 96px 0; }

  /* 모바일 하단 상담바 */
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .quick {
    top: auto; bottom: 0; left: 0; right: 0; transform: none;
    flex-direction: row; width: auto; height: calc(68px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom); border-radius: 0; border-width: 1px 0 0;
  }
  .quick button { flex: 1; height: 68px; gap: 3px; font-size: 13px; }
  .quick button + button { border-top: 0; border-left: 1px solid var(--line); }
  .quick svg { width: 21px; height: 21px; }
  .quick .quick-main { flex: 1.3; font-size: 15px; }
  .quick .quick-top { display: none; }
}
@media (max-width: 560px) {
  .btn-sm { height: 38px; padding: 0 12px; font-size: 14px; }
  .logo-sub { display: none; }
  .logo-main { font-size: 15px; }
  .hero h1 { font-size: 38px; }
  .spec div { grid-template-columns: 88px 1fr; }
  .modal { width: 100%; max-height: 100dvh; height: 100dvh; max-width: none; border-radius: 0; }
}
