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

:root {
  /* Harmonização com a logo do PDF: Azul Escuro e Branco */
  --primary-navy: #051C3D;
  --secondary-navy: #0B3061;
  --accent-blue: #3E8EDE; /* Para detalhes e links */
  --accent-light: #8CBDEF;
  --text-light: #E0E7FF;
  --text-dark: #1A202C;
  --bg-dark: #031024;
  --bg-light: #F4F7FB;
  --white: #FFFFFF;
  --glass-bg: rgba(5, 28, 61, 0.85);
  --glass-border: rgba(255, 255, 255, 0.1);
  --transition: all 0.3s ease-in-out;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--primary-navy);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--white);
  font-weight: 700;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 50%;
  height: 3px;
  background-color: var(--white);
}

p {
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: var(--accent-blue);
  transition: var(--transition);
}

a:hover {
  color: var(--accent-light);
}

.highlight {
  color: var(--accent-light);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--white);
  color: var(--primary-navy);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--white);
  border-color: var(--white);
}

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

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

/* Section Styling */
section {
  padding: 6rem 10%;
  position: relative;
}

.bg-light-section {
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.bg-light-section h2, 
.bg-light-section h3,
.bg-light-section h4 {
  color: var(--primary-navy);
}

.bg-light-section h2::after {
  background-color: var(--primary-navy);
}

.bg-light-section .highlight {
  color: var(--accent-blue);
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 0.8rem 10%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: var(--transition);
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
}

header.scrolled {
  padding: 0.3rem 10%;
  background: rgba(5, 28, 61, 0.98);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.logo img {
  height: 60px;
  width: auto;
  object-fit: contain;
  transition: var(--transition);
}

header.scrolled .logo img {
  height: 45px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links li a {
  color: var(--white);
  font-weight: 500;
  position: relative;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--white);
  transition: var(--transition);
}

.nav-links li a:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  color: var(--white);
  cursor: pointer;
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 10%;
  background: linear-gradient(rgba(5, 28, 61, 0.85), rgba(3, 16, 36, 0.95)), url('../img/hero_bg.png') center/cover no-repeat;
  position: relative;
}

.hero-content {
  max-width: 800px;
  animation: fadeInUp 1s ease-out;
}

.hero h1 {
  font-size: 4rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--text-light);
  max-width: 600px;
}

.hero-badges {
  display: flex;
  gap: 15px;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.badge {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  color: var(--white);
}

/* About Section */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-img-wrapper {
  position: relative;
}

.about-img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  transition: var(--transition);
}

.about-img-wrapper::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100%;
  height: 100%;
  border: 3px solid var(--primary-navy);
  border-radius: 10px;
  z-index: -1;
}

.about-text p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

/* Specialties Section */
.specialties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.specialty-card {
  background: var(--secondary-navy);
  padding: 2rem;
  border-radius: 10px;
  transition: var(--transition);
  border: 1px solid var(--glass-border);
  position: relative;
  overflow: hidden;
}

.specialty-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--white);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.3s ease;
}

.specialty-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  background: #0D3A75;
}

.specialty-card:hover::before {
  transform: scaleY(1);
}

.specialty-icon {
  font-size: 2.5rem;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.specialty-card h3 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.specialty-card p {
  color: var(--text-light);
}

/* Gestão e Tecnologia Section */
.management {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.tech-list {
  list-style: none;
  margin-top: 2rem;
}

.tech-list li {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
}

.tech-list li i {
  color: var(--primary-navy);
}

.management-boxes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.m-box {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  text-align: center;
  border-bottom: 3px solid var(--primary-navy);
}

.m-box h4 {
  color: var(--primary-navy);
  margin-bottom: 0.5rem;
}

/* Seguranca Section */
.security-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.nr-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 2rem 0;
}

.nr-badge {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--white);
  color: var(--white);
  padding: 8px 20px;
  border-radius: 4px;
  font-weight: 600;
}

.zero-acidentes {
  display: inline-block;
  background: #10B981; /* Green */
  color: white;
  padding: 10px 25px;
  border-radius: 30px;
  font-weight: bold;
  font-size: 1.2rem;
  margin-top: 1rem;
  box-shadow: 0 5px 15px rgba(16, 185, 129, 0.4);
}

/* Stats Section */
.stats-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 2rem;
  text-align: center;
  margin-top: 4rem;
}

.stat-item h3 {
  font-size: 3.5rem;
  color: var(--white);
  margin-bottom: 0.5rem;
  font-weight: 800;
}

.stat-item p {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Portfolio Section */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.client-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.client-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}


.client-card h4 {
  color: var(--primary-navy);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.client-card p {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.client-card .location {
  color: var(--accent-blue);
  font-weight: 500;
}

/* Contact/Footer Section */
.contact-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info h3 {
  margin-bottom: 1.5rem;
}

.contact-person {
  margin-bottom: 2rem;
  background: var(--secondary-navy);
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--white);
}

.contact-person h4 {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.contact-person p {
  margin-bottom: 0.5rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-person a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #25D366; /* WhatsApp Green */
  font-weight: 600;
  margin-top: 0.5rem;
}

footer {
  background: var(--bg-dark);
  text-align: center;
  padding: 2rem;
  border-top: 1px solid var(--glass-border);
}

footer p {
  margin: 0;
  color: var(--text-light);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
  .hero h1 { font-size: 3rem; }
  .about, .management, .contact-section { grid-template-columns: 1fr; }
  .about-img-wrapper { margin-top: 2rem; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background: var(--secondary-navy);
    flex-direction: column;
    padding: 5rem 2rem;
    transition: 0.4s ease;
    box-shadow: -5px 0 15px rgba(0,0,0,0.5);
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .mobile-menu-btn {
    display: block;
    z-index: 1001;
  }
  
  .hero { 
    padding-top: 120px; 
    height: auto;
    min-height: 100vh;
  }
  .hero h1 { font-size: 2.5rem; }
  section { padding: 4rem 5%; }
}

/* Lightbox CSS */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.gallery-item {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item-wrapper {
  position: relative;
  height: 250px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  cursor: pointer;
}

.gallery-item-wrapper:hover .gallery-item {
  transform: scale(1.05);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 10px;
  background: rgba(5, 28, 61, 0.8);
  color: var(--white);
  text-align: center;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 16, 36, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 2rem;
  cursor: pointer;
}
