/* ==========================================================================
   모다부동산법원경매 공인중개사사무소 — Site stylesheet
   Design language: charcoal-pine · champagne gold · warm stone
   ========================================================================== */

:root {
  /* Brand */
  --pine: #1A2421;
  --pine-deep: #121A17;
  --pine-soft: #2E3B35;
  --gold: #A6824B;
  --gold-deep: #7F5F2E;
  --gold-ink: #6F5222;
  --gold-bright: #CBAA6E;
  --gold-tint: #F4EEE1;
  --stone: #F4F2EA;
  --stone-deep: #ECE9DE;
  --paper: #FFFFFF;
  --bg-soft: #F7F6F1;
  --ink: #3E4642;
  --text-body: #3E4642;
  --text-main: #1A2024;
  --text-muted: #67706A;
  --border: #E5E2DA;
  --border-light: #ECE9E1;

  /* Shape */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 999px;
  --shadow-sm: 0 1px 2px rgba(26, 36, 33, 0.05);
  --shadow-md: 0 8px 24px rgba(26, 36, 33, 0.07);
  --transition: all 0.18s ease;

  --header-height: 68px;
  --container: 1200px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "Pretendard", "Pretendard Variable", -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: break-word;
}

img { max-width: 100%; display: block; }
a { color: var(--gold-deep); text-decoration: none; }
a:hover { color: var(--gold-ink); }
p { margin: 0 0 14px; }
ul, ol { margin: 0; padding: 0; }
li { list-style: none; }

h1, h2, h3, h4 {
  margin: 0 0 14px;
  color: var(--text-main);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.32;
}

h1 { font-size: 40px; }
h2 { font-size: 32px; }
h3 { font-size: 20px; }

strong { font-weight: 700; color: var(--text-main); }

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

