/* ==========================================================================
   오목천역 더리브 (THE LIV) — 통합 스타일시트
   Design tokens grounded in the actual marketing material's own palette:
   deep navy + brass gold (already used on the developer's cover pages),
   and the six unit-type colors exactly as they appear on the official
   floor-plan / site-plan diagrams (84A~84F color chips).
   ========================================================================== */

@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css');

:root {
  /* ---- brand palette (grounded in source PDF cover: navy + cream + brass) ---- */
  --navy-950: #0c1119;
  --navy-900: #10151f;
  --navy-800: #171e2b;
  --navy-700: #232c3d;
  --cream-50: #f7f3ea;
  --cream-100: #efe8d8;
  --stone-400: #9aa1ad;
  --stone-600: #5b6472;
  --ink-900: #1b1f27;
  --brass-400: #d8bd8a;
  --brass-500: #bd9a5f;
  --brass-600: #a17f45;

  /* ---- unit-type colors, lifted directly from the official 단지배치도 legend ---- */
  --type-a: #6f665c;   /* 84A 그레이베이지 */
  --type-b: #7c8b52;   /* 84B 올리브그린 */
  --type-c: #e08e3f;   /* 84C 앰버오렌지 — 샘플하우스 */
  --type-d: #4fa79e;   /* 84D 틸 */
  --type-e: #4472c4;   /* 84E 블루 */
  --type-f: #7b5ea0;   /* 84F 퍼플 */

  --font-display: 'Noto Serif KR', serif;
  --font-body: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-sm: 4px;
  --radius-md: 10px;
  --container: 1180px;
}

@font-face {
  font-family: 'Noto Serif KR';
  src: local('Noto Serif KR');
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--cream-50);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
  color: var(--ink-900);
}
p { margin: 0 0 1em; }
.wrap { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section--alt { background: var(--cream-100); }
.section--dark { background: var(--navy-900); color: var(--cream-50); }
.section--dark h2, .section--dark h3 { color: var(--cream-50); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: 0.16em;
  font-weight: 600;
  color: var(--brass-600);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--brass-600);
  display: inline-block;
}
.section--dark .eyebrow, .section--dark .eyebrow::before { color: var(--brass-400); background: var(--brass-400); }
h2.section-title { font-size: clamp(26px, 3.4vw, 38px); }
.lead { font-size: 17px; color: var(--stone-600); max-width: 640px; }
.section--dark .lead { color: var(--stone-400); }

