/* ==========================================================================
   GD메트로타워 — 현장 홈페이지 스타일
   컨셉: 야경의 스카이라인. 깊은 네이비 바탕에 선명한 블루, 수치를 크게 보여주는 레이아웃.
   ========================================================================== */

:root {
  --navy: #0E1A47;
  --navy-deep: #08112F;
  --blue: #2543AB;
  --blue-soft: #4A6AD6;
  --sky: #EDF1FC;
  --sky-line: #D5DDF3;
  --ink: #151823;
  --mute: #566077;
  --line: #E1E5F0;
  --white: #FFFFFF;
  --accent: #E5322D;
  --amber: #FFD678;
  --max: 1160px;
  --bar-h: 64px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  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 { color: var(--navy); margin: 0 0 0.5em; line-height: 1.32; letter-spacing: -0.02em; font-weight: 800; }
p { margin: 0 0 1.1em; color: var(--mute); }
a { color: var(--blue); }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- 헤더 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.95);
  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); }
.brand img { height: 32px; width: auto; }
.brand-name { font-weight: 800; font-size: 1.08rem; letter-spacing: -0.02em; line-height: 1.15; }
.brand-name small { display: block; font-weight: 500; font-size: 0.68rem; color: var(--mute); letter-spacing: 0; }
.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a { color: var(--ink); text-decoration: none; font-size: 0.93rem; font-weight: 600; padding: 4px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover { border-bottom-color: var(--blue); }
.main-nav a.btn { color: var(--white); border-bottom: 1px solid transparent; padding: 10px 18px; }
.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: 8px; font-size: 0.97rem; font-weight: 700; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit; line-height: 1.2; }
.btn-cta { background: var(--blue); color: var(--white); }
.btn-cta:hover { background: var(--navy); }
.btn-red { background: var(--accent); color: var(--white); }
.btn-red:hover { background: #c7241f; }
.btn-line { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-line:hover { background: var(--navy); color: var(--white); }
.btn-ghost { background: rgba(255,255,255,0.12); color: var(--white); border-color: rgba(255,255,255,0.55); }
.btn-ghost:hover { background: var(--white); color: var(--navy); }
.btn-block { width: 100%; }

/* ---------- 히어로 ---------- */
.hero { position: relative; color: var(--white); background: var(--navy-deep); overflow: hidden; }
.hero-media { position: relative; min-height: 620px; height: 80vh; max-height: 840px; display: flex; align-items: flex-end; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,17,47,0.25) 0%, rgba(8,17,47,0.5) 50%, rgba(8,17,47,0.94) 100%); }
.hero-content { position: relative; z-index: 2; padding: 64px 24px 60px; width: 100%; }
.hero-tag { display: inline-block; font-size: 0.82rem; font-weight: 700; color: var(--amber); border: 1px solid rgba(255,214,120,0.55); padding: 6px 14px; border-radius: 999px; margin-bottom: 20px; }
.hero h1 { color: var(--white); font-size: clamp(2rem, 4.6vw, 3.4rem); max-width: 18ch; margin-bottom: 0.45em; }
.hero p.lead { color: rgba(255,255,255,0.88); font-size: 1.1rem; max-width: 48ch; margin-bottom: 1.6em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { margin: 22px 0 0; font-size: 0.8rem; color: rgba(255,255,255,0.62); max-width: 70ch; }

/* ---------- 섹션 ---------- */
section { padding: 84px 0; }
.section-sky { background: var(--sky); }
.section-navy { background: var(--navy); color: rgba(255,255,255,0.9); }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy p { color: rgba(255,255,255,0.74); }
.eyebrow { display: inline-block; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.08em; color: var(--blue); margin-bottom: 12px; text-transform: uppercase; }
.section-navy .eyebrow { color: var(--amber); }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); }

/* ---------- 수치 ---------- */
.stat-strip { margin-top: -44px; position: relative; z-index: 5; padding: 0 0 8px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--white); border-radius: 14px; box-shadow: 0 14px 40px rgba(14,26,71,0.16); overflow: hidden; }
.stat-card { padding: 28px 24px; border-right: 1px solid var(--line); }
.stat-card:last-child { border-right: none; }
.stat-num { display: block; font-size: 2.3rem; font-weight: 800; color: var(--navy); letter-spacing: -0.03em; line-height: 1.1; }
.stat-num small { font-size: 1rem; font-weight: 700; color: var(--blue); margin-left: 2px; }
.stat-label { display: block; font-size: 0.86rem; color: var(--mute); margin-top: 8px; line-height: 1.5; }
.footnote { font-size: 0.82rem; color: var(--mute); margin-top: 18px; max-width: none; }

