:root {
  --bg: #f4f6f8;
  --fg: #142b3c;
  --card: #fff;
  --primary: #183b50;
  --primary-fg: #fff;
  --muted: #5d6d79;
  --line: #dce3e8;
  --input: #cbd5dc;
  --accent: #eaf1f5;
  --gold: #8c6539;
  --gold-soft: #c7a16b;
  --danger: #a52236;
  --radius: 12px;
  --sans: Arial, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --serif: Georgia, "Noto Serif KR", "Malgun Gothic", serif;
  --shadow: 0 10px 40px rgba(20, 43, 60, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--fg);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}
img { max-width: 100%; }
a { color: var(--primary); }
a:hover { color: var(--gold); }
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.25;
  color: var(--primary);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 4vw, 3.1rem); margin: 0 0 1rem; }
h1 em { font-style: italic; color: var(--gold); }
h2 { font-size: clamp(1.45rem, 2.5vw, 2rem); margin: 0 0 0.75rem; }
h3 { font-size: 1.2rem; margin: 0 0 0.5rem; }
p { margin: 0 0 0.85rem; }
.muted, .ko-block { color: var(--muted); }
.ko-block { font-size: 0.95rem; }

/* language visibility: inner pages show both; homepage uses toggle */
html[data-lang="en"] .home-only .t-ko { display: none; }
html[data-lang="ko"] .home-only .t-en { display: none; }
html[data-lang="en"] .nav-home .t-ko,
html[data-lang="ko"] .nav-home .t-en { display: none; }

.skip {
  position: absolute; left: -999px; top: 0;
}
.skip:focus {
  left: 12px; top: 12px; z-index: 20;
  background: #fff; padding: 8px 12px; border-radius: 6px;
}

.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(244, 246, 248, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
}
.brand {
  text-decoration: none; color: var(--primary);
  display: flex; flex-direction: column; line-height: 1.15;
}
.brand strong { font-size: 1rem; letter-spacing: 0; }
.brand span {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
}
.nav {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.nav a {
  text-decoration: none;
  color: var(--fg);
  font-size: 0.95rem;
}
.nav a:hover { color: var(--gold); }
.language-button, .button, button.button {
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--fg);
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.language-button:hover { border-color: var(--gold); }
.button.primary, button.primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.button.primary:hover { background: #123041; color: #fff; }
.button.secondary { background: #fff; }
.button[disabled] { opacity: 0.5; cursor: not-allowed; }
.link-button {
  background: none; border: 0; padding: 0;
  font: inherit; color: inherit; cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 32px 24px 64px; }
.workspace {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 460px);
  gap: 40px;
  align-items: start;
}
@media (max-width: 900px) {
  .workspace { grid-template-columns: 1fr; }
  .header-inner { flex-wrap: wrap; }
}

.eyebrow {
  display: flex; align-items: center; gap: 10px;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.accent-line {
  width: 28px; height: 2px; background: var(--gold-soft);
  display: inline-block;
}
.intro-copy { font-size: 1.08rem; max-width: 40rem; }
.home-fees {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin: 1.4rem 0;
}
.home-fees a {
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  color: var(--fg);
  min-width: 160px;
}
.home-fees a strong { display: block; color: var(--primary); }
.home-fees > p { flex-basis: 100%; margin: 6px 0 0; font-size: 0.95rem; color: var(--muted); }

.attorney, .agent-home-link {
  display: flex; gap: 12px; align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 16px 0;
  text-decoration: none;
  color: inherit;
}
.attorney-mark, .success-icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: grid; place-items: center; flex-shrink: 0;
  font-family: var(--serif);
}
.attorney strong, .agent-home-link strong { display: block; }
.attorney span, .agent-home-link span { color: var(--muted); font-size: 0.92rem; }
.intro-foot {
  display: flex; gap: 16px; color: var(--muted);
  font-size: 0.75rem; letter-spacing: 0.12em;
  margin-top: 20px;
}

.enquiry-card, .card, .estimate-card, .prose-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 22px 22px 18px;
}
.card-bottom {
  margin-top: 16px; padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted); font-size: 0.9rem;
}
.steps {
  display: flex; gap: 8px; list-style: none;
  padding: 0; margin: 0 0 18px;
  font-size: 0.85rem;
}
.steps li {
  flex: 1; text-align: center;
  padding: 8px 6px;
  border-bottom: 2px solid var(--line);
  color: var(--muted);
}
.steps li.current { border-color: var(--gold); color: var(--primary); font-weight: 600; }
.service-grid, .other-grid {
  display: grid; gap: 10px;
  grid-template-columns: 1fr;
}
.service-option {
  display: block; width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  cursor: pointer;
  color: inherit;
}
.service-option[aria-pressed="true"], .service-option:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(24, 59, 80, 0.12);
}
.service-option strong { display: block; }
.service-option span { color: var(--muted); font-size: 0.9rem; }
.details-toggle {
  margin: 14px 0 8px;
}
.details-toggle summary { cursor: pointer; color: var(--primary); }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
label, .field-label { display: block; font-size: 0.92rem; margin: 10px 0 4px; }
input, select, textarea {
  width: 100%;
  font: inherit;
  padding: 9px 11px;
  border: 1px solid var(--input);
  border-radius: 8px;
  background: #fff;
  color: var(--fg);
}
textarea { resize: vertical; }
.char-count { float: right; color: var(--muted); font-size: 0.8rem; }
.card-actions, .form-actions {
  display: flex; justify-content: space-between; gap: 12px;
  align-items: center; margin-top: 18px; flex-wrap: wrap;
}
.assurance { color: var(--muted); font-size: 0.9rem; }
.review-dl { display: grid; gap: 10px; margin: 0 0 16px; }
.review-dl div { border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.review-dl dt { color: var(--muted); font-size: 0.8rem; }
.review-dl dd { margin: 0; }
.payment-options { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0; }
.payment-options label {
  display: flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 12px; margin: 0; cursor: pointer;
}
.payment-options input { width: auto; }
.legal-note, .source-explanation, .estimate-note { font-size: 0.88rem; color: var(--muted); }
.enquiry-preparation {
  background: var(--accent);
  border-radius: 10px;
  padding: 12px 14px;
  margin: 12px 0;
  font-size: 0.92rem;
}
.enquiry-preparation-rate { font-weight: 600; color: var(--primary); }
.success-panel { text-align: left; }
.notice {
  background: var(--accent);
  border-left: 3px solid var(--gold);
  padding: 10px 14px;
  margin: 12px 0 16px;
  font-size: 0.92rem;
}

.approach, .payment-section, .page-section { margin: 56px 0; }
.steps-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 800px) { .steps-row { grid-template-columns: 1fr; } }
.step-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px;
}
.step-num { color: var(--gold); font-family: var(--serif); font-size: 1.2rem; }
.payment-methods {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px;
}
@media (max-width: 700px) { .payment-methods { grid-template-columns: 1fr; } }
.payment-methods > div {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px;
  display: flex; gap: 14px;
}
.currency-symbol {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: grid; place-items: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.payment-caption { grid-column: 1 / -1; color: var(--muted); }

.service-hero, .page-hero { margin-bottom: 28px; max-width: 46rem; }
.rate-chip {
  display: inline-block;
  background: var(--primary); color: #fff;
  border-radius: 999px; padding: 6px 12px;
  font-size: 0.9rem; margin: 8px 0 14px;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }

.service-list { display: grid; gap: 20px; }
.service-block { padding: 8px 0 20px; border-bottom: 1px solid var(--line); }
.service-block ul, .prose ul { margin: 0.4rem 0 1rem; padding-left: 1.2rem; }
.fee-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px; margin: 14px 0;
}
@media (max-width: 700px) { .fee-row { grid-template-columns: 1fr; } }
.fee-box {
  background: var(--accent); border-radius: 10px; padding: 12px;
}
.fee-box strong { display: block; color: var(--primary); }

