/* 이룸 행정사사무소 — 디자인 v2 「사람이 보이는 사무소」
   상담 시트·신청서·체크리스트 같은 기능 부품은 기존 스타일(../styles.css)을 쓰고,
   화면 구성과 생김새는 여기서 새로 정합니다.
   차분한 신뢰 블루 · 넉넉한 여백 · 부드러운 모서리 · 휴대폰 하단 고정 버튼 · PC 2단 */
@import url("base.css?v=202610251505");

:root {
  --ink: #1F4E8C;
  --ink-strong: #173D70;
  --ink-soft: #EAF1FA;
  --ink-deep: #14325C;
  --open: #17885A;

  --bg-page: #F5F8FC;
  --bg-surface: #FFFFFF;
  --bg-sunken: #F1F5FA;

  --text-strong: #0F1E33;
  --text-body: #2A3850;
  --text-muted: #5D6B80;

  --line: rgba(31, 78, 140, 0.10);
  --line-strong: rgba(31, 78, 140, 0.20);

  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 12px;

  --shadow-soft: 0 1px 2px rgba(15,30,51,.04), 0 8px 24px -12px rgba(15,30,51,.12);
  --bar-h: 76px;
}

.v2 { padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom)); }
.v2 .shell { max-width: none; }
.v2 .page { max-width: 560px; margin: 0 auto; padding: 8px 20px 32px; }
.v2 .page > * + * { margin-top: 24px; }
.v2 .page > .block { margin-top: 56px; }

