/* ============================================================
   이사마당 — 공통 스타일 (네비게이션 + 토큰 + 푸터)
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --accent: #3B6FE8;
  --accent-soft: #EEF3FF;
  --accent-mid: #C7D8FB;
  --accent-deep: #2F5FD6;
  --ink: #111827;
  --ink2: #374151;
  --ink3: #4B5563;
  --gray: #9CA3AF;
  --gray-light: #F3F4F6;
  --border: #E5E7EB;
  --border-soft: #EEF0F3;
  --topbar-bg: #2563EB;
  --warn: #F59E0B;
  --warn-soft: #FEF3C7;
  --danger: #EF4444;
  --danger-soft: #FEE2E2;
  --ok: #16A34A;
  --ok-soft: #DCFCE7;
  --bg: #F9FAFB;
  --white: #FFFFFF;
  --radius: 14px;
  --radius-lg: 18px;
  --shadow: 0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.06);
  --shadow-soft: 0 1px 2px rgba(17,24,39,.04), 0 2px 8px rgba(17,24,39,.04);
  --font: 'Noto Sans KR', -apple-system, sans-serif;
}
html { font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--white);
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

/* ── Top secondary bar ── */
.topbar-secondary { width: 100%; background: var(--topbar-bg); color: #fff; font-size: 11px; font-weight: 500; }
.topbar-secondary-inner { max-width: 1200px; margin: 0 auto; padding: 8px 16px; display: flex; justify-content: flex-end; align-items: center; gap: 14px; overflow-x: auto; scrollbar-width: none; }
.topbar-secondary-inner::-webkit-scrollbar { display: none; }
.topbar-secondary a { color: rgba(255,255,255,.92); text-decoration: none; white-space: nowrap; transition: color .15s; letter-spacing: -0.1px; }
.topbar-secondary a:hover, .topbar-secondary a.active { color: #fff; }
.topbar-secondary a.pill { background: rgba(255,255,255,.18); padding: 3px 9px; border-radius: 999px; font-weight: 700; }
.topbar-secondary a.pill:hover, .topbar-secondary a.pill.active { background: rgba(255,255,255,.30); }

/* ── Topbar ── */
.topbar { width: 100%; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--border-soft); padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 10; backdrop-filter: blur(8px); }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); }
.brand img { height: 30px; width: auto; }
.brand-mark { width: 28px; height: 28px; border-radius: 8px; background: var(--accent); display: flex; align-items: center; justify-content: center; color: white; font-weight: 800; font-size: 14px; letter-spacing: -0.5px; }
.brand-name { font-size: 15px; font-weight: 800; letter-spacing: -0.4px; }
.topbar-right { display: flex; align-items: center; gap: 8px; }
.topbar-cta { font-size: 12px; font-weight: 600; color: var(--ink2); text-decoration: none; padding: 7px 11px; border: 1px solid var(--border); border-radius: 999px; transition: border-color .15s, color .15s, background .15s; display: inline-flex; align-items: center; gap: 5px; line-height: 1; }
.topbar-cta:hover { border-color: var(--accent); color: var(--accent); }
.topbar-cta.kakao { background: #FEE500; border-color: #FEE500; color: #191600; }
.topbar-cta.kakao:hover { background: #F2D900; border-color: #F2D900; color: #191600; }
.topbar-cta.kakao .kakao-glyph { width: 13px; height: 13px; border-radius: 3px; background: #391B1B; color: #FEE500; display: inline-flex; align-items: center; justify-content: center; font-size: 8.5px; font-weight: 800; }
.lang-toggle { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; background: var(--white); }
.lang-btn { padding: 5px 9px; font-size: 11px; font-weight: 700; color: var(--gray); background: transparent; border: none; cursor: pointer; font-family: var(--font); transition: background .15s, color .15s; letter-spacing: 0.3px; }
.lang-btn.on { background: var(--ink); color: white; }
.lang-btn:not(.on):hover { color: var(--ink2); }

/* ── Primary main nav (PC only) ── */
.main-nav { display: none; list-style: none; gap: 4px; margin: 0; padding: 0; }
@media (min-width: 900px) {
  .main-nav { display: flex; flex: 1; justify-content: flex-end; gap: 4px; }
  .main-nav li a {
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink2);
    text-decoration: none;
    border-radius: 8px;
    white-space: nowrap;
    transition: color .15s, background .15s;
  }
  .main-nav li a:hover, .main-nav li a.active {
    color: var(--accent);
    background: var(--accent-soft);
  }
  /* PC에서는 카톡/견적 CTA 숨김 (floating CTA로 대체) */
  .topbar-cta { display: none !important; }
}

/* ── Container ── */
.wrap { width: 100%; max-width: 720px; padding: 0 16px; }
.wrap-narrow { width: 100%; max-width: 480px; padding: 0 16px; }

/* ── Page hero ── */
.page-hero { padding: 32px 0 22px; }
.page-hero-eyebrow { font-size: 11px; font-weight: 700; color: var(--accent); letter-spacing: 0.6px; text-transform: uppercase; margin-bottom: 8px; }
.page-hero h1 { font-size: 26px; font-weight: 800; letter-spacing: -0.8px; color: var(--ink); line-height: 1.3; margin-bottom: 8px; }
.page-hero p { font-size: 13.5px; color: var(--ink3); line-height: 1.6; }

/* ── Section ── */
.section { padding: 18px 0 32px; }
.section-head { margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.section-title { font-size: 17px; font-weight: 800; letter-spacing: -0.4px; color: var(--ink); }
.section-link { font-size: 12px; color: var(--accent); font-weight: 600; text-decoration: none; }
.section-link:hover { text-decoration: underline; }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 18px; border-radius: 12px; font-family: var(--font); font-size: 14px; font-weight: 700; cursor: pointer; border: none; text-decoration: none; transition: opacity .15s, background .15s, transform .1s; -webkit-tap-highlight-color: transparent; }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-deep); }
.btn-ghost { background: var(--white); color: var(--ink2); border: 1.5px solid var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-dark { background: var(--ink); color: white; }
.btn-dark:hover { opacity: .92; }
.btn-block { display: flex; width: 100%; }
.btn-lg { padding: 14px 20px; font-size: 15px; }

/* ── Form field ── */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field-lbl { font-size: 12.5px; font-weight: 700; color: var(--ink2); letter-spacing: -0.2px; }
.field-lbl .req { color: var(--danger); margin-left: 2px; }
.fi { width: 100%; height: 44px; border: 1.5px solid var(--border); border-radius: 10px; padding: 0 12px; font-size: 13.5px; font-family: var(--font); color: var(--ink); background: var(--white); outline: none; transition: border-color .18s; appearance: none; -webkit-appearance: none; }
.fi::placeholder { color: var(--gray); }
.fi:focus { border-color: var(--accent); }
textarea.fi { height: auto; min-height: 100px; padding: 12px; line-height: 1.6; resize: vertical; }
select.fi { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
.field-hint { font-size: 11px; color: var(--gray); margin-top: 2px; }

/* ── Empty / loading ── */
.empty { padding: 42px 16px; text-align: center; color: var(--gray); font-size: 13px; }
.empty-glyph { font-size: 32px; opacity: .5; margin-bottom: 8px; }

/* ── Badge ── */
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 800; padding: 3px 8px; border-radius: 999px; letter-spacing: 0.2px; line-height: 1; }
.badge-soon { background: var(--danger-soft); color: #B91C1C; }
.badge-new { background: var(--accent-soft); color: var(--accent); }
.badge-end { background: var(--gray-light); color: var(--gray); }
.badge-live { background: #FEE2E2; color: #B91C1C; }

/* ── Floating call ── */
.floating-call { position: fixed; bottom: 20px; right: 20px; width: 52px; height: 52px; border-radius: 50%; background: var(--accent); color: white; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(59,111,232,.35); text-decoration: none; font-size: 22px; z-index: 30; transition: transform .15s; }
.floating-call:hover { transform: scale(1.05); }

/* ── Mobile hamburger button ── */
.hamburger-btn {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 36px; height: 36px;
  cursor: pointer;
  font-size: 16px;
  color: var(--ink2);
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font);
  transition: border-color .15s, color .15s;
}
.hamburger-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ── Mobile drawer (slides from right) ── */
.mobile-drawer {
  position: fixed;
  top: 0; right: -100%;
  width: 84%;
  max-width: 340px;
  height: 100vh;
  background: var(--white);
  z-index: 1001;
  box-shadow: -8px 0 32px rgba(17,24,39,.12);
  transition: right .3s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.mobile-drawer.show { right: 0; }
.mobile-drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(17,24,39,.45);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.mobile-drawer-overlay.show { opacity: 1; pointer-events: auto; }
.mobile-drawer-head {
  padding: 18px 20px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-soft);
}
.mobile-drawer-head .brand-name { font-size: 16px; font-weight: 800; color: var(--ink); letter-spacing: -0.4px; }
.mobile-drawer-close {
  background: none; border: none;
  font-size: 22px;
  color: var(--ink2);
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}
.mobile-drawer-label {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--gray);
  letter-spacing: 0.7px;
  text-transform: uppercase;
  padding: 14px 20px 6px;
}
.mobile-drawer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.mobile-drawer ul li a {
  display: block;
  padding: 12px 20px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink2);
  text-decoration: none;
  transition: background .12s, color .12s;
}
.mobile-drawer ul li a:hover { background: var(--bg); }
.mobile-drawer ul li a.active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  border-left: 3px solid var(--accent);
  padding-left: 17px;
}
.mobile-drawer-cta-row {
  display: flex;
  gap: 8px;
  padding: 14px 16px;
  border-top: 1px solid var(--border-soft);
  margin-top: auto;
}
.mobile-drawer-cta-row a {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.2px;
}
.mobile-drawer-cta-row .primary {
  background: var(--accent);
  color: white;
}
.mobile-drawer-cta-row .secondary {
  background: #FEE500;
  color: #191600;
}
.mobile-drawer-phone {
  margin: 0 16px 14px;
  padding: 14px 16px;
  background: var(--bg);
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  display: block;
}
.mobile-drawer-phone-num {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.4px;
  line-height: 1;
}
.mobile-drawer-phone-lbl {
  font-size: 11px;
  color: var(--gray);
  margin-top: 4px;
}

