/* ===== VARIÁVEIS GLOBAIS ===== */
:root {
  --red: #E72127;
  --dark-blue: #1F3A5F;
  --dark-gray: #3A3F45;
  --yellow: #FFC837;
  --black: #121212;
  --white: #FFFFFF;
  --light-gray: #F8F9FC;
  --gray-bg: #F4F7FC;
  --gradient-red-yellow: linear-gradient(135deg, var(--red), var(--yellow));
  --shadow-sm: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 20px 25px -12px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s ease;
}

/* ===== RESET E BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Poppins', sans-serif;
  background-color: var(--white);
  color: var(--black);
  line-height: 1.5;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

section {
  padding: 80px 0;
}

.section-title {
  font-size: 2.4rem;
  margin-bottom: 1rem;
  text-align: center;
  color: var(--dark-blue);
}

.section-sub {
  text-align: center;
  color: var(--dark-gray);
  max-width: 700px;
  margin: 0 auto 3rem auto;
}

/* ===== TOP BAR ===== */
.top-bar {
  background: var(--dark-blue);
  color: white;
  font-size: 0.85rem;
  padding: 10px 0;
}

.top-bar-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.top-bar-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-bar-info i {
  color: var(--white);
  font-size: 1rem;
}

.top-bar-contacts {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.top-bar-contacts a {
  color: white;
  text-decoration: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.top-bar-contacts a:hover {
  color: var(--red);
}

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  z-index: 1000;
  transition: var(--transition);
  border-bottom: 1px solid rgba(0,0,0,0.03);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 12px 32px;
}

.logo img {
  height: 50px;
  width: auto;
  max-width: 180px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
  padding: 0 50px;
}

.nav-links a {
  text-decoration: none;
  font-weight: 500;
  color: var(--dark-gray);
  transition: var(--transition);
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--red);
}

.mobile-menu-btn {
  display: none;
  font-size: 1.6rem;
  background: none;
  border: none;
  color: var(--dark-blue);
  cursor: pointer;
}

/* ===== DROPDOWN DO MENU "SOBRE" ===== */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dropdown-toggle i {
  font-size: 0.75rem;
  transition: transform 0.2s ease;
}

.dropdown:hover .dropdown-toggle i,
.dropdown.active .dropdown-toggle i {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: -65px;
  background: #f8f9fc;
  min-width: 200px;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  padding: 0 1rem 0rem;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  z-index: 100;
  border: 1px solid rgba(0,0,0,0.59);
}

.dropdown:hover .dropdown-menu,
.dropdown.active .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li a {
  display: block;
  padding: 0.6rem 1.5rem;
  color: var(--dark-gray);
  text-decoration: none;
  transition: background 0.2s;
  font-size: 0.9rem;
}

.dropdown-menu li a:hover {
  background: rgba(231,33,39,0.05);
  color: var(--red);
}

/* ===== SELETOR DE IDIOMA (compatível com o JavaScript corrigido) ===== */
#languageDropdown {
  position: relative;
  margin-left: 1rem;
}

#langToggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f1f5f9;
  padding: 0.5rem 1.2rem;
  border-radius: 40px;
  text-decoration: none;
  color: var(--dark-blue);
  font-weight: 500;
  transition: var(--transition);
  border: 1px solid #e2e8f0;
  cursor: pointer;
  user-select: none;
}

#langToggle:hover {
  background: #e2e8f0;
  border-color: var(--red);
}

.currency-icon i {
  font-size: 1.1rem;
  color: var(--red);
}

#currentLangText {
  min-width: 32px;
  text-align: center;
  font-weight: 600;
}

.down-arrow {
  font-size: 0.8rem;
  transition: transform 0.2s;
  color: #64748b;
}

#languageDropdown.active .down-arrow {
  transform: rotate(180deg);
}

#langDropdownMenu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: white;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  min-width: 200px;
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition);
  border: 1px solid #eef2f6;
  z-index: 1001;
  list-style: none;
}

#langDropdownMenu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.header__currencyButton {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.2rem;
  border-radius: 14px;
  text-decoration: none;
  color: var(--dark-blue);
  font-weight: 500;
  transition: background 0.15s;
  white-space: nowrap;
  cursor: pointer;
}

.header__currencyButton i {
  font-size: 0.8rem;
  color: #94a3b8;
  opacity: 0;
}

