/* ============================================
   COMPONENTS - Atoms + Molecules
   ILPI Lucrativa | Premium Design System
   ============================================ */

/* ========================
   ATOMS
   ======================== */

/* --- INPUT PREMIUM --- */
.input {
  width: 100%;
  min-height: 54px;
  padding: 15px 18px;
  background: rgba(255, 255, 255, 0.97);
  color: var(--color-azul-profundo);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: var(--font-weight-regular);
  letter-spacing: 0.01em;
  border: 1.5px solid var(--color-cinza-claro);
  border-radius: var(--radius-md);
  transition:
    border-color var(--transition-normal),
    box-shadow var(--transition-normal),
    background var(--transition-normal);
  -webkit-appearance: none;
  appearance: none;
}

.input::placeholder {
  color: var(--color-cinza-texto);
  font-size: 15px;
  letter-spacing: 0.01em;
}

.input:hover {
  border-color: var(--color-dourado-borda);
  background: var(--color-branco-puro);
}

.input:focus {
  outline: none;
  border-color: var(--color-dourado);
  box-shadow: var(--shadow-input-focus);
  background: var(--color-branco-puro);
}

.input--error {
  border-color: var(--color-erro);
  box-shadow: var(--shadow-input-error);
}

.input--success {
  border-color: var(--color-sucesso);
}

.input:disabled {
  background: #F0F0F0;
  color: var(--color-cinza-texto);
  cursor: not-allowed;
  opacity: 0.7;
}

/* --- BUTTON PRIMARY PREMIUM --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  width: 100%;
  max-width: 420px;
  min-height: 58px;
  padding: 17px 36px;
  background: var(--gradient-dourado-rich);
  background-size: 200% 100%;
  color: var(--color-azul-profundo);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  text-shadow: 0 1px 0 rgba(229, 201, 122, 0.4);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition:
    all var(--transition-normal),
    background-position 600ms ease;
  box-shadow: var(--shadow-cta);
  position: relative;
  overflow: hidden;
  z-index: var(--z-base);
}

/* Shimmer effect permanente sutil */
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-dourado-shine);
  transition: none;
  animation: btn-shimmer 3s ease-in-out infinite;
  z-index: 1;
  pointer-events: none;
}

@keyframes btn-shimmer {
  0%   { left: -100%; }
  50%  { left: 100%; }
  100% { left: 100%; }
}

.btn-primary:hover {
  background-position: 100% 0;
  box-shadow: var(--shadow-cta-hover);
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--color-azul-profundo);
}

.btn-primary:active {
  background: var(--gradient-dourado);
  transform: translateY(0);
  box-shadow: var(--shadow-cta-active);
}

.btn-primary:focus-visible {
  outline: 3px solid var(--color-dourado-claro);
  outline-offset: 4px;
}

.btn-primary:disabled {
  background: #B0B0B0;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
  opacity: 0.6;
}

.btn-primary:disabled::before {
  display: none;
}

.btn-primary--loading {
  opacity: 0.7;
  cursor: wait;
  pointer-events: none;
}

@media (min-width: 768px) {
  .btn-primary {
    width: auto;
    min-width: 340px;
  }
}

/* --- BUTTON SECONDARY PREMIUM --- */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 420px;
  min-height: 54px;
  padding: 15px 32px;
  background: transparent;
  color: var(--color-dourado-claro);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1.5px solid var(--color-dourado-borda);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
}

.btn-secondary:hover {
  border-color: var(--color-dourado);
  background: var(--color-dourado-sutil);
  color: var(--color-dourado-claro);
  text-decoration: none;
  box-shadow: var(--shadow-glow-gold);
  transform: translateY(-1px);
}

.btn-secondary:focus-visible {
  outline: 3px solid var(--color-dourado-claro);
  outline-offset: 4px;
}

@media (min-width: 768px) {
  .btn-secondary { width: auto; min-width: 280px; }
}

/* --- BADGES PREMIUM --- */
.badge-authority {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 7px 16px;
  background: var(--color-dourado-micro);
  border: var(--border-subtle);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-dourado-claro);
  box-shadow: var(--shadow-glow-gold);
  transition: all var(--transition-normal);
}

.badge-authority:hover {
  background: var(--color-dourado-sutil);
  box-shadow:
    0 0 16px rgba(198, 167, 94, 0.20),
    0 0 32px rgba(198, 167, 94, 0.08);
}

.badge-alert {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 9px 18px;
  background: var(--color-erro-bg);
  border: 1px solid rgba(231, 76, 60, 0.20);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: var(--font-weight-semibold);
  color: var(--color-alerta-urgencia);
  letter-spacing: 0.01em;
}

/* --- ICONS --- */
.icon {
  width: 24px;
  height: 24px;
  stroke: var(--color-dourado-claro);
  stroke-width: 1.5;
  fill: none;
  flex-shrink: 0;
}
.icon--sm { width: 16px; height: 16px; }
.icon--md { width: 20px; height: 20px; }
.icon--lg { width: 28px; height: 28px; }

/* --- DIVIDER PREMIUM --- */
.divider-gold {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-dourado), rgba(198, 167, 94, 0.1));
  border: none;
}

.divider-gold--center {
  margin-inline: auto;
  background: linear-gradient(90deg, transparent, var(--color-dourado), transparent);
  width: 100px;
}

/* ========================
   MOLECULES
   ======================== */

/* --- FORM FIELD --- */
.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-bottom: var(--space-lg);
}

.form-field__label {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-dourado-claro);
}

.form-field__message {
  display: none;
  align-items: center;
  gap: var(--space-2xs);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  line-height: 1.4;
}

.form-field--error .form-field__message {
  display: flex;
  color: var(--color-alerta-urgencia);
}

