/* Rose Trust Journey — why choose us (homepage only) */

.pmd-trust-journey {
  position: relative;
  padding-block: clamp(4.5rem, 9vw, 8.75rem);
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 85% 20%, rgba(247, 183, 205, 0.35), transparent 55%),
    radial-gradient(ellipse 70% 50% at 10% 80%, rgba(216, 185, 138, 0.2), transparent 50%),
    linear-gradient(168deg, #fffdf9 0%, #fdf0f5 38%, #fff7fa 100%);
}

.pmd-trust-journey__canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.pmd-trust-journey__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(56px);
  animation: pmd-trust-j-blob 22s ease-in-out infinite;
}

.pmd-trust-journey__blob--1 {
  width: min(480px, 75vw);
  height: min(480px, 75vw);
  top: -15%;
  inset-inline-end: -10%;
  background: radial-gradient(circle, rgba(247, 183, 205, 0.65), transparent 68%);
}

.pmd-trust-journey__blob--2 {
  width: min(360px, 60vw);
  height: min(360px, 60vw);
  bottom: -5%;
  inset-inline-start: -12%;
  background: radial-gradient(circle, rgba(217, 79, 140, 0.18), transparent 70%);
  animation-delay: -7s;
}

.pmd-trust-journey__blob--3 {
  width: min(220px, 40vw);
  height: min(220px, 40vw);
  top: 40%;
  inset-inline-start: 35%;
  background: radial-gradient(circle, rgba(216, 185, 138, 0.35), transparent 72%);
  animation-delay: -14s;
}

.pmd-trust-journey__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(217, 79, 140, 0.15);
  animation: none;
}

.pmd-trust-journey__ring--1 {
  width: min(420px, 70vw);
  height: min(420px, 70vw);
  top: 58%;
  inset-inline-end: 28%;
  transform: translate(50%, -50%);
}

.pmd-trust-journey__ring--2 {
  width: min(320px, 55vw);
  height: min(320px, 55vw);
  top: 58%;
  inset-inline-end: 28%;
  transform: translate(50%, -50%);
  border-color: rgba(216, 185, 138, 0.25);
  animation-direction: reverse;
  animation-duration: 24s;
}

@keyframes pmd-trust-j-blob {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-14px, 10px) scale(1.07);
  }
}

@keyframes pmd-trust-j-ring {
  to {
    transform: translate(50%, -50%) rotate(360deg);
  }
}

/* Header */
.pmd-trust-journey__header {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 42rem;
  margin: 0 auto clamp(2.5rem, 5vw, 3.5rem);
}

.pmd-trust-journey__eyebrow {
  display: inline-block;
  font-size: var(--pmd-text-sm);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--pmd-primary);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  padding: 0.4rem 1.15rem;
  border-radius: 999px;
  box-shadow: 0 4px 24px rgba(217, 79, 140, 0.12);
}

.pmd-trust-journey__title {
  font-size: var(--pmd-text-2xl);
  font-weight: 800;
  line-height: 1.32;
  margin: 0.85rem 0 0.7rem;
  color: var(--pmd-text);
}

.pmd-trust-journey__intro {
  margin: 0;
  color: var(--pmd-mauve);
  font-size: var(--pmd-text-base);
  line-height: 1.9;
}

/* Stage — two-column controlled layout */
.pmd-trust-journey__stage {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
}

.pmd-trust-journey__path {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.55;
  z-index: 0;
}

.pmd-trust-journey__path-line {
  animation: none;
}

.pmd-trust-journey__path-line.pmd-path-pulse {
  animation: pmd-path-pulse 8s ease-in-out infinite;
}

@keyframes pmd-trust-j-dash {
  to {
    stroke-dashoffset: -120;
  }
}

.pmd-trust-journey__layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  align-items: center;
  gap: clamp(3rem, 6vw, 6rem);
}

.pmd-trust-journey__core-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;
}

