/**
 * Estilos Específicos da Página Serviços - IR Log Transportes
 * Arquivo: services.css
 * 
 * Contém estilos exclusivos para:
 * - Hero Section
 * - Layout em Z (alternância imagem/texto)
 * - Destaque logístico (Mudanças e Carga/Descarga)
 * - Processo de contratação
 * - Cards de serviços complementares
 */

/* ===== HERO SERVIÇOS ===== */
.hero-servicos {
  position: relative;
  height: 60vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    rgba(26, 26, 27, 0.9) 0%,
    rgba(227, 29, 36, 0.8) 50%,
    rgba(26, 26, 27, 0.9) 100%
  );
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero-servicos::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><path d="M0 50L50 0L100 50L50 100Z" fill="rgba(227,29,36,0.03)"/></svg>');
  animation: patternMove 20s linear infinite;
  pointer-events: none;
}

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

.hero-servicos-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 10px rgba(0, 0, 0, 0.5);
}

.hero-servicos-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 400;
  opacity: 0.95;
  line-height: 1.8;
  text-shadow: 1px 2px 5px rgba(0, 0, 0, 0.5);
}

/* ===== LAYOUT EM Z (ALTERNÂNCIA IMAGEM/TEXTO) ===== */
.servico-z-section {
  padding: 6rem 0;
  background: var(--white-color);
  position: relative;
}

.servico-z-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 6rem;
  position: relative;
  scroll-margin-top: 100px; /* Offset para navegação com navbar fixa */
  transition: var(--transition-base);
}

.servico-z-item:last-child {
  margin-bottom: 0;
}

/* Destaque suave ao chegar via âncora */
.servico-z-item:target {
  animation: highlightSection 2s ease-in-out;
}

@keyframes highlightSection {
  0%,
  100% {
    background: transparent;
  }
  50% {
    background: rgba(227, 29, 36, 0.05);
    border-radius: var(--radius-md);
  }
}

/* Alternância: Par (texto esquerda) / Ímpar (texto direita) */
.servico-z-item:nth-child(even) {
  direction: ltr;
}

.servico-z-item:nth-child(odd) {
  direction: rtl;
}

.servico-z-item:nth-child(odd) > * {
  direction: ltr;
}

.servico-z-content {
  padding: 2rem;
}

.servico-z-badge {
  display: inline-block;
  background: var(--gradient-primary);
  color: var(--white-color);
  padding: 0.5rem 1.25rem;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1.5rem;
}

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

.servico-z-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--gradient-primary);
  transform: skewX(-20deg);
}

.servico-z-description {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-dark);
  margin-bottom: 2rem;
}

.servico-z-features {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}

.servico-z-features li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 1.05rem;
  line-height: 1.6;
}

.servico-z-features li i {
  color: var(--primary-color);
  font-size: 1.3rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.servico-z-image-wrapper {
  position: relative;
  height: 450px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(227, 29, 36, 0.2);
  transition: var(--transition-base);
}

.servico-z-item:hover .servico-z-image-wrapper {
  transform: scale(1.02);
  box-shadow: 0 25px 70px rgba(227, 29, 36, 0.3);
}

.servico-z-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.servico-z-image-wrapper:hover .servico-z-image {
  transform: scale(1.1);
}

.servico-z-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent 0%, rgba(26, 26, 27, 0.4) 100%);
  opacity: 0;
  transition: var(--transition-base);
}

.servico-z-image-wrapper:hover .servico-z-image-overlay {
  opacity: 1;
}

/* Elemento decorativo diagonal */
.servico-z-item::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-20deg);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(227, 29, 36, 0.03) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

/* ===== DESTAQUE LOGÍSTICO (MUDANÇAS E CARGA/DESCARGA) ===== */
.destaque-logistico-section {
  padding: 6rem 0;
  background: var(--accent-color);
  position: relative;
  overflow: hidden;
}

.destaque-logistico-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;
}

.destaque-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 3rem;
  margin-top: 4rem;
}

.destaque-card {
  background: var(--white-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
  position: relative;
  scroll-margin-top: 100px; /* Offset para navegação com navbar fixa */
}

/* Destaque suave ao chegar via âncora */
.destaque-card:target {
  animation: highlightCard 2s ease-in-out;
}

@keyframes highlightCard {
  0%,
  100% {
    box-shadow: var(--shadow-md);
  }
  50% {
    box-shadow: 0 20px 60px rgba(227, 29, 36, 0.4);
    transform: scale(1.02);
  }
}

.destaque-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition-base);
}

