/* styles.css */

/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
  width: 100%;
  height: 100%;
}

body {
  font-family: 'Poppins', sans-serif;
}

/* Container central */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Navbar */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background 0.5s;
}
#navbar.transparent {
  background: transparent;
}
#navbar.scrolled {
  background: rgba(255,255,255,0.4);
  backdrop-filter: blur(10px);
  box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

/* Container da logo + links */
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

/* Logo */
.logo img {
  max-height: 45px;
  display: none;
}

/* No topo → aparece a branca */
#navbar.transparent .logo-branca {
  display: block;
}

/* Após scroll → aparece a preta */
#navbar.scrolled .logo-preta {
  display: block;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 80px;  /* ajuste conforme a altura da sua navbar */
}

/* Navegação inline */
.nav-links {
  display: flex;
  list-style: none;
  margin-left: auto;
  gap: 2rem;
  align-items: center;
}
.nav-links li a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.5rem 0;
  transition: opacity 0.2s;
}
.nav-links li a:hover {
  opacity: 0.7;
}
nav.scrolled .nav-links li a {
  color: #000;
}

/* Hero */
.hero {
  height: 80vh;
  background: url('./imagens/hero.png') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
}
.hero-content {
  margin: 10 5%;
}
.hero-content h1 {
  font-size: 4rem;
  color: #fff;
  margin-bottom: 0.5rem;
}
.hero-content p {
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 1rem;
}

/* Botão */
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border: 2px solid #fff;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.3s;
}
.btn:hover {
  background: rgba(255,255,255,0.1);
}

/* Seções gerais */
section {
  padding: 4rem 0;
}

/* Sobre */
.about p {
  font-size: 1rem;
  color: #555;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Serviços */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

/* 1) Card com altura fixa */
.service-card {
  position: relative;
  height: 650px;       /* ajuste aqui para ficar na “altura ideal” */
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
}

/* 2) Imagem preenche todo o card */
.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* mantém cover e corta o excedente */
  display: block;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.service-card:hover img {
  transform: scale(1.05);
  filter: none;
}

/* Manter o título (h3) sempre visível */
.service-card h3 {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-size: 1rem;
  opacity: 1;
}

.service-card:hover h3 {
  opacity: 1;
}

/* Overlay dos tópicos no serviço */
.service-card .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: white;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 1rem;
  text-align: center;
}

.service-card .overlay ul {
  list-style: none;
  padding: 0;
}

