/* ==========================================================================
   부천 역곡 월드메르디앙 — 공용 스타일시트
   컨셉: "분양연구소"의 조사 보고서 / 설계 도면 톤 — 얇은 실선, 도면 여백,
   실측 수치를 그대로 드러내는 절제된 레이아웃.
   ========================================================================== */

:root {
  --forest: #1F4E3D;
  --forest-deep: #12261D;
  --forest-soft: #2C6B54;
  --gold: #B08D57;
  --gold-soft: #D9C6A1;
  --paper: #F7F5EE;
  --paper-warm: #EFEAD9;
  --ink: #1C1C1A;
  --ink-soft: #55534B;
  --line: #D9D2BE;
  --white: #FFFFFF;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Malgun Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Noto Serif KR", serif;
  font-weight: 700;
  color: var(--forest-deep);
  margin: 0 0 0.5em;
  line-height: 1.35;
}

p { margin: 0 0 1.1em; color: var(--ink-soft); max-width: 62ch; }
a { color: var(--forest); }
img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- 헤더 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 245, 238, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--forest-deep);
}
.brand img { height: 34px; width: auto; }
.brand-name {
  font-family: "Noto Serif KR", serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.brand-name small {
  display: block;
  font-family: "Pretendard", sans-serif;
  font-weight: 400;
  font-size: 0.68rem;
  color: var(--ink-soft);
}
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
  border-bottom: 1px solid transparent;
  padding-bottom: 3px;
}
.main-nav a:hover { border-bottom-color: var(--gold); }
.main-nav .btn-cta { margin-left: 4px; }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 3px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-cta {
  background: var(--forest);
  color: var(--white);
}
.btn-cta:hover { background: var(--forest-deep); }
.btn-outline {
  background: transparent;
  color: var(--forest-deep);
  border-color: var(--forest-deep);
}
.btn-outline:hover { background: var(--forest-deep); color: var(--white); }
.btn-gold {
  background: var(--gold);
  color: var(--forest-deep);
}
.btn-gold:hover { background: var(--gold-soft); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- 히어로 ---------- */
.hero {
  position: relative;
  color: var(--white);
  overflow: hidden;
}
.hero-media {
  position: relative;
  min-height: 640px;
  max-height: 820px;
  height: 78vh;
  display: flex;
  align-items: flex-end;
}
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18,38,29,0.15) 0%, rgba(18,38,29,0.55) 62%, rgba(18,38,29,0.92) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 64px 28px 56px;
  width: 100%;
}
.hero-tag {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--gold-soft);
  border: 1px solid rgba(217,198,161,0.5);
  padding: 5px 12px;
  border-radius: 2px;
  margin-bottom: 20px;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(1.9rem, 4.2vw, 3.1rem);
  max-width: 16ch;
  margin-bottom: 0.4em;
}
.hero p.lead {
  color: rgba(255,255,255,0.86);
  font-size: 1.08rem;
  max-width: 46ch;
  margin-bottom: 1.6em;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- 섹션 공통 ---------- */
section { padding: 84px 0; }
.section-alt { background: var(--paper-warm); }
.section-forest {
  background: var(--forest-deep);
  color: rgba(255,255,255,0.92);
}
.section-forest h2, .section-forest h3 { color: var(--white); }
.section-forest p { color: rgba(255,255,255,0.72); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--gold);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold);
}

.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }

