/* ==========================================================================
   고촌센트럴자이 — 공용 스타일시트
   컨셉: 강변 아침의 푸른 톤. 네이비 + 스카이블루, 큰 사진과 또렷한 숫자.
   ========================================================================== */

:root {
  --navy: #14224f;
  --navy-deep: #0c1736;
  --blue: #2e62b0;
  --blue-soft: #4f8be0;
  --sky: #e8eef9;
  --sky-deep: #d3def2;
  --paper: #f6f8fc;
  --white: #ffffff;
  --ink: #14203d;
  --ink-soft: #4b5878;
  --line: #d9e0ee;
  --amber: #e0a32f;
  --max: 1160px;
  --bar-h: 64px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }

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.75;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}

h1, h2, h3, h4 {
  font-weight: 800;
  color: var(--navy-deep);
  margin: 0 0 0.5em;
  line-height: 1.32;
  letter-spacing: -0.02em;
}
p { margin: 0 0 1.1em; color: var(--ink-soft); }
a { color: var(--blue); }
img { max-width: 100%; display: block; }
ul { margin: 0 0 1.1em; padding-left: 1.2em; color: var(--ink-soft); }
li { margin-bottom: 0.35em; }

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

/* ---------- 헤더 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 248, 252, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy-deep); }
.brand img { height: 36px; width: auto; }
.brand-name { font-weight: 800; font-size: 1.08rem; letter-spacing: -0.02em; line-height: 1.2; }
.brand-name small { display: block; font-weight: 500; font-size: 0.68rem; color: var(--ink-soft); letter-spacing: 0; }
.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a {
  color: var(--ink); text-decoration: none; font-size: 0.92rem; font-weight: 500;
  border-bottom: 2px solid transparent; padding: 4px 0;
}
.main-nav a:hover { border-bottom-color: var(--blue-soft); }
.main-nav a.btn { border-bottom: 0; padding: 10px 18px; color: #fff; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 8px;
  width: 42px; height: 42px; 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; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; font-size: 0.95rem; font-weight: 700;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit;
}
.btn-cta { background: var(--blue); color: #fff; }
.btn-cta:hover { background: var(--navy); }
.btn-light { background: #fff; color: var(--navy-deep); }
.btn-light:hover { background: var(--sky); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.65); }
.btn-ghost:hover { background: rgba(255,255,255,0.14); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-block { width: 100%; }

/* ---------- 히어로 ---------- */
.hero { position: relative; color: #fff; overflow: hidden; }
.hero-media {
  position: relative; min-height: 600px; height: 82vh; max-height: 860px;
  display: flex; align-items: flex-end;
}
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,23,54,0.35) 0%, rgba(12,23,54,0.18) 35%, rgba(12,23,54,0.88) 100%);
}
.hero-content { position: relative; z-index: 2; padding: 64px 24px 64px; width: 100%; }
.hero-tag {
  display: inline-block; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.01em;
  background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.35);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 20px; backdrop-filter: blur(4px);
}
.hero h1 { color: #fff; font-size: clamp(2rem, 4.8vw, 3.5rem); max-width: 17ch; margin-bottom: 0.45em; }
.hero p.lead { color: rgba(255,255,255,0.9); font-size: 1.1rem; max-width: 48ch; margin-bottom: 1.7em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-cg { position: absolute; right: 20px; top: 16px; z-index: 3; font-size: 0.72rem; color: rgba(255,255,255,0.8); }

/* ---------- 섹션 ---------- */
section { padding: 88px 0; }
.section-alt { background: var(--sky); }
.section-navy { background: var(--navy-deep); color: rgba(255,255,255,0.92); }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-navy p { color: rgba(255,255,255,0.74); }
.eyebrow { display: inline-block; font-size: 0.82rem; font-weight: 700; color: var(--blue); margin-bottom: 12px; letter-spacing: 0.02em; }
.section-navy .eyebrow { color: var(--blue-soft); }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.55rem, 2.8vw, 2.2rem); }

/* ---------- 숫자 요약 ---------- */
.stat-strip { margin-top: -44px; position: relative; z-index: 5; padding: 0 0 12px; }
.stat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border-radius: 16px; box-shadow: 0 18px 40px rgba(20,34,79,0.12); overflow: hidden;
}
.stat-card { padding: 28px 24px; border-right: 1px solid var(--line); }
.stat-card:last-child { border-right: none; }
.stat-num { font-size: 2.1rem; font-weight: 800; color: var(--navy-deep); display: block; line-height: 1.15; letter-spacing: -0.03em; }
.stat-num small { font-size: 1rem; font-weight: 600; color: var(--blue); margin-left: 2px; }
.stat-label { font-size: 0.86rem; color: var(--ink-soft); margin-top: 6px; display: block; }

