/* =============================================================
   MOTRONIX — PÁGINA REMAP DE MOTOR
   Depende de style.css e autotuner.css (componentes at-*).
   ============================================================= */

/* ---- Foto do topo --------------------------------------------- */
.rm-photo {
  position: relative;
  margin: 0;
  width: 100%;
  max-width: 560px;
  justify-self: end;
}
.rm-photo::before {
  content: '';
  position: absolute; inset: -10%;
  background: radial-gradient(circle at 60% 50%, rgba(229, 90, 16, 0.30), transparent 60%);
  filter: blur(30px);
}
.rm-photo picture { position: relative; display: block; }
.rm-photo img {
  display: block;
  width: 100%; height: auto;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.85);
}
.rm-float-a { left: -28px; top: 10%; }
.rm-float-b { right: -20px; bottom: 10%; }

/* Arte quadrada no topo */
.rm-photo-art { max-width: 500px; }
.rm-photo-art img { border-radius: 22px; }

/* ---- Galeria de modelos --------------------------------------- */
.rm-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.rm-art {
  position: relative;
  display: block;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg3);
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.rm-art picture, .rm-art img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 1 / 1; object-fit: cover;
}
.rm-art img { transition: transform .6s var(--ease); }
.rm-art:hover {
  transform: translateY(-4px);
  border-color: var(--accent-line);
  box-shadow: 0 30px 60px -30px rgba(229, 90, 16, 0.45);
}
.rm-art:hover img { transform: scale(1.03); }
.rm-art-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 18px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.rm-art-bar strong { display: block; font-size: 1rem; font-weight: 650; }
.rm-art-bar small { display: block; font-size: 0.8125rem; color: var(--text-dim); }
.rm-art-cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.8125rem; font-weight: 600; color: var(--accent-hi);
}
.rm-art-cta .icon { transition: transform var(--trans); }
.rm-art:hover .rm-art-cta .icon { transform: translateX(3px); }

/* ---- Stages --------------------------------------------------- */
.rm-stages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.rm-stage {
  display: flex; flex-direction: column;
  padding: 32px 30px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.rm-stage:hover { transform: translateY(-4px); border-color: var(--border2); }
.rm-stage-hi {
  border-color: var(--accent-line);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(229, 90, 16, 0.20), transparent 60%),
    var(--surface);
}
.rm-stage-tag {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px;
  border: 1px solid var(--border2); color: var(--text-dim);
  margin-bottom: 18px;
}
.rm-stage-hi .rm-stage-tag { background: var(--accent); border-color: transparent; color: #fff; }
.rm-stage h3 { font-size: 1.375rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 10px; }
.rm-stage p { font-size: 0.9375rem; color: var(--text-2); line-height: 1.65; margin-bottom: 22px; }
.rm-stage ul {
  list-style: none; padding: 18px 0 0; margin-top: auto;
  border-top: 1px solid var(--border);
  display: grid; gap: 10px;
}
.rm-stage li { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; }
.rm-stage li .icon { color: var(--accent-hi); }

/* ---- Timeline de 5 passos ------------------------------------- */
.rm-timeline { grid-template-columns: repeat(5, 1fr); }

/* ---- Incluso + ficha ------------------------------------------ */
.rm-split {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
  align-items: start;
}
.rm-spec {
  padding: 28px;
  border-radius: 18px;
  border: 1px solid var(--accent-line);
  background:
    radial-gradient(100% 60% at 100% 0%, rgba(229, 90, 16, 0.14), transparent 60%),
    var(--surface);
}
.rm-spec-head {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.rm-spec-head .icon { color: var(--accent-hi); }
.rm-spec dl { margin: 0 0 24px; }
.rm-spec dl div {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
}
.rm-spec dt { color: var(--text-dim); }
.rm-spec dd { margin: 0; font-weight: 600; text-align: right; }
.rm-acc { color: var(--accent-hi); }
.rm-note { margin-top: 12px; font-size: 0.8125rem; color: var(--text-dim); text-align: center; }

/* ---- Responsivo ----------------------------------------------- */
@media (max-width: 1024px) {
  .rm-photo { justify-self: center; }
  .rm-stages { grid-template-columns: 1fr; }
  .rm-gallery { grid-template-columns: repeat(2, 1fr); }
  .rm-timeline { grid-template-columns: repeat(3, 1fr); }
  .rm-split { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .rm-timeline { grid-template-columns: 1fr; }
  .rm-gallery { grid-template-columns: 1fr; }
  .rm-float-a { left: -6px; top: -14px; }
  .rm-float-b { right: -6px; bottom: -14px; }
}
