/* ============================================================
   Roots — 뷰티샵세면대장맞춤 (cbc.haengjipsaveteran.com)
   Field Report 시스템 변형 — 포인트 컬러: 딥틸(딥그린)
   ============================================================ */

:root {
  --ink:          #16211C;
  --ink-mid:      #1F2B25;
  --ink-soft:     #52605A;
  --teal:         #1F6F62;
  --teal-deep:    #164F45;
  --teal-light:   #2E8C7C;
  --paper:        #F3F1E9;
  --paper-mid:    #E9E5D8;
  --paper-dark:   #DCD6C4;
  --white:        #FBFAF6;
  --border:       #C6C0AE;
  --border-dark:  #16211C;

  --f-sans: 'Pretendard', 'Noto Sans KR', sans-serif;

  --fs-display: clamp(3.4rem, 9vw, 7.6rem);
  --fs-h1:      clamp(2.6rem, 5.5vw, 4.8rem);
  --fs-h2:      clamp(1.7rem, 3vw, 2.6rem);
  --fs-h3:      clamp(1.05rem, 1.8vw, 1.35rem);
  --fs-body:    clamp(0.9rem, 1.3vw, 1rem);
  --fs-small:   0.83rem;
  --fs-label:   0.75rem;

  --sp:    clamp(64px, 8vw, 112px);
  --sp-sm: clamp(44px, 6vw, 72px);
  --max-w: 1200px;
  --col:   clamp(16px, 4vw, 48px);

  --t:      0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow: 0.6s  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 480px) {
  :root {
    --fs-display: clamp(2.7rem, 13vw, 4rem);
    --fs-h1:      clamp(2rem, 8vw, 2.8rem);
    --fs-h2:      clamp(1.4rem, 5vw, 1.9rem);
  }
}

/* ---- 리셋 / 베이스 ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-sans);
  font-size: var(--fs-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body, p, h1, h2, h3, h4, h5, h6, li, td, th, a, span, div, button {
  word-break: keep-all;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
h1, h2, h3, h4 { font-weight: 900; letter-spacing: -0.03em; }
table { border-collapse: collapse; width: 100%; }
.table-wrap { overflow-x: auto; }

.wrap { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 var(--col); }

.scroll-progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; background: var(--teal); z-index: 9999; }

/* ---- 그리드 유틸 (인라인 고정 그리드 금지 규칙 대응) ---- */
/* 전 페이지 공통 원칙: 그리드는 어떤 브레이크포인트에서도 1컬럼(한 줄에 콘텐츠 1개)으로 붕괴시키지 않는다 — 최소 2컬럼 유지 */
.dp-g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.dp-g3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.dp-stat3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; text-align: center; align-items: center; }
@media (max-width: 768px) { .dp-g3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .dp-g2, .dp-g3, .dp-stat3 { gap: 12px; } }
@media (max-width: 380px) { .dp-stat3 { grid-template-columns: repeat(2, 1fr); } }

/* ---- 라벨 태그 ---- */
.label-tag {
  display: inline-block; font-size: var(--fs-label); font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal);
  padding-left: 20px; position: relative;
}
.label-tag::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 12px; height: 2px; background: var(--teal);
}
.label-tag--light { color: var(--paper-mid); }
.label-tag--light::before { background: var(--paper-mid); }

