/* ================================================================
   VETERANFIX JN · style.css
   PRIMARY:#141414  SECONDARY:#1A1A1A  ACCENT:#C4965A  (Warm Modern Journal)
   ================================================================ */

/* ── 0. CSS 커스텀 프로퍼티 ───────────────────────────────── */
:root {
  --primary:        #141414;
  --primary-dark:   #000000;
  --primary-light:  #2a2a2a;
  --secondary:      #1a1a1a;
  --secondary-dark: #0a0a0a;
  --accent:         #C4965A;
  --accent-dark:    #a87d41;

  --bg-cream: #F7F4EF;
  --bg-sand:  #EEE7DC;
  --bg-beige: #E5DCCF;
  --bg-dark:  #141414;
  --bg-mid:   #1f1f1f;

  --text-dark:  #141414;
  --text-body:  #2D2D2D;
  --text-muted: #737373;
  --text-light: #9A9A9A;

  --border:        rgba(0,0,0,.08);
  --border-medium: rgba(0,0,0,.13);
  --border-strong: rgba(0,0,0,.20);

  --radius:   0px;
  --max-w:    1160px;
  --header-h: 64px;

  --shadow-sm: 0 1px 3px -1px rgba(0,0,0,.12), 0 1px 2px -1px rgba(0,0,0,.08);
  --shadow:    0 4px 6px -2px rgba(0,0,0,.10), 0 2px 4px -2px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.10), 0 4px 6px -4px rgba(0,0,0,.06);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,.12), 0 8px 10px -6px rgba(0,0,0,.06);

  --transition: all .35s cubic-bezier(.4,0,.2,1);

  --font-display: 'Manrope', 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  --font-body:    'Noto Sans KR', 'Apple SD Gothic Neo', sans-serif;
}

/* ── 1. 리셋 & 베이스 ─────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  font-size: clamp(16px, 1vw + .75rem, 17px);
  line-height: 1.75;
  color: var(--text-body);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

ul, ol {
  list-style: none;
}

address {
  font-style: normal;
}

button, input, select, textarea {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* ── 2. 타이포그래피 ──────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.025em;
  color: var(--text-dark);
}

h1 { font-size: clamp(1.875rem, 5vw + .5rem, 3.5rem); }
h2 { font-size: clamp(1.5rem,   3.5vw + .25rem, 2.25rem); }
h3 { font-size: clamp(1.125rem, 2vw + .25rem, 1.5rem); }
h4 { font-size: clamp(1rem,     1.5vw, 1.25rem); }

p { max-width: 68ch; }

strong { font-weight: 700; }

small { font-size: .875em; }

/* ── 3. 레이아웃 유틸리티 ─────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(1rem, 3vw, 1.5rem);
}

.section {
  padding-block: clamp(3.5rem, 8vw, 6rem);
}

.section--lg {
  padding-block: clamp(5rem, 10vw, 8rem);
}

.section-header {
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.section-header--center {
  text-align: center;
}

.section-header--center .section-lead {
  margin-inline: auto;
}

.kicker {
  display: inline-block;
  font-size: clamp(.6875rem, .8vw, .75rem);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .75rem;
}

.section-title {
  font-size: clamp(1.5rem, 3.5vw + .25rem, 2.25rem);
  font-weight: 900;
  color: var(--text-dark);
  line-height: 1.15;
  margin-bottom: .875rem;
}

.section-lead {
  font-size: clamp(1rem, 1.5vw + .25rem, 1.125rem);
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 58ch;
}

.bg-surface { background: var(--bg-cream); }
.bg-sand    { background: var(--bg-sand); }
.bg-dark    { background: var(--bg-dark); }

.text-center { text-align: center; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ── 4. 버튼 ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(20,20,20,.35);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  box-shadow: 0 6px 20px rgba(20,20,20,.45);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

.btn-accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(196,150,90,.30);
}

.btn-accent:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  box-shadow: 0 6px 20px rgba(196,150,90,.40);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.0625rem;
  border-radius: max(var(--radius), 6px);
}

.btn-pill {
  border-radius: 50px;
}

/* ── 5. 헤더 & 네비게이션 ─────────────────────────────────── */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 900;
  transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}

