/**
 * LA DIGITAL — Components
 */

/* ==========================================================================
   1. BOTÕES (Buttons)
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-lg {
  padding: 1.05rem 2.1rem;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

.btn-sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-full {
  width: 100%;
}

/* Botão Primário Dourado Tecnológico */
.btn-primary {
  background: var(--grad-gold);
  color: #0b0b0e;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 18px rgba(212, 175, 55, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(212, 175, 55, 0.4);
  color: #000000;
}

.btn-primary:active {
  transform: translateY(0);
}

/* Botão Secundário / Outline Tecnológico */
.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border: 1px solid var(--border-card);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-card-hover);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Botão WhatsApp */
.btn-whatsapp {
  background: var(--whatsapp);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp:hover {
  background: var(--whatsapp-hover);
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.4);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Botão Ghost / Link */
.btn-ghost {
  background: transparent;
  color: var(--gold-primary);
  padding: 0.5rem 0.75rem;
}

.btn-ghost:hover {
  color: var(--gold-light);
  text-decoration: underline;
}

/* ==========================================================================
   2. CARDS & CONTAINERS
   ========================================================================== */

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all var(--transition-smooth);
  position: relative;
  display: flex;
  flex-direction: column;
}

.card:hover {
  border-color: var(--border-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.card-highlight {
  border-color: var(--border-gold);
  background: linear-gradient(180deg, rgba(30, 28, 36, 0.95) 0%, rgba(18, 18, 24, 0.98) 100%);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6), 0 0 20px -5px rgba(212, 175, 55, 0.15);
}

.card-highlight:hover {
  border-color: var(--gold-primary);
}

.card-badge {
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--grad-gold);
  color: var(--text-dark);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.85rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
  margin-bottom: var(--space-lg);
  transition: all var(--transition-normal);
}

.card:hover .card-icon {
  background: var(--gold-subtle);
  border-color: var(--border-gold);
  color: var(--gold-light);
  transform: scale(1.05);
}

/* Listas com ícone de check */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: var(--space-lg) 0;
  flex-grow: 1;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.feature-item svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--gold-primary);
  margin-top: 2px;
}

/* ==========================================================================
   3. ACORDEON (FAQ)
   ========================================================================== */

.accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.accordion-item {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.accordion-item:hover {
  border-color: var(--border-card-hover);
}

.accordion-item.active {
  border-color: var(--border-gold);
  background: var(--bg-card-hover);
}

.accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  text-align: left;
  background: none;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.accordion-header:hover {
  color: var(--gold-light);
}

.accordion-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: transform var(--transition-normal), background var(--transition-fast);
  flex-shrink: 0;
}

.accordion-item.active .accordion-icon {
  transform: rotate(45deg);
  background: var(--gold-subtle);
  border-color: var(--border-gold);
  color: var(--gold-primary);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-in-out, padding 0.35s ease;
  padding: 0 1.5rem;
}

.accordion-item.active .accordion-content {
  max-height: 400px;
  padding: 0 1.5rem 1.5rem 1.5rem;
}

.accordion-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ==========================================================================
   4. FORMULÁRIO DE ORÇAMENTO
   ========================================================================== */

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group-full {
  grid-column: span 2;
}

.form-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-label .required {
  color: var(--gold-primary);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: #0f0f14;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--gold-primary);
  background: #14141c;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #555566;
}

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23d4af37' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-select option {
  background-color: #14141a;
  color: #ffffff;
}

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

.form-helper {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* ==========================================================================
   5. BOTÃO FLUTUANTE WHATSAPP
   ========================================================================== */

.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: var(--z-floating);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.whatsapp-pill {
  background: #121218;
  color: var(--text-primary);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-card);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-card);
  display: none;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-normal);
}

.whatsapp-pill .pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--whatsapp);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(37, 211, 102, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-btn-circle {
  width: 58px;
  height: 58px;
  background: var(--whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: var(--shadow-whatsapp);
  transition: all var(--transition-normal);
}

.floating-whatsapp:hover .whatsapp-btn-circle {
  transform: scale(1.08) translateY(-2px);
  background: var(--whatsapp-hover);
}

.floating-whatsapp:hover .whatsapp-pill {
  display: flex;
}

@media (min-width: 768px) {
  .whatsapp-pill {
    display: flex;
  }
}

/* ==========================================================================
   6. MODAL DE SUCESSO DO FORMULÁRIO
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xl);
  max-width: 520px;
  width: 100%;
  padding: 2.5rem;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-card-hover), 0 0 40px rgba(212, 175, 55, 0.2);
  transform: scale(0.95);
  transition: transform var(--transition-smooth);
}

.modal-backdrop.active .modal-card {
  transform: scale(1);
}

.modal-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 1.5rem auto;
  border-radius: 50%;
  background: var(--gold-subtle);
  border: 2px solid var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  color: var(--text-primary);
  background: #2b2b38;
}

@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-group-full {
    grid-column: span 1;
  }
}
