/* =========================================================
   SEÇÕES ESPECÍFICAS — Maciel Engenharia v5
   Conteúdo separado do CSS base para facilitar manutenção.
   ========================================================= */

/* Ritmo visual entre seções: discreto, sem divisórias pesadas. */
.after-section + .after-section,
.after-footer {
  border-top: 1px solid rgba(30, 31, 35, .09);
}

/* ---------------- Portfólio ---------------- */
.after-portfolio .after-head p {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.after-portfolio .project-card {
  display: flex;
  flex-direction: column;
}

.after-portfolio .project-card h3 {
  margin-top: 18px;
}

.after-portfolio .project-card p {
  flex: 1;
}

/* ---------------- Depoimentos ---------------- */
.after-testimonials {
  background: #f7f6f2;
}

.after-testimonials .after-head {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.after-testimonials .carousel {
  max-width: 1180px;
  margin: 36px auto 0;
  position: relative;
}

.after-testimonials .carousel-viewport {
  padding: 12px 34px 18px;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 32px, black calc(100% - 32px), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent, black 32px, black calc(100% - 32px), transparent 100%);
}

.after-testimonials .carousel-track {
  display: flex;
  gap: 24px;
  align-items: stretch;
  transition: none !important;
  will-change: transform;
}

.after-testimonials .carousel-track > * {
  flex: 0 0 340px;
  width: 340px;
  max-width: 340px;
  box-sizing: border-box;
}

.after-testimonials .t-card {
  min-height: 280px;
  padding: 30px 28px 25px;
  border: 1px solid #e9e2d3;
  border-radius: 18px;
  background: #fffefa;
  box-shadow: 0 14px 40px rgba(40, 34, 20, .06);
  display: flex;
  flex-direction: column;
}

.after-testimonials .t-card:before {
  content: '“';
  top: 8px;
  right: 22px;
  color: rgba(191, 151, 40, .18);
  font-size: 70px;
  line-height: 1;
}

.after-testimonials .t-stars {
  color: #c99c29;
  letter-spacing: 3px;
  font-size: 13px;
  margin-bottom: 18px;
}

.after-testimonials .t-card p {
  flex: 1;
  margin: 0 0 25px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 16px;
  line-height: 1.7;
  color: #39352e;
}

.after-testimonials .t-person {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #eee8dc;
}

.after-testimonials .t-person img {
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #d8b04b;
}

.after-testimonials .t-person strong {
  display: block;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #24211c;
}

.after-testimonials .t-person span {
  display: block;
  margin-top: 3px;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 10px;
  color: #888174;
}

/* ---------------- Trabalhe Conosco ---------------- */
.work-after {
  border-top-color: rgba(70, 59, 32, .12) !important;
}

.work-intro .tag {
  letter-spacing: .12em;
}

.work-form-title {
  margin: 0 0 6px;
  font: 600 23px/1.25 Montserrat, Arial, sans-serif;
}

.work-privacy {
  margin: 12px 0 0;
  font-size: 10px;
  line-height: 1.5;
  color: #8a8274;
}

.work-note {
  min-height: 18px;
}

.after-testimonials .car-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(254, 203, 57, 0.35);
  background: #14120e;
  color: #fecb39;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.after-testimonials .car-btn:hover {
  background: #fecb39;
  color: #161310;
  border-color: #fecb39;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 10px 28px rgba(254, 203, 57, 0.35);
}

.after-testimonials .car-btn svg {
  width: 20px;
  height: 20px;
  display: block;
}

.after-testimonials .car-btn.prev {
  left: -8px;
}

.after-testimonials .car-btn.next {
  right: -8px;
}

@media (max-width: 900px) {
  .after-testimonials .carousel-track > * {
    flex: 0 0 310px;
    width: 310px;
    max-width: 310px;
  }
}

@media (max-width: 760px) {
  .after-testimonials .carousel-viewport {
    padding-left: 18px;
    padding-right: 18px;
    mask-image: linear-gradient(to right, transparent, black 16px, black calc(100% - 16px), transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent, black 16px, black calc(100% - 16px), transparent 100%);
  }

  .after-testimonials .carousel-track > * {
    flex: 0 0 280px;
    width: 280px;
    max-width: 280px;
  }

  .after-testimonials .car-btn {
    width: 38px;
    height: 38px;
  }

  .after-testimonials .car-btn svg {
    width: 18px;
    height: 18px;
  }

  .after-testimonials .car-btn.prev {
    left: 2px;
  }

  .after-testimonials .car-btn.next {
    right: 2px;
  }

  .after-testimonials .t-card {
    min-height: 250px;
    padding: 24px 20px 20px;
  }

  .after-testimonials .t-card p {
    font-size: 15px;
  }
}


/* Status do formulário Trabalhe Conosco */
.work-note.is-loading { opacity: .75; }
.work-note.is-success { color: #2e8b57; }
.work-note.is-error { color: #b42318; }
#workSubmit:disabled { opacity: .65; cursor: wait; }
