/* 푸른공인중개사사무소 — 공용 스타일 */
:root {
  --navy: #14284b;
  --navy-deep: #0d1b33;
  --navy-soft: #e8edf5;
  --bg: #f6f8fb;
  --white: #ffffff;
  --ink: #1d2733;
  --muted: #667389;
  --line: #dde3ec;
  --amber: #f0a928;
  --amber-deep: #d68f10;
  --sale: #c9482f;
  --jeonse: #1f7a5a;
  --rent: #3469c4;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: "Noto Sans KR", sans-serif; line-height: 1.7; padding-bottom: 64px; word-break: keep-all; overflow-wrap: break-word; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* 샘플 배너 */
.sample { background: var(--navy-deep); color: #a9b6cc; text-align: center; font-size: 12px; padding: 7px 16px; line-height: 1.6; }
.sample b { color: #fff; font-weight: 500; }
.sample a { color: #fff; text-decoration: underline; }

/* 헤더 */
header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
header .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 68px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; line-height: 1.25; }
.logo .mark { width: 34px; height: 34px; border-radius: 9px; background: var(--navy); position: relative; flex: none; }
.logo .mark::before { content: ""; position: absolute; left: 8px; right: 8px; bottom: 8px; height: 12px; background: var(--amber); }
.logo .mark::after { content: ""; position: absolute; left: 5px; top: 6px; border: 12px solid transparent; border-bottom: 10px solid #fff; border-top: 0; }
.logo strong { display: block; font-size: 17px; font-weight: 700; color: var(--navy); letter-spacing: -.01em; }
.logo span { display: block; font-size: 10px; letter-spacing: .24em; color: var(--muted); }
.gnb { display: flex; align-items: center; gap: 2px; }
.gnb a { font-size: 14px; color: var(--muted); padding: 8px 12px; border-radius: 8px; white-space: nowrap; transition: color .2s, background .2s; }
.gnb a:hover { color: var(--navy); }
.gnb a[aria-current="page"] { color: var(--navy); font-weight: 700; background: var(--navy-soft); }
.gnb a.cta { background: var(--navy); color: #fff; margin-left: 8px; padding: 8px 16px; font-weight: 500; }
.gnb a.cta:hover, .gnb a.cta[aria-current="page"] { background: var(--amber); color: var(--navy-deep); }

/* 버튼 */
.btn { display: inline-block; padding: 13px 26px; font-size: 15px; font-weight: 500; border-radius: 10px; text-align: center; border: 1px solid transparent; cursor: pointer; font-family: inherit; transition: background .2s, color .2s, border-color .2s; }
.btn.amber { background: var(--amber); color: var(--navy-deep); font-weight: 700; }
.btn.amber:hover { background: var(--amber-deep); }
.btn.navy { background: var(--navy); color: #fff; }
.btn.navy:hover { background: var(--navy-deep); }
.btn.line { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn.line:hover { background: var(--navy); color: #fff; }
.btn.line-light { border-color: rgba(255,255,255,.65); color: #fff; }
.btn.line-light:hover { background: rgba(255,255,255,.12); }
.btn.kakao { background: #fee500; color: #3b1e1e; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* 섹션 공통 */
section { padding: 80px 0; }
section.white { background: var(--white); }
section.navy { background: var(--navy); color: #fff; }
.head { margin-bottom: 36px; }
.head.center { text-align: center; }
.eyebrow { display: block; color: var(--amber-deep); font-size: 12px; font-weight: 700; letter-spacing: .24em; margin-bottom: 8px; }
.navy .eyebrow, .hero .eyebrow { color: var(--amber); }
.head h2 { font-size: clamp(24px, 3.8vw, 32px); font-weight: 700; line-height: 1.4; color: var(--navy); letter-spacing: -.02em; }
.navy .head h2 { color: #fff; }
.head p { color: var(--muted); margin-top: 10px; }
.note { color: var(--muted); font-size: 13px; margin-top: 18px; }

/* 서브페이지 상단 */
.page-top { padding: 56px 0 48px; background: var(--navy); color: #fff; }
.page-top .eyebrow { color: var(--amber); }
.page-top h1 { font-size: clamp(28px, 5vw, 38px); font-weight: 700; letter-spacing: -.02em; margin-bottom: 8px; }
.page-top p { color: #b9c5da; max-width: 560px; }

/* 홈 히어로 */
.hero { position: relative; color: #fff; overflow: hidden; padding: 88px 0 140px; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(13,27,51,.9) 0%, rgba(13,27,51,.62) 55%, rgba(13,27,51,.28) 100%); }
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(31px, 5.6vw, 52px); font-weight: 700; line-height: 1.32; letter-spacing: -.03em; margin: 6px 0 18px; }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero p { color: #d4dcea; max-width: 480px; margin-bottom: 30px; }

/* 빠른 문의 박스 (히어로에 걸침) */
.quick { position: relative; z-index: 2; margin-top: -76px; }
.quick-box { background: var(--white); border-radius: 14px; box-shadow: 0 14px 40px rgba(13,27,51,.16); padding: 24px; }
.quick-box h2 { font-size: 17px; color: var(--navy); margin-bottom: 14px; }
.tabs { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.tabs label { cursor: pointer; }
.tabs input { position: absolute; opacity: 0; pointer-events: none; }
.tabs span { display: inline-block; padding: 8px 18px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; color: var(--muted); transition: all .2s; }
.tabs input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 500; }
.tabs input:focus-visible + span { outline: 2px solid var(--amber); outline-offset: 2px; }
.quick-grid { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 10px; }

/* 폼 요소 공통 */
.field { margin-bottom: 18px; }
.field label, .field .lab { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; color: var(--navy); }
.field label em, .field .lab em { color: var(--sale); font-style: normal; margin-left: 2px; }
input[type="text"], input[type="tel"], select, textarea { width: 100%; padding: 13px 14px; font-size: 15px; font-family: inherit; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 10px; transition: border-color .2s, box-shadow .2s; }
textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(20,40,75,.12); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); margin: 6px 0 20px; line-height: 1.6; }
.agree input { margin-top: 4px; accent-color: var(--navy); }
.success { display: none; margin-top: 18px; padding: 16px 18px; background: #eaf6f0; border: 1px solid #b9e0cd; border-radius: 10px; color: #1b5a41; font-size: 14px; }
.success.show { display: block; }
.success strong { display: block; margin-bottom: 2px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg label { margin: 0; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; text-align: center; padding: 13px 10px; border: 1px solid var(--line); border-radius: 10px; font-size: 15px; font-weight: 500; color: var(--muted); background: #fff; transition: all .2s; }
.seg input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--amber); outline-offset: 2px; }

/* 매물 카드 */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(13,27,51,.1); }
.card .pic { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--navy-soft); }
.card .pic img { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; left: 12px; top: 12px; padding: 3px 11px; font-size: 12px; font-weight: 700; color: #fff; border-radius: 6px; }
.badge.sale { background: var(--sale); }
.badge.jeonse { background: var(--jeonse); }
.badge.rent { background: var(--rent); }
.card .ex { position: absolute; right: 12px; top: 12px; padding: 3px 9px; font-size: 11px; background: rgba(13,27,51,.78); color: #fff; border-radius: 6px; }
.card .body { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.card .price { font-size: 20px; font-weight: 700; color: var(--navy); letter-spacing: -.02em; }
.card h3 { font-size: 15px; font-weight: 500; margin: 2px 0 10px; }
.card .spec { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.card .spec li { font-size: 12px; color: var(--muted); background: var(--bg); border-radius: 6px; padding: 2px 9px; }
.card .desc { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.card .ask { margin-top: auto; font-size: 14px; font-weight: 500; color: var(--navy); }
.card .ask::after { content: " →"; color: var(--amber-deep); }
.more-link { text-align: center; margin-top: 32px; }

/* 필터 */
.filter { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 26px; }
.filter button { padding: 9px 20px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--muted); font-size: 14px; font-family: inherit; cursor: pointer; transition: all .2s; }
.filter button:hover { border-color: var(--navy); color: var(--navy); }
.filter button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 500; }
.filter .count { margin-left: auto; font-size: 14px; color: var(--muted); }
.empty { display: none; text-align: center; padding: 48px 0; color: var(--muted); }

/* 신뢰 포인트 */
.reasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.reasons > div { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 28px 24px; }
.reasons .num { display: inline-block; font-size: 13px; font-weight: 700; color: var(--navy-deep); background: var(--amber); border-radius: 6px; padding: 1px 9px; margin-bottom: 12px; }
.reasons h3 { font-size: 18px; color: var(--navy); margin-bottom: 6px; }
.reasons p { font-size: 14px; color: var(--muted); }

/* 동네 소개 */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.split img { border-radius: 14px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split h2 { font-size: clamp(24px, 3.6vw, 30px); color: var(--navy); line-height: 1.4; margin-bottom: 14px; letter-spacing: -.02em; }
.split p { color: var(--muted); margin-bottom: 12px; }
.split.rev .txt { order: 2; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.facts > div { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.facts h3 { font-size: 17px; color: var(--navy); margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.facts h3::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--amber); }
.facts p { font-size: 14px; color: var(--muted); }
.trend { background: var(--navy-soft); border-radius: 14px; padding: 28px; }
.trend h3 { color: var(--navy); font-size: 18px; margin-bottom: 8px; }
.trend p { font-size: 15px; color: #42506a; margin-bottom: 8px; }

/* 중개 안내 */
.steps { counter-reset: s; display: grid; gap: 14px; }
.steps li { counter-increment: s; position: relative; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px 20px 72px; }
.steps li::before { content: counter(s); position: absolute; left: 20px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; display: grid; place-items: center; }
.steps b { display: block; color: var(--navy); font-size: 16px; }
.steps span { font-size: 14px; color: var(--muted); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 26px; }
.panel h3 { color: var(--navy); font-size: 18px; margin-bottom: 12px; }
.panel li { position: relative; padding: 6px 0 6px 20px; font-size: 14px; border-bottom: 1px dashed var(--line); }
.panel li:last-child { border-bottom: 0; }
.panel li::before { content: "✓"; position: absolute; left: 0; color: var(--amber-deep); font-weight: 700; }
.switch { display: flex; gap: 8px; margin-bottom: 22px; flex-wrap: wrap; }
.switch button { padding: 10px 22px; border: 1px solid var(--line); background: #fff; border-radius: 10px; font-size: 15px; font-family: inherit; color: var(--muted); cursor: pointer; transition: all .2s; }
.switch button[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 500; }
.pane[hidden] { display: none; }
.fee { background: var(--white); border-left: 4px solid var(--amber); border-radius: 0 14px 14px 0; padding: 22px 24px; }
.fee h3 { color: var(--navy); font-size: 17px; margin-bottom: 4px; }
.fee p { font-size: 14px; color: var(--muted); }

/* 문의 */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: start; }
.form { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 30px; }
.side { display: grid; gap: 16px; }
.side > div { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.side h3 { font-size: 17px; color: var(--navy); margin-bottom: 8px; }
.side p { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.side .btn { display: block; margin-top: 8px; }
.rules li { font-size: 14px; padding: 5px 0; color: var(--muted); }
.rules b { color: var(--navy); margin-right: 6px; font-weight: 500; }

/* 하단 CTA */
.cta-box { background: var(--navy); color: #fff; text-align: center; }
.cta-box h2 { font-size: clamp(24px, 3.8vw, 32px); margin-bottom: 10px; letter-spacing: -.02em; }
.cta-box p { color: #b9c5da; margin-bottom: 26px; }
.cta-box .btns { justify-content: center; }

/* 푸터 */
footer { background: var(--navy-deep); color: #9fabc2; padding: 44px 0 36px; font-size: 13px; }
footer .wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: 32px; }
footer .logo strong { color: #fff; }
footer .logo span { color: #7e8ba3; }
footer .logo .mark { background: #fff; }
footer .logo .mark::after { border-bottom-color: var(--navy); }
footer .about p { margin-top: 12px; }
footer dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; }
footer dt { color: #7e8ba3; }
footer dd a { text-decoration: underline; }
footer .legal { grid-column: 1 / -1; border-top: 1px solid #243556; padding-top: 18px; font-size: 12px; color: #7e8ba3; }
footer .legal b { color: #b9c5da; font-weight: 500; }
footer .copy { grid-column: 1 / -1; font-size: 12px; color: #6a7790; }

/* 하단 고정 바 */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: 1fr 1fr 1.4fr; background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(13,27,51,.08); }
.bar a { text-align: center; padding: 15px 8px; font-size: 14px; font-weight: 500; color: var(--navy); }
.bar a + a { border-left: 1px solid var(--line); }
.bar a:last-child { background: var(--amber); color: var(--navy-deep); font-weight: 700; }

/* 반응형 */
@media (max-width: 860px) {
  section { padding: 60px 0; }
  .cards, .reasons { grid-template-columns: 1fr 1fr; }
  .split, .two, .contact-grid, footer .wrap { grid-template-columns: 1fr; }
  .split.rev .txt { order: 0; }
  .quick-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  header .wrap { min-height: 60px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
  .gnb { width: 100%; justify-content: space-between; overflow-x: auto; scrollbar-width: none; }
  .gnb::-webkit-scrollbar { display: none; }
  .gnb a { padding: 7px 8px; font-size: 13px; }
  .gnb a.cta { margin-left: 2px; padding: 7px 12px; }
  .cards, .reasons, .facts, .field-row { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 120px; }
  .form { padding: 22px 18px; }
  .filter .count { width: 100%; margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .btn { transition: none; }
}
