/* SOLUTERRA — Services · Grid editorial (6 serviços visíveis) */

.services-v4 {
  position: relative;
  isolation: isolate;
  padding: clamp(72px, 11vw, 140px) 0;
  overflow: hidden;
  background: var(--ivory);
}
.services-v4-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(80% 60% at 0% 0%, rgba(85,67,30,.08), transparent 55%),
    radial-gradient(70% 60% at 100% 100%, rgba(168,121,69,.08), transparent 55%),
    linear-gradient(180deg, var(--ivory) 0%, var(--cream-light) 100%);
}
.services-v4-bg::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 22% 28%, rgba(85,67,30,.035) 0 1px, transparent 2px),
    radial-gradient(circle at 75% 60%, rgba(85,67,30,.025) 0 1px, transparent 2px);
  background-size: 13px 13px, 17px 17px;
  opacity: .5;
  pointer-events: none;
}
.services-v4 > .container { position: relative; z-index: 1; }

/* ===== Header ===== */
.services-v4-head {
  display: grid;
  gap: 28px;
  align-items: end;
  margin-bottom: 52px;
}
@media (min-width: 900px) {
  .services-v4-head { grid-template-columns: 1.5fr 1fr; gap: 64px; }
}
.services-v4-head .eyebrow.on-dark { color: var(--gold-deep); }
.services-v4-head .eyebrow.on-dark::before { background: var(--gold-aged); }
.services-v4-head h2 { color: var(--black); }
.services-v4-head em.bronze-light { color: var(--gold-deep); font-style: italic; font-weight: 400; }
.services-v4-lede {
  color: var(--text-muted);
  max-width: 460px;
  font-size: 16px;
  line-height: 1.7;
}
@media (min-width: 900px) {
  .services-v4-lede { padding-bottom: 6px; }
}

/* ===== Grid ===== */
.sv4-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
@media (min-width: 640px) {
  .sv4-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .sv4-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ===== Card / tile ===== */
.sv4-card { display: flex; }
.sv4-card-inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: linear-gradient(180deg, #fffefb 0%, var(--cream-light) 100%);
  border: 1px solid rgba(168,121,69,.20);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  box-shadow:
    0 1px 2px rgba(85,67,30,.04),
    0 14px 32px -22px rgba(85,67,30,.22);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .4s var(--ease-out);
}
.sv4-card-inner::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-light), var(--gold-deep));
  opacity: 0;
  transition: opacity .4s var(--ease-out);
}
.sv4-card-inner:hover {
  transform: translateY(-4px);
  border-color: rgba(168,121,69,.42);
  box-shadow:
    0 1px 2px rgba(85,67,30,.05),
    0 26px 50px -26px rgba(85,67,30,.32);
}
.sv4-card-inner:hover::before { opacity: 1; }

/* feature card 01 — top accent always on */
.sv4-card--feature .sv4-card-inner::before { opacity: 1; }

/* Top zone — number + tag */
.sv4-card-side {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 26px 28px 0;
  background: transparent;
  border: 0;
}
.sv4-card-side::after { display: none; }
.sv4-num {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: 38px;
  line-height: 1;
  color: var(--gold-deep);
  letter-spacing: -0.03em;
  margin: 0;
}
.sv4-tag {
  display: inline-flex;
  align-items: center;
  padding: 7px 13px;
  background: rgba(85,67,30,.06);
  border: 1px solid rgba(168,121,69,.26);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  white-space: nowrap;
}

/* Hide the homepage bullet list — detail lives on the service page */
.sv4-list { display: none; }

/* Body — icon, title, desc, cta */
.sv4-card-body {
  padding: 22px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}
.sv4-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--ivory);
  border: 1px solid var(--gold-aged);
  display: grid;
  place-items: center;
  color: var(--gold-deep);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
  margin-bottom: 2px;
}
.sv4-icon svg { width: 30px; height: 30px; }
.sv4-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 23px;
  line-height: 1.16;
  color: var(--black);
  letter-spacing: -0.01em;
  margin: 0;
}
.sv4-desc {
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}
.sv4-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  padding-top: 6px;
  color: var(--gold-deep);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  align-self: flex-start;
  white-space: nowrap;
  transition: gap .3s var(--ease-out), color .3s var(--ease-out);
}
.sv4-cta:hover { gap: 14px; color: var(--black); }
.sv4-cta > span:first-child { position: relative; }
.sv4-cta > span:first-child::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease-out);
}
.sv4-cta:hover > span:first-child::after { transform: scaleX(1); }
.sv4-cta-arrow {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(168,121,69,.14);
  color: var(--gold-deep);
  transition: transform .3s var(--ease-out), background .3s var(--ease-out);
}
.sv4-cta:hover .sv4-cta-arrow {
  transform: translateX(3px);
  background: var(--gold-deep);
  color: var(--ivory);
}

/* ===== Foot ===== */
.services-v4-foot {
  margin-top: 44px;
  padding-top: 30px;
  border-top: 1px solid rgba(168,121,69,.18);
  display: grid;
  gap: 24px;
  align-items: center;
}
@media (min-width: 820px) {
  .services-v4-foot { grid-template-columns: 1fr auto; }
}
.sv4-foot-note {
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--text-muted);
}
.sv4-foot-note em { color: var(--gold-deep); font-style: italic; }
.sv4-foot-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  align-items: center;
}
@media (min-width: 820px) {
  .sv4-foot-cta { justify-content: flex-end; }
}
.sv4-foot-label {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--text-muted);
}
.sv4-foot-label em { color: var(--gold-deep); font-style: italic; }

/* ===== Mobile ===== */
@media (max-width: 720px) {
  .services-v4 { padding: 64px 0; }
  .services-v4-head { margin-bottom: 32px; gap: 18px; }
  .services-v4-head h2 { font-size: 28px; }
  .services-v4-lede { font-size: 15px; }

  /* Grid vira carrossel deslizável */
  .sv4-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 14px;
    scrollbar-width: none;
    margin: 0 -20px;
    padding: 4px 20px 6px;
    scroll-padding-left: 20px;
  }
  .sv4-grid::-webkit-scrollbar { display: none; }
  .sv4-card {
    flex: 0 0 82vw;
    max-width: 330px;
    scroll-snap-align: center;
  }
  .sv4-card-inner { height: 100%; }

  .sv4-num { font-size: 32px; }
  .sv4-title { font-size: 21px; }
  .sv4-card-side { padding: 22px 22px 0; }
  .sv4-card-body { padding: 18px 22px 24px; }
  .services-v4-foot { margin-top: 30px; }
  .sv4-foot-note { font-size: 16px; }
  .sv4-foot-cta { width: 100%; }
  .sv4-foot-cta .btn { width: 100%; justify-content: center; }
}

@media (max-width: 400px) {
  .sv4-card { flex: 0 0 86vw; }
}