/* Core rose badge */
.pmd-trust-journey__node--core {
  position: relative;
  z-index: 2;
  width: min(320px, 100%);
  min-height: min(320px, 78vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.75rem 1.75rem;
  border-radius: 48% 52% 50% 50% / 52% 48% 52% 48%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.95), transparent 55%),
    radial-gradient(circle at 70% 75%, rgba(247, 183, 205, 0.55), transparent 50%),
    linear-gradient(145deg, #fff7fa 0%, #fdf0f5 45%, #f7b7cd 120%);
  box-shadow:
    0 24px 60px rgba(217, 79, 140, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  animation: pmd-trust-j-core-in 0.9s ease both, pmd-trust-j-core-float 6s ease-in-out infinite;
  animation-delay: 0s, 0.9s;
}

.pmd-trust-journey__core-glow {
  position: absolute;
  inset: -18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 79, 140, 0.22), transparent 68%);
  animation: pmd-trust-j-pulse 4s ease-in-out infinite;
  z-index: -1;
}

.pmd-trust-journey__core-ring {
  position: absolute;
  inset: -8%;
  border-radius: 50%;
  border: 1px solid rgba(217, 79, 140, 0.2);
  animation: pmd-trust-j-pulse 4s ease-in-out infinite 0.5s;
}

.pmd-trust-journey__core-ring--2 {
  inset: -16%;
  border-color: rgba(216, 185, 138, 0.3);
  animation-delay: 1s;
}

@keyframes pmd-trust-j-pulse {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}

@keyframes pmd-trust-j-core-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes pmd-trust-j-core-in {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.pmd-trust-journey__rose {
  position: absolute;
  top: 12%;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 72px;
  opacity: 0.7;
}

.pmd-trust-journey__core-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 0.65rem;
  color: var(--pmd-primary);
  filter: drop-shadow(0 4px 12px rgba(217, 79, 140, 0.25));
}

.pmd-trust-journey__node--core .pmd-trust-journey__body {
  position: relative;
  z-index: 1;
}

.pmd-trust-journey__node--core .pmd-trust-journey__node-title {
  font-size: var(--pmd-text-xl);
  margin-bottom: 0.5rem;
}

.pmd-trust-journey__node--core .pmd-trust-journey__node-text {
  font-size: var(--pmd-text-sm);
  max-width: 26ch;
  margin-inline: auto;
  line-height: 1.7;
}

/* Satellite nodes — staggered vertical flow (no absolute overlap) */
.pmd-trust-journey__orbit {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 2.5vw, 28px);
  position: relative;
  z-index: 2;
}

.pmd-trust-journey__orbit-item {
  position: relative;
  max-width: min(420px, 100%);
  width: 100%;
}

.pmd-trust-journey__orbit-item--orbit-a {
  margin-inline-start: 0;
}

.pmd-trust-journey__orbit-item--orbit-b {
  margin-inline-start: clamp(1.25rem, 4vw, 3.5rem);
}

.pmd-trust-journey__orbit-item--orbit-c {
  margin-inline-start: clamp(0.75rem, 2vw, 1.5rem);
}

.pmd-trust-journey__orbit-item--orbit-d {
  margin-inline-start: clamp(1.5rem, 5vw, 5.5rem);
}

/* Floating capsules */
.pmd-trust-journey__node--capsule {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  width: 100%;
  padding: 0.9rem 1.1rem 0.9rem 0.85rem;
  border-radius: 2rem 0.75rem 2rem 0.75rem;
  background: rgba(255, 253, 249, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 8px 32px rgba(59, 31, 43, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  animation: pmd-trust-j-capsule-in 0.7s ease both;
  animation-delay: calc(0.12s * var(--pmd-trust-i, 1));
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.pmd-trust-journey__node--capsule:hover,
.pmd-trust-journey__node--capsule:focus-within {
  transform: translateY(-4px);
  box-shadow:
    0 16px 40px rgba(217, 79, 140, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.pmd-trust-journey__capsule-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: 0.55rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pmd-primary), var(--pmd-gold));
  box-shadow: 0 0 12px rgba(217, 79, 140, 0.45);
}

.pmd-trust-journey__capsule-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--pmd-primary);
  background: linear-gradient(135deg, rgba(247, 183, 205, 0.5), rgba(255, 247, 250, 0.8));
  transition: box-shadow 0.35s ease;
}

