/* =========================================================
   WaitingCall 공식 홈페이지 - 공통 스타일
   Tailwind CDN으로 대부분 처리하고, 여기서는
   Tailwind 유틸리티만으로 표현하기 번거로운 부분을 보완합니다.
   ========================================================= */

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans KR', sans-serif;
}

/* ---------- Header ---------- */
#site-header.scrolled {
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

.nav-link {
  position: relative;
  transition: color 0.2s ease;
}
.nav-link:hover {
  color: #4F46E5;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: #4F46E5;
  transition: width 0.2s ease;
}
.nav-link:hover::after {
  width: 100%;
}

.mobile-nav-link {
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f1f5f9;
}
.mobile-nav-link:last-child {
  border-bottom: none;
}

/* ---------- Hero ---------- */
.hero-mock-card {
  animation: float 5s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- Feature Cards ---------- */
.feature-card {
  background: #fff;
  border: 1px solid #f1f5f9;
  border-radius: 1.25rem;
  padding: 2rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 35px -15px rgba(79, 70, 229, 0.18);
}
.feature-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}

/* ---------- Process ---------- */
.process-step {
  background: #fff;
  border: 1px solid #f1f5f9;
  border-radius: 1.25rem;
  padding: 1.75rem;
  position: relative;
}
.process-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: #4F46E5;
  background: #eef2ff;
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
}

/* ---------- Reference Gallery ---------- */
.reference-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1.1rem;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}
.reference-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 32px -18px rgba(15, 23, 42, 0.18);
}
.reference-poster {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #eef2ff, #e0f2fe);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.reference-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.reference-poster .reference-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #4F46E5;
  padding: 0.75rem;
  text-align: center;
}
.reference-poster .reference-fallback i {
  font-size: 1.6rem;
  opacity: 0.6;
}
.reference-poster .reference-fallback span {
  font-size: 0.7rem;
  font-weight: 600;
  color: #64748b;
  line-height: 1.4;
}
.reference-info {
  padding: 0.85rem 0.9rem;
}
.reference-info .ref-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.reference-info .ref-meta {
  margin-top: 0.3rem;
  font-size: 0.72rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.reference-skeleton {
  aspect-ratio: 3 / 4;
  border-radius: 1.1rem;
  background: linear-gradient(90deg, #eef2f7 25%, #e5eaf1 37%, #eef2f7 63%);
  background-size: 400% 100%;
  animation: skeleton-loading 1.4s ease infinite;
}
@keyframes skeleton-loading {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

/* ---------- Pricing ---------- */
.pricing-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1.5rem;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.pricing-card:hover {
  transform: translateY(-6px);
}
.pricing-card.highlighted {
  border: 2px solid #4F46E5;
  box-shadow: 0 25px 40px -20px rgba(79, 70, 229, 0.35);
  position: relative;
}
.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: #4F46E5;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  white-space: nowrap;
}
.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.5;
}
.pricing-feature i {
  color: #10B981;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

/* ---------- FAQ ---------- */
.faq-item {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: #1e293b;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "\002B";
  font-size: 1.4rem;
  color: #4F46E5;
  font-weight: 400;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after {
  content: "\2212";
}
.faq-item p {
  margin-top: 0.85rem;
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.7;
}

/* ---------- Contact form ---------- */
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.4rem;
}
.form-input {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.92rem;
  color: #1e293b;
  background: #f8fafc;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.form-input:focus {
  outline: none;
  border-color: #4F46E5;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}
.contact-icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 9999px;
  background: #eef2ff;
  color: #4F46E5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

#submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

#form-alert.alert-success {
  background: #ecfdf5;
  color: #047857;
}
#form-alert.alert-error {
  background: #fef2f2;
  color: #b91c1c;
}

/* ---------- Admin page ---------- */
.admin-table th, .admin-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  font-size: 0.85rem;
}
.admin-table thead th {
  background: #f1f5f9;
  color: #475569;
  font-weight: 600;
  white-space: nowrap;
}
.admin-table tbody tr {
  border-bottom: 1px solid #eef2f7;
}
.admin-table tbody tr:hover {
  background: #f8fafc;
}
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.7rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}
.status-신규 { background: #fef3c7; color: #b45309; }
.status-확인중 { background: #dbeafe; color: #1d4ed8; }
.status-완료 { background: #d1fae5; color: #047857; }