#site-header.scrolled {
  background: rgba(255,255,255,.96);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px) saturate(1.4);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(1rem, 3vw, 1.5rem);
}

.site-logo {
  display: flex;
  align-items: center;
  gap: .625rem;
  text-decoration: none;
  line-height: 1;
  flex-shrink: 0;
}

.logo-svg {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.logo-svg .ls {
  stroke: #fff;
  transition: stroke .3s ease;
}

#site-header.scrolled .logo-svg .ls {
  stroke: var(--primary);
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: -.03em;
  color: #fff;
  transition: color .3s ease;
  white-space: nowrap;
}

#site-header.scrolled .logo-text {
  color: var(--primary);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a {
  color: #fff;
  text-decoration: none;
  font-size: .9375rem;
  font-weight: 600;
  letter-spacing: -.01em;
  transition: color .3s ease;
  position: relative;
}

#site-header.scrolled .site-nav a {
  color: var(--text-body);
}

.site-nav a:hover {
  color: var(--accent);
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width .25s ease;
}

.site-nav a:hover::after {
  width: 100%;
}

.nav-cta {
  background: var(--accent);
  color: #fff;
  padding: .4375rem 1.125rem;
  border-radius: max(var(--radius), 6px);
  font-weight: 700;
  transition: background .2s ease, box-shadow .2s ease;
}

#site-header.scrolled .nav-cta {
  color: #fff;
}

.nav-cta:hover {
  background: var(--accent-dark);
  box-shadow: 0 4px 12px rgba(196,150,90,.30);
}

.nav-cta::after { display: none; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: background .3s ease, transform .3s ease, opacity .3s ease;
  transform-origin: center;
}

#site-header.scrolled .hamburger span {
  background: var(--text-body);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── 6. 히어로 섹션 ───────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: var(--bg-dark);
}

.hero-slider {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform-origin: center;
}

/* 기본 Ken Burns: scale 1.07 → 1, 7s */
.hero-slide.active img {
  animation: kb-default 7s ease-in-out forwards;
}

/* 슬라이드별 오버라이드 (html.php inline style) */
@keyframes kb-default {
  from { transform: scale(1.07); }
  to   { transform: scale(1.00); }
}

@keyframes kb1 {
  from { transform: scale(1.07) translate(0,0); }
  to   { transform: scale(1.14) translate(-2%,-1%); }
}

@keyframes kb2 {
  from { transform: scale(1.08) translate(1%,0); }
  to   { transform: scale(1.04) translate(-1%,1%); }
}

@keyframes kb3 {
  from { transform: scale(1.10) translate(-1%,1%); }
  to   { transform: scale(1.06) translate(1%,0); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15,23,42,.55) 0%,
    rgba(15,23,42,.30) 50%,
    rgba(15,23,42,.70) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 10;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: clamp(5rem, 10vw, 7rem) clamp(1rem, 4vw, 1.5rem) clamp(4rem, 8vw, 5rem);
  color: #fff;
}

.hero-kw {
  font-size: clamp(.6875rem, .8vw, .75rem);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.72);
  margin-bottom: 1rem;
}

.hero-content h1 {
  font-size: clamp(2rem, 5.5vw + .5rem, 4rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -.03em;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,.45);
  margin-bottom: 1.125rem;
}

