/* ==========================================================================
   프리스틴케어 — 디자인 시스템
   컨셉: 딥그린 + 화이트 베이스, 라이트그린/민트 포인트
   ========================================================================== */

:root {
  --pc-deep-green: #16342a;
  --pc-green: #1f4d3a;
  --pc-green-light: #2f6b4f;
  --pc-mint: #7fd9b6;
  --pc-mint-soft: #e6f6ee;
  --pc-white: #ffffff;
  --pc-off-white: #f7f8f6;
  --pc-gray-900: #1a1a1a;
  --pc-gray-700: #4a4f4d;
  --pc-gray-500: #7a8280;
  --pc-gray-200: #e5e7e5;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif;
  color: var(--pc-gray-900);
  background: var(--pc-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  letter-spacing: -0.02em;
  font-weight: 700;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ---------- 유틸 컬러 클래스 ---------- */
.text-pc-deep { color: var(--pc-deep-green); }
.text-pc-green { color: var(--pc-green); }
.text-pc-mint { color: var(--pc-mint); }
.bg-pc-deep { background-color: var(--pc-deep-green); }
.bg-pc-green { background-color: var(--pc-green); }
.bg-pc-mint-soft { background-color: var(--pc-mint-soft); }
.border-pc-green { border-color: var(--pc-green); }

/* ---------- 실시간 상담 티커 바 (우→좌 슬라이딩) ---------- */
.live-ticker-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 101;
  height: 38px;
  display: flex;
  align-items: stretch;
  background: var(--pc-deep-green);
  color: #fff;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

.live-ticker-label {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 16px;
  background: var(--pc-mint);
  color: var(--pc-deep-green);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
  position: relative;
  z-index: 2;
}

.live-ticker-label::after {
  content: '';
  position: absolute;
  right: -13px;
  top: 0;
  bottom: 0;
  width: 13px;
  background: var(--pc-mint);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e14b4b;
  flex: 0 0 auto;
  animation: liveDotPulse 1.4s ease-in-out infinite;
}

@keyframes liveDotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.75); }
}

.live-ticker-viewport {
  flex: 1 1 auto;
  overflow: hidden;
  position: relative;
}

.live-ticker-track {
  display: flex;
  align-items: center;
  height: 38px;
  gap: 2.75rem;
  padding-left: 2.75rem;
  white-space: nowrap;
  width: max-content;
  animation: tickerSlide 32s linear infinite;
  will-change: transform;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.92);
}

.ticker-item i {
  color: var(--pc-mint);
  font-size: 0.68rem;
}

@keyframes tickerSlide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 640px) {
  .live-ticker-label-text { display: none; }
  .live-ticker-label { padding: 0 12px; }
  .ticker-item { font-size: 0.72rem; }
}

/* 티커 바가 있는 페이지(홈)에서는 헤더를 티커 바 아래로 내림 */
.live-ticker-bar + .site-header {
  top: 38px;
}

/* ---------- 헤더 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background-color 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease, top 0.2s ease;
  background: transparent;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.06);
}

.site-header .nav-link {
  position: relative;
  font-weight: 500;
  font-size: 0.95rem;
  color: #fff;
  transition: color 0.3s ease;
}

.site-header.scrolled .nav-link {
  color: var(--pc-gray-900);
}

.site-header .nav-link:hover {
  color: var(--pc-mint);
}

.site-header .logo-text {
  color: #fff;
  transition: color 0.3s ease;
}
.site-header.scrolled .logo-text {
  color: var(--pc-deep-green);
}

.header-cta-btn {
  background: var(--pc-mint);
  color: var(--pc-deep-green);
  font-weight: 700;
  padding: 0.55rem 1.3rem;
  border-radius: 999px;
  font-size: 0.9rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.header-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(127, 217, 182, 0.4);
}

/* 헤더 SNS 채널 아이콘 — 자리 최소화를 위해 아이콘만, 구분선 뒤에 작게 배치 */
.header-sns-links {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding-left: 0.9rem;
  border-left: 1px solid rgba(255, 255, 255, 0.25);
}
.site-header.scrolled .header-sns-links {
  border-left-color: var(--pc-gray-200);
}
.header-sns-link {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  width: 1.6rem;
  height: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.25s ease, transform 0.2s ease;
}
.site-header.scrolled .header-sns-link {
  color: var(--pc-gray-700);
}
.header-sns-link:hover {
  color: var(--pc-mint);
  transform: translateY(-1px);
}
.site-header.scrolled .header-sns-link:hover {
  color: var(--pc-green);
}

