/* ---------------------------------
   HOME PAGE HOMEPAGE CSS
--------------------------------- */

/* SECTION 1 - HERO */
.hero {
  position: relative;
  background-color: var(--primary-color);
  padding: 60px 0 100px;
  overflow: hidden;
}

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

.hero-content {
  color: var(--white);
  position: relative;
  z-index: 3;
}

.hero h1 {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.1;
  font-family: var(--font-heading);
  font-weight: 700;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--white);
  font-weight: 400;
  margin-bottom: 20px;
  opacity: 0.9;
}

.hero p {
  font-size: 1rem;
  opacity: 0.85;
  margin-bottom: 40px;
  max-width: 500px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-whatsapp {
  background-color: #25D366;
  color: #fff;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
}

.btn-whatsapp:hover {
  background-color: #1ebd5a;
  transform: translateY(-2px);
}

.btn-call {
  background-color: rgba(255,255,255,0.1);
  color: #fff;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(255,255,255,0.2);
}

.btn-call:hover {
  background-color: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

.hero-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
}

.hero-image-circle {
  width: 450px;
  height: 450px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 80px rgba(255, 255, 255, 0.15);
  border: 8px solid rgba(255, 255, 255, 0.1);
}

.hero-image-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Glowing radial gradient */
.hero-image-wrapper::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 70%);
  z-index: -1;
  border-radius: 50%;
}

/* SECTION 2 - STATS RIBBON */
.stats-ribbon {
  background-color: var(--primary-color);
  padding: var(--space-md) 0;
  color: var(--white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  text-align: center;
}

.stat-item {
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background-color: rgba(232, 93, 4, 0.4);
}

.stat-number-wrapper {
  font-size: 3rem;
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-number-wrapper span {
  color: var(--accent-color);
}

.stat-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.8;
}

/* SECTION 3 - WHY REAÇÃO */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.why-card {
  background-color: var(--white);
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: all var(--transition-normal);
}

.why-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: rgba(232, 93, 4, 0.3);
}

.why-icon {
  font-size: 3rem;
  color: var(--accent-color);
  margin-bottom: var(--space-sm);
}

.why-card h3 {
  font-size: 1.3rem;
  color: var(--text-dark);
}

/* SECTION 4 - SERVICES PREVIEW */
.services-swiper {
  padding-bottom: var(--space-lg);
  margin-top: var(--space-lg);
}

.service-slide {
  height: 400px;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  group: true; /* For tailwind-like arbitrary focus if needed, but going vanilla */
}

.service-slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.service-slide:hover .service-slide-bg {
  transform: scale(1.1);
}

.service-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 42, 92, 0.9), rgba(0,0,0,0.2));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-md);
  color: var(--white);
  transition: background var(--transition-normal);
}

.service-slide:hover .service-slide-overlay {
  background: linear-gradient(to top, rgba(232, 93, 4, 0.9), rgba(0,0,0,0.4));
}

.ss-badge {
  background-color: var(--accent-color);
  color: var(--white);
  display: inline-block;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 8px;
  align-self: flex-start;
}

.service-slide h3 {
  color: var(--white);
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.service-slide p {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: var(--space-sm);
}

.ss-btn {
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--transition-normal);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  color: var(--white);
}

.service-slide:hover .ss-btn {
  opacity: 1;
  transform: translateY(0);
}

/* SECTION 5 - HOW IT WORKS */
.process-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-lg);
  position: relative;
}

.process-step {
  text-align: center;
  position: relative;
  z-index: 2;
}

.step-number {
  width: 60px;
  height: 60px;
  background-color: var(--white);
  border: 3px solid var(--accent-color);
  color: var(--accent-color);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-sm);
  box-shadow: var(--shadow-sm);
}

.process-step h4 {
  color: var(--primary-color);
  margin-bottom: 4px;
}

.process-line {
  position: absolute;
  top: 30px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background-color: var(--border-color);
  z-index: 1;
}