.hero-sub {
  font-size: clamp(1rem, 2vw + .25rem, 1.25rem);
  color: rgba(255,255,255,.88);
  max-width: 50ch;
  line-height: 1.75;
  margin-bottom: 2.25rem;
  text-shadow: 0 1px 8px rgba(0,0,0,.35);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.5vw + .25rem, 1.125rem);
  font-weight: 700;
  padding: clamp(.875rem, 2vw, 1rem) clamp(1.5rem, 3vw, 2rem);
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(196,150,90,.45);
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.hero-cta:hover {
  background: var(--accent-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(196,150,90,.55);
}

.hero-dots {
  position: absolute;
  bottom: clamp(1.5rem, 4vw, 2.5rem);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: .75rem;
  z-index: 10;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.6);
  background: transparent;
  cursor: pointer;
  transition: background .3s ease, border-color .3s ease, transform .3s ease;
  padding: 0;
}

.hero-dot.active {
  background: #fff;
  border-color: #fff;
  transform: scale(1.2);
}

/* 이전/다음 버튼 (app.js 동적 추가) */
.hero-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.4);
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.hero-btn:hover {
  background: rgba(255,255,255,.25);
  border-color: rgba(255,255,255,.7);
}

.hero-btn-prev { left: clamp(1rem, 3vw, 2rem); }
.hero-btn-next { right: clamp(1rem, 3vw, 2rem); }

/* ── 7. 서비스 카드 ───────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: #fff;
  border: 1.5px solid var(--border-medium);
  padding: clamp(1.25rem, 2.5vw, 1.75rem) clamp(1rem, 2vw, 1.5rem);
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity .25s ease;
}

.service-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 32px rgba(20,20,20,.14);
  transform: translateY(-4px);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 48px;
  height: 48px;
  background: rgba(196,150,90,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .25s ease;
}

.service-card:hover .service-icon {
  background: var(--primary);
}

.service-card:hover .service-icon svg {
  stroke: #fff;
}

.service-name {
  font-size: clamp(1rem, 1.5vw, 1.0625rem);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.35;
  flex: 1;
}

.service-arrow {
  display: flex;
  align-items: center;
  gap: .375rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--accent);
  transition: gap .2s ease;
}

.service-card:hover .service-arrow {
  gap: .625rem;
}

/* ── 8. 시공사례 / Before·After ───────────────────────────── */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.case-card {
  background: #fff;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow .25s ease, transform .25s ease;
}

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

.case-ba {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.case-ba-side {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-sand);
}

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

.case-card:hover .case-ba-side img {
  transform: scale(1.05);
}

.case-ba-label {
  position: absolute;
  bottom: .5rem;
  left: .5rem;
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .06em;
  background: rgba(15,23,42,.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #fff;
  padding: .1875rem .5rem;
}

.case-info {
  padding: 1.25rem;
}

.case-title {
  font-size: .9375rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: .5rem;
  line-height: 1.4;
}

.case-brief {
  font-size: .8125rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.case-more {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  transition: gap .2s ease;
}

.case-more:hover {
  gap: .625rem;
}

.cases-empty {
  text-align: center;
  padding: 4rem 1.25rem;
  background: var(--bg-cream);
  border: 2px dashed var(--border-medium);
  color: var(--text-light);
}

/* ── 9. 신뢰 통계 ─────────────────────────────────────────── */
.stats-section {
  background: linear-gradient(135deg, var(--primary) 0%, #0a2540 100%);
  padding-block: clamp(4rem, 8vw, 6rem);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item {
  color: #fff;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}

.stat-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.stat-item:nth-child(2) { transition-delay: .1s; }
.stat-item:nth-child(3) { transition-delay: .2s; }
.stat-item:nth-child(4) { transition-delay: .3s; }

.stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  border: 1.5px solid rgba(255,255,255,.22);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.625rem, 3.5vw, 2.5rem);
  font-weight: 900;
  line-height: 1;
  color: #fff;
  margin-bottom: .5rem;
}

.stat-label {
  font-size: clamp(.875rem, 1.2vw, 1rem);
  color: rgba(255,255,255,.72);
  line-height: 1.4;
}

/* ── 10. FAQ 아코디언 ─────────────────────────────────────── */

/* <details>/<summary> 패턴 (html.php) */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  max-width: 800px;
}

details.faq-item {
  background: #fff;
  border: 1.5px solid var(--border-medium);
  overflow: hidden;
  transition: border-color .2s ease;
}

details.faq-item[open] {
  border-color: rgba(196,150,90,.30);
}

details.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  list-style: none;
  font-size: clamp(.9375rem, 1.2vw, 1rem);
  font-weight: 700;
  color: var(--text-dark);
  gap: 1rem;
  user-select: none;
}

details.faq-item summary::-webkit-details-marker { display: none; }

.faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, transform .2s ease;
}

