/* Demo-kaarten */
.ros-demos {
  position: relative;
  background: #1A1F26;
  padding: 100px 24px;
}
.ros-demos-head {
  text-align: center;
  margin: 0 auto 56px;
}
.ros-demos-kicker {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #1E90E8;
  margin: 0 0 10px;
  padding: 0;
}
.ros-demos-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
  color: #F3F5F8;
  margin: 0;
  padding: 0;
}
.ros-demos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Eén kaart */
.ros-card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  background: #11151A;
}
.ros-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(.2,.7,.2,1);
}
.ros-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17,21,26,0.92) 0%, rgba(17,21,26,0.35) 45%, rgba(17,21,26,0) 70%);
  transition: background 0.5s ease;
}
.ros-card-text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 28px;
}
.ros-card h3 {
  font-size: 26px;
  font-weight: 600;
  color: #F3F5F8;
  margin: 0;
  padding: 0;
}
.ros-card p,
.ros-card-link {
  display: block;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(10px);
  transition: max-height 0.5s ease, opacity 0.4s ease, transform 0.5s ease, margin 0.5s ease;
}
.ros-card p {
  font-size: 16px;
  line-height: 1.5;
  color: #D5DAE1;
  margin: 0;
  padding: 0;
}
.ros-card-link {
  font-size: 15px;
  font-weight: 600;
  color: #1E90E8;
}

/* Hover en toetsenbord: vergroten en tekst tonen */
.ros-card:hover img,
.ros-card:focus-visible img {
  transform: scale(1.07);
}
.ros-card:hover::after,
.ros-card:focus-visible::after {
  background: linear-gradient(to top, rgba(17,21,26,0.95) 0%, rgba(17,21,26,0.6) 55%, rgba(17,21,26,0.2) 100%);
}
.ros-card:hover p,
.ros-card:hover .ros-card-link,
.ros-card:focus-visible p,
.ros-card:focus-visible .ros-card-link {
  max-height: 120px;
  opacity: 1;
  transform: none;
}
.ros-card:hover p,
.ros-card:focus-visible p { margin-top: 10px; }
.ros-card:hover .ros-card-link,
.ros-card:focus-visible .ros-card-link { margin-top: 16px; }
.ros-card:focus-visible {
  outline: 2px solid #1E90E8;
  outline-offset: 4px;
}

/* Telefoon en tablet zonder muis: alles meteen zichtbaar */
@media (hover: none) {
  .ros-card p,
  .ros-card-link { max-height: 120px; opacity: 1; transform: none; }
  .ros-card p { margin-top: 10px; }
  .ros-card-link { margin-top: 16px; }
}
@media (max-width: 900px) {
  .ros-demos-grid { grid-template-columns: 1fr; max-width: 480px; }
}

/* Divi-ruimte weghalen */
.et_pb_section:has(.ros-demos),
.et_pb_row:has(.ros-demos),
.et_pb_column:has(.ros-demos) {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
.et_pb_module:has(.ros-demos) { margin: 0 !important; }

@media (prefers-reduced-motion: reduce) {
  .ros-card img, .ros-card::after, .ros-card p, .ros-card-link { transition: none; }
}
