/* =========================================================
   내집다오 통합 랜딩페이지 공통 스타일
   톤: 네이비 + 골드 / 모바일 우선(390px 기준) / 카드 레이아웃
   ========================================================= */

:root {
  --navy-900: #071a30;
  --navy-800: #0c2340;
  --navy-700: #123a66;
  --navy-600: #1b4b80;
  --gold-600: #a8801a;
  --gold-500: #c9a227;
  --gold-400: #e3b23c;
  --gold-300: #f0c96a;
  --gold-050: #fbf4e0;
  --ink: #101f36;
  --body: #44536c;
  --muted: #6b7a92;
  --line: #e2e7ef;
  --line-soft: #eef1f6;
  --bg: #f4f6fa;
  --white: #ffffff;
  --radius: 18px;
  --shadow-sm: 0 1px 2px rgba(12, 35, 64, 0.05);
  --shadow-md: 0 8px 24px rgba(12, 35, 64, 0.08);
  --font: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
    "Malgun Gothic", "맑은 고딕", "Noto Sans KR", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--body);
  background: var(--bg);
  padding-bottom: calc(84px + env(safe-area-inset-bottom));
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  color: var(--ink);
  letter-spacing: -0.025em;
  line-height: 1.3;
  margin: 0;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

.wrap {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 18px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------------- 상단 브랜드 바 ---------------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 16px;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold-400);
  box-shadow: 0 0 0 4px rgba(227, 178, 60, 0.18);
}

.topcall {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.08);
  padding: 8px 13px;
  border-radius: 999px;
  letter-spacing: 0.01em;
}

.topbar--light .brand,
.topbar--light .topcall {
  color: var(--navy-800);
}

.topbar--light .topcall {
  border-color: var(--line);
  background: #fff;
}

/* ---------------- 히어로 ---------------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(120% 90% at 88% -10%, rgba(43, 106, 168, 0.85) 0%, rgba(43, 106, 168, 0) 58%),
    radial-gradient(90% 70% at 0% 0%, rgba(201, 162, 39, 0.16) 0%, rgba(201, 162, 39, 0) 60%),
    linear-gradient(165deg, #081b31 0%, #0c2340 52%, #123a66 100%);
  padding-bottom: 34px;
}

.hero--epit {
  background:
    radial-gradient(120% 90% at 88% -10%, rgba(178, 137, 55, 0.55) 0%, rgba(178, 137, 55, 0) 58%),
    radial-gradient(90% 70% at 0% 0%, rgba(227, 178, 60, 0.16) 0%, rgba(227, 178, 60, 0) 60%),
    linear-gradient(165deg, #16120e 0%, #2a2218 50%, #4a3620 100%);
}

.hero--hub {
  padding-bottom: 38px;
}

.hero__inner {
  position: relative;
  z-index: 2;
}

.skyline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 132px;
  z-index: 1;
  opacity: 0.5;
  pointer-events: none;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold-300);
}

.hero__eyebrow::before {
  content: "";
  width: 20px;
  height: 2px;
  background: var(--gold-400);
}

.hero h1 {
  color: #fff;
  font-size: clamp(27px, 8.2vw, 36px);
  font-weight: 800;
  margin-top: 10px;
  letter-spacing: -0.035em;
}

.hero h1 .accent {
  color: var(--gold-300);
}

.hero__lead {
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
}

.pill--gold {
  background: var(--gold-300);
  border-color: var(--gold-300);
  color: #2a2107;
}

/* 첫 화면 CTA */
.hero__cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 20px;
}

.hero__cta .btn {
  min-height: 56px;
  font-size: 16.5px;
}

.hero__note {
  margin-top: 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.55;
}

/* 히어로 안 핵심 수치 */
.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 22px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.hero-facts div {
  background: rgba(7, 26, 48, 0.55);
  padding: 12px 8px;
  text-align: center;
}

.hero-facts b {
  display: block;
  font-size: 16px;
  color: #fff;
  letter-spacing: -0.02em;
}

.hero-facts > div > span {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.66);
  line-height: 1.35;
}

.hero-facts b .unit {
  font-size: 11.5px;
  font-weight: 700;
  margin-left: 1px;
  color: rgba(255, 255, 255, 0.78);
}

/* ---------------- 버튼 ---------------- */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 50px;
  padding: 0 16px;
  border-radius: 14px;
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn--call {
  background: linear-gradient(180deg, var(--gold-300) 0%, var(--gold-500) 100%);
  color: #241c05;
  box-shadow: 0 8px 20px rgba(168, 128, 26, 0.28);
}

.btn--form {
  background: #fff;
  color: var(--navy-800);
  border-color: #fff;
}

.btn--form-outline {
  background: #fff;
  color: var(--navy-800);
  border-color: var(--navy-800);
}

