/* ===== 기본 설정 ===== */
:root {
  --navy: #16305c;
  --navy-dark: #0f2342;
  --blue: #2c6fb3;
  --blue-light: #eaf2fb;
  --gold: #c9a24b;
  --text: #2a2f38;
  --text-soft: #5c6572;
  --line: #e4e8ee;
  --bg-soft: #f6f8fb;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(22, 48, 92, 0.08);
  --max: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Pretendard", "Malgun Gothic", "맑은 고딕", "Apple SD Gothic Neo", sans-serif;
  color: var(--text);
  line-height: 1.7;
  word-break: keep-all;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

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

.section { padding: 84px 0; }
.section-soft { background: var(--bg-soft); }

.eyebrow {
  display: inline-block;
  color: var(--blue);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  margin-bottom: 14px;
}

h1, h2, h3 { color: var(--navy); line-height: 1.3; letter-spacing: -0.01em; }
.section h2 { font-size: 2rem; margin-bottom: 16px; }
.section .lead { color: var(--text-soft); font-size: 1.05rem; max-width: 640px; }

/* ===== 헤더 ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; color: var(--navy); }
.logo .mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: #fff; display: grid; place-items: center; font-size: 1rem; font-weight: 800;
}
.site-header .logo img { height: 40px; width: auto; display: block; }
.nav-menu { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-menu a { color: var(--text-soft); font-weight: 600; font-size: 0.98rem; transition: color .2s; }
.nav-menu a:hover, .nav-menu a.active { color: var(--navy); }
.nav-cta {
  background: var(--navy); color: #fff !important; padding: 10px 20px; border-radius: 999px;
  font-size: 0.92rem; transition: background .2s;
}
.nav-cta:hover { background: var(--blue); }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; color: var(--navy); cursor: pointer; }

/* ===== 히어로 ===== */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 60%, #0a1a33 100%);
  color: #fff; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -120px; top: -120px;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,162,75,0.25), transparent 70%);
  z-index: 1;
}
/* 배경 이미지 (은은한 Ken Burns 움직임) */
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: url('images/hero-city.jpg') center center / cover no-repeat;
  animation: heroKenBurns 6s ease-in-out infinite alternate;
  will-change: transform;
}
/* 네이비 반투명 오버레이 */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(120deg, rgba(15,35,66,0.86) 0%, rgba(15,35,66,0.60) 50%, rgba(10,26,51,0.50) 100%);
}
@keyframes heroKenBurns {
  from { transform: scale(1.05); }
  to   { transform: scale(1.18) translate(-3%, -2%); }
}
.hero-inner { padding: 96px 0 104px; position: relative; z-index: 2; max-width: 720px; }
.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center;
  padding: 52px 24px 0;
}
.hero-photo { text-align: right; align-self: end; }
.hero-photo-box {
  width: 100%; max-width: 300px; margin-left: auto;
  aspect-ratio: 4 / 5; overflow: hidden; position: relative;
}
.hero-photo-box img {
  width: 100%; height: auto; display: block;
}
.hero .eyebrow { color: var(--gold); }
.hero h1 { color: #fff; font-size: 2.9rem; margin-bottom: 20px; }
.hero p { color: #d6e0ef; font-size: 1.15rem; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* 페이지 상단 배너(서브페이지) */
.page-hero {
  background: linear-gradient(160deg, var(--navy), var(--navy-dark));
  color: #fff; padding: 60px 0;
}
.page-hero h1 { color: #fff; font-size: 2.3rem; margin-bottom: 10px; }
.page-hero p { color: #cdd8e8; font-size: 1.05rem; }
.breadcrumb { color: var(--gold); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.12em; margin-bottom: 14px; }

/* ===== 버튼 ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: 1rem;
  cursor: pointer; border: 0; transition: transform .15s, background .2s, box-shadow .2s;
}
.btn-primary { background: var(--gold); color: #23324d; }
.btn-primary:hover { background: #d9b666; transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.35); }
.btn-ghost:hover { background: rgba(255,255,255,0.2); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--blue); transform: translateY(-2px); }

/* ===== 카드 그리드 ===== */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(22,48,92,0.14); }
.card .ico {
  width: 52px; height: 52px; border-radius: 12px; background: var(--blue-light);
  color: var(--blue); display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 18px;
}
.card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card p { color: var(--text-soft); font-size: 0.97rem; }

/* 통계 */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; }
.stat .num { font-size: 2.4rem; font-weight: 800; color: var(--navy); }
.stat .label { color: var(--text-soft); font-size: 0.95rem; margin-top: 4px; }

/* 특징 리스트 */
.feature-list { list-style: none; display: grid; gap: 16px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; }
.feature-list .check {
  flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%;
  background: var(--blue-light); color: var(--blue); display: grid; place-items: center;
  font-size: 0.85rem; font-weight: 800; margin-top: 3px;
}
.feature-list strong { color: var(--navy); }
.feature-list span { color: var(--text-soft); }

/* 2열 콘텐츠 */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.greeting-cols { grid-template-columns: 300px 1fr; }
.panel {
  background: linear-gradient(160deg, var(--navy), var(--navy-dark));
  color: #fff; border-radius: 18px; padding: 40px; box-shadow: var(--shadow);
}
.panel h3 { color: #fff; }
.panel ul { list-style: none; margin-top: 18px; display: grid; gap: 12px; }
.panel li { display: flex; gap: 10px; color: #dbe4f1; }
.panel li::before { content: "•"; color: var(--gold); font-weight: 800; }

/* 프로세스 */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 28px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.step .n {
  width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff;
  display: grid; place-items: center; font-weight: 800; margin-bottom: 16px;
}
.step h4 { color: var(--navy); margin-bottom: 8px; }
.step p { color: var(--text-soft); font-size: 0.92rem; }

/* CTA 밴드 */
.cta-band {
  background: linear-gradient(120deg, var(--navy), var(--blue));
  color: #fff; border-radius: 20px; padding: 54px 48px; text-align: center;
}
.cta-band h2 { color: #fff; font-size: 1.9rem; margin-bottom: 12px; word-break: keep-all; text-wrap: balance; }
.cta-band p { color: #dbe6f4; margin-bottom: 26px; word-break: keep-all; text-wrap: balance; }
.cta-band.cta-photo {
  background-image: linear-gradient(rgba(18,38,72,0.64), rgba(18,38,72,0.64)), url('images/logowall-cta.jpg');
  background-size: cover;
  background-position: center 45%;   /* ▼PC 배경 세로위치: 숫자 작게=바닥 덜 보임 / 크게=바닥 더 보임 */
  background-repeat: no-repeat;
  overflow: hidden;
  /* 어둡기: 위 rgba(...,0.64) 두 개의 0.64를 바꾸면 됨(크게=더 어둡게) */
}
.cta-photo h2 { text-shadow: 0 2px 14px rgba(0,0,0,0.5); }
.cta-photo p { color: #eef2f8; text-shadow: 0 1px 10px rgba(0,0,0,0.5); }


/* 상담·문의 상단 2열 */
.contact-hero-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  align-items: center;
  gap: 60px;
}

.contact-hero-photo {
  border-radius: 18px;
  overflow: hidden;
}

.contact-hero-photo img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center 65%;
  display: block;
}


/* 연락처 */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.info-item { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.info-item .ico { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 12px; background: var(--blue-light); color: var(--blue); display: grid; place-items: center; font-size: 1.2rem; }
.info-item .label { color: var(--text-soft); font-size: 0.85rem; }
.info-item .value { color: var(--navy); font-weight: 700; font-size: 1.05rem; }

.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-weight: 700; color: var(--navy); margin-bottom: 7px; font-size: 0.95rem; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: 1rem; color: var(--text); background: #fff;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-light);
}
.form-note { color: var(--text-soft); font-size: 0.85rem; margin-top: 10px; }

/* 지도 자리 */
.map-box {
  background: var(--bg-soft); border: 1px dashed var(--line); border-radius: var(--radius);
  min-height: 260px; display: grid; place-items: center; color: var(--text-soft); text-align: center; padding: 20px;
}

/* 프로필 */
.profile { display: grid; grid-template-columns: 220px 1fr; gap: 30px; align-items: center; }
.avatar {
  width: 220px; height: 280px; border-radius: 18px; overflow: hidden;
  background: linear-gradient(160deg, var(--blue-light), #dbe7f6);
  display: grid; place-items: center; font-size: 3rem; color: var(--blue);
  box-shadow: var(--shadow);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }

/* 사진 프레임 / 사무실 갤러리 */
.photo-frame { border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); background: var(--bg-soft); }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.office-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 34px; }
.office-grid figure { margin: 0; }
.office-grid .photo-frame { aspect-ratio: 3 / 2; }
.office-grid figcaption { margin-top: 12px; color: var(--text-soft); font-size: 0.95rem; text-align: center; }
.contact-photo { margin-top: 24px; }
.contact-photo .photo-frame { aspect-ratio: 3 / 2; }
.contact-photo figcaption { margin-top: 10px; color: var(--text-soft); font-size: 0.9rem; }
@media (max-width: 700px) { .office-grid { grid-template-columns: 1fr; } }

/* 경력 타임라인 */
.timeline { position: relative; padding-left: 8px; }
.timeline::before {
  content: ""; position: absolute; left: 15px; top: 8px; bottom: 8px;
  width: 2px; background: var(--line);
}
.tl-item { position: relative; padding: 0 0 34px 46px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute; left: 8px; top: 4px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--navy); border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--navy);
}
.tl-dot-now { background: var(--gold); box-shadow: 0 0 0 2px var(--gold); }
.tl-date { color: var(--blue); font-weight: 700; font-size: 0.85rem; margin-bottom: 3px; letter-spacing: 0.02em; }
.tl-item h3 { font-size: 1.15rem; margin-bottom: 6px; }
.tl-role { color: var(--blue); font-size: 0.92rem; font-weight: 600; margin-left: 6px; }
.tl-item p { color: var(--text-soft); font-size: 0.97rem; }

/* 대외 활동 배지 */
.act-date {
  display: inline-block; background: var(--blue-light); color: var(--blue);
  font-weight: 700; font-size: 0.8rem; padding: 4px 12px; border-radius: 999px; margin-bottom: 12px;
}
.act-card h3 { font-size: 1.12rem; margin-bottom: 6px; }
.act-card p { color: var(--text-soft); font-size: 0.95rem; }

/* FAQ 아코디언 */
.faq { max-width: 760px; margin: 36px auto 0; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  margin-bottom: 12px; overflow: hidden; box-shadow: var(--shadow);
}
.faq summary {
  padding: 18px 22px; font-weight: 700; color: var(--navy); cursor: pointer;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--blue); font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq .faq-a { padding: 16px 22px; color: var(--text-soft); font-size: 0.97rem; line-height: 1.75; }

/* 폼 약관 동의 */
.form-consent { display: flex; align-items: flex-start; gap: 9px; margin: 4px 0 18px; }
.form-consent input { width: auto; margin-top: 3px; flex: 0 0 auto; }
.form-consent label { font-weight: 400; font-size: 0.9rem; color: var(--text-soft); line-height: 1.6; }
.hidden-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ===== 푸터 ===== */
.site-footer { background: var(--navy-dark); color: #b9c4d6; padding: 56px 0 30px; font-size: 0.92rem; }
.footer-top { display: grid; grid-template-columns: 1fr auto; gap: 48px; margin-bottom: 34px; }
.site-footer h4 { color: #fff; margin-bottom: 16px; font-size: 1rem; }
.site-footer .logo { color: #fff; margin-bottom: 14px; font-size: 1.05rem; white-space: nowrap; }
.site-footer .logo img { width: 40px; height: 40px; border-radius: 8px; display: block; }
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: #8a99b0; font-size: 0.85rem; }
.footer-bottom a { color: #b9c5d6; text-decoration: none; }
.footer-bottom a:hover { color: #fff; text-decoration: underline; }

/* ===== 개인정보처리방침 등 법적 고지 페이지 ===== */
.legal { max-width: 860px; }
.legal-intro { color: var(--text-soft); line-height: 1.8; margin-bottom: 34px; padding-bottom: 26px; border-bottom: 1px solid var(--line, #e5e9f0); }
.legal h2 { font-size: 1.18rem; color: var(--navy); margin: 34px 0 12px; }
.legal p { line-height: 1.8; color: var(--text-soft); margin-bottom: 10px; }
.legal ul { margin: 0 0 10px; padding-left: 20px; }
.legal li { line-height: 1.8; color: var(--text-soft); margin-bottom: 6px; }
.legal strong { color: var(--navy); font-weight: 700; }
.legal-note { font-size: 0.9rem; color: var(--text-soft); background: var(--bg-soft); border-radius: 8px; padding: 14px 16px; margin-top: 12px; }
.legal-date { margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line, #e5e9f0); font-weight: 700; color: var(--navy); }
.legal-table-wrap { overflow-x: auto; margin: 14px 0; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 640px; }
.legal-table th, .legal-table td { border: 1px solid var(--line, #e5e9f0); padding: 10px 12px; text-align: left; vertical-align: top; line-height: 1.6; }
.legal-table th { background: var(--bg-soft); color: var(--navy); font-weight: 700; white-space: nowrap; }
.legal-table td { color: var(--text-soft); }

/* ===== 실시간 상담 채널 플로팅 버튼 ===== */
#chat-widget { position: fixed; right: 22px; bottom: 22px; z-index: 900; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
#chat-panel { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
#chat-widget.open #chat-panel { opacity: 1; transform: translateY(0); pointer-events: auto; }
.chat-opt { display: inline-flex; align-items: center; gap: 9px; padding: 12px 18px; border-radius: 999px; font-weight: 700; font-size: 0.94rem; text-decoration: none; white-space: nowrap; box-shadow: 0 6px 20px rgba(0,0,0,0.18); transition: transform .15s ease; }
.chat-opt:hover { transform: translateY(-2px); }
.chat-opt.kakao { background: #FEE500; color: #3a1d1d; }
.chat-opt.naver { background: #03C75A; color: #fff; }
.chat-ico { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; font-size: 0.8rem; font-weight: 800; }
.chat-opt.naver .chat-ico { background: #fff; color: #03C75A; }
.chat-launch { display: inline-flex; align-items: center; gap: 9px; height: 58px; padding: 0 24px 0 20px; border-radius: 999px; background: var(--navy); color: #fff; border: 0; cursor: pointer; font-weight: 800; font-size: 1rem; box-shadow: 0 8px 24px rgba(22,48,92,0.38); transition: transform .15s ease, background .2s ease; animation: chatPulse 2.2s ease-out infinite; }
.chat-launch:hover { transform: translateY(-2px); background: var(--navy-dark); }
.chat-launch-ico { font-size: 1.45rem; line-height: 1; }
.chat-launch-label { white-space: nowrap; }
#chat-widget.open .chat-launch { animation: none; }
@keyframes chatPulse {
  0%   { box-shadow: 0 8px 24px rgba(22,48,92,0.38), 0 0 0 0 rgba(201,162,75,0.55); }
  70%  { box-shadow: 0 8px 24px rgba(22,48,92,0.38), 0 0 0 16px rgba(201,162,75,0); }
  100% { box-shadow: 0 8px 24px rgba(22,48,92,0.38), 0 0 0 0 rgba(201,162,75,0); }
}
@media (prefers-reduced-motion: reduce) { .chat-launch { animation: none; } }

/* ===== 안내 토스트 (전화번호 복사 등) ===== */
#toast { position: fixed; top: 76px; left: 50%; transform: translateX(-50%) translateY(-6px); background: var(--navy); color: #fff; padding: 11px 18px; border-radius: 999px; font-weight: 700; font-size: 0.95rem; box-shadow: 0 10px 28px rgba(0,0,0,0.28); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; z-index: 1000; white-space: nowrap; max-width: 90vw; }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.br-m { display: none; }

/* ===== 반응형 ===== */
@media (max-width: 900px) {
  .grid-3, .grid-4, .stats, .steps { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 2.3rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 30px; padding: 60px 24px 0; }
  .hero-photo { text-align: right; }
  .hero-photo-box { max-width: 260px; margin: 0 0 0 auto; }
  .contact-hero-inner { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 620px) {
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
  #chat-widget { right: 16px; bottom: 16px; }
  .chat-launch { height: 62px; width: 62px; padding: 0; justify-content: center; }
  .chat-launch-ico { font-size: 1.65rem; }
  .chat-launch-label { display: none; }
  .nav-menu {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 0; display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-menu li { width: 100%; }
  .nav-menu a { display: block; padding: 14px 24px; }
  .nav-toggle { display: block; }
  .grid-3, .grid-4, .stats, .steps, .grid-2, .profile { grid-template-columns: 1fr; }
  .avatar { margin: 0 auto; }
  .section { padding: 60px 0; }
  .hero-inner { padding: 70px 0; }
  .cta-band { padding: 40px 24px; }
  .cta-band h2 { font-size: 1.55rem; }
  .br-m { display: inline; }
}