/* ---------- 데이터 카드 (조사요약) ---------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: var(--white);
}
.stat-card {
  padding: 28px 22px;
  border-right: 1px solid var(--line);
}
.stat-card:last-child { border-right: none; }
.stat-num {
  font-family: "Noto Serif KR", serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--forest-deep);
  display: block;
}
.stat-num small { font-size: 1rem; font-weight: 500; color: var(--gold); }
.stat-label { font-size: 0.86rem; color: var(--ink-soft); margin-top: 6px; }

/* ---------- 그림 프레임 (도면/사진 캡션) ---------- */
.figure {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 4px;
  overflow: hidden;
}
.figure img { width: 100%; }
.figure figcaption {
  padding: 14px 18px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.figure figcaption .fig-index { color: var(--gold); font-weight: 600; white-space: nowrap; }

/* ---------- 2단 레이아웃 ---------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.split.reverse { grid-template-columns: 0.95fr 1.05fr; }
.split.reverse .split-media { order: 2; }

/* ---------- 타입 카드 ---------- */
.type-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.type-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.type-card img { aspect-ratio: 1 / 1; object-fit: cover; background: #EFEAD9; }
.type-card-body { padding: 18px 18px 22px; }
.type-card-body h3 {
  font-size: 1.15rem;
  margin-bottom: 2px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.type-card-body h3 span { font-size: 0.78rem; font-family: "Pretendard", sans-serif; color: var(--gold); font-weight: 600; }
.type-card-body p { font-size: 0.9rem; margin-bottom: 0.5em; }

/* ---------- 타임라인 (교통/개발호재) ---------- */
.transit-list { display: flex; flex-direction: column; }
.transit-row {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.transit-row:last-child { border-bottom: 1px solid var(--line); }
.transit-row .t-name { font-weight: 600; color: var(--forest-deep); }
.transit-row .t-desc { font-size: 0.92rem; color: var(--ink-soft); }
.transit-row .t-time {
  font-family: "Noto Serif KR", serif;
  font-weight: 700;
  color: var(--gold);
  white-space: nowrap;
}

/* ---------- FAQ ---------- */
.faq-item {
  border-top: 1px solid var(--line);
  padding: 22px 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q {
  font-weight: 700;
  color: var(--forest-deep);
  display: flex;
  gap: 12px;
  margin-bottom: 8px;
}
.faq-q .q-mark { color: var(--gold); font-family: "Noto Serif KR", serif; }
.faq-a { font-size: 0.95rem; color: var(--ink-soft); padding-left: 26px; margin: 0; }
.confirm-tag {
  display: inline-block;
  font-size: 0.72rem;
  color: #8a6b1f;
  background: #F3E8CE;
  border-radius: 2px;
  padding: 2px 7px;
  margin-left: 6px;
}

/* ---------- 상담 폼 ---------- */
.consult-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 36px;
}
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--forest-deep);
  margin-bottom: 6px;
}
.form-row input[type="text"],
.form-row input[type="tel"],
.form-row input[type="datetime-local"],
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--paper);
  color: var(--ink);
}
.form-row textarea { min-height: 100px; resize: vertical; }
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.form-check a { color: var(--forest); }
.form-msg { font-size: 0.9rem; margin-top: 14px; display: none; padding: 10px 14px; border-radius: 4px; }
.form-msg.show { display: block; }
.form-msg.ok { background: #E5EFE8; color: var(--forest-deep); }
.form-msg.err { background: #F6E6E2; color: #8a3b2a; }

/* ---------- 채널 바 ---------- */
.channel-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  padding: 26px 0;
  border-top: 1px solid rgba(255,255,255,0.15);
  border-bottom: 1px solid rgba(255,255,255,0.15);
  font-size: 0.92rem;
}
.channel-bar a { color: var(--gold-soft); text-decoration: none; }
.channel-bar span { color: rgba(255,255,255,0.5); }

/* ---------- 푸터 ---------- */
.site-footer {
  background: var(--forest-deep);
  color: rgba(255,255,255,0.65);
  padding: 48px 0 32px;
  font-size: 0.85rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 28px;
}
.footer-grid h4 {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-family: "Pretendard", sans-serif;
  margin-bottom: 12px;
}
.footer-grid a { color: rgba(255,255,255,0.65); text-decoration: none; display: block; margin-bottom: 8px; }
.footer-legal {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 22px;
  line-height: 1.9;
  color: rgba(255,255,255,0.5);
}
.footer-legal .disclaim { margin-top: 8px; color: rgba(255,255,255,0.42); }

/* ---------- 페이지 헤더 (내부 페이지) ---------- */
.page-hero {
  background: var(--forest-deep);
  color: var(--white);
  padding: 64px 0 44px;
}
.page-hero .eyebrow { color: var(--gold-soft); }
.page-hero .eyebrow::before { background: var(--gold-soft); }
.page-hero h1 { color: var(--white); font-size: clamp(1.7rem, 3.4vw, 2.4rem); max-width: 20ch; }
.page-hero p { color: rgba(255,255,255,0.75); max-width: 60ch; }

.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.6em; font-size: 1.35rem; }
.prose p { max-width: none; }

.table-basic { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.table-basic th, .table-basic td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}
.table-basic th { color: var(--forest-deep); font-weight: 700; width: 34%; background: var(--paper-warm); }

.breadcrumb { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 14px; }
.breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--forest); }

/* ---------- 반응형 ---------- */
@media (max-width: 900px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-card:nth-child(2) { border-right: none; }
  .type-grid { grid-template-columns: repeat(2, 1fr); }
  .split, .split.reverse { grid-template-columns: 1fr; gap: 32px; }
  .split.reverse .split-media { order: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .transit-row { grid-template-columns: 1fr; gap: 4px; }
}

@media (max-width: 720px) {
  .main-nav { position: fixed; top: 72px; left: 0; right: 0; background: var(--paper); flex-direction: column; align-items: flex-start; padding: 20px 28px; border-bottom: 1px solid var(--line); gap: 18px; display: none; }
  .main-nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .main-nav .btn-cta { margin-left: 0; }
  .type-grid { grid-template-columns: 1fr 1fr; }
  section { padding: 56px 0; }
  .consult-card { padding: 24px; }
}

@media (max-width: 480px) {
  .type-grid { grid-template-columns: 1fr; }
}