.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.42);
}

.btn--wide {
  width: 100%;
}

.btn__ico {
  font-size: 17px;
  line-height: 1;
}

/* ---------------- 섹션 ---------------- */
.section {
  padding-top: 40px;
  scroll-margin-top: 18px;
}

.section__head {
  margin-bottom: 14px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--gold-600);
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 16px;
  height: 2px;
  background: var(--gold-500);
}

.section h2 {
  margin-top: 8px;
  font-size: 22px;
  font-weight: 800;
}

.section__desc {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}

/* ---------------- 카드 ---------------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.card + .card {
  margin-top: 10px;
}

.card--flush {
  padding: 0;
  overflow: hidden;
}

.card__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15.5px;
  font-weight: 800;
  color: var(--ink);
}

.card__title .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--gold-050);
  color: var(--gold-600);
  font-size: 11.5px;
  font-weight: 800;
}

.card p {
  margin-top: 8px;
  font-size: 13.8px;
  line-height: 1.65;
}

/* 핵심 포인트 리스트 */
.pointlist {
  list-style: none;
  margin-top: 4px;
}

.pointlist li {
  position: relative;
  padding: 9px 0 9px 24px;
  font-size: 14px;
  color: var(--body);
  border-top: 1px solid var(--line-soft);
}

.pointlist li:first-child {
  border-top: 0;
}

.pointlist li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 17px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--gold-400);
  transform: rotate(45deg);
}

.pointlist b {
  color: var(--ink);
}

/* ---------------- 수치 타일 ---------------- */
.tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
}

.tile {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 14px 13px;
}

.tile b {
  display: block;
  font-size: 19px;
  font-weight: 800;
  color: var(--navy-800);
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.tile b .unit {
  font-size: 13px;
  font-weight: 700;
  margin-left: 1px;
  color: var(--navy-700);
}

.tile > span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

/* ---------------- 표 ---------------- */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
}

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  white-space: nowrap;
}

table.data th,
table.data td {
  padding: 11px 10px;
  text-align: right;
  border-bottom: 1px solid var(--line-soft);
}

table.data th:first-child,
table.data td:first-child {
  text-align: left;
  padding-left: 13px;
}

table.data th:last-child,
table.data td:last-child {
  padding-right: 13px;
}

table.data thead th {
  background: #f5f7fb;
  color: var(--navy-800);
  font-size: 12px;
  font-weight: 800;
  border-bottom: 1px solid var(--line);
}

table.data tbody tr:last-child td {
  border-bottom: 0;
}

table.data td strong {
  color: var(--ink);
}

table.data tr.is-highlight td {
  background: #fdf8ea;
}

table.data.terms th:nth-child(3),
table.data.terms td:nth-child(3) {
  text-align: left;
  white-space: normal;
  padding-left: 12px;
}

table.data.terms th:nth-child(2),
table.data.terms td:nth-child(2) {
  padding-right: 16px;
}

table.data.terms th,
table.data.terms td {
  padding-top: 13px;
  padding-bottom: 13px;
}

/* ---------------- 타임라인 ---------------- */
.steps {
  list-style: none;
  margin-top: 6px;
}

.steps li {
  position: relative;
  padding: 0 0 16px 22px;
  border-left: 2px solid #ece3c8;
  margin-left: 5px;
}

.steps li:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}

.steps li::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold-500);
  box-shadow: 0 0 0 3px #fff;
}

.steps b {
  display: block;
  font-size: 14px;
  color: var(--ink);
}

.steps span {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--muted);
}

/* ---------------- 안내 박스 ---------------- */
.notice {
  display: flex;
  gap: 10px;
  padding: 14px 15px;
  border-radius: 14px;
  background: var(--gold-050);
  border: 1px solid #f0e2b8;
  font-size: 13px;
  line-height: 1.6;
  color: #6b5619;
}

.notice__ico {
  font-size: 15px;
  line-height: 1.35;
}

.notice strong {
  color: #55440f;
}

.notice--navy {
  background: #eef3fa;
  border-color: #d8e2f0;
  color: #2c4a72;
}

.notice--navy strong {
  color: var(--navy-800);
}

/* ---------------- 프로젝트 카드 (허브) ---------------- */
.project {
  display: block;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.project:active {
  transform: translateY(1px);
}

.project + .project {
  margin-top: 14px;
}

.project__thumb {
  position: relative;
  height: 104px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  overflow: hidden;
}

.project__thumb::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -60px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 0 24px rgba(255, 255, 255, 0.05);
}

.project__mark {
  position: relative;
  z-index: 1;
  font-size: 11px;
  letter-spacing: 0.22em;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.72);
}

.project__logo {
  position: relative;
  z-index: 1;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
}