.service-card .overlay ul li {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-card:hover .overlay {
  opacity: 1;
}

/* Animação de entrada da direita para esquerda */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Aplicação nos itens da lista dentro do overlay */
.service-card:hover .overlay ul li {
  opacity: 0;
  transform: translateX(50px);
  animation: slideInRight 0.6s forwards;
}

/* Delay para cada item */
.service-card:hover .overlay ul li:nth-child(1) {
  animation-delay: 0.1s;
}
.service-card:hover .overlay ul li:nth-child(2) {
  animation-delay: 0.3s;
}
.service-card:hover .overlay ul li:nth-child(3) {
  animation-delay: 0.5s;
}
.service-card:hover .overlay ul li:nth-child(4) {
  animation-delay: 0.7s;
}
.service-card:hover .overlay ul li:nth-child(5) {
  animation-delay: 0.9s;
}
.service-card:hover .overlay ul li:nth-child(6) {
  animation-delay: 1.1s;
}

/* -------- DIFERENCIAIS -------- */
.diferenciais {
  text-align: left;
}

.diferenciais-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.card-diferencial {
  background: #fff;
  border-radius: 8px;
  padding: 2rem 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-diferencial:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.card-diferencial i {
  font-size: 2.5rem;
  color: #4ca1af;
  margin-bottom: 1rem;
}

.card-diferencial h3 {
  margin-bottom: 0.5rem;
  color: #222;
}

.card-diferencial p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Equipe */

#equipe h2 {
  margin-bottom: 2rem; /* Mesma proporção das outras seções */
}

/* Container geral da equipe */
.team-grid {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 5rem;
  flex-wrap: wrap; /* PERMITE QUEBRAR EM TELAS MENORES */
  max-width: 1200px;
  margin: 0 auto;
}

.team-member {
  width: 300px;
  text-align: center;
}

.img-wrapper {
  width: 300px;
  height: 500px;
  overflow: hidden;       /* faz o “recorte” */
  border-radius: 8px;     /* máscara redonda */
  margin: 0 auto;         /* centraliza */
}

.img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.img-wrapper:hover img {
  transform: scale(1.05);
}

.member-name,
.member-role {
  display: block;
  width: 100%;            /* ocupa toda a largura do .team-member */
  margin: 0 auto;         /* centraliza, caso haja largura menor */
  text-align: center;     /* garante o texto centralizado */
}

.member-name {
  margin-top: 0.75rem;    /* distância da imagem */
  margin-bottom: 0.25rem; /* distância do cargo */
  font-size: 1.3rem;      /* ajuste o tamanho aqui */
  font-family: Georgia, serif;
  color: #222;            /* ajuste a cor se quiser */
}

.member-role {
  margin-top: 0;
  font-size: 0.9rem;      /* ajuste o tamanho aqui */
  font-family: Arial, sans-serif;
  font-style: italic;
  color: #555;            /* ajuste a cor se quiser */
  opacity: 0.8;           /* leve semitransparência */
}

/* Container geral */
.team-grid {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 8rem;
  flex-wrap: nowrap;
}

/* Container de cada membro */
.team-item {
  display: flex;
  gap: 1rem;
}

/* Erick — texto à direita no topo */
.team-item.erick {
  flex-direction: row;
  align-items: flex-start;
}

/* Lucas — texto à esquerda na base */
.team-item.lucas {
  flex-direction: row-reverse;
}

.team-item.lucas .descricao-membro {
  text-align: right;
  margin-top: 23rem; /* Move o texto para baixo */
}

.descricao-membro {
  max-width: 400px;
  font-size: 1rem;
  font-family: Arial, sans-serif;
  font-style: italic;
  color: #555; 
  opacity: 0.8;  
  line-height: 1.2;
}

.team-member {
  width: 300px;
  text-align: center;
}

.img-wrapper {
  width: 300px;
  height: 500px;
  overflow: hidden;
  border-radius: 8px;
}

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

/* Portfólio */

/* Portfólio com zoom no hover */
.projects .project-grid {
  width: 100%;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  padding: 0 2rem;
}
.project-card {
  position: relative;
  cursor: pointer;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-card:hover img {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* Título sempre visível no canto inferior direito */
.project-card h3 {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-size: 1rem;
  opacity: 1;
  transform: none;
  text-align: right;
}

.project-card.hover-card {
  position: relative;
  cursor: pointer;
  aspect-ratio: 1 / 1; /* faz o card ficar quadrado */
  overflow: hidden;
}

.project-card.hover-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.3s ease;
}

.project-card.hover-card:hover h3 {
  opacity: 1;
}

.projects .project-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 colunas fixas */
  gap: 1.5rem;
  margin-top: 2rem;
}

.projects {
  width: 100%;
}

.projects .project-grid {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.projects h2 {
  text-align: left;
  margin-bottom: 2%;  /* Espaço entre o título e o grid */
  font-family: 'Poppins', sans-serif;
}

@media (max-width: 900px) {
  .projects .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .projects .project-grid {
    grid-template-columns: 1fr;
  }
}

/* Contato */

/* -------- FORMULÁRIO DE ORÇAMENTO -------- */
.form-orcamento {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  max-width: 600px;
  margin: 2rem auto;
}

.form-orcamento label {
  display: flex;
  flex-direction: column;
  font-weight: 600;
  color: #333;
  gap: 0.4rem;
}

.form-orcamento input,
.form-orcamento select,
.form-orcamento textarea {
  padding: 0.9rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  background-color: #fff;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-orcamento input:focus,
.form-orcamento select:focus,
.form-orcamento textarea:focus {
  outline: none;
  border-color: #4ca1af;
  box-shadow: 0 0 5px rgba(76, 161, 175, 0.5);
}

.g-recaptcha {
  margin: 0.5rem 0;
}

.btn-enviar {
  background: #4ca1af;
  color: white;
  padding: 0.9rem 1.5rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
}

.btn-enviar:hover {
  background: #2c3e50;
}

.popup {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
}

.popup-content {
  background-color: #fff;
  padding: 2rem;
  border-radius: 8px;
  max-width: 400px;
  text-align: center;
  margin: 15% auto;
}

.popup-content button {
  background-color: #4ca1af;
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  cursor: pointer;
}

.popup-content button:hover {
  background-color: #2c3e50;
}


/* Footer */
.footer {
  background: #111;
  color: white;
  padding: 3rem 0 2rem 0;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-logo img {
  width: 180px;
}

.footer-contato h3,
.footer-social h3 {
  margin-bottom: 0.8rem;
}

.footer-contato a {
  color: white;
  text-decoration: none;
  display: block;
  margin-bottom: 0.4rem;
}

.footer-contato a:hover {
  text-decoration: underline;
}

.footer-whatsapp a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.4rem;
  color: white;
  text-decoration: none;
}

.footer-whatsapp a i {
  color: #25D366;
}

.footer-whatsapp a:hover {
  text-decoration: underline;
}

.footer-social .social-icons {
  display: flex;
  gap: 1rem;
}

.footer-social .social-icons a {
  color: white;
  font-size: 1.5rem;
  transition: color 0.3s;
}

.footer-social .social-icons a:hover {
  color: #4ca1af;
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1rem;
  font-size: 0.9rem;
}

.footer-institucional h3 {
  margin-bottom: 0.8rem;
}

.footer-institucional a {
  color: white;
  text-decoration: none;
  display: block;
  margin-bottom: 0.4rem;
}

.footer-institucional a:hover {
  text-decoration: underline;
}

/* Responsivo */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-logo img {
    margin-bottom: 1rem;
  }
}

.whatsapp-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  z-index: 1000;
}

/* balão de texto */
.chat-bubble {
  background: #ffffff;
  border-radius: 16px;
  padding: 8px 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  font-size: 1.0rem;
  color: #222;
}

.whatsapp-button {
  background: transparent;  /* ou outra cor de fundo */
  padding: 0;               /* se quiser só o ícone */
  border: none;
  cursor: pointer;
}

.whatsapp-icon {
  width: 55px;    /* ajusta o tamanho do seu ícone */
  height: 55px;
  display: block;
}

/* dropdown escondido por padrão */
.whatsapp-dropdown {
  position: absolute;
  bottom: 60px;      /* 20px (widget) + 40px (botão) */
  right: 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
  width: 180px;
  text-align: left;
}

/* mostra quando a classe .show for adicionada */
.whatsapp-dropdown.show {
  display: block;
  object-fit: cover;
}

.whatsapp-dropdown li {
  border-bottom: 1px solid #eee;
}

.whatsapp-dropdown li:last-child {
  border-bottom: none;
}

.whatsapp-dropdown a {
  display: block;
  padding: 8px 12px;
  text-decoration: none;
  color: #333;
  font-size: 0.9rem;
}

.whatsapp-dropdown a:hover {
  background: #f5f5f5;
}

.whatsapp-icon {
  transition: transform 0.3s ease;
}

.whatsapp-button:hover .whatsapp-icon {
  transform: scale(1.1);
}

/* Responsividade */
@media (max-width: 768px) {
  .nav-links {
    gap: 1rem;
  }
  .hero-content h1 {
    font-size: 3rem;
  }
}

.whatsapp-button {
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* MOBILE */
/* MOBILE */
/* MOBILE */

/* ---------- MENU SANDUÍCHE (SOMENTE MOBILE) ---------- */
.menu-toggle {
  display: none;
  cursor: pointer;
  font-size: 1.8rem;
  color: white;
}

nav.scrolled .menu-toggle {
  color: black;
}

/* ---------- CARROSSEL E MENU MOBILE ---------- */
@media (max-width: 768px) {
  /* Menu sanduíche */
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(8px);
    width: 60%;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    display: none;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links li a {
    color: white;
    font-size: 1.2rem;
  }

  nav.scrolled .nav-links li a {
    color: white;
  }

  /* Carrossel no lugar do grid */
  .projects .project-grid {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .projects .project-card {
    flex: 0 0 80%;
    scroll-snap-align: start;
    min-width: 280px;
    aspect-ratio: 1/1;
  }

  .projects .project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* Esconde o hover no mobile */
  .projects .project-card h3 {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 1rem;
    opacity: 1;
    transform: none;
    top: auto;
    left: auto;
    right: 8px;
  }
}

@media (max-width: 768px) {

  /* Serviços em carrossel */
  .services-grid {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .service-card {
    flex: 0 0 80%;
    min-width: 280px;
    aspect-ratio: 1/1;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
  }

  .service-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .service-card h3 {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 0.5rem;
    text-align: center;
    font-size: 1rem;
    opacity: 1;
    transform: none;
  }

  /* Equipe em carrossel */
  .team-grid {
  display: flex;
  overflow-x: auto;
  gap: 2rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  justify-content: start;
  }

  .team-item {
    flex: 0 0 85%;
    flex-direction: column;
    align-items: center;
    text-align: center;
    scroll-snap-align: start;
  }

  .team-item .img-wrapper {
    width: 80%;
    aspect-ratio: 3/4;
    height: auto;
  }

  .member-name {
    font-size: 1.5rem;
    margin-top: 1rem;
  }

  .member-role {
    font-size: 1rem;
  }

  .team-item .img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .descricao-membro {
    margin-top: 1rem;
    max-width: 90%;
    font-size: 1rem;
    line-height: 1.5;
    text-align: center;
  }

  /* Portfólio mantém como já foi feito */
}

@media (max-width: 768px) {
  .services-grid {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .service-card {
    flex: 0 0 80%;
    min-width: 280px;
    aspect-ratio: 1/1;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
  }

  .service-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

@media (max-width: 768px) {
  .service-card h3 {
    font-size: 1.2rem;
    padding: 0.2rem 0.5rem;
    bottom: 8px;
    right: 8px;
    left: auto;
    width: auto;
    text-align: right;
  }
}
}