/* ========================================
   VARIÁVEIS CSS - PALETA PROFISSIONAL AZUL
   ======================================== */
:root {
  --primary-color: #007BFF; /* Azul Vibrante (Botões, Links, Destaques) */
  --accent-hover: #0056b3;   /* Azul Escuro (Hover) */
  --background-color: #F8F9FA; /* Fundo Geral (Cinza Muito Claro) */
  --dark-background: #0A2540; /* Fundo das Seções Escuras (Azul Profundo) */
  --text-color: #212529;      /* Cor do Texto Principal (Cinza Escuro) */
  --card-background: #FFFFFF;   /* Fundo dos Cards (Branco) */
  --light-text-color: #f1f1f1; /* Texto em Fundo Escuro */
  --border-color: #dee2e6;    /* Bordes sutis */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', Arial, Helvetica, sans-serif;
  background: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
  font-size: 16px;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

.section {
  padding: 80px 0;
}

.section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--dark-background);
  text-align: center;
}

.section p.subtitle {
  font-size: 1.1rem;
  color: #6c757d;
  text-align: center;
  margin-bottom: 50px;
}

.dark {
  background: var(--dark-background);
  color: var(--light-text-color);
}

.dark h2 {
  color: var(--light-text-color);
}

.dark p.subtitle {
  color: #b0b3b8;
}

/* HERO - COM IMAGEM ADAPTATIVA (MOBILE LIMPO) */
.hero {
  position: relative;
  background-image: url("assets/bg-hero-mobile.jpg");
  background-size: cover;
  background-position: center;
  padding: 140px 0;
  overflow: hidden;
}

/* MOBILE: SEM OVERLAY */
.hero::before {
  content: none;
}

/* DESKTOP: HERO COM OVERLAY PROFISSIONAL */
@media (min-width: 769px) {
  .hero {
    background-image: url("assets/bg-hero.jpg");
    padding: 180px 0;
  }

  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      110deg,
      rgba(10, 37, 64, 0.96) 0%,
      rgba(10, 37, 64, 0.75) 40%,
      rgba(10, 37, 64, 0.45) 100%
    );
    z-index: 1;
  }

  .hero h1 {
    font-size: 46px;
    line-height: 1.15;
  }

  .hero p {
    max-width: 520px;
  }
}

/* CONTEÚDO SEMPRE ACIMA DO OVERLAY */
.hero .container {
  position: relative;
  z-index: 2;
}

/* AJUSTE DE TEXTO */
.hero h1 {
  font-size: 42px;
  margin-bottom: 20px;
  color: #ffffff;
}

.hero p {
  color: #e0e0e0;
  margin-bottom: 30px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}


/* BOTÕES */
.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  font-weight: bold;
  border-radius: 30px;
  text-decoration: none;
  color: #fff;
  background: var(--primary-color);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 0;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.btn-primary.large {
  font-size: 18px;
  padding: 18px 36px;
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
  background: var(--accent-hover);
}

.btn-primary:focus,
.btn-secondary:focus {
  outline: 3px solid var(--primary-color);
  outline-offset: 2px;
  transform: translateY(-3px);
}

/* SETAS */
.hero-arrows {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.hero-arrows span {
  width: 22px;
  height: 22px;
  border-right: 4px solid var(--primary-color);
  border-bottom: 4px solid var(--primary-color);
  transform: rotate(45deg);
  animation: arrowPulse 1.8s infinite;
  opacity: 0;
}

.hero-arrows span:nth-child(2) { animation-delay: .25s; }
.hero-arrows span:nth-child(3) { animation-delay: .5s; }

@keyframes arrowPulse {
  0% { opacity: 0; transform: translateY(0) rotate(45deg); }
  50% { opacity: 1; }
  100% { opacity: 0; transform: translateY(12px) rotate(45deg); }
}

/* IMAGENS */
.mockup {
  width: 100%;
  filter: drop-shadow(0 0 30px rgba(0, 123, 255, 0.2));
  transition: transform .4s ease;
}

.zoom-hover:hover {
  transform: scale(1.05);
}

.float-anim {
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
  100% { transform: translateY(0); }
}

.autor {
  width: 100%;
  border-radius: 20px;
  filter: grayscale(100%);
}

/* CARDS */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.card {
  background: var(--card-background);
  padding: 24px;
  border-radius: 14px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  color: var(--text-color);
}

.card.arrow::before {
  content: "➜ ";
  color: var(--primary-color);
}

.card.arrow:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 123, 255, 0.15);
  border-color: var(--primary-color);
}

