/* 테마: minimal(미니멀 모노) · 팔레트: 스틸네이비 Primary #1A3159 / Accent #4472B8 */
:root {
  --primary: #1A3159;
  --accent: #4472B8;
  --ink: #1A1A1A;
  --gray: #6B7280;
  --border: #E5E5E5;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Pretendard', -apple-system, sans-serif;
  color: var(--ink);
  background: #FFFFFF;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.font-head { font-family: 'Pretendard', sans-serif; font-weight: 300; letter-spacing: -0.01em; }

.eyebrow {
  font-family: 'Pretendard', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
}

.prose-body { max-width: 68ch; }
.prose-body p { color: #3F3F3F; line-height: 1.9; }

.hairline { border-color: var(--border) !important; }

.btn-primary {
  background: var(--primary);
  color: #fff;
  transition: opacity .2s ease, transform .2s ease;
}
.btn-primary:hover { opacity: .88; transform: translateY(-1px); }

.btn-outline {
  border: 1px solid var(--border);
  color: var(--ink);
  transition: border-color .2s ease, transform .2s ease;
}
.btn-outline:hover { border-color: var(--primary); transform: translateY(-1px); }

.card-hair {
  border: 1px solid var(--border);
  border-radius: 2px;
  transition: transform .2s ease, border-color .2s ease;
}
.card-hair:hover { transform: translateY(-2px); border-color: var(--accent); }

.grid-3-strict { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
@media (min-width: 768px) { .grid-3-strict { grid-template-columns: repeat(3, 1fr); } }

.grid-4-strict { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
@media (min-width: 768px) { .grid-4-strict { grid-template-columns: repeat(4, 1fr); } }

.grid-1-mobile-2 { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 768px) { .grid-1-mobile-2 { grid-template-columns: repeat(2, 1fr); } }

/* 메인 최근 작업 사진 — 모바일 2열, 태블릿 이상 3열 */
.grid-gallery-3 { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
@media (min-width: 768px) { .grid-gallery-3 { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }

/* 서브페이지 작업 사진(4장) — 모바일 2열, 태블릿 이상 4열 */
.grid-gallery-4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
@media (min-width: 768px) { .grid-gallery-4 { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; } }

img { max-width: 100%; height: auto; }
/* 원본 사진이 정사각형(900x900)이라 실제 비율과 동일하게 맞춰 불필요한 크롭 방지 */
.img-tile { aspect-ratio: 1/1; object-fit: cover; width: 100%; display: block; border-radius: 2px; }

.photo-figure { margin: 0; }
.photo-caption {
  margin-top: .5rem;
  font-size: .78rem;
  color: var(--gray);
  line-height: 1.5;
  word-break: keep-all;
}

.phone-num { cursor: default; }

/* Hero 슬라이더 */
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.hero-slide.active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }

/* Floating */
#floatBtns { position: fixed; right: 1rem; bottom: 1.25rem; z-index: 50; display: flex; flex-direction: column; gap: .6rem; }
#topBtn { opacity: 0; pointer-events: none; transition: opacity .2s ease; }
#topBtn.show { opacity: 1; pointer-events: auto; }

/* Lightbox */
#lightbox { position: fixed; inset: 0; background: rgba(15,21,32,.94); display: none; align-items: center; justify-content: center; z-index: 100; padding: 2rem; }
#lightbox.open { display: flex; }
#lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; border-radius: 2px; }
#lightbox-close { position: absolute; top: 1.25rem; right: 1.5rem; color: #fff; font-size: 1.75rem; cursor: pointer; }

/* 숫자 라벨 */
.num-label { font-family: 'Pretendard', sans-serif; font-size: .85rem; color: var(--border); font-weight: 700; letter-spacing: .05em; }

/* FAQ accordion */
.faq-item summary { cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item[open] summary .faq-plus { transform: rotate(45deg); }
.faq-plus { transition: transform .2s ease; display: inline-block; }