/* ---------- 히어로 ---------- */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 640px;
  width: 100%;
  overflow: hidden;
  background: var(--pc-deep-green);
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22, 52, 42, 0.55) 0%, rgba(22, 52, 42, 0.35) 45%, rgba(22, 52, 42, 0.85) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 0 1.5rem;
}

.hero-content .eyebrow {
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  color: var(--pc-mint);
  font-weight: 700;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}

.hero-content h1 {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  line-height: 1.15;
  font-weight: 900;
  margin-bottom: 1.25rem;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.hero-content p.sub {
  font-size: clamp(1rem, 2vw, 1.35rem);
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: bounceDown 2s infinite;
}

@keyframes bounceDown {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 10px); }
}

/* ---------- 플로팅 CTA ---------- */
.floating-call-btn {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 90;
  background: var(--pc-mint);
  color: var(--pc-deep-green);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  animation: pulseRing 2.4s infinite;
}

@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 rgba(127, 217, 182, 0.55), 0 10px 30px rgba(0,0,0,0.25); }
  70% { box-shadow: 0 0 0 16px rgba(127, 217, 182, 0), 0 10px 30px rgba(0,0,0,0.25); }
  100% { box-shadow: 0 0 0 0 rgba(127, 217, 182, 0), 0 10px 30px rgba(0,0,0,0.25); }
}

/* ---------- 실시간 상담 위젯 ---------- */
.chat-widget-toggle {
  position: fixed;
  right: 1.5rem;
  bottom: 6.75rem;
  z-index: 91;
  background: var(--pc-deep-green);
  color: var(--pc-mint);
  width: 60px;
  height: 60px;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: transform 0.2s ease;
}
.chat-widget-toggle:hover { transform: scale(1.06); }
.chat-widget-toggle-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ff5b5b;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

.chat-widget-panel {
  position: fixed;
  right: 1.5rem;
  bottom: 6.75rem;
  z-index: 92;
  width: 340px;
  max-width: calc(100vw - 2.5rem);
  height: 480px;
  max-height: calc(100vh - 9rem);
  background: #fff;
  border-radius: 1.1rem;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.chat-widget-panel.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.chat-widget-header {
  background: var(--pc-deep-green);
  color: #fff;
  padding: 1rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.chat-widget-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--pc-mint);
  color: var(--pc-deep-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}
.chat-widget-title { font-size: 0.9rem; font-weight: 700; line-height: 1.3; }
.chat-widget-subtitle {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.65);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.chat-widget-online-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pc-mint);
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(127, 217, 182, 0.6);
  animation: pulseRing 2.2s infinite;
}
.chat-widget-header button {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  cursor: pointer;
  padding: 0.25rem;
}
.chat-widget-header button:hover { color: #fff; }

.chat-widget-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.1rem;
  background: var(--pc-off-white);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.chat-bubble {
  max-width: 88%;
  padding: 0.65rem 0.9rem;
  border-radius: 0.9rem;
  font-size: 0.82rem;
  line-height: 1.5;
}
.chat-bubble-bot {
  background: #fff;
  color: var(--pc-gray-900);
  border-bottom-left-radius: 0.25rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  align-self: flex-start;
}
.chat-bubble-user {
  background: var(--pc-mint);
  color: var(--pc-deep-green);
  border-bottom-right-radius: 0.25rem;
  align-self: flex-end;
  font-weight: 600;
}

.chat-step { display: flex; flex-direction: column; gap: 0.6rem; }
.chat-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.chat-quick-btn {
  background: #fff;
  border: 1.5px solid var(--pc-mint);
  color: var(--pc-green);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.chat-quick-btn:hover {
  background: var(--pc-mint);
  color: var(--pc-deep-green);
}

.chat-input-row {
  display: flex;
  gap: 0.5rem;
}
.chat-text-input {
  flex: 1;
  padding: 0.6rem 0.85rem;
  border: 1.5px solid var(--pc-gray-200);
  border-radius: 0.6rem;
  font-size: 0.82rem;
  background: #fff;
}
.chat-text-input:focus {
  outline: none;
  border-color: var(--pc-green-light);
}
.chat-input-name { margin-bottom: 0.2rem; }
.chat-send-btn {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border: none;
  border-radius: 0.6rem;
  background: var(--pc-deep-green);
  color: var(--pc-mint);
  cursor: pointer;
  font-size: 0.85rem;
}
.chat-send-btn:hover { background: var(--pc-green); }

.chat-summary-card {
  background: #fff;
  border: 1.5px solid var(--pc-mint-soft);
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.chat-summary-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--pc-deep-green);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.2rem;
}
.chat-summary-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.78rem;
}
.chat-summary-label {
  color: var(--pc-gray-500);
  flex-shrink: 0;
}
.chat-summary-value {
  color: var(--pc-gray-900);
  font-weight: 600;
  text-align: right;
  word-break: break-word;
}
.chat-summary-value.is-empty {
  color: var(--pc-gray-500);
  font-weight: 400;
}