/* ---------- 그림 ---------- */
.figure { margin: 0; border-radius: 12px; overflow: hidden; background: var(--white); border: 1px solid var(--line); }
.figure img { width: 100%; }
.figure figcaption { padding: 12px 16px; font-size: 0.84rem; color: var(--mute); display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); }
.figure figcaption .fig-index { color: var(--blue); font-weight: 700; white-space: nowrap; }

/* ---------- 2단 ---------- */
.split { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 56px; align-items: center; }
.split.reverse { grid-template-columns: 0.98fr 1.02fr; }
.split.reverse .split-media { order: 2; }
.split-text h2 { font-size: clamp(1.5rem, 2.8vw, 2.05rem); }

/* ---------- 갤러리 ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery .shot { margin: 0; border-radius: 12px; overflow: hidden; background: var(--sky); position: relative; }
.gallery .shot img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .4s; }
.gallery .shot:hover img { transform: scale(1.04); }
.gallery .shot figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 12px; font-size: 0.82rem; font-weight: 600; color: var(--white); background: linear-gradient(180deg, transparent, rgba(8,17,47,0.82)); }
.gallery.wide { grid-template-columns: repeat(3, 1fr); }
.gallery.wide .shot img { aspect-ratio: 4 / 3; }

/* ---------- 타입 카드 ---------- */
.type-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.type-card { background: var(--white); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.type-card .imgs { display: grid; grid-template-columns: 1.4fr 1fr; background: var(--sky); }
.type-card .imgs img { width: 100%; height: 190px; object-fit: contain; padding: 10px; }
.type-card-body { padding: 20px 22px 24px; flex: 1; }
.type-card-body h3 { font-size: 1.22rem; margin-bottom: 4px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.type-card-body h3 span { font-size: 0.78rem; font-weight: 700; color: var(--white); background: var(--blue); padding: 2px 9px; border-radius: 999px; }
.type-card-body .meta { font-size: 0.86rem; color: var(--blue); font-weight: 700; margin-bottom: 8px; }
.type-card-body p { font-size: 0.92rem; margin-bottom: 0.5em; }

/* ---------- 교통/개발 리스트 ---------- */
.row-list { display: flex; flex-direction: column; }
.row-item { display: grid; grid-template-columns: 200px 1fr auto; gap: 22px; align-items: center; padding: 20px 0; border-top: 1px solid rgba(255,255,255,0.16); }
.row-item:last-child { border-bottom: 1px solid rgba(255,255,255,0.16); }
.row-item .r-name { font-weight: 800; color: var(--white); }
.row-item .r-desc { font-size: 0.93rem; color: rgba(255,255,255,0.74); }
.row-item .r-tag { font-weight: 800; color: var(--amber); white-space: nowrap; }
.section-light .row-item, .row-list.light .row-item { border-color: var(--line); }
.row-list.light .row-item .r-name { color: var(--navy); }
.row-list.light .row-item .r-desc { color: var(--mute); }
.row-list.light .row-item .r-tag { color: var(--blue); }

/* ---------- 표 ---------- */
.table-basic { width: 100%; border-collapse: collapse; font-size: 0.93rem; background: var(--white); }
.table-basic th, .table-basic td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-basic th { color: var(--navy); font-weight: 800; background: var(--sky); width: 30%; }
.table-basic.grid th, .table-basic.grid td { border: 1px solid var(--line); text-align: center; width: auto; }
.table-basic.grid thead th { background: var(--navy); color: var(--white); }
.table-scroll { overflow-x: auto; border-radius: 10px; }

/* ---------- 칩 ---------- */
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; padding: 0; list-style: none; }
.chip-row li { background: var(--sky); border: 1px solid var(--sky-line); color: var(--navy); font-weight: 700; font-size: 0.86rem; padding: 7px 14px; border-radius: 999px; }

/* ---------- 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: 800; color: var(--navy); display: flex; gap: 12px; margin-bottom: 8px; font-size: 1.04rem; }
.faq-q .q-mark { color: var(--accent); }
.faq-a { font-size: 0.96rem; color: var(--mute); padding-left: 28px; margin: 0; max-width: none; }

/* ---------- 상담 ---------- */
.consult-card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 34px; box-shadow: 0 10px 34px rgba(14,26,71,0.08); }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: 0.88rem; font-weight: 700; color: var(--navy); 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: 12px 14px; border: 1px solid #CBD2E6; border-radius: 8px; font-size: 0.97rem; font-family: inherit; background: #FAFBFE; color: var(--ink); }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: 2px solid var(--blue-soft); border-color: var(--blue-soft); }
.form-row textarea { min-height: 96px; resize: vertical; }
.form-check { display: flex !important; align-items: flex-start; gap: 10px; font-size: 0.85rem !important; font-weight: 500 !important; color: var(--mute) !important; }
.form-check input { margin-top: 4px; }
.form-result { display: none; font-size: 0.92rem; margin-top: 14px; padding: 12px 14px; border-radius: 8px; }
.form-result.ok, .form-result.err { display: block; }
.form-result.ok { background: #E4F1E8; color: #1d5b34; }
.form-result.err { background: #FBE9E7; color: #8a2d22; }

/* ---------- 푸터 ---------- */
.channel-bar { display: flex; flex-wrap: wrap; gap: 12px 26px; padding: 24px 0; border-top: 1px solid rgba(255,255,255,0.16); border-bottom: 1px solid rgba(255,255,255,0.16); font-size: 0.92rem; }
.channel-bar a { color: var(--amber); text-decoration: none; font-weight: 600; }
.channel-bar span { color: rgba(255,255,255,0.6); }
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,0.66); padding: 48px 0 32px; font-size: 0.85rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 32px; margin: 32px 0 26px; }
.footer-grid h4 { color: rgba(255,255,255,0.9); font-size: 0.92rem; margin-bottom: 12px; }
.footer-grid a { color: rgba(255,255,255,0.66); text-decoration: none; display: block; margin-bottom: 8px; }
.footer-grid p { color: rgba(255,255,255,0.55); max-width: 36ch; font-size: 0.85rem; }
.footer-legal { border-top: 1px solid rgba(255,255,255,0.16); padding-top: 22px; line-height: 1.9; color: rgba(255,255,255,0.55); }
.footer-legal .disclaim { margin-top: 8px; color: rgba(255,255,255,0.45); }

