/* Estilos Principais para o site Dbaseline */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  background-color: #274046;
  color: #fff;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ======= Header styles ======= */
header {
  background-color: rgba(44, 62, 80, 0.9);
  padding: 15px 0;
  position: fixed;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
}

header.scrolled {
  background-color: rgba(39, 64, 70, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
}

.logo img {
  height: 30px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  text-transform: lowercase;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #e0e0e0;
}

nav a.active {
  border-bottom: 2px solid #fff;
}

/* Language selector styles */
.language-selector {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-right: 15px;
}

.language-selector a {
  display: flex;
  width: 24px;
  height: 16px;
  transition: transform 0.2s ease;
  border: 1px solid transparent;
}

.language-selector a.active {
  border: 1px solid #fff;
}

.language-selector a:hover {
  transform: scale(1.1);
}

.language-selector img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  color: #fff;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: #e0e0e0;
}

.menu-toggle {
  display: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  margin-right: 15px;
}

/* ======= Banner styles ======= */

.banner {
  position: relative;
  background: url('imagens/banner.jpg') no-repeat center center/cover;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.banner::before {
  display: none;
}

.banner-content {
  max-width: 600px;
  position: relative;
  z-index: 2;
  color: #fff;
  text-align: left;
}

.banner h1 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 20px;
  line-height: 1.2;
}

.banner p {
  font-size: 1rem;
  margin-bottom: 30px;
  color: #e0e0e0;
}

.btn {
  display: inline-block;
  padding: 10px 25px;
  background-color: transparent;
  color: #fff;
  border: 1px solid #fff;
  border-radius: 30px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn:hover {
  background-color: #fff;
  color: #274046;
}

/* ======= About section ======= */
#sobre {
  padding: 60px 0;
  background-color: #1f333a;
}

#sobre .contact-details {
  display: flex;
  flex-direction: column;
  gap: 25px;
  height: 100%;
  padding-top: 20px;
}

#sobre h2 {
  margin-bottom: 20px;
  font-size: 1.8rem;
}

#sobre p {
  margin-top: 20px;
  color: #e0e0e0;
  font-size: 0.95rem;
}

/* ======= Services section ======= */
#servicos {
  padding: 100px 0;
  background-color: #274046;
}

.section-title {
  margin-bottom: 25px;
  font-size: 2rem;
  font-weight: 600;
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: rgba(255, 255, 255, 0.3);
}

.section-subtitle {
  margin-bottom: 40px;
  color: #e0e0e0;
  font-size: 1.05rem;
  max-width: 800px;
}

.services-grid {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-top: 60px;
  flex-wrap: wrap;
}

.service-item {
  text-align: center;
  background-color: #1f333a;
  padding: 40px 30px;
  border-radius: 8px;
  flex: 1;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  margin: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.service-icon {
  width: 140px;
  height: 140px;
  margin: 0 auto 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease;
}

/* Ajuste para os ícones de serviço */
.optimized-service-icon {
  min-width: 100px !important;
  min-height: 100px !important;
  width: 100px !important;
  height: 100px !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 auto;
  opacity: 1 !important;
  transform: scale(1.5);
}

.service-title {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: #fff;
  font-weight: 600;
}

.service-description {
  font-size: 0.95rem;
  color: #e0e0e0;
  line-height: 1.6;
}

/* ======= Clientes e Parceiros ======= */
#clientes, #parceiros {
  padding: 100px 0;
}

#clientes {
  background-color: #1f333a;
}

#parceiros {
  background-color: #274046;
}

.logo-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-top: 50px;
  padding: 20px 0;
}

