/* =========================================================
   한일펌프 — 디자인 시스템 (네이비 앵커 × 알약 토큰 체계)
   정본: docs/plans/2026-08-28-리디자인-기획.md
   ========================================================= */
:root {
  /* 색상 토큰 */
  --blue: #1c4d7d;          /* 액센트 */
  --blue-strong: #163e66;   /* hover */
  --blue-soft: #eef3f7;     /* 연한 배경 */
  --navy: #0f2036;          /* 다크 섹션·푸터 배경 */
  --navy-card: #17293f;     /* 다크 섹션 카드 */
  --navy-line: #263a52;     /* 다크 섹션 경계선 */
  --navy-muted: #8ba1b8;    /* 다크 섹션 보조 텍스트 */
  --ink: #131c26;           /* 본문 텍스트 */
  --muted: #4a5866;         /* 보조 텍스트 */
  --faint: #8795a4;         /* 캡션/흐린 텍스트 */
  --canvas: #ffffff;
  --canvas-alt: #eef3f7;    /* 밝은 교차 섹션 */
  --card: #ffffff;
  --line: #dfe7ee;

  /* 타이포 */
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    system-ui, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --font-num: "Space Grotesk", var(--font);   /* 숫자 전용 */
  --fs-hero: clamp(38px, 5.2vw, 68px);
  --fs-h2: clamp(26px, 3.4vw, 42px);
  --fs-page-h1: clamp(30px, 4.4vw, 48px);

  /* 라운드 */
  --r-sm: 8px;
  --r-md: 10px;
  --r-lg: 10px;
  --r-pill: 9999px;

  /* 그림자 */
  --shadow-sm: 0 1px 3px rgba(15, 32, 54, 0.06);
  --shadow-md: 0 10px 28px -4px rgba(15, 32, 54, 0.08), 0 2px 6px rgba(15, 32, 54, 0.04);
  --shadow-lg: 0 20px 48px -8px rgba(15, 32, 54, 0.12);
  --shadow-card-hover: 0 14px 36px -6px rgba(15, 32, 54, 0.12), 0 2px 8px rgba(15, 32, 54, 0.04);

  /* 레이아웃 */
  --maxw: 1160px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-y: clamp(72px, 9vw, 104px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--canvas);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.02em; line-height: 1.25; color: var(--ink); }
p { margin: 0; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------------- 본문 바로가기 (키보드 접근성) ---------------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 100;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  transition: top 0.18s ease;
}
.skip-link:focus { top: 12px; outline: 2px solid #fff; outline-offset: 2px; }

/* ---------------- 버튼 ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  padding: 13px 26px;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease,
    box-shadow 0.15s ease, border-color 0.15s ease, filter 0.15s ease;
  white-space: nowrap;
  text-decoration: none;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--blue-strong); box-shadow: var(--shadow-md); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: #b0c2d3; background: var(--canvas-alt); }
.btn-cta-white { background: #ffffff; color: var(--ink); box-shadow: var(--shadow-md); }
.btn-cta-white:hover { background: #f1f5f9; color: var(--blue); transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-lg { padding: 15px 30px; font-size: 16px; }
.btn-block { width: 100%; }

/* ---------------- 헤더 ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: baseline; gap: 12px; text-decoration: none; }
.brand-name { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.brand-caption { font-size: 9.5px; letter-spacing: 0.26em; color: var(--faint); font-weight: 500; }

.site-nav { display: flex; align-items: center; gap: 40px; }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--muted); transition: color 0.15s ease; text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); font-weight: 700; }
.site-nav .nav-cta { color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px; height: 42px;
  background: none; border: 1px solid var(--line); border-radius: var(--r-sm);
  align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------- 섹션 라벨 새 문법 ---------------- */
.section-tag, .eyebrow, .service-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--blue);
}
.section-tag::before, .eyebrow::before, .service-kicker::before {
  content: "";
  display: inline-block;
  width: 30px;
  height: 3px;
  background: var(--blue);
  border-radius: 2px;
  flex: none;
}

