/* Custom styles for Asunda Wei — China Tours */

:root {
  --primary: #C0392B;
  --primary-dark: #96281B;
  --accent: #F39C12;
  --accent-dark: #D68910;
  --dark: #1a1a2e;
}

/* Smooth scroll */
html { scroll-behavior: smooth; }

/* ── Animations ── */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }

/* ── Nav ── */
.nav-scrolled {
  background: rgba(26, 26, 46, 0.98) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

/* ── Hero ── */
.hero-overlay {
  background: linear-gradient(135deg, rgba(26,26,46,0.75) 0%, rgba(192,57,43,0.4) 100%);
}

/* ── Gold gradient text ── */
.text-gradient {
  background: linear-gradient(90deg, #F39C12, #E67E22);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Cards ── */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* ── Tour card image zoom ── */
.tour-img-wrap {
  overflow: hidden;
}
.tour-img-wrap img {
  transition: transform 0.5s ease;
}
.tour-img-wrap:hover img {
  transform: scale(1.08);
}

/* ── Btn primary ── */
.btn-primary {
  background: #C0392B;
  color: #fff;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
  text-align: center;
}
.btn-primary:hover {
  background: #96281B;
  transform: translateY(-2px);
}

.btn-accent {
  background: #F39C12;
  color: #1a1a2e;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
  text-align: center;
}
.btn-accent:hover {
  background: #D68910;
  transform: translateY(-2px);
}

.btn-outline {
  border: 2px solid #fff;
  color: #fff;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
  text-align: center;
}
.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  transform: translateY(-2px);
}

/* ── Section heading ── */
.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: #1a1a2e;
  line-height: 1.2;
}
@media (min-width: 768px) {
  .section-title { font-size: 2.5rem; }
}

.section-subtitle {
  color: #6b7280;
  font-size: 1.1rem;
  margin-top: 0.75rem;
}

/* ── Stat counter ── */
.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: #C0392B;
  line-height: 1;
}

/* ── FAQ accordion ── */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}
.faq-answer.open {
  max-height: 400px;
}

/* ── Toast ── */
#toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.toast {
  background: #1a1a2e;
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
  font-size: 0.9rem;
  animation: slideIn 0.3s ease;
  border-left: 4px solid #F39C12;
  max-width: 320px;
}
.toast.success { border-color: #27ae60; }
.toast.error { border-color: #e74c3c; }

@keyframes slideIn {
  from { transform: translateX(120%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ── Form inputs ── */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: border-color 0.2s;
  background: #fff;
  color: #1a1a2e;
}
.form-input:focus {
  outline: none;
  border-color: #C0392B;
}
.form-input.error {
  border-color: #e74c3c;
}

/* ── Review card ── */
.review-stars {
  color: #F39C12;
  font-size: 1.1rem;
}

/* ── Step badge ── */
.step-badge {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: #C0392B;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ── Package card ── */
.pkg-popular {
  border: 2px solid #C0392B;
  position: relative;
}
.pkg-badge {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: #C0392B;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 1rem;
  border-radius: 0 0 0.5rem 0.5rem;
  white-space: nowrap;
}

/* ── Tab active ── */
.tab-btn.active {
  background: #C0392B;
  color: #fff;
}

/* ── Mobile nav ── */
.mobile-menu {
  transition: max-height 0.3s ease, opacity 0.3s ease;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
}
.mobile-menu.open {
  max-height: 400px;
  opacity: 1;
}

/* ── Hero parallax effect ── */
@media (min-width: 768px) {
  .hero-bg {
    background-attachment: fixed;
  }
}

/* ── Scroll indicator ── */
.scroll-indicator {
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ── Section divider ── */
.section-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #C0392B, #F39C12);
  border-radius: 2px;
  margin: 1rem auto 0;
}

/* ── Admin ── */
.status-badge {
  padding: 0.2rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}
.status-new { background: #fef3c7; color: #92400e; }
.status-in_progress { background: #dbeafe; color: #1e40af; }
.status-closed { background: #d1fae5; color: #065f46; }