.estimate-controls { display: grid; gap: 12px; margin-top: 8px; }
.estimate-urgent { display: flex; align-items: center; gap: 8px; }
.estimate-urgent input { width: auto; }
.estimate-result {
  background: var(--primary); color: #fff;
  border-radius: 12px; padding: 16px;
}
.estimate-result span { display: block; opacity: 0.85; font-size: 0.85rem; }
.estimate-result strong { font-size: 1.8rem; font-family: var(--serif); color: #fff; }

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}
.faq summary { cursor: pointer; font-weight: 600; color: var(--primary); }
.faq details p { margin: 8px 0; }

.outline { counter-reset: item; padding-left: 0; list-style: none; }
.outline li { counter-increment: item; margin: 0 0 8px; }
.outline li::before {
  content: counter(item) ". ";
  color: var(--gold); font-weight: 600;
}

table {
  width: 100%; border-collapse: collapse;
  background: #fff; border-radius: 10px; overflow: hidden;
  font-size: 0.95rem;
}
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { background: var(--accent); }

.example {
  background: var(--accent);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 0.95rem;
  white-space: pre-wrap;
}

.qual-list { columns: 1; }
.qual-list li { margin-bottom: 6px; }

footer.site-footer {
  background: var(--primary);
  color: #e8eef2;
  padding: 40px 24px 24px;
  margin-top: 40px;
}
.footer-inner { max-width: 1120px; margin: 0 auto; }
.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
}
@media (max-width: 700px) { .footer-main { grid-template-columns: 1fr; } }
.site-footer a, .site-footer .link-button { color: #f3efe6; }
.site-footer .footer-links {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
}
.footer-bottom {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-top: 24px; padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.82rem; letter-spacing: 0.06em; color: #b9c6ce;
}

dialog {
  border: 0;
  border-radius: 16px;
  padding: 24px;
  max-width: 560px;
  width: calc(100% - 32px);
  color: var(--fg);
  box-shadow: var(--shadow);
}
dialog::backdrop { background: rgba(20, 43, 60, 0.45); }
.policy-copy { font-size: 0.95rem; }
dialog .close-x {
  float: right; background: none; border: 0;
  font-size: 1.2rem; cursor: pointer; color: var(--muted);
}

.prose { max-width: 46rem; }
.prose h2 { margin-top: 2rem; }
.country-list { font-size: 0.88rem; color: var(--muted); }

code, .mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.9em; }

.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 800px) { .three-col { grid-template-columns: 1fr; } }

/* language toggle for footer and dialogs (added 2026-11-14) */
html[data-lang="en"] .site-footer .t-ko, html[data-lang="en"] dialog .t-ko,
html[data-lang="ko"] .site-footer .t-en, html[data-lang="ko"] dialog .t-en { display: none; }
