@charset "utf-8";
/* components.css — 섹션헤더·버튼·카드·뱃지·허브·배너·스켈레톤 (common.css에서 분할) */

/* --- Section Headers --- */
.section-header { text-align: center; margin-bottom: var(--space-12); }
.section-label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: rgba(0,153,230,.08);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
}
.section-title {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: 800;
  line-height: 1.2;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}
.section-title .accent { color: var(--color-accent); }
.section-title .primary { color: var(--color-primary); }
.section-desc {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 100%;
  margin: 0 auto;
  line-height: 1.7;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  transition: all var(--transition-base);
  white-space: nowrap;
  box-shadow: none;
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
}
.btn-accent {
  background: var(--color-accent);
  color: var(--color-white);
}
.btn-accent:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
}
.btn-outline {
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  background: transparent;
}
.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
}
.btn-outline-white {
  border: 2px solid rgba(255,255,255,.6);
  color: var(--color-white);
  background: transparent;
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.15);
  border-color: var(--color-white);
}
.btn-ghost {
  color: var(--color-primary);
  padding: 0.75rem 0;
}
.btn-ghost:hover { color: var(--color-accent); }
.btn-ghost .arrow {
  display: inline-block;
  transition: transform var(--transition-base);
}
.btn-ghost:hover .arrow { transform: translateX(4px); }
.btn-sm { padding: 0.5rem 1.25rem; font-size: var(--text-xs); }
.btn-lg { padding: 1rem 2.25rem; font-size: var(--text-base); }

/* --- Cards --- */
.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
}
.card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.card-body { padding: var(--space-6); }

/* --- Badge / Tag --- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
}
.badge-primary { background: var(--color-primary-light); color: var(--color-primary); }
.badge-accent  { background: rgba(0,153,230,.1); color: var(--color-accent); }
.badge-teal    { background: rgba(0,203,172,.12); color: #00836b; }
.badge-purple  { background: rgba(108,99,255,.1); color: var(--color-purple); }

/* --- Grid Helpers --- */
.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
.grid-3 { grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.grid-4 { grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start  { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2  { gap: var(--space-2); }
.gap-4  { gap: var(--space-4); }
.gap-6  { gap: var(--space-6); }
.gap-8  { gap: var(--space-8); }

/* --- Hub Cards (index hub pages) --- */
.hub-card {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  height: 100%;
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-base);
}
.hub-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}
.hub-card-icon {
  width: 64px; height: 64px;
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  flex-shrink: 0;
}
.hub-card-title {
  font-size: 1.25rem; font-weight: 800;
  color: var(--color-text);
  margin-bottom: 0.75rem;
}
.hub-card-desc {
  font-size: 0.9rem; color: var(--color-text-muted);
  line-height: 1.7; flex: 1;
}
.hub-card-link {
  margin-top: 1.5rem;
  font-size: 0.875rem; font-weight: 700;
  color: var(--color-primary);
}
.hub-card:hover .hub-card-link {
  color: var(--color-accent);
}

/* Hub card grid wrapper */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

/* --- Divider --- */
.divider {
  height: 1px;
  background: var(--color-border);
  border: none;
  margin: var(--space-8) 0;
}

/* --- Page Banner (Sub Pages) --- */
.page-banner {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 60%, #005fa3 100%);
  padding: calc(var(--header-height) + var(--space-16)) 0 var(--space-16);
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}
.page-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: url('../images/grid-pattern.svg') repeat;
  opacity: .05;
}
.page-banner-inner { position: relative; z-index: 1; }
.page-banner-breadcrumb {
  display: flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-sm); color: rgba(255,255,255,.65);
  margin-bottom: var(--space-8);
}
.page-banner-breadcrumb a:hover { color: var(--color-white); }
.page-banner-breadcrumb .sep { color: rgba(255,255,255,.35); }
.page-banner h1 {
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  font-weight: 800; line-height: 1.2;
  margin-bottom: var(--space-4);
}
.page-banner p {
  font-size: var(--text-lg); color: rgba(255,255,255,.8);
  max-width: 100%; line-height: 1.7;
}

/* 1. 컨테이너 설정 */
.quick-contact {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end; /* 오른쪽 정렬 고정 (왼쪽으로 늘어나기 위함) */
  gap: 10px;
}

/* 2. 버튼 공통 스타일 */
.quick-contact a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  white-space: nowrap;
}

/* 3. 온라인 문의하기 버튼 (이전 배경색 복구) */
.quick-btn-inquiry {
  width: 52px; /* 초기 원형 상태 */
  background: var(--color-primary); /* 이전 백그라운드 색상 */
  color: var(--color-white); /* 아이콘 및 글자 색상 */
}

.quick-btn-inquiry svg {
  flex-shrink: 0;
  stroke: currentColor; /* 부모의 color(흰색)를 따라감 */
}

.quick-btn-inquiry .btn-text {
  opacity: 0;
  width: 0;
  font-size: 14px;
  font-weight: 600;
  transition: opacity 0.2s ease, margin 0.3s ease;
}

/* 4. 호버(Hover) 시 효과 */
.quick-btn-inquiry:hover {
  width: 160px; /* 왼쪽으로 확장 */
  background: var(--color-primary); /* 색상 유지 또는 필요시 변경 */
  transform: scale(1.05);
}

.quick-btn-inquiry:hover .btn-text {
  opacity: 1;
  width: auto;
  margin-left: 10px; /* 아이콘과의 간격 */
  margin-right: 15px; /* 오른쪽 균형을 위한 여백 */
}

/* 5. TOP 버튼 스타일 */
.quick-btn-top {
  width: 52px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  color: var(--color-gray-700);
}
/* --- Loading Skeleton --- */
.skeleton {
  background: linear-gradient(90deg, var(--color-gray-200) 25%, var(--color-gray-100) 50%, var(--color-gray-200) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes skeleton-loading {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

