/**
 * Estilos Específicos da Página Home - IR Log Transportes
 * Arquivo: home.css
 * 
 * Contém estilos exclusivos para:
 * - Hero Section com vídeo background
 * - Bento Grid de Serviços
 * - Mapa Nordeste (Área de Atuação)
 * - Social Proof (Contadores dinâmicos)
 * - CTAs e animações
 */

/* ===== HERO SECTION ===== */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--gradient-dark);
}

.hero-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(26, 26, 27, 0.9) 0%, rgba(227, 29, 36, 0.7) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white-color);
  max-width: 900px;
  padding: 2rem;
  animation: fadeInUp 1s ease;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.5);
}

.hero-title .highlight {
  color: var(--primary-color);
  position: relative;
  display: inline-block;
}

.hero-title .highlight::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
  transform: skewX(-20deg);
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 400;
  margin-bottom: 2.5rem;
  opacity: 0.95;
  line-height: 1.6;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--gradient-primary);
  color: var(--white-color);
  padding: 1.2rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: none;
  text-decoration: none;
  transition: var(--transition-base);
  box-shadow: 0 8px 20px rgba(227, 29, 36, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(227, 29, 36, 0.6);
  color: var(--white-color);
}

.hero-cta i {
  font-size: 1.3rem;
  animation: pulse 2s infinite;
}

/* ===== BENTO GRID DE SERVIÇOS ===== */
.bento-grid-section {
  padding: 5rem 0;
  background: var(--accent-color);
  position: relative;
  overflow: hidden;
}

.bento-grid-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg width="40" height="40" xmlns="http://www.w3.org/2000/svg"><path d="M0 20L20 0L40 20L20 40Z" fill="rgba(227,29,36,0.02)"/></svg>');
  opacity: 0.5;
  pointer-events: none;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
  z-index: 1;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  font-family: 'Montserrat', sans-serif;
  color: var(--secondary-color);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%) skewX(-20deg);
  width: 80px;
  height: 4px;
  background: var(--gradient-primary);
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

.bento-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 2rem;
  min-height: 300px;
  transition: var(--transition-base);
  cursor: pointer;
  box-shadow: var(--shadow-md);
}

.bento-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent 0%, rgba(26, 26, 27, 0.9) 100%);
  transition: var(--transition-base);
  z-index: 0;
}

.bento-card:hover::before {
  background: linear-gradient(180deg, rgba(227, 29, 36, 0.3) 0%, rgba(26, 26, 27, 0.95) 100%);
}

.bento-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(227, 29, 36, 0.3);
}

/* Tamanhos do Bento Grid */
.bento-card-large {
  grid-column: span 6;
  min-height: 400px;
}

.bento-card-medium {
  grid-column: span 4;
  min-height: 320px;
}

.bento-card-small {
  grid-column: span 3;
  min-height: 280px;
}

.bento-card-content {
  position: relative;
  z-index: 1;
  color: var(--white-color);
}

.bento-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  display: inline-block;
  animation: fadeIn 0.6s ease;
}

.bento-title {
  font-size: 1.6rem;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.bento-description {
  font-size: 1rem;
  opacity: 0.9;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.bento-badge {
  display: inline-block;
  background: var(--gradient-primary);
  color: var(--white-color);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.5rem;
}

/* ===== MAPA NORDESTE (ÁREA DE ATUAÇÃO) ===== */
.area-atuacao-section {
  padding: 5rem 0;
  background: var(--white-color);
  position: relative;
  overflow: hidden;
}

.area-atuacao-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(227, 29, 36, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.mapa-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem;
  text-align: center;
}

.mapa-nordeste {
  width: 100%;
  max-width: 600px;
  height: auto;
  filter: drop-shadow(0 10px 30px rgba(227, 29, 36, 0.2));
  animation: float 6s ease-in-out infinite;
}

.mapa-points {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.mapa-point {
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--primary-color);
  border: 3px solid var(--white-color);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(227, 29, 36, 0.6);
  animation: pulse 2s infinite;
  cursor: pointer;
  transition: var(--transition-base);
}

.mapa-point:hover {
  transform: scale(1.3);
  box-shadow: 0 0 30px rgba(227, 29, 36, 0.9);
}

.cobertura-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 3rem;
}

.cobertura-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-color);
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-weight: 600;
  color: var(--secondary-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
}

.cobertura-item i {
  color: var(--primary-color);
  font-size: 1.2rem;
}

.cobertura-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  background: var(--white-color);
}

/* ===== SOCIAL PROOF (CONTADORES) ===== */
.stats-section {
  padding: 5rem 0;
  background: var(--gradient-dark);
  color: var(--white-color);
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><line x1="0" y1="60" x2="60" y2="0" stroke="rgba(227,29,36,0.1)" stroke-width="2" transform="rotate(20 30 30)"/></svg>');
  opacity: 0.3;
  pointer-events: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  position: relative;
  z-index: 1;
}

.stat-card {
  text-align: center;
  padding: 2rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition-base);
}

.stat-card:hover {
  transform: translateY(-10px);
  background: rgba(227, 29, 36, 0.1);
  border-color: var(--primary-color);
  box-shadow: 0 15px 40px rgba(227, 29, 36, 0.3);
}

.stat-icon {
  font-size: 3.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  display: inline-block;
  animation: bounce 2s infinite;
}

.stat-number {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  font-family: 'Montserrat', sans-serif;
  color: var(--white-color);
  margin-bottom: 0.5rem;
  line-height: 1;
}

.stat-number .counter {
  display: inline-block;
}

.stat-suffix {
  font-size: 2rem;
  color: var(--primary-color);
}

.stat-label {
  font-size: 1.1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.9;
  margin-top: 0.5rem;
}

.stat-description {
  font-size: 0.95rem;
  opacity: 0.7;
  margin-top: 0.75rem;
  line-height: 1.5;
}

/* ===== ANIMAÇÕES ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.1);
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

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

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 1200px) {
  .bento-card-large,
  .bento-card-medium {
    grid-column: span 6;
  }

  .bento-card-small {
    grid-column: span 6;
  }
}

@media (max-width: 768px) {
  .hero-section {
    height: 80vh;
    min-height: 500px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-cta {
    padding: 1rem 2rem;
    font-size: 1rem;
  }

  .bento-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .bento-card-large,
  .bento-card-medium,
  .bento-card-small {
    grid-column: span 1;
    min-height: 250px;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .mapa-container {
    padding: 2rem 1rem;
  }

  .cobertura-list {
    gap: 0.75rem;
  }

  .cobertura-item {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 2rem 1rem;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .hero-cta {
    padding: 0.9rem 1.5rem;
    font-size: 0.95rem;
  }

  .bento-card {
    padding: 1.5rem;
    min-height: 220px;
  }

  .bento-icon {
    font-size: 2.5rem;
  }

  .bento-title {
    font-size: 1.4rem;
  }
}