/* ── Mobile bottom nav (5 tabs, grey monochrome) ── */
.mobile-bottom-nav-v4 {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  z-index: 50;
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -2px 12px rgba(17,24,39,.04);
}
.mobile-bottom-nav-v4 ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}
.mobile-bottom-nav-v4 li { flex: 1; }
.mobile-bottom-nav-v4 a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px 4px 6px;
  text-decoration: none;
  color: var(--gray);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: -0.2px;
  transition: color .15s;
}
.mobile-bottom-nav-v4 a:hover { color: var(--ink2); }
.mobile-bottom-nav-v4 a.active { color: var(--accent); }
.mobile-bottom-nav-v4 a svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.8;
  flex-shrink: 0;
}

/* ── Mobile responsive ── */
@media (max-width: 899px) {
  .hamburger-btn { display: flex !important; }
  .mobile-bottom-nav-v4 { display: block; }
  /* Topbar CTAs hidden on mobile (replaced by hamburger + bottom nav) */
  .topbar-cta { display: none !important; }
  body { padding-bottom: 60px; }
  /* Floating call hidden (now in bottom nav) */
  .floating-call { display: none !important; }
}

/* ── Footer ── */
.footer { width: 100%; padding: 24px 16px 40px; border-top: 1px solid var(--border-soft); background: var(--bg); margin-top: 24px; }
.footer-inner { max-width: 720px; margin: 0 auto; }
.footer-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.footer-link { font-size: 12px; color: var(--ink3); text-decoration: none; }
.footer-link:hover { color: var(--accent); }
.footer-meta { font-size: 11px; color: var(--gray); line-height: 1.7; }