.chat-privacy-label {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.72rem;
  color: var(--pc-gray-500);
  line-height: 1.5;
}
.chat-privacy-label input { margin-top: 0.15rem; }
.chat-privacy-label a {
  color: var(--pc-green);
  text-decoration: underline;
  margin-left: 0.15rem;
}

.chat-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem;
  border: none;
  border-radius: 0.6rem;
  background: var(--pc-green);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.chat-submit-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.chat-submit-btn:not(:disabled):hover { transform: translateY(-1px); background: var(--pc-deep-green); }

@media (max-width: 480px) {
  .chat-widget-toggle { right: 1rem; bottom: 5.75rem; }
  .chat-widget-panel {
    right: 0.75rem;
    bottom: 5.75rem;
    width: calc(100vw - 1.5rem);
  }
}

/* ---------- 섹션 공통 ---------- */
.section-pad {
  padding: 5.5rem 1.5rem;
}
@media (min-width: 768px) {
  .section-pad { padding: 7.5rem 2rem; }
}

/* 원페이지 랜딩용 축소 패딩 (광고 유입 이탈 방지 - 전체 길이 축소) */
.section-pad-sm {
  padding: 2.75rem 1.5rem;
}
@media (min-width: 768px) {
  .section-pad-sm { padding: 3.5rem 2rem; }
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--pc-green);
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.section-label::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--pc-mint);
  display: inline-block;
}

/* ---------- 스크롤 애니메이션 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ---------- 서비스 카테고리 카드 ---------- */
.service-card {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.45s cubic-bezier(.2,.8,.2,1), box-shadow 0.45s ease;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 50px -12px rgba(22, 52, 42, 0.35);
}
.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.service-card:hover img {
  transform: scale(1.08);
}
.service-card .card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22,52,42,0) 30%, rgba(22,52,42,0.85) 100%);
}
.service-card .card-text {
  position: absolute;
  left: 1.25rem;
  bottom: 1.25rem;
  right: 1.25rem;
  color: #fff;
}
.service-card .card-text h3 {
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}
.service-card .card-text p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.85);
  opacity: 0;
  max-height: 0;
  transition: opacity 0.35s ease, max-height 0.35s ease;
}
.service-card:hover .card-text p {
  opacity: 1;
  max-height: 60px;
}
.service-card .card-tap-hint {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--pc-deep-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  transition: transform 0.3s ease, background 0.3s ease;
}
.service-card:hover .card-tap-hint {
  background: var(--pc-mint);
  transform: rotate(90deg);
}

/* ---------- 서비스 상세 인라인 패널 (원페이지 유지용, 페이지 이동 없이 펼침) ---------- */
.service-detail-container {
  margin-top: 1.5rem;
}
.service-detail-item {
  display: none;
  position: relative;
  background: #fff;
  border-radius: 1.25rem;
  box-shadow: 0 20px 50px -12px rgba(22, 52, 42, 0.18);
  padding: 1.75rem 1.5rem 2rem;
  margin-top: 1.5rem;
  animation: service-detail-in 0.35s ease;
}
.service-detail-item.open {
  display: block;
}
@keyframes service-detail-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.service-detail-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--pc-off-white);
  color: var(--pc-gray-700);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease;
  z-index: 2;
}
.service-detail-close:hover {
  background: var(--pc-mint-soft);
  color: var(--pc-deep-green);
}

