/* =========================================================
   수리수리하우스 (SURI SURI HOUSE) — style.css
   design-system.md 기준 CSS 커스텀 프로퍼티 + 공통 컴포넌트
   ========================================================= */

:root {
  /* =======================================================
     1. PRIMITIVE — 원색 스케일 (로고 팔레트에서 파생, 실제 사용 중인
        값은 정확히 보존하고 옅은 톤 몇 개만 새로 보강했다)
     ======================================================= */
  --color-pine-100: #E7EEEB;
  --color-pine-500: #346550;
  --color-pine-800: #1E3A2E;
  --color-pine-950: #12241B;

  --color-clay-100: #F2ECE9;
  --color-clay-600: #A15C2E;
  --color-clay-700: #7A3E1D;

  --color-sage-100: #EAEDE9;
  --color-sage-500: #6F8060;
  --color-sage-700: #47533C;

  --color-sand-50:  #F7F6EE;
  --color-sand-100: #ECEAD9;
  --color-sand-300: #D8D3BE;
  --color-sand-800: #5B5648;
  --color-sand-900: #24211B;

  --color-ondark-50:  #F3F1E4;
  --color-ondark-400: #A9B6A5;

  /* =======================================================
     2. SEMANTIC — 용도별 별칭. 컴포넌트 CSS는 전부 이 레이어만
        참조한다(프리미티브를 직접 쓰지 않는다).
     ======================================================= */
  --pine: var(--color-pine-800);
  --pine-deep: var(--color-pine-950);
  --clay: var(--color-clay-600);
  --clay-dark: var(--color-clay-700);
  --sage: var(--color-sage-500);
  --bg: var(--color-sand-100);
  --surface: var(--color-sand-50);
  --sage-pale: #E4E7DA; /* 그린 계열 옅은 서페이스 — pine/sage 스케일 어느 쪽에도 정확히 맞지 않는 독립 톤이라 그대로 유지 */
  --line: var(--color-sand-300);
  --ink: var(--color-sand-900);
  --ink-muted: var(--color-sand-800);
  --on-dark: var(--color-ondark-50);
  --on-dark-muted: var(--color-ondark-400);

  /* =======================================================
     TYPOGRAPHY — 프리미티브 크기 스케일. 실제 쓰이는 14개 값을
     그대로 이름 붙였다(억지로 8단계로 줄이지 않음 — 이미 화면별로
     검증된 값들이라 숫자를 바꾸는 대신 참조 가능하게만 정리했다).
     ======================================================= */
  --text-11: 11px;
  --text-12: 12px;
  --text-13: 13px;
  --text-14: 14px;
  --text-15: 15px;
  --text-16: 16px;
  --text-17: 17px;
  --text-18: 18px;
  --text-19: 19px;
  --text-20: 20px;
  --text-22: 22px;
  --text-27: 27px;
  --text-38: 38px;
  --text-64: 64px;

  /* 2026-09-07: 세리프(Noto Serif KR) → Pretendard Black으로 교체(모던·심플 방향, 사용자 확정).
     헤딩 전용 패밀리를 따로 두지 않고 본문과 통일 — weight로만 위계를 만든다. */
  --font-display: var(--font-body);
  --font-body: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Malgun Gothic', system-ui, sans-serif;

  /* radius */
  --radius-pill: 999px;
  --radius-box: 10px;

  /* signature button shape: 잘린 모서리(재단된 원단 견본 태그) — 대각선 모서리 두 곳을 잘라
     로고의 각진 삼각 실루엣과 같은 언어를 쓰면서 필박스보다 단호한 인상을 준다 */
  --clip-btn: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  --clip-btn-sm: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);

  /* spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 40px;
  --space-8: 56px;
  --space-9: 80px;
  --space-10: 120px;

  /* shadow — 카드/버튼에 입체감을 주는 최소 셋. 웜톤 배경이라 순검정 대신
     pine-deep 계열 반투명으로 그림자를 만들어 톤이 붕 뜨지 않게 한다 */
  --shadow-sm: 0 1px 2px rgba(18, 36, 27, .06), 0 1px 3px rgba(18, 36, 27, .08);
  --shadow-md: 0 4px 10px rgba(18, 36, 27, .08), 0 2px 4px rgba(18, 36, 27, .06);
  --shadow-lg: 0 16px 32px rgba(18, 36, 27, .14), 0 4px 10px rgba(18, 36, 27, .08);

  /* layout */
  --container-max: 1180px;
  --article-max: 680px;
}

