/* ===== components-index.css ===== */
/* Estilos adicionais e otimizados para a página inicial */

/* ===== 1. Hero Section ===== */
.hero-section {
  /* Gradiente já definido em style.css como --gradient-hero */
  /* Padding superior para compensar a navbar fixa */
  padding-top: 100px;
  /* Ajuste conforme a altura da sua navbar */
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: var(--text-inverse);
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
  z-index: 0;
}

.hero-section .container {
  position: relative;
  z-index: 1;
}

.hero-section h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-inverse);
  /* Branco */
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-section h1 .text-warning {
  color: var(--warning-500) !important;
}

.hero-section p.lead {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: rgba(255, 255, 255, 0.9);
}

.hero-section .btn {
  font-size: 1.1rem;
  padding: 0.8rem 2rem;
  border-radius: var(--radius-lg);
}

.hero-section .btn-warning {
  background: var(--gradient-warning);
  color: var(--gray-900);
  box-shadow: var(--shadow-lg);
}

.hero-section .btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.7);
  color: var(--text-inverse);
}

.hero-section .btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-inverse);
  border-color: var(--text-inverse);
}

/* Floating elements in Hero Section */
.hero-image-container {
  position: relative;
  min-height: 300px;
  /* Garante espaço para os ícones flutuantes */
  display: flex;
  justify-content: center;
  align-items: center;
}

.floating-element {
  position: absolute;
  font-size: 5rem;
  color: rgba(255, 255, 255, 0.2);
  animation: float 3s ease-in-out infinite;
  z-index: 0;
}

.floating-icon {
  position: absolute;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-full);
  padding: 1rem;
  box-shadow: var(--shadow-md);
  animation: float 4s ease-in-out infinite;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.floating-icon i {
  font-size: 2rem;
  color: var(--primary-500);
}

.floating-icon:nth-child(2) {
  top: 10%;
  left: 10%;
  animation-delay: 0.5s;
}

.floating-icon:nth-child(3) {
  top: 20%;
  right: 15%;
  animation-delay: 1s;
}

.floating-icon:nth-child(4) {
  bottom: 30%;
  left: 20%;
  animation-delay: 1.5s;
}

.floating-icon:nth-child(5) {
  bottom: 20%;
  right: 10%;
  animation-delay: 2s;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.scroll-indicator a {
  color: var(--text-inverse);
  font-size: 2rem;
  animation: bounce 2s infinite;
}

/* ===== 2. Stats Cards ===== */
#stats {
  background-color: var(--bg-secondary);
  /* Cinza claro */
  padding: var(--spacing-3xl) 0;
}

.stats-card {
  background-color: var(--bg-elevated);
  /* Branco */
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--spacing-xl);
  text-align: center;
  transition: all var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--border-color);
}

.stats-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-500);
}

.stats-icon {
  margin-bottom: var(--spacing-md);
  font-size: 3.5rem;
  line-height: 1;
}

.stats-icon .fa-store {
  color: var(--primary-500);
}

.stats-icon .fa-users {
  color: var(--success-500);
}

.stats-icon .fa-map-marker-alt {
  color: var(--warning-500);
}

.stats-icon .fa-star {
  color: var(--success-500);
}

.stats-number {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  color: var(--primary-700);
}

.stats-card h5 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-700);
  margin-bottom: var(--spacing-sm);
}

.stats-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ===== 3. Franchise Carousel ===== */
#destaques {
  padding: var(--spacing-3xl) 0;
  background-color: var(--bg-primary);
}

#destaques h2 {
  color: var(--primary-700);
}

#destaques h2 span {
  color: var(--primary-500);
}

.franchise-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  overflow: hidden;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.franchise-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-500);
}

