/* ============================================================
   서비스안내 페이지 콘텐츠 컴포넌트
   ============================================================ */

/* ---------- 탭 내비게이션 ---------- */
.service-tabs{
  position:sticky; top:var(--header-h); z-index:200;
  background:#fff; border-bottom:1px solid var(--line);
  box-shadow:0 2px 10px rgba(0,0,0,.04);
}
.tabs-inner{
  max-width:var(--container-w); margin:0 auto; padding:0 24px;
  display:flex; gap:6px; overflow-x:auto; scrollbar-width:none;
}
.tabs-inner::-webkit-scrollbar{ display:none; }
.tab-btn{
  flex-shrink:0; display:flex; align-items:center; gap:8px;
  padding:18px 20px; font-size:14.5px; font-weight:700; color:#666;
  border-bottom:3px solid transparent; white-space:nowrap;
  transition:color .25s, border-color .25s;
}
.tab-btn i{ font-size:13px; }
.tab-btn:hover{ color:var(--navy); }
.tab-btn.active{ color:var(--navy); border-bottom-color:var(--gold); }

@media (max-width:600px){ .tab-btn{ padding:14px 14px; font-size:13.5px; } }

/* ---------- 서비스 상세 섹션 ---------- */
.service-detail{
  padding:100px 0; border-bottom:1px solid var(--line); background:#fff;
  scroll-margin-top: calc(var(--header-h) + 84px); /* 추가: 해시 이동 시 탭 메뉴에 가리지 않도록 보정 */
}
.service-detail:nth-of-type(even){ background:var(--bg-light); }

@media (max-width:600px){
  .service-detail{ scroll-margin-top: calc(var(--header-h) + 70px); } /* 추가: 모바일 탭 높이 반영 */
}

.service-layout{
  display:grid; grid-template-columns:1fr 1.1fr; gap:60px; align-items:center;
}

.service-img-wrap{
  position:relative; border-radius:18px; overflow:hidden;
  box-shadow:0 25px 50px rgba(11,31,58,.15);
}
.service-img-wrap img{ width:100%; height:460px; object-fit:cover; }
.service-img-badge{
  position:absolute; left:20px; bottom:20px;
  background:rgba(11,31,58,.85); backdrop-filter:blur(4px);
  color:#fff; font-size:13px; font-weight:700;
  padding:10px 18px; border-radius:30px;
  border:1px solid rgba(212,175,55,.4);
}