/* 상단 바 */
.v2 .topbar { gap: 12px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
/* 행정사 공식 로고 */
.brand-mark { width: 36px; height: auto; flex: 0 0 36px; display: block; }
.brand-name { font-size: 15px; font-weight: 700; color: var(--text-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-right { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.v2 .lang-toggle { border-color: var(--line); }
.v2 .lang-toggle button { padding: 0 10px; min-height: 32px; font-size: 12.5px; }
@media (max-width: 400px) { .brand-name { display: none; } }

/* 첫 화면 */
.hero { display: flex; flex-direction: column; padding-top: 16px; }
.hero-text { display: contents; }
.hero .status { order: 1; align-self: flex-start; padding: 7px 12px 7px 10px; border-radius: 999px; background: var(--bg-surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; }
.hero-headline {
  order: 2; margin-top: 18px;
  font-size: 30px; line-height: 1.32; font-weight: 800; letter-spacing: -.035em; color: var(--text-strong);
  text-wrap: balance;
}
.hero-bio { order: 3; margin-top: 14px; font-size: 16px; line-height: 1.7; color: var(--text-body); font-weight: 500; text-wrap: pretty; }
.person { order: 4; margin-top: 24px; }
.hero-actions { order: 5; display: grid; gap: 8px; margin-top: 16px; }

/* 대표 사진 카드 — 휴대폰에서는 가로형 */
.person {
  display: flex; align-items: center; gap: 16px;
  padding: 14px; border-radius: var(--r-lg); background: var(--bg-surface); box-shadow: var(--shadow-soft);
}
.person-photo {
  width: 84px; height: 84px; flex: 0 0 84px; border-radius: 20px; overflow: hidden;
  background: linear-gradient(155deg, #DCE7F6 0%, #F2F6FC 100%);
  display: flex; align-items: center; justify-content: center;
}
.person-photo img, .greet-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
#hero-avatar { display: none !important; } /* v1 명함용 자리 — v2 에서는 쓰지 않음 */
.monogram { font-size: 38px; font-weight: 800; color: var(--ink); opacity: .85; letter-spacing: -.02em; }
.person-cap { display: flex; flex-direction: column; min-width: 0; }
.person-role { font-size: 13px; font-weight: 600; color: var(--ink); }
.person-name { font-size: 22px; font-weight: 800; color: var(--text-strong); letter-spacing: -.02em; margin-top: 2px; }
.person-sub { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

/* 믿을 근거 */
.facts { background: var(--bg-surface); border-radius: var(--r-lg); box-shadow: var(--shadow-soft); padding: 4px 18px; }
.fact { display: flex; align-items: center; gap: 14px; padding: 14px 0; }
.fact + .fact { border-top: 1px solid var(--line); }
.fact-icon { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); display: flex; align-items: center; justify-content: center; }
.fact-k { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-muted); }
.fact-v { display: block; font-size: 15px; font-weight: 700; color: var(--text-strong); margin-top: 1px; line-height: 1.45; }

/* 섹션 머리 */
.block-head { margin: 0 2px 16px; }
.block-title { font-size: 22px; font-weight: 800; letter-spacing: -.03em; color: var(--text-strong); line-height: 1.35; }
.block-title .count { font-size: 16px; font-weight: 600; color: var(--text-muted); margin-left: 2px; }
.block-sub { font-size: 14px; line-height: 1.6; color: var(--text-muted); margin-top: 6px; }

/* 업무 분야 — v1 과 같은 한 줄 목록 (아이콘 · 이름 · 설명 · 화살표) */
.v2 .list { border: 0; box-shadow: var(--shadow-soft); }
.v2 .list .row { padding: 16px 18px; }

/* 대표 인사 — 페이지에서 가장 진한 한 곳 */
.greet-card {
  background: var(--ink-deep); color: #E6EEF9; border-radius: 26px; padding: 26px 22px 24px;
  box-shadow: 0 18px 40px -22px rgba(20,50,92,.6);
}
.greet-head { display: flex; align-items: center; gap: 14px; }
.greet-photo {
  width: 56px; height: 56px; flex: 0 0 56px; border-radius: 999px; overflow: hidden;
  background: rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center;
}
.greet-photo .monogram { font-size: 24px; color: #fff; opacity: 1; }
.greet .block-title { color: #fff; font-size: 19px; }
.greet-who { font-size: 13px; color: rgba(230,238,249,.72); margin-top: 2px; }
.greet-text { margin-top: 18px; font-size: 15.5px; line-height: 1.85; font-weight: 500; text-wrap: pretty; }
.creds { margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14); display: grid; gap: 10px; }
.creds li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; line-height: 1.5; font-weight: 600; color: #fff; }
.cred-check { width: 22px; height: 22px; flex: 0 0 22px; border-radius: 999px; background: rgba(255,255,255,.14); display: flex; align-items: center; justify-content: center; color: #9CC2F5; margin-top: -1px; }

/* 진행 절차 */
.v2 .steps { padding: 0; display: grid; gap: 10px; }
.v2 .step {
  grid-template-columns: 36px 1fr; gap: 14px; padding: 18px 18px;
  background: var(--bg-surface); border-radius: var(--r-lg); box-shadow: var(--shadow-soft);
}
.v2 .step::before { display: none; }
.v2 .step-num { width: 36px; height: 36px; border: 0; background: var(--ink-soft); color: var(--ink); font-size: 15px; }
.v2 .step:first-child .step-num { background: var(--ink); color: #fff; }
.v2 .step-title { font-size: 16px; line-height: 1.4; margin-top: 6px; }
.v2 .step-text { margin-top: 4px; font-size: 14px; }

/* 자주 묻는 질문 — 질문마다 따로 */
.faqs { display: grid; gap: 8px; }
.v2 .faq { background: var(--bg-surface); border-radius: var(--r-md); box-shadow: var(--shadow-soft); overflow: hidden; }
.v2 .faq summary { padding: 18px 18px; font-size: 15.5px; }
.v2 .faq[open] summary { color: var(--ink); }
.v2 .faq-mark::before, .v2 .faq-mark::after { background: var(--ink); }
.v2 .faq p { padding: 0 18px 20px; color: var(--text-body); }

/* 사무실 */
.office { display: grid; gap: 10px; }
.v2 .office-gallery { gap: 8px; }
.v2 .office-thumb { border-radius: var(--r-md); }
.v2 .office-thumb.is-empty { border: 0; background: var(--bg-surface); box-shadow: inset 0 0 0 1px var(--line); }
.v2 .office-direction { margin-top: 0; border: 0; border-radius: var(--r-lg); box-shadow: var(--shadow-soft); padding: 18px; gap: 14px; }
.office-pin { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 14px; background: var(--ink-soft); display: flex; align-items: center; justify-content: center; font-size: 20px; }

/* 연결 */
.links { background: var(--bg-surface); border-radius: var(--r-lg); box-shadow: var(--shadow-soft); overflow: hidden; }
.links > * + * { border-top: 1px solid var(--line); }

/* 푸터 */
.v2 .footer { margin-top: 56px; border-top: 1px solid var(--line-strong); }
.v2 .footer p:first-child { display: flex; align-items: center; gap: 8px; }
.v2 .footer p:first-child::before { content: ''; width: 22px; height: 22px; flex: 0 0 22px; background: url(image/logo.svg) center / contain no-repeat; }

/* 버튼 */
.v2 .cta { border-radius: var(--r-md); min-height: 56px; }
.v2 .cta.is-secondary { border-color: var(--line-strong); }

/* 휴대폰 하단 고정 버튼 */
.actionbar {
  position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); z-index: 30;
  width: 100%; max-width: 560px;
  display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 6px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.ab-btn {
  min-height: 54px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-size: 12px; font-weight: 700; color: var(--text-strong);
}
.ab-btn span[data-icon] { display: flex; color: var(--ink); }
.ab-btn span[data-icon] svg { width: 20px; height: 20px; }
.ab-btn:active { background: var(--bg-sunken); }
.ab-btn.is-primary { flex-direction: row; background: var(--ink); color: #fff; font-size: 16px; }
.ab-btn.is-primary:active { background: var(--ink-strong); }
#page-detail:not([hidden]) ~ .actionbar { display: none; }
.v2 .toast { bottom: calc(var(--bar-h) + 12px + env(safe-area-inset-bottom)); }

/* 상세 화면 */
.v2 .detail-hero { background: var(--bg-surface); box-shadow: var(--shadow-soft); border-radius: 26px; padding: 28px 22px; }
.v2 .detail-icon-wrap { background: var(--ink-soft); border-radius: 16px; width: 60px; height: 60px; font-size: 30px; }
.v2 .detail-title { font-family: var(--font-sans); font-weight: 800; letter-spacing: -.035em; font-size: 30px; }
.v2 .section-title { font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.v2 .scope-list, .v2 .checklist { border: 0; box-shadow: var(--shadow-soft); }
.v2 .scope-list li::before { border-radius: 999px; }
.v2 .detail-grid > .block + .block { margin-top: 40px; }
.v2 #page-detail > .block, .v2 #page-detail > .detail-grid { margin-top: 32px; }

/* 시트 */
.v2 .sheet { max-width: 560px; }
.v2 .chip span { border-color: var(--line-strong); }

/* ── PC 화면 ─────────────────────────────────────────────── */
@media (min-width: 960px) {
  .v2 { padding-bottom: 0; }
  .actionbar { display: none; }
  .v2 .toast { bottom: 28px; }
  .v2 .shell { padding-top: 0; }
  .v2 .page { max-width: 1120px; padding: 12px 48px 56px; }
  .v2 .page > .block { margin-top: 96px; }
  .v2 .topbar { min-height: 76px; }

  .hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 72px; align-items: center; padding-top: 48px; }
  .hero-text { display: block; }
  .hero .status { display: inline-flex; }
  .hero-headline { font-size: 52px; line-height: 1.22; margin-top: 22px; }
  .hero-bio { font-size: 18px; margin-top: 20px; max-width: 30em; }
  .hero-actions { grid-template-columns: auto auto; justify-content: start; gap: 10px; margin-top: 32px; }
  .hero-actions .cta { padding: 0 28px; }

  .person { flex-direction: column; align-items: stretch; padding: 0; margin-top: 0; background: none; box-shadow: none; position: relative; }
  .person-photo { width: 100%; height: auto; aspect-ratio: 4 / 5; flex: none; border-radius: 32px; box-shadow: var(--shadow-soft); }
  .monogram { font-size: 140px; opacity: .55; }
  .person-cap {
    position: absolute; left: -28px; bottom: 32px; padding: 18px 22px; border-radius: 20px;
    background: var(--bg-surface); box-shadow: 0 16px 40px -16px rgba(15,30,51,.28);
  }

  .facts { display: grid; grid-template-columns: repeat(3, 1fr); padding: 6px 8px; margin-top: 56px !important; }
  .fact { padding: 18px 20px; }
  .fact + .fact { border-top: 0; border-left: 1px solid var(--line); }

  .block-head { margin-bottom: 24px; }
  .block-title { font-size: 30px; }
  .block-sub { font-size: 15px; }

  .v2 .list .row { padding: 20px 24px; gap: 18px; }
  .v2 .list .spec-icon { width: 48px; height: 48px; flex-basis: 48px; border-radius: 14px; font-size: 24px; }
  .v2 .list .row-title { font-size: 17px; }
  .v2 .list .row-sub { font-size: 14px; }

  .greet-card { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px 56px; padding: 44px 48px; border-radius: 32px; }
  .greet-head { grid-column: 1; }
  .greet-text { grid-column: 1; margin-top: 0; font-size: 17px; }
  .creds { grid-column: 2; grid-row: 1 / span 2; align-self: center; margin-top: 0; padding-top: 0; border-top: 0; padding-left: 40px; border-left: 1px solid rgba(255,255,255,.14); gap: 16px; }
  .greet .block-title { font-size: 22px; }

  .v2 .steps { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .v2 .step { grid-template-columns: 1fr; gap: 16px; padding: 24px 22px; }
  .v2 .step-title { margin-top: 0; }

  .office { grid-template-columns: 1.4fr 1fr; gap: 14px; align-items: stretch; }
  /* 찾아오시는 길 — 사진 칸 높이에 맞춘 세로 카드: 위에 아이콘·화살표, 아래에 제목·주소 */
  .v2 .office-direction {
    display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr;
    align-items: start; gap: 0; padding: 26px 26px 28px;
    transition: box-shadow .2s;
  }
  .v2 .office-direction .office-pin { grid-column: 1; grid-row: 1; width: 52px; height: 52px; border-radius: 16px; font-size: 24px; }
  .v2 .office-direction > span:last-child {
    grid-column: 2; grid-row: 1; width: 40px; height: 40px; border-radius: 999px;
    background: var(--ink-soft); color: var(--ink); align-items: center; justify-content: center;
  }
  .v2 .office-direction-text { grid-column: 1 / -1; grid-row: 2; align-self: end; margin-top: 24px; }
  .v2 .office-direction-title { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
  .v2 .office-direction-addr { font-size: 15px; margin-top: 6px; color: var(--text-body); }
  @media (hover: hover) { .v2 .office-direction:hover { box-shadow: 0 0 0 1.5px var(--ink), var(--shadow-soft); } }
  .links { display: grid; grid-template-columns: repeat(3, 1fr); }
  .links > * + * { border-top: 0; border-left: 1px solid var(--line); }

  .v2 #page-detail { max-width: 960px; }
  .detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
  .v2 .detail-grid > .block + .block { margin-top: 0; }
  .v2 #consult-btn { max-width: 360px; }
}

/* 찾아오시는 길 (하단 고정 버튼 없음) */
.v2.is-sub { padding-bottom: 0; }
.v2.is-sub .toast { bottom: calc(24px + env(safe-area-inset-bottom)); }
.v2 .map-card, .v2 .kv { border: 0; box-shadow: var(--shadow-soft); }