/* ---------------- 섹션 공통 ---------------- */
.section { padding-block: var(--section-y); }
.section-alt { background: var(--canvas-alt); }
.section-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 54px); }
.section-title { font-size: var(--fs-h2); font-weight: 800; margin-top: 14px; line-height: 1.32; letter-spacing: -0.025em; }
.section-desc { margin-top: 14px; font-size: clamp(15px, 1.5vw, 17px); color: var(--muted); line-height: 1.7; }
.section-cta { margin-top: clamp(28px, 4vw, 42px); text-align: center; }

/* ---------------- 카드 공통 ---------------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

/* ---------------- Placeholder 점선 태그 ---------------- */
.ph-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: #93a3b5;
  border: 1px dashed #47566a;
  padding: 5px 10px;
  border-radius: 6px;
  z-index: 2;
  pointer-events: none;
  font-weight: 500;
}
.ph-tag-light {
  color: var(--faint);
  border: 1px dashed var(--line);
}

/* =========================================================
   홈 전용 섹션들 (C 항목)
   ========================================================= */

/* ① 중앙 히어로 */
.hero-center {
  padding: clamp(72px, 10vw, 104px) var(--gutter) 52px;
  text-align: center;
  background: var(--canvas);
}
.hero-center-inner {
  max-width: 860px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-pretitle {
  font-size: clamp(16px, 1.8vw, 19px);
  font-weight: 500;
  color: var(--muted);
}
.hero-center-title {
  font-size: var(--fs-hero);
  line-height: 1.28;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 22px 0 0;
  color: var(--ink);
}
.hero-rotator-wrap {
  display: inline-block;
  vertical-align: baseline;
}
.hero-rotator {
  display: inline-block;
  color: var(--blue);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.hero-center-desc {
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.75;
  color: var(--muted);
  margin: 26px auto 0;
  max-width: 32em;
}

/* ② 실사 카드 마퀴 */
.marquee-section {
  position: relative;
  padding: 20px 0 90px 0;
  overflow: hidden;
  width: 100%;
}
.marquee-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: marquee 48s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee-card {
  width: 350px;
  height: 430px;
  border-radius: var(--r-md);
  background: #242b35;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.marquee-card:nth-child(2n) { background: #2b333e; }
.marquee-card:nth-child(3n) { background: #202730; }
.marquee-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.marquee-card img.img-pos-top {
  object-position: center 15%;
}
.marquee-card-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 48%;
  background: linear-gradient(180deg, rgba(12, 18, 27, 0) 0%, rgba(12, 18, 27, 0.76) 100%);
}
.marquee-card-info {
  position: absolute;
  left: 20px;
  bottom: 20px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.marquee-cat { font-size: 11px; font-weight: 600; color: #aecdea; }
.marquee-title { font-size: 15.5px; font-weight: 700; color: #ffffff; }

.marquee-fade-left {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: clamp(50px, 12vw, 140px);
  background: linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
  z-index: 2;
}
.marquee-fade-right {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: clamp(50px, 12vw, 140px);
  background: linear-gradient(270deg, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
  z-index: 2;
}

/* ③ 다크 불안 섹션 (불안 → 약속) */
.section-dark {
  background: var(--navy);
  color: #f1f5f9;
  padding-block: clamp(80px, 10vw, 110px);
}
.dark-title {
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
  color: #ffffff;
}
.dark-subtitle {
  text-align: center;
  font-size: 16px;
  color: var(--navy-muted);
  margin-top: 18px;
}
.anxiety-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 52px;
}
.anxiety-card {
  background: var(--navy-card);
  border: 1px solid var(--navy-line);
  border-radius: var(--r-md);
  padding: 30px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}
.anxiety-icon { color: #6fa3cf; flex: none; }
.anxiety-card h3 { font-size: 18px; font-weight: 700; color: #ffffff; }
.anxiety-card p { font-size: 13.5px; line-height: 1.65; color: var(--navy-muted); }

.promise-list {
  margin-top: 72px;
  display: flex;
  flex-direction: column;
}
.promise-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px solid var(--navy-line);
  padding: 26px 8px;
  gap: 20px;
}
.promise-item:last-child { border-bottom: 1px solid var(--navy-line); }
.promise-num {
  font-size: 14px;
  letter-spacing: 0.12em;
  color: #6fa3cf;
  font-weight: 700;
  flex: none;
}
.promise-content {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  text-align: right;
}
.promise-title { font-size: 24px; font-weight: 700; color: #ffffff; }
.promise-desc { font-size: 14px; color: var(--navy-muted); }

/* ④ ⑤ 해결 01, 02 (좌우 교차) */
.solution-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.solution-reverse .solution-photo { order: 0; }
.solution-reverse .solution-text { order: 1; }
.solution-photo {
  height: 380px;
  border-radius: var(--r-md);
  position: relative;
  overflow: hidden;
}
.solution-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo-light { background: var(--canvas-alt); border: 1px solid var(--line); }
.photo-dark { background: #242b35; }
.solution-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.sol-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 15px;
  font-weight: 700;
  color: var(--blue);
  margin-top: 24px;
  transition: gap 0.15s ease, color 0.15s ease;
  text-decoration: none;
}
.sol-link:hover { gap: 8px; color: var(--blue-strong); }

/* ⑥ 해결 03 증빙 3카드 */
.evidence-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 44px;
}
.evidence-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.evidence-thumb {
  height: 280px;
  border-radius: var(--r-md);
  background: var(--canvas-alt);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.evidence-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.evidence-title {
  font-size: 14.5px;
  font-weight: 700;
  text-align: center;
  color: var(--ink);
}

/* ⑦ 실적 밴드 (카운트업) */
.perf-band-section {
  background: var(--navy);
  padding-block: clamp(64px, 8vw, 88px);
}
.perf-band-card {
  background: var(--navy-card);
  border: 1px solid var(--navy-line);
  border-radius: var(--r-md);
  padding: clamp(36px, 5vw, 56px) clamp(24px, 4vw, 48px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.perf-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  padding-inline: 12px;
}
.perf-item + .perf-item { border-left: 1px solid #2a4059; }
.perf-num {
  font-family: var(--font-num);
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.stat-unit { font-family: var(--font-num); font-size: 0.85em; font-weight: 700; }
.perf-label { font-size: 13px; color: var(--navy-muted); font-weight: 500; }

/* ⑧ 시공사례 (3카드) & 사례 목록 그리드 */
.cases-3-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
  width: 100%;
}
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.2vw, 24px);
}
#cases-grid:empty { min-height: 60vh; }
#cases-filter:empty { min-height: 42px; }

.case-card {
  border-radius: var(--r-md);
  overflow: hidden;
  position: relative;
  height: 380px;
  background: #26303d;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: block;
  text-decoration: none;
}
.case-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}
.case-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.case-card-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 65%;
  background: linear-gradient(180deg, rgba(12, 18, 27, 0) 0%, rgba(12, 18, 27, 0.84) 100%);
  z-index: 1;
}
.case-card-content {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 2;
}
.case-card-meta { font-size: 11.5px; font-weight: 600; color: #aecdea; }
.case-card-title { font-size: 18px; font-weight: 700; color: #ffffff; line-height: 1.4; }
.case-card-summary { font-size: 13px; color: rgba(255, 255, 255, 0.78); line-height: 1.55; }

/* ⑨ 비용 안내 3카드 */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
  width: 100%;
}
.pricing-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: clamp(28px, 3.5vw, 36px) clamp(24px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}
.pricing-tag {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--blue);
}
.pricing-price {
  font-family: var(--font-num);
  font-size: clamp(28px, 3vw, 34px);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.15;
}
.pricing-price span {
  font-size: 18px;
  color: var(--muted);
  font-weight: 600;
  font-family: var(--font);
}
.pricing-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}

/* ⑩ 현장 기록 3카드 (블로그) */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
  width: 100%;
}
.blog-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
  color: inherit;
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}
.blog-thumb {
  height: 200px;
  background: var(--canvas-alt);
  position: relative;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.blog-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.blog-title {
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--ink);
}
.blog-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* 최종 CTA (사진 밴드) */
.cta-band {
  position: relative;
  background: var(--navy);
  padding: clamp(68px, 8vw, 100px) var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.cta-band .ph-tag {
  top: 16px;
  left: auto;
  right: 22px;
}
.cta-band-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.cta-band-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 32, 54, 0.82) 0%, rgba(12, 18, 27, 0.9) 100%);
  z-index: 1;
}
.cta-band-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  max-width: 680px;
}
.cta-band-title {
  font-size: clamp(26px, 3.6vw, 40px);
  line-height: 1.38;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}
