/* 봄길부동산 (교육용 가상 자료) — 색은 회사소개.md의 추천 색상 */
:root {
  --green: #2F7D4F;        /* 봄길 초록: 제목·주요 버튼 */
  --green-dark: #24633E;
  --sprout: #A8D5A2;       /* 새싹 연두: 강조 배경·선택된 필터 */
  --sprout-soft: #E4F2E1;
  --ivory: #FFF8E7;        /* 아이보리: 페이지 바탕 */
  --ivory-deep: #F7EED6;
  --ink: #26302A;          /* 짙은 글자: 본문 */
  --ink-soft: #5B665E;
  --line: #E6DCC2;
  --white: #FFFFFF;
  --alert: #8A4B00;
  --alert-bg: #FFE7B8;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(38, 48, 42, 0.08);
  --font: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", "Noto Sans KR", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { line-height: 1.3; margin: 0; }
a { color: inherit; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--ink-soft); font-size: 0.92em; }

/* 교육용 띠 */
.edu-banner {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px;
  padding: 8px 16px;
  background: var(--alert-bg); color: var(--alert);
  font-size: 14px; text-align: center;
}
.edu-banner strong { font-weight: 800; }

/* 머리말 */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 248, 231, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.logo { font-size: 20px; font-weight: 800; color: var(--green); text-decoration: none; white-space: nowrap; }
.logo-tag {
  margin-left: 6px; padding: 2px 6px; border-radius: 6px;
  background: var(--alert-bg); color: var(--alert);
  font-size: 11px; font-weight: 700; vertical-align: middle;
}
.main-nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.main-nav::-webkit-scrollbar { display: none; }
.main-nav a {
  padding: 8px 12px; border-radius: 999px;
  text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap;
}
.main-nav a:hover, .main-nav a:focus-visible { background: var(--sprout-soft); color: var(--green-dark); }