/* ---- 헤더 / NAV ---- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--paper); border-bottom: 1px solid var(--border);
  transition: border-color var(--t);
}
.site-header.scrolled { border-bottom-color: var(--ink); }
.nav-inner {
  display: flex; align-items: center; padding: 16px var(--col);
  max-width: calc(var(--max-w) + var(--col) * 2); margin: 0 auto; gap: 40px;
}
.site-logo { display: flex; align-items: center; }
.logo-text { font-size: 1.05rem; font-weight: 900; letter-spacing: -0.03em; }
.logo-sub { font-size: 0.7rem; font-weight: 500; color: var(--ink-soft); }
.main-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.main-nav a {
  font-size: 0.85rem; font-weight: 500; color: var(--ink-soft); padding: 8px 12px;
  transition: color var(--t); border-bottom: 2px solid transparent;
}
.main-nav .nav-cta {
  margin-left: 8px; background: var(--ink); color: var(--paper);
  padding: 10px 20px; font-weight: 700; font-size: 0.85rem; transition: background var(--t);
}
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 32px; height: 32px; margin-left: auto;
  position: relative; z-index: 1003;
}
.nav-toggle span { display: block; width: 100%; height: 2px; background: var(--ink); transition: transform var(--t), opacity var(--t); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (hover: hover) and (pointer: fine) {
  .main-nav a:hover { color: var(--ink); }
  .main-nav .nav-cta:hover { background: var(--teal); }
  .btn-primary:hover { background: var(--teal); }
  .btn-ghost:hover { color: var(--ink); border-color: var(--ink); }
  .btn-outline-dark:hover { background: var(--paper); color: var(--ink); }
  .btn-teal:hover { background: var(--teal-deep); }
  .case-card:hover { border-color: var(--ink); }
  .case-card:hover .case-img img { transform: scale(1.04); }
  .service-item:hover { background: rgba(255,255,255,0.04); }
  .nseo-card:hover { background: var(--paper); }
  .nseo-card:hover .nseo-card-img img { transform: scale(1.04); }
  .nseo-card-more:hover { background: var(--ink-mid); border-color: var(--teal); }
  .nseo-card-more:hover .nseo-card-more-icon { border-color: var(--teal); color: var(--teal); }
  .floating-consult:hover { background: var(--teal-deep); transform: translateY(-2px); }
  .consult-card:hover { border-color: var(--ink); background: var(--paper); }
  .consult-card.tel-card:hover, .consult-card.sms-card:hover { border-color: var(--teal); }
  .cases-marquee-wrap:hover .cases-marquee-track { animation-play-state: paused; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; top: 0; right: -100%; width: min(280px, 85vw); height: 100vh; height: 100dvh;
    background: var(--paper); flex-direction: column; padding: 80px 24px 32px;
    border-left: 1px solid var(--border); transition: right 0.35s cubic-bezier(0.22,1,0.36,1);
    z-index: 1002; align-items: flex-start;
  }
  .main-nav.open { right: 0; }
  .main-nav a { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--border); }
  .main-nav .nav-cta { margin-left: 0; margin-top: 12px; text-align: center; }
}

/* ---- HERO (사진 상단 + 텍스트 하단 스택) ---- */
.hero { padding-top: 56px; background: var(--paper); }
.hero-banner { position: relative; width: 100%; height: 62vh; min-height: 340px; max-height: 620px; overflow: hidden; }
.hero-banner img { width: 100%; height: 100%; object-fit: cover; object-position: center 88%; }
.hero-banner-overlay { position: absolute; inset: 0; background: linear-gradient(to top, var(--paper) 0%, rgba(243,241,233,0.35) 5%, transparent 16%); pointer-events: none; z-index: 2; }

/* 히어로 슬라이드쇼 — 5장 크로스페이드 + 켄번즈 줌, 20초 순환 */
.hero-slideshow { position: absolute; inset: 0; }
.hero-slideshow img {
  position: absolute; inset: 0; opacity: 0;
  animation: hero-slide 20s infinite;
  animation-fill-mode: backwards;
}
.hero-slideshow img:nth-child(1) { animation-delay: 0s; }
.hero-slideshow img:nth-child(2) { animation-delay: 4s; }
.hero-slideshow img:nth-child(3) { animation-delay: 8s; }
.hero-slideshow img:nth-child(4) { animation-delay: 12s; }
.hero-slideshow img:nth-child(5) { animation-delay: 16s; }
@keyframes hero-slide {
  0%    { opacity: 0; transform: scale(1.1); }
  3%    { opacity: 1; }
  18%   { opacity: 1; transform: scale(1.02); }
  20%   { opacity: 0; }
  100%  { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slideshow img { animation: none; opacity: 0; }
  .hero-slideshow img:first-child { opacity: 1; }
}
.hero-content {
  padding: clamp(40px,5vw,64px) var(--col) clamp(48px,6vw,72px);
  max-width: calc(var(--max-w) + var(--col)*2); margin: 0 auto;
  border-bottom: 1px solid var(--border);
}
.hero-eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.hero-eyebrow-line { width: 40px; height: 1px; background: var(--teal); }
.hero-eyebrow-text { font-size: var(--fs-label); font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--teal); }
.hero h1 { font-size: clamp(2.2rem, 5.4vw, 4.4rem); line-height: 1.08; letter-spacing: -0.03em; margin-bottom: 20px; max-width: 100%; overflow-wrap: anywhere; }
.hero-sub { font-size: 1.05rem; font-weight: 600; color: var(--teal-deep); margin-bottom: 20px; }
.hero-desc { font-size: 1rem; font-weight: 300; color: var(--ink-soft); line-height: 1.8; max-width: 520px; margin-bottom: 36px; }
.hero-cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta { margin-top: 44px; display: flex; gap: 32px; padding-top: 28px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.hero-meta-item { display: flex; flex-direction: column; }
.hero-meta-num { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); margin-bottom: 4px; }
.hero-meta-val { font-size: 0.9rem; font-weight: 600; color: var(--ink); }