section[id] { scroll-margin-top: calc(var(--header-height) + 16px); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 300;
  background: #fff; color: var(--pine); padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--pine);
  border-bottom: 1px solid rgba(203, 170, 110, 0.32);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  height: var(--header-height);
  flex-wrap: nowrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  text-decoration: none;
  color: #fff;
}
.brand:hover { color: #fff; }
.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
  flex: 0 0 auto;
  box-shadow: 0 0 0 1px rgba(203, 170, 110, 0.5);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  color: #fff;
  font-size: 16.5px;
  font-weight: 800;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.brand-sub {
  color: #BFC6BC;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.085em;
  white-space: nowrap;
  margin-top: 3px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: nowrap;
  white-space: nowrap;
}
.main-nav a {
  position: relative;
  display: inline-block;
  padding: 6px 0;
  color: #DADFD7;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease;
}
.main-nav a:hover { color: #fff; }
.main-nav a.active { color: #fff; }
.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -3px;
  width: 18px;
  height: 2px;
  margin-left: -9px;
  border-radius: 2px;
  background: var(--gold-bright);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: transparent;
  color: #fff;
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
}

.mobile-drawer {
  display: none;
  background: var(--pine-deep);
  padding: 8px 24px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.mobile-drawer.is-open { display: block; }
.mobile-drawer a {
  display: block;
  padding: 13px 2px;
  color: #DADFD7;
  font-size: 15.5px;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.mobile-drawer a:last-of-type { border-bottom: 0; }
.mobile-drawer .drawer-contact {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--gold);
  color: #fff;
  text-align: center;
  font-weight: 700;
  border-bottom: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
}
.btn-primary { background: #fff; color: var(--pine); }
.btn-primary:hover { background: #ECE9E1; color: var(--pine); }
.btn-dark { background: var(--pine); color: #fff; }
.btn-dark:hover { background: var(--pine-soft); color: #fff; }
.btn-gold { background: var(--gold-deep); color: #fff; }
.btn-gold:hover { background: var(--gold-ink); color: #fff; }
.btn-outline { background: transparent; color: var(--pine); border-color: #CBC7BA; }
.btn-outline:hover { background: #F3F1E9; color: var(--pine); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.42); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.btn-sm { padding: 10px 18px; font-size: 14.5px; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold-deep);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.02em;
}
.text-link:hover { color: var(--gold-ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Home hero ---------- */
.hero {
  position: relative;
  color: #fff;
  background: var(--pine) url("/images/hero-bg.jpg") center 42% / cover no-repeat;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(96deg, rgba(12, 18, 15, 0.95) 0%, rgba(12, 18, 15, 0.84) 40%, rgba(12, 18, 15, 0.44) 70%, rgba(12, 18, 15, 0.28) 100%),
    linear-gradient(180deg, rgba(12, 18, 15, 0.35) 0%, rgba(12, 18, 15, 0) 38%, rgba(12, 18, 15, 0.20) 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding: 104px 0 96px;
}
.hero-eyebrow {
  margin-bottom: 18px;
  color: var(--gold-bright);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.005em;
}
.hero h1 {
  margin-bottom: 20px;
  color: #fff;
  font-size: 46px;
  line-height: 1.32;
  letter-spacing: -0.045em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.18);
}
.hero-desc {
  max-width: 640px;
  margin-bottom: 32px;
  color: #D8DCD3;
  font-size: 17.5px;
  line-height: 1.75;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.hero-actions .btn { padding: 15px 28px; }
.hero-contact {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: #C3C9BF;
  font-size: 14.5px;
}
.hero-contact a { color: #fff; font-weight: 700; }
.hero-contact .divider { color: rgba(255, 255, 255, 0.35); }

/* ---------- Generic section ---------- */
.section { padding: 88px 0; }
.section-tight { padding: 64px 0; }
.section-soft { background: var(--bg-soft); }
.section-cream { background: var(--stone); }
.section-dark { background: var(--pine); color: #CFD6CC; }
.section-dark h2, .section-dark h3 { color: #fff; }

.section-head { margin-bottom: 40px; }
.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 10px;
  color: var(--gold-ink);
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.045em;
}
.eyebrow::before {
  content: "";
  flex: 0 0 auto;
  width: 20px;
  height: 1.5px;
  background: var(--gold);
}
.eyebrow-gold { color: var(--gold-ink); }
.section-head h2 { margin-bottom: 12px; font-size: 32px; }
.section-lead {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--ink);
  font-size: 16.5px;
  line-height: 1.8;
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}
.step-image {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-radius: var(--radius-md);
  background: #ECE9DE;
}
.step-label {
  margin: 20px 0 6px;
  color: var(--gold-ink);
  font-size: 14px;
  font-weight: 800;
}
.step h3 { margin-bottom: 8px; font-size: 20px; }
.step p { margin: 0; font-size: 15.5px; color: var(--ink); }

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 56px;
  align-items: center;
}
.pricing-figure img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.price-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 22px 0 14px;
  padding: 22px 26px;
  background: #fff;
  border: 1px solid #E6E1D2;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.price-card .price-label { color: var(--text-main); font-size: 16.5px; font-weight: 700; }
.price-card .price-value { color: var(--gold-deep); font-size: 26px; font-weight: 800; letter-spacing: -0.03em; }
.price-note { margin: 0 0 22px; color: var(--text-muted); font-size: 13.5px; line-height: 1.7; }

.quote-card {
  padding: 26px 26px 18px;
  background: #fff;
  border: 1px solid #E6E1D2;
  border-radius: var(--radius-md);
}
.quote-card h3 { margin-bottom: 8px; font-size: 17.5px; }
.quote-card > p { font-size: 14.5px; color: var(--ink); }
.quote-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
  margin: 16px 0 4px;
  padding-top: 16px;
  border-top: 1px solid #EBE7DB;
}
.quote-list li { font-size: 14px; color: var(--ink); }
.quote-list span { display: block; color: var(--text-muted); font-size: 12.5px; }
.quote-list strong { font-size: 14px; }

/* ---------- Courts ---------- */
.courts {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}
.court-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.court-top {
  position: relative;
  height: 132px;
  overflow: hidden;
  background: linear-gradient(140deg, #1A2421 0%, #2E3B35 70%, #3C4C44 100%);
  color: var(--gold-bright);
}
.court-top img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.court-card:hover .court-top img { transform: scale(1.05); }
.court-top::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 18, 15, 0.02) 0%, rgba(12, 18, 15, 0.08) 55%, rgba(12, 18, 15, 0.58) 100%);
}
.court-body { padding: 14px 16px 16px; }
.court-body .court-name { display: block; color: var(--gold-ink); font-size: 12.5px; font-weight: 700; }
.court-body strong { display: block; font-size: 16.5px; letter-spacing: -0.02em; }
.court-note { margin: 20px 0 0; color: var(--text-muted); font-size: 14px; }

/* ---------- Auction (낙찰로) box ---------- */
.roam-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 24px;
  padding: 28px 30px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.roam-card h3 { margin-bottom: 6px; font-size: 19px; }
.roam-card p { margin: 0; color: var(--ink); font-size: 15px; }
.roam-card .roam-actions { flex: 0 0 auto; }

/* ---------- Office / about strip ---------- */
.about-strip {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 56px;
  align-items: center;
}
.reg-list {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
}
.reg-list div {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}
.reg-list dt, .reg-list .reg-label { color: var(--text-muted); }
.reg-list dd, .reg-list .reg-value { margin: 0; color: var(--text-main); font-weight: 700; }

.office-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.office-photos figure { margin: 0; }
.office-photos img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius-md);
  background: #ECE9DE;
}
.office-photos figcaption {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.55;
}

/* ---------- Insights / placeholder ---------- */
.placeholder-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.placeholder-card {
  padding: 34px 28px;
  text-align: center;
  background: #FBFAF6;
  border: 1.5px dashed #D5D2C6;
  border-radius: var(--radius-lg);
}
.placeholder-card .ph-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #EFEDE4;
  color: var(--pine);
  font-size: 22px;
}
.placeholder-card h3 { margin-bottom: 6px; font-size: 18px; }
.placeholder-card p { margin: 0 0 14px; color: var(--text-muted); font-size: 14.5px; }
.chip {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--gold-tint);
  color: var(--gold-ink);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.chip-gold { background: var(--gold-tint); color: var(--gold-ink); }

/* ---------- Insights / active channel cards ---------- */
.placeholder-grid.channel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.placeholder-card.channel-card {
  display: block;
  padding: 40px 30px 34px;
  text-align: center;
  color: inherit;
  text-decoration: none;
  background: #fff;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.placeholder-card.channel-card:hover {
  transform: translateY(-3px);
  border-color: #C9BFA8;
  box-shadow: var(--shadow-md);
}
.placeholder-card.channel-card:focus-visible {
  outline: 3px solid rgba(26, 36, 33, 0.35);
  outline-offset: 3px;
}
.channel-card .ph-icon { width: 56px; height: 56px; }
.channel-card .ph-icon-blog { background: #E9F1E8; color: #3A6B53; }
.channel-card .ph-icon-youtube { background: #F3EAD8; color: var(--gold); }
.channel-card h3 { margin-bottom: 8px; font-size: 19px; color: var(--text-main); }
.channel-card p { margin: 0 0 18px; line-height: 1.65; }
.channel-cta {
  display: inline-block;
  padding: 9px 18px;
  border-radius: var(--radius-full);
  background: var(--pine);
  color: #fff;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.01em;
  transition: var(--transition);
}
.channel-card:hover .channel-cta { background: var(--pine-soft); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 900px; }
.faq-item {
  margin-bottom: 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.faq-item summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  cursor: pointer;
  color: var(--text-main);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: "Q";
  flex: 0 0 auto;
  color: var(--gold-deep);
  font-size: 15px;
  font-weight: 800;
}
.faq-item summary::after {
  content: "+";
  margin-left: auto;
  color: var(--text-muted);
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item[open] summary { background: #FBFAF5; }
.faq-answer {
  padding: 0 22px 20px 50px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.8;
}
.faq-answer p:last-child { margin-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  padding: 64px 0;
  background: linear-gradient(120deg, #121A17 0%, #2A3833 100%);
  color: #CFD6CC;
}
.cta-band h2 { color: #fff; font-size: 30px; margin-bottom: 10px; }
.cta-band p { margin-bottom: 26px; font-size: 16px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Page hero (subpages) ---------- */
.page-hero {
  padding: 60px 0 44px;
  background: #fff;
  border-bottom: 1px solid #ECE9E1;
}
.page-hero h1 { margin-bottom: 12px; font-size: 34px; }
.page-hero .page-lead {
  max-width: 820px;
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 16.5px;
  line-height: 1.8;
}
.page-hero .page-meta {
  margin: 14px 0 0;
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.7;
}
.breadcrumb {
  margin-bottom: 16px;
  color: #737C75;
  font-size: 13px;
}
.breadcrumb a { color: #737C75; }
.breadcrumb span { margin: 0 6px; }

.page-hero-row { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.page-thumb {
  width: 108px;
  height: 108px;
  border-radius: var(--radius-md);
  object-fit: cover;
  flex: 0 0 auto;
  box-shadow: var(--shadow-sm);
}

/* ---------- Content blocks ---------- */
.content-narrow { max-width: 900px; }
.content-mid { max-width: 1040px; }

.panel {
  padding: 30px 32px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.panel-cream { background: var(--stone); border-color: #E3DFD2; }
.panel-dark { background: var(--pine); border-color: var(--pine); color: #CFD6CC; }
.panel-dark h3, .panel-dark strong { color: #fff; }
.panel + .panel { margin-top: 20px; }

.panel h2, .panel h3 { margin-bottom: 12px; }
.panel h3 { font-size: 18.5px; }
.panel p:last-child, .panel ul:last-child { margin-bottom: 0; }

.bullet-list { margin: 0; }
.bullet-list li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.75;
}
.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}
.bullet-list li:last-child { margin-bottom: 0; }

.notice-box {
  padding: 18px 22px;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--gold);
  background: #F8F2E5;
  color: var(--ink);
  font-size: 14.5px;
  line-height: 1.75;
}
.notice-box strong { color: var(--gold-deep); }
.notice-box-blue { border-left-color: #3F5A50; background: #EFF2ED; }
.notice-box-gold { border-left-color: var(--gold); background: var(--gold-tint); }
.notice-box + .notice-box { margin-top: 12px; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* ---------- Price table (auction) ---------- */
.fee-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.fee-highlight {
  padding: 30px 30px 26px;
  background: #fff;
  border: 1.5px solid var(--gold);
  border-radius: var(--radius-lg);
}
.fee-highlight .fee-cap { color: var(--ink); font-size: 15px; font-weight: 600; }
.fee-highlight .fee-amount {
  display: block;
  margin: 6px 0 16px;
  color: var(--gold);
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.2;
}
.fee-highlight .fee-amount small { font-size: 20px; font-weight: 700; }
.court-tags { display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 0 0 14px; }
.court-tags a, .court-tags span {
  color: var(--gold-deep);
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.fee-note { margin: 0; color: var(--text-muted); font-size: 13px; line-height: 1.65; }

.fee-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
.fee-table th, .fee-table td {
  padding: 11px 6px;
  border-bottom: 1px solid #ECE9E1;
  text-align: left;
  vertical-align: top;
}
.fee-table th { width: 92px; color: var(--text-muted); font-weight: 600; }
.fee-table td { color: var(--text-main); font-weight: 600; }
.fee-table tr:last-child th, .fee-table tr:last-child td { border-bottom: 0; }
.fee-table .sub { display: block; color: var(--text-muted); font-size: 12.5px; font-weight: 400; }

.doc-methods { display: grid; gap: 12px; margin-top: 18px; }
.doc-method {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.doc-method .doc-num {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--gold-tint); color: var(--gold-ink); font-weight: 800; font-size: 14px;
}
.doc-method h4 { margin: 0 0 4px; font-size: 15.5px; }
.doc-method p { margin: 0; font-size: 14px; color: var(--ink); }

/* ---------- Process timeline ---------- */
.timeline { position: relative; max-width: 900px; margin: 0 auto; }
.timeline::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 12px;
  bottom: 16px;
  width: 2px;
  background: #DCD4C2;
}
.tl-item { position: relative; padding: 0 0 22px 66px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-num {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gold-deep);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
}
.tl-card {
  padding: 22px 26px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.tl-card h2, .tl-card h3 { margin-bottom: 8px; font-size: 18.5px; }
.tl-card p { margin-bottom: 10px; font-size: 14.8px; line-height: 1.75; }
.tl-card p:last-child { margin-bottom: 0; }
.tl-tag {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 9px;
  vertical-align: 2px;
  border-radius: var(--radius-full);
  background: var(--gold-tint);
  color: var(--gold-ink);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0;
}
.tl-card .tl-sub {
  margin: 12px 0;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--gold-tint);
  font-size: 13.8px;
  line-height: 1.7;
}

.check-list li, .cross-list li { position: relative; padding-left: 26px; margin-bottom: 8px; font-size: 14.8px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: #3A6B53; font-weight: 800; }
.cross-list li::before { content: "✕"; position: absolute; left: 0; color: var(--gold); font-weight: 800; }

/* ---------- Apply form ---------- */
.form-shell { max-width: 780px; margin: 0 auto; }
.form-intro-banners { display: grid; gap: 10px; margin-bottom: 22px; }

.form-section {
  margin: 0 0 20px;
  padding: 26px 28px 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.form-section legend {
  padding: 0 8px;
  color: var(--text-main);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.form-section legend .legend-num { color: var(--gold-deep); margin-right: 6px; }
.form-section-desc { margin: -4px 0 18px; color: var(--text-muted); font-size: 13.8px; }

.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.field { margin-bottom: 16px; }
.field-full { grid-column: 1 / -1; }
.field label, .field-label {
  display: block;
  margin-bottom: 7px;
  color: var(--text-main);
  font-size: 14px;
  font-weight: 700;
}
.req { color: var(--gold-deep); }
.hint { display: block; margin-top: 5px; color: var(--text-muted); font-size: 12.5px; line-height: 1.55; }

.input, .select, .textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #CFCBBE;
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text-main);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.5;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(166, 130, 75, 0.22);
}
.input::placeholder { color: #9AA09A; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23627D98' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 36px;
}
.case-number-row { display: grid; grid-template-columns: 104px 88px 1fr; gap: 8px; align-items: center; }
.case-number-row .static-tag {
  display: flex; align-items: center; justify-content: center;
  height: 44px; border: 1px solid #E5E2DA; border-radius: var(--radius-sm);
  background: #F7F6F1; color: var(--text-main); font-weight: 700; font-size: 15px;
}
.address-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.btn-inline {
  padding: 0 16px;
  height: 44px;
  border: 1px solid #CBC7BA;
  border-radius: var(--radius-sm);
  background: #F3F1E9;
  color: var(--pine);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}
.btn-inline:hover { background: #E9E6DC; }

.segmented { display: flex; gap: 8px; }
.segmented label {
  flex: 1;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #CFCBBE;
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
}
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented input:checked + span { color: var(--pine); }
.segmented label:has(input:checked) {
  border-color: var(--pine);
  background: #F3F1E9;
  box-shadow: inset 0 0 0 1px var(--pine);
}

.check-row { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 12px; }
.check-row input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--gold-deep); flex: 0 0 auto; }
.check-row label { margin: 0; color: var(--ink); font-size: 14px; font-weight: 500; line-height: 1.6; }
.consent-policy-link { margin: -4px 0 14px 28px; font-size: 13px; }
.consent-policy-link a { color: var(--gold-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.form-error {
  display: none;
  margin: 0 0 16px;
  padding: 14px 18px;
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  background: #F8F2E5;
  color: var(--gold-deep);
  font-size: 14px;
  font-weight: 600;
}
.form-error.is-visible { display: block; }

.form-submit-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 6px 0 8px; }
.form-submit-row .btn { min-width: 220px; }
.form-submit-note { margin: 0; color: var(--text-muted); font-size: 12.8px; }

.apply-result {
  margin-top: 26px;
  padding: 28px 30px;
  border: 1.5px solid #BFD0C4;
  border-radius: var(--radius-lg);
  background: #F2F6F1;
}
.apply-result h2 { font-size: 22px; margin-bottom: 8px; }
.apply-result > p { font-size: 14.5px; }
.summary-box {
  margin: 16px 0;
  padding: 18px 20px;
  max-height: 360px;
  overflow: auto;
  border: 1px solid #DDE4DA;
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--text-main);
  font-size: 13.8px;
  line-height: 1.75;
  white-space: pre-wrap;
}
.result-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.result-actions .btn { padding: 12px 20px; font-size: 15px; }

/* ---------- About ---------- */
.about-intro { max-width: 900px; margin-bottom: 40px; }
.about-intro p { font-size: 16.5px; line-height: 1.85; }
.principle-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.principle {
  padding: 24px 26px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.principle h3 { display: flex; align-items: center; gap: 10px; font-size: 17px; margin-bottom: 8px; }
.principle .principle-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex: 0 0 auto;
}
.principle p { margin: 0; font-size: 14.6px; line-height: 1.75; }

.info-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.map-card {
  padding: 24px 26px;
  background: #F7F6F1;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.map-card .map-address { font-size: 15.5px; color: var(--text-main); font-weight: 700; margin-bottom: 4px; }
.map-card .map-sub { color: var(--text-muted); font-size: 13.5px; margin-bottom: 16px; }
.map-embed {
  position: relative;
  height: 190px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #FBFAF6;
}
.map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.map-links { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 24px; align-items: start; }
.contact-card {
  padding: 30px 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: #fff;
}
.contact-card.accent {
  background: #F8F2E5;
  border-color: #E7DCC6;
}
.contact-card h2 { font-size: 22px; margin-bottom: 6px; }
.contact-card .contact-role { color: var(--text-muted); font-size: 14px; margin-bottom: 14px; }
.contact-big {
  display: inline-block;
  color: var(--gold-deep);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}
.contact-lines { display: grid; gap: 10px; margin: 18px 0 0; }
.contact-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--text-main);
  font-size: 15px;
  font-weight: 600;
}
.contact-line .label, .contact-line span { color: var(--text-muted); font-size: 13.5px; font-weight: 500; }
.contact-line strong { margin-left: auto; text-align: right; font-size: 15px; }
.contact-line:hover { border-color: #CBC7BA; color: var(--pine); }

/* Bid PDF generator page (uses bid-form.css on top of this sheet) */
.bid-generator-page { padding-top: 32px; background: var(--bg-soft); }

/* ---------- Privacy policy ---------- */
.policy-shell { max-width: 900px; }
.policy-summary {
  padding: 26px 30px;
  background: var(--stone);
  border: 1px solid #E3DFD2;
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-lg);
}
.policy-summary h2 { margin-bottom: 12px; font-size: 20px; }
.policy-summary .bullet-list li { font-size: 14.8px; }
.policy-summary .bullet-list li:last-child { margin-bottom: 0; }
.policy-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 4px; }
.policy-toc a {
  padding: 6px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: #fff;
  color: var(--gold-deep);
  font-size: 13.2px;
  font-weight: 600;
}
.policy-toc a:hover { border-color: var(--gold); color: var(--gold-ink); }
.policy-body { margin-top: 4px; }
.policy-section {
  padding: 26px 0;
  border-bottom: 1px solid var(--border-light);
  scroll-margin-top: calc(var(--header-height) + 16px);
}
.policy-section:last-child { border-bottom: 0; padding-bottom: 8px; }
.policy-section h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 21px;
}
.policy-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold-tint);
  color: var(--gold-ink);
  font-size: 13.5px;
  font-weight: 800;
}
.policy-section p { font-size: 15px; line-height: 1.8; }
.policy-section .bullet-list li { font-size: 14.8px; }
.policy-table-wrap {
  margin: 8px 0 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow-x: auto;
}
.policy-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14.2px; }
.policy-table caption {
  caption-side: top;
  padding: 12px 14px 4px;
  color: var(--text-muted);
  font-size: 13px;
  text-align: left;
}
.policy-table th, .policy-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-light);
  text-align: left;
  vertical-align: top;
  line-height: 1.7;
}
.policy-table thead th {
  background: var(--stone);
  border-bottom: 1px solid #E3DFD2;
  color: var(--pine);
  font-size: 13.2px;
  font-weight: 800;
}
.policy-table tbody th { width: 96px; background: #FBFAF6; color: var(--text-main); font-weight: 700; }
.policy-table tbody tr:last-child th, .policy-table tbody tr:last-child td { border-bottom: 0; }
.policy-note { margin: 0 0 10px; color: var(--text-muted); font-size: 13.3px; line-height: 1.75; }
.policy-contact {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 22px 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.policy-contact div { display: flex; gap: 14px; font-size: 14.5px; line-height: 1.7; }
.policy-contact span { flex: 0 0 128px; color: var(--text-muted); font-weight: 600; }
.policy-contact strong { color: var(--text-main); }
.policy-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }

/* ---------- Footer ---------- */
.site-footer {
  padding: 54px 0 30px;
  background: var(--pine);
  border-top: 1px solid rgba(203, 170, 110, 0.22);
  color: #B4BCB2;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 44px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-brand h3 {
  margin-bottom: 12px;
  color: #fff;
  font-size: 17px;
  letter-spacing: -0.03em;
}
.footer-brand p { margin: 0 0 10px; color: #B4BCB2; font-size: 13.5px; line-height: 1.75; }
.footer-brand a { color: #E6EAE2; }
.footer-brand a:hover { color: #fff; }
.footer-contact { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13.5px; }
.footer h4, .footer-title {
  margin: 0 0 14px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.footer-list li { margin-bottom: 7px; color: #B4BCB2; font-size: 13.2px; line-height: 1.6; }
.footer-list a { color: #D5DCD2; font-size: 13.2px; }
.footer-list a:hover { color: #fff; }
.footer-bottom { padding-top: 22px; }
.footer-disclaimer {
  margin: 0 0 10px;
  color: #98A096;
  font-size: 12.2px;
  line-height: 1.7;
}
.footer-copy { margin: 0; color: #8A928A; font-size: 12.2px; }
.footer-copy a { color: #B4BCB2; text-decoration: underline; text-underline-offset: 3px; }
.footer-copy a:hover { color: #fff; }

/* ---------- Floating Kakao ---------- */
.kakao-float {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: var(--radius-full);
  background: var(--gold-deep);
  color: #fff;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.02em;
  box-shadow: 0 8px 22px rgba(26, 36, 33, 0.22);
  transition: var(--transition);
}
.kakao-float:hover { background: var(--gold-ink); color: #fff; transform: translateY(-2px); }

/* ---------- Responsive ---------- */
@media (max-width: 1120px) {
  .main-nav { gap: 20px; }
  .main-nav a { font-size: 14.5px; }
  .brand-name { font-size: 15.5px; }
  .brand-sub { font-size: 10px; }
}

@media (max-width: 1040px) {
  .main-nav { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .hero h1 { font-size: 40px; }
  .courts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pricing-grid, .about-strip { grid-template-columns: 1fr; gap: 34px; }
  .pricing-figure img { height: 320px; }
}

@media (max-width: 820px) {
  .section { padding: 62px 0; }
  .hero-inner { padding: 72px 0 68px; }
  .hero h1 { font-size: 32px; }
  .hero-desc { font-size: 16px; }
  .section-head h2, .cta-band h2 { font-size: 26px; }
  .section-head-row { margin-bottom: 28px; }
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .step-image { height: 190px; }
  .placeholder-grid { grid-template-columns: 1fr; }
  .placeholder-grid.channel-grid { grid-template-columns: 1fr; }
  .two-col, .principle-grid, .info-cards, .contact-grid, .fee-grid { grid-template-columns: 1fr; }
  .office-photos { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .office-photos img { height: 150px; }
  .map-embed { height: 230px; }
  .roam-card { flex-direction: column; align-items: flex-start; }
  .form-section { padding: 22px 20px 8px; }
  .field-grid { grid-template-columns: 1fr; gap: 0; }
  .quote-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .page-hero { padding: 42px 0 32px; }
  .page-hero h1 { font-size: 27px; }
  .timeline::before { left: 18px; }
  .tl-item { padding-left: 54px; }
  .tl-num { width: 38px; height: 38px; font-size: 14px; }
  .tl-card { padding: 18px 20px; }
  .kakao-float { right: 14px; bottom: 14px; padding: 11px 16px; font-size: 13.5px; }
  .contact-big { font-size: 24px; }
  .reg-list div { grid-template-columns: 130px 1fr; gap: 10px; }
  .policy-summary { padding: 22px 20px; }
  .policy-contact { padding: 18px 20px; }
  .policy-contact div { flex-direction: column; gap: 2px; }
  .policy-contact span { flex: none; }
}

@media (max-width: 640px) {
  .policy-table { min-width: 0; }
  .policy-table thead { display: none; }
  .policy-table, .policy-table tbody, .policy-table tr, .policy-table th, .policy-table td { display: block; width: auto; }
  .policy-table caption { padding: 10px 16px 2px; }
  .policy-table tr { padding: 14px 16px; border-bottom: 1px solid var(--border-light); }
  .policy-table tbody tr:last-child { border-bottom: 0; }
  .policy-table tbody th { padding: 0 0 6px; border: 0; background: transparent; font-size: 14.5px; }
  .policy-table tbody td { padding: 0 0 8px; border: 0; }
  .policy-table tbody td:last-child { padding-bottom: 0; }
  .policy-table tbody td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    color: var(--text-muted);
    font-size: 12.3px;
    font-weight: 700;
  }
}

@media (max-width: 560px) {
  .contact-line { flex-direction: column; align-items: flex-start; gap: 4px; }
  .contact-line strong { margin-left: 0; }
  .container { padding: 0 18px; }
  h1 { font-size: 27px; }
  .courts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .office-photos { grid-template-columns: 1fr; }
  .office-photos img { height: 220px; }
  .hero-actions .btn { width: 100%; }
  .price-card { flex-direction: column; align-items: flex-start; gap: 4px; }
  .fee-highlight .fee-amount { font-size: 34px; }
  .form-submit-row .btn { width: 100%; }
}