.form-field--error .input {
  border-color: var(--color-erro);
  box-shadow: var(--shadow-input-error);
}

.form-field--success .input {
  border-color: var(--color-sucesso);
}

/* --- CHECKLIST ITEM PREMIUM --- */
.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-sm) 0;
  opacity: 0;
  transform: translateX(-12px);
  animation: checklist-enter 500ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.checklist-item:nth-child(1) { animation-delay: 100ms; }
.checklist-item:nth-child(2) { animation-delay: 200ms; }
.checklist-item:nth-child(3) { animation-delay: 300ms; }
.checklist-item:nth-child(4) { animation-delay: 400ms; }
.checklist-item:nth-child(5) { animation-delay: 500ms; }
.checklist-item:nth-child(6) { animation-delay: 600ms; }
.checklist-item:nth-child(7) { animation-delay: 700ms; }
.checklist-item:nth-child(8) { animation-delay: 800ms; }

@keyframes checklist-enter {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.checklist-item__check {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.checklist-item__check .icon {
  stroke: var(--color-alerta-urgencia);
  filter: drop-shadow(0 0 4px rgba(255, 107, 107, 0.3));
}

.checklist-item__text {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(245, 245, 240, 0.90);
}

.checklist-item__text strong {
  color: var(--color-dourado-claro);
  font-weight: var(--font-weight-semibold);
}

/* --- CARD BENEFIT PREMIUM --- */
.card-benefit {
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
  padding: var(--space-xl);
  background: var(--gradient-card);
  border: var(--border-subtle);
  border-radius: var(--radius-lg);
  position: relative;
  transition:
    transform var(--transition-premium),
    box-shadow var(--transition-premium),
    border-color var(--transition-normal);
  overflow: hidden;
}

/* Borda gradiente dourada no topo */
.card-benefit::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-dourado-border);
  opacity: 0.7;
  transition: opacity var(--transition-normal);
}

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

.card-benefit:hover::before {
  opacity: 1;
}

.card-benefit__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-dourado-micro);
  border: var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-glow-gold);
}

.card-benefit__icon .icon {
  stroke: var(--color-dourado-claro);
}

.card-benefit__content {
  flex: 1;
}

.card-benefit__title {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-branco-off);
  margin-bottom: var(--space-xs);
  letter-spacing: 0.01em;
}

.card-benefit__text {
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--color-cinza-texto);
}

/* --- CARD STAT PREMIUM --- */
.card-stat {
  text-align: center;
  padding: var(--space-xl) var(--space-lg);
  background: var(--gradient-card);
  border: var(--border-subtle);
  border-radius: var(--radius-lg);
  position: relative;
  transition: all var(--transition-premium);
}

.card-stat::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-dourado-border);
  opacity: 0.5;
}

.card-stat:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}

/* --- TESTIMONIAL PREMIUM --- */
.testimonial {
  padding: var(--space-xl) var(--space-xl) var(--space-xl) var(--space-2xl);
  background: var(--gradient-card);
  border-left: 3px solid var(--color-dourado);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  position: relative;
  box-shadow: var(--shadow-md);
}

/* Aspas decorativas premium */
.testimonial::before {
  content: '\201C';
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  color: rgba(198, 167, 94, 0.15);
  pointer-events: none;
}

.testimonial__quote {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-style: italic;
  line-height: 1.75;
  color: rgba(245, 245, 240, 0.90);
  margin-bottom: var(--space-lg);
  position: relative;
  z-index: var(--z-base);
}

.testimonial__author {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: var(--font-weight-semibold);
  color: var(--color-dourado-claro);
  letter-spacing: 0.01em;
}

.testimonial__role {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--color-cinza-texto);
  margin-top: var(--space-2xs);
}

/* --- FAQ ITEM PREMIUM --- */
.faq-item {
  border-bottom: 1px solid rgba(198, 167, 94, 0.12);
}

.faq-item__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-xl) 0;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: var(--font-weight-semibold);
  color: var(--color-branco-off);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  letter-spacing: 0.01em;
  transition: color var(--transition-normal);
}

.faq-item__header:hover {
  color: var(--color-dourado-claro);
}

.faq-item__header:focus-visible {
  outline: 2px solid var(--color-dourado-claro);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

.faq-item__chevron {
  transition: transform var(--transition-premium);
  flex-shrink: 0;
  margin-left: var(--space-md);
}

.faq-item--open .faq-item__chevron {
  transform: rotate(180deg);
}

.faq-item__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-premium);
}

.faq-item--open .faq-item__body {
  max-height: 500px;
}

.faq-item__body-inner {
  padding: 0 0 var(--space-xl);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.75;
  color: rgba(245, 245, 240, 0.85);
}

/* --- MICRO COPY --- */
.micro-copy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--color-cinza-texto);
  margin-top: var(--space-sm);
  letter-spacing: 0.01em;
}

.micro-copy .icon {
  stroke: var(--color-cinza-texto);
  opacity: 0.8;
}

/* --- ANIMATIONS --- */
.shake {
  animation: shake 300ms ease-in-out;
}

@keyframes shake {
  0%   { transform: translateX(0); }
  25%  { transform: translateX(-6px); }
  50%  { transform: translateX(6px); }
  75%  { transform: translateX(-6px); }
  100% { transform: translateX(0); }
}

@keyframes spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-azul-profundo);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 600ms linear infinite;
}

/* --- PULSE GLOW ANIMATION (for badges/CTAs) --- */
@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 12px rgba(198, 167, 94, 0.15);
  }
  50% {
    box-shadow:
      0 0 20px rgba(198, 167, 94, 0.25),
      0 0 40px rgba(198, 167, 94, 0.10);
  }
}
