:root {
  --primary-color: #333;
  --accent-color: #4a5a5b; /* azul */
  --light-color: #f4f8fb;
  --dark-color: #1a1a1a;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  background: white;
  color: var(--dark-color);
  overflow-x: hidden;
}

body.purewater {
  --accent-color: #007BFF; /* azul */
}

body.logistics {
  --accent-color: #D60000; /* vermelho */
}

body.distribution {
  --accent-color: #753BA4; /* roxo */
}

body.wallprint {
  --accent-color: #AED499; /* verde */
}

body h2 {
  color: var(--accent-color);
}

h2::after {
  background: var(--accent-color);
}


header, section, footer {
  padding: 3em 1em;
  animation: fadeIn 1s ease-in-out;
}

h1, h2, h3 {
  color: var(--primary-color);
  margin-bottom: 0.5em;
  position: relative;
}

h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent-color);
  margin: 0.5em 0 1em;
  transition: var(--transition);
}

h2:hover::after {
  width: 100px;
}

.banner {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.banner iframe {
  width: 100%;
  height: 480px;
  border: none;
  border-radius: 10px;
  margin-top: 1em;
  transition: var(--transition);
}

.banner iframe:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.section {
  background-color: var(--light-color);
  margin: 2em auto;
  padding: 2em;
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.section:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.content { 
  max-width: 960px; 
  margin: auto; 
}

ul { 
  padding-left: 1.5em; 
  margin: 1em 0;
}

li {
  margin-bottom: 0.5em;
  transition: var(--transition);
}

li:hover {
  transform: translateX(5px);
}

iframe.map {
  width: 100%;
  height: 300px;
  border: none;
  border-radius: 10px;
  margin-top: 1em;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

iframe.map:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

footer {
  background: var(--primary-color);
  color: white;
  text-align: center;
  padding: 2em;
  margin-top: 2em;
}

nav {
  background: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1em 2em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  flex-wrap: nowrap; /* Add this to prevent wrapping */
  white-space: nowrap; /* Add this to prevent text wrapping */
}

nav .logo {
  display: flex;
  align-items: center;
  min-width: max-content; /* Prevent logo from shrinking */
}

nav .logo img {
  height: 50px;
  transition: var(--transition);
}

nav .logo:hover img {
  transform: scale(1.05);
}

nav ul {
  display: flex;
  gap: 1.5em;
  list-style: none;
  margin-right: 20px; /* Push menu to the right */
  flex-wrap: nowrap; /* Prevent menu items from wrapping */
  overflow-x: auto; /* Allow horizontal scrolling if needed */
  padding: 0.5em 0; /* Add some padding */
  min-width: 410px;
}

nav li {
  white-space: nowrap; /* Prevent text wrapping in menu items */
}

nav a {
  text-decoration: none;
  color: var(--dark-color);
  font-weight: bold;
  transition: var(--transition);
  padding: 0.5em 0;
  position: relative;
}

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

nav a:hover {
  color: var(--primary-color);
}

nav a:hover::after {
  width: 100%;
}

/* Define cores específicas para cada item do menu baseado no href */
nav ul li a[href*="purewater.html"]:hover,
nav ul li a[href*="purewater.html"]:focus,
nav ul li a[href*="purewater.html"].active {
  color: #007BFF; /* azul */
}

nav ul li a[href*="logistics.html"]:hover,
nav ul li a[href*="logistics.html"]:focus,
nav ul li a[href*="logistics.html"].active {
  color: #D60000; /* vermelho */
}

nav ul li a[href*="distribution.html"]:hover,
nav ul li a[href*="distribution.html"]:focus,
nav ul li a[href*="distribution.html"].active {
  color: #753BA4; /* roxo */
}

nav ul li a[href*="wallprint.html"]:hover,
nav ul li a[href*="wallprint.html"]:focus,
nav ul li a[href*="wallprint.html"].active {
  color: #8ccc69; /* verde */
}

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

nav ul li a:hover,
nav ul li a:focus,
nav ul li a.active {
  color: var(--accent-color);
}

/* Remove the burger menu completely for desktop */
.burger {
  display: none; /* Hidden by default */
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
}

.burger div {
  width: 25px;
  height: 3px;
  background-color: var(--dark-color);
  transition: var(--transition);
}

.burger.active div:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger.active div:nth-child(2) {
  opacity: 0;
}

.burger.active div:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Logo grid on homepage */
.logo-container {
  max-width: 960px;
  margin: 2em auto;
  text-align: center;
}

.main-logo {
  margin: 2em 0;
  transition: var(--transition);
  display: block;
}

.main-logo img {
  max-width: 300px;
  height: auto;
}

.subsidiary-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2em;
  margin-top: 2em;
}

.subsidiary-logos a {
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition);
}

.subsidiary-logos img {
  max-width: 100%;
  height: auto;
  max-height: 100px;
  transition: var(--transition);
}

.main-logo:hover, .subsidiary-logos a:hover {
  transform: scale(1.05);
}

/* PureWater Solutions Grid */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2em;
  margin: 2em 0;
}

.solution-card {
  background: white;
  border-radius: 10px;
  padding: 1.5em;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.solution-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.solution-card img {
  width: auto;
  height: 300px;
  border-radius: 8px;
  margin: 1em 0;
  object-fit: cover;
  max-height: 200px;
}

.solution-card h3 {
  color: var(--primary-color);
  margin-bottom: 0.5em;
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  margin: 1em 0;
  border-radius: 8px;
  overflow: hidden;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

@media (max-width: 768px) {
  .solutions-grid {
    grid-template-columns: 1fr;
  }
  
  .solution-card {
    padding: 1em;
  }

  .main-logo img {
    max-width: 200px;
  }
  
  .subsidiary-logos {
    grid-template-columns: repeat(2, 1fr);
    gap: 1em;
  }

  nav {
    padding: 1em;
  }
  
  /* Hide regular menu on mobile */
  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    padding: 1em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }
  
  /* Show menu when active */
  nav ul.active {
    display: flex;
  }
  
  /* Show burger menu on mobile */
  .burger {
    display: flex;
  }
  
  /* Adjust other mobile styles */
  .banner iframe {
    height: 250px;
  }
  
  .section {
    padding: 1.5em;
  }
  
  h2 {
    font-size: 1.5em;
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Pulse animation for CTAs */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.pulse {
  animation: pulse 2s infinite;
}

/* Button styles */
.btn {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 0.8em 1.5em;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: var(--transition);
  border: 2px solid var(--primary-color);
  margin-top: 1em;
}

.btn:hover {
  background: transparent;
  color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

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