@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Manrope:wght@600;700;800&display=swap');

:root {
  /* Cores Principais - Sobriedade Industrial */
  --primary-900: #0E292F;
  --primary-800: #173943;
  --primary-600: #355E68;
  
  /* Cores de Destaque - Dourado Industrial */
  --accent-500: #C59A28;
  --accent-600: #A97D18;
  
  /* Cores Neutras */
  --neutral-950: #11181B;
  --neutral-700: #536268;
  --neutral-300: #D1DCDE;
  --neutral-150: #E9F0F1;
  --neutral-100: #F5F7F7;
  --white: #FFFFFF;

  /* Fontes */
  --font-sans: 'Inter', sans-serif;
  --font-heading: 'Manrope', sans-serif;

  /* Efeitos */
  --shadow-sm: 0 1px 2px 0 rgba(14, 41, 47, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(14, 41, 47, 0.1), 0 2px 4px -1px rgba(14, 41, 47, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(14, 41, 47, 0.1), 0 4px 6px -2px rgba(14, 41, 47, 0.05);
}

html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  color: var(--neutral-700);
  background-color: var(--neutral-100);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary-900);
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

/* Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.text-center { text-align: center; }
.text-white { color: var(--white); }
.text-accent { color: var(--accent-500); }

.bg-primary { background-color: var(--primary-900); }
.bg-white { background-color: var(--white); }
.bg-neutral { background-color: var(--neutral-150); }

/* Header - Fundo Claro */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--white);
  transition: all 0.3s ease;
  padding: 15px 0;
  border-bottom: 1px solid var(--neutral-300);
  border-top: 3px solid var(--accent-500); /* Linha dourada superior */
}

header.scrolled {
  box-shadow: var(--shadow-md);
  padding: 10px 0;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 30px;
}

.logo img {
  height: 65px; /* LOGO MAIOR AQUI */
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: var(--primary-900);
  font-weight: 600;
  font-size: 15px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-500);
}

.btn-header {
  white-space: nowrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 14px;
  padding: 14px 28px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background-color: var(--accent-500);
  color: var(--primary-900); /* Texto em azul petróleo escuro da marca */
}

.btn-primary:hover {
  background-color: var(--accent-600);
  color: var(--white);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}

.btn-outline:hover {
  background-color: var(--white);
  color: var(--primary-900);
}

/* Hero Section com Imagem Única e Transparência Verde */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-color: #081518;
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../img/silo-composite.jpg') center/contain no-repeat;
  background-color: #0b1417; /* Cor escura idêntica ao fundo da imagem para complementar margens */
  z-index: 0;
}

/* Camada de transparência/overlay verde escuro para leitura do texto e efeito FEA */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(14, 41, 47, 0.82); /* Overlay verde transparente premium da marca */
  z-index: 1;
}

/* Particles passa a ser z-index 2 */
#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  margin-top: 60px; /* Desloca o texto um pouco para baixo */
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  color: var(--white);
  text-shadow: 2px 2px 10px rgba(0,0,0,0.5); /* Destaca mais o texto */
}

.hero p {
  font-size: 1.25rem;
  color: var(--neutral-150);
  margin-bottom: 40px;
  max-width: 600px;
  text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}

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

/* Seções */
section {
  padding: 100px 0;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 1.2rem;
  margin: 0 auto 60px;
  max-width: 800px;
}

/* Grid de Projetos / Serviços */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

/* Cards */
.card {
  background-color: var(--white);
  border: 1px solid var(--neutral-300);
  border-radius: 8px;
  padding: 35px 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.project-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-500) !important;
}

.project-card h3 {
  transition: color 0.3s ease;
}

.project-card:hover h3 {
  color: var(--accent-500);
}

.project-card-link-text {
  margin-top: auto;
  padding-top: 15px;
  font-weight: 600;
  color: var(--primary-600);
  font-size: 0.95rem;
  transition: color 0.3s ease, transform 0.3s ease;
  display: inline-block;
}

.project-card:hover .project-card-link-text {
  color: var(--accent-600);
  transform: translateX(4px);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-600);
}

.card h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
}