.service-num{ font-size:13px; font-weight:800; letter-spacing:.2em; color:var(--gold); margin-bottom:14px; }
.service-title{ font-size:clamp(26px,3vw,34px); font-weight:800; color:var(--navy); line-height:1.35; margin-bottom:18px; }
.service-desc{ font-size:15px; line-height:1.85; color:#5a6472; margin-bottom:30px; }

/* 5개 특징 아이콘 그리드 */
.service-features{ display:grid; grid-template-columns:repeat(5,1fr); gap:14px; margin-bottom:30px; }
.service-feature{ text-align:center; }
.service-feature-icon{
  width:54px; height:54px; border-radius:50%;
  background:var(--bg-light); border:1px solid var(--line);
  display:flex; align-items:center; justify-content:center;
  font-size:19px; color:var(--navy); margin:0 auto 10px; transition:.25s;
}
.service-feature:hover .service-feature-icon{
  background:var(--navy); color:var(--gold);
  transform:translateY(-3px); box-shadow:0 8px 20px rgba(11,31,58,.2);
}
.service-feature-label{ font-size:12px; font-weight:700; color:var(--navy); line-height:1.45; }

@media (max-width:900px){ .service-features{ grid-template-columns:repeat(3,1fr); gap:16px 12px; } }
@media (max-width:640px){ .service-features{ grid-template-columns:repeat(2,1fr); } }

/* 체크 리스트 */
.service-points{ margin-bottom:26px; }
.service-points li{
  display:flex; align-items:flex-start; gap:10px;
  font-size:14px; color:#3c4450; line-height:1.7; margin-bottom:10px;
}
.service-points li i{ color:var(--gold); margin-top:3px; flex-shrink:0; }

/* 대상 태그 */
.target-tags{ display:flex; flex-wrap:wrap; gap:10px; margin-bottom:28px; }
.target-tag{
  display:inline-flex; align-items:center; gap:6px;
  background:var(--bg-light); border:1px solid var(--line);
  color:var(--navy); font-size:12.5px; font-weight:700;
  padding:8px 14px; border-radius:20px;
}
.target-tag i{ color:var(--gold); font-size:11px; }

/* 견적문의 링크 버튼 */
.service-cta-link{
  display:inline-flex; align-items:center; gap:8px;
  background:var(--navy); color:#fff; font-size:14px; font-weight:700;
  padding:14px 26px; border-radius:6px;
  transition:background .25s, color .25s;
}
.service-cta-link:hover{ background:var(--gold); color:var(--navy); }

/* 서브 갤러리 이미지 */
.service-gallery{
  display:grid; grid-template-columns:repeat(auto-fit,minmax(140px,1fr)); gap:14px; margin-top:10px;
}
.service-gallery img{ width:100%; height:150px; object-fit:cover; border-radius:10px; }

@media (max-width:900px){
  .service-layout{ grid-template-columns:1fr; gap:36px; }
  .service-img-wrap img{ height:320px; }
}

/* ---------- 하단 CTA 배너 ---------- */
.bottom-cta{ padding:90px 0; background:var(--navy); }
.bottom-cta-box{
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:30px;
}
.bottom-cta-text h2{ font-size:clamp(24px,3vw,32px); font-weight:800; color:#fff; line-height:1.4; margin-bottom:12px; }
.bottom-cta-text p{ font-size:14.5px; color:#c7cdd8; }
.bottom-cta-actions{ display:flex; gap:14px; flex-wrap:wrap; }

.btn-cta-white{
  display:inline-flex; align-items:center; gap:8px;
  background:var(--gold); color:var(--navy); font-weight:700; font-size:14.5px;
  padding:16px 28px; border-radius:6px; transition:opacity .25s;
}
.btn-cta-white:hover{ opacity:.85; }

.btn-cta-ghost{
  display:inline-flex; align-items:center; gap:8px;
  border:1.5px solid rgba(255,255,255,.4); color:#fff; font-weight:700; font-size:14.5px;
  padding:16px 28px; border-radius:6px;
  transition:background .25s, border-color .25s;
}
.btn-cta-ghost:hover{ background:rgba(255,255,255,.1); border-color:#fff; }

@media (max-width:700px){ .bottom-cta-box{ flex-direction:column; text-align:center; } }


/* ===================== 서비스 상세 스크롤 애니메이션 ===================== */
.sd-animate .service-img-wrap,
.sd-animate .service-info{
  opacity:0;
  transform:translateY(34px);
  transition:opacity .8s ease, transform .8s ease;
}
.sd-animate .service-info{ transition-delay:.15s; }
.sd-animate.in-view .service-img-wrap,
.sd-animate.in-view .service-info{
  opacity:1;
  transform:translateY(0);
}

/* 특징 아이콘 5개 순차 등장 */
.sd-animate .service-feature{
  opacity:0;
  transform:translateY(14px);
  transition:opacity .5s ease, transform .5s ease;
}
.sd-animate.in-view .service-feature{ opacity:1; transform:translateY(0); }
.sd-animate.in-view .service-feature:nth-child(1){ transition-delay:.35s; }
.sd-animate.in-view .service-feature:nth-child(2){ transition-delay:.45s; }
.sd-animate.in-view .service-feature:nth-child(3){ transition-delay:.55s; }
.sd-animate.in-view .service-feature:nth-child(4){ transition-delay:.65s; }
.sd-animate.in-view .service-feature:nth-child(5){ transition-delay:.75s; }

/* 이미지 호버 줌 효과 */
.service-img-wrap img{ transition:transform .6s cubic-bezier(.22,.61,.36,1); }
.service-img-wrap:hover img{ transform:scale(1.06); }

/* 서비스 번호 밑줄 드로잉 */
.service-num{ position:relative; display:inline-block; padding-bottom:6px; }
.service-num::after{
  content:""; position:absolute; left:0; bottom:0; width:0; height:2px; background:var(--gold);
  transition:width .6s ease .25s;
}
.sd-animate.in-view .service-num::after{ width:36px; }

/* 대상 태그 호버 */
.target-tag{ transition:transform .25s ease, background .25s ease, color .25s ease; }
.target-tag:hover{ transform:translateY(-3px); background:var(--navy); color:#fff; }
.target-tag:hover i{ color:var(--gold); }

/* CTA 버튼 살짝 떠오르는 호버 */
.service-cta-link,
.btn-cta-white,
.btn-cta-ghost{ transition:background .25s, color .25s, transform .25s, border-color .25s, opacity .25s; }
.service-cta-link:hover,
.btn-cta-white:hover,
.btn-cta-ghost:hover{ transform:translateY(-3px); }

/* 탭 버튼 클릭 시 살짝 눌리는 느낌 */
.tab-btn{ transition:color .25s, border-color .25s, transform .15s; }
.tab-btn:active{ transform:scale(.96); }