.header__currencyButton:hover {
  background: #f1f5f9;
}

.header__currencyButton.active {
  background: #fee2e2;
  color: var(--red);
  font-weight: 600;
}

.header__currencyButton.active i {
  opacity: 1;
  color: var(--red);
}

/* ===== BOTÕES ===== */
.btn-primary {
  background: var(--red);
  color: white;
  border: none;
  padding: 12px 32px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 8px rgba(231,33,39,0.2);
  display: inline-block;
  text-decoration: none;
}
.btn-primary:hover {
  background: #c71e24;
  transform: translateY(-2px);
  box-shadow: 0 12px 20px -10px rgba(231,33,39,0.4);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--red);
  color: var(--red);
  padding: 10px 28px;
  border-radius: 40px;
  font-weight: 600;
  transition: var(--transition);
  display: inline-block;
  text-decoration: none;
}
.btn-outline:hover {
  background: var(--red);
  color: white;
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(107deg, rgba(31,58,95,0.92) 0%, rgba(0,0,0,0.7) 100%), url('../images/background.png') center/cover no-repeat;
  padding: 120px 0 140px;
  color: white;
}
.hero-content {
  max-width: 800px;
}
.hero h1 {
  font-size: 3.2rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #FFF, var(--white));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* ===== CARDS GERAIS ===== */
.card-mvv {
  background: white;
  border-radius: 28px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.03);
  height: 100%;
}
.card-mvv:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.values-list {
  list-style: none;
  margin-top: 1rem;
}
.values-list li {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}
.values-list i {
  color: var(--red);
  width: 24px;
  font-size: 1.2rem;
}

/* ===== ÁREAS DE ATUAÇÃO ===== */
.area-card {
  background: white;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.area-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}
.area-img {
  height: 200px;
  object-fit: cover;
  width: 100%;
}
.area-content {
  padding: 1.8rem;
}
.area-icon {
  font-size: 2.4rem;
  color: var(--red);
  margin-bottom: 1rem;
}
.equipment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
}
.equipment-badge {
  background: #F0F2F5;
  padding: 6px 14px;
  border-radius: 40px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--dark-blue);
}

/* ===== GRIDS ===== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}
.grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.8rem;
}
.grid-6 {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem;
}

.diff-card, .client-card, .geo-card {
  background: white;
  border-radius: 24px;
  padding: 1.5rem;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.diff-card i, .client-card i, .geo-card i {
  font-size: 2.5rem;
  color: var(--red);
  margin-bottom: 1rem;
}

/* ===== CONTATO ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.contact-info {
  background: var(--light-gray);
  padding: 2rem;
  border-radius: 32px;
}
.contact-detail {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.8rem;
  align-items: center;
}
.contact-detail i {
  font-size: 1.5rem;
  color: var(--red);
}
form input, form textarea {
  width: 100%;
  padding: 14px 20px;
  border-radius: 28px;
  border: 1px solid #e2e8f0;
  font-family: inherit;
  margin-bottom: 1rem;
  transition: var(--transition);
}
form input:focus, form textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(231,33,39,0.1);
}
.btn-submit {
  background: var(--red);
  width: 100%;
  padding: 14px;
  font-weight: 700;
  font-size: 1rem;
  color: white;
  border: none;
  border-radius: 28px;
  cursor: pointer;
}

/* ===== CARROSSEL INFINITO (PARCEIROS) ===== */
.ticker-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
  margin: 2rem 0;
}
.ticker-container {
  width: 100%;
  overflow-x: hidden;
}
.ticker-track {
  display: flex;
  gap: 1.8rem;
  animation: scrollTicker 30s linear infinite;
  width: max-content;
}
.ticker-card {
  background: white;
  border-radius: 24px;
  padding: 1.5rem 1rem;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  min-width: 200px;
  cursor: default;
  border: 2px solid #e2e8f0;
}
.ticker-card i {
  font-size: 2.5rem;
  color: var(--red);
  margin-bottom: 1rem;
  display: inline-block;
}
.ticker-card h4 {
  font-size: 1rem;
  color: var(--dark-blue);
  margin: 0;
  white-space: nowrap;
}
.ticker-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -12px rgba(0, 0, 0, 0.15);
}
@keyframes scrollTicker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ticker-wrapper:hover .ticker-track {
  animation-play-state: paused;
}