/* ---------- reset / base ---------- */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  line-height: 1.75;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0;
}

h1 { font-size: var(--text-38); line-height: 1.08; font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: var(--text-27); line-height: 1.15; font-weight: 700; letter-spacing: -.005em; }
h3 { font-size: var(--text-20); line-height: 1.35; font-weight: 500; }

p { margin: 0; }

table {
  border-collapse: collapse;
  width: 100%;
}

:focus-visible {
  outline: 2px solid var(--pine);
  outline-offset: 2px;
}

.on-dark :focus-visible,
.hero :focus-visible,
.cta-band :focus-visible,
footer.site-footer :focus-visible {
  outline-color: var(--on-dark);
}

@media (min-width: 1024px) {
  h1 { font-size: var(--text-64); }
  h2 { font-size: var(--text-38); }
  h3 { font-size: var(--text-22); }
}

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

@media (min-width: 640px) {
  .container { padding: 0 32px; }
}

@media (min-width: 1024px) {
  .container { padding: 0 48px; }
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-15);
  letter-spacing: .01em;
  text-decoration: none;
  clip-path: var(--clip-btn);
  padding: 13px 26px 13px 22px;
  line-height: 1;
  white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
  min-height: 44px;
  cursor: pointer;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

@media (min-width: 1024px) {
  .btn { font-size: var(--text-16); }
}

.btn-clay {
  background: var(--clay);
  color: var(--on-dark);
  border: 1px solid var(--clay);
  font-variant-numeric: tabular-nums;
}
.btn-clay:hover { background: var(--clay-dark); border-color: var(--clay-dark); }

.btn-clay-lg {
  padding: 14px 28px;
  min-height: 48px;
}

.btn-outline-dark {
  background: transparent;
  color: var(--on-dark);
  border: 1.5px solid var(--on-dark-muted);
}
.btn-outline-dark:hover { background: var(--on-dark); color: var(--pine-deep); border-color: var(--on-dark); }

.btn-outline-pine {
  background: transparent;
  color: var(--pine);
  border: 1.5px solid var(--pine);
}
.btn-outline-pine:hover { background: var(--pine); color: var(--on-dark); }

.btn-header {
  padding: 10px 20px 10px 16px;
  font-size: var(--text-14);
  clip-path: var(--clip-btn-sm);
}

/* ---------- header ---------- */

header.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

@media (min-width: 640px) {
  .header-inner { padding: 0 32px; }
}
@media (min-width: 1024px) {
  .header-inner { padding: 0 48px; }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.btn-header {
  display: none;
}

@media (min-width: 640px) {
  .btn-header { display: inline-flex; }
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 0;
}

.logo-link img {
  height: 54px; /* 워드마크(한글 윗선~영어 아랫선) 전체 높이에 맞춤 */
  width: auto;
  flex-shrink: 0;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-19);
  color: var(--pine);
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wordmark span {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-11);
  color: var(--ink-muted);
  margin-top: 1px;
}

nav.main-nav {
  display: none;
  gap: 28px;
  font-size: var(--text-15);
}

nav.main-nav a {
  text-decoration: none;
  color: var(--ink);
  padding: 4px 2px;
  border-bottom: 2px solid transparent;
}

nav.main-nav a.active {
  border-bottom-color: var(--clay-dark);
}

nav.main-nav a:hover {
  color: var(--clay-dark);
}

@media (min-width: 1024px) {
  nav.main-nav { display: flex; }
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-box);
  color: var(--pine);
  cursor: pointer;
}

@media (min-width: 1024px) {
  .menu-toggle { display: none; }
}

.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 8px 20px 20px;
}

.mobile-nav.is-open {
  display: flex;
}

@media (min-width: 1024px) {
  .mobile-nav { display: none !important; }
}

.mobile-nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: var(--text-16);
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.mobile-nav a.mobile-nav-tel {
  margin-top: 8px;
  border: none;
  clip-path: var(--clip-btn-sm);
  background: var(--clay-dark);
  color: #fff;
  text-align: center;
  font-weight: 700;
  padding: 12px 0;
}

.mobile-nav a:last-child { border-bottom: none; }

.mobile-nav a:hover { color: var(--clay-dark); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  background: var(--pine-deep);
  overflow: hidden;
}

