/* ==========================================
   PROCESS STEPS SECTION
   Royal Bronze Theme
   ========================================== */

.process-steps-section {
  position: relative;
  padding: 80px 20px 120px;
  margin-top: -120px;
  overflow: hidden; background: transparent; z-index: 3;
}

.process-container { max-width: 1400px; margin: 0 auto; }

.process-header {
  text-align: center; margin-bottom: 80px;
  padding-top: 28px;
  opacity: 0; transform: translateY(30px);
  transition: all 0.8s ease;
}

.process-header.visible { opacity: 1; transform: translateY(0); }

/* Kicker — Inter */
.process-kicker {
  font-family: var(--font-body);
  font-size: var(--text-label);
  font-weight: var(--weight-label);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(44, 62, 80, 0.6);
  margin-bottom: 16px;
}

html[data-theme="dim"] .process-kicker { color: rgba(176, 141, 87, 0.7); }

/* Title — Cormorant Garamond */
.process-title {
  font-family: var(--font-heading);
  font-size: var(--text-h1);
  font-weight: var(--weight-h1);
  font-style: normal;
  line-height: 1.1;
  color: #2C3E50; margin-bottom: 16px;
  letter-spacing: -0.02em;
}

html[data-theme="dim"] .process-title { color: #B08D57; }

/* Subtitle — Inter */
.process-subtitle {
  font-family: var(--font-body);
  font-size: var(--text-lead);
  font-weight: var(--weight-lead);
  color: rgba(44, 62, 80, 0.7);
  max-width: 600px; margin: 0 auto;
}

html[data-theme="dim"] .process-subtitle { color: rgba(245, 242, 237, 0.7); }

/* Timeline */
.process-timeline { position: relative; padding: 60px 0; }

.timeline-book-bg {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 100%; max-width: 10000px; aspect-ratio: 3 / 2;
  z-index: -1; pointer-events: none;
  background-repeat: no-repeat; background-position: center; background-size: contain;
  opacity: 0.12;
}

html[data-theme="dim"] .timeline-book-bg { opacity: 0.15; }

.timeline-line {
  position: absolute; top: 115px; left: 0;
  height: 3px; width: 100%; z-index: 0;
  background: linear-gradient(90deg, rgba(176,141,87,0.15) 0%, rgba(176,141,87,0.08) 100%);
}

.timeline-line-progress {
  position: absolute; top: 0; left: 0; height: 100%;
  background: linear-gradient(90deg, #B08D57, #d4b07a);
  width: 0%; transition: width 2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 20px rgba(176,141,87,0.35);
}

.timeline-line.visible .timeline-line-progress { width: 100%; }

.process-steps {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 40px; position: relative; z-index: 1;
}

.process-step {
  text-align: center;
  opacity: 0; transform: translateY(40px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.process-step.visible { opacity: 1; transform: translateY(0); }

.process-step:nth-child(1) { transition-delay: 0.1s; }
.process-step:nth-child(2) { transition-delay: 0.2s; }
.process-step:nth-child(3) { transition-delay: 0.3s; }
.process-step:nth-child(4) { transition-delay: 0.4s; }
.process-step:nth-child(5) { transition-delay: 0.5s; }

.step-icon-wrapper {
  position: relative; width: 120px; height: 120px;
  margin: 0 auto 24px; cursor: pointer;
  animation: float 3s ease-in-out infinite;
}

.step-icon-wrapper:nth-child(1) { animation-delay: 0s; }
.step-icon-wrapper:nth-child(2) { animation-delay: 0.2s; }
.step-icon-wrapper:nth-child(3) { animation-delay: 0.4s; }
.step-icon-wrapper:nth-child(4) { animation-delay: 0.6s; }
.step-icon-wrapper:nth-child(5) { animation-delay: 0.8s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

.step-icon-bg {
  position: absolute; inset: 0;
  background: rgba(176,141,87,0.08);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 2px solid rgba(176,141,87,0.2); border-radius: 50%;
  transition: all 0.4s ease;
  box-shadow: 0 8px 32px rgba(176,141,87,0.12), inset 0 1px 0 rgba(176,141,87,0.15);
}

html[data-theme="dim"] .step-icon-bg { background: rgba(176,141,87,0.12); border-color: rgba(176,141,87,0.25); }

.process-step:hover .step-icon-bg {
  background: rgba(176,141,87,0.15); border-color: #B08D57;
  transform: scale(1.08);
  box-shadow: 0 16px 40px rgba(176,141,87,0.25), 0 0 0 4px rgba(176,141,87,0.1), inset 0 1px 0 rgba(176,141,87,0.25);
}

.step-icon {
  position: relative; width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center; z-index: 1;
}

.step-icon img { width: 60%; height: 60%; object-fit: contain; filter: drop-shadow(0 4px 12px rgba(176,141,87,0.2)); }

.step-icon-light { display: block; }
.step-icon-dark  { display: none; }
html[data-theme="dim"] .step-icon-light { display: none; }
html[data-theme="dim"] .step-icon-dark  { display: block; }

/* Step number — Inter */
.step-number {
  position: absolute; top: -8px; right: -8px;
  width: 32px; height: 32px;
  background: #B08D57; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-body);
  font-size: var(--text-label);
  font-weight: var(--weight-button);
  color: #fff;
  box-shadow: 0 4px 12px rgba(176,141,87,0.4); z-index: 2;
}

/* Step title — Cormorant Garamond */
.step-title {
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  font-weight: var(--weight-h3);
  font-style: normal;
  color: #2C3E50; margin-bottom: 12px;
}

html[data-theme="dim"] .step-title { color: #B08D57; }

/* Step description — Inter */
.step-description {
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: var(--weight-body);
  line-height: 1.6;
  color: rgba(44, 62, 80, 0.7);
}

html[data-theme="dim"] .step-description { color: rgba(245, 242, 237, 0.7); }

.process-cta-wrapper {
  margin-top: 80px; text-align: center;
  opacity: 0; transform: translateY(30px);
  transition: all 0.8s ease 0.8s;
}

.process-cta-wrapper.visible { opacity: 1; transform: translateY(0); }

/* Process button — Inter */
.process-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 32px;
  font-family: var(--font-body);
  font-size: var(--text-button);
  font-weight: var(--weight-button);
  font-style: normal;
  letter-spacing: 0.02em;
  border-radius: 10px; text-decoration: none;
  transition: all 0.3s ease; cursor: pointer;
  background: rgba(176,141,87,0.85);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(176,141,87,0.3); color: #fff;
  box-shadow: 0 8px 24px rgba(176,141,87,0.25), inset 0 1px 0 rgba(255,255,255,0.2);
}

.process-btn:hover {
  background: #B08D57; border-color: rgba(176,141,87,0.5);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(176,141,87,0.4), 0 0 0 1px rgba(176,141,87,0.3), inset 0 1px 0 rgba(255,255,255,0.3);
}

/* ── Responsive ── */
@media (max-width: 1200px) { .process-steps { grid-template-columns: repeat(3, 1fr); } }

@media (max-width: 768px) {
  .process-steps-section { padding: 60px 20px 100px; margin-top: -60px; }
  .process-header { padding-top: 24px; }
  .process-steps { grid-template-columns: 1fr; gap: 60px; }

  .timeline-line {
    left: 50%; top: 0; width: 3px; height: 100%; transform: translateX(-50%);
  }

  .timeline-line-progress {
    width: 100% !important; height: 0%;
    transition: height 2s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .timeline-line.visible .timeline-line-progress { height: 100%; }
  .process-btn { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .step-icon-wrapper { width: 100px; height: 100px; }
}