.card-img-wrapper {
  position: relative;
  height: 250px;
  /* Altura fixa para imagens do carrossel */
  overflow: hidden;
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.franchise-card:hover .card-img-wrapper img {
  transform: scale(1.1);
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 51, 102, 0.7);
  /* Azul escuro com transparência */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.franchise-card:hover .card-overlay {
  opacity: 1;
}

.card-overlay .btn {
  color: var(--text-inverse);
  border: 2px solid var(--text-inverse);
  background: transparent;
}

.card-overlay .btn:hover {
  background: var(--text-inverse);
  color: var(--primary-700);
}

.franchise-card .badge {
  background-color: var(--success-500);
  color: var(--text-inverse);
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  z-index: 2;
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
}

.franchise-card .card-body {
  padding: var(--spacing-lg);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.franchise-card .card-title {
  font-size: 1.3rem;
  color: var(--primary-700);
  margin-bottom: var(--spacing-sm);
}

.franchise-card .card-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  flex-grow: 1;
}

.franchise-card .text-primary {
  color: var(--primary-500) !important;
}

.franchise-card .border-top {
  border-top: 1px solid var(--border-color) !important;
  padding-top: var(--spacing-md);
  margin-top: var(--spacing-md);
}

/* Carousel controls */
.carousel-control-prev,
.carousel-control-next {
  width: 5%;
  filter: invert(1);
  /* Para ícones brancos em fundo escuro */
  opacity: 0.7;
  transition: opacity var(--transition-fast);
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(0, 51, 102, 0.6);
  /* Azul escuro com transparência */
  border-radius: var(--radius-full);
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-control-prev-icon::after,
.carousel-control-next-icon::after {
  font-size: 1.2rem;
}

/* ===== Seção Sobre a Empresa (CEO) ===== */
.about-section {
  background-color: var(--bg-secondary);
  padding: var(--spacing-3xl) 0;
}

.about-section h2 {
  color: var(--primary-700);
}

.about-section p.lead {
  color: var(--text-secondary);
}

.about-section ul {
  padding-left: 0;
}

.about-section ul li {
  list-style: none;
  margin-bottom: var(--spacing-sm);
  color: var(--text-primary);
  font-size: 1.05rem;
}

.about-section ul li i {
  color: var(--success-500);
  margin-right: var(--spacing-sm);
}

.about-section img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  object-fit: cover;
  width: 100%;
  height: 280px;
  /* Altura fixa para as fotos do CEO */
}

.about-section img:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-xl);
}

.about-section .text-muted {
  font-size: 0.85rem;
}

/* ===== 4. Process Steps (How it Works) ===== */
.process-step {
  background-color: var(--bg-elevated);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--spacing-xl);
  text-align: center;
  transition: all var(--transition-normal);
  height: 100%;
  border: 1px solid var(--border-color);
}

.process-step:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-500);
}

.step-icon-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: var(--spacing-lg);
}

.step-icon {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-inverse);
  font-size: 3rem;
  box-shadow: var(--shadow-md);
}

.process-step:nth-child(1) .step-icon {
  background: var(--gradient-primary);
}

.process-step:nth-child(2) .step-icon {
  background: var(--gradient-success);
}

.process-step:nth-child(3) .step-icon {
  background: var(--gradient-primary);
}

/* Usando primary novamente para info */

.step-number {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background-color: var(--warning-500);
  color: var(--gray-900);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  border: 2px solid var(--bg-elevated);
  box-shadow: var(--shadow-sm);
}

.process-step h4 {
  font-size: 1.4rem;
  color: var(--primary-700);
  margin-bottom: var(--spacing-md);
}

.process-step p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ===== 5. Testimonials ===== */
.testimonial-card {
  background-color: var(--bg-elevated);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--spacing-xl);
  transition: all var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-color);
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-500);
}

.testimonial-card .stars {
  color: var(--warning-500);
  margin-bottom: var(--spacing-md);
}

.testimonial-card p {
  font-style: italic;
  color: var(--text-primary);
  flex-grow: 1;
  margin-bottom: var(--spacing-lg);
}

.testimonial-card .avatar {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background-color: var(--primary-500);
  color: var(--text-inverse);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.testimonial-card h6 {
  font-size: 1.1rem;
  color: var(--primary-700);
  margin-bottom: 0;
}

.testimonial-card small {
  color: var(--text-tertiary);
  font-size: 0.85rem;
}

/* ===== 6. FAQ Accordion ===== */
.accordion-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-sm);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}

.accordion-header {
  margin-bottom: 0;
}

.accordion-button {
  background-color: var(--bg-elevated);
  color: var(--primary-700);
  font-weight: 600;
  padding: var(--spacing-md) var(--spacing-lg);
  border: none;
  transition: all var(--transition-fast);
  font-size: 1.1rem;
}

.accordion-button:not(.collapsed) {
  background-color: var(--primary-500);
  color: var(--text-inverse);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.125);
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(0, 102, 204, 0.25);
  border-color: var(--primary-500);
}

.accordion-body {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  padding: var(--spacing-md) var(--spacing-lg);
  font-size: 1rem;
  line-height: 1.7;
}

/* Dark mode adjustments for FAQ */
[data-theme="dark"] .accordion-button {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}

[data-theme="dark"] .accordion-button:not(.collapsed) {
  background-color: var(--primary-700);
  color: var(--text-inverse);
}

[data-theme="dark"] .accordion-body {
  background-color: var(--bg-tertiary);
  color: var(--text-secondary);
}

/* ===== 7. CTA Section ===== */
.cta-section {
  background: var(--gradient-hero);
  /* Reutiliza o gradiente do hero */
  padding: var(--spacing-3xl) 0;
  color: var(--text-inverse);
  text-align: center;
}