.hero-grid {
  display: flex;
  flex-direction: column;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: 56px 20px 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-12);
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--on-dark-muted);
  background: transparent;
  padding: 0;
}

.tag-chip::before { content: "["; }
.tag-chip::after { content: "]"; }
.tag-chip::before, .tag-chip::after {
  color: var(--clay);
  font-family: var(--font-display);
  font-weight: 700;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  font-size: var(--text-12);
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--ink-muted);
  margin-bottom: 12px;
}

.eyebrow::before { content: "["; }
.eyebrow::after { content: "]"; }
.eyebrow::before, .eyebrow::after {
  color: var(--clay-dark);
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0 6px;
}

.hero-copy h1 {
  color: var(--on-dark);
  max-width: 15ch;
}

.h1-tight {
  display: inline-block;
  white-space: nowrap;
  font-size: 1em; /* 기본은 첫 줄과 완전히 같은 크기 */
}

/* 좁은 화면에서만 한 줄 유지를 위해 축소 — 그 외에는 여백이 충분해 줄일 필요 없음 */
@media (max-width: 479px) {
  .h1-tight { font-size: clamp(20px, 7vw, 1em); }
}

.hero-copy p.lead {
  font-size: var(--text-16);
  line-height: 1.7;
  color: var(--on-dark-muted);
  max-width: 42ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.hero-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(.97);
  animation: photo-in .6s ease-out .15s forwards;
}

/* 히어로 슬라이드쇼: 10장을 같은 자리에 겹쳐두고 JS가 is-active 클래스만 옮겨 크로스페이드한다 */
.hero-slideshow img {
  position: absolute;
  inset: 0;
  animation: none;
  transform: none;
  opacity: 0;
  transition: opacity 1.4s ease;
}

.hero-slideshow img.is-active {
  opacity: 1;
}

.hero-photo figcaption {
  position: absolute;
  left: 16px;
  bottom: 14px;
  font-size: var(--text-12);
  color: var(--on-dark);
  background: rgba(18, 36, 27, .55);
  padding: 5px 10px;
  border-radius: var(--radius-pill);
}

@keyframes photo-in {
  to { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-photo img { animation: none; opacity: 1; transform: none; }
  .hero-slideshow img { transition: none; }
}

/* 히어로 영상 */
.hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.02);
  animation: photo-in .8s ease-out .1s forwards;
}

@media (prefers-reduced-motion: reduce) {
  .hero-video video { animation: none; opacity: 1; transform: none; }
}

@media (min-width: 1024px) {
  .hero-grid {
    flex-direction: row;
    align-items: stretch;
    min-height: 560px;
  }

  .hero-copy {
    width: 56%;
    padding: 0 0 0 48px;
    justify-content: center;
    gap: 24px;
  }

  .hero-copy .container-inner {
    max-width: 1180px;
    width: 100%;
    margin: 0 auto;
    padding-left: max(0px, calc((100vw - 1180px) / 2));
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .hero-photo {
    width: 44%;
    aspect-ratio: auto;
    clip-path: polygon(12% 0, 100% 0, 100% 100%, 0% 100%);
  }
}

/* ---------- section shells ---------- */

section.section {
  padding: 64px 0;
}

@media (min-width: 1024px) {
  section.section { padding: 112px 0; }
}

.section-bg { background: var(--bg); }
.section-surface { background: var(--surface); }

/* ---------- 에디토리얼 브레이크 (섹션 사이 풀블리드 사진) ---------- */

.editorial-break {
  position: relative;
  height: 40vh;
  min-height: 260px;
  max-height: 460px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.editorial-break img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.editorial-break::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 36, 27, .5), rgba(18, 36, 27, .35) 50%, rgba(18, 36, 27, .55));
}

.editorial-break p {
  position: relative;
  z-index: 1;
  color: var(--on-dark);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-20);
  line-height: 1.5;
  text-align: center;
  text-shadow: 0 2px 12px rgba(18, 36, 27, .5);
  padding: 0 24px;
  max-width: 42ch;
}

@media (min-width: 1024px) {
  .editorial-break p { font-size: var(--text-27); }
}
.section-dark { background: var(--pine-deep); }

.section-head {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-7);
  text-align: left;
}