.pmd-trust-journey__node--capsule:hover .pmd-trust-journey__capsule-icon,
.pmd-trust-journey__node--capsule:focus-within .pmd-trust-journey__capsule-icon {
  box-shadow: 0 0 0 4px rgba(247, 183, 205, 0.4);
}

.pmd-trust-journey__body {
  flex: 1;
  min-width: 0;
}

.pmd-trust-journey__node-title {
  font-size: var(--pmd-text-base);
  font-weight: 800;
  line-height: 1.4;
  margin: 0 0 0.25rem;
  color: var(--pmd-text);
}

.pmd-trust-journey__node-text {
  margin: 0;
  font-size: var(--pmd-text-sm);
  line-height: 1.65;
  color: var(--pmd-mauve);
}

.pmd-trust-journey__svg {
  width: 22px;
  height: 22px;
}

.pmd-trust-journey__node--core .pmd-trust-journey__svg {
  width: 28px;
  height: 28px;
}

@keyframes pmd-trust-j-capsule-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Tablet — single column, reduced stagger */
@media (max-width: 900px) {
  .pmd-trust-journey__layout {
    grid-template-columns: 1fr;
    gap: clamp(2rem, 5vw, 2.75rem);
  }

  .pmd-trust-journey__path {
    opacity: 0.35;
  }

  .pmd-trust-journey__ring--1,
  .pmd-trust-journey__ring--2 {
    top: 22%;
    inset-inline-end: 50%;
  }

  .pmd-trust-journey__node--core {
    min-height: auto;
    padding: 1.75rem 1.5rem;
    margin-inline: auto;
  }

  .pmd-trust-journey__orbit-item--orbit-b,
  .pmd-trust-journey__orbit-item--orbit-c,
  .pmd-trust-journey__orbit-item--orbit-d {
    margin-inline-start: 0;
  }

  .pmd-trust-journey__orbit-item {
    max-width: 100%;
  }
}

/* Mobile — vertical trust journey */
@media (max-width: 720px) {
  .pmd-trust-journey {
    padding-block: clamp(3rem, 8vw, 4.5rem);
  }

  .pmd-trust-journey__path {
    display: none;
  }

  .pmd-trust-journey__ring--1,
  .pmd-trust-journey__ring--2 {
    display: none;
  }

  .pmd-trust-journey__layout {
    gap: 1.25rem;
    padding-inline-start: 1.25rem;
    padding-inline-end: 0.25rem;
  }

  .pmd-trust-journey__stage::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    inset-inline-start: 0.35rem;
    width: 2px;
    background: repeating-linear-gradient(
      180deg,
      rgba(217, 79, 140, 0.45) 0,
      rgba(217, 79, 140, 0.45) 6px,
      transparent 6px,
      transparent 14px
    );
    border-radius: 2px;
    z-index: 0;
  }

  .pmd-trust-journey__node--core {
    width: 100%;
    border-radius: 2rem 2rem 2rem 0.75rem;
    animation: pmd-trust-j-capsule-in 0.7s ease both;
  }

  .pmd-trust-journey__core-glow,
  .pmd-trust-journey__core-ring,
  .pmd-trust-journey__core-ring--2 {
    display: none;
  }

  .pmd-trust-journey__node--core .pmd-trust-journey__node-text {
    max-width: none;
  }

  .pmd-trust-journey__orbit {
    gap: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pmd-trust-journey__blob,
  .pmd-trust-journey__ring,
  .pmd-trust-journey__path-line,
  .pmd-trust-journey__node--core,
  .pmd-trust-journey__node--capsule,
  .pmd-trust-journey__core-glow,
  .pmd-trust-journey__core-ring {
    animation: none !important;
  }

  .pmd-trust-journey__node--capsule:hover,
  .pmd-trust-journey__node--capsule:focus-within {
    transform: none;
  }
}