/* ── 콘텐츠 에디터 스타일 (TinyMCE → 공개 페이지 동기화) ── */
.callout { padding: 14px 18px; border-radius: 8px; margin: 14px 0; line-height: 1.7; }
.callout-primary   { background: #eff6ff; border-left: 4px solid #3b82f6; }
.callout-secondary { background: #f9fafb; border-left: 4px solid #9ca3af; }
.callout-warning   { background: #fffbeb; border-left: 4px solid #f59e0b; }
.callout-success   { background: #f0fdf4; border-left: 4px solid #22c55e; }
.callout-danger    { background: #fff1f2; border-left: 4px solid #ef4444; }
.callout-purple    { background: #faf5ff; border-left: 4px solid #a855f7; }
.callout-orange    { background: #fff7ed; border-left: 4px solid #f97316; }
.side-line { padding: 10px 16px; margin: 12px 0; line-height: 1.7; border-radius: 0 6px 6px 0; }
.side-blue   { border-left: 5px solid #3b82f6; background: #f0f7ff; }
.side-green  { border-left: 5px solid #22c55e; background: #f0fdf4; }
.side-yellow { border-left: 5px solid #f59e0b; background: #fffbeb; }
.side-red    { border-left: 5px solid #ef4444; background: #fff5f5; }
.side-purple { border-left: 5px solid #a855f7; background: #faf5ff; }
.hl-yellow { background: #fef08a; padding: 1px 3px; border-radius: 3px; }
.hl-green  { background: #bbf7d0; padding: 1px 3px; border-radius: 3px; }
.hl-blue   { background: #bfdbfe; padding: 1px 3px; border-radius: 3px; }
.hl-pink   { background: #fbcfe8; padding: 1px 3px; border-radius: 3px; }
.hl-orange { background: #fed7aa; padding: 1px 3px; border-radius: 3px; }
.content-badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 0.82em; font-weight: 700; line-height: 1.5; margin: 0 2px; }
.badge-blue   { background: #3b82f6; color: white; }
.badge-green  { background: #22c55e; color: white; }
.badge-red    { background: #ef4444; color: white; }
.badge-yellow { background: #f59e0b; color: white; }
.badge-purple { background: #a855f7; color: white; }
.tpl-review-box { background: #FFF5EB; border: 1px solid #FED7AA; border-radius: 10px; padding: 18px 22px; margin: 16px 0; }
.tpl-review-title { font-weight: 800; color: #C2410C; margin-bottom: 12px; font-size: 15px; }
.tpl-review-item { padding: 8px 0; color: #44403C; line-height: 1.7; border-bottom: 1px dashed #FED7AA; }
.tpl-review-item:last-child { border-bottom: none; }
.tpl-faq-box { background: #FAF5FF; border: 1px solid #E9D5FF; border-radius: 10px; padding: 0; margin: 14px 0; overflow: hidden; }
.tpl-faq-q { background: #F3E8FF; color: #6B21A8; font-weight: 700; padding: 12px 18px; }
.tpl-faq-a { padding: 14px 18px; color: #44403C; line-height: 1.7; }
.tpl-warn-box { background: #FEF2F2; border: 1px solid #FECACA; border-radius: 10px; padding: 16px 20px; margin: 16px 0; }
.tpl-warn-title { color: #B91C1C; font-weight: 800; margin-bottom: 8px; }
.tpl-warn-list { margin-left: 20px; color: #44403C; }
.tpl-warn-list li { padding: 3px 0; line-height: 1.6; }
.tpl-check-box { background: #F0FDF4; border: 1px solid #BBF7D0; border-radius: 10px; padding: 16px 20px; margin: 16px 0; }
.tpl-check-title { color: #166534; font-weight: 800; margin-bottom: 8px; }
.tpl-check-list { list-style: none; padding-left: 0; }
.tpl-check-list li { padding: 4px 0 4px 28px; position: relative; color: #44403C; line-height: 1.6; }
.tpl-check-list li::before { content: '✓'; position: absolute; left: 8px; color: #22c55e; font-weight: 800; }
.tpl-tip-box { background: #FFFBEB; border: 1px solid #FDE68A; border-radius: 10px; padding: 16px 20px; margin: 16px 0; }
.tpl-tip-title { color: #92400E; font-weight: 800; margin-bottom: 6px; }
.tpl-tip-content { color: #44403C; line-height: 1.7; }
.tpl-compare-table { border-collapse: collapse; width: 100%; margin: 14px 0; }
.tpl-compare-table th { background: #3b82f6; color: white; padding: 10px 12px; text-align: center; font-weight: 700; }
.tpl-compare-table td { border: 1px solid #E5E7EB; padding: 10px 12px; }
.tpl-compare-table tr:nth-child(even) td { background: #F9FAFB; }
