/* inspired_by: iljo-lawfirm-brand (실 로고 팔레트 캐리오버 — navy / sunshine gold / ivory) */

:root {
  --ivory: #FAF7F1;
  --paper: #FFFFFF;
  --navy: #16294A;
  --navy-deep: #0E1B33;
  --gold: #F0A32B;
  --gold-deep: #D98A0F;
  --ink: #26303F;
  --muted: #6B7484;
  --line: #E8E2D6;
  --font-serif: 'Noto Serif KR', serif;
  --font-body: 'Pretendard', -apple-system, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  font-family: var(--font-body);
  background:
    radial-gradient(circle at 50% -80px, rgba(240, 163, 43, 0.18), transparent 420px),
    var(--ivory);
  color: var(--ink);
  line-height: 1.6;
  letter-spacing: -0.01em;
  min-height: 100vh;
  display: flex;
  justify-content: center;
}

.card {
  width: 100%;
  max-width: 460px;
  padding: 28px 20px 48px;
}

/* 헤더 */
.card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
}
.head-line { flex: 1; height: 1px; background: var(--line); }
.head-brand {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--gold-deep);
  white-space: nowrap;
}

/* 프로필 */
.profile { text-align: center; margin-bottom: 28px; }
.profile-photo {
  width: 148px;
  height: 148px;
  margin: 0 auto 18px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--paper);
  box-shadow: 0 0 0 2px var(--gold), 0 12px 28px rgba(22, 41, 74, 0.18);
}
.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
  display: block;
}
.profile-firm {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 600;
  color: var(--gold-deep);
  letter-spacing: 0.16em;
  margin-bottom: 4px;
}
.profile-name {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
}
.profile-name span { font-size: 20px; font-weight: 600; }
.profile-tag {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 8px;
}
.profile-fields {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
.profile-fields li {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--navy);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
}

/* 공통 블록 */
.block {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 20px;
  margin-bottom: 16px;
  box-shadow: 0 2px 10px rgba(22, 41, 74, 0.04);
}
.block-title {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--gold-deep);
  margin-bottom: 14px;
}
.block-note {
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
}

/* 버튼 */
.btn-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.btn-grid-3 { grid-template-columns: repeat(3, 1fr); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 48px;
  padding: 12px 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--ivory);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  border-color: var(--navy);
  color: #fff;
  box-shadow: 0 6px 16px rgba(22, 41, 74, 0.28);
}
.btn-primary .btn-ico { color: var(--gold); }
.btn-ico { font-size: 15px; line-height: 1; }
.btn-sm { min-height: 42px; font-size: 13px; padding: 10px 6px; }
.btn-wide { width: 100%; margin-top: 10px; }

/* ABOUT */
.about { display: flex; align-items: center; gap: 16px; }
.about-logo {
  width: 84px;
  height: 84px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid var(--line);
  flex-shrink: 0;
}
.about p { font-size: 13.5px; color: var(--ink); }
.about strong { color: var(--navy); font-family: var(--font-serif); }

/* VISIT */
.addr {
  font-style: normal;
  font-family: var(--font-serif);
  font-size: 15.5px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.addr-hint { font-size: 12.5px; color: var(--muted); margin-bottom: 14px; }

/* LIBRARY */
.link-list { display: flex; flex-direction: column; gap: 8px; }
.link-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--ivory);
  text-decoration: none;
  transition: transform 0.15s var(--ease);
}
.link-row:active { transform: scale(0.98); }
.link-label { font-size: 14px; font-weight: 700; color: var(--navy); }
.link-desc { font-size: 12px; color: var(--muted); }

/* 푸터 */
.card-foot {
  text-align: center;
  margin-top: 26px;
  font-size: 12px;
  color: var(--muted);
}
.foot-tel { margin-top: 4px; letter-spacing: 0.06em; font-weight: 600; color: var(--navy); }

/* 토스트 */
.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%) translateY(16px);
  background: var(--navy-deep);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  z-index: 999;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* 반응형 4단 — 카드형이라 모바일 우선, 상위 breakpoint는 여백만 조정 */
@media (max-width: 1100px) { .card { max-width: 460px; } }
@media (max-width: 960px) { .card { padding-top: 24px; } }
@media (max-width: 600px) {
  .card { padding: 20px 16px 40px; }
  .profile-name { font-size: 28px; }
}
@media (max-width: 360px) {
  .profile-photo { width: 128px; height: 128px; }
  .profile-name { font-size: 25px; }
  .btn { font-size: 13px; }
  .btn-grid-3 { grid-template-columns: 1fr 1fr; }
}

@media print {
  .btn, .toast { box-shadow: none; }
}