.logo-grid img {
  max-width: 180px;
  height: auto;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: brightness(0.9);
  object-fit: contain;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 15px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

.logo-grid img:hover {
  transform: scale(1.05);
  filter: brightness(1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

@keyframes blink {
  0% { opacity: 1; }
  50% { opacity: 0.3; }
  100% { opacity: 1; }
}

@keyframes blink {
  0% { opacity: 1; }
  50% { opacity: 0.3; }
  100% { opacity: 1; }
}

/* Estilo para os grids de logos (clientes e parceiros) */
.logo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

.logo-grid > div {
  width: 220px;
  height: 120px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #ffffff;
  padding: 0;
  transition: all 0.3s ease;
  flex: 0 0 auto; /* Impede que os itens se estichem */
}

/* Classe para os containers de logo */
.logo-container {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-grid > div:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.logo-grid img {
  width: 100%;
  height: auto;
  max-height: 90px;
  max-width: 180px;
  object-fit: contain;
  transition: all 0.3s ease;
  border: none;
  box-shadow: none;
}

.logo-grid img:hover {
  filter: grayscale(0%) brightness(1.1);
  animation: blink 1s ease;
}

/* ======= Blog section ======= */
#blog {
  padding: 100px 0;
  background-color: #1f333a;
}

.blog-intro {
  max-width: 600px;
  margin-bottom: 40px;
}

.blog-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.blog-card {
  width: calc(50% - 15px);
  background-color: #274046;
  border-radius: 5px;
  overflow: hidden;
  display: flex;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.blog-image {
  width: 40%;
  height: auto;
  object-fit: cover;
}

.blog-content {
  padding: 20px;
  width: 60%;
}

.blog-category {
  text-transform: uppercase;
  font-size: 0.7rem;
  color: #909090;
  margin-bottom: 10px;
}

.blog-title {
  font-size: 1.1rem;
  margin-bottom: 15px;
}

.blog-excerpt {
  font-size: 0.85rem;
  color: #e0e0e0;
}

/* ======= Contact form ======= */
#contato {
  padding: 100px 0;
  background-color: #274046;
}

/* Nova estrutura de contato - duas colunas */
.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.contact-info-section {
  display: flex;
  gap: 60px;
  width: 100%;
  justify-content: space-between;
}

.contact-info-section > div {
  flex: 0 1 calc(50% - 30px);
  max-width: calc(50% - 30px);
}

.contact-form {
  width: 100%;
}

.contact-form h3 {
  color: #ffffff;
  font-size: 2rem;
  margin-bottom: 15px;
}

.contact-form p {
  color: #ffffff;
  margin-bottom: 30px;
  line-height: 1.5;
  font-size: 1rem;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  background: #ffffff;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
}

.contact-form textarea {
  height: 150px;
  resize: vertical;
  width: 100%;
}

.btn-enviar {
  background: #1f333a;
  color: #ffffff;
  border: 1px solid #ffffff;
  padding: 12px 24px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  width: fit-content;
  transition: all 0.3s ease;
}

.btn-enviar:hover {
  background: #ffffff;
  color: #1f333a;
}

.contact-info {
  width: 100%;
  padding: 30px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  min-height: 450px;
}

.contact-info h3 {
  color: #ffffff;
  margin-bottom: 30px;
  font-size: 1.5rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.info-row {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.info-row .contact-icon {
  width: 24px;
  height: 24px;
  font-size: 24px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-row .info-text {
  flex: 1;
}

/* Estilos para as imagens de localização */
.location-images {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: 100%;
  gap: 15px;
  margin-top: 20px;
}

.image-container {
  width: 48%;
  height: auto;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 12px;
}

.location-image {
  width: 100%;
  height: auto;
  max-height: 100px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.image-container:hover .location-image {
  transform: scale(1.05);
}

.map-directions {
  display: inline-block;
  margin-top: 10px;
  color: #4285F4;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s ease;
  position: relative;
  padding-left: 20px;
}

.map-directions:before {
  content: '\f3c5';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 1px;
}

.map-directions:hover {
  color: #ffffff;
  text-decoration: underline;
}

.info-row .info-text strong {
  display: block;
  color: #ffffff;
  margin-bottom: 5px;
}

.info-row .info-text p {
  color: #ffffff;
  margin: 0;
  line-height: 1.5;
}

.contact-block form {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.contact-block form button {
  margin-top: auto;
}

.contact-block h3 {
  color: #ffffff;
  margin-bottom: 20px;
  font-size: 1.5rem;
  text-align: left;
}

.contact-block p {
  color: #ffffff;
  margin-bottom: 25px;
  line-height: 1.5;
  opacity: 0.9;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  color: #ffffff;
}

.info-item:last-child {
  margin-bottom: 0;
}

.info-item i {
  font-size: 1.2rem;
  margin-top: 3px;
  color: #e0e0e0;
}

.info-item strong {
  display: block;
  margin-bottom: 5px;
  font-size: 0.9rem;
}

.info-item p {
  font-size: 0.9rem;
  color: #e0e0e0;
  margin-bottom: 3px;
}

.info-item p:last-child {
  margin-bottom: 0;
}

.info-item a {
  color: #e0e0e0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.info-item a:hover {
  color: #fff;
  text-decoration: underline;
}

.contact-info span {
  color: #ffffff;
  display: block;
  line-height: 1.5;
}

/* Estilos para o mapa */
.map-container {
  width: 100%;
  border-radius: 5px;
  overflow: hidden;
  position: relative;
}

.map-link {
  display: block;
  position: relative;
  transition: transform 0.3s ease;
}

.map-link:hover {
  transform: scale(1.02);
}

.map-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 5px;
}

.map-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(39, 64, 70, 0.8);
  padding: 10px 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background-color 0.3s ease;
}

.map-overlay:hover {
  background-color: rgba(39, 64, 70, 0.95);
}

.map-overlay i {
  font-size: 1.2rem;
}

/* ======= Footer ======= */
footer {
  background-color: #1f333a;
  padding: 30px 0;
  text-align: center;
}

footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.footer-social a {
  color: #fff;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.footer-social a:hover {
  color: #e0e0e0;
}

.copyright {
  font-size: 0.8rem;
  color: #909090;
}

/* ======= Blog Styles ======= */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  margin-top: 60px;
  width: 100%;
}

.blog-card {
  background: #1f333a;
  border-radius: 8px;
  overflow: hidden; /* Evita que a imagem ultrapasse os limites */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.blog-card:hover .blog-image {
  transform: scale(1.05);
}

.blog-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  aspect-ratio: 16/9;
  display: block;
  transition: transform 0.5s ease;
}

.blog-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.blog-category {
  display: inline-block;
  font-size: 0.8rem;
  color: #e0e0e0;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.blog-title {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: #fff;
  font-weight: 600;
  line-height: 1.4;
}

.blog-excerpt {
  font-size: 0.9rem;
  color: #e0e0e0;
  margin-bottom: auto;
  padding-bottom: 20px;
  line-height: 1.6;
}

.blog-link {
  display: inline-block;
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease;
}

.blog-link:hover {
  border-bottom-color: #fff;
}

/* ======= Blog Modal Styles ======= */
.blog-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.blog-modal-content {
  background-color: #1f333a;
  padding: 40px;
  border-radius: 8px;
  max-width: 800px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.close-modal {
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 28px;
  cursor: pointer;
  color: #fff;
  transition: color 0.3s ease;
}

.close-modal:hover {
  color: #e0e0e0;
}

.blog-full-content {
  color: #fff;
}

.blog-full-content h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.blog-full-image {
  width: 100%;
  max-height: 400px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px;
}

.blog-full-content h3 {
  font-size: 1.4rem;
  margin: 25px 0 15px;
}

.blog-full-content p {
  margin-bottom: 15px;
  line-height: 1.6;
  color: #e0e0e0;
}

.blog-full-content ul {
  margin: 15px 0;
  padding-left: 20px;
}

.blog-full-content li {
  margin-bottom: 10px;
  color: #e0e0e0;
}

/* ======= Responsivo ======= */
/* Dispositivos grandes (desktops, menos de 1200px) */
@media (max-width: 1199.98px) {
  .container {
    max-width: 960px;
  }
  
  .banner h1 {
    font-size: 2.2rem;
  }
}

/* Dispositivos médios (tablets, menos de 992px) */
@media (max-width: 991.98px) {
  .container {
    max-width: 720px;
  }
  
  .banner {
    min-height: 70vh;
  }
  
  .banner h1 {
    font-size: 2rem;
  }
  
  .services-grid {
    flex-wrap: wrap;
  }
  
  .service-item {
    flex-basis: 48%;
    margin-bottom: 20px;
  }
  
  .blog-grid {
    gap: 20px;
  }
  
  .contact-container {
    flex-direction: column;
  }
}

/* Dispositivos pequenos (tablets pequenos e celulares grandes, menos de 768px) */
@media (max-width: 767.98px) {
  .container {
    max-width: 540px;
  }
  
  header .container {
    flex-wrap: wrap;
    justify-content: space-between;
    position: relative;
    padding: 0 15px;
  }
  
  .logo {
    display: flex;
    align-items: center;
    max-width: 50%;
  }
  
  .language-selector {
    margin-left: auto;
  }
  
  .menu-toggle {
    display: block;
  }
  

  
  nav {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  
  nav.active {
    max-height: 300px;
  }
  
  nav ul {
    flex-direction: column;
    gap: 10px;
    padding: 15px 0;
  }
  
  .language-selector {
    margin-left: auto;
  }
  
  .service-item {
    flex-basis: 100%;
  }
  
  .blog-card {
    width: 100%;
    flex-direction: column;
  }
  
  .blog-image {
    width: 100%;
    height: 180px;
  }
  
  .blog-content {
    width: 100%;
  }
  
  .blog-grid {
    grid-template-columns: 1fr;
  }
  
  /* Reorganizando a seção de contato para dispositivos móveis */
  .contact-info-section {
    display: flex;
    flex-direction: column;
    width: 100%;
  }
  
  /* Garantindo que o formulário de contato apareça primeiro em dispositivos móveis */
  .contact-form {
    order: 1;
    margin-bottom: 30px;
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 0 100% !important;
  }
  
  /* Colocando o bloco "Onde nos encontrar" abaixo do formulário */
  .contact-block {
    order: 2;
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 0 100% !important;
  }
  
  /* Garantindo que os inputs do formulário ocupem toda a largura */
  .contact-form form {
    width: 100%;
  }
  
  .contact-form input,
  .contact-form textarea,
  .contact-form .phone-input-container,
  .contact-form button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }
}

/* Dispositivos muito pequenos (celulares, menos de 576px) */
@media (max-width: 575.98px) {
  .banner h1 {
    font-size: 1.8rem;
  }
  
  .service-icon {
    width: 90px;
    height: 90px;
  }
  
  .logo-grid {
    gap: 20px;
  }
  
  .logo-grid img {
    max-width: 120px;
  }
}