:root {
  --primary: #0A2463;
  --accent: #00B4D8;
  --dark: #001A33;
  --light: #F8FAFC;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ── ACTIVE NAV ── */
.active-nav-link {
  color: var(--accent) !important;
  font-weight: 700;
}


body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: #1E293B;
}

h1,
h2,
h3,
h4 {
  font-family: 'Montserrat', sans-serif;
}

H2,
h3 {
  color: #001A33;
}

h4,
p {
  color: black;
}

.container {
  max-width: 1280px;
  margin: auto;
  padding: 0 2rem;
}

/* Header */
.header {
  position: fixed;
  width: 100%;
  background: white;
  border-bottom: 1px solid #e5e7eb;
  z-index: 10;
}

.header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, .08);
}

.header.scrolled .top-bar {
  max-height: 0;
  padding: 0;
  opacity: 0;
}

/* Top Bar */
.top-bar {
  background-color: black;
  color: white;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  max-height: 150px;
  overflow: hidden;
}

.top-bar-content {
  display: flex;
  justify-content: center;
  align-items: center;
}

.social-links a {
  color: rgba(255, 255, 255, 0.8);
  margin-right: 1.2rem;
  transition: color 0.3s;
  font-size: 1rem;
}

.social-links a:last-child {
  margin-right: 0;
}

.social-links a:hover {
  color: var(--accent);
}


.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 12%;
  position: relative;
}

.logo {
  position: static;
  padding-left: 0;
  display: flex;
  align-items: center;
}

.logo img {
  max-height: 50px;
  width: auto;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
  list-style: none;
  height: 50px;
}

.nav-menu a {
  text-decoration: none;
  color: inherit;
  font-weight: 500;
}

.nav-menu a:hover {
  color: var(--accent);
}

.nav-cta {
  position: static;
  display: inline-block;
}

/* Hamburger */
.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: var(--dark);
  transition: all 0.3s ease-in-out;
}

/* Buttons */
.btn {
  padding: .7rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn--primary {
  background: #001A33;
  color: white;
}

.btn--primary:hover {
  background: #046FBD;
  box-shadow: 0 4px 12px rgba(0, 180, 216, 0.3);
  transform: translateY(-2px);
}

.btn--white {
  background: white;
  color: var(--primary);
}

.btn--white:hover {
  background: #001A33;

  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

/* Hero */
.hero {
  background: linear-gradient(rgba(10, 86, 99, 0.15), rgba(10, 36, 99, 0.1)), url("../imagens/hero/hero.webp");
  background-size: cover;
  background-position: center;
  color: white;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 10rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  width: 100%;
}

.hero h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
  text-align: justify;
}

.highlight {
  color: #001A33;
}

.stats div {
  color: #ffff;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  align-items: center;
  padding-left: 50px;
  padding-right: 50px;
}

.stats span {
  font-size: 0.9rem;
  opacity: 0.8;
}

.stats div:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, 0.3);
}

/* Sobre Destaque (Específico) */
.sobre-destaque {
  background: var(--light);
  padding: 30px;
  padding-bottom: 0;
  border-radius: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  text-align: justify;
  overflow: hidden;
}

.sobre-destaque>div:first-child {
  padding: 2.5rem;
}

.sobre-img img {
  width: 60%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  display: block;
  margin: 0 auto;
}

.about-info-card {
  background: var(--light);
  padding: 2rem;
  border-radius: 16px;
}

.stats-highlight {
  margin-top: 1rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.stats {
  display: flex;
  gap: 0;
  margin-top: 2rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.15);
  width: fit-content;
}

.stats strong {
  font-size: 2rem;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section--light {
  background: var(--light);
}

.section--dark {
  background: var(--primary);
  color: white;
  text-align: center;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}

.card {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.05);
  padding: 2.5rem;
  border-radius: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--accent);
}

.card h3 {
  margin-bottom: 0.5rem;
}

#servicos .card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.icon-box {
  width: 100px;
  height: 100px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1rem;
}


.tech-list {
  list-style: none;
  margin-top: 1rem;
}

.tech-list li {
  margin-bottom: .8rem;
  font-size: 1.1rem;
}