details.faq-item[open] .faq-icon {
  background: var(--primary);
  transform: rotate(45deg);
}

details.faq-item[open] .faq-icon svg {
  stroke: #fff;
}

.faq-answer {
  padding: 0 1.5rem 1.25rem;
  font-size: .9375rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* JS 구동 패턴 (.cc-faq-item) — 서비스 페이지용 */
.cc-faq-list {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.cc-faq-item {
  background: #fff;
  border: 1.5px solid var(--border-medium);
  overflow: hidden;
  transition: border-color .2s ease;
}

.cc-faq-item.open {
  border-color: rgba(196,150,90,.30);
}

.cc-faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  font-size: clamp(.9375rem, 1.2vw, 1rem);
  font-weight: 700;
  color: var(--text-dark);
  gap: 1rem;
  user-select: none;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
}

.cc-faq-q-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, transform .25s ease;
}

.cc-faq-item.open .cc-faq-q-icon {
  background: var(--primary);
  transform: rotate(45deg);
}

.cc-faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s cubic-bezier(.4,0,.2,1);
}

.cc-faq-item.open .cc-faq-body {
  max-height: 400px;
}

.cc-faq-a {
  padding: 0 1.5rem 1.25rem;
  font-size: .9375rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ── 11. 지역 카드 그리드 ─────────────────────────────────── */
.regions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.125rem;
}

.region-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: #fff;
  box-shadow: var(--shadow);
  transition: box-shadow .25s ease, transform .25s ease;
  overflow: hidden;
  min-height: 160px;
}

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

.region-thumb {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary) 0%, #0e4780 100%);
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
  min-height: 110px;
}

.region-card[data-sido="서울"] .region-thumb {
  background: linear-gradient(135deg, #0a1628 0%, var(--primary) 100%);
}

.region-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .32;
  transition: opacity .35s ease, transform .35s ease;
}

.region-card:hover .region-thumb img {
  opacity: .48;
  transform: scale(1.05);
}

.region-thumb-inner {
  position: relative;
  z-index: 1;
}

.region-sido-badge {
  display: inline-block;
  font-size: .6875rem;
  font-weight: 700;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.3);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: .1875rem .5625rem;
  margin-bottom: .5rem;
  letter-spacing: .04em;
}

.region-name {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 800;
  line-height: 1.2;
}

.region-footer {
  background: var(--bg-mid);
  padding: .75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

.region-title {
  font-size: .8125rem;
  color: var(--text-light);
  line-height: 1.35;
  flex: 1;
}

.region-arrow {
  color: var(--accent);
  flex-shrink: 0;
  font-weight: 700;
  font-size: 1.125rem;
  transition: transform .2s ease;
}

.region-card:hover .region-arrow {
  transform: translateX(3px);
}

/* ── 12. CTA 섹션 ─────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary) 100%);
  padding-block: clamp(4.5rem, 9vw, 7rem);
  text-align: center;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw + .25rem, 2.75rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.cta-sub {
  font-size: clamp(1rem, 1.5vw + .2rem, 1.125rem);
  color: rgba(255,255,255,.78);
  line-height: 1.75;
  margin-bottom: 2.5rem;
  max-width: 50ch;
  margin-inline: auto;
}

.cta-phones {
  margin-top: 1.5rem;
  font-size: .9375rem;
  color: rgba(255,255,255,.6);
}

.cta-phones a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

/* ── 13. 리치 컴포넌트 (서비스 페이지용) ─────────────────── */

/* .kicker — 섹션 eyebrow 라벨 (이미 정의됨, 추가 변형) */
.kicker--light {
  color: rgba(255,255,255,.75);
}

.kicker--secondary {
  color: var(--secondary);
}

/* .feat-card / .feat-num — 넘버드 피처카드 */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

.feat-card {
  background: #fff;
  border: 1.5px solid var(--border);
  padding: clamp(1.5rem, 2.5vw, 2rem) clamp(1.25rem, 2vw, 1.75rem);
  position: relative;
  overflow: hidden;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.feat-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.feat-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity .25s ease;
}

.feat-card:hover::after {
  opacity: 1;
}

.feat-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1;
  color: rgba(196,150,90,.12);
  margin-bottom: .75rem;
  display: block;
  transition: color .25s ease;
}

