:root {
  --color-primary: #0D0D0D;
  --color-secondary: #F5F5F5;
  --color-accent: #E10600;
  --color-surface: #1A1A1A;
  --color-muted: #B3B3B3;

  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;

  --container-width: 1200px;
  --transition-default: 0.3s ease;
  --header-height: 80px;
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-body);
  background-color: var(--color-primary);
  color: var(--color-secondary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--color-secondary);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

p {
  font-size: 1rem;
  color: var(--color-muted);
  margin-bottom: 1rem;
}

a {
  color: var(--color-secondary);
  text-decoration: none;
  transition: color var(--transition-default);
}

a:hover,
a:focus {
  color: var(--color-accent);
}

a:focus,
button:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Layout */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  color: var(--color-secondary);
}

.section-title p {
  max-width: 700px;
  margin: 0 auto;
}

/* Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-accent);
  color: #FFFFFF;
  font-family: var(--font-body);
  font-weight: 600;
  padding: 1rem 2rem;
  border-radius: 4px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background-color var(--transition-default), transform var(--transition-default);
  text-align: center;
}

.btn:hover,
.btn:focus {
  background-color: #C00500;
  color: #FFFFFF;
  transform: translateY(-2px);
}

.btn-large {
  font-size: 1.125rem;
  padding: 1.25rem 2.5rem;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(13, 13, 13, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background-color var(--transition-default), padding var(--transition-default);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-desktop .home-icon,
.mobile-nav .home-icon {
  color: var(--color-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color var(--transition-default), color var(--transition-default);
}

.nav-desktop .home-icon:hover,
.mobile-nav .home-icon:hover {
  background-color: var(--color-accent);
  color: #fff;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 55px;
  /* Altura da logo */
  width: auto;
  border-radius: 4px;
  /* Logo quadrada, cantos sutilmente arredondados */
}

.nav-desktop {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-desktop a {
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-desktop .btn-nav {
  background-color: var(--color-surface);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  color: var(--color-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: border-color var(--transition-default);
}

.nav-desktop .btn-nav:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background-color: transparent;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-secondary);
  margin-bottom: 5px;
  transition: transform var(--transition-default), opacity var(--transition-default);
}

.mobile-menu-btn span:last-child {
  margin-bottom: 0;
}

.mobile-nav {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--header-height));
  background-color: var(--color-primary);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transform: translateX(100%);
  transition: transform 0.4s ease-in-out;
  z-index: 999;
  overflow-y: auto;
}

.mobile-nav.is-open {
  transform: translateX(0);
}

.mobile-nav a {
  font-size: 1.25rem;
  font-weight: 600;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  /* Fallback background enquanto não há imagem */
  background: linear-gradient(135deg, #000000 0%, #1A1A1A 100%);
  overflow: hidden;
}

/* 
  INSTRUÇÃO: Para inserir a imagem do Hero, descomente e adapte o código abaixo:
  
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../assets/images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.4;
  z-index: 0;
}
*/

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 800px;
}

.hero p {
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  color: var(--color-secondary);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

/* Features Grid (Benefícios e Diferenciais) */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background-color: var(--color-surface);
  padding: 2.5rem 2rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  transition: transform var(--transition-default), border-color var(--transition-default);
  height: 100%;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(225, 6, 0, 0.3);
}

.card-icon {
  width: 48px;
  height: 48px;
  background-color: rgba(225, 6, 0, 0.1);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  /* Efeito de pulsação mais forte no ícone */
  animation: icon-pulse 1.8s infinite cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 0 0 rgba(225, 6, 0, 0.6);
}

@keyframes icon-pulse {
  0% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(225, 6, 0, 0.6);
  }
  50% {
    transform: scale(1.15);
    box-shadow: 0 0 0 20px rgba(225, 6, 0, 0);
  }
  100% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(225, 6, 0, 0);
  }
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.card h3 {
  margin-bottom: 1rem;
}

.card p {
  margin-bottom: 0;
}

/* Backgrounds alternados */
.bg-surface {
  background-color: var(--color-surface);
}

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

.bg-light {
  background-color: var(--color-secondary);
}

.bg-light h2,
.bg-light h3,
.bg-light p {
  color: var(--color-primary);
}

.bg-light p {
  color: #4A4A4A;
}

.bg-light .card {
  background-color: #FFFFFF;
  border-color: rgba(0, 0, 0, 0.05);
}

.bg-light .card:hover {
  border-color: rgba(225, 6, 0, 0.3);
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background-color: var(--color-primary);
  padding: 2.5rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
}

.quote-icon {
  color: var(--color-accent);
  margin-bottom: 1rem;
  opacity: 0.5;
}

.testimonial-text {
  font-size: 1.125rem;
  font-style: italic;
  color: var(--color-secondary);
  margin-bottom: 2rem;
  flex-grow: 1;
}

.testimonial-author {
  font-weight: 600;
  color: var(--color-muted);
  font-family: var(--font-heading);
  display: flex;
  align-items: center;
  gap: 10px;
}

.testimonial-author::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--color-accent);
}

/* Como funciona */
.steps-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto 3rem auto;
}

.step-item {
  display: flex;
  gap: 1.5rem;
  background-color: var(--color-surface);
  padding: 2rem;
  border-radius: 8px;
  position: relative;
}

.step-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background-color: var(--color-accent);
  color: white;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.step-content h3 {
  margin-bottom: 0.5rem;
}

