
/* v25 — Secção "Porquê Contratar?" com flip horizontal */

.why-hire-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 18%, rgba(199,161,89,.10), transparent 32%),
    linear-gradient(180deg, #fbfaf7 0%, #f5f2ec 100%);
  border-top: 1px solid rgba(8,40,71,.06);
  border-bottom: 1px solid rgba(8,40,71,.06);
}

.why-hire-section::before {
  content: "";
  position: absolute;
  right: -140px;
  top: -180px;
  width: 460px;
  height: 460px;
  border: 1px solid rgba(199,161,89,.18);
  border-radius: 50%;
  pointer-events: none;
}

.why-hire-head {
  align-items: flex-start !important;
  gap: 34px;
}

.why-hire-head h2 {
  max-width: 620px;
}

.why-hire-intro {
  max-width: 520px;
  margin: 12px 0 0;
  color: #506073;
  font-size: 16px;
  line-height: 1.72;
}

.why-hire-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  perspective: 1500px;
}

.why-card {
  min-height: 348px;
  perspective: 1400px;
}

.why-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 348px;
  transform-style: preserve-3d;
  transition: transform .78s cubic-bezier(.22,.61,.36,1);
}

.why-card:hover .why-card-inner,
.why-card:focus-within .why-card-inner {
  transform: rotateY(180deg);
}

.why-card-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 348px;
  padding: 30px 26px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border: 1px solid rgba(8,40,71,.08);
  background: rgba(255,255,255,.82);
  box-shadow: 0 24px 58px rgba(8,40,71,.09);
  overflow: hidden;
}

.why-card-face::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(199,161,89,.14), transparent 38%),
    radial-gradient(circle at 82% 18%, rgba(8,40,71,.08), transparent 36%);
  opacity: .72;
  pointer-events: none;
}

.why-card-front {
  color: var(--ink);
}

.why-card-back {
  transform: rotateY(180deg);
  background:
    linear-gradient(140deg, rgba(8,40,71,.98), rgba(13,52,94,.96)),
    radial-gradient(circle at 80% 12%, rgba(199,161,89,.24), transparent 34%);
  color: #fff;
  border-color: rgba(199,161,89,.28);
}

.why-number {
  position: relative;
  z-index: 1;
  color: rgba(199,161,89,.86);
  font-family: var(--serif);
  font-size: 46px;
  line-height: 1;
  font-weight: 400;
}

.why-icon {
  position: relative;
  z-index: 1;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(199,161,89,.34);
  background: rgba(255,255,255,.54);
  color: var(--gold);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.54);
}

.why-fa {
  font-size: 23px !important;
  color: currentColor !important;
}

.why-card h3,
.why-card h4 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.12;
}

.why-card h3 {
  color: var(--ink);
  font-size: 27px;
  max-width: 230px;
}

.why-card h4 {
  color: #fff;
  font-size: 25px;
  margin-bottom: 16px;
}

.why-card-back p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgba(235,242,249,.88);
  font-size: 14.5px;
  line-height: 1.65;
}

.why-action {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.why-arrow {
  font-size: 13px !important;
  color: var(--gold) !important;
  transition: transform .28s ease;
}

.why-card:hover .why-arrow {
  transform: translateX(5px);
}

.why-card:hover .why-icon {
  animation: whyIconFloat .78s ease both;
}

@keyframes whyIconFloat {
  0% { transform: translateY(0); }
  46% { transform: translateY(-7px); }
  100% { transform: translateY(0); }
}

@media (max-width: 1180px) {
  .why-hire-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .why-card,
  .why-card-inner,
  .why-card-face {
    min-height: 320px;
  }
}

@media (max-width: 760px) {
  .why-hire-head {
    display: block !important;
  }

  .why-hire-intro {
    margin-top: 18px;
  }

  .why-hire-grid {
    grid-template-columns: 1fr;
  }

  .why-card,
  .why-card-inner,
  .why-card-face {
    min-height: auto;
  }

  .why-card-inner {
    transform: none !important;
    display: grid;
  }

  .why-card-face {
    position: relative;
    min-height: auto;
    transform: none !important;
    backface-visibility: visible;
  }

  .why-card-front {
    min-height: 250px;
  }

  .why-card-back {
    margin-top: -1px;
    padding-top: 28px;
  }

  .why-action {
    display: none;
  }
}