/* ---------- 스크롤 리빌 애니메이션 ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-group > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal-group.is-visible > * {
  opacity: 1;
  transform: none;
}

.reveal-group.is-visible > *:nth-child(1) { transition-delay: 0ms; }
.reveal-group.is-visible > *:nth-child(2) { transition-delay: 90ms; }
.reveal-group.is-visible > *:nth-child(3) { transition-delay: 180ms; }
.reveal-group.is-visible > *:nth-child(4) { transition-delay: 270ms; }
.reveal-group.is-visible > *:nth-child(5) { transition-delay: 360ms; }
.reveal-group.is-visible > *:nth-child(6) { transition-delay: 450ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-group > * { opacity: 1; transform: none; transition: none; }
}

.section-head p {
  color: var(--ink-muted);
  font-size: var(--text-16);
  max-width: 60ch;
}

.section-dark .section-head h2,
.section-dark .section-head p {
  color: var(--on-dark);
}

/* ---------- feature grid (about section) ---------- */

.feature-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}

.feature {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.feature .icon {
  width: 24px;
  height: 24px;
  color: var(--sage);
}

.feature h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-18);
  color: var(--ink);
}

.feature p {
  font-size: var(--text-15);
  line-height: 1.7;
  color: var(--ink-muted);
  max-width: 34ch;
}

/* ---------- process flow (about section — 6단계 진행과정) ---------- */

.process-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}

.process-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-3);
  width: 100%;
}

.process-step {
  position: relative;
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-box);
  padding: var(--space-3) var(--space-4);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .25s ease, transform .25s ease;
}

.process-step:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.process-num {
  position: absolute;
  top: 8px;
  right: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-13);
  color: var(--sand-200, var(--line));
}

.process-step .icon {
  width: 26px;
  height: 26px;
  color: var(--clay-dark);
  margin-bottom: 2px;
}

.process-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 8px;
}

.process-step .process-step-body {
  min-width: 0;
}

.process-step h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-14);
  color: var(--ink);
  line-height: 1.3;
}

.process-step p {
  font-size: var(--text-13);
  line-height: 1.45;
  color: var(--ink-muted);
  margin-top: 2px;
}

.process-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--sage);
  align-self: center;
}

.process-arrow svg {
  width: 16px;
  height: 16px;
  transform: rotate(90deg); /* 모바일 기본: 아래 방향 */
}

.process-arrow-down svg { transform: rotate(90deg); }

@media (min-width: 1024px) {
  .process-row { flex-direction: row; align-items: stretch; }
  .process-arrow svg { transform: rotate(0deg); } /* 데스크톱 행 안에서는 오른쪽 방향 */
  .process-arrow-down svg { transform: rotate(90deg); } /* 행과 행 사이는 항상 아래 방향 */
}

.checklist {
  list-style: none;
  margin: var(--space-6) 0 0;
  padding: 0;
  display: grid;
  gap: var(--space-3);
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: var(--text-15);
  color: var(--ink-muted);
  line-height: 1.6;
}

.checklist li::before {
  content: "";
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage);
  margin-top: 9px;
}

.philosophy-quote {
  margin-top: var(--space-7);
  border-left: 3px solid var(--clay-dark);
  background: var(--sage-pale);
  border-radius: 0 var(--radius-box) var(--radius-box) 0;
  padding: var(--space-5);
  font-family: var(--font-display);
  font-size: var(--text-19);
  line-height: 1.6;
  color: var(--ink);
  max-width: var(--article-max);
}

@media (min-width: 1024px) {
  .philosophy-quote { font-size: var(--text-20); }
}

/* ---------- cards (blog / case cards) ---------- */

.card-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}

.case-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-box);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .25s ease, transform .25s ease;
}

.case-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.case-card-thumb {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--sage-pale);
}

.case-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.case-card:hover .case-card-thumb img {
  transform: scale(1.06);
}

.case-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(18, 36, 27, .68);
  backdrop-filter: blur(2px);
  color: var(--on-dark);
  font-size: var(--text-13);
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
}

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

@media (min-width: 1024px) {
  .case-card-body { padding: 24px; }
}

.case-meta {
  font-size: var(--text-13);
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}

.case-card h3 {
  font-size: var(--text-19);
  color: var(--ink);
  line-height: 1.4;
}

.case-card .teaser {
  font-size: var(--text-15);
  color: var(--ink-muted);
  line-height: 1.6;
  flex: 1;
}

.case-card .read-more {
  font-size: var(--text-13);
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--clay-dark);
  text-decoration: none;
  margin-top: 4px;
}