.cta-tel {
  font-family: var(--font-num);
  font-size: clamp(28px, 3.5vw, 34px);
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  transition: color 0.15s ease;
}
.cta-tel:hover { color: #aecdea; }

/* ---------------- 푸터 ---------------- */
.site-footer {
  background: var(--navy);
  color: var(--navy-muted);
  padding-top: clamp(52px, 6vw, 68px);
  border-top: 1px solid var(--navy-line);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  padding-bottom: 36px;
}
.footer-brand .brand-name { color: #ffffff; font-size: 20px; font-weight: 800; }
.footer-info-text {
  font-size: 13px;
  line-height: 1.9;
  color: var(--navy-muted);
  margin-top: 14px;
}
.footer-nav-cols {
  display: flex;
  gap: clamp(32px, 6vw, 64px);
  justify-content: flex-end;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 13.5px;
}
.footer-col-title { color: #ffffff; font-weight: 700; font-size: 14px; }
.footer-col nav { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--navy-muted); transition: color 0.15s ease; text-decoration: none; }
.footer-col a:hover { color: #ffffff; }
.footer-bottom {
  border-top: 1px solid var(--navy-line);
  padding-block: 20px;
}
.footer-bottom small { color: #5c718a; font-size: 12px; }

/* =========================================================
   인테리어 페이지 공통 스타일
   ========================================================= */

/* 컴팩트 히어로 */
.page-hero {
  background: var(--canvas);
  padding-block: clamp(48px, 7vw, 80px) clamp(28px, 4vw, 44px);
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: var(--fs-page-h1); font-weight: 800; letter-spacing: -0.03em; margin-top: 12px; }
.page-hero p { margin-top: 14px; color: var(--muted); font-size: clamp(15px, 1.5vw, 18px); max-width: 42em; margin-inline: auto; }

/* 시공사례 필터 바 */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: clamp(28px, 4vw, 42px); }
.filter-btn {
  font-family: inherit; font-size: 14px; font-weight: 600;
  color: var(--muted); background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-pill); padding: 9px 18px; cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.filter-btn:hover { border-color: #b0c2d3; color: var(--ink); }
.filter-btn.is-active { background: var(--blue); color: #fff; border-color: var(--blue); }

/* 서비스 상세 (services.html) */
.service-detail { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 60px); align-items: center; }
.service-detail + .service-detail { margin-top: clamp(48px, 7vw, 88px); }
.service-detail.reverse .service-media { order: 2; }
.media-slot {
  aspect-ratio: 3 / 2; border-radius: var(--r-md); border: 1px solid var(--line);
  background: var(--canvas-alt);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  color: var(--blue); text-align: center; padding: 20px;
  position: relative; overflow: hidden;
}
.media-slot svg { width: 46px; height: 46px; opacity: 0.6; }
.media-slot span { font-size: 12.5px; color: var(--faint); font-weight: 500; }
.media-slot > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media-slot:has(> img) svg, .media-slot:has(> img) span { display: none; }

.service-text > h2 { font-size: clamp(23px, 3vw, 31px); font-weight: 700; margin-top: 12px; }
.service-text > p { margin-top: 14px; color: var(--muted); font-size: clamp(15px, 1.5vw, 17px); line-height: 1.7; }
.service-text h3 { font-size: 15.5px; font-weight: 700; margin-top: 24px; color: var(--ink); }
.check-list { margin-top: 12px; display: grid; gap: 9px; }
.check-list li { position: relative; padding-left: 28px; font-size: 15px; color: var(--muted); line-height: 1.55; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 2px;
  width: 19px; height: 19px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--blue-soft); color: var(--blue); border-radius: 50%; font-size: 12px; font-weight: 800;
}

/* 시공 프로세스 (5단계) */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: clamp(14px, 2vw, 22px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.process-step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: clamp(20px, 2.4vw, 28px);
}
.process-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: var(--r-pill);
  background: var(--blue-soft); color: var(--blue);
  font-weight: 800; font-size: 14px;
}
.process-ico { display: inline-flex; color: var(--blue); margin: 15px 0 9px; }
.process-ico svg { width: 30px; height: 30px; }
.process-step h3 { font-size: 16px; font-weight: 700; }
.process-step p { margin-top: 6px; color: var(--muted); font-size: 14px; }

/* 회사소개 (about.html) */
.about-story { max-width: 720px; display: grid; gap: 16px; }
.about-story p { color: var(--muted); font-size: clamp(15px, 1.5vw, 17px); line-height: 1.8; }

/* 강점 카드 */
.strengths { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: clamp(16px, 2.2vw, 24px); }
.strength-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: clamp(22px, 2.6vw, 28px); }
.strength-ico { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; color: var(--blue); background: var(--blue-soft); border-radius: var(--r-md); margin-bottom: 14px; }
.strength-ico svg { width: 26px; height: 26px; }
.strength-card h3 { font-size: 17px; font-weight: 700; }
.strength-card p { margin-top: 7px; color: var(--muted); font-size: 14.5px; }

/* 연혁 타임라인 */
.timeline { position: relative; margin-top: 6px; padding-left: 26px; border-left: 2px solid var(--line); display: grid; gap: 24px; max-width: 640px; list-style: none; }
.timeline li { position: relative; }
.timeline li::before { content: ""; position: absolute; left: -33px; top: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--blue); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.timeline .t-year { font-weight: 800; color: var(--blue); font-size: 15px; }
.timeline .t-event { color: var(--muted); font-size: 15px; margin-top: 2px; }

/* 회사/현장 사진 슬롯 */
.about-media { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2.2vw, 24px); }