/* ---------- 숫자 카운터 ---------- */
.counter-number {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--pc-deep-green);
  line-height: 1;
}

/* ---------- 프로세스 타임라인 ---------- */
.process-line {
  position: relative;
}
.process-line::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 24px;
  width: 2px;
  background: var(--pc-gray-200);
}
@media (min-width: 1024px) {
  .process-line::before {
    left: 0;
    right: 0;
    top: 24px;
    bottom: auto;
    height: 2px;
    width: 100%;
  }
}
.process-step-dot {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--pc-green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

/* ---------- 버튼 ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--pc-deep-green);
  color: #fff;
  font-weight: 700;
  padding: 0.9rem 2rem;
  border-radius: 999px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.btn-primary:hover {
  background: var(--pc-green);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(22, 52, 42, 0.28);
}

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.6);
  color: #fff;
  font-weight: 700;
  padding: 0.9rem 2rem;
  border-radius: 999px;
  transition: all 0.25s ease;
}
.btn-outline-white:hover {
  background: #fff;
  color: var(--pc-deep-green);
}

.btn-mint {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--pc-mint);
  color: var(--pc-deep-green);
  font-weight: 700;
  padding: 0.9rem 2rem;
  border-radius: 999px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.btn-mint:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(127, 217, 182, 0.4);
}

/* ---------- 푸터 ---------- */
.site-footer {
  background: var(--pc-deep-green);
  color: rgba(255,255,255,0.85);
}
.site-footer a:hover {
  color: var(--pc-mint);
}

/* ---------- 모바일 메뉴 ---------- */
#mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 82%;
  max-width: 360px;
  height: 100vh;
  background: var(--pc-white);
  z-index: 200;
  transition: right 0.35s ease;
  box-shadow: -10px 0 30px rgba(0,0,0,0.15);
}
#mobile-menu.open {
  right: 0;
}
#mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 199;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
#mobile-menu-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

/* ---------- 갤러리 필터 ---------- */
.filter-btn {
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  border: 1.5px solid var(--pc-gray-200);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--pc-gray-700);
  transition: all 0.25s ease;
  cursor: pointer;
}
.filter-btn.active,
.filter-btn:hover {
  background: var(--pc-deep-green);
  color: #fff;
  border-color: var(--pc-deep-green);
}

/* ---------- FAQ 아코디언 ---------- */
.faq-item {
  border-bottom: 1px solid var(--pc-gray-200);
}
.faq-question {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  font-weight: 700;
  font-size: 1.05rem;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  color: var(--pc-gray-700);
  line-height: 1.7;
}
.faq-item.open .faq-answer {
  padding-bottom: 1.5rem;
}
.faq-question .chevron {
  transition: transform 0.3s ease;
}
.faq-item.open .chevron {
  transform: rotate(180deg);
}

/* ---------- 폼 ---------- */
.form-input {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border: 1.5px solid var(--pc-gray-200);
  border-radius: 0.6rem;
  font-size: 0.95rem;
  transition: border-color 0.25s ease;
  background: #fff;
}
.form-input:focus {
  outline: none;
  border-color: var(--pc-green-light);
}

/* ---------- 반응형 헬퍼 ---------- */
.container-pc {
  max-width: 1200px;
  margin: 0 auto;
}

/* scroll-snap for hover video preview loop hint */
.video-loop-icon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255,255,255,0.9);
  color: var(--pc-deep-green);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  z-index: 3;
}

/* ==========================================================================
   입체감(Depth) 레이어 시스템
   ========================================================================== */

/* ---------- 배경 블러 블롭(장식) ---------- */
.decor-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  z-index: 0;
  pointer-events: none;
}
.decor-blob-mint {
  background: rgba(127, 217, 182, 0.35);
}
.decor-blob-green {
  background: rgba(31, 77, 58, 0.25);
}

/* ---------- 레이어드 이미지 랩 (메인 이미지 + 플로팅 카드) ---------- */
.layered-media {
  position: relative;
  isolation: isolate;
}
.layered-media .main-visual {
  position: relative;
  z-index: 1;
  border-radius: 1.5rem;
  box-shadow:
    0 30px 60px -15px rgba(22, 52, 42, 0.35),
    0 10px 20px -8px rgba(22, 52, 42, 0.15);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}