.card p {
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Engineer Profile */
.engineer-profile {
  text-align: center;
  background-color: var(--white);
  padding: 30px;
  border-radius: 8px;
  border: 1px solid var(--neutral-300);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.engineer-profile:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-500);
}

.engineer-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  margin: 0 auto 20px;
  border: 3px solid var(--accent-500);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.engineer-profile:hover .engineer-photo {
  transform: scale(1.05);
  border-color: var(--primary-700);
}

.engineer-profile h4 {
  font-size: 1.2rem;
  color: var(--primary-900);
  margin-bottom: 5px;
  transition: color 0.3s ease;
}

.engineer-profile:hover h4 {
  color: var(--primary-800);
}

.engineer-profile span {
  display: block;
  font-size: 0.9rem;
  color: var(--accent-600);
  font-weight: 600;
  margin-bottom: 15px;
  transition: color 0.3s ease;
}

.engineer-profile:hover span {
  color: var(--accent-500);
}

.engineer-profile p {
  font-size: 0.9rem;
  text-align: justify;
  line-height: 1.6;
  color: var(--neutral-700);
  transition: color 0.3s ease;
}

.engineer-profile:hover p {
  color: var(--neutral-900);
}

/* Forms */
.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--primary-900);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid var(--neutral-300);
  border-radius: 4px;
  background-color: var(--neutral-150);
  font-family: var(--font-sans);
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-500);
}

/* Footer */
footer {
  background-color: var(--primary-900);
  color: var(--neutral-300);
  padding: 80px 0 40px;
  border-top: 4px solid var(--accent-500); /* Linha divisória dourada */
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-title {
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 25px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 15px;
  white-space: nowrap;
}

.footer-links a:hover {
  color: var(--accent-500);
}

.footer-bottom {
  border-top: 1px solid var(--primary-800);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}

/* Seção de Métricas */
#metricas {
  background-color: #173943;
  padding: 100px 0;
  border-bottom: 4px solid var(--accent-500);
  position: relative;
  z-index: 10;
}

.metric-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 20px 0;
  border-bottom: 1px solid #355E68;
}

.metric-row:last-child {
  border-bottom: none;
}

.metrics-list-col .metric-number {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--accent-500); /* Dourado */
  line-height: 1.1;
  white-space: nowrap;
  margin-bottom: 0;
}

.metrics-list-col .metric-label {
  font-size: 1.05rem;
  color: var(--neutral-300); /* Cinza claro */
  line-height: 1.4;
}

/* Preview do Portfólio PDF */
.portfolio-preview {
  display: inline-block;
  max-width: 420px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--neutral-300);
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-preview:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow-lg);
}

/* Biblioteca de Imagens / Carrossel */
.metrics-carousel {
  position: relative;
  width: 100%;
  height: 400px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--primary-600);
}

.carousel-track {
  width: 100%;
  height: 100%;
  position: relative;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: var(--primary-900);
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-slide.active {
  opacity: 1;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.carousel-badge {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background-color: rgba(14, 41, 47, 0.85);
  color: var(--white);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-heading);
  border: 1px solid var(--accent-500);
  z-index: 10;
}

.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(14, 41, 47, 0.7);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  line-height: 1;
}

.carousel-nav-btn:hover {
  background-color: var(--accent-500);
  color: var(--primary-900);
  border-color: var(--accent-500);
}

.carousel-nav-btn.prev {
  left: 20px;
}

.carousel-nav-btn.next {
  right: 20px;
}

/* Mobile */
@media (max-width: 991px) {
  .hero h1 { font-size: 2.5rem; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  
  .metrics-list-col .metric-number {
    font-size: 2.4rem;
  }
  .metrics-carousel {
    height: 300px;
  }
  .metric-card:last-child {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; }
  .hero-bg-wrapper { flex-direction: column; }
  .hero-bg-left, .hero-bg-right { width: 100%; height: 50%; }
}

@media (max-width: 576px) {
  .metrics-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .metric-card:last-child {
    grid-column: span 1;
  }
  .btn-header {
    display: none !important;
  }
}

/* Botão Flutuante do WhatsApp */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: var(--white);
  border-radius: 50%;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background-color: #20ba5a;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-float svg {
  display: block;
}