/* ---------- 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: -1; }
.figure { margin: 0; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 12px 30px rgba(20,34,79,0.1); }
.figure img { width: 100%; }
.figure figcaption {
  padding: 12px 16px; font-size: 0.82rem; color: var(--ink-soft);
  display: flex; justify-content: space-between; gap: 12px; background: #fff;
}
.figure figcaption b { color: var(--blue); font-weight: 700; white-space: nowrap; }

/* ---------- 카드 ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.info-card { background: #fff; border-radius: 16px; padding: 28px 26px; border: 1px solid var(--line); }
.info-card .ico {
  width: 44px; height: 44px; border-radius: 12px; background: var(--sky); color: var(--blue);
  display: grid; place-items: center; font-weight: 800; margin-bottom: 16px; font-size: 1.05rem;
}
.info-card h3 { font-size: 1.12rem; }
.info-card p { font-size: 0.94rem; margin-bottom: 0; }

/* ---------- 갤러리 ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: 12px; }
.gallery figure { margin: 0; position: relative; border-radius: 12px; overflow: hidden; background: #dfe6f3; cursor: zoom-in; }
.gallery figure.wide { grid-column: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 14px 10px; font-size: 0.8rem; color: #fff;
  background: linear-gradient(0deg, rgba(12,23,54,0.78), rgba(12,23,54,0));
}
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(8,14,34,0.92); display: none; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 92vh; max-width: 96vw; border-radius: 8px; }

/* ---------- 타입 카드 ---------- */
.type-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.type-card { background: #fff; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; }
.type-card .plan { background: #fff; padding: 14px; border-bottom: 1px solid var(--line); }
.type-card .plan img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
.type-card-body { padding: 22px 24px 26px; }
.type-card-body h3 { font-size: 1.3rem; display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.type-card-body h3 span { font-size: 0.8rem; font-weight: 700; color: var(--blue); }
.type-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 12px; padding: 0; list-style: none; }
.type-meta li { font-size: 0.78rem; font-weight: 600; background: var(--sky); color: var(--navy); border-radius: 999px; padding: 3px 11px; margin: 0; }
.type-card-body p { font-size: 0.92rem; margin-bottom: 0; }
.note { font-size: 0.84rem; color: var(--ink-soft); margin-top: 20px; }

/* ---------- 철도/목록 ---------- */
.route-list { display: flex; flex-direction: column; }
.route-row { display: grid; grid-template-columns: 150px 1fr auto; gap: 20px; align-items: center; padding: 20px 0; border-top: 1px solid rgba(255,255,255,0.16); }
.route-row:last-child { border-bottom: 1px solid rgba(255,255,255,0.16); }
.route-row .r-name { font-weight: 700; color: #fff; }
.route-row .r-desc { font-size: 0.93rem; color: rgba(255,255,255,0.72); }
.route-row .r-time { font-weight: 800; color: var(--amber); white-space: nowrap; font-size: 1.05rem; }

.list-light .route-row { border-color: var(--line); }
.list-light .route-row:last-child { border-color: var(--line); }
.list-light .r-name { color: var(--navy-deep); }
.list-light .r-desc { color: var(--ink-soft); }
.list-light .r-time { color: var(--blue); }

.table-basic { width: 100%; border-collapse: collapse; font-size: 0.93rem; background: #fff; border-radius: 12px; overflow: hidden; }
.table-basic th, .table-basic td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-basic th { color: var(--navy-deep); font-weight: 700; width: 30%; background: var(--sky); }
.table-basic tr:last-child th, .table-basic tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; }
.table-basic.wide th { width: auto; }

/* ---------- 라벨 ---------- */
.badge { display: inline-block; font-size: 0.72rem; font-weight: 700; border-radius: 999px; padding: 2px 10px; margin-left: 6px; vertical-align: middle; }
.badge-run { background: #dff3e6; color: #1d6b3a; }
.badge-build { background: #dfe9fb; color: #24509a; }
.badge-plan { background: #f3e8cc; color: #7c5a0f; }
.badge-ok { background: #e5e8ef; color: #4b5878; }

/* ---------- FAQ ---------- */
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 20px 4px; font-weight: 700; color: var(--navy-deep);
  display: flex; gap: 12px; align-items: flex-start;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: "Q"; color: var(--blue); font-weight: 800; }
.faq-item summary::after { content: "+"; margin-left: auto; color: var(--blue); font-weight: 600; font-size: 1.2rem; line-height: 1.2; }
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-a { padding: 0 4px 22px 28px; margin: 0; font-size: 0.96rem; }

/* ---------- 상담 폼 ---------- */
.consult-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 34px; box-shadow: 0 14px 34px rgba(20,34,79,0.09); }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-size: 0.88rem; font-weight: 700; color: var(--navy-deep); margin-bottom: 6px; }
.form-row input[type="text"], .form-row input[type="tel"], .form-row input[type="datetime-local"], .form-row select, .form-row textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 0.97rem; font-family: inherit; background: var(--paper); color: var(--ink);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: 2px solid var(--blue-soft); outline-offset: 1px; background: #fff; }
.form-row textarea { min-height: 96px; resize: vertical; }
.form-check { display: flex; align-items: flex-start; gap: 10px; font-size: 0.86rem; color: var(--ink-soft); font-weight: 500 !important; }
.form-check input { margin-top: 5px; }
.form-result { display: none; font-size: 0.92rem; margin-top: 14px; padding: 12px 14px; border-radius: 10px; }
.form-result.ok, .form-result.err { display: block; }
.form-result.ok { background: #e1f2e7; color: #1d6b3a; }
.form-result.err { background: #fbe9e4; color: #8a3b2a; }

/* ---------- 푸터 ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,0.65); padding: 52px 0 calc(34px + var(--bar-h)); font-size: 0.86rem; }
.channel-bar { display: flex; flex-wrap: wrap; gap: 12px 26px; padding: 0 0 26px; border-bottom: 1px solid rgba(255,255,255,0.14); font-size: 0.93rem; }
.channel-bar a { color: #bcd0f5; text-decoration: none; font-weight: 600; }
.channel-bar span { color: rgba(255,255,255,0.55); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 32px; margin: 30px 0; }
.footer-grid h4 { color: rgba(255,255,255,0.9); font-size: 0.92rem; margin-bottom: 12px; }
.footer-grid p { color: rgba(255,255,255,0.55); font-size: 0.85rem; max-width: 36ch; }
.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.14); padding-top: 22px; line-height: 1.9; color: rgba(255,255,255,0.52); }

/* ---------- 모바일 하단 고정바 ---------- */
.bottom-bar { display: none; }

/* ---------- 내부 페이지 ---------- */
.page-hero { background: linear-gradient(135deg, var(--navy-deep), var(--navy) 60%, #1d3a7a); color: #fff; padding: 66px 0 48px; }
.page-hero .eyebrow { color: #9dbcf2; }
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.6rem); max-width: 22ch; }
.page-hero p { color: rgba(255,255,255,0.78); max-width: 62ch; }
.breadcrumb { font-size: 0.84rem; color: rgba(255,255,255,0.65); margin-bottom: 14px; }
.breadcrumb a { color: rgba(255,255,255,0.75); text-decoration: none; }
.prose { max-width: 74ch; }
.prose h2 { margin-top: 1.7em; font-size: 1.4rem; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-bottom: 1.2em; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 34px; padding: 0; list-style: none; }
.toc a { display: inline-block; font-size: 0.85rem; font-weight: 600; text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; color: var(--navy); }
.toc a:hover { background: var(--sky); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: start; }

/* ---------- 반응형 ---------- */
@media (max-width: 960px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-card:nth-child(2) { border-right: none; }
  .stat-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .split, .split.reverse, .two-col { grid-template-columns: 1fr; gap: 30px; }
  .split.reverse .split-media { order: 0; }
  .card-grid, .type-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
  .footer-grid { grid-template-columns: 1fr; }
  .route-row { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 760px) {
  :root { --bar-h: 62px; }
  body { padding-bottom: var(--bar-h); }
  .main-nav {
    position: fixed; top: 68px; left: 0; right: 0; background: var(--paper); flex-direction: column;
    align-items: flex-start; padding: 20px 24px 26px; border-bottom: 1px solid var(--line); gap: 16px; display: none;
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .hero-media { min-height: 560px; height: 76vh; }
  section { padding: 60px 0; }
  .consult-card { padding: 24px; }
  .stat-num { font-size: 1.7rem; }
  .stat-card { padding: 22px 18px; }
  .gallery figure.wide { grid-column: span 2; }
  .bottom-bar {
    display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    height: var(--bar-h); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(20,34,79,0.1);
  }
  .bottom-bar a { display: flex; align-items: center; justify-content: center; font-weight: 800; text-decoration: none; font-size: 1rem; }
  .bottom-bar .bb-call { color: var(--navy-deep); }
  .bottom-bar .bb-form { background: var(--blue); color: #fff; }
}
@media (max-width: 460px) {
  .gallery { gap: 8px; }
  .hero h1 { font-size: 1.95rem; }
}