@media (max-width: 768px) { .hero-banner { height: 46vh; min-height: 260px; } }
@media (max-width: 480px) { .hero-banner { height: 40vh; min-height: 220px; } }

/* ---- 서브페이지 HERO (오버레이 다크형) ---- */
.sub-hero {
  min-height: 62vh; position: relative; display: flex; align-items: flex-end;
  padding-bottom: 56px; padding-top: 56px; overflow: hidden; background: var(--ink);
}
.sub-hero-img { position: absolute; inset: 0; }
.sub-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.sub-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(22,33,28,0.94) 0%, rgba(22,33,28,0.55) 50%, rgba(22,33,28,0.20) 100%); }
.sub-hero-content { position: relative; z-index: 2; max-width: calc(var(--max-w) + var(--col)*2); margin: 0 auto; padding: 0 var(--col); }
.sub-hero h1 { color: var(--paper); font-size: var(--fs-h1); }
.sub-hero p { color: rgba(243,241,233,0.72); font-size: 1rem; margin-top: 12px; max-width: 520px; font-weight: 300; }
.sub-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
@media (max-width: 768px) { .sub-hero { min-height: 52vh; } }

/* ---- 마퀴 서비스 스트립 ---- */
.service-strip { background: var(--ink); overflow: hidden; white-space: nowrap; }
.service-strip-inner { display: inline-flex; animation: marquee 24s linear infinite; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.strip-item {
  display: inline-flex; align-items: center; gap: 16px; padding: 14px 32px;
  font-size: var(--fs-small); font-weight: 600; color: rgba(243,241,233,0.55);
  letter-spacing: 0.08em; text-transform: uppercase; border-right: 1px solid rgba(255,255,255,0.08);
}
.strip-item-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--teal); }
@media (prefers-reduced-motion: reduce) { .service-strip-inner, .cases-marquee-track { animation: none !important; } }

/* ---- 시공사례 마퀴 ---- */
.cases-section { background: var(--paper); padding: var(--sp) 0; overflow: hidden; }
.cases-marquee-wrap {
  overflow: hidden; position: relative;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}
