/* ============================================
   AI Automatisering service page — hero section
   ============================================ */

.ai-auto-hero {
  background: #02050a;
  overflow: hidden;
}

.ai-auto-hero .page-header-content {
  padding: 0;
}

/* Background shapes */
.ai-auto-hero .ws-shapes {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.ai-auto-hero .ws-shapes img {
  position: absolute;
}
.ai-auto-hero .ws-shapes .ws-shape-1 {
  top: 0;
  right: 0;
  opacity: 0.5;
}
.ai-auto-hero .ws-shapes .ws-shape-2 {
  bottom: 0;
  left: 0;
  opacity: 0.4;
}
.ai-auto-hero .ws-shapes .ws-shape-3 {
  top: 0;
  left: 0;
  opacity: 0.18;
}

/* ── Two-column layout ── */
.ai-auto-hero .ws-hero-inner {
  display: flex;
  align-items: center;
  gap: 60px;
  min-height: 100vh;
  min-height: 100svh;
  padding: 140px 0 80px;
  position: relative;
  z-index: 1;
}

/* ── LEFT: text ── */
.ai-auto-hero .ws-hero-text {
  flex: 1;
  min-width: 0;
}
.ai-auto-hero .ws-hero-text .title {
  font-size: clamp(28px, 4vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
  color: #fff;
}

/* ── RIGHT: flowchart ── */
.ai-auto-hero .ai-fc-wrap {
  flex: 1.2;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-auto-hero .ai-fc-wrap svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

/* ── Flowchart node styles ── */
.fc-node rect {
  fill: url(#fcNodeGradient);
  stroke: #60a5fa;
  stroke-width: 1.5;
  transition: stroke 0.3s ease, filter 0.3s ease;
}
.fc-node:hover rect {
  stroke: #93c5fd;
  filter: drop-shadow(0 0 8px rgba(96, 165, 250, 0.6));
  cursor: pointer;
}
.fc-node text {
  fill: #fff;
  font-family: "Segoe UI", system-ui, Arial, sans-serif;
  text-anchor: middle;
  dominant-baseline: middle;
}
.fc-node .fc-label  { font-size: 13px; font-weight: 600; }
.fc-node .fc-desc   { font-size: 10.5px; fill: #93c5fd; }
.fc-node .fc-workers{ font-size: 10px; fill: #bfdbfe; }

/* ── Connectors ── */
path.fc-connector {
  fill: none;
  stroke: rgba(96, 165, 250, 0.75);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: fcDraw 1.8s ease forwards;
  transition: stroke 0.25s ease;
}
@keyframes fcDraw { to { stroke-dashoffset: 0; } }

.fc-highlight {
  stroke: #93c5fd !important;
  stroke-width: 2.5;
  filter: drop-shadow(0 0 4px rgba(147, 197, 253, 0.8));
}

/* Pulse dot */
.fc-pulse {
  fill: #60a5fa;
  filter: drop-shadow(0 0 6px #60a5fa);
  opacity: 0;
}

/* Energized node */
.fc-energized rect {
  animation: fcEnergize 1s ease forwards;
}
@keyframes fcEnergize {
  0%   { fill: url(#fcNodeGradient); filter: none; }
  50%  { fill: url(#fcEnergyGradient); filter: drop-shadow(0 0 10px rgba(52, 211, 153, 0.7)); }
  100% { fill: url(#fcEnergyGradient); filter: drop-shadow(0 0 14px rgba(52, 211, 153, 0.9)); }
}

/* Rejection / dashed branch */
.fc-fail-label {
  fill: rgba(255, 255, 255, 0.4);
  font-family: "Segoe UI", system-ui, Arial, sans-serif;
  font-size: 11px;
  text-anchor: middle;
  dominant-baseline: middle;
  transition: fill 0.8s ease;
}
.fc-fail-label.fc-active { fill: #34d399; }

.fc-dashed {
  stroke-dasharray: 7 5 !important;
  animation: none !important;
  stroke-dashoffset: 0 !important;
  stroke: rgba(52, 211, 153, 0.7) !important;
}

/* ── Light mode ── */
[data-theme="light"] .ai-auto-hero {
  background: white;
}
[data-theme="light"] .ai-auto-hero .ws-shapes .ws-shape-1 { opacity: 0.18; }
[data-theme="light"] .ai-auto-hero .ws-shapes .ws-shape-2 { opacity: 0.12; }
[data-theme="light"] .ai-auto-hero .ws-shapes .ws-shape-3 { opacity: 0.07; }
[data-theme="light"] .ai-auto-hero .ws-hero-text .title {
  color: var(--rr-color-heading-primary);
}

/* ── Responsive ── */
@media (max-width: 992px) {
  .ai-auto-hero .ws-hero-inner {
    flex-direction: column;
    padding: 120px 0 60px;
    gap: 40px;
    min-height: unset;
  }
  .ai-auto-hero .ws-hero-text { text-align: center; }
  .ai-auto-hero .ai-fc-wrap { width: 100%; }
}
@media (max-width: 600px) {
  .ai-auto-hero .ai-fc-wrap { display: none; }
}
