/**
 * Estilos Específicos da Página Sobre - IR Log Transportes
 * Arquivo: about.css
 * 
 * Contém estilos exclusivos para:
 * - Hero Section com parallax
 * - Layout institucional
 * - Cards flutuantes de valores
 * - Timeline da empresa
 * - Equipe
 */

/* ===== HERO SOBRE ===== */
.hero-sobre {
  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-sobre::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-sobre-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white-color);
  max-width: 800px;
  padding: 2rem;
}

.hero-sobre-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-sobre-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);
}

/* ===== SEÇÃO INSTITUCIONAL ===== */
.about-institucional-section {
  padding: 6rem 0;
  background: var(--white-color);
  position: relative;
  overflow: hidden;
}

.about-institucional-section::before {
  content: '';
  position: absolute;
  bottom: -50%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(227, 29, 36, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

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

.about-text h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 80px;
  height: 4px;
  background: var(--gradient-primary);
  transform: skewX(-20deg);
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}

.about-text .lead-text {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 2rem;
}

.about-image-wrapper {
  position: relative;
  height: 500px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

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

.about-image-wrapper:hover .about-image {
  transform: scale(1.05);
}

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

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

/* Parallax effect */
.about-image-parallax {
  position: absolute;
  top: 20px;
  right: -20px;
  width: 200px;
  height: 200px;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  opacity: 0.1;
  z-index: -1;
  transform: rotate(20deg);
}

/* ===== VALORES DA EMPRESA (CARDS FLUTUANTES) ===== */
.valores-section {
  padding: 6rem 0;
  background: var(--accent-color);
  position: relative;
  overflow: hidden;
}

.valores-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 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.05)" stroke-width="2" transform="rotate(20 30 30)"/></svg>');
  opacity: 0.5;
  pointer-events: none;
}

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

.valor-card {
  background: var(--white-color);
  border-radius: var(--radius-md);
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

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

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

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

.valor-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--white-color);
  box-shadow: 0 8px 20px rgba(227, 29, 36, 0.3);
  transition: var(--transition-base);
}

.valor-card:hover .valor-icon {
  transform: rotateY(360deg);
  box-shadow: 0 12px 30px rgba(227, 29, 36, 0.5);
}

.valor-title {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.valor-description {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
}

/* ===== TIMELINE (HISTÓRIA) ===== */
.timeline-section {
  padding: 6rem 0;
  background: var(--white-color);
  position: relative;
}

.timeline {
  position: relative;
  max-width: 1000px;
  margin: 4rem auto 0;
  padding: 0 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background: var(--gradient-primary);
}

.timeline-item {
  position: relative;
  margin-bottom: 4rem;
  display: flex;
  align-items: center;
}

.timeline-item:nth-child(odd) {
  flex-direction: row;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-content {
  flex: 1;
  background: var(--accent-color);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
  position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-right: 2rem;
  text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: 2rem;
  text-align: left;
}

.timeline-content:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}

.timeline-year {
  font-size: 2rem;
  font-weight: 800;
  font-family: 'Montserrat', sans-serif;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.timeline-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 0.75rem;
}

.timeline-description {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-dark);
}

.timeline-marker {
  width: 30px;
  height: 30px;
  background: var(--primary-color);
  border: 5px solid var(--white-color);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--accent-color);
  flex-shrink: 0;
  z-index: 1;
}

/* ===== EQUIPE (OPCIONAL) ===== */
.equipe-section {
  padding: 6rem 0;
  background: var(--accent-color);
}

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

.equipe-card {
  background: var(--white-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
}

.equipe-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.equipe-foto {
  width: 100%;
  height: 300px;
  object-fit: cover;
  background: var(--accent-color);
}

.equipe-info {
  padding: 1.5rem;
  text-align: center;
}

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

.equipe-cargo {
  font-size: 1rem;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 1rem;
}

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

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

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 992px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-image-wrapper {
    height: 400px;
  }

  .timeline::before {
    left: 30px;
  }

  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    flex-direction: row;
  }

  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    margin-left: 3rem;
    margin-right: 0;
    text-align: left;
  }
}

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

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

  .about-institucional-section,
  .valores-section,
  .timeline-section,
  .equipe-section {
    padding: 4rem 0;
  }

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

  .timeline {
    padding: 0 1rem;
  }

  .timeline-item {
    margin-bottom: 3rem;
  }

  .timeline-content {
    padding: 1.5rem;
  }

  .timeline-year {
    font-size: 1.5rem;
  }

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

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

  .valor-card {
    padding: 2rem 1.5rem;
  }

  .valor-icon {
    width: 60px;
    height: 60px;
    font-size: 2rem;
  }

  .timeline-marker {
    width: 20px;
    height: 20px;
    border-width: 3px;
  }
}