.cases-marquee-track { display: flex; gap: 2px; width: max-content; animation: cases-scroll 32s linear infinite; }
@keyframes cases-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.case-card { width: 340px; flex-shrink: 0; border: 1px solid var(--border); background: var(--white); transition: border-color var(--t); overflow: hidden; }
.case-img { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.case-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease-out); }
.ba-pair { display: grid; grid-template-columns: 1fr 1fr; height: 100%; gap: 1px; background: var(--border); }
.ba-label { position: absolute; bottom: 6px; left: 6px; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.1em; padding: 2px 8px; text-transform: uppercase; }
.ba-label.before { background: var(--ink); color: var(--paper); }
.ba-label.after { background: var(--teal); color: #fff; }
.case-body { padding: 20px 24px 24px; }
.case-num { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; color: var(--teal); margin-bottom: 8px; }
.case-title { font-size: 0.95rem; font-weight: 800; color: var(--ink); margin-bottom: 6px; letter-spacing: -0.02em; }
.case-desc { font-size: 0.82rem; color: var(--ink-soft); line-height: 1.6; }

.cases-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 24px; margin-top: 48px;
}
.cases-grid .case-card { width: 100%; }
@media (max-width: 640px) { .cases-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
@media (max-width: 640px) { .cases-grid .case-body { padding: 12px 12px 16px; } }

/* ---- 서비스 다크 그리드 ---- */
.services-section { background: var(--ink); }
.services-head { display: flex; justify-content: space-between; align-items: flex-end; padding-top: var(--sp-sm); padding-bottom: 40px; flex-wrap: wrap; gap: 16px; }
.services-grid { display: grid; grid-template-columns: repeat(2,1fr); border-left: 1px solid rgba(255,255,255,0.08); margin-bottom: var(--sp-sm); }
.services-grid .service-item:last-child:nth-child(odd) { grid-column: 1 / -1; }
.service-item { padding: 40px 28px; border-right: 1px solid rgba(255,255,255,0.08); border-bottom: 1px solid rgba(255,255,255,0.08); transition: background var(--t); }
.service-item-num { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; color: var(--teal); margin-bottom: 24px; display: block; }
.service-item h3 { font-size: 1rem; font-weight: 800; color: var(--paper); margin-bottom: 12px; }
.service-item p { font-size: 0.83rem; color: rgba(243,241,233,0.55); line-height: 1.7; }
@media (max-width: 1024px) { .services-grid { grid-template-columns: repeat(2,1fr); } }

.service-grid-light { display: grid; grid-template-columns: repeat(4,1fr); border-left: 1px solid var(--border); border-top: 1px solid var(--border); margin-top: 40px; }
.service-card-light { padding: 28px 22px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--white); transition: background var(--t); }
@media (hover: hover) and (pointer: fine) { .service-card-light:hover { background: var(--paper-mid); } }
@media (max-width: 1024px) { .service-grid-light { grid-template-columns: repeat(2,1fr); } }

/* ---- 특징 밴드 ---- */
.features-band { background: var(--teal); }
.features-band-inner { display: grid; grid-template-columns: repeat(4,1fr); border-left: 1px solid rgba(0,0,0,0.12); }
.feature-item { padding: 36px 28px; border-right: 1px solid rgba(0,0,0,0.12); display: flex; flex-direction: column; gap: 8px; }
.feature-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(251,250,246,0.68); }
.feature-value { font-size: 1.05rem; font-weight: 900; color: var(--paper); letter-spacing: -0.02em; }
@media (max-width: 1024px), (max-width: 768px) { .features-band-inner { grid-template-columns: repeat(2,1fr); } }