/* 첫 화면 */
.hero { position: relative; min-height: 560px; display: flex; align-items: center; overflow: hidden; color: var(--white); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 45, 30, 0.78) 0%, rgba(20, 45, 30, 0.45) 55%, rgba(20, 45, 30, 0.1) 100%); }
.hero-content { position: relative; padding-top: 64px; padding-bottom: 72px; text-shadow: 0 1px 12px rgba(10, 30, 18, 0.55); }
.hero-kicker { margin: 0 0 12px; font-weight: 700; color: var(--sprout); }
.hero h1 { font-size: clamp(34px, 6vw, 56px); font-weight: 800; letter-spacing: -0.02em; }
.hero-sub { max-width: 30em; margin: 18px 0 28px; font-size: 18px; opacity: 0.95; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.photo-note {
  position: absolute; right: 12px; bottom: 10px; margin: 0;
  padding: 3px 8px; border-radius: 6px;
  background: rgba(0, 0, 0, 0.45); font-size: 12px;
}

/* 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
}
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-dark); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.85); color: var(--white); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.15); }
.btn:focus-visible, .filter-buttons button:focus-visible, .main-nav a:focus-visible { outline: 3px solid var(--sprout); outline-offset: 2px; }

/* 구역 공통 */
.section { padding: 72px 0; }
.section-tint { background: var(--ivory-deep); }
.section-kicker { margin: 0 0 6px; color: var(--green); font-weight: 800; font-size: 15px; }
.section h2 { font-size: clamp(26px, 4vw, 34px); color: var(--ink); letter-spacing: -0.01em; }
.lead { max-width: 44em; margin: 14px 0 0; font-size: 17px; }
.sub-title { margin: 44px 0 16px; font-size: 20px; color: var(--green); }

/* 서비스 카드 */
.card-grid { display: grid; gap: 16px; }
.card-grid.three { grid-template-columns: repeat(3, 1fr); }
.info-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.info-num { display: inline-block; margin-bottom: 10px; color: var(--green); font-weight: 800; font-size: 14px; }
.info-card h4 { font-size: 19px; margin-bottom: 8px; }
.info-card p { margin: 0; color: var(--ink-soft); }

/* 강점 */
.strengths { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(3, 1fr); }
.strengths li { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border-left: 4px solid var(--green); background: var(--sprout-soft); border-radius: 0 var(--radius) var(--radius) 0; }
.strengths span { color: var(--ink-soft); }

/* 인사말 */
.greeting { margin: 44px 0 0; padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.greeting blockquote { margin: 0; font-size: 18px; }
.greeting blockquote p { margin: 0; }
.greeting figcaption { margin-top: 14px; font-weight: 700; color: var(--green); }

/* 필터 */
.filters { display: flex; flex-wrap: wrap; gap: 16px 32px; margin: 28px 0 8px; }
.filter-group { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.filter-label { font-weight: 800; min-width: 2.5em; }
.filter-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-buttons button {
  min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--white); color: var(--ink);
  font: inherit; font-weight: 600; cursor: pointer;
}
.filter-buttons button:hover { border-color: var(--green); }
.filter-buttons button[aria-pressed="true"] { background: var(--sprout); border-color: var(--green); color: var(--green-dark); font-weight: 800; }
.result-count { margin: 12px 0 18px; color: var(--ink-soft); }

/* 매물 카드 */
.listing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.listing-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.card-photo { position: relative; aspect-ratio: 3 / 2; background: var(--sprout-soft); }
.card-photo img { width: 100%; height: 100%; object-fit: cover; }
.badge-row { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; }
.badge { padding: 3px 9px; border-radius: 999px; font-size: 13px; font-weight: 800; }
.badge-deal { background: var(--green); color: var(--white); }
.badge-type { background: var(--white); color: var(--green-dark); }
.badge-virtual { position: absolute; top: 10px; right: 10px; background: var(--alert-bg); color: var(--alert); }
.card-photo-note { position: absolute; right: 8px; bottom: 8px; padding: 2px 7px; border-radius: 6px; background: rgba(0, 0, 0, 0.5); color: var(--white); font-size: 11px; }
.card-body { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 20px; flex: 1; }
.card-id { margin: 0; font-size: 13px; color: var(--ink-soft); font-weight: 600; }
.card-body h3 { font-size: 19px; }
.card-price { margin: 0; font-size: 22px; font-weight: 800; color: var(--green); letter-spacing: -0.01em; }
.card-specs { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0; font-size: 15px; }
.card-specs dt { color: var(--ink-soft); }
.card-specs dd { margin: 0; }
.card-feature { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--sprout-soft); font-size: 15px; }
.card-address { margin: auto 0 0; font-size: 13px; color: var(--ink-soft); }

.empty-state { padding: 48px 20px; text-align: center; background: var(--white); border: 1px dashed var(--line); border-radius: var(--radius); }
.empty-state p { margin: 0 0 16px; font-size: 17px; }

/* 찾아오는 길 · 문의 */
.location-box { margin-top: 24px; padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.info-list { margin: 0; display: grid; gap: 12px; }
.info-list div { display: grid; grid-template-columns: 6em 1fr; gap: 12px; }
.info-list dt { font-weight: 800; color: var(--green); }
.info-list dd { margin: 0; }
.notice { margin: 18px 0 0; padding: 12px 14px; border-radius: 10px; background: var(--alert-bg); color: var(--alert); font-size: 15px; }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 28px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { counter-increment: step; position: relative; display: flex; flex-direction: column; gap: 4px; padding: 22px 20px 20px 64px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.steps li::before {
  content: counter(step); position: absolute; left: 18px; top: 20px;
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--green); color: var(--white); font-weight: 800;
}
.steps span { color: var(--ink-soft); }
.contact-list { padding: 24px 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }

/* 맨 아래 */
.site-footer { padding: 40px 0 48px; background: var(--ink); color: #DCE3DD; font-size: 14px; }
.site-footer p { margin: 4px 0; }
.site-footer .muted { color: #A9B4AC; }
.footer-alert { display: inline-block; margin-bottom: 12px !important; padding: 6px 12px; border-radius: 8px; background: var(--alert-bg); color: var(--alert); font-weight: 800; font-size: 15px; }

/* 태블릿 */
@media (max-width: 960px) {
  .listing-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid.three, .strengths, .steps { grid-template-columns: 1fr; }
}

/* 휴대폰 */
@media (max-width: 640px) {
  html { scroll-padding-top: 150px; }
  .container { padding: 0 16px; }
  .edu-banner { font-size: 13px; }
  .header-inner { flex-direction: column; align-items: stretch; gap: 0; min-height: 0; padding-top: 8px; }
  .main-nav { margin: 0 -16px; padding: 4px 12px 8px; }
  .main-nav a { padding: 6px 10px; font-size: 14px; }
  .hero { min-height: 480px; }
  .hero-shade { background: linear-gradient(180deg, rgba(20, 45, 30, 0.55) 0%, rgba(20, 45, 30, 0.8) 100%); }
  .hero-sub { font-size: 16px; }
  .section { padding: 52px 0; }
  .listing-grid { grid-template-columns: 1fr; }
  .filters { gap: 14px; }
  .filter-group { align-items: flex-start; flex-direction: column; gap: 8px; }
  .filter-buttons button { padding: 0 14px; }
  .info-list div { grid-template-columns: 1fr; gap: 2px; }
  .location-box, .contact-list, .greeting { padding: 20px; }
}