/* 기존 CTA 배너 (소개·서비스·목록 등 인테리어 페이지용) */
.cta-banner {
  background: var(--navy);
  color: #fff;
  border-radius: var(--r-md);
  padding: clamp(36px, 5vw, 60px);
  text-align: center;
  box-shadow: var(--shadow-md);
}
.cta-inner { max-width: 640px; margin-inline: auto; }
.cta-title { font-size: clamp(24px, 3vw, 34px); font-weight: 700; color: #fff; }
.cta-sub { margin-top: 12px; font-size: clamp(15px, 1.5vw, 18px); color: var(--navy-muted); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 26px; }
.cta-banner .btn-primary { background: #fff; color: var(--ink); }
.cta-banner .btn-primary:hover { background: #f1f5f9; color: var(--blue); }
.cta-banner .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.cta-banner .btn-ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; }

/* 사례 상세 (case.html) */
.case-detail { max-width: 860px; margin-inline: auto; }
.case-back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 22px; text-decoration: none; }
.case-back:hover { color: var(--blue); }
.case-detail-head { margin-bottom: 26px; }
.case-badge-inline { display: inline-block; font-size: 12px; font-weight: 700; color: var(--blue); background: var(--blue-soft); padding: 5px 12px; border-radius: var(--r-pill); }
.case-detail-title { font-size: clamp(26px, 3.6vw, 40px); font-weight: 800; margin-top: 14px; }
.case-detail-meta { display: flex; flex-wrap: wrap; gap: 6px 8px; margin-top: 12px; color: var(--muted); font-size: 15px; }
.case-detail-meta span:not(:first-child)::before { content: "·"; margin-right: 8px; color: var(--faint); }

.gallery { display: grid; gap: 14px; margin-bottom: 30px; }
.gallery:has(.gallery-item:nth-child(2)) { grid-template-columns: repeat(2, 1fr); }
.gallery:has(.gallery-item:nth-child(3)) { grid-template-columns: repeat(3, 1fr); }
.gallery-item { border-radius: var(--r-md); overflow: hidden; aspect-ratio: 3 / 2; border: 1px solid var(--line); background: var(--canvas-alt); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery .case-card { height: 380px; }

.case-detail-body { display: grid; gap: 16px; margin-bottom: 34px; }
.case-detail-body p { color: var(--ink); font-size: clamp(15px, 1.5vw, 17px); line-height: 1.75; }

.case-nav { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 24px; margin-bottom: 34px; }
.case-nav-link { display: grid; gap: 3px; max-width: 47%; text-decoration: none; }
.case-nav-link.next { text-align: right; margin-left: auto; }
.case-nav-dir { font-size: 12.5px; color: var(--faint); font-weight: 600; }
.case-nav-title { font-size: 15px; font-weight: 700; color: var(--ink); }
.case-nav-link:hover .case-nav-title { color: var(--blue); }

.case-empty { text-align: center; padding: clamp(40px, 8vw, 80px) 0; }
.case-empty h1 { font-size: clamp(24px, 3vw, 34px); font-weight: 700; }
.case-empty p { margin: 14px 0 24px; color: var(--muted); }

/* ---------------- 문의 (contact.html) ---------------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.contact-list { margin-top: 28px; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 13px; align-items: flex-start; }
.contact-list .ico { width: 22px; height: 22px; color: var(--blue); flex: none; margin-top: 3px; }
.contact-k { display: block; font-size: 12.5px; color: var(--faint); }
.contact-v { font-size: 16px; font-weight: 600; color: var(--ink); }

.contact-form { padding: clamp(22px, 3vw, 32px); display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label, .consent { font-size: 14px; font-weight: 600; color: var(--ink); }
.req { color: var(--blue); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 15px; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 12px 13px; width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(28, 77, 125, 0.15);
}
.field input.invalid, .field textarea.invalid { border-color: #e5484d; box-shadow: 0 0 0 3px rgba(229, 72, 77, 0.13); }
.err { color: #e5484d; font-size: 12.5px; min-height: 1em; }
.consent { display: flex; gap: 9px; align-items: flex-start; font-weight: 500; color: var(--muted); cursor: pointer; }
.consent input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--blue); flex: none; }

/* FAQ */
.faq-list { max-width: 800px; margin-inline: auto; display: grid; gap: 12px; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.faq-item[open] { box-shadow: var(--shadow-sm); }
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--faint);
  border-bottom: 2px solid var(--faint);
  transform: rotate(45deg);
  transition: transform 0.2s ease, border-color 0.2s ease;
  flex: none;
  margin-top: -3px;
}
.faq-item[open] .faq-question::after {
  transform: rotate(-135deg);
  border-color: var(--blue);
  margin-top: 3px;
}
.faq-answer {
  padding: 0 20px 18px 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

/* 오시는 길 */
.directions { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.dir-address { font-size: 17px; font-weight: 700; color: var(--ink); }
.directions-info ul { margin-top: 14px; display: grid; gap: 8px; }
.directions-info li { color: var(--muted); font-size: 15px; position: relative; padding-left: 15px; }
.directions-info li::before { content: "·"; position: absolute; left: 3px; color: var(--blue); font-weight: 800; }
.map-slot { aspect-ratio: 2 / 1; }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.form-status { font-size: 14px; font-weight: 600; min-height: 1.2em; margin-top: 2px; }
.form-status.ok { color: #18794e; }
.form-status.fail { color: #e5484d; }
.form-note { font-size: 13px; color: var(--muted); text-align: center; margin-top: 4px; }
.btn[aria-busy="true"] { opacity: 0.7; pointer-events: none; }

/* ---------------- 플로팅 스택 (전화 · 문의) ---------------- */
.floating-stack {
  position: fixed;
  right: clamp(16px, 4vw, 28px);
  bottom: clamp(16px, 4vw, 28px);
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.floating-btn {
  height: 52px;
  min-width: 52px;
  border-radius: var(--r-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 28px -6px rgba(24,39,75,.12), 0 18px 88px -4px rgba(24,39,75,.14);
  transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1;
  overflow: hidden;
  white-space: nowrap;
}
.floating-btn:hover {
  filter: brightness(0.96);
}
.floating-btn:active {
  transform: translateY(0) scale(0.97);
}
.floating-btn svg { flex: none; }
.floating-label { display: none; }

.floating-tel { background: var(--blue); color: #fff; }
.floating-contact { background: #ffffff; color: var(--ink); border: 1px solid var(--line); }

@media (hover: hover) and (min-width: 769px) {
  .floating-btn {
    width: 52px;
    padding: 0;
    transition: width 0.22s ease, padding 0.22s ease, transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
  }
  .floating-label {
    display: inline-block;
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-width 0.22s ease, opacity 0.18s ease, margin 0.22s ease;
    margin-left: 0;
  }
  .floating-btn:hover {
    width: auto;
    padding: 0 16px 0 14px;
  }
  .floating-btn:hover .floating-label {
    max-width: 120px;
    opacity: 1;
    margin-left: 6px;
  }
}

@media (max-width: 480px) {
  .floating-btn { width: 48px; height: 48px; min-width: 48px; padding: 0; }
  .floating-btn svg { width: 20px; height: 20px; }
}

/* ---------------- 스크롤 등장 애니메이션 ---------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1 !important; transform: none !important; transition: none; }
}

/* ---------------- 반응형 미디어 쿼리 ---------------- */
@media (max-width: 1024px) {
  .anxiety-grid { grid-template-columns: repeat(2, 1fr); }
  .perf-band-card { grid-template-columns: repeat(2, 1fr); gap: 28px 0; }
  .perf-item:nth-child(2n+1) { border-left: none; }
}

@media (max-width: 900px) {
  .solution-grid { grid-template-columns: 1fr; gap: 32px; }
  .solution-reverse .solution-photo { order: 0; }
  .solution-reverse .solution-text { order: 1; }
  .cases-3-grid, .pricing-grid, .blog-grid, .evidence-grid { grid-template-columns: 1fr; }
  .cases-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
  .footer-nav-cols { justify-content: flex-start; }
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 12px;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 16px var(--gutter) 22px;
    box-shadow: var(--shadow-md);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .site-nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 6px; }
  .nav-links a { padding: 10px 4px; color: var(--ink); }
  .site-nav .nav-cta { text-align: center; margin-top: 8px; }

  .anxiety-grid { grid-template-columns: 1fr; }
  .promise-item { flex-direction: column; align-items: flex-start; gap: 8px; text-align: left; }
  .promise-content { align-items: flex-start; text-align: left; }

  .perf-band-card { grid-template-columns: 1fr; gap: 24px; }
  .perf-item + .perf-item { border-left: none; border-top: 1px solid #2a4059; padding-top: 24px; }

  .cases-grid { grid-template-columns: 1fr; }
  .gallery:has(.gallery-item:nth-child(2)),
  .gallery:has(.gallery-item:nth-child(3)) { grid-template-columns: 1fr; }
  .about-media { grid-template-columns: 1fr; }
  .directions { grid-template-columns: 1fr; }
  .service-detail { grid-template-columns: 1fr; gap: 22px; }
  .service-detail.reverse .service-media { order: 0; }
}