.feat-card:hover .feat-num {
  color: rgba(196,150,90,.22);
}

.feat-title {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: .5rem;
}

.feat-desc {
  font-size: .9375rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* .symp-card / .num — 진단카드 */
.symp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.125rem;
}

.symp-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: #fff;
  border: 1.5px solid var(--border);
  padding: 1.25rem;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.symp-card:hover {
  border-color: rgba(196,150,90,.35);
  box-shadow: 0 4px 20px rgba(196,150,90,.10);
  transform: translateY(-2px);
}

.symp-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: .9375rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.symp-body h4 {
  font-size: .9375rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: .375rem;
}

.symp-body p {
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: none;
}

/* .proc-steps / .proc-step — 프로세스 스텝 + 연결선 */
.proc-steps {
  counter-reset: proc;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  position: relative;
  max-width: 720px;
}

.proc-steps::before {
  content: '';
  position: absolute;
  left: 27px;
  top: 28px;
  bottom: 28px;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary) 0%, rgba(196,150,90,.12) 100%);
  pointer-events: none;
}

.proc-step {
  counter-increment: proc;
  display: grid;
  grid-template-columns: 56px 1fr;
  column-gap: 1.5rem;
  align-items: start;
}

.proc-step::before {
  content: counter(proc, decimal-leading-zero);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 6px #fff, 0 0 0 7px rgba(196,150,90,.15);
}

.proc-step-body {
  padding-top: .875rem;
}

.proc-step-title {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: .5rem;
  line-height: 1.35;
}

.proc-step-desc {
  font-size: .9375rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: none;
}

/* .method-card / .pros / .cons — 방식 비교카드 */
.method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.method-card {
  background: #fff;
  border: 1.5px solid var(--border);
  padding: 1.75rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.method-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

.method-card-head {
  display: flex;
  align-items: center;
  gap: .875rem;
  margin-bottom: 1.25rem;
}

.method-card-icon {
  width: 44px;
  height: 44px;
  background: rgba(196,150,90,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.method-card-name {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-dark);
}

.pros,
.cons {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-bottom: 1rem;
}

.pros li,
.cons li {
  display: flex;
  gap: .625rem;
  align-items: flex-start;
  font-size: .9rem;
  color: var(--text-body);
  line-height: 1.55;
}

.pros li::before {
  content: '';
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--secondary);
  margin-top: .125rem;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 8l3 3 7-7' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: contain;
}

.cons li::before {
  content: '';
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #E5E7EB;
  margin-top: .125rem;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 8h8' stroke='%2394A3B8' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: contain;
}

/* .svc-gallery — 시공 갤러리 3컷 그리드 */
.svc-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: .75rem;
}

.svc-gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-sand);
}

.svc-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.svc-gallery-item:hover img {
  transform: scale(1.05);
}

.svc-gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: .625rem .875rem;
  background: rgba(15,23,42,.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: .8125rem;
  font-weight: 600;
  color: #fff;
  transform: translateY(100%);
  transition: transform .3s ease;
}

.svc-gallery-item:hover .svc-gallery-caption {
  transform: translateY(0);
}