/* Badges */
.badge {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 1.5rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* CTA */
.cta {
  background: linear-gradient(135deg, var(--accent), #0096C7);
  color: white;
  text-align: center;
  padding: 5rem 2rem;
  border-radius: 24px;
  margin: 7rem auto;
}

/* Portfolio */
.portfolio-item {
  text-align: left;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.portfolio-image {
  height: 200px;
  background: #e2e8f0;
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-image img {
  transform: scale(1.1);
}

.portfolio-item span {
  font-size: 0.9rem;
  color: #64748b;
}

.portfolio-arrow {
  align-self: flex-end;
  color: var(--accent);
  font-size: 1.2rem;
  transition: transform 0.3s ease;
  margin-top: auto;
}

.portfolio-item:hover .portfolio-arrow {
  transform: translateX(5px);
}

/* Portfolio Grid (4 colunas) */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  align-items: stretch;
}

/* Card CTA Portfolio */
.portfolio-cta-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  transition: transform 0.3s ease;
  overflow: hidden;
}


.portfolio-cta-card h3 {
  color: #001A33;
  font-size: 1.5rem;
  margin-bottom: 2rem;
  line-height: 1.4;
}

.portfolio-cta-card .btn {
  background: white;
  color: var(--primary);
  border: none;
}

.portfolio-cta-card .btn:hover {
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Clients */
.client-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: center;
  align-items: center;
}

.client-list span {
  font-weight: 600;
}

/* Footer */
.footer {
  background: black;
  color: white !important;
  padding: 5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 0.7fr 0.7fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer h3,
.footer h4 {
  margin-bottom: 1rem;
}

.footer h1,
.footer h2,
.footer h3,
.footer h4,
.footer p,
.footer a,
.footer span,
.footer li {
  color: white !important;
  text-align: justify;
}

.footer a {
  color: #fff;
}

.footer a:hover {
  color: var(--accent) !important;
}


.footer-links {
  list-style: none;
}

.footer-links li,
.footer-location p {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 0.8rem;
}



.map-container {
  border-radius: 16px;
  overflow: hidden;
  height: 180px;
  width: 100%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Benefícios (FAQ) */
.faq-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  align-items: start;
}

.faq-item {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.faq-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--accent);
}

.faq-item summary {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '\f107';
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--accent);
  transition: transform 0.3s;
}

.faq-item[open] summary::after {
  transform: rotate(180deg);
}

.faq-item[open] summary {
  margin-bottom: 1rem;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 1rem;
}

.faq-item p {
  color: #64748b;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Laptop & Tablet Landscape (< 992px) */
@media (max-width: 992px) {
  .nav {
    justify-content: space-between;
    padding: 1rem;
  }

  .logo {
    position: static;
  }

  .sobre-destaque {
    grid-template-columns: 1fr;
  }

  .hero-grid>div {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-grid,
  .tech-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .top-bar-content {
    flex-direction: column;
    gap: 0.5rem;
  }

  .nav-cta {
    display: none;
  }

  .hero h1 {
    font-size: 3rem;
    text-align: center;
  }

  .hero p {
    text-align: center;
    font-size: 1.15rem;
    line-height: 1.5;

  }

  .stats {
    width: 100%;
    justify-content: center;
  }

  .stats div {
    padding: 0 30px;
  }

  .stats strong {
    font-size: 1.8rem;
  }

  .stats span {
    font-size: 0.9rem;
  }

  .hamburger {
    display: block;
    z-index: 20;
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 0;
    flex-direction: column;
    background-color: white;
    width: 100%;
    height: 100vh;
    justify-content: center;
    align-items: center;
    transition: 0.3s;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  }

  .nav-menu.active {
    left: 0;
  }
}

/* Tablet Portrait (< 768px) */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
}

/* Mobile (< 576px) */
@media (max-width: 576px) {
  .container {
    padding: 0 1.25rem;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .stats div {
    padding: 0 10px;
  }

  .stats strong {
    font-size: 1.5rem;
  }

  .stats span {
    font-size: 0.85rem;
  }
}

.copyright {
  text-align: center !important;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.7;
}

/* Seção Nossos Equipamentos */
.equipamentos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  align-items: stretch;
}

/* Card de Produto */
.equipamento-card {
  background: white;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.equipamento-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--accent);
}

.equipamento-img-box {
  background: #f8fafc;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.equipamento-img-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.equipamento-card:hover .equipamento-img-box img {
  transform: scale(1.05);
}

.equipamento-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.equipamento-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.equipamento-content p {
  font-size: 0.95rem;
  color: #64748b;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.equipamento-arrow {
  align-self: flex-end;
  color: var(--accent);
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.equipamento-card:hover .equipamento-arrow {
  transform: translateX(5px);
}

/* Card CTA (4º elemento) */
.equipamento-cta-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  transition: transform 0.3s ease;
  overflow: hidden;

}

.equipamento-cta-card h3 {
  color: 001A33;
  font-size: 1.5rem;
  margin-bottom: 2rem;
  line-height: 1.4;
}

.equipamento-cta-card .btn {
  background: white;
  color: var(--primary);

}

.equipamento-cta-card .btn:hover {
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Responsividade Equipamentos */
@media (max-width: 1200px) {
  .equipamentos-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .equipamentos-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

/* CTA Teste de Água */
.cta-water {
  background: linear-gradient(120deg, var(--dark), var(--primary));
  border-radius: 24px;
  padding: 4rem 3rem;
  margin: 4rem auto;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.cta-water::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 80% 20%, rgba(0, 180, 216, 0.15), transparent 50%);
  pointer-events: none;
}

.cta-water h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: white;
}

.cta-water p {
  font-size: 1.15rem;
  max-width: 800px;
  margin: 0 auto 2.5rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
}

.cta-water .btn {
  background: var(--accent);
  color: white;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  border: none;
}

.cta-water .btn:hover {
  background: #0096C7;
  box-shadow: 0 8px 25px rgba(0, 180, 216, 0.4);
}

@media (max-width: 768px) {
  .cta-water {
    padding: 3rem 1.5rem;
  }

  .cta-water h2 {
    font-size: 2rem;
  }
}

/* Parceiros Carousel */
.partners-slider {
  overflow: hidden;
  padding: 2rem 0;
  background: white;
  white-space: nowrap;
  position: relative;
  margin-bottom: 2rem;
}

.partners-slider::before,
.partners-slider::after {
  content: "";
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.partners-slider::before {
  left: 0;
  background: linear-gradient(to right, white, transparent);
}

.partners-slider::after {
  right: 0;
  background: linear-gradient(to left, white, transparent);
}

.partners-track {
  display: inline-block;
  animation: slide-scroll 35s linear infinite;
}

.partners-track:hover {
  animation-play-state: paused;
}

.partner-item {
  display: inline-block;
  margin: 0 3rem;
  vertical-align: middle;
}

.partner-item img {
  height: 60px;
  width: auto;
  filter: grayscale(100%);
  opacity: 0.5;
  transition: all 0.3s ease;
  display: block;
}

.partner-item img:hover {
  filter: grayscale(0);
  opacity: 1;
  transform: scale(1.1);
}

.partner-item img[src*="11.webp"],
.partner-item img[src*="12.webp"] {
  height: 120px;
}

@keyframes slide-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* --- Multi-language (i18n) Settings --- */
body.lang-en-active .lang-pt {
  display: none !important;
}

body:not(.lang-en-active) .lang-en {
  display: none !important;
}

/* Language Switcher UI */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 1.5rem;
  font-weight: 500;
}

.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  color: #1E293B;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  transition: all 0.3s;
}

.lang-btn:hover {
  color: var(--accent);
}

.lang-btn.active {
  color: var(--primary);
  font-weight: 700;
  background-color: #f1f5f9;
}

@media (max-width: 992px) {
  .lang-switcher {
    margin: 1rem 0;
    justify-content: center;
  }
}

/* --- WhatsApp Floating Button --- */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 40px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 3px #999;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  background-color: #128c7e;
  transform: scale(1.1);
  color: #FFF;
}

.whatsapp-icon {
  margin-top: 0;
}

@media screen and (max-width: 768px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
    font-size: 25px;
  }
}