/* ===== Serviços ===== */
.services-sec {
  background:
    radial-gradient(60% 40% at 100% 0%, rgba(255, 107, 53, .08), transparent 70%),
    var(--white);
}

.services-sec__head {
  display: grid;
  gap: 1.5rem;
  align-items: end;
  margin-bottom: 2.5rem;
}
.services-sec__head .section__lead { max-width: 560px; }
.services-sec__head .btn { justify-self: start; }
.services-sec__head .btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ----- Grade de cards ----- */
.svc-grid {
  display: grid;
  gap: 1rem;
}

.svc {
  --mx: 50%;
  --my: 50%;
  position: relative;
  display: flex;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  background: var(--white);
  transition: border-color .3s, box-shadow .3s, transform .3s, opacity .6s;
}
/* luz laranja que segue o mouse */
.svc::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 107, 53, .12), transparent 45%);
  opacity: 0;
  transition: opacity .3s;
}
.svc:hover {
  border-color: rgba(255, 107, 53, .5);
  box-shadow: 0 18px 40px -20px rgba(255, 107, 53, .45);
  transform: translateY(-3px);
}
.svc:hover::before { opacity: 1; }

.svc__body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  width: 100%;
  padding: 1.5rem;
}

.svc__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: .4rem;
  border-radius: 14px;
  background: var(--black);
  transition: transform .4s cubic-bezier(.34, 1.56, .64, 1), background .3s;
}
.svc__icon svg { width: 24px; height: 24px; fill: none; stroke: var(--orange); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svc:hover .svc__icon { transform: rotate(-8deg) scale(1.08); background: var(--orange); }
.svc:hover .svc__icon svg { stroke: var(--white); }

.svc__title { font-size: 1.6rem; font-weight: 800; text-transform: uppercase; }
.svc__desc { color: var(--gray-500); font-size: .95rem; }

.svc__tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: .2rem 0 0; padding: 0; list-style: none; }
.svc__tags li {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .3rem .65rem;
  border-radius: 999px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  font-size: .78rem;
  font-weight: 500;
  color: #3a3a3a;
}
.svc__tags svg { width: 12px; height: 12px; fill: none; stroke: var(--orange); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

.svc__cta {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  margin-top: auto;
  padding-top: .6rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--orange);
}
.svc__cta svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s; }
.svc__cta:hover svg { transform: translate(2px, -2px); }
.svc__cta:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

/* ----- Cards grandes com foto ----- */
.svc--feature { min-height: 380px; border-color: transparent; background: var(--black); color: var(--white); }
.svc__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s ease;
}
.svc--feature:hover .svc__photo { transform: scale(1.05); }
.svc__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(26, 26, 26, .15) 0%, rgba(26, 26, 26, .55) 45%, rgba(26, 26, 26, .95) 100%);
}
.svc--feature .svc__body { justify-content: flex-end; }
.svc--feature .svc__icon { background: var(--orange); }
.svc--feature .svc__icon svg { stroke: var(--white); }
.svc--feature .svc__title { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.svc--feature .svc__desc { color: rgba(255, 255, 255, .8); max-width: 460px; }
.svc--feature .svc__tags li { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .15); color: var(--white); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.svc--feature .svc__cta { margin-top: .4rem; }

/* ----- Tamanhos de tela ----- */
@media (min-width: 640px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .svc--feature { grid-column: span 2; }
}

@media (min-width: 900px) {
  .services-sec__head { grid-template-columns: 1fr auto; }
}

@media (min-width: 1024px) {
  /* bento: revisão 2x2 no canto, peças 2x1 embaixo à direita */
  .svc-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(250px, auto); }
  .svc--revisao { grid-column: span 2; grid-row: span 2; }
  .svc--wide { grid-column: span 2; }
}
