/* ============================================================
   BAHELE — Components
   Buttons, Cards, Badges, Breadcrumb, FAQ, Forms, Stats
   ============================================================ */

/* --- Buttons --- */
.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
  cursor: pointer;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  border: none;
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(108, 99, 255, 0.35);
}

.btn-ghost {
  border: 1px solid var(--color-border);
  color: var(--color-text);
  background: transparent;
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
}

@media (max-width: 768px) {
  .btn-cta-full { width: 100%; }
}

/* --- Cards --- */
.card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.card:hover {
  border-color: rgba(108, 99, 255, 0.3);
  box-shadow: var(--shadow-glow);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(108, 99, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.4rem;
}

.card h3 { margin-bottom: 10px; font-size: 1.1rem; }
.card p { font-size: 0.9rem; }

/* --- Badges --- */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.badge-primary {
  background: rgba(108, 99, 255, 0.15);
  color: var(--color-primary);
  border: 1px solid rgba(108, 99, 255, 0.25);
}

.badge-secondary {
  background: rgba(201, 168, 76, 0.15);
  color: var(--color-secondary);
  border: 1px solid rgba(201, 168, 76, 0.25);
}

/* --- Breadcrumb --- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.breadcrumb a { color: var(--color-text-muted); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb .sep { color: var(--color-border); }
.breadcrumb .current { color: var(--color-text); }

/* --- FAQ Accordion --- */
.faq-list { max-width: 780px; margin: 0 auto; }

.faq-item { border-bottom: 1px solid var(--color-border); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  text-align: left;
  transition: color var(--transition);
  background: none;
  border: none;
  cursor: pointer;
}

.faq-question:hover { color: var(--color-primary); }

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: transform var(--transition), border-color var(--transition), color var(--transition);
  color: var(--color-text-muted);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer-inner {
  padding-bottom: 22px;
  color: var(--color-text-muted);
  line-height: 1.75;
  font-size: 0.95rem;
  max-width: none;
}

/* --- Forms --- */
.form-group { margin-bottom: 16px; }

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 14px 16px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-size: 0.95rem;
  transition: border-color var(--transition);
}

.form-control::placeholder { color: var(--color-text-muted); opacity: 0.6; }
.form-control:focus { outline: none; border-color: var(--color-primary); }

textarea.form-control { resize: vertical; min-height: 120px; }

.form-submit { width: 100%; padding: 16px; font-size: 1rem; }

.form-message {
  display: none;
  padding: 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-top: 16px;
}

.form-message.success {
  display: block;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: #4ade80;
}

.form-message.error {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #f87171;
}

/* --- Stats Row --- */
.stats-row {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 48px;
}

.stat { display: flex; flex-direction: column; }

.stat-value {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-text);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 2px;
}

/* --- Steps Grid --- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}

.step-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  position: relative;
}

.step-card::before {
  content: counter(step, decimal-leading-zero);
  counter-increment: step;
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: rgba(108, 99, 255, 0.25);
  margin-bottom: 16px;
}

.step-card h3 { font-size: 1rem; margin-bottom: 8px; }
.step-card p { font-size: 0.875rem; }

/* --- Divider --- */
.divider { height: 1px; background: var(--color-border); border: none; }

/* --- Highlight --- */
.highlight { color: var(--color-primary); }
.highlight-gold { color: var(--color-secondary); }

@media (max-width: 768px) {
  .steps-grid { grid-template-columns: 1fr; }
  .stats-row { gap: 24px; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
}
