/* RESET BÁSICO */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* CSS Variables */
:root {
  --primary-color: #1D2B45;
  --background-color: #fff;
  --font-primary: 'Nunito Sans', sans-serif;
  --font-logo: 'Montserrat', sans-serif;
}

/* ESTILOS GLOBAIS */
body {
  font-family: var(--font-primary);
  background-color: var(--background-color);
  color: var(--primary-color);
  line-height: 1.5;
}

/* CONTAINER PADRÃO */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* HEADER */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--background-color);
  z-index: 999;
}
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

/* Lado Esquerdo: Logo e Menu */
.nav-left {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-logo .logo {
  width: 100px;
  height: auto;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary-color);
  display: none;
  cursor: pointer;
  margin-right: 1rem;
}

/* Menu principal */
.nav-menu ul {
  list-style: none;
  display: flex;
  align-items: center;
}
.nav-menu ul li {
  position: relative;
  margin-right: 1.5rem;
  cursor: pointer;
}
.nav-menu ul li button {
  background: none;
  border: none;
  color: var(--primary-color);
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  font-family: inherit;
  font-size: inherit;
  text-decoration: none;
}
.nav-menu ul li button:hover {
  color: var(--primary-color);
}

/* Ícone de seta */
.arrow-icon {
  display: inline-block;
  font-size: 1rem;
  width: 1em;
  height: 1em;
  text-align: center;
  margin-left: 0.3rem;
  transition: transform 0.3s ease;
  transform-origin: center bottom;
}
.has-submenu.active button .arrow-icon {
  transform: rotate(180deg);
}

/* Lado Direito: Botões de Contato (Redes Sociais) */
.nav-right {
  display: flex;
  align-items: center;
}
.nav-right .contact-button {
  color: var(--primary-color);
  text-decoration: none;
  margin-left: 1rem;
  display: flex;
  align-items: center;
  font-size: 1.2rem;
  transition: color 0.3s;
}
.nav-right .contact-button:hover {
  color: var(--primary-color);
}

/* Mega Menu */
.mega-menu {
  position: fixed;
  top: 60px;
  left: 0;
  width: 100%;
  max-height: 0;
  background-color: var(--background-color);
  overflow: hidden;
  transition: max-height 0.6s ease;
  padding: 0 2rem;
  z-index: 9999;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) #f1f1f1;
}
.has-submenu.active .mega-menu {
  max-height: 80vh;
  padding: 2rem;
  overflow-y: auto;
}
.mega-menu::-webkit-scrollbar {
  width: 8px;
}
.mega-menu::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}
.mega-menu::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 10px;
}
.mega-menu::-webkit-scrollbar-thumb:hover {
  background: #555;
}
.mega-menu h2,
.mega-menu p,
.mega-menu ul li,
.mega-menu h3,
.mega-menu h4 {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease 0.2s, transform 0.5s ease 0.2s;
}
.has-submenu.active .mega-menu h2,
.has-submenu.active .mega-menu p,
.has-submenu.active .mega-menu ul li,
.has-submenu.active .mega-menu h3,
.has-submenu.active .mega-menu h4 {
  opacity: 1;
  transform: translateY(0);
}

/* Marca C&Cont */
.brand-name {
  color: var(--primary-color);
  font-weight: 700;
}
.mega-menu h2 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}
.mega-menu h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}
.mega-menu h4 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.mega-menu p {
  margin-bottom: 1.2rem;
  color: var(--primary-color);
  line-height: 1.6;
  font-size: 1rem;
  text-align: left;
}

/* Missão, Visão, Valores */
.mission-vision-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}
.box-card {
  background-color: #fff;
  border: 1px solid var(--primary-color);
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  margin-bottom: 1rem;
}
.box-card h4 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-size: 1rem;
  text-transform: uppercase;
}
.box-card p {
  margin: 0;
  line-height: 1.6;
  color: var(--primary-color);
  font-size: 0.95rem;
  text-align: left;
}
.valores-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2rem;
  margin-top: 1rem;
}
.valor-item {
  align-self: start;
}
.valor-item strong {
  display: block !important;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}
.valor-item p {
  margin: 0;
  line-height: 1.4;
  font-size: 0.95rem;
  color: var(--primary-color);
  text-align: left;
}

