/**
 * 8FUN CRO Layer — cro.css
 * v2.4 | Sticky Bar + Floating CTA + Consult Cards + Bottom CTA + Trust Badge
 * 시각 디자인 토큰은 재정의하지 않음 (visual-designer 전담)
 */

/* =====================================================
   MOBILE STICKY BAR (2분할)
   스크롤 600px 이상, 모바일 ≤768px 전용
===================================================== */
.dp-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9900;
  height: 56px;
  background: var(--dp-primary, #2B2B2B);
  box-shadow: 0 -2px 12px rgba(0,0,0,0.25);
  border-top: 1px solid rgba(107,143,113,0.2);
}

@media (max-width: 768px) {
  .dp-sticky-bar.is-visible {
    display: flex;
  }
}

.dp-sticky-bar__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: opacity 0.15s;
  border: none;
  cursor: pointer;
}

.dp-sticky-bar__btn:active {
  opacity: 0.8;
}

.dp-sticky-bar__btn--call {
  background: var(--dp-primary, #2B2B2B);
  color: #fff;
  border-right: 1px solid rgba(255,255,255,0.12);
}

.dp-sticky-bar__btn--consult {
  background: var(--dp-accent, #6B8F71);
  color: #1A1A1A;
}

/* =====================================================
   DESKTOP FLOATING CTA — 전화 아이콘 64×64 각진
===================================================== */
.dp-float-cta {
  display: none;
  position: fixed;
  bottom: 32px;
  right: 28px;
  z-index: 9900;
  width: 64px;
  height: 64px;
  border-radius: 0;
  background: var(--dp-primary, #2B2B2B);
  color: #fff;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-left: 3px solid var(--dp-accent, #6B8F71);
  box-shadow: 0 4px 20px rgba(0,0,0,0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: visible;
}

@media (min-width: 769px) {
  .dp-float-cta.is-visible {
    display: flex;
  }
}

.dp-float-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.35);
}

.dp-float-cta__icon {
  width: 26px;
  height: 26px;
  stroke: #fff;
  flex-shrink: 0;
}

/* 펄스 ring 애니메이션 */
.dp-float-cta__ring {
  position: absolute;
  inset: -6px;
  border: 2px solid var(--dp-accent, #6B8F71);
  border-radius: 0;
  opacity: 0;
  pointer-events: none;
  animation: dpFloatPulse 2.4s ease-out infinite;
}

@keyframes dpFloatPulse {
  0%   { transform: scale(1);    opacity: 0.7; }
  70%  { transform: scale(1.18); opacity: 0;   }
  100% { transform: scale(1.18); opacity: 0;   }
}

/* =====================================================
   CONSULT PAGE — 큰 액션 카드 2분할
===================================================== */
.dp-consult-urgency {
  font-size: 1rem;
  color: var(--dp-accent, #6B8F71);
  margin-top: 8px;
  font-weight: 500;
}

.dp-consult-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .dp-consult-cards {
    grid-template-columns: 1fr;
  }
}

.dp-consult-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 44px;
  min-height: 360px;
  background: #fff;
  border: 1px solid rgba(44,62,80,0.1);
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  position: relative;
}

.dp-consult-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--dp-primary, #2B2B2B);
}

.dp-consult-card--sms::before {
  background: var(--dp-accent, #6B8F71);
}

.dp-consult-card__icon {
  width: 56px;
  height: 56px;
  background: var(--dp-bg-soft, #f4f5f7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.dp-consult-card__icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--dp-primary, #2B2B2B);
}

.dp-consult-card--sms .dp-consult-card__icon svg {
  stroke: var(--dp-accent, #6B8F71);
}

.dp-consult-card__type {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dp-primary, #2B2B2B);
  margin-bottom: 8px;
}

.dp-consult-card__number {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--dp-primary, #2B2B2B);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}

.dp-consult-card__desc {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 24px;
  flex: 1;
}

.dp-consult-card__action {
  display: block;
  width: 100%;
  padding: 14px 20px;
  background: var(--dp-primary, #2B2B2B);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  border-radius: 2px;
  transition: background 0.2s, transform 0.15s;
  margin-top: auto;
}

.dp-consult-card__action:hover {
  background: #1A1A1A;
  transform: translateY(-1px);
}

.dp-consult-card__action--sms {
  background: var(--dp-accent, #6B8F71);
  color: #1A1A1A;
}

.dp-consult-card__action--sms:hover {
  background: #d4932a;
}

.dp-consult-card__micro {
  display: block;
  margin-top: 10px;
  font-size: 0.75rem;
  color: #9ca3af;
  line-height: 1.4;
}

/* =====================================================
   OPERATING INFO — 3×2 그리드
===================================================== */
.dp-opinfo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .dp-opinfo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .dp-opinfo-grid {
    grid-template-columns: 1fr;
  }
}

.dp-opinfo-item {
  padding: 24px 20px;
  background: #fff;
  border: 1px solid rgba(44,62,80,0.08);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.dp-opinfo-item__icon {
  width: 40px;
  height: 40px;
  background: var(--dp-bg-soft, #f4f5f7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.dp-opinfo-item__icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--dp-accent, #6B8F71);
}

.dp-opinfo-item__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dp-accent, #6B8F71);
  margin: 0;
}

.dp-opinfo-item__value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dp-primary, #2B2B2B);
  margin: 0;
}

.dp-opinfo-item__sub {
  font-size: 0.78rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.4;
}

/* =====================================================
   BOTTOM CTA BANNER (공통 + consult 변형)
===================================================== */
.dp-bottom-cta__wrap {
  background: var(--dp-primary, #2B2B2B);
  padding: clamp(48px, 7vw, 72px) clamp(24px, 5vw, 80px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.dp-bottom-cta__wrap--consult {
  flex-direction: column;
  text-align: center;
}

.dp-bottom-cta__headline {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 800;
  color: #fff;
  margin: 0 0 8px;
  line-height: 1.3;
}

.dp-bottom-cta__sub {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  margin: 0;
  line-height: 1.5;
}

.dp-bottom-cta__actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.dp-bottom-cta__actions--dual {
  justify-content: center;
}

.dp-bottom-cta__btn {
  white-space: nowrap;
}

.dp-bottom-cta__micro {
  display: block;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  margin-top: 6px;
}

@media (max-width: 640px) {
  .dp-bottom-cta__wrap {
    flex-direction: column;
    text-align: center;
  }
  .dp-bottom-cta__actions {
    justify-content: center;
    width: 100%;
  }
}

/* =====================================================
   dp-cta--outline-gold (consult 페이지 듀얼 버튼)
===================================================== */
.dp-cta--outline-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border: 2px solid var(--dp-accent, #6B8F71);
  color: var(--dp-accent, #6B8F71);
  background: transparent;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.dp-cta--outline-gold:hover {
  background: var(--dp-accent, #6B8F71);
  color: #1A1A1A;
}

/* =====================================================
   CONSULT PAGE — Bottom CTA 특수 래퍼
===================================================== */
.dp-bottom-cta--consult .dp-cta.dp-cta--gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  padding: 16px 28px;
}

/* =====================================================
   TRUST BADGE 강화 (highlight + caption)
===================================================== */
.dp-trust-inline__text strong {
  color: var(--dp-accent, #6B8F71);
  font-weight: 800;
  margin-right: 4px;
}

/* =====================================================
   CTA Banner phone 링크 (consult 유도)
===================================================== */
.dp-cta-banner__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  padding: 10px 16px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.dp-cta-banner__phone:hover {
  color: var(--dp-accent, #6B8F71);
  border-color: var(--dp-accent, #6B8F71);
}

.dp-cta-banner__phone svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  flex-shrink: 0;
}

/* =====================================================
   HEADER CTA 링크 (consult 유도)
===================================================== */
.dp-header__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* =====================================================
   FOOTER CTA 링크
===================================================== */
.dp-footer__cta-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--dp-accent, #6B8F71);
}

/* =====================================================
   Body padding for sticky bar (mobile)
===================================================== */
@media (max-width: 768px) {
  body.dp-sticky-active {
    padding-bottom: 56px;
  }
}
