/* MUMUHOUSE — 단정하고 전문적인 분위기: 네이비 + 흰색 + 연회색, 강조색은 한 가지만 */
:root {
  --navy: #142a4c;
  --navy-deep: #0c1c36;
  --ink: #16202e;
  --text: #3a4554;
  --muted: #6b7684;
  --line: #dde3ea;
  --surface: #f3f5f8;
  --bg: #ffffff;
  --accent: #b4441a;       /* 유일한 강조색: 도장·핵심 표시에만 */
  --accent-soft: #fbeee8;
  --ok: #1f6f4a;
  --radius: 10px;
  --wrap: 1120px;
  --font: 'Pretendard Variable', Pretendard, -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
h1, h2, h3, h4 { color: var(--ink); line-height: 1.3; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(30px, 5vw, 50px); font-weight: 800; }
h2 { font-size: clamp(24px, 3.2vw, 34px); font-weight: 750; }
h3 { font-size: 19px; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--navy); }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 100; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* 준비 중 (재료표 "아니오") */
.ph {
  display: inline-block;
  font-size: .82em;
  font-weight: 600;
  color: var(--muted);
  border: 1px dashed #b7c0cb;
  border-radius: 6px;
  padding: 0 .55em;
  line-height: 1.7;
  background: repeating-linear-gradient(-45deg, #fff, #fff 6px, #f5f7f9 6px, #f5f7f9 12px);
}
.ph-block {
  border: 1px dashed #b7c0cb;
  border-radius: var(--radius);
  padding: 22px;
  color: var(--muted);
  background: repeating-linear-gradient(-45deg, #fff, #fff 8px, #f6f8fa 8px, #f6f8fa 16px);
}
.ph-block strong { color: var(--ink); display: block; margin-bottom: 4px; }

/* 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; font-size: 16px;
  padding: 14px 24px; border-radius: 8px;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: background .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-deep); }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-danger { background: #fff; color: #a1271b; border-color: #e5b9b3; }
.btn-danger:hover { border-color: #a1271b; }
.btn-sm { padding: 9px 16px; font-size: 15px; }
.btn-block { width: 100%; }

/* 머리 */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(6px); }
.header-row { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; }
.logo-mark { width: 28px; height: 28px; background: var(--navy); clip-path: polygon(50% 0, 100% 38%, 100% 100%, 0 100%, 0 38%); position: relative; }
.logo-text { font-weight: 800; letter-spacing: .04em; font-size: 18px; line-height: 1.1; display: flex; flex-direction: column; }
.logo-text small { font-weight: 500; letter-spacing: 0; font-size: 12px; color: var(--muted); }
.nav-desktop { display: flex; gap: 22px; }
.nav-desktop a { text-decoration: none; color: var(--text); font-weight: 600; font-size: 15px; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav-desktop a:hover, .nav-desktop a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--navy); }
.nav-mobile { display: none; }

@media (max-width: 900px) {
  .nav-desktop, .header-cta { display: none; }
  .nav-mobile { display: block; }
  .nav-mobile summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: flex; flex-direction: column; justify-content: center; gap: 5px; padding: 0 11px; }
  .nav-mobile summary::-webkit-details-marker { display: none; }
  .nav-mobile summary span { height: 2px; background: var(--ink); border-radius: 2px; }
  .nav-mobile nav { position: absolute; left: 0; right: 0; top: 68px; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px 20px; display: flex; flex-direction: column; box-shadow: 0 12px 24px rgba(12,28,54,.08); }
  .nav-mobile nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; }
  .nav-mobile nav .btn { margin-top: 16px; }
}

/* 구역 */
.section { padding: 80px 0; }
.section-alt { background: var(--surface); }
.section-head { max-width: 680px; margin-bottom: 40px; }
.eyebrow { display: inline-block; font-size: 14px; font-weight: 700; color: var(--accent); letter-spacing: .06em; margin-bottom: 12px; }
@media (max-width: 640px) { .section { padding: 56px 0; } }