/* ===== WHATSAPP FLUTUANTE ===== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: var(--red);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  z-index: 1000;
  text-decoration: none;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  background-color: #128C7E;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* ===== FOOTER COMPLETO ===== */
.footer {
  background: var(--dark-blue);
  color: white;
  padding: 3rem 0 0;
  margin-top: 3rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo {
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--gradient-red-yellow);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 1rem;
}
.footer-logo span {
  color: white;
  background: none;
  font-weight: 700;
}
.footer-description {
  font-size: 0.85rem;
  line-height: 1.5;
  opacity: 0.8;
  margin-top: 0.5rem;
}
.footer-col h4 {
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
  color: var(--red);
  font-weight: 600;
}
.footer-links, .footer-contact {
  list-style: none;
  padding: 0;
}
.footer-links li, .footer-contact li {
  margin-bottom: 0.75rem;
}
.footer-links a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.9rem;
}
.footer-links a:hover {
  color: var(--red);
  padding-left: 5px;
}
.footer-contact li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
}
.footer-contact i {
  color: var(--red);
  margin-top: 3px;
  min-width: 20px;
}
.footer-social {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  color: white;
  font-size: 1.2rem;
  transition: var(--transition);
  text-decoration: none;
}
.footer-social a:hover {
  background: var(--red);
  transform: translateY(-3px);
}
.footer-bottom {
  text-align: center;
  padding: 1.5rem 0;
  font-size: 0.8rem;
  opacity: 0.7;
}

/* ===== ANIMAÇÃO FADE-UP ===== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.9, 0.4, 1.1), transform 0.7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 1024px) {
  .grid-3, .grid-5, .grid-6 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-2, .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
  .top-bar-wrapper {
    flex-direction: column;
    text-align: center;
  }
  .top-bar-contacts {
    justify-content: center;
  }
  .nav-container {
    padding: 12px 20px;
  }
  .logo img {
    height: 40px;
  }
  .mobile-menu-btn {
    display: block;
  }
  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    flex-direction: column;
    background: white;
    width: 100%;
    text-align: center;
    padding: 2rem 0;
    gap: 1.5rem;
    box-shadow: 0 20px 25px -12px rgba(0,0,0,0.1);
    transition: 0.3s;
  }
  .nav-links.active {
    left: 0;
  }
  /* Dropdown do menu "Sobre" no mobile */
  .dropdown {
    position: static;
  }
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: #f8f9fc;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    display: none;
    border: none;
  }
  .dropdown.active .dropdown-menu {
    display: block;
  }
  /* Seletor de idioma no mobile */
  #languageDropdown {
    margin-left: 0;
    width: 100%;
  }
  #langToggle {
    justify-content: center;
  }
  #langDropdownMenu {
    position: static;
    width: 100%;
    margin-top: 0.5rem;
    transform: none;
    box-shadow: none;
    border: 1px solid #e2e8f0;
    background: white;
  }
  .hero {
    padding: 80px 0 100px;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .section-title {
    font-size: 1.8rem;
  }
  section {
    padding: 50px 0;
  }
  .grid-3, .grid-5, .grid-6 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .ticker-card {
    padding: 1rem 1.2rem;
    min-width: 160px;
  }
  .ticker-card i {
    font-size: 1.8rem;
  }
  .ticker-card h4 {
    font-size: 0.8rem;
    white-space: normal;
  }
  .ticker-track {
    gap: 1rem;
    animation-duration: 25s;
  }
  .whatsapp-float {
    width: 50px;
    height: 50px;
    font-size: 26px;
    bottom: 20px;
    right: 20px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  .top-bar {
    font-size: 0.75rem;
  }
  .hero h1 {
    font-size: 1.6rem;
  }
  .section-title {
    font-size: 1.5rem;
  }
  .ticker-card {
    min-width: 140px;
    padding: 0.8rem 1rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-contact li {
    justify-content: center;
  }
  .footer-social {
    justify-content: center;
  }
}

/* Desktop: exibe no hover */
@media (min-width: 769px) {
    .dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

/* Mobile: esconde por padrão, exibe com classe .active */
@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        display: none;
        transform: none;
        box-shadow: none;
        background: #f8f9fc;
        margin-top: 0.5rem;
        padding-left: 1rem;
        border: none;
    }
    .dropdown.active .dropdown-menu {
        display: block;
    }
}