.cta-section h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--text-inverse);
  margin-bottom: var(--spacing-lg);
}

.cta-section p.lead {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(255, 255, 255, 0.9);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--spacing-2xl);
}

.cta-section .btn {
  font-size: 1.2rem;
  padding: 1rem 2.5rem;
  border-radius: var(--radius-lg);
}

.cta-section .btn-warning {
  background: var(--gradient-warning);
  color: var(--gray-900);
  box-shadow: var(--shadow-xl);
}

.cta-section .btn-warning:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2xl);
}

.cta-section .row .col-md-4 {
  padding: var(--spacing-md);
}

.cta-section .row .col-md-4 i {
  font-size: 3.5rem;
  color: var(--success-500);
  /* Verde para ícones de destaque */
  margin-bottom: var(--spacing-md);
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
}

.cta-section .row .col-md-4 h5 {
  font-size: 1.2rem;
  color: var(--text-inverse);
  font-weight: 600;
}

/* ===== Animações Customizadas (movidas de index.html) ===== */
@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-20px);
  }
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.animate-bounce {
  animation: bounce 2s infinite;
}

/* ===== Responsive Design (Media Queries) ===== */

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  .hero-section h1 {
    font-size: 2.2rem;
  }

  .hero-section p.lead {
    font-size: 1rem;
  }

  .hero-section .d-flex.gap-3 {
    flex-direction: column;
  }

  .hero-section .btn {
    width: 100%;
    margin-bottom: var(--spacing-sm);
  }

  .floating-icon {
    display: none;
    /* Esconde ícones flutuantes em telas muito pequenas */
  }

  .stats-card,
  .process-step,
  .testimonial-card {
    padding: var(--spacing-md);
  }

  .stats-number {
    font-size: 2.5rem;
  }

  .franchise-card .card-img-wrapper {
    height: 200px;
  }

  .franchise-card .card-title {
    font-size: 1.1rem;
  }

  .franchise-card .card-text {
    font-size: 0.85rem;
  }

  .carousel-control-prev,
  .carousel-control-next {
    display: none;
    /* Esconde controles do carrossel em mobile */
  }

  .about-section img {
    height: 200px;
  }

  .accordion-button {
    font-size: 1rem;
    padding: var(--spacing-sm) var(--spacing-md);
  }

  .accordion-body {
    font-size: 0.9rem;
  }

  .cta-section h2 {
    font-size: 2rem;
  }

  .cta-section p.lead {
    font-size: 1rem;
  }

  .cta-section .btn {
    width: 100%;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-section h1 {
    font-size: 2.8rem;
  }

  .hero-section p.lead {
    font-size: 1.1rem;
  }

  .floating-icon {
    padding: 0.8rem;
  }

  .floating-icon i {
    font-size: 1.5rem;
  }

  .stats-number {
    font-size: 3rem;
  }

  .franchise-card .card-img-wrapper {
    height: 220px;
  }

  .carousel-control-prev,
  .carousel-control-next {
    width: 8%;
  }

  .about-section img {
    height: 220px;
  }

  .cta-section h2 {
    font-size: 2.5rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-section h1 {
    font-size: 3.5rem;
  }

  .hero-section p.lead {
    font-size: 1.2rem;
  }

  .floating-icon {
    padding: 1rem;
  }

  .floating-icon i {
    font-size: 2rem;
  }

  .stats-number {
    font-size: 3.5rem;
  }

  .franchise-card .card-img-wrapper {
    height: 250px;
  }

  .carousel-control-prev,
  .carousel-control-next {
    width: 6%;
  }

  .about-section img {
    height: 250px;
  }

  .cta-section h2 {
    font-size: 3rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero-section h1 {
    font-size: 4rem;
  }

  .hero-section p.lead {
    font-size: 1.25rem;
  }

  .floating-icon {
    padding: 1.2rem;
  }

  .floating-icon i {
    font-size: 2.2rem;
  }

  .stats-number {
    font-size: 4rem;
  }

  .franchise-card .card-img-wrapper {
    height: 280px;
  }

  .about-section img {
    height: 280px;
  }

  .cta-section h2 {
    font-size: 3.5rem;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .hero-section h1 {
    font-size: 4.5rem;
  }

  .hero-section p.lead {
    font-size: 1.3rem;
  }

  .floating-icon {
    padding: 1.5rem;
  }

  .floating-icon i {
    font-size: 2.5rem;
  }

  .stats-number {
    font-size: 4.5rem;
  }

  .franchise-card .card-img-wrapper {
    height: 300px;
  }

  .about-section img {
    height: 300px;
  }

  .cta-section h2 {
    font-size: 4rem;
  }
}