/* LISTAS */
.list li {
  list-style: none;
  margin-bottom: 10px;
}

.list.arrows li::before {
  content: "➜ ";
  color: var(--primary-color);
  font-weight: bold;
}

/* SPLIT */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

/* NÚMEROS */
.numbers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
}

.numbers strong {
  font-size: 42px;
  color: var(--primary-color);
}

/* CTA */
.cta {
  text-align: center;
  background: var(--dark-background);
  padding: 100px 0;
}


.cta h2 {
  color: var(--light-text-color);
}

/* FOOTER */
.footer {
  padding: 30px 0;
  text-align: center;
  font-size: 14px;
  color: #777;
  background-color: var(--dark-background);
}

/* ========================================
   MOBILE OPTIMIZATION
   ======================================== */
@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }
  
  .section h2 {
    font-size: 2rem;
    margin-bottom: 15px;
  }

  .section p.subtitle {
    font-size: 1rem;
    margin-bottom: 40px;
  }

  .hero-grid, .split {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }

  .hero-grid .hero-text { order: 2; }
  .hero-grid .hero-visual { order: 1; }
  
  .hero-grid .mockup,
  .hero-visual .hero-arrows {
    display: none;
  }

  .hero {
    padding: 180px 0 50px 0;
  }

  .hero h1 {
    font-size: 2.2rem;
    margin-top: 40px;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    line-height: 1.1;
  }

  .hero p {
    margin-bottom: 20px;
  }

  .hero-text .hero-arrows {
    display: flex;
    margin-top: 35px;
  }

  .cards {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .card {
    padding: 20px;
    font-size: 0.95rem;
  }

  .btn-primary, .btn-secondary {
    width: 100%;
    padding: 16px 28px;
  }

  .split img.mockup, .split img.autor {
    max-width: 85%;
    margin: 20px auto;
    display: block;
  }
  
  .list.arrows {
    text-align: left;
    font-size: 0.95rem;
  }

  .numbers {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .numbers strong {
    font-size: 2.5rem;
  }
  
  .numbers span {
    display: block;
    margin-top: 5px;
    font-size: 0.9rem;
  }

  .faq-question {
    font-size: 1rem;
    padding: 18px 20px;
  }
  
  .faq-answer p {
    font-size: 0.95rem;
  }

  .cta h2 {
    font-size: 1.8rem;
    line-height: 1.3;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 50px 0;
  }
  
  .hero {
    padding: 160px 0 40px 0;
  }

  .hero h1 {
    font-size: 1.9rem;
    line-height: 1.1;
  }
  
  .card {
    padding: 18px;
  }
}

/* =================== ESTILOS DAS SEÇÕES =================== */

/* --- SEÇÃO DE DEPOIMENTOS (NOVO LAYOUT LIMPO) --- */
.testimonials {
  background: var(--background-color);
  padding: 80px 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.testimonial-card {
  background: var(--card-background);
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--border-color);
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 123, 255, 0.1);
}

.testimonial-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 3px solid var(--background-color);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.testimonial-text {
  font-size: 0.95rem;
  font-style: italic;
  color: #495057;
  margin-bottom: 20px;
  line-height: 1.6;
  flex-grow: 1;
}

.testimonial-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark-background);
  margin-bottom: 5px;
}

.testimonial-role {
  font-size: 0.85rem;
  color: var(--primary-color);
  font-weight: 600;
}

/* --- Responsividade da Nova Seção de Depoimentos --- */
@media (max-width: 768px) {
  .testimonials {
    padding: 60px 0;
  }
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .testimonial-card {
    padding: 25px 20px;
  }
}


/* --- SEÇÃO DE DÚVIDAS (FAQ) --- */
.faq-list {
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.faq-item {
  background: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 20px;
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 16px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s ease;
}

.faq-question:hover {
  background: rgba(0, 123, 255, 0.05);
}

.faq-question::after {
  content: '+';
  font-size: 24px;
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

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

.faq-answer p {
  padding: 0 20px;
  color: #6c757d;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 20px 20px 20px;
}

@media (max-width: 600px) {
  .faq-question {
    font-size: 15px;
  }
}



/* ========================================
   SEÇÃO DE PROJETOS EM CARROSSEL
   ======================================== */
#projetos {
  background-color: var(--background-color);
  overflow: hidden;
  padding: 70px 0;
}


.carousel-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
  padding: 10px 0 50px 0;
}