/* ── 14. 스크롤 리빌 ──────────────────────────────────────── */
.rv {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s cubic-bezier(.4,0,.2,1), transform .65s cubic-bezier(.4,0,.2,1);
}

.rv.in {
  opacity: 1;
  transform: translateY(0);
}

.rv--left {
  transform: translateX(-28px);
}

.rv--left.in {
  transform: translateX(0);
}

.rv--right {
  transform: translateX(28px);
}

.rv--right.in {
  transform: translateX(0);
}

.rv--scale {
  transform: scale(.94);
}

.rv--scale.in {
  transform: scale(1);
}

/* 지연 계단 */
.rv--d1 { transition-delay: .08s; }
.rv--d2 { transition-delay: .16s; }
.rv--d3 { transition-delay: .24s; }
.rv--d4 { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  .rv {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── 15. 갤러리 페이지 ────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

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

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

.gallery-card-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-sand);
}

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

.gallery-card:hover .gallery-card-img img {
  transform: scale(1.05);
}

.gallery-card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.gallery-card-title {
  font-size: .9375rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.4;
  margin-bottom: .5rem;
}

.gallery-card-meta {
  font-size: .8125rem;
  color: var(--text-muted);
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-top: auto;
}

/* ── 16. 서비스 페이지 공통 히어로 ───────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: clamp(5rem, 10vw, 7rem) 1.25rem clamp(3rem, 6vw, 4.5rem);
  text-align: center;
  color: #fff;
  margin-top: var(--header-h);
}

.page-hero .kicker {
  color: rgba(255,255,255,.72);
}

.page-hero h1 {
  font-size: clamp(1.75rem, 4.5vw + .25rem, 3rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 1rem;
  text-shadow: 0 2px 12px rgba(0,0,0,.25);
}

.page-hero-desc {
  font-size: clamp(1rem, 1.5vw + .2rem, 1.125rem);
  color: rgba(255,255,255,.84);
  max-width: 58ch;
  margin: 0 auto;
  line-height: 1.75;
}

/* ── 17. 푸터 ─────────────────────────────────────────────── */
#site-footer {
  background: var(--bg-dark);
  color: var(--text-muted);
  font-size: .875rem;
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}

.footer-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(1rem, 3vw, 1.5rem);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 2.5rem 3rem;
}

.footer-col-title {
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #475569;
  margin-bottom: 1rem;
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 800;
  color: #f1f5f9;
  margin-bottom: .5rem;
}

.footer-brand-desc {
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.footer-phone {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  transition: color .2s ease;
}

.footer-phone:hover {
  color: #fb923c;
}

.footer-links,
.footer-quick-links {
  display: flex;
  flex-direction: column;
  gap: .625rem;
}

.footer-links a,
.footer-quick-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: .9rem;
  transition: color .2s ease;
}

.footer-links a:hover,
.footer-quick-links a:hover {
  color: #f1f5f9;
}

.footer-biz {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #1f1f1f;
  display: flex;
  flex-wrap: wrap;
  gap: .375rem .875rem;
  font-size: .8125rem;
  color: #475569;
}

.footer-biz span::before {
  content: '\B7';
  margin-right: .5rem;
}

.footer-biz span:first-child::before {
  content: '';
}

.footer-copy {
  margin-top: 1.25rem;
  font-size: .8125rem;
  color: #334155;
  text-align: center;
}

/* ── 18. Floating CTA & Back-to-top ──────────────────────── */
.floating-cta {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 800;
  display: flex;
  align-items: center;
  gap: .625rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .9375rem;
  padding: .8125rem 1.25rem;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(196,150,90,.40);
  animation: pulse-ring 2.4s ease-in-out infinite;
  transition: background .2s ease, transform .2s ease;
}

.floating-cta:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  animation-play-state: paused;
}