/* 첫 화면 */
.hero { padding: 72px 0 80px; background: linear-gradient(180deg, #fff 0%, var(--surface) 100%); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--navy); box-shadow: inset 0 -0.32em 0 var(--accent-soft); }
.hero-lead { font-size: 19px; color: var(--text); max-width: 34em; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } .hero { padding: 48px 0 56px; } }

/* 건축물대장 모양 카드 */
.register {
  background: #fff; border: 1px solid #c9d1db; border-radius: 4px; position: relative;
  box-shadow: 0 1px 0 #c9d1db, 0 18px 40px rgba(12,28,54,.10);
  font-size: 14px; color: var(--ink);
}
.register-title { text-align: center; font-weight: 800; letter-spacing: .5em; padding: 14px 0 12px; border-bottom: 2px solid var(--ink); font-size: 16px; }
.register table { width: 100%; border-collapse: collapse; }
.register th, .register td { border-bottom: 1px solid #dfe4ea; padding: 11px 14px; text-align: left; vertical-align: top; }
.register th { width: 34%; background: #f6f8fa; font-weight: 600; color: var(--text); border-right: 1px solid #dfe4ea; }
.register .blur { display: inline-block; height: .8em; border-radius: 3px; background: #e6eaef; vertical-align: middle; }
.w35 { width: 35%; } .w45 { width: 45%; } .w55 { width: 55%; } .w70 { width: 70%; } .w80 { width: 80%; }
.sub-label { font-size: 16px; color: var(--muted); margin-bottom: 16px; }
.more-link { margin-top: 20px; }
.others-title { margin: 48px 0 14px; }
.stamp {
  position: absolute; right: 18px; top: 46px; transform: rotate(-9deg);
  border: 3px solid var(--accent); color: var(--accent); border-radius: 6px;
  padding: 6px 14px; font-weight: 800; font-size: 20px; letter-spacing: .08em;
  background: rgba(255,255,255,.75);
}
.register-note { padding: 12px 14px; font-size: 13px; color: var(--muted); }

/* 질문·도움 목록 */
.lead-q { font-size: clamp(20px, 2.6vw, 26px); font-weight: 700; color: var(--ink); line-height: 1.45; border-left: 4px solid var(--accent); padding-left: 18px; margin-bottom: 36px; max-width: 30em; }
.help-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: help; list-style: none; padding: 0; margin: 0; }
.help-grid li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; counter-increment: help; }
.help-grid li::before { content: counter(help, decimal-leading-zero); display: block; font-weight: 800; font-size: 14px; color: var(--accent); margin-bottom: 14px; letter-spacing: .05em; }
.help-grid h3 { margin-bottom: 6px; }
.help-grid p { margin: 0; font-size: 15px; color: var(--muted); }
.help-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.help-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .help-grid, .help-grid.cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .help-grid, .help-grid.cols-2, .help-grid.cols-3 { grid-template-columns: 1fr; } }

.check-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.check-list li { padding: 14px 16px 14px 46px; background: #fff; border: 1px solid var(--line); border-radius: 8px; position: relative; color: var(--ink); font-weight: 600; }
.check-list li::before { content: ''; position: absolute; left: 16px; top: 50%; width: 16px; height: 9px; border-left: 2.5px solid var(--navy); border-bottom: 2.5px solid var(--navy); transform: translateY(-70%) rotate(-45deg); }

/* 진행 순서 */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; list-style: none; padding: 0; margin: 0 0 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.steps li { padding: 26px 24px; border-right: 1px solid var(--line); }
.steps li:last-child { border-right: 0; }
.steps .num { display: inline-flex; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; margin-bottom: 12px; }
.steps h3 { margin-bottom: 4px; }
.steps p { margin: 0; font-size: 15px; color: var(--muted); }
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } .steps li { border-right: 0; border-bottom: 1px solid var(--line); } .steps li:last-child { border-bottom: 0; } }

.fee-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px 20px; background: #fff; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 28px; }
.fee-row strong { color: var(--ink); }