/* ---------- 내부 페이지 ---------- */
.page-hero { background: var(--navy); color: var(--white); padding: 64px 0 48px; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -80px; top: -80px; width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(circle, rgba(74,106,214,0.5), transparent 70%); }
.page-hero .eyebrow { color: var(--amber); }
.page-hero h1 { color: var(--white); font-size: clamp(1.8rem, 3.8vw, 2.6rem); max-width: 22ch; }
.page-hero p { color: rgba(255,255,255,0.78); max-width: 62ch; }
.breadcrumb { font-size: 0.85rem; margin-bottom: 14px; color: rgba(255,255,255,0.6); }
.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.5rem; }
.prose h3 { margin-top: 1.4em; font-size: 1.15rem; }
.prose p { max-width: none; }
.block { margin-bottom: 56px; }
.toc { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 40px; padding: 0; list-style: none; }
.toc a { display: block; padding: 8px 16px; border: 1px solid var(--sky-line); background: var(--sky); border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 0.88rem; color: var(--navy); }
.toc a:hover { background: var(--blue); color: var(--white); }
.cta-band { background: var(--navy); border-radius: 16px; padding: 38px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h3 { color: var(--white); margin: 0 0 6px; font-size: 1.35rem; }
.cta-band p { color: rgba(255,255,255,0.72); margin: 0; }

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

/* ---------- 반응형 ---------- */
@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 { grid-template-columns: 1fr; gap: 30px; }
  .split.reverse .split-media { order: 0; }
  .type-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery.wide { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .row-item { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 720px) {
  body { padding-bottom: var(--bar-h); }
  .main-nav { position: fixed; top: 68px; left: 0; right: 0; background: var(--white); flex-direction: column; align-items: flex-start; padding: 20px 24px 24px; border-bottom: 1px solid var(--line); gap: 16px; display: none; box-shadow: 0 14px 30px rgba(14,26,71,0.12); }
  .main-nav.open { display: flex; }
  .main-nav a.btn { width: 100%; }
  .nav-toggle { display: flex; }
  section { padding: 56px 0; }
  .hero-media { min-height: 560px; height: 76vh; }
  .stat-strip { margin-top: -30px; }
  .stat-num { font-size: 1.8rem; }
  .stat-card { padding: 20px 16px; }
  .consult-card { padding: 22px; }
  .cta-band { padding: 26px; }
  .table-basic { font-size: 0.88rem; }
  .table-basic th, .table-basic td { padding: 10px 9px; }
  .table-basic.grid th, .table-basic.grid td { padding: 10px 5px; font-size: 0.84rem; }
  .table-basic th { width: 34%; }
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 9px 12px calc(9px + env(safe-area-inset-bottom)); background: rgba(255,255,255,0.97); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(14,26,71,0.1); }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; height: 46px; border-radius: 10px; font-weight: 800; font-size: 0.98rem; text-decoration: none; }
  .mobile-bar .m-call { background: var(--navy); color: var(--white); }
  .mobile-bar .m-form { background: var(--accent); color: var(--white); }
}
@media (max-width: 480px) {
  .type-grid { grid-template-columns: 1fr; }
  .gallery { gap: 10px; }
}