@keyframes pulse-ring {
  0%, 100% { box-shadow: 0 4px 20px rgba(196,150,90,.40); }
  50%       { box-shadow: 0 4px 28px rgba(196,150,90,.70), 0 0 0 8px rgba(196,150,90,.12); }
}

#btn-top {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 800;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: #1f1f1f;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,.20);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease, background .2s ease, transform .2s ease;
}

#btn-top.visible {
  opacity: 1;
  pointer-events: auto;
}

#btn-top:hover {
  background: #334155;
  color: #f1f5f9;
  transform: translateY(-2px);
}

/* ── 19. 반응형 ───────────────────────────────────────────── */

/* 1024px — 태블릿 가로 */
@media (max-width: 1024px) {
  .cases-grid       { grid-template-columns: repeat(2, 1fr); }
  .stats-grid       { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .footer-grid      { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .method-grid      { grid-template-columns: repeat(2, 1fr); }
  .proc-steps       { max-width: 100%; }
}

/* 768px — 태블릿 세로 / 모바일 가로 */
@media (max-width: 768px) {
  .section          { padding-block: 3.5rem; }
  .section--lg      { padding-block: 4rem; }

  .hamburger        { display: flex; }

  .site-nav {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem clamp(1rem, 4vw, 1.5rem) 1.5rem;
    gap: .25rem;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
  }

  .site-nav.open    { display: flex; }

  .site-nav a {
    color: var(--text-body);
    padding: .75rem .5rem;
    border-bottom: 1px solid #f3f4f6;
    font-size: 1rem;
  }

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

  .nav-cta {
    margin-top: .5rem;
    text-align: center;
    padding: .75rem;
  }

  .hero-btn         { display: none; }

  .services-grid    { grid-template-columns: repeat(2, 1fr); }
  .cases-grid       { grid-template-columns: 1fr; }
  .footer-grid      { grid-template-columns: 1fr; }
  .regions-grid     { grid-template-columns: repeat(2, 1fr); }
  .svc-gallery      { grid-template-columns: 1fr; }
  .feat-grid        { grid-template-columns: 1fr; }
  .symp-grid        { grid-template-columns: 1fr; }
  .method-grid      { grid-template-columns: 1fr; }

  .proc-steps::before { left: 23px; }
  .proc-step          { grid-template-columns: 48px 1fr; }
  .proc-step::before  { width: 48px; height: 48px; font-size: .9375rem; }

  .floating-cta     { bottom: 1rem; right: 1rem; font-size: .875rem; padding: .6875rem 1rem; }
  #btn-top          { bottom: 1rem; left: 1rem; width: 40px; height: 40px; }

  .stats-grid       { grid-template-columns: repeat(2, 1fr); }
}

/* 560px — 모바일 세로 */
@media (max-width: 560px) {
  .services-grid    { grid-template-columns: 1fr; }
  .regions-grid     { grid-template-columns: 1fr; }
  .stats-grid       { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  .gallery-grid     { grid-template-columns: 1fr; }
  .case-ba          { grid-template-columns: 1fr; }
  .case-ba-side:first-child { border-bottom: 1px solid var(--border); }

  .hero-dots        { bottom: 1rem; }
  .footer-biz       { flex-direction: column; gap: .375rem; }
  .footer-biz span::before { content: ''; margin: 0; }
}

/* ── 20. 애니메이션 & 키프레임 ───────────────────────────── */
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes slide-in-left {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes slide-in-right {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes scale-in {
  from { opacity: 0; transform: scale(.94); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Hero content 등장 */
.hero-content > * {
  animation: fade-up .8s ease both;
}

.hero-content .hero-kw  { animation-delay: .1s; }
.hero-content h1        { animation-delay: .25s; }
.hero-content .hero-sub { animation-delay: .4s; }
.hero-content .hero-cta { animation-delay: .55s; }

/* 데이터 카운터 */
[data-count] {
  font-variant-numeric: tabular-nums;
}

/* 선택 색상 */
::selection {
  background: rgba(196,150,90,.15);
  color: var(--text-dark);
}