.cta-band { background: var(--navy); color: #dbe3ee; border-radius: 14px; padding: 40px; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 6px; font-size: 26px; }
.cta-band p { margin: 0; }
.cta-band .btn-primary { background: #fff; color: var(--navy); }
.cta-band .btn-primary:hover { background: #eef2f7; }

/* 페이지 머리 */
.page-head { padding: 56px 0 40px; background: var(--surface); border-bottom: 1px solid var(--line); }
.page-head p { font-size: 18px; max-width: 36em; margin: 0; }
.breadcrumb { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.breadcrumb a { color: var(--muted); }

/* 다른 서비스 바로가기 */
.service-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.service-links a { display: block; padding: 18px 20px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 700; background: #fff; }
.service-links a span { display: block; font-weight: 500; font-size: 14px; color: var(--muted); }
.service-links a:hover { border-color: var(--navy); }
@media (max-width: 900px) { .service-links { grid-template-columns: repeat(2, 1fr); } }

/* 양식 */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 36px; }
@media (max-width: 560px) { .form-card { padding: 22px; } }
.trust-note { background: var(--surface); border-radius: 10px; padding: 18px 20px; margin-bottom: 28px; font-size: 15px; }
.trust-note ul { margin: 6px 0 0; padding-left: 20px; }
.trust-note strong { color: var(--ink); }
.field { margin-bottom: 22px; }
.field label, .field legend { display: block; font-weight: 700; color: var(--ink); margin-bottom: 8px; font-size: 16px; }
.field .req { color: var(--accent); font-weight: 700; margin-left: 4px; font-size: 14px; }
.field .opt { color: var(--muted); font-weight: 500; margin-left: 4px; font-size: 14px; }
.field .hint { font-size: 14px; color: var(--muted); margin: -4px 0 8px; }
.field input[type=text], .field input[type=tel], .field input[type=email], .field input[type=password], .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  border: 1px solid #c5ced9; border-radius: 8px; padding: 13px 14px; background: #fff;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy); outline: 2px solid rgba(20,42,76,.15); outline-offset: 0; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #b42318; }
.field .error { color: #b42318; font-size: 14px; font-weight: 600; margin: 6px 0 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }
fieldset { border: 0; padding: 0; margin: 0; }
.choice-row { display: flex; gap: 10px; flex-wrap: wrap; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; }
.choice span { display: inline-block; padding: 10px 16px; border: 1px solid #c5ced9; border-radius: 8px; cursor: pointer; font-weight: 600; color: var(--text); }
.choice input:checked + span { border-color: var(--navy); background: var(--navy); color: #fff; }
.choice input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.consent { background: var(--surface); border-radius: 10px; padding: 18px 20px; font-size: 15px; }
.consent table { width: 100%; border-collapse: collapse; margin: 6px 0 14px; font-size: 14px; }
.consent th, .consent td { text-align: left; padding: 6px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.consent th { width: 30%; color: var(--ink); }
.consent label { display: flex; gap: 10px; align-items: flex-start; font-weight: 700; color: var(--ink); cursor: pointer; }
.consent input[type=checkbox] { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--navy); flex: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.alert { border-radius: 10px; padding: 16px 18px; margin-bottom: 24px; font-weight: 600; }
.alert-error { background: #fdeceb; color: #8a1c12; border: 1px solid #f4c7c2; }
.alert-ok { background: #e8f4ee; color: var(--ok); border: 1px solid #bfdfcd; }

.done-box { text-align: center; padding: 72px 0; }
.done-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--navy); margin: 0 auto 24px; position: relative; }
.done-icon::after { content: ''; position: absolute; left: 21px; top: 20px; width: 22px; height: 12px; border-left: 3px solid #fff; border-bottom: 3px solid #fff; transform: rotate(-45deg); }

/* 사례 */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.tabs a { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--text); font-weight: 600; font-size: 15px; background: #fff; }
.tabs a[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card .tag { font-size: 13px; font-weight: 700; color: var(--accent); }
@media (max-width: 900px) { .card-grid { grid-template-columns: 1fr; } }

/* 소개 */
.about-grid { display: grid; grid-template-columns: 320px 1fr; gap: 48px; align-items: start; }
.photo-fallback { aspect-ratio: 4/5; border-radius: 12px; background: linear-gradient(160deg, var(--navy) 0%, #2b4670 100%); display: flex; align-items: flex-end; padding: 20px; color: #c9d5e6; font-size: 14px; }
.info-list { display: grid; gap: 0; margin: 0; border-top: 1px solid var(--line); }
.info-list > div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.info-list dt { font-weight: 700; color: var(--ink); }
.info-list dd { margin: 0; white-space: pre-line; }
@media (max-width: 800px) { .about-grid { grid-template-columns: 1fr; } .photo-fallback { aspect-ratio: 16/9; } .info-list > div { grid-template-columns: 1fr; gap: 4px; } }

/* 처리방침 */
.policy h2 { font-size: 20px; margin-top: 36px; }
.policy table { width: 100%; border-collapse: collapse; margin-bottom: 16px; font-size: 15px; }
.policy th, .policy td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.policy th { background: var(--surface); width: 28%; color: var(--ink); }

/* 꼬리 */
.site-footer { background: var(--navy-deep); color: #aab6c7; padding: 48px 0 40px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 24px 48px; }
.footer-brand { color: #fff; font-weight: 800; letter-spacing: .04em; font-size: 18px; margin: 0; }
.footer-info { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 24px; margin: 0; }
.footer-info div { display: flex; gap: 12px; }
.footer-info dt { color: #7f8da2; min-width: 96px; }
.footer-info dd { margin: 0; color: #dbe3ee; }
.footer-info a { color: #dbe3ee; }
.site-footer .ph { color: #c2ccd9; border-color: #4a5d7a; background: transparent; }
.footer-links { grid-column: 1 / -1; margin: 8px 0 0; padding-top: 20px; border-top: 1px solid #23395a; }
.footer-links a { color: #fff; }
@media (max-width: 800px) { .footer-grid, .footer-info { grid-template-columns: 1fr; } }

/* 휴대폰 하단 고정 상담 버튼 */
.sticky-cta { display: none; }
@media (max-width: 900px) {
  .has-sticky { padding-bottom: 84px; }
  .sticky-cta { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); border-top: 1px solid var(--line); }
}

/* 관리자 */
.admin-body { background: var(--surface); }
.admin-bar { background: var(--navy-deep); color: #fff; }
.admin-bar .wrap { display: flex; align-items: center; gap: 16px; height: 58px; }
.admin-bar a { color: #fff; text-decoration: none; font-weight: 700; }
.admin-bar .spacer { margin-left: auto; }
.admin-bar form { margin: 0; }
.admin-bar button { background: transparent; border: 1px solid #3c5170; color: #dbe3ee; border-radius: 6px; padding: 6px 12px; font: inherit; font-size: 14px; cursor: pointer; }
.admin-main { padding: 32px 0 64px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.stat-row a { display: block; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; text-decoration: none; color: var(--text); }
.stat-row a[aria-current="page"] { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.stat-row b { display: block; font-size: 26px; color: var(--ink); line-height: 1.2; }
@media (max-width: 700px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }
.table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 640px; }
.admin-table th, .admin-table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); }
.admin-table th { font-size: 13px; color: var(--muted); font-weight: 700; }
.admin-table tr:hover td { background: #fafbfc; }
.admin-table a { font-weight: 700; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.badge-new { background: var(--accent-soft); color: var(--accent); }
.badge-contacted { background: #e7eef8; color: var(--navy); }
.badge-done { background: #e8f4ee; color: var(--ok); }
.detail-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 860px) { .detail-grid { grid-template-columns: 1fr; } }
.kv { margin: 0; }
.kv > div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.kv dt { color: var(--muted); font-weight: 600; }
.kv dd { margin: 0; color: var(--ink); white-space: pre-wrap; }
.login-box { max-width: 420px; margin: 80px auto; }
.detail-grid form + form { margin-top: 16px; }
.admin-main h1 { font-size: 26px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.panel label.field { display: flex; gap: 8px; align-items: center; font-weight: 600; }
