:root {
  color-scheme: light;
  --green: #2F7D4F;
  --green-dark: #235F3C;
  --sprout: #A8D5A2;
  --sprout-soft: #E4F2DF;
  --ivory: #FFF8E7;
  --paper: #FFFDF7;
  --ink: #26302A;
  --ink-soft: #55615A;
  --line: #E4DCC8;
  --radius: 14px;
  --top-height: 96px;
  --font: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--top-height);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

/* 항상 보이는 맨 위 영역 */
.site-top {
  position: sticky;
  top: 0;
  z-index: 10;
}

.notice {
  background: var(--ink);
  color: var(--ivory);
  font-size: 14px;
  line-height: 1.3;
  padding: 7px 16px;
  text-align: center;
}

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 60px;
}

.logo {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  color: var(--green);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.site-header nav { display: flex; }

.site-header nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  min-height: 46px;
  padding: 0 8px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

.site-header nav a:hover { background: var(--sprout-soft); }

/* 첫 화면 */
.hero { position: relative; }

.hero-photo {
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: 70% 60%;
}

.hero-panel { padding: 24px 0 36px; }

.tag {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--sprout);
  font-size: 14px;
  font-weight: 700;
}

h1 {
  margin-top: 12px;
  color: var(--green-dark);
  font-size: clamp(32px, 8.4vw, 46px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.hero-text { margin-top: 12px; font-size: 18px; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 2px solid var(--green);
  border-radius: 10px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); border-color: var(--green-dark); }
.btn-ghost { background: transparent; color: var(--green-dark); }
.btn-ghost:hover { background: var(--sprout-soft); }

.fine {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 15px;
}

/* 공통 구역 */
.section { padding: 56px 0; }
.section-tint { background: var(--paper); border-block: 1px solid var(--line); }

.eyebrow {
  color: var(--green);
  font-size: 15px;
  font-weight: 700;
}

h2 {
  color: var(--green-dark);
  font-size: clamp(26px, 6vw, 34px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.lead { margin-top: 12px; font-size: 18px; }

.sub-title {
  color: var(--green-dark);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* 회사 소개 */
.about-grid { display: grid; gap: 28px; }

.greeting {
  padding: 22px;
  border-left: 5px solid var(--sprout);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--paper);
}

.greeting figcaption { color: var(--green); font-size: 15px; font-weight: 700; }
.greeting blockquote { margin-top: 6px; }

#about .sub-title { margin-top: 44px; }

.services {
  display: grid;
  gap: 14px;
  margin-top: 16px;
  counter-reset: service;
}

.services li {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  counter-increment: service;
}

.services li::before {
  content: counter(service);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}

.services h4 { margin-top: 10px; font-size: 19px; }
.services p { margin-top: 4px; color: var(--ink-soft); }

.strengths { padding: 40px 0; background: var(--sprout-soft); }

.strength-list { display: grid; gap: 16px; margin-top: 16px; }
.strength-list strong { display: block; font-size: 18px; }
.strength-list span { color: var(--ink-soft); }

/* 필터 */
.filters {
  display: grid;
  gap: 14px;
  margin-top: 24px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.filter-label { display: block; margin-bottom: 6px; font-size: 15px; font-weight: 700; }
.filter-buttons { display: flex; flex-wrap: wrap; gap: 8px; }

.filter-btn {
  min-height: 44px;
  padding: 0 16px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.filter-btn:hover { border-color: var(--green); }

.filter-btn[aria-pressed="true"] {
  border-color: var(--green);
  background: var(--sprout);
  font-weight: 800;
}

.filter-btn[aria-pressed="true"]::before { content: "✓ "; }

.result-count { margin-top: 18px; font-weight: 700; }

/* 매물 카드 */
.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 18px;
  margin-top: 12px;
}

.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.card-photo { position: relative; }

.card-photo img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.photo-note {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(38, 48, 42, 0.85);
  color: #fff;
  font-size: 13px;
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
}

.chips { display: flex; flex-wrap: wrap; gap: 6px; }

.chip {
  padding: 1px 10px;
  border-radius: 6px;
  background: var(--sprout-soft);
  font-size: 14px;
  font-weight: 700;
}

.chip-deal { background: var(--green); color: #fff; }

.card h3 { font-size: 20px; line-height: 1.35; letter-spacing: -0.02em; }

.price {
  color: var(--green-dark);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.4;
}

.feature { font-weight: 600; }

.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.45;
}

.facts dt { color: var(--ink-soft); font-size: 14px; }
.facts dd { font-weight: 600; }
.facts .wide { grid-column: 1 / -1; }

.card-note {
  margin-top: auto;
  padding-top: 8px;
  color: var(--ink-soft);
  font-size: 14px;
}

.empty {
  margin-top: 12px;
  padding: 32px 16px;
  border: 1px dashed var(--green);
  border-radius: var(--radius);
  text-align: center;
}

.empty[hidden] { display: none; }
.empty .btn { margin-top: 12px; }

/* 위치·문의 */
.info-grid { display: grid; gap: 24px; }

.info-list {
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.info-list dt { color: var(--ink-soft); font-size: 15px; }
.info-list dd { font-size: 18px; font-weight: 700; overflow-wrap: anywhere; }

.info-list small {
  display: block;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 400;
}

/* 맨 아래 */
.site-footer {
  padding: 36px 0 44px;
  background: var(--ink);
  color: var(--ivory);
  font-size: 15px;
}

.footer-notice { margin-bottom: 8px; font-size: 19px; font-weight: 800; }

.footer-info {
  display: grid;
  gap: 4px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 248, 231, 0.25);
}

.footer-info div { display: flex; flex-wrap: wrap; gap: 0 8px; }
.footer-info dt { opacity: 0.75; }

/* 넓은 화면 */
@media (min-width: 720px) {
  .services, .strength-list { grid-template-columns: repeat(3, 1fr); }
  .filters { grid-template-columns: 1fr 1fr; }
  .info-grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .footer-info { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 960px) {
  :root { --top-height: 104px; }
  .section { padding: 80px 0; }
  .about-grid { grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }

  .hero-photo { height: 620px; object-position: center 62%; }

  .hero-inner {
    position: absolute;
    inset: 0;
    left: 50%;
    display: flex;
    align-items: center;
    transform: translateX(-50%);
  }

  .hero-panel {
    max-width: 470px;
    padding: 32px;
    border-radius: var(--radius);
    background: var(--ivory);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
