/* ==========================================================================
   RE9AÇÃO - SOLUÇÕES INTEGRADAS
   Components & Interactive Modules Stylesheet
   ========================================================================== */

/* ==========================================================================
   Service Cards & Grid
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--slate-200);
  padding: 36px 30px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(249, 131, 8, 0.4);
}

.service-card.featured {
  background: linear-gradient(180deg, var(--white) 0%, #FFF9F2 100%);
  border: 2px solid var(--primary);
}

.service-card.featured::before {
  content: 'MAIS PROCURADO';
  position: absolute;
  top: 18px;
  right: -32px;
  background: var(--primary);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 4px 36px;
  transform: rotate(45deg);
  letter-spacing: 0.08em;
}

.service-icon-box {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--primary-soft) 0%, rgba(249, 131, 8, 0.25) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 22px;
  transition: transform var(--transition-normal), background var(--transition-normal);
}

.service-card:hover .service-icon-box {
  transform: scale(1.1) rotate(4deg);
  background: var(--primary);
  color: var(--white);
}

.service-card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
  color: var(--navy-900);
}

.service-card p {
  color: var(--slate-600);
  font-size: 0.95rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

.service-features {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--slate-100);
  margin-bottom: 24px;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--slate-700);
  font-size: 0.875rem;
  margin-bottom: 10px;
}

.service-features li svg {
  color: var(--emerald-500);
  flex-shrink: 0;
}

/* ==========================================================================
   Interactive Diagnostic Quiz ("Descubra a Solução Ideal")
   ========================================================================== */
.diagnostic-container {
  background: linear-gradient(135deg, var(--navy-900) 0%, #131E3D 100%);
  border-radius: var(--radius-xl);
  padding: 48px;
  color: var(--white);
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.diagnostic-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
  position: relative;
}

.progress-bar-bg {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-50%);
  z-index: 1;
}

.progress-bar-fill {
  height: 100%;
  background: var(--primary);
  width: 33.33%;
  transition: width var(--transition-normal);
}

.progress-step {
  position: relative;
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: var(--navy-800);
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--slate-300);
  transition: all var(--transition-normal);
}

.progress-step.active {
  background: var(--primary);
  border-color: var(--white);
  color: var(--white);
  box-shadow: 0 0 16px var(--primary-glow);
}

.progress-step.completed {
  background: var(--emerald-500);
  border-color: var(--emerald-500);
  color: var(--white);
}

.quiz-step {
  display: none;
  animation: fadeIn 0.3s ease forwards;
}

.quiz-step.active {
  display: block;
}

.quiz-step h3 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.quiz-step p {
  color: var(--slate-300);
  margin-bottom: 24px;
}

.quiz-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.quiz-option-card {
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 20px;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quiz-option-card:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--primary-light);
  transform: translateY(-2px);
}

.quiz-option-card.selected {
  background: rgba(249, 131, 8, 0.18);
  border-color: var(--primary);
  box-shadow: 0 0 16px var(--primary-glow);
}

.quiz-option-card svg {
  color: var(--primary);
  margin-bottom: 4px;
}

.quiz-option-card strong {
  color: var(--white);
  font-size: 1.05rem;
}

.quiz-option-card span {
  color: var(--slate-300);
  font-size: 0.825rem;
  line-height: 1.4;
}

.quiz-result-box {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(249, 131, 8, 0.4);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
}

.quiz-result-title {
  color: var(--primary-light);
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.quiz-result-desc {
  color: var(--slate-200);
  font-size: 1.05rem;
  margin-bottom: 24px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
  .diagnostic-container {
    padding: 28px 20px;
  }
}

/* ==========================================================================
   Brand Search Tool (Consulta INPI)
   ========================================================================== */
.brand-checker-box {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--slate-200);
}

.brand-input-group {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.brand-input {
  flex: 1;
  padding: 16px 20px;
  border: 2px solid var(--slate-200);
  border-radius: var(--radius-md);
  font-size: 1.05rem;
  color: var(--navy-900);
  outline: none;
  transition: border-color var(--transition-fast);
}

.brand-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft);
}

.brand-result-feedback {
  display: none;
  margin-top: 24px;
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid;
  animation: fadeIn 0.3s ease;
}

.brand-result-feedback.safe {
  background: var(--emerald-soft);
  border-color: var(--emerald-500);
  color: #065F46;
}

.brand-result-feedback.alert {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: #92400E;
}

@media (max-width: 640px) {
  .brand-input-group {
    flex-direction: column;
  }
}