/* ---- nav ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 17, 25, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(216, 189, 138, 0.18);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav-logo { font-family: var(--font-display); font-size: 19px; font-weight: 700; color: var(--cream-50); letter-spacing: .02em; }
.nav-logo span { color: var(--brass-400); }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { font-size: 14px; color: var(--stone-400); font-weight: 500; transition: color .2s; margin-left: 14px; }
.nav-links a:first-child { margin-left: 0; }
.nav-links a:hover { color: var(--cream-50); }
.nav-cta {
  background: var(--brass-500);
  color: var(--navy-950) !important;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 13.5px;
}
.nav-toggle { display: none; background: none; border: none; color: var(--cream-50); font-size: 22px; cursor: pointer; }

@media (max-width: 860px) {
  .nav-links { position: fixed; top: 68px; left: 0; right: 0; background: var(--navy-900); flex-direction: column; align-items: flex-start; padding: 20px 24px 28px; gap: 16px; display: none; border-bottom: 1px solid rgba(216,189,138,.18); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}

/* ---- hero ---- */
.hero {
  position: relative;
  min-height: 640px;
  height: 82vh;
  max-height: 820px;
  display: flex;
  align-items: flex-end;
  background-color: #0c1119;
  background-image: url('../assets/exterior_sunset_01.jpg');
  background-repeat: no-repeat;
  background-position: center 38%;
  background-size: cover;
  color: var(--cream-50);
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,11,16,.45) 0%, rgba(8,11,16,.4) 22%, rgba(9,13,19,.72) 55%, rgba(8,11,16,.96) 100%);
}
.hero-inner { position: relative; z-index: 1; padding-bottom: 72px; width: 100%; }
.hero-eyebrow { font-size: 14px; letter-spacing: .22em; text-transform: uppercase; color: var(--brass-400); font-weight: 600; margin-bottom: 18px; }
.hero h1 { font-size: clamp(34px, 5.6vw, 64px); line-height: 1.18; margin-bottom: 18px; color: #fff; }
.hero h1 em { font-style: normal; color: var(--brass-400); }
.hero-sub { font-size: clamp(15px, 1.7vw, 19px); color: var(--cream-100); max-width: 620px; margin-bottom: 30px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.chip {
  border: 1px solid rgba(216,189,138,.5);
  color: var(--brass-400);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s, background .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brass-500); color: var(--navy-950); }
.btn-primary:hover { background: var(--brass-400); }
.btn-outline { border-color: rgba(247,243,234,.5); color: var(--cream-50); }
.btn-outline:hover { border-color: var(--cream-50); }
.btn-dark { background: var(--navy-900); color: var(--cream-50); }
.btn-block { width: 100%; justify-content: center; }

/* ---- stat / overview grid ---- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: rgba(0,0,0,.06); border-radius: var(--radius-md); overflow: hidden; margin-top: 48px; }
.stat-card { background: var(--cream-50); padding: 28px 22px; }
.stat-card .num { font-family: var(--font-display); font-size: 30px; font-weight: 700; color: var(--brass-600); }
.stat-card .label { font-size: 13.5px; color: var(--stone-600); margin-top: 4px; }
@media (max-width: 760px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }

.two-col { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.two-col img { border-radius: var(--radius-md); }

.narrative p { color: var(--stone-600); font-size: 15.5px; }
.section--dark .narrative p { color: var(--stone-400); }

.tag-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.tag-list li { display: flex; gap: 10px; font-size: 14.5px; color: var(--ink-900); }
.section--dark .tag-list li { color: var(--cream-100); }
.tag-list .tag {
  flex-shrink: 0;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 3px;
  height: fit-content;
}
.tag--ok { background: rgba(79,167,158,.18); color: #2f7a72; }
.tag--plan { background: rgba(189,154,95,.18); color: var(--brass-600); }
.section--dark .tag--ok { background: rgba(79,167,158,.24); color: #7fd0c6; }
.section--dark .tag--plan { background: rgba(216,189,138,.22); color: var(--brass-400); }

/* ---- unit type cards ---- */
.type-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
@media (max-width: 860px) { .type-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .type-grid { grid-template-columns: 1fr; } }
.type-card {
  background: var(--cream-50);
  border: 1px solid rgba(0,0,0,.07);
  border-top: 4px solid var(--c, var(--brass-500));
  border-radius: var(--radius-md);
  padding: 24px;
  position: relative;
}
.type-card.featured { background: var(--navy-900); color: var(--cream-50); box-shadow: 0 18px 40px rgba(10,14,20,.25); }
.type-card.featured h3, .type-card.featured .type-meta { color: var(--cream-50); }
.type-card .type-name { font-family: var(--font-display); font-size: 26px; font-weight: 700; color: var(--c, var(--brass-600)); }
.type-card.featured .type-name { color: var(--brass-400); }
.type-badge {
  position: absolute; top: -12px; right: 18px;
  background: var(--brass-500); color: var(--navy-950);
  font-size: 11.5px; font-weight: 800; padding: 5px 11px; border-radius: 999px;
}
.type-meta { font-size: 13.5px; color: var(--stone-600); margin: 10px 0 0; list-style: none; padding: 0; display: grid; gap: 4px; }
.type-card.featured .type-meta { color: var(--stone-400); }

/* ---- gallery ---- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 40px; }
.gallery-grid img { border-radius: var(--radius-sm); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.gallery-grid a:nth-child(4n+1) { grid-row: span 2; }
.gallery-grid a:nth-child(4n+1) img { aspect-ratio: 4/6.4; height: 100%; }
@media (max-width: 760px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } .gallery-grid a:nth-child(4n+1) { grid-row: span 1; } .gallery-grid a:nth-child(4n+1) img { aspect-ratio: 4/3; } }
.gallery-caption { text-align: center; font-size: 13px; color: var(--stone-600); margin-top: 18px; }

/* ---- form ---- */
.form-panel { background: var(--cream-50); border-radius: var(--radius-md); padding: 40px; box-shadow: 0 20px 50px rgba(10,14,20,.12); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; color: var(--ink-900); }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid rgba(0,0,0,.15);
  border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 14.5px; background: #fff;
}
.field textarea { resize: vertical; min-height: 90px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--stone-600); margin-bottom: 22px; }
.consent a { text-decoration: underline; }
.form-msg { font-size: 14px; margin-top: 14px; padding: 12px 14px; border-radius: var(--radius-sm); display: none; }
.form-msg.show { display: block; }
.form-msg.ok { background: rgba(79,167,158,.14); color: #2f7a72; }
.form-msg.err { background: rgba(200,80,80,.12); color: #a83c3c; }

/* ---- CTA belt ---- */
.cta-belt { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: rgba(247,243,234,.1); border-radius: var(--radius-md); overflow: hidden; margin-top: 40px; }
@media (max-width: 760px) { .cta-belt { grid-template-columns: repeat(2, 1fr); } }
.cta-belt a { background: var(--navy-800); color: var(--cream-100); padding: 20px 16px; text-align: center; font-size: 13.5px; font-weight: 600; transition: background .2s; }
.cta-belt a:hover { background: var(--navy-700); color: var(--brass-400); }
.cta-belt .cta-ico { font-size: 20px; display: block; margin-bottom: 8px; }

/* ---- FAQ ---- */
.faq-item { border-bottom: 1px solid rgba(0,0,0,.1); padding: 18px 0; }
.faq-item summary { cursor: pointer; font-weight: 700; font-size: 15.5px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 20px; color: var(--brass-600); flex-shrink: 0; }
.faq-item[open] summary::after { content: '–'; }
.faq-item p { margin-top: 12px; color: var(--stone-600); font-size: 14.5px; }

/* ---- footer ---- */
footer { background: var(--navy-950); color: var(--stone-400); padding: 56px 0 30px; font-size: 13px; }
footer .foot-links { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
footer .foot-links a { color: var(--cream-100); font-weight: 600; font-size: 13.5px; }
.legal-notice { border-top: 1px solid rgba(255,255,255,.08); padding-top: 22px; line-height: 1.9; color: var(--stone-400); }
.legal-notice b { color: var(--stone-400); }
.disclaimer-box {
  background: rgba(216,189,138,.08);
  border: 1px solid rgba(216,189,138,.25);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-size: 13px;
  color: var(--cream-100);
  margin: 28px 0;
  line-height: 1.8;
}
.section--dark .disclaimer-box { color: var(--stone-400); }

/* ---- table ---- */
.spec-table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14px; }
.spec-table th, .spec-table td { border: 1px solid rgba(0,0,0,.1); padding: 10px 12px; text-align: center; }
.spec-table th { background: var(--navy-900); color: var(--cream-50); font-weight: 600; font-size: 13px; }
.spec-table td:first-child { font-weight: 700; }

.page-hero { background: var(--navy-900); color: var(--cream-50); padding: 100px 0 56px; }
.page-hero h1 { color: #fff; font-size: clamp(28px, 4vw, 42px); }
.breadcrumb { font-size: 13px; color: var(--stone-400); margin-bottom: 16px; }
.breadcrumb a { color: var(--brass-400); }