/* ---- 프로세스 스텝 ---- */
.process-section { background: var(--paper); padding: var(--sp) 0; border-top: 1px solid var(--border); }
.process-steps { display: grid; grid-template-columns: repeat(5,1fr); border-left: 1px solid var(--border); margin-top: 56px; }
.process-step { padding: 32px 24px; border-right: 1px solid var(--border); position: relative; }
.process-step-num { font-size: clamp(2.2rem,4vw,3.6rem); font-weight: 900; letter-spacing: -0.06em; color: var(--paper-dark); line-height: 1; margin-bottom: 20px; display: block; }
.process-step h4 { font-size: 0.9rem; font-weight: 800; color: var(--ink); margin-bottom: 8px; }
.process-step p { font-size: 0.8rem; color: var(--ink-soft); line-height: 1.65; }
@media (max-width: 1024px) { .process-steps { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 768px) {
  .process-steps { grid-template-columns: repeat(2,1fr); }
  .process-step { flex-direction: column; gap: 10px; padding: 20px 16px; border-bottom: 1px solid var(--border); }
}

/* ---- 연관 서비스(NSEO) 카드 그리드 ---- */
.nseo-section { background: var(--paper-mid); padding: var(--sp) 0; border-top: 1px solid var(--border); }
.nseo-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(260px,1fr)); border-left: 1px solid var(--border); border-top: 1px solid var(--border); margin-top: 48px; }
.nseo-card { display: block; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--white); transition: background var(--t); overflow: hidden; }
.nseo-card-img { aspect-ratio: 16/9; overflow: hidden; border-bottom: 1px solid var(--border); }
.nseo-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease-out); }
.nseo-badge { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 8px; }
.nseo-badge.main, .nseo-badge.current { color: var(--teal); }
.nseo-card-body { padding: 16px 18px 20px; }
.nseo-card h3 { font-size: 0.95rem; font-weight: 800; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.nseo-card p { font-size: 0.8rem; color: var(--ink-soft); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nseo-card-arrow { margin-top: 14px; font-size: 0.78rem; font-weight: 700; color: var(--teal); }
.nseo-card-more { background: var(--ink); border-color: var(--ink); display: flex !important; align-items: center; gap: 16px; padding: 24px; }
.nseo-card-more-icon { width: 48px; height: 48px; border: 1px solid rgba(243,241,233,0.20); display: flex; align-items: center; justify-content: center; color: rgba(243,241,233,0.50); transition: border-color var(--t), color var(--t); flex-shrink: 0; }
.nseo-card-more-text { color: var(--paper); font-weight: 700; font-size: 0.9rem; }
@media (max-width: 768px) { .nseo-grid { grid-template-columns: repeat(2,1fr); } }

/* ---- CTA 섹션 ---- */
.cta-section { background: var(--ink-mid); padding: var(--sp) 0; border-top: 1px solid rgba(255,255,255,0.06); }
.cta-inner { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 48px; }
.cta-label { color: var(--teal); margin-bottom: 16px; }
.cta-section h2 { font-size: clamp(1.8rem,4vw,2.8rem); color: var(--paper); margin-bottom: 16px; }
.cta-desc { font-size: 0.95rem; color: rgba(243,241,233,0.55); font-weight: 300; line-height: 1.8; max-width: 480px; }
.cta-badges { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.cta-badge { font-size: 0.78rem; color: rgba(243,241,233,0.50); display: flex; align-items: center; gap: 8px; }
.cta-badge::before { content: '—'; color: var(--teal); }
@media (max-width: 1024px) { .cta-inner { grid-template-columns: 1fr; } }

/* ---- FAQ ---- */
.faq-layout { display: grid; grid-template-columns: 1fr 2fr; gap: 64px; align-items: start; }
@media (max-width: 768px) { .faq-layout { grid-template-columns: 1fr; gap: 32px; } }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
  width: 100%; display: flex; justify-content: space-between; align-items: flex-start;
  padding: 20px 0; gap: 16px; font-size: 0.95rem; font-weight: 700; cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; flex-shrink: 0; width: 22px; height: 22px; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; transition: all var(--t); font-weight: 400;
}
.faq-item[open] summary::after { background: var(--ink); color: var(--paper); border-color: var(--ink); transform: rotate(45deg); }
.faq-answer { padding: 0 0 20px; }
.faq-answer p { font-size: 0.88rem; color: var(--ink-soft); line-height: 1.75; }

/* ---- 버튼 ---- */
.btn-primary { display: inline-block; background: var(--ink); color: var(--paper); padding: 14px 28px; font-size: 0.9rem; font-weight: 700; letter-spacing: 0.03em; transition: background var(--t); }
.btn-ghost { display: inline-block; color: var(--ink-soft); font-size: 0.85rem; font-weight: 500; border-bottom: 1px solid var(--border); padding-bottom: 2px; transition: color var(--t), border-color var(--t); }
.btn-outline-dark { display: inline-block; border: 1.5px solid var(--paper); color: var(--paper); padding: 12px 24px; font-size: 0.88rem; font-weight: 600; transition: background var(--t), color var(--t); }
.btn-teal { display: inline-flex; align-items: center; gap: 8px; background: var(--teal); color: var(--paper); padding: 14px 28px; font-size: 0.9rem; font-weight: 700; transition: background var(--t); }

/* ---- Floating / Sticky CTA ---- */
.floating-btns { position: fixed; bottom: 28px; right: 24px; z-index: 999; display: flex; flex-direction: column; gap: 10px; transition: bottom 0.25s ease; }
.floating-consult { display: flex; align-items: center; gap: 10px; background: var(--teal); color: var(--paper); padding: 12px 18px; font-size: 0.85rem; font-weight: 700; box-shadow: 0 4px 20px rgba(31,111,98,0.35); position: relative; transition: background var(--t), transform var(--t); }
.pulse-ring { position: absolute; inset: -3px; border: 1.5px solid rgba(31,111,98,0.40); animation: pulse-ring 3s infinite; pointer-events: none; }
@keyframes pulse-ring { 0% { transform: scale(1); opacity: 0.8; } 70%, 100% { transform: scale(1.06); opacity: 0; } }
.floating-top { display: none; width: 40px; height: 40px; background: var(--ink); color: var(--paper); align-items: center; justify-content: center; transition: background var(--t); }
.floating-top.visible { display: flex; }

.sticky-cta { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 1001; box-shadow: 0 -2px 12px rgba(0,0,0,0.15); }
.sticky-tel, .sticky-sms { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 8px; min-height: 54px; font-size: 0.85rem; font-weight: 700; }
.sticky-tel { background: var(--ink); color: var(--paper); }
.sticky-sms { background: var(--teal); color: var(--paper); }
@media (max-width: 768px) {
  #mob-bar { display: flex; }
  body { padding-bottom: 64px; }
  .sticky-active .floating-btns { bottom: 70px; }
}
@media (min-width: 769px) { #mob-bar { display: none !important; } }

/* ---- 리빌 애니메이션 ---- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out); }
.reveal-left { opacity: 0; transform: translateX(-16px); transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out); }
.reveal-right { opacity: 0; transform: translateX(16px); transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out); }
.reveal.visible, .reveal-left.visible, .reveal-right.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.05s; }
.reveal-d2 { transition-delay: 0.1s; }
.reveal-d3 { transition-delay: 0.15s; }
.reveal-d4 { transition-delay: 0.2s; }

/* ---- Counter ---- */
.counter-num { font-variant-numeric: tabular-nums; }

/* ---- 카드 공통 (지역/서비스 페이지 특징 카드) ---- */
.info-card-grid { display: grid; grid-template-columns: repeat(3,1fr); border-left: 1px solid var(--border); border-top: 1px solid var(--border); margin-top: 40px; }
.info-card { padding: 28px 24px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--white); }
.info-card h3 { font-size: 1rem; margin-bottom: 10px; }
.info-card p { font-size: 0.85rem; color: var(--ink-soft); line-height: 1.7; }
@media (max-width: 768px) { .info-card-grid { grid-template-columns: repeat(2,1fr); } }

/* ---- 랜드마크 표 ---- */
.landmark-table { border: 1px solid var(--border); background: var(--white); }
.landmark-table th, .landmark-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); text-align: left; font-size: 0.88rem; }
.landmark-table th { background: var(--paper-mid); font-weight: 800; width: 120px; }