/* Áreas de Atuação */
.areas-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}
.area-card {
  background-color: #fff;
  border: 1px solid var(--primary-color);
  border-radius: 10px;
  padding: 1rem;
  text-align: left;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.area-card p {
  margin: 0;
  line-height: 1.4;
  font-size: 0.95rem;
  color: var(--primary-color);
  text-align: left;
}

/* Contato */
.contact-details {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1rem;
}
.contact-details li {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

/* HERO */
.hero {
  background-color: var(--background-color);
  margin-top: 60px;
  padding: 4rem 0;
}
.hero-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}
.hero-text {
  flex: 1;
  margin-right: 2rem;
  max-width: 600px;
}
.hero-text h1 {
  font-size: 1.2rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  text-align: left;
  white-space: nowrap;
  overflow: visible;
}

/* Animação fade-in */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero-fadein {
  opacity: 0;
  animation: fadeIn 1.2s forwards;
}

/* SEÇÃO NOSSOS SERVIÇOS (SLIDER) */
.servicos-section {
  margin-top: 2rem;
  padding: 1.5rem 0;
  text-align: center;
  background-color: #f0f0f0;
}
.servicos-titulo {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
  text-transform: uppercase;
  font-weight: bold;
  border-bottom: 3px solid var(--primary-color);
  display: inline-block;
  padding-bottom: 0.5rem;
}

/* Slider com animação horizontal */
.servicos-slider {
  position: relative;
  overflow: hidden;
  margin-top: 2rem;
}
.slides-wrapper {
  display: flex;
  transition: transform 0.6s ease;
  width: 100%;
}
.slide {
  flex: 0 0 100%;
  box-sizing: border-box;
  padding: 1rem;
}
.slide h3 {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: var(--primary-color);
}

/* Container dos cartões */
.cards-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  align-items: stretch;
}

/* Estilo de cada cartão (caixas de slides) */
.card-servico {
  background-color: #fff;
  border: none;
  border-radius: 15px;
  width: 350px;
  padding: 1.5rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.card-servico:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}
.card-servico h4 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}
.card-subtitle {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 1rem;
  font-weight: 400;
}
.card-label {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.card-servico ul {
  list-style: disc inside;
  padding-left: 1rem;
  margin-bottom: 1rem;
}
.card-servico ul li {
  margin-bottom: 0.3rem;
  font-size: 0.95rem;
}
.btn-contratar {
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  cursor: pointer;
  margin-top: auto;
}
.btn-contratar:hover {
  opacity: 0.9;
}

/* Dots (bolinhas) para indicar slide atual */
.dots {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}
.dot {
  width: 10px;
  height: 10px;
  background-color: #ccc;
  border-radius: 50%;
  margin: 0 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}
.dot.active {
  background-color: var(--primary-color);
}

/* RESPONSIVIDADE Geral */
@media (max-width: 992px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
  }
  .hero-text {
    margin-right: 0;
    margin-bottom: 2rem;
    white-space: normal;
  }
  .hero-text h1 {
    text-align: left;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    flex-direction: column;
  }
  .nav-menu.active {
    display: flex;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .nav-menu ul {
    flex-direction: column;
  }
  .nav-menu ul li {
    margin: 1rem 0;
  }
  .mega-menu {
    position: static;
    max-height: 0;
    box-shadow: none;
    padding: 0 2rem;
  }
  .has-submenu.active .mega-menu {
    max-height: 80vh;
    overflow-y: auto;
    padding: 1rem 0;
  }
  .cards-container {
    flex-direction: column;
    align-items: center;
  }
  .card-servico {
    width: 100%;
    max-width: 350px;
  }
}

/* Ajustes extras para telas muito pequenas */
@media (max-width: 576px) {
  .hero {
    padding: 2rem 0;
  }
  .hero-text h1 {
    font-size: 1rem;
    line-height: 1.4;
    text-align: center;
  }
  .servicos-titulo {
    font-size: 1.8rem;
  }
  .card-servico {
    padding: 1rem;
  }
  .card-servico h4 {
    font-size: 1.2rem;
  }
  .card-subtitle {
    font-size: 0.85rem;
  }
  .btn-contratar {
    padding: 0.5rem 0.75rem;
  }
  .dot {
    width: 8px;
    height: 8px;
    margin: 0 4px;
  }
  .mission-vision-container,
  .areas-container {
    gap: 1rem;
  }
  .box-card {
    padding: 0.75rem;
  }
  .valor-item p,
  .area-card p {
    font-size: 0.9rem;
  }
  .footer-container p {
    font-size: 0.9rem;
  }
}