.step-disclaimer {
  text-align: center;
  background-color: rgba(255, 255, 255, 0.03);
  padding: 1.5rem;
  border-radius: 8px;
  max-width: 800px;
  margin: 0 auto;
}

/* FAQ */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  position: relative;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background-color: var(--color-accent);
  transition: transform var(--transition-default);
}

.faq-icon::before {
  top: 11px;
  left: 4px;
  width: 16px;
  height: 2px;
}

.faq-icon::after {
  top: 4px;
  left: 11px;
  width: 2px;
  height: 16px;
}

.faq-question[aria-expanded="true"] .faq-icon::after {
  transform: rotate(90deg);
}

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

.faq-answer p {
  padding-bottom: 1.5rem;
}

/* CTA Final */
.cta-final {
  text-align: center;
  padding: 6rem 0;
  background: linear-gradient(135deg, #E10600 0%, #8A0400 100%);
}

.cta-final h2,
.cta-final p {
  color: #FFFFFF;
}

.cta-final p {
  max-width: 700px;
  margin: 0 auto 2rem auto;
  font-size: 1.125rem;
}

.cta-final .btn {
  background-color: var(--color-primary);
  color: #FFFFFF;
}

.cta-final .btn:hover {
  background-color: var(--color-surface);
}

/* Footer */
.footer {
  background-color: var(--color-primary);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 4rem 0 2rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h3 {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  color: var(--color-secondary);
}

.footer-logo {
  margin-bottom: 1rem;
  display: inline-block;
}

.footer-logo img {
  height: 55px;
  width: auto;
  border-radius: 4px;
}

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

.footer-info p,
.footer-info a {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--color-muted);
  font-size: 0.9375rem;
}

.footer-info a:hover {
  color: var(--color-accent);
}

.footer-info svg {
  width: 18px;
  height: 18px;
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
  font-size: 0.875rem;
  margin-bottom: 0;
}

/* WhatsApp FAB */
.whatsapp-fab {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: transform var(--transition-default), background-color var(--transition-default);
}

.whatsapp-fab:hover {
  transform: scale(1.1);
  background-color: #128C7E;
  color: white;
}

.whatsapp-fab svg {
  width: 32px;
  height: 32px;
}

.fab-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: var(--color-accent);
  color: #fff;
  font-size: 13px;
  font-weight: bold;
  font-family: var(--font-body);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #25d366; /* Borda da cor do WhatsApp para contraste */
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  animation: pulse-badge 2s infinite;
}

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

.center-btn {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

/* Image Grid */
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.image-grid img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform var(--transition-default);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.image-grid img:hover {
  transform: scale(1.03);
}

/* Infinite Marquee */
.marquee-container {
  overflow: hidden;
  width: 100%;
  margin-top: 2rem;
  padding: 1rem 0;
}

.marquee-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: scroll-marquee 40s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-track img {
  height: 250px;
  width: 350px;
  object-fit: contain;
  /* Não corta a logo */
  background-color: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

@keyframes scroll-marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-50% - 0.75rem));
  }
}

@media (max-width: 768px) {
  .marquee-track img {
    height: 200px;
    width: 280px;
  }
}

/* Vertical Marquee */
.marquee-vertical-container {
  overflow: hidden;
  width: 100%;
  max-width: 400px;
  /* Largura ideal para leitura dos depoimentos no desktop */
  height: 600px;
  /* Altura do visor */
  margin: 2rem auto 0 auto;
  padding: 1rem 0;
  position: relative;
  /* Cria um leve efeito de fade nas bordas superior e inferior */
  mask-image: linear-gradient(to bottom, transparent, black 5%, black 95%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 5%, black 95%, transparent);
}

.marquee-vertical-track {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  animation: scroll-marquee-vertical 25s linear infinite;
}

.marquee-vertical-track:hover {
  animation-play-state: paused;
}

.marquee-vertical-track img {
  width: 100%;
  height: auto;
  object-fit: contain;
  /* Garante que o print do depoimento não seja cortado */
  background-color: var(--color-surface);
  /* Mescla com o fundo da seção */
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

@keyframes scroll-marquee-vertical {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(calc(-50% - 0.75rem));
  }
}

/* Responsive */
@media (max-width: 991px) {
  .nav-desktop {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  section {
    padding: 4rem 0;
  }

  .hero {
    padding-top: calc(var(--header-height) + 2rem);
    text-align: center;
  }

  .hero-content {
    margin: 0 auto;
  }

  .hero p {
    margin: 0 auto 2rem auto;
  }

  .step-item {
    flex-direction: column;
    gap: 1rem;
  }
}

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

  .card {
    padding: 1.5rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }
}

/* Animated Dividers */
.animated-divider {
  width: 100%;
  height: 2px;
  background-color: #111;
  position: relative;
  overflow: hidden;
  z-index: 10;
}

.animated-divider::after {
  content: '';
  position: absolute;
  top: 0;
  left: -300px;
  width: 300px;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--color-accent), var(--color-accent), transparent);
  box-shadow: 0 0 10px var(--color-accent), 0 0 20px var(--color-accent);
  animation: scanningLine 5s infinite cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.8;
}

@keyframes scanningLine {
  0% { left: -300px; }
  40% { left: 100%; }
  100% { left: 100%; } /* Pausa antes do próximo ciclo */
}

/* Enhanced Scroll Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(60px) scale(0.96);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}