/* ---- 타임라인 (가이드 페이지) ---- */
.timeline { border-left: 2px solid var(--border); padding-left: 28px; margin: 32px 0; display: flex; flex-direction: column; gap: 28px; }
.timeline-item { position: relative; }
.timeline-item::before { content: ''; position: absolute; left: -33px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--teal); }
.timeline-item h4 { font-size: 1rem; margin-bottom: 6px; }
.timeline-item p { font-size: 0.88rem; color: var(--ink-soft); line-height: 1.75; }

/* ---- 아티클 본문 (가이드) ---- */
.article-body { max-width: 760px; margin: 0 auto; }
.article-body h2 { font-size: var(--fs-h2); margin: 48px 0 16px; }
.article-body h3 { font-size: 1.2rem; margin: 32px 0 12px; }
.article-body p { margin-bottom: 16px; color: var(--ink-soft); line-height: 1.85; }
.article-body ul { margin: 0 0 16px 0; display: flex; flex-direction: column; gap: 8px; }
.article-body li { position: relative; padding-left: 20px; color: var(--ink-soft); line-height: 1.7; }
.article-body li::before { content: '—'; position: absolute; left: 0; color: var(--teal); }

/* ---- Breadcrumb ---- */
.breadcrumb { background: var(--paper-mid); border-bottom: 1px solid var(--border); padding: 10px 0; margin-top: 56px; }
.breadcrumb a { color: var(--teal); font-size: 0.82rem; }
.breadcrumb span { font-size: 0.82rem; color: var(--ink-soft); }

