
.section-trabalho {
  position: relative;
  padding: 100px 0;
  background-image: url("../img/fundo-nosso-trabalho.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}


.section-trabalho::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.55);
  z-index: 1;
}


.trabalho-container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}


.trabalho-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.6rem;
  color: #1f2f44;
  margin-top: 70px;
  margin-bottom: 10px;
}


.trabalho-subtitle {
  max-width: 600px;
  margin-bottom: 48px;
  color: #42566b;
}


.trabalho-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}


.trabalho-card {
  position: relative;
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(10px);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);

  opacity: 0;
  transform: translateY(40px);
  animation: cardFadeUp 0.8s ease forwards;

  transition:
    transform 0.45s cubic-bezier(.25,.8,.25,1),
    box-shadow 0.45s ease,
    background 0.45s ease;
}


.trabalho-card img {
  width: 100%;
  height: 320px; 
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform 0.45s cubic-bezier(.25,.8,.25,1);
}


.trabalho-info {
  padding: 28px; 
}

.trabalho-info h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: #4fa3c7;
}

.trabalho-info p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #42566b;
}


.trabalho-card:nth-child(1){animation-delay:.2s}
.trabalho-card:nth-child(2){animation-delay:.4s}
.trabalho-card:nth-child(3){animation-delay:.6s}
.trabalho-card:nth-child(4){animation-delay:.8s}
.trabalho-card:nth-child(5){animation-delay:1s}
.trabalho-card:nth-child(6){animation-delay:1.2s}

@keyframes cardFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.trabalho-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle at top left,
    rgba(79,163,199,0.18),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.trabalho-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(79,163,199,0.15),
    rgba(255,255,255,0)
  );
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

@media (hover: hover) {
  .trabalho-card:hover {
    transform: translateY(-14px) scale(1.05);
    box-shadow: 0 32px 70px rgba(0,0,0,0.22);
    background: rgba(255,255,255,0.88);
    z-index: 5;
  }

  .trabalho-card:hover::before,
  .trabalho-card:hover::after {
    opacity: 1;
  }

  .trabalho-card:hover img {
    transform: scale(1.08);
  }
}


.trabalho-card:nth-child(3) img,
.trabalho-card:nth-child(4) img,
.trabalho-card:nth-child(5) img {
  object-position: center 70%;
}


@media (max-width: 768px) {
  .trabalho-grid {
    grid-template-columns: 1fr;
  }

  .trabalho-title,
  .trabalho-subtitle {
    text-align: center;
  }

  .trabalho-card img {
    height: 220px; 
  }

  .trabalho-info {
    padding: 22px;
  }
}



.trabalho-card img {
  height: 280px;              
  object-fit: cover;
  object-position: center center;
  display: block;
}

.trabalho-info {
  padding: 28px;              
}



.trabalho-card:nth-child(1) img {
  object-position: center 50%;
}


.trabalho-card:nth-child(2) img {
  object-position: center 55%;
}


.trabalho-card:nth-child(3) img {
  object-position: center 35%;
}


.trabalho-card:nth-child(4) img {
  object-position: center 38%;
}


.trabalho-card:nth-child(5) img {
  object-position: center 30%;
}


.trabalho-card:nth-child(6) img {
  object-position: center 60%;
}


@media (hover: hover) {
  .trabalho-card:hover {
    transform: translateY(-14px) scale(1.06);
    box-shadow: 0 32px 70px rgba(0,0,0,0.22);
    z-index: 5;
  }
}


@media (max-width: 768px) {
  .trabalho-card img {
    height: 220px;
  }

  .trabalho-info {
    padding: 22px;
  }
}


.section-com-back {
  position: relative;
  width: 100%;
  min-height: 100vh;

  background-image: url("../img/fundo-nosso-trabalho.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.section-com-back::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.4); 
  z-index: 1;
}


.section-com-back > * {
  position: relative;
  z-index: 2;
}


.trabalho-title {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 0.9s ease forwards;
  animation-delay: 0.15s; 
}


.trabalho-title {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 0.9s ease forwards;
  animation-delay: 0.15s;
}


.trabalho-subtitle {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 0.9s ease forwards;
  animation-delay: 0.35s; 
}


.logo,
.nav a,
.menu-toggle {
  opacity: 0;
  transform: translateY(-20px);
}





.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
}

.whatsapp-main {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  transition: transform 0.3s ease;
}

.whatsapp-main img {
  width: 30px;
}

.whatsapp-main:hover {
  transform: scale(1.08);
}


.whatsapp-options {
  position: absolute;
  bottom: 70px;
  right: 0;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.2);
  padding: 10px;
  display: none;
  flex-direction: column;
  gap: 8px;
  min-width: 240px;
}

.whatsapp-options a {
  text-decoration: none;
  color: #1f2f44;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: 10px;
  transition: background 0.3s ease;
}

.whatsapp-options a:hover {
  background: #f4f8fc;
}


.whatsapp-float.active .whatsapp-options {
  display: flex;
}


@media (max-width: 768px) {
  .whatsapp-main {
    width: 54px;
    height: 54px;
  }

  .whatsapp-main img {
    width: 26px;
  }
}

.whatsapp-icon {
  width: 28px;
  height: 28px;
  background-image: url("https://cdn-icons-png.flaticon.com/512/733/733585.png");
  background-size: cover;
  background-repeat: no-repeat;
}