.destaque-card:hover::before {
  transform: scaleX(1);
}

.destaque-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 20px 50px rgba(227, 29, 36, 0.25);
}

.destaque-image-container {
  position: relative;
  height: 280px;
  overflow: hidden;
}

.destaque-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.destaque-card:hover .destaque-image {
  transform: scale(1.1);
}

.destaque-selo {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--gradient-primary);
  color: var(--white-color);
  padding: 0.6rem 1.5rem;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  box-shadow: 0 4px 15px rgba(227, 29, 36, 0.4);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.destaque-content {
  padding: 2.5rem 2rem;
}

.destaque-icon {
  width: 70px;
  height: 70px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--white-color);
  margin: -21px auto 1.5rem;
  box-shadow: 0 10px 30px rgba(227, 29, 36, 0.3);
}

.destaque-title {
  font-size: 1.8rem;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  color: var(--secondary-color);
  margin-bottom: 1rem;
  text-align: center;
}

.destaque-description {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 1.5rem;
}

.destaque-features {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}

.destaque-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 1rem;
}

.destaque-features li:last-child {
  border-bottom: none;
}

.destaque-features li i {
  color: var(--primary-color);
  font-size: 1.2rem;
}

/* ===== PROCESSO DE CONTRATAÇÃO ===== */
.processo-section {
  padding: 6rem 0;
  background: var(--white-color);
  position: relative;
}

.processo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
  position: relative;
}

.processo-grid::before {
  content: '';
  position: absolute;
  top: 50px;
  left: 10%;
  right: 10%;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary-color) 0%,
    var(--primary-color) 25%,
    var(--accent-color) 25%,
    var(--accent-color) 25.1%,
    var(--primary-color) 25.1%,
    var(--primary-color) 50%,
    var(--accent-color) 50%,
    var(--accent-color) 50.1%,
    var(--primary-color) 50.1%,
    var(--primary-color) 75%,
    var(--accent-color) 75%,
    var(--accent-color) 75.1%,
    var(--primary-color) 75.1%,
    var(--primary-color) 100%
  );
  z-index: 0;
}

.processo-step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.processo-numero {
  width: 100px;
  height: 100px;
  margin: 0 auto 1.5rem;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 800;
  font-family: 'Montserrat', sans-serif;
  color: var(--white-color);
  box-shadow: 0 10px 30px rgba(227, 29, 36, 0.3);
  position: relative;
  border: 5px solid var(--white-color);
}

.processo-step:hover .processo-numero {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 15px 40px rgba(227, 29, 36, 0.5);
}

.processo-titulo {
  font-size: 1.3rem;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  color: var(--secondary-color);
  margin-bottom: 0.75rem;
}

.processo-descricao {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ===== CTA SERVIÇOS ===== */
.cta-servicos-section {
  padding: 5rem 0;
  background: var(--gradient-dark);
  color: var(--white-color);
  position: relative;
  overflow: hidden;
}

.cta-servicos-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg width="80" height="80" xmlns="http://www.w3.org/2000/svg"><circle cx="40" cy="40" r="30" stroke="rgba(227,29,36,0.1)" stroke-width="2" fill="none"/></svg>');
  opacity: 0.3;
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

/* ===== ANIMAÇÕES ===== */
@keyframes patternMove {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 100px 100px;
  }
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 992px) {
  .servico-z-item {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: 4rem;
  }

  .servico-z-item:nth-child(odd),
  .servico-z-item:nth-child(even) {
    direction: ltr;
  }

  .servico-z-image-wrapper {
    height: 350px;
  }

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

  .processo-grid::before {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero-servicos {
    height: 50vh;
    min-height: 350px;
  }

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

  .servico-z-section,
  .destaque-logistico-section,
  .processo-section,
  .cta-servicos-section {
    padding: 4rem 0;
  }

  .servico-z-content {
    padding: 1rem;
  }

  .servico-z-image-wrapper {
    height: 300px;
  }

  .servico-z-features li {
    font-size: 0.95rem;
  }

  .destaque-image-container {
    height: 220px;
  }

  .destaque-content {
    padding: 2rem 1.5rem;
  }

  .processo-numero {
    width: 80px;
    height: 80px;
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-servicos {
    height: 40vh;
    min-height: 300px;
  }

  .servico-z-item {
    margin-bottom: 3rem;
  }

  .servico-z-title {
    font-size: 1.75rem;
  }

  .servico-z-description {
    font-size: 1rem;
  }

  .destaque-selo {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
  }

  .processo-step {
    margin-bottom: 2rem;
  }
}