/* CORREÇÃO: Regra geral do track SEM animação */
.carousel-track {
  display: flex;
}

/* CORREÇÃO: Regra ESPECÍFICA para o carrossel de projetos COM animação */
.projects-carousel-track {
  display: flex;
  animation: scroll 40s linear infinite;
  width: fit-content;
}

.carousel-wrapper:hover .projects-carousel-track {
  animation-play-state: paused;
}

.project-card {
  flex: 0 0 auto;
  width: 280px;
  background: var(--card-background);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin: 0 15px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 123, 255, 0.2);
}

.project-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.project-card-content {
  padding: 25px;
}

.project-card-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark-background);
  margin-bottom: 10px;
}

.project-card-content p {
  font-size: 0.95rem;
  color: #6c757d;
  margin-bottom: 20px;
  line-height: 1.5;
}

.project-card-content .btn-secondary {
  padding: 10px 20px;
  font-size: 0.9rem;
}

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

/* Responsividade do Carrossel */
@media (max-width: 768px) {
  .project-card {
    width: 300px;
  }
  .project-card img {
    height: 200px;
  }
  .project-card-content h3 {
    font-size: 1.1rem;
  }
  .project-card-content p {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .project-card {
    width: 260px;
  }
  .project-card img {
    height: 180px;
  }
  .project-card-content {
    padding: 20px;
  }
}



/* ========================================
   ESTILOS DO MODAL (LIGHTBOX)
   ======================================== */
.project-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
  cursor: pointer;
}

.modal-content {
  margin: auto;
  display: block;
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  object-fit: contain;
  animation: zoom-in 0.3s ease;
}

@keyframes zoom-in {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-close {
  position: absolute;
  top: 25px;
  right: 45px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.modal-close:hover,
.modal-close:focus {
  color: #bbb;
  text-decoration: none;
}

@media only screen and (max-width: 700px) {
  .modal-content {
    width: 100%;
  }
  .modal-close {
    font-size: 30px;
    top: 15px;
    right: 25px;
  }
}

/* ===== Ajustes Desktop (Mockup e Hero Visual) ===== */
@media (min-width: 769px) {
  .hero-visual img {
    max-height: 460px;
    width: auto;
  }
  .hero-visual {
    justify-content: flex-end;
    padding-right: 40px;
  }
}

/* ===== AJUSTES PARA TABLETS ===== */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero {
    padding: 140px 0;
  }
  .hero h1 {
    font-size: 38px;
    line-height: 1.15;
  }
  .hero p {
    max-width: 480px;
  }
  .hero-grid {
    gap: 32px;
  }
  .hero-visual img {
    max-height: 420px;
  }
}



/* --- ESTILOS DO CARROSSEL DENTRO DOS DEPOIMENTOS --- */
.testimonial-carousel {
  position: relative;
  width: 100%;
  margin-top: 20px;
  overflow: hidden;
  border-radius: 8px;
}

.testimonial-carousel .carousel-track {
  will-change: transform;
  display: flex;
  transition: transform 0.4s ease-in-out;
}

.carousel-slide {
  width: 100%;
  flex: 0 0 100%;
}


.carousel-slide img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}

/* Setas de Navegação */
.testimonial-carousel .carousel-prev,
.testimonial-carousel .carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(10, 37, 64, 0.7);
  color: #fff;
  border: none;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease, transform 0.2s ease, opacity 0.3s ease, cursor 0.3s ease;
}

.testimonial-carousel .carousel-prev {
  left: 10px;
}

.testimonial-carousel .carousel-next {
  right: 10px;
}

.testimonial-carousel .carousel-prev:hover,
.testimonial-carousel .carousel-next:hover {
  background-color: var(--primary-color);
  transform: translateY(-50%) scale(1.1);
}

.testimonial-carousel .carousel-prev:disabled,
.testimonial-carousel .carousel-next:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: translateY(-50%);
}


@media (min-width: 1024px) {
  .section {
    padding: 65px 0;
  }
}

@media (min-width: 1024px) {
  .section p.subtitle {
    margin-bottom: 40px;
  }
}


/* Ajuste EXCLUSIVO do mockup do dashboard */
img[src*="mockup-monetizaclick-dashboard"] {
  max-width: 60%;
  margin: 0 auto;
  display: block;
}
