/* Estilos personalizados para o site da NB Consultoria Alimentar com Bootstrap */

/* Variáveis de cores personalizadas */
:root {
  --primary-color: #F47B20;
  --secondary-color: #A6CE39;
  --dark-color: #333333;
  --light-color: #F9F9F9;
  --text-color: #666666;
}

/* Aplicar fonte Poppins globalmente */
body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
}

/* Cores personalizadas para Bootstrap */
.text-primary {
  color: var(--primary-color) !important;
}

.bg-primary {
  background-color: var(--primary-color) !important;
}

.btn-primary {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
}

.btn-primary:hover {
  background-color: #e06a1a !important;
  border-color: #e06a1a !important;
}

.btn-outline-primary {
  color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
}

.btn-outline-primary:hover {
  color: var(--light-color) !important;
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
}

/* Header personalizado */
#header {
  background-color: transparent;
  transition: all 0.3s ease;
}

#header .navbar-brand img {
  height: 60px;
  width: auto;
}

#header .nav-link {
  color: var(--dark-color) !important;
  font-weight: 500;
  transition: color 0.3s ease;
  margin: 0 10px;
}

#header .nav-link:hover {
  color: var(--primary-color) !important;
}

#header .navbar-toggler {
  border: none;
  color: var(--primary-color);
}

#header .navbar-toggler:focus {
  box-shadow: none;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, 
    rgba(244, 123, 32, 0.05) 0%, 
    rgba(255, 255, 255, 0.9) 50%, 
    rgba(244, 123, 32, 0.05) 100%);
  min-height: 100vh;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(244, 123, 32, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(244, 123, 32, 0.03) 0%, transparent 50%);
}

.hero-particles {
  display: none;
}

.hero-badge .badge {
  background: var(--primary-color) !important;
  color: white !important;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(244, 123, 32, 0.2);
}

.hero-title {
  color: var(--primary-color);
  animation: slideUp 1s ease-in-out;
}

.hero-stats {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(244, 123, 32, 0.1);
}

.stat-item {
  text-align: center;
  padding: 1rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.6);
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-color);
  font-weight: 500;
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: var(--text-color);
  opacity: 0.7;
}

.scroll-arrow {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.scroll-text {
  font-size: 0.8rem;
  font-weight: 500;
}

/* Seções */
.section-header h2 {
  color: var(--primary-color);
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--secondary-color);
}

/* Cards de serviços e diferenciais */
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 12px;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
}

.service-icon,
.differential-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
}

/* Testimonial */
.author-avatar {
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
}

/* Formulário */
.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(244, 123, 32, 0.25);
}

/* Footer */
footer {
  background-color: var(--dark-color) !important;
}

footer .social-links a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer .social-links a:hover {
  color: var(--primary-color);
}

/* Animações */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Responsividade */
@media (max-width: 768px) {
  .hero {
    padding: 100px 0 60px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero .display-3 {
    font-size: 2.5rem;
  }

  .hero-subtitle .lead {
    font-size: 1.2rem !important;
  }

  .hero-stats {
    padding: 1.5rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .hero-btn-primary {
    font-size: 1.1rem !important;
    padding: 0.75rem 2rem !important;
  }

  .hero-btn-secondary,
  .hero-btn-outline {
    font-size: 1rem !important;
    padding: 0.6rem 1.5rem !important;
  }

  .card {
    margin-bottom: 20px;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 0.9rem;
  }

  .btn {
    width: 100%;
    margin-bottom: 10px;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .section-header p {
    font-size: 1rem;
  }
}

/* Utilitários adicionais */
.bg-light {
  background-color: var(--light-color) !important;
}

.shadow-sm {
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

/* Melhorias para acessibilidade */
.btn:focus,
.form-control:focus {
  outline: none;
}

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

/* Seção de Diagnóstico Gratuito */
.bg-gradient-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, #ff8c42 100%);
  position: relative;
  overflow: hidden;
}

.bg-gradient-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.diagnosis-badge .badge {
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  animation: pulse 2s infinite;
}

.diagnosis-feature {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.diagnosis-feature:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.feature-icon {
  font-size: 3rem;
  color: #ffd700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.diagnosis-cta .btn-warning {
  background: linear-gradient(45deg, #ffd700, #ffed4e);
  border: none;
  color: #333;
  font-weight: 700;
  text-shadow: none;
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
  transition: all 0.3s ease;
}

.diagnosis-cta .btn-warning:hover {
  background: linear-gradient(45deg, #ffed4e, #ffd700);
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(255, 215, 0, 0.6);
}

.diagnosis-cta .btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.8);
  color: white;
  font-weight: 600;
  transition: all 0.3s ease;
}

.diagnosis-cta .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
  color: white;
  transform: translateY(-2px);
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Responsividade para a seção de diagnóstico */
@media (max-width: 768px) {
  .diagnosis-feature {
    margin-bottom: 1rem;
  }
  
  .diagnosis-cta .btn {
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .diagnosis-cta .d-flex {
    flex-direction: column;
  }
}

/* Seção de Depoimentos */
.testimonial-card {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-left: 5px solid var(--primary-color) !important;
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(244, 123, 32, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.testimonial-content {
  position: relative;
  z-index: 2;
}

.quote-icon {
  font-size: 2.5rem;
  opacity: 0.3;
  text-align: center;
}

.testimonial-card .blockquote p {
  font-style: italic;
  line-height: 1.8;
  color: var(--text-color);
  position: relative;
}

.testimonial-card .blockquote p::before {
  content: '"';
  font-size: 4rem;
  color: var(--primary-color);
  position: absolute;
  top: -20px;
  left: -20px;
  opacity: 0.2;
  font-family: serif;
}

.testimonial-author {
  padding-top: 1rem;
  border-top: 2px solid rgba(244, 123, 32, 0.1);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
}

/* Responsividade para depoimentos */
@media (max-width: 768px) {
  .testimonial-card .blockquote p {
    font-size: 1rem;
  }
  
  .quote-icon {
    font-size: 2rem;
  }
  
  .testimonial-card .blockquote p::before {
    font-size: 3rem;
    top: -15px;
    left: -15px;
  }
}