.process-line-fill {
  height: 100%;
  background-color: var(--accent-color);
  width: 0; /* Animated with GSAP */
}

/* SECTION 6 - QUIZ */
.quiz-section {
  background-color: var(--primary-color);
  color: var(--white);
  padding: var(--space-xl) 0;
}

.quiz-container {
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--white);
  color: var(--text-dark);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-lg);
}

.quiz-header h2 {
  color: var(--primary-color);
}

.quiz-progress {
  height: 6px;
  background-color: var(--border-color);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
  overflow: hidden;
}

.quiz-progress-bar {
  height: 100%;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

.quiz-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.quiz-btn {
  background-color: var(--light-bg);
  border: 2px solid var(--border-color);
  padding: 16px;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
  font-family: var(--font-body);
}

.quiz-btn:hover {
  border-color: var(--accent-color);
  background-color: #FFF3EB;
}

.quiz-btn.selected {
  border-color: var(--accent-color);
  background-color: var(--accent-color);
  color: var(--white);
}

.quiz-results {
  text-align: center;
}

.quiz-results ul {
  list-style: none;
  margin: var(--space-md) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.quiz-results li {
  background-color: #FFF3EB;
  color: var(--accent-hover);
  padding: 12px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

/* SECTION 7 - TESTIMONIALS */
.testimonial-card {
  background-color: var(--white);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--accent-color);
  box-shadow: var(--shadow-sm);
}

.t-quote-icon {
  font-size: 2.5rem;
  color: rgba(232, 93, 4, 0.2);
  margin-bottom: var(--space-sm);
}

.t-text {
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: var(--space-md);
}

.t-author strong {
  display: block;
  color: var(--primary-color);
  font-family: var(--font-heading);
}

.t-author span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* SECTION 8 - MARQUEE */
.marquee-section {
  padding: var(--space-lg) 0;
  overflow: hidden;
  background-color: var(--light-bg);
}

.marquee-container {
  overflow: hidden;
  width: 100%;
}

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

.marquee-track {
  display: flex;
  width: max-content;
  animation: scroll-marquee 20s linear infinite;
}

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

.marquee-item {
  flex: 0 0 auto;
  width: 250px;
  padding: 0 var(--space-md);
}

.client-logo {
  height: 60px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.client-logo:hover {
  opacity: 1;
}

/* === RESPONSIVE === */

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

  .process-timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-line {
    display: none;
  }

  .process-step {
    margin-bottom: var(--space-md);
  }

  .quiz-container {
    padding: var(--space-md);
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 40px 0 60px;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero p {
    font-size: 1rem;
    margin: 0 auto 30px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn-whatsapp, .btn-call {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }

  .hero-image-circle {
    width: 300px;
    height: 300px;
  }
  
  .hero-image-wrapper::before {
    width: 380px;
    height: 380px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
  }

  .stat-item:not(:last-child)::after {
    display: none;
  }

  .stat-number-wrapper {
    font-size: 2.2rem;
  }

  .why-grid {
    grid-template-columns: 1fr;
    margin-top: var(--space-md);
  }

  .process-timeline {
    grid-template-columns: 1fr;
  }

  .process-line {
    display: none;
  }

  .process-step {
    border-left: 2px solid var(--accent-color);
    padding-left: 20px;
    text-align: left;
    margin-bottom: 20px;
  }

  .step-number {
    margin: 0 0 10px 0;
  }

  .quiz-container {
    padding: var(--space-sm);
  }

  .quiz-options {
    grid-template-columns: 1fr;
  }

  .testimonial-card {
    padding: var(--space-md);
  }

}

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

  .stat-number-wrapper {
    font-size: 1.8rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }

  .hero-badge {
    font-size: 0.75rem;
  }

  .hero-buttons .btn {
    max-width: 100%;
  }

  .quiz-container {
    border-radius: var(--radius-md);
  }
}