.project__logo small {
  display: block;
  margin-top: 5px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.7);
}

.thumb--doan {
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(227, 178, 60, 0.28) 0%, rgba(227, 178, 60, 0) 55%),
    linear-gradient(120deg, #06203c 0%, #123a66 60%, #1c5488 100%);
}

.thumb--epit {
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(201, 162, 39, 0.36) 0%, rgba(201, 162, 39, 0) 55%),
    linear-gradient(120deg, #2a2118 0%, #4a3a22 60%, #6b5228 100%);
}

.thumb--osong {
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(120, 190, 255, 0.26) 0%, rgba(120, 190, 255, 0) 55%),
    linear-gradient(120deg, #0d2233 0%, #1d3d4f 60%, #2a5a6b 100%);
}

.project__body {
  padding: 16px 16px 14px;
}

.project__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--gold-600);
  background: var(--gold-050);
  border: 1px solid #f0e2b8;
  padding: 4px 9px;
  border-radius: 999px;
}

.project__status--calm {
  color: #3d5a7d;
  background: #eef3fa;
  border-color: #dae4f1;
}

.project__name {
  margin-top: 9px;
  font-size: 18.5px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.03em;
}

.project__loc {
  margin-top: 3px;
  font-size: 12.5px;
  color: var(--muted);
}

.project__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 11px;
}

.project__facts span {
  font-size: 11.5px;
  color: #33455f;
  background: #f4f6fa;
  border-radius: 7px;
  padding: 4px 8px;
  font-weight: 600;
}

.project__more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
  font-size: 13.5px;
  font-weight: 800;
  color: var(--navy-800);
}

.project__more .arrow {
  color: var(--gold-600);
  font-weight: 800;
}

/* ---------------- FAQ ---------------- */
.faq {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 18px;
}

.faq details {
  border-top: 1px solid var(--line-soft);
  padding: 14px 0;
}

.faq details:first-child {
  border-top: 0;
}

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.5;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: 0 0 auto;
  font-size: 18px;
  font-weight: 700;
  color: var(--gold-600);
  line-height: 1.2;
}

.faq details[open] summary::after {
  content: "−";
}

.faq .answer {
  margin-top: 9px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--body);
}

/* ---------------- 예약 / 상담 CTA 블록 ---------------- */
.cta-block {
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(227, 178, 60, 0.22) 0%, rgba(227, 178, 60, 0) 55%),
    linear-gradient(160deg, #0a1e37 0%, #123a66 100%);
  border-radius: 20px;
  padding: 22px 18px;
  color: #fff;
  overflow: hidden;
}

.cta-block h3 {
  color: #fff;
  font-size: 19px;
  font-weight: 800;
}

.cta-block p {
  margin-top: 7px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
}

.cta-block .btn {
  margin-top: 10px;
}

.cta-block .btn--form {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.cta-block .cta-sub {
  margin-top: 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
}

/* ---------------- 위치 / 지도 ---------------- */
.place {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--ink);
  font-weight: 700;
}

.place .pin {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gold-050);
  color: var(--gold-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.place small {
  display: block;
  margin-top: 3px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
}

.link-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}

.link-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy-800);
  text-decoration: none;
}

/* ---------------- 하단 고정 바 ---------------- */
.fixed-bar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  z-index: 60;
  width: 100%;
  max-width: 640px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 9px 12px calc(9px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(12, 35, 64, 0.06);
}

.fixed-bar .btn {
  min-height: 52px;
  font-size: 15px;
  border-radius: 13px;
}

/* ---------------- 푸터 ---------------- */
.footer {
  margin-top: 44px;
  padding: 24px 0 10px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  line-height: 1.75;
  color: #5f6b7d;
}

.footer strong {
  color: #4b5a72;
}

.footer .footer__brand {
  font-size: 14px;
  font-weight: 800;
  color: var(--navy-800);
  letter-spacing: -0.02em;
}

.footer .footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 10px;
}

.footer .footer__links a {
  color: #4b5a72;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid #cfd7e4;
}

/* ---------------- 유틸 ---------------- */
.mt-6 { margin-top: 6px; }
.mt-10 { margin-top: 10px; }
.mt-14 { margin-top: 14px; }
.mt-18 { margin-top: 18px; }
.mt-22 { margin-top: 22px; }
.text-center { text-align: center; }
.small { font-size: 12px; color: var(--muted); line-height: 1.6; }

@media (min-width: 700px) {
  body { font-size: 15.5px; }
  .hero h1 { font-size: 40px; }
  .hero__cta { grid-template-columns: 1fr 1fr; }
  .tiles { grid-template-columns: repeat(4, 1fr); }
  .link-row { grid-template-columns: repeat(3, 1fr); }
  .section { padding-top: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .project { transition: none; }
}