/* ---- 상담 페이지 ---- */
.consult-hero { background: var(--ink); padding: 120px 0 60px; text-align: center; }
.consult-hero h1 { color: var(--paper); }
.consult-hero p { color: rgba(243,241,233,0.7); margin-top: 12px; }
.consult-cards { display: grid; grid-template-columns: repeat(2,1fr); gap: 2px; max-width: 640px; margin: 48px auto 0; }
.consult-card { background: var(--white); border: 1px solid var(--border); padding: 36px 32px; text-align: center; transition: border-color var(--t), background var(--t); }
.consult-card .cc-icon { width: 48px; height: 48px; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 50%; color: var(--teal); }
.consult-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.consult-card p { font-size: 0.82rem; color: var(--ink-soft); }
.consult-info-box { border: 1px solid var(--border); padding: 28px 32px; background: var(--paper-mid); max-width: 640px; margin: 32px auto 0; }
.consult-info-box dl { display: grid; grid-template-columns: 100px 1fr; row-gap: 10px; font-size: 0.88rem; }
.consult-info-box dt { font-weight: 700; color: var(--ink); }
.consult-info-box dd { color: var(--ink-soft); }
.consult-process { display: grid; grid-template-columns: repeat(3,1fr); gap: 2px; max-width: 900px; margin: 40px auto 0; border-left: 1px solid var(--border); border-top: 1px solid var(--border); }
.consult-process-step { background: var(--white); border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 24px; text-align: center; }
@media (max-width: 768px) { .consult-process { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px) { .consult-cards { gap: 1px; } .consult-card { padding: 24px 16px; } }

/* ---- 사이트맵 페이지 ---- */
.sitemap-hero { background: var(--ink); padding: 100px 0 48px; }
.sitemap-hero h1 { color: var(--paper); }
.sitemap-group { margin-bottom: 40px; }
.sitemap-group-title { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; font-weight: 800; margin-bottom: 16px; }
.sitemap-group-count { font-size: 0.72rem; font-weight: 700; color: var(--teal); border: 1px solid var(--border); border-radius: 999px; padding: 2px 10px; }
.sitemap-cards { display: grid; grid-template-columns: repeat(auto-fill,minmax(180px,1fr)); gap: 2px; border-left: 1px solid var(--border); border-top: 1px solid var(--border); }
@media (max-width: 480px) { .sitemap-cards { grid-template-columns: repeat(2,1fr); } }
.sitemap-card { background: var(--white); border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 18px 16px; display: flex; flex-direction: column; gap: 6px; transition: background var(--t); }
@media (hover: hover) and (pointer: fine) { .sitemap-card:hover { background: var(--paper-mid); } }
.sitemap-card span { font-size: 0.68rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.08em; }
.sitemap-card strong { font-size: 0.88rem; }

/* ---- 어드민 placeholder ---- */
.admin-placeholder { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--ink); text-align: center; padding: 24px; }
.admin-placeholder h1 { color: var(--paper); font-size: var(--fs-h2); margin-bottom: 12px; }
.admin-placeholder p { color: rgba(243,241,233,0.6); }

/* ---- 404 페이지 ---- */
.error-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; }
.error-page h1 { font-size: var(--fs-display); color: var(--paper-dark); margin-bottom: 16px; }
.error-page p { color: var(--ink-soft); margin-bottom: 28px; }
.error-page .btn-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---- Footer ---- */
.footer-region-links { background: var(--paper-mid); border-top: 1px solid var(--border); padding: 32px 0; }
.footer-region-links h4 { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 14px; }
.footer-region-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-region-tags a { font-size: 0.78rem; padding: 6px 12px; border: 1px solid var(--border); color: var(--ink-soft); transition: color var(--t), border-color var(--t); }
@media (hover: hover) and (pointer: fine) { .footer-region-tags a:hover { color: var(--ink); border-color: var(--ink); } }

.site-footer { background: #0F1713; color: rgba(243,241,233,0.55); padding: 64px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 48px; }
.footer-brand .logo-text { color: var(--paper); }
.footer-brand p { margin-top: 12px; font-size: 0.82rem; line-height: 1.7; max-width: 320px; }
.footer-nav h4, .footer-contact h4 { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); margin-bottom: 16px; }
.footer-nav a { display: block; padding: 6px 0; font-size: 0.85rem; }
.footer-contact p { font-size: 0.85rem; margin-bottom: 8px; line-height: 1.6; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 0.75rem; }
@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 480px) { .footer-grid { gap: 20px; } .footer-brand { grid-column: 1 / -1; } }

/* ---- 마퀴/케이스 카드 반응형 ---- */
@media (max-width: 768px) { .case-card { width: 85vw; } }