.layered-media:hover .main-visual {
  transform: translateY(-6px);
  box-shadow:
    0 40px 70px -15px rgba(22, 52, 42, 0.4),
    0 14px 24px -8px rgba(22, 52, 42, 0.2);
}

.floating-card {
  position: absolute;
  z-index: 2;
  background: #fff;
  border-radius: 1.1rem;
  box-shadow: 0 20px 45px -10px rgba(22, 52, 42, 0.35), 0 4px 12px rgba(0,0,0,0.08);
  overflow: hidden;
  animation: floatSoft 5s ease-in-out infinite;
}
@keyframes floatSoft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.floating-card.floating-card-video {
  padding: 0;
  border: 4px solid #fff;
}
.floating-card video,
.floating-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.floating-badge {
  position: absolute;
  z-index: 3;
  background: var(--pc-deep-green);
  color: #fff;
  border-radius: 1rem;
  padding: 1rem 1.3rem;
  box-shadow: 0 16px 36px -8px rgba(22, 52, 42, 0.45);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.floating-badge .badge-num {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--pc-mint);
  line-height: 1;
}
.floating-badge .badge-label {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.3;
}

/* ---------- 명함 카드 (기울어진 실물 느낌) ---------- */
.tilted-card {
  position: absolute;
  z-index: 3;
  border-radius: 0.75rem;
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.35), 0 2px 8px rgba(0,0,0,0.1);
  transform: rotate(-6deg);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  border: 6px solid #fff;
  overflow: hidden;
}
.tilted-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tilted-card:hover {
  transform: rotate(-2deg) scale(1.04);
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.4), 0 4px 10px rgba(0,0,0,0.12);
}

/* ---------- 문제 제기 비디오 카드 (세로형 영상, 프레임 느낌) ---------- */
.problem-video-frame {
  position: relative;
  border-radius: 1.75rem;
  overflow: hidden;
  aspect-ratio: 9/13;
  max-width: 320px;
  margin: 0 auto;
  box-shadow:
    0 35px 70px -15px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255,255,255,0.08) inset;
  border: 6px solid rgba(255,255,255,0.12);
  background: #000;
}
.problem-video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.problem-video-frame .frame-glow {
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  box-shadow: 0 0 40px rgba(127, 217, 182, 0.25);
  pointer-events: none;
  z-index: 2;
}
.problem-video-frame .frame-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.75) 100%);
  color: #fff;
  padding: 1.75rem 1.1rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 3;
}

/* 원페이지 랜딩용 축소 버전 (문제제기 섹션 높이 축소) */
.problem-video-frame-sm {
  max-width: 220px;
}
.problem-video-frame-sm .frame-caption {
  font-size: 0.72rem;
  padding: 1.4rem 0.85rem 0.8rem;
}

/* ---------- 3D 틸트 호버 카드 (작업사례/서비스) ---------- */
.tilt-hover {
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1), box-shadow 0.4s ease;
  will-change: transform;
}
.tilt-hover:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 45px -12px rgba(22, 52, 42, 0.35);
}

/* ---------- 미니 비디오 갤러리 카드 (호버 재생) ---------- */
.mini-video-card {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: 0 12px 28px -8px rgba(0,0,0,0.18);
}
.mini-video-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.mini-video-card:hover video {
  transform: scale(1.06);
}
.mini-video-card .play-badge {
  position: absolute;
  top: 50%; left: 50%;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  color: var(--pc-deep-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transform: translate(-50%, -50%);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 2;
  pointer-events: none;
}
.mini-video-card:hover .play-badge {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
}
.mini-video-card .card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22,52,42,0) 40%, rgba(22,52,42,0.8) 100%);
  z-index: 1;
}
.mini-video-card .card-text {
  position: absolute;
  left: 1rem;
  bottom: 0.9rem;
  right: 1rem;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  z-index: 2;
}

/* ---------- 섹션 구분 곡선(입체 웨이브) ---------- */
.section-wave-top {
  position: relative;
}
.section-wave-top::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 60px;
  background: inherit;
  clip-path: ellipse(60% 100% at 50% 0%);
  z-index: 0;
}