.case-card .read-more::before { content: "[ "; }
.case-card .read-more::after { content: " ]"; }

.case-card:hover .read-more {
  text-decoration: underline;
}

.section-footer-link {
  margin-top: var(--space-7);
}

.section-footer-link a {
  color: var(--clay-dark);
  font-weight: 600;
  text-decoration: none;
}

.section-footer-link a:hover { text-decoration: underline; }

.disclosure {
  background: var(--sage-pale);
  border: 1px solid var(--line);
  border-radius: var(--radius-box);
  padding: var(--space-5);
  font-size: var(--text-14);
  color: var(--ink-muted);
  line-height: 1.7;
  margin-bottom: var(--space-7);
  max-width: var(--article-max);
}

/* ---------- location section ---------- */

.location-grid {
  display: grid;
  gap: 32px;
}

@media (min-width: 1024px) {
  .location-grid { grid-template-columns: 1fr 1fr; align-items: start; }
}

.location-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: flex-start;
}

.location-address {
  font-size: var(--text-18);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.6;
}

.location-note {
  font-size: var(--text-15);
  color: var(--ink-muted);
  line-height: 1.7;
}

.map-embed {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-box);
  overflow: hidden;
  min-height: 320px;
}

#naver-map {
  width: 100%;
  height: 100%;
  min-height: 320px;
}

.map-placeholder {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-box);
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  min-height: 240px;
}

.map-placeholder .icon {
  width: 32px;
  height: 32px;
  color: var(--sage);
}

.map-placeholder p {
  font-size: var(--text-15);
  color: var(--ink-muted);
  line-height: 1.6;
}

.map-placeholder .address-lg {
  font-size: var(--text-16);
  font-weight: 600;
  color: var(--ink);
}

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  background: var(--pine-deep);
  padding: 64px 0;
  overflow: hidden;
  isolation: isolate;
}

.cta-band-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .32;
  z-index: -2;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 36, 27, .55), var(--pine-deep) 82%);
  z-index: -1;
}

@media (min-width: 1024px) {
  .cta-band { padding: 112px 0; }
}

.cta-band .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-5);
}

.cta-band h2 {
  color: var(--on-dark);
}

.cta-band p {
  color: var(--on-dark-muted);
  font-size: var(--text-16);
  line-height: 1.7;
  max-width: 52ch;
}

/* ---------- footer ---------- */

footer.site-footer {
  background: var(--pine-deep);
  color: var(--on-dark);
  padding: 56px 0 32px;
}

.footer-grid {
  display: grid;
  gap: 32px;
  text-align: left;
}

@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

.footer-logo-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border-radius: var(--radius-box);
  padding: 8px 14px;
}

.footer-logo-chip img {
  height: 32px;
  width: auto;
}

.footer-logo-chip span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-15);
  color: var(--pine);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col h4 {
  font-size: var(--text-14);
  font-weight: 600;
  color: var(--on-dark);
  margin: 0 0 4px;
}

.footer-col p,
.footer-col a {
  font-size: var(--text-14);
  color: var(--on-dark-muted);
  text-decoration: none;
  line-height: 1.7;
}

.footer-col a:hover { color: var(--on-dark); }

.footer-tagline {
  font-size: var(--text-14);
  color: var(--on-dark-muted);
  line-height: 1.7;
  max-width: 32ch;
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(243, 241, 228, .15);
  font-size: var(--text-12);
  color: var(--on-dark-muted);
  text-align: left;
}

@media (max-width: 1023px) {
  .footer-grid { text-align: center; align-items: center; }
  .footer-col { align-items: center; }
  .footer-bottom { text-align: center; }
}

/* =========================================================
   블로그 목록 / 상세 페이지
   ========================================================= */

.page-head {
  padding: 48px 0 0;
}

.breadcrumb {
  font-size: var(--text-13);
  color: var(--ink-muted);
  margin-bottom: var(--space-5);
}

.breadcrumb a {
  color: var(--ink-muted);
  text-decoration: none;
}

.breadcrumb a:hover { color: var(--clay-dark); }

/* article detail */

.article-header {
  padding: 40px 0 0;
}

.article-container {
  max-width: var(--article-max);
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 640px) {
  .article-container { padding: 0 32px; }
}

.article-meta-chip {
  display: inline-flex;
  align-items: center;
  background: var(--pine);
  color: var(--on-dark);
  font-size: var(--text-13);
  font-weight: 500;
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  margin-bottom: var(--space-4);
}