/* ==========================================================================
   Proposal Simulator Component
   ========================================================================== */
.simulator-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--slate-200);
}

.simulator-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
}

.service-select-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--slate-50);
  border-radius: var(--radius-md);
  border: 1px solid var(--slate-200);
  margin-bottom: 12px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.service-select-item:hover {
  background: var(--white);
  border-color: var(--primary);
}

.service-select-item.active {
  background: var(--primary-soft);
  border-color: var(--primary);
}

.service-select-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.service-checkbox {
  width: 22px;
  height: 22px;
  accent-color: var(--primary);
  cursor: pointer;
}

.simulator-summary-box {
  background: linear-gradient(135deg, var(--navy-900) 0%, #16244A 100%);
  border-radius: var(--radius-lg);
  padding: 32px;
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.95rem;
}

.summary-item span:first-child {
  color: var(--slate-300);
}

.summary-item span:last-child {
  font-weight: 700;
  color: var(--white);
}

@media (max-width: 860px) {
  .simulator-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Authority & Bio Profile Showcase
   ========================================================================== */
.authority-box {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
}

.authority-visual {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  padding: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
}

.authority-img-wrapper {
  position: relative;
  margin-bottom: 24px;
}

.authority-avatar {
  width: 170px;
  height: 170px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 4px solid var(--primary);
  box-shadow: 0 0 30px var(--primary-glow);
}

.authority-badge-overlay {
  position: absolute;
  bottom: 0;
  right: 0;
  background: var(--primary);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  border: 2px solid var(--navy-900);
}

.authority-credentials-list {
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cred-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.cred-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.cred-text h5 {
  font-size: 1rem;
  color: var(--navy-900);
  margin-bottom: 2px;
}

.cred-text p {
  font-size: 0.85rem;
  color: var(--slate-500);
}

@media (max-width: 900px) {
  .authority-box {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
  gap: 20px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item.active {
  border-color: var(--primary);
}

.faq-header {
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

.faq-header h4 {
  font-size: 1.05rem;
  color: var(--navy-900);
  font-weight: 700;
}

.faq-toggle-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: var(--slate-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-900);
  transition: transform var(--transition-normal), background var(--transition-fast);
}

.faq-item.active .faq-toggle-icon {
  transform: rotate(180deg);
  background: var(--primary);
  color: var(--white);
}

.faq-content {
  padding: 0 24px 22px;
  color: var(--slate-600);
  font-size: 0.95rem;
  line-height: 1.6;
  display: none;
}

.faq-item.active .faq-content {
  display: block;
  animation: fadeIn 0.3s ease;
}

@media (max-width: 600px) {
  .faq-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   WhatsApp Floating Quick-Widget
   ========================================================================== */
.whatsapp-widget-container {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.whatsapp-float-btn {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background: var(--whatsapp);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
}

.whatsapp-float-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.55);
}

.whatsapp-badge-pulse {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  background: #FF3B30;
  border-radius: var(--radius-full);
  border: 2px solid var(--white);
}

.whatsapp-popup-card {
  width: 320px;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--slate-200);
  margin-bottom: 16px;
  overflow: hidden;
  display: none;
  animation: fadeIn 0.25s ease;
}

.whatsapp-popup-card.open {
  display: block;
}

.wa-card-header {
  background: var(--whatsapp-dark);
  color: var(--white);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wa-card-header h5 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 2px;
}

.wa-card-header p {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
}

.wa-card-body {
  padding: 16px;
  background: #ECE5DD;
  max-height: 320px;
  overflow-y: auto;
}

.wa-msg-bubble {
  background: var(--white);
  border-radius: 0 var(--radius-md) var(--radius-md) var(--radius-md);
  padding: 12px 14px;
  font-size: 0.85rem;
  color: var(--slate-800);
  box-shadow: var(--shadow-xs);
  margin-bottom: 12px;
  line-height: 1.4;
}

.wa-topic-btn {
  width: 100%;
  text-align: left;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wa-topic-btn:hover {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--primary-dark);
}

/* ==========================================================================
   Booking & Consultation Modal
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 19, 43, 0.75);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.open {
  display: flex;
  animation: fadeIn 0.25s ease;
}

.modal-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 36px;
  position: relative;
  box-shadow: var(--shadow-xl);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--slate-100);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-600);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--primary-soft);
  color: var(--primary);
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 6px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  color: var(--navy-900);
  background: var(--white);
  transition: border-color var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
