html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

:root {
  --header-h: 88px;
  /* Backgrounds */
  --background-primary: #f5f5f5; /* Main page background */
  --background-secondary: #e0e0e0; /* Section background */
  --background-card: #ffffff; /* Content card background */

  /* Text colors */
  --text-primary: #333333; /* Primary text color (headings, paragraphs) */
  --text-secondary: #666666; /* Secondary text color (subheadings, captions) */

  /* Highlights / actions */
  --color-accent: #0055aa; /* Primary buttons, hover effects */
  --color-link: #0077cc; /* Default link color */

  /* Borders and dividers */
  --border-color: #cccccc; /* Borders and separators */

  /* Alerts, warnings, and errors */
  --color-warning: #ff8800; /* Warning messages */
  --color-error: #cc0000; /* Error messages */

  /* Form backgrounds / inputs */
  --background-input: #ffffff; /* Input field background */
  --input-border: #dddddd; /* Input field border */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
  text-decoration: none;
}

header {
  background-color: var(--background-input);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease; /* suaviza mudanças */
  min-height: 80px;
}

header.shrink {
  background-color: rgba(255, 255, 255, 0.9); /* levemente transparente */
  padding: 10px 0; /* diminui o tamanho */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); /* sombra sutil */
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--text-primary);
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.wrapper-nav {
  display: flex;
  align-content: center;
  align-items: center;
  justify-content: space-around;
  padding: 22px 0;
}

.wrapper-nav img {
  
     height: 80px;   /* ou o tamanho que desejar */
    width: auto;    /* mantém a proporção */
    object-fit: contain;
}

.logo {
  cursor: pointer;
}

.logo img {
  height: 70px;
}

.wrapper-nav ul {
  display: flex;
  list-style: none;
}

.wrapper-nav ul li {
  position: relative;
  cursor: pointer;
}

.wrapper-nav ul li a {
  display: block; /* faz o link ocupar todo o li */
  padding: 8px 16px; /* aumenta a área clicável */
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.wrapper-nav ul li::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background-color: var(--color-link);
  transition: width 0.2s ease;
}

.wrapper-nav ul li:hover::after {
  width: 100%;
}

.home-content {
  background-color: #e5f2ff;
}

.content-wrapper {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap; /* Permite quebra em telas menores */
  gap: 1rem;
  padding: 1.5rem;
}

.content-wrapper .left-side-image img {
  width: 100%;
  max-width: 540px;
  height: auto;
}

.side-text {
  flex: 1;
  min-width: 280px;
  text-align: left;
  max-width: 550px;
}

.wrapper-text .home-content-title {
  font-size: 3rem;
  line-height: 1.2;
}

.wrapper-text .home-content-text {
  margin-top: 1.5rem;
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
}

.home-btn {
  margin-top: 3rem;
}
.home-btn .contact-home-btn {
  padding: 1rem 2rem;
  font-size: 16px;
  font-weight: bold;
  border-radius: 48px;
  color: var(--background-input);
  background-color: var(--color-link);
}

.home-btn .contact-home-btn:hover {
  transition: all ease-in 0.2s;
  background-color: var(--color-accent);
}

/* Services Section */

.services {
  text-align: center;
  padding: 3rem 1rem;
}

.company {
  padding: 20px;
  background-color: #0077cc;
  border-radius: 24px;
}

.companies h3{
  margin-bottom: 1rem;
}

.companies ul{
  padding: 4px;
  margin: 0;
}

.company-item img {
  border-radius: 12px;
  height: auto;
  margin-bottom: 15px;
  width: 120px;
}

.company-item {
  text-align: left;
  margin: 0 auto;
}

.company-item h3 {
  font-size: 1rem;
}

.services h2 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.services p {
  color: #555;
  max-width: 800px;
  margin: 0 auto 4rem;
  font-size: 18px;
}

.services-title::before,
.services-title::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid #ccc; /* cor da linha */
  margin: 0 10px; /* espaço entre linha e texto */
}

