/* Motif: Badge Grid — shields, certification badges, ribbons, stamps */

/* ---------- Hero accent: shield badge in corner ---------- */
.motif-hero-accent {
  position: relative;
  overflow: hidden;
}

.motif-hero-accent::before {
  content: "";
  position: absolute;
  top: -30px;
  right: -30px;
  width: 220px;
  height: 220px;
  opacity: 0.07;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 240'%3E%3Cpath d='M100 10 L180 50 L180 130 C180 180 140 220 100 235 C60 220 20 180 20 130 L20 50 Z' fill='%23ffffff' stroke='%23ffffff' stroke-width='3'/%3E%3Cpath d='M100 60 L115 90 L148 95 L123 118 L130 150 L100 134 L70 150 L77 118 L52 95 L85 90 Z' fill='%23ffffff'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* ---------- Section divider: horizontal rule with badge anchor ---------- */
.motif-divider {
  position: relative;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.motif-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 5%;
  right: 5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1) 20%, rgba(0, 0, 0, 0.1) 80%, transparent);
}

.motif-divider::after {
  content: "";
  position: relative;
  z-index: 1;
  width: 36px;
  height: 42px;
  background-color: var(--surface, #fff);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 42'%3E%3Cpath d='M18 2 L33 10 L33 24 C33 33 26 39 18 41 C10 39 3 33 3 24 L3 10 Z' fill='none' stroke='%23d97706' stroke-width='1.5'/%3E%3Cpath d='M13 20 L17 24 L24 16' fill='none' stroke='%23d97706' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* ---------- Ribbon accent ---------- */
.motif-ribbon {
  position: relative;
  display: inline-block;
  padding: 6px 24px 6px 16px;
  background: var(--accent, #d97706);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.motif-ribbon::after {
  content: "";
  position: absolute;
  right: -12px;
  top: 0;
  width: 0;
  height: 0;
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
  border-left: 12px solid var(--accent, #d97706);
}

/* ---------- Stamp decoration ---------- */
.motif-stamp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border: 3px solid var(--accent, #d97706);
  border-radius: 50%;
  transform: rotate(-12deg);
  opacity: 0.7;
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--accent, #d97706);
  letter-spacing: 0.08em;
}

/* ---------- Icon: shield and certificate ---------- */
.motif-icon {
  display: inline-block;
  width: 28px;
  height: 28px;
  vertical-align: middle;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.motif-icon--shield {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 28'%3E%3Cpath d='M12 1 L22 5 L22 14 C22 21 17 26 12 27 C7 26 2 21 2 14 L2 5 Z' fill='none' stroke='%231e3a5f' stroke-width='1.5'/%3E%3Cpath d='M8 13 L11 16 L17 10' fill='none' stroke='%231e3a5f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.motif-icon--certificate {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e3a5f' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='3' width='20' height='14' rx='2'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3Cline x1='12' y1='13' x2='12' y2='21'/%3E%3Cline x1='9' y1='21' x2='12' y2='18'/%3E%3Cline x1='15' y1='21' x2='12' y2='18'/%3E%3C/svg%3E");
}

/* ---------- Badge grid background decoration ---------- */
.motif-bg-badges {
  position: relative;
}

.motif-bg-badges::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.03;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 140'%3E%3Cpath d='M60 5 L110 25 L110 75 C110 105 85 130 60 138 C35 130 10 105 10 75 L10 25 Z' fill='%23000' stroke='none'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 120px 140px;
}
