/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  padding: 30px 26px;
  transition: border-color 240ms ease, box-shadow 280ms ease, transform 280ms var(--ease);
}

.service-card:hover {
  border-color: rgba(192, 116, 63, 0.32);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.service-card__num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--copper);
  letter-spacing: 0.06em;
}

.service-card h2 {
  margin: 0;
  font-size: 1.4rem;
}

.service-card p {
  margin: 0;
  flex: 1;
  color: var(--muted);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: var(--bg-tint);
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 12px;
}

.service-card--cta {
  border-color: var(--copper);
  background-color: var(--dark);
  background-image: url("../images/texture.webp");
  background-position: center;
  background-size: cover;
  color: var(--on-dark);
}

.service-card--cta p {
  color: var(--on-dark-muted);
}

.service-card--cta .service-card__num {
  color: var(--copper-bright);
}

.service-card__link {
  margin-top: 6px;
  color: var(--copper-bright);
  font-weight: 600;
  transition: transform 200ms var(--ease);
}

.service-card--cta:hover .service-card__link {
  transform: translateX(4px);
}

.service-card p strong {
  display: block;
  color: var(--ink);
  font-weight: 900;
  margin-bottom: 6px;
}

.finish-grid .finish-card {
  border-top: 2px solid rgba(192, 116, 63, 0.78);
}

.finish-card--care {
  background:
    linear-gradient(180deg, #fff, rgba(248, 246, 242, 0.82));
  box-shadow: var(--shadow);
}

/* ---------- Materials ---------- */
.material-grid {
  align-items: stretch;
}

.material-card {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  box-shadow: var(--shadow-sm);
  min-height: 240px;
  padding: 24px;
  transition: border-color 240ms ease, box-shadow 280ms ease, transform 280ms var(--ease);
}

.material-card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.material-card h3 {
  margin: 18px 0 8px;
  font-size: 1.3rem;
}

.material-card p {
  margin: 0;
  color: var(--muted);
}

.swatch {
  display: block;
  width: 76px;
  height: 76px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  box-shadow: inset 0 0 0 8px rgba(255, 255, 255, 0.45);
  transition: transform 280ms var(--ease);
}

.material-card:hover .swatch {
  transform: rotate(3deg) scale(1.05);
}

.swatch--pla {
  background: #f4f6f5;
}

.swatch--petg {
  background: var(--copper);
}

.swatch--abs {
  background: #303941;
}

.swatch--marble {
  background: repeating-linear-gradient(45deg, #f7f7f4, #f7f7f4 9px, #cfd4d2 10px, #cfd4d2 13px);
}

.swatch--clear {
  background: linear-gradient(135deg, rgba(220, 224, 228, 0.5), rgba(255, 255, 255, 0.9));
}

.swatch--paint {
  background: linear-gradient(135deg, #e8d5b7, var(--copper-bright) 50%, var(--copper-dark));
}

/* ---------- Real filament swatches ---------- */
.swatch--plaplus {
  background: #f4f6f5;
}

.swatch--petghf {
  background: linear-gradient(135deg, #d6dbdd, #ffffff 55%, #c5cacd);
}

.swatch--petgcf {
  background: repeating-linear-gradient(45deg, #23262b, #23262b 3px, #2d3137 3px, #2d3137 6px);
}

.material-note {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Page facts (on dark page-title) ---------- */
.service-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 30px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.service-facts li {
  position: relative;
  padding-left: 16px;
  color: var(--on-dark-muted);
  font-size: 0.95rem;
}

.service-facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--copper-bright);
}

.service-facts strong {
  color: var(--on-dark);
  font-weight: 700;
}

/* ---------- Equipment (two real machines, dark) ---------- */
.equipment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.equipment-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--on-dark-line);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.03);
}

.equipment-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    radial-gradient(120% 100% at 75% 12%, rgba(214, 141, 85, 0.26), transparent 56%),
    linear-gradient(155deg, #1c1e24, #0e0f12);
}

.equipment-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.equipment-card__media--laser::after {
  content: "";
  position: absolute;
  inset: 0;
  display: none;
}

.equipment-card__media-label {
  position: absolute;
  left: 16px;
  bottom: 12px;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--r-pill);
  background: rgba(14, 15, 18, 0.62);
  color: var(--on-dark);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  padding: 7px 11px;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.equipment-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
}

.equipment-card__role {
  color: var(--copper-bright);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.equipment-card__body h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
}

.equipment-card__body p {
  margin: 0;
  color: var(--on-dark-muted);
}

.equipment-card .tag-list {
  margin-top: 6px;
}

.equipment-card .tag-list li {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--on-dark-line);
  color: var(--on-dark);
}

/* ---------- Final CTA ---------- */
.servicos-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  max-width: 640px;
}

.servicos-cta h2 {
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.04;
}

.servicos-cta p {
  margin: 0;
  color: var(--on-dark-muted);
  font-size: 1.1rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .equipment-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 840px) {
  .servicos-cta {
    align-items: center;
    text-align: center;
    max-width: 100%;
  }
}