/* .section-title h2 {
    font-size: 56px;
} */

.services-menu {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.services-menu a {
  text-decoration: none;
  color: #222;
  font-weight: 500;
  padding: 1rem 2rem;
  border-radius: 48rem;
  transition: background 0.3s;
}

.services-menu a.active {
  background: #e6f0ff;
  color: #0055aa;
}

.services-menu a:hover {
  background: #f2f2f2;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
}

.service-item {
  padding: 1rem;
  transition: transform 0.3s;
  cursor: pointer;
}

.service-item img {
  max-width: 100%;
  border-radius: 8px;
}

.service-item p {
  margin-top: 0.5rem;
  font-weight: 500;
}

.service-item:hover {
  transform: translateY(-4px);
}

/* Section */

.why-we-stand-out {
  text-align: center;
  padding: 40px 20px;
}
.why-we-stand-out h2 {
  font-size: 2rem;
  margin-bottom: 30px;
}
.features {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.feature-item {
  max-width: 250px;
}
.feature-item img {
  width: 60px;
  height: auto;
  margin-bottom: 15px;
}
.feature-item h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}
.feature-item p {
  color: #555;
  font-size: 0.95rem;
}

/* About Us */

.cta-section {
  background-color: #e5f2ff; /* fundo claro */
  padding: 50px 60px;
  border-radius: 50px;
  margin: 40px auto;
  max-width: 1200px;
}

.cta-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.cta-image img {
  width: 100%;
  max-width: 380px;
  border-radius: 20px;
  object-fit: cover;
}


.image-caption {
  margin-top: 10px;
  font-size: 0.95rem;
  color: #444;
  font-style: italic;
  background: #f8f8f8;
  padding: 6px 12px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.cta-text {
  flex: 1;
  min-width: 300px;
}

.cta-text h2 {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 15px;
}

.companies .company-item h3 {
  justify-content: center;
}

.cta-text p {
  margin-bottom: 20px;
  line-height: 1.6;
}

.btn-cta {
  display: inline-block;
  background-color: var(--color-link);
  color: var(--background-card);
  padding: 12px 25px;
  border-radius: 25px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s;
}

.btn-cta:hover {
  background-color: #ffcc00;
}

.items-client {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.item-client {
  max-width: 250px;
}
.item-client img {
  width: 60px;
  height: auto;
  margin-bottom: 15px;
}

.item-client img {
  width: 150px;
}

/* footer */

.footer {
  display: flex;
  justify-content: space-around;
  color: #cccccc;
  align-items: center;
  padding: 2rem 2.5rem;
  background-color: var(--text-primary);
  border-top: 1px solid #ddd;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}


.footer__contacts a {
  color: #ccc;
}

.footer__logo img {
     height: 70px;  
    width: auto;    
    object-fit: contain;
}

/* .footer__logo .tagline {
  font-size: 0.8rem;
  color: #ccc;
  margin: 0;
} */

.footer__contacts {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.9rem;
}

.footer__contacts a,
.footer__social a {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.2rem;
  min-height: 30px;
  min-width: 30px;
}

.footer__contacts a i,
.footer__social a i {
  margin-right: 0.5rem;
}


.footer__social {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer__social span {
  font-size: 0.9rem;
  color: #ccc;
  font-weight: 500;
  margin-right: 0.5rem;
}

.footer__social a {
  outline: none;
  color: #ccc;
  font-size: 12px;
}

.footer__social a i {
  font-size: 20px;
}

.footer__social a i:hover {
  color: var(--background-input);
}

.btm-footer {
  display: flex;
  padding: 0.6rem;
  justify-content: center;
  background-color: #121212;
}

.btm-footer-copy {
  font-size: 9px;
  color: #ccc;
}

/* Responsividade */
@media (max-width: 992px) {

  .wrapper-text .home-content-title {
    font-size: 2.5rem;
    text-align: center;
  }

  .wrapper-text .home-content-text {
    font-size: 18px;
    text-align: justify;
    margin: 4rem auto;
  }


  .home-btn {
    display: flex;
    justify-content: center;
  }

  .cta-container {
    flex-direction: column;
    text-align: center;
  }

  .cta-text {
    margin-top: 1rem;
    
  }
  .cta-container {
    flex-direction: column; /* imagem em cima, texto embaixo */
    text-align: center;
  }

  .cta-text {
    margin-top: 1rem;
  }

  .cta-text h2 {
    font-size: 1.8rem;
  }

  .cta-text p {
    font-size: 1rem;
  }

  .text-services p {
    text-align: justify;
    }  
}

@media (max-width: 768px) {

   .logo img {
    height: 30px;
    width: 30px;
  }
  header nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }
  .hamburger {
    display: flex;
  }

  #nav-links {
    position: absolute;
    top: 80px; /* altura do header */
    right: 0;
    background-color: var(--background-input);
    width: 200px;
    flex-direction: column;
    gap: 0;
    display: none;
    border-left: 1px solid var(--border-color);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  }

  #nav-links li {
    padding: 12px 16px;
  }

  #nav-links li a {
    display: block;
    width: 100%;
  }

  #nav-links.show {
    display: flex;
  }

  .wrapper-nav img {
  height: 60px;   /* ou o tamanho que desejar */
  width: auto;    /* mantém a proporção */
  object-fit: contain; /* garante que não deforme */
}

  /* .logo img {
    width: 160px;
  } */

  .side-text {
    text-align: center;
  }

  .services h2 {
    font-size: 2rem;
  }

  .cta-image img {
    width: 85%;
    max-width: 380px;
    border-radius: 20px;
    object-fit: cover;
    } 

  .cta-text p {
    margin-bottom: 20px;
    line-height: 1.6;
    text-align: justify;
  }

  .footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer__logo,
  .footer__contacts,
  .footer__social {
    align-items: center;
  }

  .footer__contacts {
    font-size: 0.85rem;
  }

  .footer__social span {
    display: block;
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 480px) {
  .wrapper-text .home-content-title {
    font-size: 1.8rem;
  }

  .wrapper-text .home-content-text {
    font-size: 1rem;
  }

  .home-btn .contact-home-btn {
    padding: 0.7rem 1.4rem;
    font-size: 16px;
    padding: 16px;
    width: 100%;
  }

  .services h2 {
    font-size: 1.6rem;
  }
  .services .text-services {
  font-size: 1rem;
}

.image-caption {
  width: 85%;   
  margin: 1rem auto;
}

  .footer {
    padding: 1.5rem 1rem;
  }

  .footer__contacts {
    font-size: 0.8rem;
  }

  .footer__social a i {
    font-size: 18px;
  }

  .btm-footer-copy {
    font-size: 8px;
  }
  .cta-text h2 {
    font-size: 1.6rem;
  }

  .cta-text p {
    font-size: 1rem;
    padding: 0 16px;
  }

.services p{
  font-size: 1rem;
}
  .cta-section {
    padding: 30px 15px;
    border-radius: 15px;
  }
}


/* Tooltip Section */

  /* container da imagem */
  .company-item picture {
    position: relative;
    display: inline-block;
  }

  /* estilo do popup */
  .tooltip {
    visibility: hidden;
    opacity: 0;
    width: 220px;
    background: #000;
    color: #fff;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    position: absolute;
    z-index: 10;
    bottom: 110%; /* aparece acima da imagem */
    left: 50%;
    transform: translateX(-50%);
    transition: opacity 0.3s;
    font-size: 14px;
  }

  /* triangulo */
  .tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -7px;
    border-width: 7px;
    border-style: solid;
    border-color: #000 transparent transparent transparent;
  }

  /* mostrar popup ao passar o mouse na imagem */
  .company-item picture:hover .tooltip {
    visibility: visible;
    opacity: 1;
  }