.article-header h1 {
  margin-bottom: var(--space-5);
}

.article-logo {
  max-width: 220px;
  margin: var(--space-6) 0;
}

@media (min-width: 640px) {
  .article-logo { max-width: 260px; }
}

blockquote.intro-quote {
  font-family: var(--font-display);
  font-size: var(--text-19);
  line-height: 1.6;
  color: var(--ink);
  border-left: 3px solid var(--clay-dark);
  background: var(--sage-pale);
  border-radius: 0 var(--radius-box) var(--radius-box) 0;
  padding: var(--space-5);
  margin: var(--space-6) 0;
}

@media (min-width: 1024px) {
  blockquote.intro-quote { font-size: var(--text-20); }
}

.toc-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-box);
  padding: var(--space-5);
  margin: var(--space-6) 0;
}

.toc-box h2 {
  font-size: var(--text-16);
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--pine);
  margin-bottom: var(--space-3);
}

.toc-box ol {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toc-box li::marker {
  color: var(--pine);
  font-weight: 700;
}

.toc-box a {
  text-decoration: none;
  color: var(--ink);
  font-size: var(--text-15);
}

.toc-box a:hover { color: var(--clay-dark); }

article.post-body {
  padding: var(--space-6) 0 var(--space-9);
  font-size: var(--text-16);
  line-height: 1.75;
  color: var(--ink);
}

@media (min-width: 1024px) {
  article.post-body { font-size: var(--text-17); }
}

article.post-body h2 {
  margin-top: var(--space-8);
  margin-bottom: var(--space-4);
}

article.post-body h2:first-child { margin-top: 0; }

article.post-body h3 {
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
}

article.post-body p {
  margin-bottom: var(--space-5);
}

article.post-body blockquote {
  font-family: var(--font-display);
  font-size: var(--text-19);
  line-height: 1.6;
  color: var(--ink);
  border-left: 3px solid var(--clay-dark);
  background: var(--sage-pale);
  border-radius: 0 var(--radius-box) var(--radius-box) 0;
  padding: var(--space-5);
  margin: var(--space-6) 0;
}

article.post-body figure {
  margin: var(--space-6) 0;
}

article.post-body figure img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-box);
  border: 1px solid var(--line);
}

/* 화정동 은빛마을5단지 원본 이미지가 세로 4:5 비율(1200x1489)이라
   3:2 가로 박스에 중앙 크롭하면 아치형 도어 상단이 잘려 보인다.
   상단 쪽으로 크롭 기준점을 옮겨 핵심 구도(아치 상단)를 유지한다. */
img[src*="goyang-hwajeong-eunbit-maeul5-37py"] {
  object-position: center 25%;
}

article.post-body figcaption {
  font-size: var(--text-13);
  font-style: italic;
  color: var(--ink-muted);
  margin-top: var(--space-2);
}

article.post-body table {
  margin: var(--space-6) 0;
  font-size: var(--text-14);
  border: 1px solid var(--line);
  border-radius: var(--radius-box);
  overflow: hidden;
}

article.post-body th {
  background: var(--pine);
  color: var(--on-dark);
  font-weight: 600;
  text-align: left;
  padding: 10px 14px;
}

article.post-body td {
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  color: var(--ink);
}

article.post-body ul.plain-list {
  margin: 0 0 var(--space-5);
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

article.post-body .callout {
  background: var(--sage-pale);
  border: 1px solid var(--line);
  border-radius: var(--radius-box);
  padding: var(--space-5);
  margin: var(--space-6) 0;
}

article.post-body .callout .callout-title {
  font-weight: 600;
  font-size: var(--text-15);
  color: var(--pine);
  margin-bottom: var(--space-2);
}

article.post-body .faq-item {
  margin-bottom: var(--space-5);
}

article.post-body .faq-q {
  font-weight: 600;
  color: var(--ink);
  margin-bottom: var(--space-2);
}

article.post-body a {
  color: var(--clay-dark);
  text-decoration: underline;
}

.post-footer {
  border-top: 1px solid var(--line);
  padding: var(--space-8) 0;
}

.post-footer h2 {
  margin-bottom: var(--space-6);
}

/* ---------- blog list page ---------- */

.blog-list-intro {
  max-width: 60ch;
  color: var(--ink-muted);
  font-size: var(--text-16);
  margin-top: var(--space-3);
}
